/* 시험디데이 — 자격증 시험 정보. 색은 전부 토큰으로, 다크 모드는 토큰만 바꾼다. */
:root {
  color-scheme: light;
  --bg: #f5f6f8; --surface: #fff; --surface-2: #f0f2f6;
  --ink: #12151c; --ink-2: #454d5e; --mute: #6d7687; --line: #e3e6ec; --line-2: #eef0f4;
  --brand: #2f55e6; --brand-ink: #2143c4; --brand-soft: #e9eeff; --on-brand: #fff;
  --ok: #0a7d55; --ok-soft: #e3f5ec; --warn: #9a5b00; --warn-soft: #fdf1d8; --done: #6d7687; --done-soft: #eef0f4;
  --s1: #2a78d6; --s2: #eb6834;
  --shadow: 0 1px 2px rgba(18, 21, 28, .05), 0 6px 20px rgba(18, 21, 28, .05);
  --r: 14px; --r-sm: 9px; --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1014; --surface: #171a21; --surface-2: #1e222b;
    --ink: #eef0f4; --ink-2: #b9bfcb; --mute: #8d95a5; --line: #2a2f3a; --line-2: #222630;
    --brand: #8aa4ff; --brand-ink: #a9bcff; --brand-soft: #1c2545; --on-brand: #0e1014;
    --ok: #4fd1a1; --ok-soft: #12302a; --warn: #f0b95a; --warn-soft: #33290f; --done: #8d95a5; --done-soft: #20242d;
    --s1: #3987e5; --s2: #d95926;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 머리 */
.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; flex: none; }
.logo svg { width: 28px; height: 28px; }
.gnb { display: flex; gap: 4px; flex: 1; }
.gnb a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.gnb a:hover { background: var(--surface-2); color: var(--ink); }
.gnb a[aria-current] { color: var(--brand-ink); background: var(--brand-soft); }
.hd-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; min-width: 220px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--mute); font-size: 14.5px; }
.hd-search:hover { border-color: var(--brand); }
.hd-search svg { width: 18px; height: 18px; flex: none; }
.hd-search kbd { margin-left: auto; font: 600 11px/1 ui-monospace, monospace; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }

