/* 업무 처리함 (2026-10-30) — 기준: SAP Fiori 작업함 · Salesforce 작업 목록 · Asana 내 작업
   글꼴은 프리텐다드 한 벌(굵기로 위계), 1px 선과 격자로 나누고 둥글기는 4·8px 두 단계만 쓴다. */

:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e3e6eb;
  --line-strong: #c9ced6;
  --ink: #15181d;
  --ink-2: #353b45;
  --muted: #646c79;
  --faint: #959ca7;
  --accent: #1d4fd7;
  --accent-ink: #ffffff;
  --accent-soft: #eef3ff;
  --accent-line: #c9d7fb;
  --red: #c02f2b;
  --red-soft: #fdf2f1;
  --amber: #96590a;
  --amber-soft: #fff7e8;
  --green: #167447;
  --green-soft: #ecf7f1;
  --radius: 8px;
  --radius-s: 4px;
  --pad: 24px;
  --head-max: 1360px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

/* hidden 속성은 display 를 준 칸에서도 늘 이긴다(로그인 칸·알림 띠·상세가 겹쳐 보이지 않게). */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent);
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  z-index: 50;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.kicker-sep {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

/* ── 단추 ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn:hover {
  background: var(--surface-2);
  border-color: #b6bcc6;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #1843ba;
  border-color: #1843ba;
}

.btn-done {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.btn-done:hover {
  background: #11603a;
  border-color: #11603a;
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-quiet:hover {
  background: var(--surface-2);
  border-color: var(--line);
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.link-btn:hover {
  border-color: var(--line-strong);
}

.link-btn svg {
  width: 15px;
  height: 15px;
}

/* ── 로그인 ───────────────────────────────────────── */
.gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100vh;
  padding: 24px 20px;
}

