/* ============================================================
   집셈 / Home Math
   Dark ledger: midnight ink, mint signal, amber tax, hairlines.
   ============================================================ */

:root {
  --bg: #080b10;
  --bg-2: #0b0f15;
  --panel: #10151d;
  --panel-2: #141a24;
  --panel-3: #18202b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #e9eef6;
  --text-2: #b7c1cf;
  --muted: #7f8a9b;
  --faint: #5a6575;
  --mint: #3ee0a1;
  --mint-2: #8bf3cb;
  --mint-soft: rgba(62, 224, 161, .1);
  --mint-line: rgba(62, 224, 161, .28);
  --amber: #f0b866;
  --amber-soft: rgba(240, 184, 102, .1);
  --amber-line: rgba(240, 184, 102, .3);
  --rose: #ff728d;
  --rose-soft: rgba(255, 114, 141, .1);
  --rose-line: rgba(255, 114, 141, .3);
  --blue: #6fa8ff;
  --blue-soft: rgba(111, 168, 255, .1);
  --blue-line: rgba(111, 168, 255, .3);
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -38px rgba(0, 0, 0, .9);
  --sans: "Inter", "Pretendard", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Noto Sans KR", "Malgun Gothic", "DejaVu Sans", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", "Menlo", "Consolas", monospace;
  --serif: Georgia, "Times New Roman", "Noto Serif KR", "Noto Serif CJK KR", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all;
}

/* atmosphere: faint ledger grid + two glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(62, 224, 161, .09), transparent 70%),
    radial-gradient(760px 420px at 92% -4%, rgba(111, 168, 255, .08), transparent 68%),
    radial-gradient(900px 600px at 50% 110%, rgba(240, 184, 102, .045), transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 560px);
  mask-image: linear-gradient(to bottom, #000 0, transparent 560px);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.04em; line-height: 1.16; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mint); color: #04120c; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--mint); color: #04120c;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
  font-weight: 700;
}
.skip:focus { left: 16px; }

.num, .mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------------- ticker ---------------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, .7);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.ticker .wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  height: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker .wrap > * { flex: none; white-space: nowrap; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.ticker b { color: var(--text-2); font-weight: 600; }
.ticker .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(62, 224, 161, .12); flex: none; }
.ticker .sep { width: 1px; height: 10px; background: var(--line-2); flex: none; }
.ticker .live { color: var(--mint); }

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 11, 16, .84);
  backdrop-filter: saturate(1.15) blur(14px);
  -webkit-backdrop-filter: saturate(1.15) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--mint-2), var(--mint) 55%, #18b67f);
  color: #04120c;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: 0 0 0 1px rgba(62, 224, 161, .35), 0 6px 18px -8px rgba(62, 224, 161, .6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 17px; letter-spacing: -.05em; }
.brand-text span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .02em;
  margin-top: 2px;
}
.topnav { display: flex; align-items: center; gap: 2px; }
.topnav a {
  font-size: 13px;
  color: var(--text-2);
  padding: 8px 11px;
  border-radius: 9px;
}
.topnav a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.topnav a[aria-current="page"] { color: var(--mint); font-weight: 700; }
.topnav .lang {
  margin-left: 6px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 6px 9px;
}

/* ---------------- hero ---------------- */
.hero { padding: 46px 0 8px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(62, 224, 161, .8);
}
.hero h1 {
  font-size: clamp(32px, 5.4vw, 52px);
  margin: 16px 0 14px;
  max-width: 15em;
  letter-spacing: -.055em;
  line-height: 1.08;
}
.hero h1 em {
  font-style: normal;
  color: var(--mint);
  white-space: nowrap;
  text-shadow: 0 0 40px rgba(62, 224, 161, .25);
}
.lede {
  max-width: 44em;
  color: var(--text-2);
  font-size: 16.5px;
  line-height: 1.62;
}
.lede strong { color: var(--text); font-weight: 700; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.facts b { font-weight: 700; color: var(--text); }
.facts .is-accent { border-color: var(--mint-line); color: var(--mint); background: var(--mint-soft); }

/* ---------------- tabs ---------------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 30px 0 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(16, 21, 29, .62);
}
.tab {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 10px 11px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.025em;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.tab i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: .04em;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.tab[aria-selected="true"] {
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line-2), 0 8px 24px -18px #000;
}
.tab[aria-selected="true"] i { color: var(--mint); }
.tab .tab-sub { display: none; font-size: 11px; color: var(--faint); font-weight: 500; }

/* ---------------- layout ---------------- */
.app { padding: 24px 0 8px; }
.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 22px;
  align-items: start;
}
.panel[hidden] { display: none; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 120px), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.inputs { padding: 24px 24px 20px; }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 19px; letter-spacing: -.045em; }
.panel-head p { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.panel-head .tag {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid var(--mint-line);
  border-radius: 6px;
  padding: 4px 8px;
  margin-top: 2px;
  white-space: nowrap;
}

/* ---------------- fields ---------------- */
.field { padding: 19px 0 2px; }
.field + .field { border-top: 1px solid var(--line); }
.field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.field-head label, .field-head .flabel {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.field-head .hint { font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.field-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted);
  min-height: 17px;
}
.field-foot b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.field-foot .warn { color: var(--amber); }

.input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0 13px;
  height: 52px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-row:focus-within {
  border-color: var(--mint);
  background: #0a1114;
  box-shadow: 0 0 0 3px rgba(62, 224, 161, .09);
}
.input-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.035em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  outline: none;
  padding: 8px 0;
  text-align: right;
  -moz-appearance: textfield;
}
.input-row input::-webkit-outer-spin-button,
.input-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-row .unit { font-size: 12.5px; color: var(--muted); font-weight: 600; flex: none; padding-left: 2px; }
.input-row .prefix { font-size: 15px; color: var(--muted); font-weight: 600; flex: none; }
.input-row.is-sm { height: 44px; }
.input-row.is-sm input { font-size: 16px; font-weight: 700; }