/* 구획 */
main { display: block; min-height: 60vh; }
.sec { padding-top: 28px; padding-bottom: 4px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-h h2 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.sec-h a, .more { color: var(--brand-ink); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.sec-h a:hover, .more:hover { text-decoration: underline; }
.sub { color: var(--mute); font-size: 14.5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 20px; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stack > * + * { margin-top: 16px; }

/* 첫 화면 */
.hero { padding: 44px 0 30px; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.hero h1 { font-size: clamp(27px, 4.6vw, 40px); line-height: 1.22; font-weight: 800; letter-spacing: -.04em; max-width: 18em; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
.hero p { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.searchbox { margin-top: 22px; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; height: 58px; padding: 0 20px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); color: var(--mute); font-size: 16.5px; text-align: left; }
.searchbox:hover { border-color: var(--brand); }
.searchbox svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.quick { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
a.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scroll-x { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; } .scroll-x::-webkit-scrollbar { display: none; }

/* 상태 꼬리표 */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.tag.open { background: var(--ok-soft); color: var(--ok); } .tag.soon { background: var(--warn-soft); color: var(--warn); }
.tag.exam { background: var(--brand-soft); color: var(--brand-ink); } .tag.done { background: var(--done-soft); color: var(--done); }
.tag.open::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tag.open::before { animation: none; } html { scroll-behavior: auto; } }
.grade { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); }

/* 일정 줄 (홈·달력) */
.rows > li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.rows > li:first-child { border-top: 0; }
.rows .when { font-weight: 700; font-size: 15px; } .rows .when small { display: block; font-weight: 500; color: var(--mute); font-size: 12.5px; }
.rows .what strong { display: block; font-size: 15.5px; } .rows .what span { color: var(--mute); font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .what a:hover { color: var(--brand-ink); }
.dday { font-weight: 800; font-size: 15px; color: var(--brand-ink); white-space: nowrap; } .dday.hot { color: #d9363e; }
@media (prefers-color-scheme: dark) { .dday.hot { color: #ff8589; } }
.empty { padding: 26px 20px; color: var(--mute); font-size: 15px; text-align: center; }

/* 종목 카드 */
.cert { display: flex; flex-direction: column; gap: 8px; padding: 16px; transition: border-color .15s, transform .15s; }
.cert:hover { border-color: var(--brand); transform: translateY(-1px); }
.cert h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.cert .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--mute); font-size: 13.5px; }
.cert .meta b { color: var(--ink); font-weight: 700; }
.cert .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.list > li > a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line-2); font-size: 15px; }
.list > li:first-child > a { border-top: 0; } .list > li > a:hover { background: var(--surface-2); }
.list .rk { width: 22px; color: var(--mute); font-weight: 700; font-size: 13.5px; text-align: center; flex: none; } .list li:nth-child(-n+3) .rk { color: var(--brand-ink); }
.list .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .list .v { color: var(--mute); font-size: 13.5px; white-space: nowrap; }
.tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.tile:hover { border-color: var(--brand); } .tile strong { font-size: 16px; } .tile span { color: var(--mute); font-size: 13.5px; }

/* 종목 페이지 머리 */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; padding-top: 18px; color: var(--mute); font-size: 13.5px; }
.crumbs a:hover { color: var(--brand-ink); text-decoration: underline; } .crumbs li + li::before { content: "›"; margin-right: 6px; }
.ph { padding-top: 12px; }
.ph .kick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.ph h1 { font-size: clamp(25px, 4.2vw, 34px); line-height: 1.25; font-weight: 800; letter-spacing: -.04em; }
.ph .lead { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; max-width: 46em; }
.kpis { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.kpi .k { color: var(--mute); font-size: 13px; font-weight: 600; } .kpi .v { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; } .kpi .s { color: var(--mute); font-size: 12.5px; }
.tabs { position: sticky; top: 60px; z-index: 20; margin-top: 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 13px 14px 11px; font-weight: 700; font-size: 15.5px; color: var(--mute); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); } .tabs a[aria-current] { color: var(--ink); border-color: var(--brand); }
.blk h2 { font-size: 19px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; } .blk > .sub { margin-bottom: 14px; }
.blk h3 { font-size: 15.5px; font-weight: 800; margin: 20px 0 6px; padding-top: 16px; border-top: 1px solid var(--line-2); } .blk h2 + .sub + h3, .blk .sec-h + h3 { border-top: 0; padding-top: 0; margin-top: 4px; }
.prose p + p { margin-top: 8px; } .prose { color: var(--ink-2); font-size: 15.5px; }
.bul > li { position: relative; padding-left: 14px; color: var(--ink-2); font-size: 15.5px; } .bul > li + li { margin-top: 6px; }
.bul > li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--mute); }
.facts { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0; font-size: 15.5px; }
.facts dt { padding: 11px 0; color: var(--mute); font-weight: 600; border-top: 1px solid var(--line-2); } .facts dd { padding: 11px 0; border-top: 1px solid var(--line-2); color: var(--ink); }
.facts dt:first-of-type, .facts dt:first-of-type + dd { border-top: 0; padding-top: 2px; }
.facts dd small { display: block; color: var(--mute); font-size: 13.5px; }
.note { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.note a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; }

/* 회차 진행 단계 */
.round + .round { margin-top: 12px; }
.round-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.round-h h3 { font-size: 16.5px; font-weight: 800; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); padding: 16px 20px 20px; }
.step { position: relative; padding-top: 22px; padding-right: 8px; }
.step::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.step:last-child::before { right: auto; width: 0; }
.step::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.step.past::before { background: var(--done); opacity: .5; } .step.past::after { background: var(--done); border-color: var(--done); }
.step.now::after { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.step.next::after { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.step > b { display: block; font-size: 13.5px; color: var(--mute); font-weight: 700; } .step.now > b { color: var(--ok); } .step.next > b { color: var(--brand-ink); }
.step > span { display: block; font-size: 15px; font-weight: 700; line-height: 1.35; } .step.past > span { color: var(--mute); font-weight: 600; }
.step > small { display: block; color: var(--mute); font-size: 12.5px; }

/* 표 */
.tblw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 10px 14px; text-align: right; white-space: nowrap; border-top: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
thead th { border-top: 0; background: var(--surface-2); color: var(--mute); font-size: 13px; font-weight: 700; }
th:first-child, td:first-child { text-align: left; } tbody th { font-weight: 700; } td.l, th.l { text-align: left; }
tbody tr:hover { background: var(--surface-2); } td a { font-weight: 600; } td a:hover { color: var(--brand-ink); text-decoration: underline; }
td .bar { display: inline-block; vertical-align: middle; width: 56px; height: 6px; border-radius: 3px; background: var(--line-2); margin-right: 8px; overflow: hidden; } td .bar i { display: block; height: 100%; background: var(--s1); border-radius: 3px; }

/* 차트 */
.chart { position: relative; max-width: 500px; } .chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridl { stroke: var(--line); stroke-width: 1; } .chart .axis { fill: var(--mute); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart .l1 { stroke: var(--s1); } .chart .l2 { stroke: var(--s2); } .chart .ln { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.chart .d1 { fill: var(--s1); } .chart .d2 { fill: var(--s2); } .chart .dot { stroke: var(--surface); stroke-width: 1.5; }
.chart .lab { font-size: 10.5px; font-weight: 700; fill: var(--ink); } .chart .hit { fill: transparent; } .chart .cross { stroke: var(--mute); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.legend { display: flex; gap: 16px; margin-bottom: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; } .legend .k1 { background: var(--s1); } .legend .k2 { background: var(--s2); }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13px; line-height: 1.5; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, -100%); transition: opacity .1s; }
.tip div { white-space: nowrap; } .chart .hit { outline: none; cursor: crosshair; }
.tip b { display: block; font-size: 13.5px; margin-bottom: 2px; } .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.meters > li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 52px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14.5px; }
.meters .m { position: relative; height: 8px; border-radius: 4px; background: var(--line-2); } .meters .m i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--s1); }
.meters .n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .meters .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }

