/* Kumandang.com — palet nila & kunyit, huruf Plus Jakarta Sans */
:root {
  --nila: #22306e;
  --nila-2: #33449a;
  --nila-soft: #e8ebf8;
  --kunyit: #e9a90e;
  --kunyit-soft: #fdf3d8;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f1f3fa;
  --line: #dce0ee;
  --ink: #141a33;
  --ink-2: #4c5578;
  --ok: #1d7a4e;
  --ok-soft: #e1f4ea;
  --bad: #b3261e;
  --bad-soft: #fbe4e2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 26, 51, .06), 0 6px 24px -12px rgba(34, 48, 110, .22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nila: #a9b6ff;
    --nila-2: #c2cbff;
    --nila-soft: #222a55;
    --kunyit: #f5bd3a;
    --kunyit-soft: #3a2f12;
    --bg: #0f1330;
    --surface: #171c3d;
    --surface-2: #1e2448;
    --line: #2e3563;
    --ink: #e9ecfa;
    --ink-2: #a7aed0;
    --ok: #6fd3a0;
    --ok-soft: #173a2b;
    --bad: #ff8f86;
    --bad-soft: #43201e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --nila: #a9b6ff;
  --nila-2: #c2cbff;
  --nila-soft: #222a55;
  --kunyit: #f5bd3a;
  --kunyit-soft: #3a2f12;
  --bg: #0f1330;
  --surface: #171c3d;
  --surface-2: #1e2448;
  --line: #2e3563;
  --ink: #e9ecfa;
  --ink-2: #a7aed0;
  --ok: #6fd3a0;
  --ok-soft: #173a2b;
  --bad: #ff8f86;
  --bad-soft: #43201e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, canvas, video { max-width: 100%; }
a { color: var(--nila-2); text-underline-offset: 3px; }
:root:not([data-theme="dark"]) a { color: #2b3c94; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--nila-2); } }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--kunyit); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--kunyit); color: #141a33; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 10px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--nila) !important; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.logo-mark { width: 30px; height: 30px; color: var(--nila); }
.head-nav { display: flex; gap: 4px; }
.head-nav a { text-decoration: none; color: var(--ink) !important; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.head-nav a:hover { background: var(--surface-2); }
.head-search { margin-left: auto; flex: 0 1 300px; }
.head-search input { width: 100%; height: 40px; border-radius: 999px; padding: 0 16px; background: var(--surface-2); border: 1px solid transparent; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .head-row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .head-nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -6px; }
  .head-nav a { padding: 6px 10px; white-space: nowrap; }
  .head-search { order: 4; flex: 1 1 100%; }
  .theme-btn { margin-left: auto; }
  .site-head { position: static; }
}

/* ---------- Breadcrumb ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 18px auto 0; font-size: .85rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.crumbs a { color: var(--ink-2) !important; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-foot { margin-top: 72px; background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 28px; }
.foot-grid h2 { font-size: .95rem; margin-bottom: .6em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-grid a { color: var(--ink-2) !important; text-decoration: none; }
.foot-grid a:hover { color: var(--ink) !important; text-decoration: underline; }
.foot-brand p { color: var(--ink-2); max-width: 34ch; margin-top: 10px; }
.copy { color: var(--ink-2); font-size: .82rem; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Form controls ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="url"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
textarea.code, .code { font-family: var(--mono); font-size: .88rem; }
input:focus, select:focus, textarea:focus { border-color: var(--nila-2); outline: 2px solid color-mix(in srgb, var(--kunyit) 70%, transparent); outline-offset: 0; }
input[type="color"] { width: 52px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
input[type="range"] { width: 100%; accent-color: var(--nila); height: 28px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--nila); width: 18px; height: 18px; margin: 0; flex: none; }
input[type="file"] { width: 100%; padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
label, .label { display: block; font-weight: 650; font-size: .9rem; margin-bottom: 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; margin: 0 16px 8px 0; cursor: pointer; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--ink-2); margin-top: 5px; }
.grid { display: grid; gap: 14px; }
.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)); }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } }
.g2 > .field, .g3 > .field, .g4 > .field { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--nila); color: #fff;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .08s;
  white-space: nowrap;
}
:root[data-theme="dark"] .btn:not(.ghost):not(.play):not(.danger) { color: #0f1330; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost):not(.play):not(.danger) { color: #0f1330; } }
.btn:hover { background: var(--nila-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.play { background: var(--kunyit); color: #1b1606; }
.btn.play:hover { background: #f4b928; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn { width: 40px; padding: 0; }

/* Segmented control */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 14px; margin-bottom: 16px; max-width: 100%; }
.seg button, .seg label { flex: 1 1 auto; border: 0; background: transparent; padding: 7px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; margin: 0; color: var(--ink-2); }
.seg button[aria-pressed="true"], .seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 26, 51, .14); }