.gate-panel {
  width: min(440px, 100%);
  min-width: 0;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gate-panel h1 {
  margin: 14px 0 10px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.gate-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.gate-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.gate-status.is-error {
  color: var(--red);
}

.gate-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.gate-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.gate-row {
  display: flex;
  gap: 8px;
}

.gate-row input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ── 머리 ─────────────────────────────────────────── */
.head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.head-inner,
.toolbar-inner {
  max-width: var(--head-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.head-inner {
  padding-top: 20px;
  padding-bottom: 18px;
}

.head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.head-links {
  display: flex;
  gap: 8px;
}

.head h1 {
  margin: 14px 0 4px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.sync {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.sync::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--faint);
  flex: none;
}

.sync.is-ok::before {
  background: var(--green);
}

.sync.is-late {
  color: var(--amber);
}

.sync.is-late::before {
  background: var(--amber);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  margin: 0;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  text-align: left;
}

.stat button:hover {
  background: var(--surface-2);
}

.stat dt,
.stat .stat-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.stat dd,
.stat .stat-value {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat .stat-unit {
  margin-left: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.stat.is-warn .stat-value {
  color: var(--red);
}

.stat.is-good .stat-value {
  color: var(--green);
}

/* ── 도구 띠 ─────────────────────────────────────── */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}

.tab b {
  color: var(--faint);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  color: var(--ink);
}

.tab[aria-selected="true"] b {
  color: var(--accent);
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 40vw);
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--faint);
}

.search:focus-within {
  border-color: var(--accent);
  color: var(--accent);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
}

/* ── 본문 배치 ───────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 0;
  max-width: var(--head-max);
  margin: 0 auto;
  padding: 20px var(--pad) 64px;
  align-items: start;
}

.pane-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--surface);
  outline: 0;
}

.pane-detail {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.notice {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 14px;
}

.notice button {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ── 묶음 머리 ───────────────────────────────────── */
.group + .group {
  border-top: 1px solid var(--line);
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 20px 8px;
}

.group-head h2 {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.group-head .count {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.group-head .hint {
  margin-left: auto;
  color: var(--faint);
  font-size: 12.5px;
}

.group.is-warn .group-head h2 {
  color: var(--red);
}

.group-more {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.group-more:hover {
  background: var(--surface-2);
}

/* ── 업무 줄 ─────────────────────────────────────── */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: start;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.group-head + .rows .row:first-child {
  border-top: 1px solid var(--line);
}

.row:hover {
  background: var(--surface-2);
}

.row.is-selected {
  background: var(--accent-soft);
}

.row.is-selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.row.is-cursor {
  box-shadow: inset 0 0 0 2px var(--accent-line);
}

.check {
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
}

.check-box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: transparent;
  transition: border-color 120ms ease, background 120ms ease;
}

.check-box svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.check:hover .check-box {
  border-color: var(--green);
  color: var(--green);
}

.check[aria-checked="true"] .check-box {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.check:disabled {
  cursor: progress;
}

.row-main {
  min-width: 0;
  padding: 13px 4px 13px 0;
}

.row-title {
  margin: 0;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
}

.row.is-done .row-title {
  color: var(--faint);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.row-meta > span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 8px;
  background: var(--line-strong);
  vertical-align: -1px;
}

.m-late {
  color: var(--red);
  font-weight: 600;
}

.m-today {
  color: var(--accent);
  font-weight: 600;
}

.m-high {
  color: var(--red);
  font-weight: 700;
}

.m-suggest {
  color: var(--amber);
  font-weight: 600;
}

.m-done {
  color: var(--green);
  font-weight: 600;
}

.row-go {
  display: grid;
  place-items: center;
  height: 52px;
  color: var(--faint);
}

.row-go svg {
  width: 16px;
  height: 16px;
}

.empty {
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 17px;
}

.foot-note {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

.skeleton {
  padding: 8px 20px 20px;
}

.skeleton span {
  display: block;
  height: 14px;
  margin: 18px 0;
  border-radius: var(--radius-s);
  background: #eceef1;
}

.skeleton span:nth-child(2n) {
  width: 72%;
}

/* ── 상세 ─────────────────────────────────────────── */
.detail-empty {
  padding: 56px 28px;
  color: var(--muted);
  text-align: center;
}

.detail-empty p {
  margin: 0 0 6px;
}

.detail-keys {
  color: var(--faint);
  font-size: 13px;
}

.detail-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.detail-state {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.detail-state .m-late,
.detail-state .m-done,
.detail-state .m-suggest,
.detail-state .m-high {
  margin-left: 4px;
}

.detail-close {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.detail-main {
  padding: 18px 20px 28px;
}

.detail-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.03em;
}

.facts {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  color: var(--ink-2);
  min-width: 0;
}

.actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions-row .btn {
  flex: 1 1 auto;
}

.btn-main {
  min-height: 46px;
  font-size: 15.5px;
}

.date-pick {
  display: none;
  gap: 8px;
  align-items: center;
}

.date-pick.is-open {
  display: flex;
}

.date-pick input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.block {
  margin-top: 24px;
}

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.block-head h3 {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.block-head small {
  color: var(--faint);
  font-size: 12.5px;
}

.memo textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  line-height: 1.55;
  resize: vertical;
}

.memo textarea:focus {
  outline: 0;
  border-color: var(--accent);
}

.memo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--faint);
  font-size: 12.5px;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.links li {
  border-bottom: 1px solid var(--line);
}

.link-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: start;
  padding: 10px 2px;
  color: inherit;
  text-decoration: none;
}

a.link-item:hover .link-title {
  color: var(--accent);
  text-decoration: underline;
}

.link-kind {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding-top: 1px;
}

.link-title {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.link-sub {
  display: block;
  color: var(--faint);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.link-item svg {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--faint);
}

.notes {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.timeline .who {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.timeline p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prop {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-2);
}

.prop.is-ok {
  border-color: #cfe7da;
  background: var(--green-soft);
}

.prop.is-wait {
  border-color: #f0dcb8;
  background: var(--amber-soft);
}

.prop.is-fail {
  border-color: #f2cfcd;
  background: var(--red-soft);
}

.prop strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.prop ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.members {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.members li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.members .check {
  width: 36px;
  height: 44px;
}

.members .row-main {
  padding: 10px 0;
}

.members .row-title {
  font-size: 14px;
}

.muted-line {
  color: var(--faint);
  font-size: 13px;
}

/* ── 알림 띠 ─────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: #1c1f25;
  color: #fff;
  font-size: 14.5px;
  transform: translateX(-50%);
}

.toast-action {
  padding: 0;
  border: 0;
  background: none;
  color: #9db7ff;
  font-weight: 700;
  white-space: nowrap;
}

/* ── 폭 ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }

  .pane-list {
    border-radius: var(--radius);
  }

  .pane-detail {
    position: fixed;
    inset: 0;
    z-index: 40;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 180ms ease;
    visibility: hidden;
  }

  body.has-detail .pane-detail {
    transform: none;
    visibility: visible;
  }

  body.has-detail {
    overflow: hidden;
  }

  /* 상세가 화면을 덮는 동안 뒤 목록은 그리지 않는다(읽기 프로그램·점검이 뒤 글을 겹쳐 읽지 않게). */
  body.has-detail .head,
  body.has-detail .toolbar,
  body.has-detail .pane-list {
    visibility: hidden;
  }

  .detail-empty {
    display: none;
  }

  .detail-top {
    padding-top: calc(10px + env(safe-area-inset-top));
  }

  .detail-main {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 20px;
  }

  .gate {
    padding: 20px 16px;
  }

  .gate-panel {
    padding: 26px 20px;
  }

  body {
    font-size: 15px;
  }

  .head-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .head h1 {
    font-size: 26px;
  }

  .head-links .link-btn span {
    display: none;
  }

  .head-links .link-btn:first-child {
    padding: 0 9px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat:nth-child(4) {
    border-left: 0;
  }

  .stat:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .stat button {
    padding: 10px 12px;
  }

  .stat .stat-value {
    font-size: 22px;
  }

  .toolbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .tabs {
    padding: 0 8px;
  }

  .tab {
    min-height: 48px;
    padding: 0 10px;
  }

  .tab[aria-selected="true"]::after {
    left: 10px;
    right: 10px;
  }

  .search {
    width: auto;
    margin: 0 var(--pad) 10px;
  }

  .layout {
    padding: 12px 0 72px;
  }

  .pane-list {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .group-head {
    padding: 14px 16px 6px;
  }

  .row {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
  }

  .row-title {
    font-size: 15.5px;
  }

  .row-go {
    padding-right: 6px;
  }

  .detail-main {
    padding: 16px 20px 40px;
  }

  .detail-title {
    font-size: 20px;
  }

  .facts {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .link-item {
    grid-template-columns: 72px minmax(0, 1fr) 16px;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stat:last-child {
    grid-column: span 2;
  }

  .head-links {
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