/* 자주 묻는 질문 */
.faq details { border-top: 1px solid var(--line-2); } .faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .15s; flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); } .faq details > div { padding: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }

/* 옆 칸 */
.side { position: sticky; top: 128px; } .side h2 { font-size: 15.5px; font-weight: 800; padding: 16px 16px 8px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 11px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px; }
.cta:hover { filter: brightness(1.07); } .cta.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); } .cta svg { width: 17px; height: 17px; }

/* 달 이동 */
.months { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 14px; }
.day-h { padding: 12px 20px; background: var(--surface-2); font-weight: 800; font-size: 14.5px; border-top: 1px solid var(--line); } .day-h:first-child { border-top: 0; border-radius: var(--r) var(--r) 0 0; }

/* 꼬리 */
.ft { margin-top: 56px; padding: 30px 0 110px; border-top: 1px solid var(--line); background: var(--surface); color: var(--mute); font-size: 13.5px; }
.ft nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0; } .ft nav a { color: var(--ink-2); font-weight: 600; } .ft nav a:hover { text-decoration: underline; } .ft p + p { margin-top: 6px; }

/* 아래 탭 (모바일) */
.tabbar { display: none; }

/* 검색 창 */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; background: rgba(10, 12, 16, .5); backdrop-filter: blur(3px); }
.sheet.on { display: block; }
.sheet-panel { max-width: 640px; margin: 9vh auto 0; background: var(--surface); border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0, 0, 0, .3); overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.sheet-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--line); }
.sheet-in svg { width: 20px; height: 20px; color: var(--mute); flex: none; }
.sheet-in input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; }
.sheet-in button { color: var(--mute); font-size: 14px; font-weight: 600; padding: 8px; }
.sheet-res { overflow-y: auto; padding: 6px; }
.sheet-res a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 15.5px; }
.sheet-res a.sel, .sheet-res a:hover { background: var(--surface-2); } .sheet-res a b { font-weight: 700; flex: 1; min-width: 0; } .sheet-res a mark { background: none; color: var(--brand-ink); }
.sheet-res a span { color: var(--mute); font-size: 13px; white-space: nowrap; } .sheet-res .hint { padding: 12px; color: var(--mute); font-size: 13.5px; }

@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); } .side { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .gnb, .hd-search span, .hd-search kbd { display: none; } .hd .wrap { height: 54px; justify-content: space-between; } .hd-search { min-width: 0; width: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .tabs { top: 54px; } html { scroll-padding-top: 110px; }
  .hero { padding: 28px 0 22px; } .hero p { font-size: 15.5px; } .searchbox { height: 52px; font-size: 15.5px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .pad { padding: 16px; }
  .rows > li { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; padding: 12px 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 16px; gap: 0; }
  .step { padding: 0 0 14px 24px; display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 8px; align-items: baseline; } .step:last-child { padding-bottom: 0; }
  .step::before { top: 8px; bottom: -8px; left: 5px; right: auto; width: 2px; height: auto; } .step:last-child::before { display: none; } .step::after { top: 5px; }
  .step > small { grid-column: 2; }
  .round-h { padding: 14px 16px 0; } .facts { grid-template-columns: 78px minmax(0, 1fr); }
  .meters > li { grid-template-columns: minmax(0, 104px) minmax(0, 1fr) 44px; gap: 8px; }
  .sheet-panel { margin: 0; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11.5px; font-weight: 600; color: var(--mute); }
  .tabbar svg { width: 22px; height: 22px; } .tabbar a[aria-current] { color: var(--brand-ink); }
  .ft { padding-bottom: 120px; }
}
@media print { .hd, .tabbar, .tabs, .side, .ft nav, .sheet { display: none !important; } body { background: #fff; } }