/* range */
.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  margin: 8px 0 0;
  background: transparent;
  cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--mint) 0%, var(--mint) var(--p, 30%), rgba(255, 255, 255, .13) var(--p, 30%), rgba(255, 255, 255, .13) 100%);
}
.range::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .13); }
.range::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--mint); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px; height: 17px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--mint);
  box-shadow: 0 0 0 4px rgba(62, 224, 161, .12);
}
.range::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--mint);
}
.range:focus-visible { outline-offset: 5px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chips button {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  transition: all .14s ease;
}
.chips button:hover { border-color: var(--line-2); color: var(--text); }
.chips button[aria-pressed="true"] { background: var(--mint-soft); border-color: var(--mint-line); color: var(--mint); }

/* switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  width: 40px; height: 23px; border-radius: 999px;
  background: rgba(255, 255, 255, .13); position: relative; flex: none;
  transition: background .16s ease;
}
.switch .track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #e9eef6; box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  transition: transform .16s ease;
}
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::after { transform: translateX(17px); background: #04120c; }
.switch input:focus-visible + .track { outline: 2px solid var(--mint); outline-offset: 2px; }
.switch .sw-note { font-size: 11px; color: var(--faint); font-weight: 500; }

/* segmented */
.seg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg-2);
  max-width: 100%;
}
.seg button {
  appearance: none;
  border: 0;
  background: none;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -.01em;
  transition: background .14s ease, color .14s ease;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--mint); }

.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pair-item { min-width: 0; }
.pair-item .field-head { margin-bottom: 8px; }

/* advanced disclosure */
.adv { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.adv summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 0 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  position: relative;
}
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  font-weight: 400;
  color: var(--mint);
}
.adv[open] summary::after { content: "−"; }
.adv summary:hover { color: var(--text-2); }

