/* 셈씨 공통 스타일 — 모든 계산기 페이지가 함께 씁니다 */
/* Layout: one calm column (max 34rem) under a slim brand bar; each calculator = inputs → result → explanation → FAQ */
:root {
  --bg: #EDF2F0;
  --surface: #FFFFFF;
  --fg: #142420;
  --muted: #5A6C67;
  --line: #C4D2CE;
  --hair: #E2EAE7;
  --bar: #CFDDD9;
  --accent: #0C6B59;
  --accent-soft: #E0EFEB;
  --accent-fg: #FFFFFF;
  --warn: #A9420F;
  --warn-soft: #FBEDE5;
  --accent2: #8A5A00;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-num: var(--font-body);  /* 숫자도 본문 글꼴 + 폭 맞춤(tabular-nums) */
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1412; --surface: #141E1B; --fg: #E4EDEA; --muted: #93A6A0; --line: #2E3D38; --hair: #22302B;
    --bar: #2C3D38; --accent: #4CC3A6; --accent-soft: #163029; --accent-fg: #062019;
    --warn: #F0905F; --warn-soft: #2E1C14; --accent2: #E3AE4B; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1412; --surface: #141E1B; --fg: #E4EDEA; --muted: #93A6A0; --line: #2E3D38; --hair: #22302B;
  --bar: #2C3D38; --accent: #4CC3A6; --accent-soft: #163029; --accent-fg: #062019;
  --warn: #F0905F; --warn-soft: #2E1C14; --accent2: #E3AE4B; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.9rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 700; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.num, time, input { font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-num); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* brand bar */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .bar { max-width: 34rem; margin: 0 auto; padding-inline: 16px; padding-block: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.125rem; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; flex: none; color: var(--accent); }
.site-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

.wrap { max-width: 34rem; margin: 0 auto; padding-inline: 16px; padding-block: 24px 48px; display: flex; flex-direction: column; gap: 20px; }
.crumbs { font-size: 0.875rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.head { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 0.8125rem; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.lede { color: var(--muted); }

/* form */
.inputs { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 370px) { .inputs { grid-template-columns: 1fr 1fr; } }  /* 대부분의 휴대폰에서 날짜·짧은 칸은 2열 */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
label { font-weight: 700; font-size: 0.9375rem; }
.chip { font-size: 0.8125rem; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
input[type="date"], input[type="number"], input[type="text"], input[type="search"], input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-height: 54px;
  padding: 12px 14px; font: 500 1.06rem var(--font-num); color: var(--fg); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; text-align: left;
}
input::-webkit-date-and-time-value { text-align: left; }
input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { grid-column: 1 / -1; font-size: 0.875rem; color: var(--muted); }
.link-btn { font: inherit; font-size: 0.875rem; color: var(--accent); background: none; border: 0; padding: 2px 4px; cursor: pointer; border-radius: 6px; }

.notice { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--fg); }
.notice.is-error { background: var(--warn-soft); color: var(--warn); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 0.9375rem; color: var(--accent-fg); background: var(--accent); border: 0; border-radius: 12px; padding: 12px 18px; min-height: 48px; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.copy-fallback { width: 100%; min-height: 120px; padding: 12px; font: 0.9rem/1.6 var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }

/* sections */
.block { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.d-body { padding: 0 16px 16px; }
.d-body p + p { margin-top: 8px; }
.faq { gap: 8px; }
.faq summary { font-weight: 500; }

.table-scroll { overflow-x: auto; padding: 0 8px 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
th { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
td:last-child, th:last-child { text-align: right; }
td.d { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
tr.now td { background: var(--accent-soft); font-weight: 700; }
tr.now td:first-child { border-radius: 8px 0 0 8px; }
tr.now td:last-child { border-radius: 0 8px 8px 0; }
.tag { display: inline-block; margin-left: 6px; font-size: 0.8125rem; font-weight: 700; color: var(--accent-fg); background: var(--accent); padding: 1px 6px; border-radius: 6px; vertical-align: 1px; }

/* calculator list (home) */
.cat { display: flex; flex-direction: column; gap: 10px; }
.cat-title { font-size: 0.875rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card-icon svg { width: 24px; height: 24px; }
.card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.card-title { font-weight: 700; font-size: 1.125rem; }
.card-desc { font-size: 0.875rem; color: var(--muted); }
.card-go { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); margin-right: 4px; }

/* generic result card */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.r-label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.r-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; line-height: 1.05; padding-block: 4px 6px; }
.big .n { font-weight: 700; font-size: clamp(2.8rem, 14vw, 4.2rem); letter-spacing: -0.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.big.money .n { font-size: clamp(2rem, 9.5vw, 2.9rem); letter-spacing: -0.03em; }
.big .unit { font-size: 1.5rem; font-weight: 700; }
.big .of { font-size: 1rem; color: var(--muted); margin-left: 6px; }
.big.off .n { color: var(--muted); }
.reading { font-weight: 500; }
.rows { margin: 10px 0 0; display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 10px; border-top: 1px solid var(--hair); }
.row dt { color: var(--muted); font-size: 0.9375rem; flex: none; }
.row dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.pill { font-size: 0.8125rem; font-weight: 700; color: var(--accent-fg); background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* controls */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.seg button { font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--muted); background: none; border: 0; border-radius: 9px; min-height: 42px; padding: 6px 4px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.quick { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.qbtn { font: inherit; font-size: 0.875rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.qbtn:hover { border-color: var(--accent); color: var(--accent); }
.affix { position: relative; }
.affix input { padding-right: 56px; }
.affix .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; pointer-events: none; }
.field-reading { font-size: 0.875rem; color: var(--accent); font-weight: 500; min-height: 1.35em; }
.field.full { grid-column: 1 / -1; }
.field-note { font-size: 0.875rem; color: var(--muted); }
.check { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 500; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--bar); margin-top: 8px; }
.split-bar span { display: block; height: 100%; }
.split-bar .p { background: var(--accent); }
.split-bar .i { background: var(--accent2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8125rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.legend .p { background: var(--accent); }
.legend .i { background: var(--accent2); }
.explain { padding: 4px 16px 6px; }
.explain .row dt { color: var(--fg); font-weight: 700; }
.explain .row dd { font-weight: 400; color: var(--muted); text-align: right; }
.explain .row:first-child { border-top: 0; }
.tabpanel { display: flex; flex-direction: column; gap: 16px; }
tr.pick { cursor: pointer; }
tr.past td { color: var(--muted); }

/* date field: typed digits + calendar button */
.datefield { position: relative; }
.datefield .date-text { padding-right: 50px; }
.datefield .date-btn { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.datefield .date-btn svg { width: 22px; height: 22px; }
.datefield input.date-native { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.datefield:focus-within .date-btn { color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--warn); }

.btn.secondary { background: var(--surface); color: var(--accent); border: 1.5px solid var(--line); }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--fg); text-decoration: none; }
.next-link span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.next-link small { color: var(--muted); font-size: 0.8125rem; }
.next-link b { font-size: 1rem; }
.next-link::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-top: 2px solid var(--accent); transform: rotate(45deg); margin-right: 4px; }
.tip { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.tip b { color: var(--fg); }
.history { list-style: none; margin: 0; padding: 2px 16px; }
.history li { display: flex; gap: 14px; padding-block: 10px; border-top: 1px solid var(--hair); font-size: 0.9375rem; }
.history li:first-child { border-top: 0; }
.history time { flex: none; font-family: var(--font-num); font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.875rem; padding-top: 2px; }
.basis { margin: 0; padding: 2px 16px; list-style: none; }
.basis li { padding-block: 10px; border-top: 1px solid var(--hair); font-size: 0.9375rem; }
.basis li:first-child { border-top: 0; }
.prose { display: flex; flex-direction: column; gap: 10px; max-width: 65ch; }
.prose h2 { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mail { font-family: var(--font-num); font-size: 1.125rem; font-weight: 500; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; user-select: all; }
.search { position: relative; }
.search input { padding-left: 46px; font-family: var(--font-body); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.updates { list-style: none; margin: 0; padding: 2px 16px; }
.updates li { padding-block: 10px; border-top: 1px solid var(--hair); font-size: 0.9375rem; display: flex; gap: 12px; }
.updates li:first-child { border-top: 0; }
.updates time { flex: none; font-family: var(--font-num); color: var(--muted); font-size: 0.875rem; padding-top: 2px; }
.updates a { color: var(--fg); }
.site-footer .info { font-size: 0.8125rem; }

/* home dashboard */
.dash { display: flex; flex-direction: column; gap: 10px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.dash-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); text-decoration: none; min-width: 0; }
.dash-item:hover { border-color: var(--accent); }
.dash-item small { color: var(--muted); font-size: 0.8125rem; }
.dash-item b { font-size: 1.5rem; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dash-item span { font-size: 0.875rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 34rem; margin: 0 auto; padding-inline: 16px; padding-block: 20px 32px; font-size: 0.8125rem; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-footer a { color: var(--muted); }

/* 다음 연휴 띠 */
.hol-strip { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--fg); text-decoration: none; font-size: 0.875rem; }
.hol-strip:hover { outline: 1.5px solid var(--accent); }
.hs-k { flex: none; font-weight: 700; color: var(--fg); }
.hs-date { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-d { flex: none; font-weight: 700; color: var(--accent2); font-variant-numeric: tabular-nums; }
.hs-d:empty { display: none; }
.hs-go { flex: none; margin-left: auto; color: var(--accent); font-weight: 500; }
.hs-go::after { content: " ›"; }
@media (max-width: 460px) { .hs-go { font-size: 0; } .hs-go::after { font-size: 1.125rem; content: "›"; } }
/* 연차 → 꿀조합 연결 */
.plan-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--fg); text-decoration: none; font-size: 0.9375rem; }
.plan-link b { color: var(--accent); }
.plan-link::after { content: "›"; color: var(--accent); font-size: 1.25rem; flex: none; }
#schedRows tr.gap td { text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 400px) { .hs-len { display: none; } }

/* 좁은 화면에서 표 한 줄을 작은 카드처럼: .main(위, 굵게) · .sub(아래, 작게, data-label 앞에 붙임) · .num(오른쪽 큰 숫자) */
@media (max-width: 600px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
  table.stack tbody tr:last-child { border-bottom: 0; }
  table.stack td { display: block; padding: 0; border: 0; white-space: normal; text-align: left; background: none; }
  table.stack td.main { grid-column: 1; order: -1; font-weight: 600; }
  table.stack td.num { grid-column: 2; grid-row: 1 / span 4; align-self: center; text-align: right; font-weight: 700; font-size: 1.125rem; color: var(--accent); white-space: nowrap; }
  table.stack td.sub { grid-column: 1; font-size: 0.875rem; color: var(--muted); }
  table.stack td.sub[data-label]::before { content: attr(data-label) " · "; font-family: var(--font-body); }
  table.stack tr.now { background: var(--accent-soft); border-radius: 10px; }
}
.m-only { display: none; }
@media (max-width: 600px) {
  /* 글자 칸은 줄바꿈 허용 (숫자 칸 .d는 한 줄 유지) */
  th, td:not(.d) { white-space: normal; }
  /* 숫자 표: 첫 칸은 제목, 나머지는 2×2 칸에 '이름 위 · 값 아래' */
  table.stack.matrix tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 8px; }
  table.stack.matrix td.main { grid-column: 1 / -1; }
  table.stack.matrix td.sub { grid-column: auto; font-size: 0.9375rem; color: var(--fg); }
  table.stack.matrix td.sub[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--muted); }
  table.stack tr.gap { display: block; text-align: center; }
  .m-only { display: inline; }
}
/* 아주 좁은 화면(320px 등): 결과 줄의 이름 칸도 줄바꿈 */
@media (max-width: 420px) { .row dt { flex: 0 1 auto; min-width: 0; } }  /* 좁은 화면: 이름 칸이 줄어들며 줄바꿈 */
.plan-link span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-link small { color: var(--muted); font-size: 0.8125rem; }
.dash-item.empty { border-style: dashed; background: transparent; }
.dash-item.empty b { font-size: 1rem; padding-block: 6px 2px; }
.dash-item.empty span { color: var(--muted); }
.hol-strip { flex-wrap: wrap; row-gap: 2px; }
.hs-boost { flex-basis: 100%; order: 5; font-size: 0.8125rem; font-weight: 500; color: var(--accent); }
.hs-boost:empty { display: none; }
/* 홈 이번 주 브리핑 */
.brief { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.brief-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.brief-head h2 { margin: 0; font-size: 1.125rem; }
.brief-note, .brief-tip { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); }
.brief-tip { background: transparent; border: 0; padding: 4px 2px; }
.brief-note p, .brief-tip p { margin: 0; line-height: 1.6; }
.brief-tip small { color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.brief-note a, .brief-tip a { font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li { display: flex; align-items: center; gap: 10px; padding-block: 9px; border-top: 1px solid var(--hair); font-size: 0.9375rem; }
.brief-list li:first-child { border-top: 0; }
.bl-d { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 74px; }
.brief-list a { flex: 1; min-width: 0; color: var(--fg); text-decoration: none; }
.bl-dd { font-weight: 700; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* 휴대폰 하단 결과 바 */
.peek { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border: 0; border-radius: 14px; background: var(--fg); color: var(--bg); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.peek .pk-l { font-size: 0.8125rem; opacity: 0.8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek b { font-size: 1.125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.peek .pk-go { margin-left: auto; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
/* 홈 계산기 아이콘은 차분하게 (초록은 결과 숫자와 주 버튼에) */
.card-icon { background: var(--bg); color: var(--muted); }
/* PC: 홈은 넓게(계산기 목록 2열), 계산기 페이지는 읽기 좋은 폭으로 조금 넓게 */
@media (min-width: 760px) {
  .site-header .bar { max-width: 56rem; }
  .wrap.home { max-width: 56rem; }
  .wrap.home .cards { grid-template-columns: 1fr 1fr; }
  .wrap.home .dash-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (min-width: 960px) { .wrap:not(.home) { max-width: 40rem; } }
/* 빠른 선택: 3개씩 두 줄, 지금 값 강조 */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.qbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 700; }
/* 홈 '이번 주' 한 줄 */
.week-line { display: block; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--fg); text-decoration: none; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-line b { color: var(--accent); margin-right: 4px; }