/* ---------- Page layout ---------- */
.tool-head { margin-top: 18px; max-width: 820px; margin-left: 0; }
.tool-head.wrap { margin-left: auto; margin-right: auto; max-width: 1120px; }
.tool-head .lead { font-size: 1.08rem; color: var(--ink-2); max-width: 68ch; }
.tool-wrap { margin-top: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }
.tool { max-width: 860px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 48px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; gap: 28px; } }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.page-prose { margin-top: 24px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--nila-soft); color: var(--nila); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }
.related h2 { font-size: 1.1rem; }
.link-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 2px; }
.link-list a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; }
.link-list a:hover { background: var(--surface); }
.link-list strong { display: block; color: var(--ink); font-size: .95rem; }
.link-list span { display: block; color: var(--ink-2); font-size: .82rem; line-height: 1.4; }
.tts-cta { display: block; text-decoration: none; padding: 16px; border-radius: var(--radius); background: var(--nila); color: #fff !important; margin-bottom: 14px; }
.tts-cta strong { display: block; font-size: 1.02rem; }
.tts-cta span { font-size: .87rem; opacity: .85; }
:root[data-theme="dark"] .tts-cta { color: #0f1330 !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tts-cta { color: #0f1330 !important; } }
.more-links { display: grid; gap: 6px; font-size: .9rem; }

/* ---------- Directory ---------- */
.dir-filter { max-width: 520px; margin: 8px 0 28px; }
.dir-cat { margin-bottom: 36px; }
.dir-cat h2 a { color: var(--ink) !important; text-decoration: none; }
.dir-cat h2 a:hover { text-decoration: underline; }
.count { font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.tool-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.tool-index li { border-bottom: 1px solid var(--line); }
.tool-index a { display: block; padding: 12px 4px; text-decoration: none; height: 100%; }
.tool-index a:hover strong { text-decoration: underline; color: var(--nila-2); }
.tool-index strong { display: block; color: var(--ink); font-weight: 700; }
.tool-index span { display: block; color: var(--ink-2); font-size: .85rem; line-height: 1.45; margin-top: 2px; }
.tool-index-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.dir-results { margin-bottom: 40px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; font-size: .9rem; font-weight: 600; }
.chip:hover { border-color: var(--nila-2); }
.cat-nav { margin-top: 40px; }

/* ---------- Results & output ---------- */
.result { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--nila-soft); }
.result:empty { display: none; }
.big { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--nila); word-break: break-word; }
.big-sub { color: var(--ink-2); font-size: .95rem; margin-top: 4px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 12px 0 0; }
.kv dt { color: var(--ink-2); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 700; text-align: right; word-break: break-word; }
.out { width: 100%; min-height: 120px; background: var(--surface-2); }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input { flex: 1; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--kunyit-soft); color: #8a5d00; }
:root[data-theme="dark"] .badge.warn { color: var(--kunyit); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.warn { color: var(--kunyit); } }
.alert { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--kunyit-soft); font-size: .92rem; margin: 12px 0; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.t th { background: var(--surface-2); font-weight: 700; font-size: .85rem; }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.hl td { background: var(--kunyit-soft); }
.num { font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 16px; }
.stats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.stats b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--nila); font-variant-numeric: tabular-nums; }
.stats span { font-size: .8rem; color: var(--ink-2); }
.list-out { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.list-out li { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.mark-add { background: var(--ok-soft); color: var(--ok); text-decoration: none; border-radius: 3px; }
.mark-del { background: var(--bad-soft); color: var(--bad); border-radius: 3px; }
mark { background: var(--kunyit-soft); color: inherit; border-bottom: 2px solid var(--kunyit); border-radius: 2px; }
.preview-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface); overflow: auto; }
.checker { background-image: linear-gradient(45deg, #ccd 25%, transparent 25%), linear-gradient(-45deg, #ccd 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccd 75%), linear-gradient(-45deg, transparent 75%, #ccd 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-color: #eef; }
canvas.wave { width: 100%; height: 110px; display: block; background: var(--surface-2); border-radius: var(--radius-sm); }
.meter { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), var(--kunyit) 70%, var(--bad)); transition: width .08s linear; }
.card-big { min-height: 180px; display: grid; place-items: center; text-align: center; padding: 28px 20px; border-radius: var(--radius); background: var(--nila-soft); font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); font-weight: 700; line-height: 1.4; }
.timer-face { font-size: clamp(3rem, 2rem + 8vw, 6.5rem); font-weight: 800; text-align: center; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--nila); margin: 10px 0 18px; }
.center { text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .92rem; font-weight: 600; z-index: 200; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------- Home / TTS ---------- */
.hero { padding-top: 28px; padding-bottom: 8px; }
.hero h1 { max-width: 20ch; }
.hero .lead { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; }
.tts { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; padding: 0; overflow: hidden; }
.tts-main { padding: clamp(16px, 3vw, 26px); border-right: 1px solid var(--line); }
.tts-side { padding: clamp(16px, 3vw, 22px); background: var(--surface-2); }
@media (max-width: 860px) { .tts { grid-template-columns: 1fr; } .tts-main { border-right: 0; border-bottom: 1px solid var(--line); } }
.tts textarea { min-height: 220px; font-size: 1.08rem; border: 0; padding: 4px 2px; background: transparent; outline: none; resize: vertical; }
.tts textarea:focus { outline: none; border: 0; }
.tts-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.tts-count { margin-left: auto; font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.play-ring { position: relative; display: inline-grid; place-items: center; }
.play-ring .btn.play { width: 64px; height: 64px; min-height: 64px; padding: 0; border-radius: 50%; position: relative; z-index: 1; }
.play-ring .btn.play svg { width: 26px; height: 26px; }
.play-ring::before, .play-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--kunyit); opacity: 0; pointer-events: none; }
.speaking .play-ring::before { animation: gema 1.6s ease-out infinite; }
.speaking .play-ring::after { animation: gema 1.6s ease-out .8s infinite; }
@keyframes gema { from { transform: scale(1); opacity: .7; } to { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .speaking .play-ring::before, .speaking .play-ring::after { animation: none; opacity: .5; transform: scale(1.25); } }
.reading { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--kunyit-soft); font-size: 1rem; line-height: 1.6; }
.reading:empty { display: none; }
.tts-side .field { margin-bottom: 14px; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; }
.range-row output { font-size: .85rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dl-box { margin-top: 14px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.dl-box h3 { font-size: 1rem; margin-bottom: 6px; }
.dl-box p { font-size: .88rem; color: var(--ink-2); }
.home-sec { margin-top: 56px; }
.home-sec > h2 { margin-bottom: 14px; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.history li { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 6px 6px 12px; }
.history li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.voice-note { font-size: .82rem; color: var(--ink-2); margin-top: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Print ---------- */
@media print {
  .site-head, .site-foot, .crumbs, .share-row, .info-grid, .tool-head, .no-print, .toast, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { border: 0; box-shadow: none; padding: 0; }
  .print-only { display: block !important; }
  .tool-wrap:has(.print-area) .tool *:not(.print-area, .print-area *) { visibility: hidden; }
  .tool-wrap:has(.print-area) .tool .no-print { display: none !important; }
  .print-area { visibility: visible; position: absolute; left: 0; top: 0; width: 100%; max-width: none !important; }
  .print-area * { visibility: visible; }
  details:has(.print-area) { display: block; }
}
.print-only { display: none; }
button.chip { cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.4; }
.chip.on, .chip[aria-pressed="true"] { background: var(--nila); color: var(--surface) !important; border-color: var(--nila); }
@media print {
  :root { --surface: #fff !important; --surface-2: #f2f2f2 !important; --ink: #000 !important; --ink-2: #555 !important; --line: #ccc !important; --nila: #22306e !important; }
}
label.btn { margin-bottom: 0; }
.grid + .seg, .grid + .row, .grid + label.check { margin-top: 14px; }