/* ---------------- result ---------------- */
.result {
  position: sticky;
  position: -webkit-sticky;
  top: 84px;
  padding: 22px 24px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(520px 260px at 88% -10%, rgba(62, 224, 161, .11), transparent 70%),
    linear-gradient(180deg, #121924, #0d131b);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 70px -46px rgba(0, 0, 0, 1);
  overflow: hidden;
}
.result::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  opacity: .85;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.result-top .rlabel {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stamp {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--mint);
  border: 1px solid var(--mint-line);
  border-radius: 4px;
  padding: 3px 6px;
  transform: rotate(-3deg);
  opacity: .8;
  white-space: nowrap;
}
.pill {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid var(--mint-line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.pill.is-warn { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-line); }
.pill.is-bad { color: var(--rose); background: var(--rose-soft); border-color: var(--rose-line); }
.pill.is-blue { color: var(--blue); background: var(--blue-soft); border-color: var(--blue-line); }

.big-out {
  font-size: clamp(32px, 4.9vw, 42px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.06;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-wrap: wrap;
}
.big-out .cur { font-size: .46em; font-weight: 700; color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.big-out .prefix { font-size: .5em; font-weight: 700; color: var(--muted); letter-spacing: 0; align-self: flex-start; margin-top: 5px; }
.big-out.is-pos { color: var(--mint); }
.big-out.is-neg { color: var(--rose); }
.res-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.res-sub b { color: var(--text-2); font-weight: 700; font-variant-numeric: tabular-nums; }

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  margin-top: 18px;
}
.kpi { background: rgba(8, 11, 16, .45); padding: 11px 11px 12px; min-width: 0; }
.kpi span {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi b {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi em { display: block; font-style: normal; font-size: 10px; color: var(--faint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.is-pos b { color: var(--mint); }
.kpi.is-neg b { color: var(--rose); }
.kpi.is-amber b { color: var(--amber); }
.kpi.is-blue b { color: var(--blue); }

.ledger { margin-top: 18px; border-top: 1px solid var(--line); }
.lrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .085);
  font-size: 12.5px;
}
.lrow:last-child { border-bottom: 0; }
.lrow .ll { color: var(--muted); display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.lrow .ll em { font-style: normal; font-size: 10px; color: var(--faint); white-space: nowrap; }
.lrow .lv { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em; }
.lrow.is-total { border-bottom: 0; border-top: 1px solid var(--line-2); margin-top: 4px; padding-top: 11px; }
.lrow.is-total .ll { color: var(--text-2); font-weight: 700; }
.lrow.is-total .lv { font-weight: 800; font-size: 14px; }
.lrow .lv.is-pos { color: var(--mint); }
.lrow .lv.is-neg { color: var(--rose); }
.lrow .lv.is-amber { color: var(--amber); }
.lrow .lv.is-blue { color: var(--blue); }

/* stacked bar */
.comp { margin-top: 18px; }
.comp-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 10.5px; color: var(--faint); letter-spacing: .04em; margin-bottom: 7px; }
.comp-bar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: var(--line); gap: 2px; }
.comp-bar i { display: block; height: 100%; transition: width .4s cubic-bezier(.2, .7, .3, 1); min-width: 0; }
.comp-key { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-top: 10px; }
.comp-key div { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); min-width: 0; }
.comp-key i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.comp-key span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-key b { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* chart */
.chart { margin-top: 16px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.chart-head .ct { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.legend { display: flex; gap: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted); }
.legend i { width: 12px; height: 2px; border-radius: 2px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-family: var(--mono); font-size: 13px; letter-spacing: .02em; paint-order: stroke; stroke: #0d131b; stroke-width: 3px; stroke-linejoin: round; }
.chart .line-buy { fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-rent { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-dasharray: 5 4; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: url(#gMint); opacity: .5; }
.chart .dot { stroke: var(--panel); stroke-width: 2; }

.donut-row { display: flex; align-items: center; gap: 16px; margin: 16px 0 2px; }
.donut { width: 118px; height: 118px; flex: none; position: relative; }
.donut svg { transform: rotate(-90deg); display: block; }
.donut .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.donut .center b { font-size: 17px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.donut .center span { display: block; font-size: 8.5px; color: var(--muted); letter-spacing: .06em; margin-top: 2px; }
.donut-legend { flex: 1; min-width: 0; display: grid; gap: 5px; }
.donut-legend div { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.donut-legend i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.donut-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend b { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* table */
.table-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.table-box .tb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.table-box .tb-head span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.table-box .tb-head em { font-style: normal; font-size: 10px; color: var(--faint); }
.table-scroll { max-height: 232px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.mini-table th {
  position: sticky;
  top: 0;
  background: #0e141c;
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 5px 0;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.mini-table th:first-child { text-align: left; }
.mini-table td {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  white-space: nowrap;
}
.mini-table td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.mini-table tr.is-me td { color: var(--mint); background: var(--mint-soft); font-weight: 700; }
.mini-table tr.is-me td:first-child::after { content: " ←"; font-size: 9px; }

/* note */
.note-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .022);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.note-box b { color: var(--text-2); font-weight: 700; }
.note-box.is-warn { background: var(--amber-soft); border-color: var(--amber-line); color: #e6c08b; }
.note-box.is-warn b { color: var(--amber); }
.note-box.is-bad { background: var(--rose-soft); border-color: var(--rose-line); color: #f0a1b0; }
.note-box.is-bad b { color: var(--rose); }

.actions { display: flex; gap: 7px; margin-top: 16px; }
.btn {
  appearance: none;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .14s ease;
  flex: 1;
  white-space: nowrap;
}
.btn:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .06); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mint); border-color: var(--mint); color: #04120c; }
.btn-primary:hover { background: var(--mint-2); border-color: var(--mint-2); color: #04120c; }
.btn svg { width: 14px; height: 14px; flex: none; }

/* ---------------- guide / content ---------------- */
.guide { padding: 58px 0 20px; border-top: 1px solid var(--line); margin-top: 54px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 54px; }
.guide h2 { font-size: clamp(22px, 3vw, 29px); margin-bottom: 10px; letter-spacing: -.045em; }
.guide h3 { font-size: 16px; margin: 26px 0 7px; letter-spacing: -.03em; }
.guide p { color: var(--text-2); font-size: 14.5px; margin-top: 9px; line-height: 1.68; }
.guide p strong { font-weight: 700; color: var(--text); }
.guide ul { margin: 9px 0 0; padding-left: 17px; color: var(--text-2); font-size: 14.5px; }
.guide li { margin-top: 5px; }
.guide .sec-num { font-family: var(--mono); font-size: 10.5px; color: var(--mint); letter-spacing: .12em; display: block; margin-bottom: 7px; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
.rate-table { width: 100%; min-width: 340px; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rate-table caption { text-align: left; font-size: 11px; color: var(--faint); padding-bottom: 7px; }
.rate-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line-2);
  padding: 0 8px 7px 0;
  font-weight: 600;
  white-space: nowrap;
}
.rate-table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.rate-table td:last-child, .rate-table th:last-child { text-align: right; padding-right: 0; }
.rate-table td b { color: var(--text); font-weight: 700; }
.rate-table tr.is-key td { color: var(--mint); background: var(--mint-soft); }

.faq { margin-top: 22px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 30px 14px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.025em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 3px; top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  font-weight: 400;
  color: var(--mint);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-a { padding: 0 18px 15px 0; font-size: 13px; color: var(--muted); line-height: 1.65; }
.faq .faq-a b { color: var(--text-2); }

/* guide link cards */
.glink-list { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 720px) { .glink-list { grid-template-columns: 1fr 1fr; } }
.glink-list a {
  display: block;
  padding: 13px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.glink-list a:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .04); transform: translateY(-1px); }
.glink-list .k { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--mint); }
.glink-list b { display: block; font-size: 13.5px; color: var(--text); letter-spacing: -.02em; margin-top: 3px; }
.glink-list small { display: block; font-size: 11px; line-height: 1.55; color: var(--faint); margin-top: 3px; }

/* ---------------- footer ---------------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 42px; margin-top: 42px; color: var(--muted); font-size: 12px; position: relative; z-index: 1; }
.xlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.xlink {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, .02);
  transition: all .15s ease;
}
.xlink:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .045); }
.xlink .xmark {
  width: 32px; height: 32px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  background: rgba(255, 255, 255, .07); color: var(--text);
  border: 1px solid var(--line-2);
}
.xlink .xmark.is-mint { background: var(--mint-soft); color: var(--mint); border-color: var(--mint-line); }
.xlink .xmark.is-amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.xlink .xmark.is-blue { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.xlink small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.xlink b { display: block; font-size: 13px; color: var(--text); letter-spacing: -.02em; margin-top: 2px; }
.xlink .arrow { margin-left: auto; color: var(--faint); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 13px; }
.foot-links a { font-weight: 600; color: var(--text-2); }
.foot-disc { line-height: 1.7; max-width: 64em; }
.foot-disc p + p { margin-top: 6px; }
.copy { margin-top: 16px; font-size: 11px; color: var(--faint); }

/* ---------------- sticky mini bar ---------------- */
.minibar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  background: rgba(10, 14, 20, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line-2);
}
.minibar .mb-label { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.minibar .mb-value { font-size: 20px; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--mint); }
.minibar .mb-value small { font-size: 11px; font-weight: 600; opacity: .65; margin-left: 2px; color: var(--text-2); }
.minibar a {
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--mint-line);
  color: var(--mint);
  background: var(--mint-soft);
  border-radius: 999px;
  padding: 7px 11px;
  white-space: nowrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  background: var(--mint);
  color: #04120c;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 17px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
  max-width: calc(100vw - 36px);
  text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- legal pages ---------------- */
.doc { max-width: 780px; padding: 40px 0 20px; margin: 0 auto; }
.doc h1 { font-size: clamp(27px, 4vw, 37px); margin-bottom: 10px; }
.doc .updated { font-family: var(--mono); font-size: 11px; color: var(--faint); letter-spacing: .06em; }
.doc h2 { font-size: 18px; margin: 32px 0 8px; letter-spacing: -.035em; }
.doc h3 { font-size: 15px; margin: 20px 0 5px; }
.doc p, .doc li { color: var(--text-2); font-size: 14.5px; margin-top: 9px; line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc .lead { font-size: 16px; color: var(--text); }
.doc .box {
  margin-top: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  border-radius: 11px;
  padding: 15px 17px;
  font-size: 13px;
  color: var(--muted);
}
.doc .box b { color: var(--text-2); }
.doc a.inline { color: var(--mint); border-bottom: 1px solid var(--mint-line); }

/* ---------------- article (guides) ---------------- */
.article { padding: 38px 0 10px; max-width: 820px; margin: 0 auto; }
.crumbs { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.crumbs a:hover { color: var(--mint); }
.crumbs span { opacity: .5; }
.article .kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-top: 26px; }
.article h1 { font-size: clamp(29px, 4.6vw, 44px); margin: 12px 0 12px; letter-spacing: -.055em; line-height: 1.1; }
.article .dek { font-size: 16.5px; color: var(--text-2); line-height: 1.66; max-width: 40em; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.byline b { color: var(--text-2); font-weight: 600; }
.toc { margin: 22px 0 4px; border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px; background: rgba(255, 255, 255, .02); }
.toc .toc-t { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.toc a:hover { color: var(--mint); }
.article h2 { font-size: clamp(21px, 3vw, 27px); margin: 44px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); letter-spacing: -.045em; }
.article h2 .n { font-family: var(--mono); font-size: 11px; color: var(--mint); letter-spacing: .1em; margin-right: 9px; vertical-align: 3px; }
.article h3 { font-size: 16.5px; margin: 26px 0 6px; }
.article p { color: var(--text-2); font-size: 15px; line-height: 1.78; margin-top: 12px; }
.article p strong { color: var(--text); font-weight: 700; }
.article ul, .article ol { color: var(--text-2); font-size: 15px; line-height: 1.75; padding-left: 20px; margin: 12px 0 0; }
.article li { margin-top: 6px; }
.article li strong { color: var(--text); }
.article .lead { font-size: 16.5px; color: var(--text); }
.article blockquote { margin: 18px 0 0; padding: 14px 18px; border-left: 2px solid var(--mint); background: var(--mint-soft); border-radius: 0 9px 9px 0; font-size: 14.5px; color: var(--text-2); }
.article .callout { margin: 18px 0 0; padding: 13px 16px; border: 1px solid var(--amber-line); background: var(--amber-soft); border-radius: 10px; font-size: 13.5px; color: #e7c493; line-height: 1.65; }
.article .callout b { color: var(--amber); }
.calc-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--mint-line);
  background: var(--mint-soft); border-radius: 11px;
}
.calc-cta b { display: block; font-size: 13.5px; color: var(--text); }
.calc-cta span { font-size: 11.5px; color: var(--muted); }
.calc-cta a { font-size: 12px; font-weight: 700; color: #04120c; background: var(--mint); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.calc-cta a:hover { background: var(--mint-2); }
.article .source { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); line-height: 1.7; }
.article .source b { color: var(--muted); }
.article .related { margin-top: 30px; }
.article .related h2 { border-top: 0; margin-top: 0; padding-top: 0; font-size: 18px; }
.article .next { display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 700px) { .article .next { grid-template-columns: 1fr 1fr; } }


/* ---------------- select + clickable rows ---------------- */
.input-row select {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  outline: none;
  padding: 8px 20px 8px 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237f8a9b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  text-overflow: ellipsis;
}
.input-row select option { background: #10151d; color: var(--text); }
.mini-table tbody tr[data-rate] { cursor: pointer; }
.mini-table tbody tr[data-rate]:hover td { color: var(--mint); background: rgba(62, 224, 161, .05); }


/* ---------------- guide hub cards ---------------- */
.guides-grid { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 720px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
.gcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 120px), var(--panel);
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}
.gcard:hover { border-color: var(--line-2); transform: translateY(-2px); background: var(--panel-2); }
.gcard .gk { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--mint); display: flex; justify-content: space-between; gap: 8px; }
.gcard .gk em { font-style: normal; color: var(--faint); }
.gcard h2 { font-size: 18px; margin: 9px 0 6px; letter-spacing: -.04em; line-height: 1.28; }
.gcard p { font-size: 13px; color: var(--muted); line-height: 1.62; margin: 0; }
.gcard .gm { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--faint); }


/* ---------------- reserved ad slots ---------------- */
.ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 92px;
  margin: 14px 0 0;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .018) 0 10px, transparent 10px 20px),
    rgba(255, 255, 255, .012);
  overflow: hidden;
}
.ad-top { margin: 18px 0 0; }
.ad-bottom { min-height: 160px; margin: 26px 0 0; }
.ad-label {
  position: absolute;
  top: 8px; left: 12px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .2em;
  color: var(--faint);
  opacity: .85;
}
.ad-body { text-align: center; padding: 16px 12px 10px; }
.ad-body span { display: block; font-size: 12px; color: var(--faint); letter-spacing: .02em; }
.ad-body small { display: block; margin-top: 4px; font-size: 10px; color: var(--faint); opacity: .65; }
@media (max-width: 660px) {
  .ad-top { min-height: 100px; }
  .ad-bottom { min-height: 180px; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .panel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .result { position: relative; top: auto; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero { padding-top: 32px; }
  .topnav a.nav-about { display: none; }
}

@media (max-width: 660px) {
  body { font-size: 15px; padding-bottom: 72px; }
  .wrap { padding: 0 16px; }
  .ticker .wrap { height: 29px; gap: 12px; font-size: 9.5px; -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .topbar .wrap { height: 56px; }
  .brand-mark { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .brand-text b { font-size: 15.5px; }
  .brand-text span { font-size: 9.5px; }
  .topnav a { padding: 7px 8px; font-size: 12px; }
  .topnav .lang { margin-left: 2px; }

  .hero { padding-top: 24px; }
  .hero h1 { font-size: 27px; margin: 11px 0 9px; line-height: 1.18; }
  .lede { font-size: 13.6px; line-height: 1.56; }
  .facts { gap: 5px; margin-top: 13px; }
  .facts li { font-size: 10.5px; padding: 4px 9px; }

  .tabs { margin-top: 20px; padding: 4px; gap: 3px; }
  .tab { flex-direction: column; gap: 2px; font-size: 12px; padding: 9px 3px 8px; align-items: center; justify-content: center; line-height: 1.25; }
  .tab i { font-size: 9px; }
  .tab .tab-sub { display: none; }

  .app { padding-top: 16px; }
  .inputs, .result { padding: 19px 17px 17px; }
  .panel-head h2 { font-size: 17px; }
  .panel-head p { font-size: 11px; }
  .panel-head .tag { display: none; }
  .field { padding-top: 16px; }
  .field-head label { font-size: 13px; }
  .field-head .hint { font-size: 10px; }
  .input-row { height: 49px; padding: 0 11px; }
  .input-row input { font-size: 20px; }
  .input-row .unit { font-size: 11.5px; }
  .seg button { padding: 8px 9px; font-size: 11px; }
  .chips button { padding: 5px 9px; font-size: 11px; }
  .field-pair { gap: 10px; }

  .big-out { font-size: 34px; }
  .res-sub { font-size: 11.5px; }
  .kpis { margin-top: 16px; }
  .kpi { padding: 10px 9px 11px; }
  .kpi span { font-size: 8.5px; letter-spacing: .06em; }
  .kpi b { font-size: 15px; }
  .kpi em { font-size: 9px; }
  .lrow { font-size: 12px; padding: 8px 0; }

  .donut-row { gap: 12px; }
  .donut { width: 100px; height: 100px; }
  .donut .center b { font-size: 15px; }
  .comp-key { grid-template-columns: 1fr; gap: 4px; }
  .actions { gap: 5px; }
  .btn { padding: 10px 6px; font-size: 11.5px; }
  .btn svg { width: 13px; height: 13px; }

  .rate-table { min-width: 0; font-size: 11.5px; }
  .rate-table th { font-size: 8.5px; padding: 0 5px 6px 0; }
  .rate-table td { padding: 7px 5px 7px 0; word-break: keep-all; }
  .mini-table th, .mini-table td { font-size: 10.5px; }

  .minibar { display: flex; }
  .guide { padding-top: 38px; margin-top: 34px; }
  .xlinks { grid-template-columns: 1fr; }
  .doc { padding-top: 28px; }
  .article { padding-top: 26px; }
  .article h1 { font-size: 29px; }
  .article .dek { font-size: 14.5px; }
  .article p, .article li, .article ul, .article ol { font-size: 14.5px; }
  .article h2 { margin-top: 36px; }
  .toc { padding: 12px 14px; }
}

@media (min-width: 981px) {
  .minibar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

@media print {
  .topbar, .ticker, .minibar, .actions, .tabs, .site-foot, .guide { display: none; }
  body { background: #fff; color: #111; }
  body::before, body::after { display: none; }
  .card, .result { box-shadow: none; background: #fff; border-color: #ddd; }
  .result { position: static; }
}
