/* swift.id: one stylesheet for every page. Light and dark follow the system setting.
   Design rules: neutral greys and one blue for actions and links. Hairlines, not shadows or tinted boxes.
   One small radius. Hierarchy comes from size and weight. Icons only where they help an action. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --text: #1b1b1b;
  --muted: #5e5e5e;
  --border: #e3e3e3;
  --border-strong: #c2c2c2;
  --accent: #1d5bd6;
  --accent-hover: #164aaf;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefb;
  --accent-text: #1a52c2;
  --ok: #17734a;
  --ok-soft: #e5f3eb;
  --warn: #855600;
  --warn-soft: #fbf2da;
  --danger: #bf2c27;
  --danger-soft: #fbe9e8;
  --focus: #1d5bd6;
  --shadow: 0 2px 8px rgb(0 0 0 / 0.16);
  --radius: 8px;
  --radius-sm: 6px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151515;
    --surface: #1a1a1a;
    --surface-2: #242424;
    --text: #ececec;
    --muted: #a6a6a6;
    --border: #2f2f2f;
    --border-strong: #4a4a4a;
    --accent: #8db1ff;
    --accent-hover: #abc5ff;
    --accent-ink: #0c1830;
    --accent-soft: #1e2a42;
    --accent-text: #9fbdff;
    --ok: #5cc98f;
    --ok-soft: #15291e;
    --warn: #e5b650;
    --warn-soft: #322912;
    --danger: #ff8a84;
    --danger-soft: #3a1b1a;
    --focus: #8db1ff;
    --shadow: 0 2px 8px rgb(0 0 0 / 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem); overflow-wrap: break-word; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-text); text-underline-offset: 2px; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }
.i { width: 22px; height: 22px; flex: none; }

/* Header & footer */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; }
.header-end { display: flex; align-items: center; gap: 20px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }
/* With a guides link, three links and the language menu don't fit a phone; About stays in the footer. */
@media (max-width: 419px) { .nav a.nav-about:nth-child(3) { display: none; } }
@media (max-width: 359px) { .nav a.nav-about { display: none; } }
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); padding: 24px 0 32px; font-size: 0.92rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover, .footer-langs a:hover { text-decoration: underline; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 0; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a[aria-current] { color: var(--text); font-weight: 600; }

/* Language menu: a <details>, so it works without JavaScript. */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; }
.lang summary:hover { border-color: var(--text); }
.lang ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; list-style: none; margin: 0; padding: 6px 0; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lang a { display: block; padding: 8px 14px; color: var(--text); text-decoration: none; }
.lang a:hover { background: var(--surface-2); }
.lang a[aria-current] { font-weight: 650; }

/* Home */
.hero { padding: 56px 0 0; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3rem); letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 14px; }
.hero-lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin-bottom: 0; }
.search { position: relative; max-width: 520px; margin-top: 28px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input[type="search"] { height: 48px; padding: 0 14px 0 44px; font-size: 1.02rem; }
.index { columns: 3 280px; column-gap: 48px; margin-top: 48px; }
.cat { break-inside: avoid; padding-bottom: 36px; scroll-margin-top: 72px; }
.cat h2 { font-size: 1.05rem; margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.tool-list { list-style: none; margin: 0; padding: 0; }
.tool-list a { display: block; padding: 11px 0 12px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.tool-list strong { display: block; font-weight: 650; }
.tool-list span { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin-top: 2px; }
.tool-list a:hover strong { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.empty { column-span: all; padding: 8px 0 32px; color: var(--muted); }

/* Tool page */
.tool-page { padding-top: 20px; }
.crumbs { display: flex; gap: 8px; font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.tool-head { margin-bottom: 24px; }
.tool-head h1 { margin-bottom: 6px; }
.lead { color: var(--muted); font-size: 1.07rem; margin: 0; max-width: 42em; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tool-info { display: grid; gap: 8px 48px; grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
@media (min-width: 860px) { .tool-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tool-info .prose { grid-column: 1 / -1; order: 3; } }
.steps { padding-left: 1.3em; margin: 0 0 1.5em; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 14px; color: var(--muted); }
.faq-a p:last-child { margin: 0; }
.related { margin-top: 48px; }
.related h2 { font-size: 1.05rem; margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--text); }
.related .tool-list, .page .tool-list { columns: 2 300px; column-gap: 48px; }
.related .tool-list li, .page .tool-list li { break-inside: avoid; }
.prose { max-width: 760px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 1.6em; }
.prose code { font-family: var(--mono); font-size: 0.9em; overflow-wrap: anywhere; }
.prose pre { overflow-x: auto; margin: 16px 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prose pre code { overflow-wrap: normal; white-space: pre; }
.prose .table-wrap { margin-bottom: 16px; }
.page { padding-top: 40px; }
.page .tool-list { margin-top: 24px; }

/* Guides: an article column, then the same lists as tool pages. */
.guide-page, .guides-index { padding-top: 20px; }
.guide-head { max-width: 760px; margin-bottom: 28px; }
.guide-head h1 { margin-bottom: 8px; text-wrap: balance; }
.guide-meta { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
.guide-body ol, .guide-body ul { padding-left: 1.3em; }
.guide-body li { margin-bottom: 8px; }
.guide-body h2:first-child { margin-top: 0; }
.guide-faq { max-width: 760px; margin-top: 40px; }
.guides-index .tool-list { max-width: 760px; }
.more { margin: 12px 0 0; }

/* Controls */
.label, label.label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 0.86rem; margin: 6px 0 0; }
input[type="text"], input[type="number"], input[type="search"], input[type="tel"], input[type="url"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
textarea.mono, .mono { font-family: var(--mono); font-size: 0.9rem; }
input[type="color"] { width: 48px; height: 44px; padding: 4px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 4px 0; }
.field { margin-bottom: 16px; min-width: 0; }
.row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.inline { display: flex; gap: 8px; align-items: center; }
.inline > input { flex: 1; min-width: 0; }
.suffix { position: relative; }
.suffix input { padding-right: 52px; }
.suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.9rem; pointer-events: none; }
.prefix { position: relative; }
.prefix input { padding-left: 42px; }
.prefix span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.95rem; pointer-events: none; }
.inline > .prefix { flex: none; }
.inline > .prefix input { padding-left: 26px; width: 88px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.88rem; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-danger { color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* Choice buttons (radio inputs). Selected = filled ink, so it reads without relying on colour. */
.seg { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.seg legend { padding: 0; }
.seg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); font-size: 0.92rem; font-weight: 500; color: var(--text); transition: background-color .12s, border-color .12s, color .12s; }
.seg label:hover span { border-color: var(--text); }
.seg input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Drop zone */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 36px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop-icon { display: grid; place-items: center; color: var(--muted); margin-bottom: 2px; }
.drop-icon svg { width: 28px; height: 28px; }
.drop-title { font-weight: 650; font-size: 1.05rem; }
.drop-hint { color: var(--muted); font-size: 0.9rem; }
.drop-btn { margin-top: 10px; pointer-events: none; }
.drop.compact { padding: 14px 16px; flex-direction: row; gap: 12px; }
.drop.compact .drop-icon, .drop.compact .drop-hint { display: none; }
.drop.compact .drop-btn { margin: 0; }
.local-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 0.86rem; margin: 14px 0 0; }
.local-note svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* File list: rows separated by hairlines, not boxes inside the tool box. */
.files { list-style: none; margin: 16px 0 0; padding: 0; }
.files:not(:empty) { border-top: 1px solid var(--border); }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.file.dragging { opacity: 0.5; }
.file.drop-before { box-shadow: 0 -2px 0 var(--accent); }
.file-thumb { width: 48px; height: 48px; border-radius: 4px; object-fit: cover; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.file-main { flex: 1; min-width: 0; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--muted); font-size: 0.86rem; }
.file-meta .ok { color: var(--ok); font-weight: 600; }
.file-meta .bad { color: var(--danger); }
.file-actions { display: flex; gap: 4px; flex: none; }
.handle { cursor: grab; color: var(--muted); touch-action: none; }

/* Results */
.result { margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--text); }
.result-title { font-weight: 700; font-size: 1.05rem; margin: 0 0 2px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--text); font-size: 0.92rem; margin: 12px 0 0; }
.notice.error { background: var(--danger-soft); }
.output { margin-top: 16px; }
.big-output { font-size: 1.25rem; font-weight: 600; line-height: 1.5; padding: 16px; border-radius: var(--radius-sm); background: var(--surface-2); word-break: break-word; min-height: 64px; }
/* Figures: the highlighted one is set large; the rest sit in a row under a hairline. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; margin: 20px 0 0; }
.stat { padding-top: 10px; border-top: 1px solid var(--border); min-width: 0; }
.stat dt, .stat .k { color: var(--muted); font-size: 0.86rem; margin-bottom: 2px; }
.stat dd, .stat .v { margin: 0; font-size: 1.2rem; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.hl { grid-column: 1 / -1; border-top: 2px solid var(--text); padding-top: 9px; }
.stat.hl dd, .stat.hl .v { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 520px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 650; z-index: 1; }
tbody tr:last-child td { border-bottom: 0; }
.split { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split-wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.preview { display: grid; place-items: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px; min-height: 220px; }
.preview img, .preview canvas { max-height: 420px; object-fit: contain; }
.checker { background-color: #fff; background-image: linear-gradient(45deg, #e6e6e6 25%, transparent 25%), linear-gradient(-45deg, #e6e6e6 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e6e6 75%), linear-gradient(-45deg, transparent 75%, #e6e6e6 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.pill { color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.pill.ok { color: var(--ok); font-weight: 600; }
.pill.bad { color: var(--danger); font-weight: 600; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress { margin-top: 14px; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* Toasts */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 0.93rem; animation: toast-in .2s ease-out; }
.toast.error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 560px) {
  .tool { padding: 16px; margin: 0 -4px; }
  .hero { padding-top: 36px; }
  .index { margin-top: 36px; }
  .nav, .header-end { gap: 14px; }
  .btn-lg { width: 100%; }
  .stat.hl dd, .stat.hl .v { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .related, .crumbs { display: none; } }

/* tools: pdf & gambar */
.settings { margin-top: 20px; }
.hint.bad { color: var(--danger); }
#doc { margin-bottom: 8px; }
#doc .btn { flex: none; }

/* tool: kalkulator (terbilang, kalkulator-cicilan, cek-weton, hitung-umur) */
.terbilang-input { font-size: 1.35rem; font-weight: 650; min-height: 56px; font-variant-numeric: tabular-nums; }
.select-auto { width: auto; flex: none; }
.cicilan-metode { margin: -8px 0 14px; }
.cicilan-floating { margin-top: 12px; }
#hasil > .actions { justify-content: space-between; align-items: flex-end; }
#hasil > .actions .seg { margin: 0; }
tr.row-mark td { background: var(--accent-soft); }
.weton-nama { font-size: 1.8rem; letter-spacing: -0.01em; }
.weton-sub { margin: 24px 0 0; }
#hari-ini { margin: 0 0 16px; }
.weton-pasangan { margin-top: 12px; }
.umur-panel .check { margin-bottom: 4px; }
#stats .stat { min-width: 0; }
@media (max-width: 560px) { #stats .stat:not(.hl) .v { font-size: 1.1rem; } }

/* tool: qr-code, link-whatsapp */
.qr-canvas { width: min(100%, 300px); height: auto; aspect-ratio: 1 / 1; }
.hint.ok { color: var(--ok); }
a.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
/* tool: password-generator */
.pw-strength { margin: 4px 0 0; }
.pw-strength .hint { margin-top: 8px; }
.pw-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border); }
.pw-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pw-item code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 1.05rem; overflow-wrap: anywhere; }
.meter.l1 > span { background: var(--danger); }
.meter.l2 > span { background: var(--warn); }
.meter.l3 > span, .meter.l4 > span { background: var(--ok); }
/* tool: hitung-kata */
.inline > select { width: auto; flex: none; }
.hk-limit { margin-top: 16px; }
.sub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.tool-sub { font-size: 1.05rem; margin: 0; }
.word-freq { margin: 0; padding-left: 1.6em; columns: 2 200px; column-gap: 24px; }
.word-freq li { padding: 3px 0; break-inside: avoid; }
.word-freq .pill { margin-left: 8px; }
/* tool: json-formatter */
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; min-height: 34px; }
.field-head .label { margin: 0; }
.err-snippet { font-family: var(--mono); font-size: 0.85rem; background: var(--surface); padding: 8px 10px; border-radius: 6px; margin: 8px 0; overflow-x: auto; white-space: pre; }
.pw-item .btn svg { width: 16px; height: 16px; }
#wa-qr-box { margin-top: 16px; }

/* tools/bandingkan-teks/style.css */
/* tool: bandingkan-teks. Rows are grids: line numbers, a +/- mark, then the text. Removed and added lines
   have a tinted background and a mark; changed words are struck through or underlined, so colour is never
   the only cue. */
.bandingkan-teks-ignore { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.bandingkan-teks-ignore legend { padding: 0; }
.bandingkan-teks-ignore .check { display: inline-flex; margin-right: 18px; }
.bandingkan-teks-tools { justify-content: flex-end; margin-top: 8px; }
.bandingkan-teks-tools .check { margin-right: auto; }
.bandingkan-teks-legend { margin: 8px 0 8px; }
.bandingkan-teks-diff { --bt-nw: 3ch; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: auto; max-height: 75vh; font-family: var(--mono); font-size: 0.84rem; line-height: 1.5; tab-size: 4; background: var(--surface); }
.bandingkan-teks-diff:focus-visible { outline-offset: 0; }
.bandingkan-teks-diff .r { display: grid; grid-template-columns: var(--bt-nw) var(--bt-nw) 1.6em minmax(0, 1fr); border-bottom: 1px solid transparent; }
.bandingkan-teks-diff.sbs .r { grid-template-columns: var(--bt-nw) 1.6em minmax(0, 1fr) var(--bt-nw) 1.6em minmax(0, 1fr); }
.bandingkan-teks-diff .n { color: var(--muted); text-align: right; padding: 1px 6px 1px 0; user-select: none; font-variant-numeric: tabular-nums; background: var(--surface-2); }
.bandingkan-teks-diff .m { text-align: center; padding: 1px 0; user-select: none; font-weight: 700; }
.bandingkan-teks-diff .x { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1px 8px 1px 2px; min-height: 1.5em; }
.bandingkan-teks-diff.sbs .x:nth-child(3) { border-right: 1px solid var(--border); }
.bandingkan-teks-diff .r.del, .bandingkan-teks-diff .x.del { background: var(--danger-soft); }
.bandingkan-teks-diff .r.ins, .bandingkan-teks-diff .x.ins { background: var(--ok-soft); }
.bandingkan-teks-diff .r.del .m, .bandingkan-teks-diff .r.del .n { color: var(--danger); background: var(--danger-soft); }
.bandingkan-teks-diff .r.ins .m, .bandingkan-teks-diff .r.ins .n { color: var(--ok); background: var(--ok-soft); }
.bandingkan-teks-diff.sbs .n:has(+ .m + .x.del), .bandingkan-teks-diff.sbs .m:has(+ .x.del) { color: var(--danger); background: var(--danger-soft); }
.bandingkan-teks-diff.sbs .n:has(+ .m + .x.ins), .bandingkan-teks-diff.sbs .m:has(+ .x.ins) { color: var(--ok); background: var(--ok-soft); }
.bandingkan-teks-diff .x.skip, .bandingkan-teks-diff .r.skip .x { color: var(--muted); }
.bandingkan-teks-diff .none { background: var(--surface-2); }
.bandingkan-teks-diff del { background: color-mix(in srgb, var(--danger) 24%, transparent); color: inherit; text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 2px; }
.bandingkan-teks-diff ins { background: color-mix(in srgb, var(--ok) 24%, transparent); color: inherit; text-decoration: underline; text-underline-offset: 2px; border-radius: 2px; }
.bandingkan-teks-diff .gap { display: block; padding: 4px 8px; background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-family: inherit; }
.bandingkan-teks-diff .gap .btn { font-family: ui-sans-serif, system-ui, sans-serif; }
.bandingkan-teks-diff .empty { padding: 12px; margin: 0; font-family: ui-sans-serif, system-ui, sans-serif; }
/* Text tables in the explanation: left-aligned and wrapping (the site default right-aligns numbers). */
.bandingkan-teks-table th, .bandingkan-teks-table td { text-align: left; white-space: normal; vertical-align: top; }
@media (max-width: 560px) {
  .bandingkan-teks-diff { font-size: 0.8rem; max-height: 70vh; }
  .bandingkan-teks-diff .n { padding-right: 4px; }
}

/* tools/barcode/style.css */
/* tool: barcode */
.barcode-preview svg { display: block; width: 100%; max-width: 440px; height: auto; max-height: 320px; }
.barcode-msg:empty { display: none; }
.barcode-msg .btn { margin-top: 8px; }
.barcode-xhint { margin: -8px 0 16px; }
.barcode-table { margin-bottom: 1em; }
.barcode-table th, .barcode-table td { white-space: normal; text-align: left; vertical-align: top; }

/* tools/base64/style.css */
/* tool: base64 */
.base64-top { align-items: start; }
.base64-opts { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.base64-opts legend { padding: 0; }
.base64-opts .check { display: inline-flex; margin-right: 18px; }
.base64-block { margin-top: 16px; }
.base64-block .seg { margin: 12px 0; }
.base64-preview img { max-height: 320px; }
.base64-textpreview { font-family: var(--mono); font-size: 0.85rem; background: var(--surface-2); padding: 10px 12px; border-radius: var(--radius-sm); margin: 12px 0 0; max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.base64-tablewrap { max-height: none; }
.base64-table th, .base64-table td { text-align: left; padding: 6px 12px; }
.base64-table td span { display: inline-block; min-width: 2.2ch; color: var(--muted); }
.base64-table code { font-family: var(--mono); font-weight: 650; }
.base64-err .btn { margin-left: 4px; }

/* tools/gambar-ke-teks/style.css */
/* tool: gambar-ke-teks (OCR). One row per image; the text box opens under it, separated by hairlines. */
.gambar-ke-teks-langs .field { margin-bottom: 0; }
.gambar-ke-teks-hint { margin: 8px 0 0; }
.gambar-ke-teks-item { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.gambar-ke-teks-item > .file { border-bottom: 0; padding-bottom: 8px; }
.gambar-ke-teks-meter { margin: 0 0 4px 60px; }
.gambar-ke-teks-text { font-size: 0.95rem; min-height: 120px; }
.gambar-ke-teks-actions { margin-top: 8px; }
.gambar-ke-teks-actions .btn svg { width: 16px; height: 16px; flex: none; }
.gambar-ke-teks-warn { display: block; color: var(--warn); }
.gambar-ke-teks-retry { min-height: 30px; margin-top: 4px; }
@media (max-width: 560px) {
  .gambar-ke-teks-meter { margin-left: 0; }
  .gambar-ke-teks-actions .btn { flex: 1; }
}

/* tools/hapus-exif/style.css */
/* tool: hapus-exif */
.hapus-exif-orient-hint { margin: -8px 0 0; }
.hapus-exif-item { border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.hapus-exif-item > .file { border-bottom: 0; }
.hapus-exif-item details { margin: 0 0 8px 60px; }
.hapus-exif-item summary { cursor: pointer; color: var(--accent-text); font-size: 0.92rem; font-weight: 600; padding: 4px 0; }
.hapus-exif-item .table-wrap { margin-top: 8px; max-height: none; }
.hapus-exif-table th, .hapus-exif-table td { text-align: left; vertical-align: top; white-space: normal; }
.hapus-exif-table th { width: 34%; font-weight: 600; color: var(--muted); }
.hapus-exif-table td { overflow-wrap: anywhere; }
.hapus-exif-table tr:last-child th { border-bottom: 0; }
.hapus-exif-table tr.hapus-exif-risk th { box-shadow: inset 3px 0 0 var(--danger); color: var(--danger); }
.hapus-exif-table td img { display: block; max-width: 160px; max-height: 160px; margin-top: 6px; border-radius: 4px; }
.hapus-exif-item .hint { margin: 8px 0 0; }
.hapus-exif-item .file-meta .bad { font-weight: 600; }
@media (max-width: 560px) {
  .hapus-exif-item details { margin-left: 0; }
  .hapus-exif-table th { width: 40%; }
}

/* tools/hash-generator/style.css */
/* tool: hash-generator */
.hash-generator-algos { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.hash-generator-algos legend { padding: 0; }
.hash-generator-algo-row { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.hash-generator-out:not(:empty) { border-top: 2px solid var(--text); margin-top: 4px; }
.hash-generator-out .notice { margin: 12px 0 0; }
.hash-generator-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hash-generator-name { display: flex; flex-direction: column; font-weight: 650; line-height: 1.3; }
.hash-generator-bits { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.hash-generator-flag { font-size: 0.82rem; font-weight: 650; }
.hash-generator-row.is-match .hash-generator-flag { color: var(--ok); }
.hash-generator-row.is-mismatch .hash-generator-flag { color: var(--danger); }
.hash-generator-row.is-match .hash-generator-val { color: var(--ok); }
.hash-generator-val { font-family: var(--mono); font-size: 0.9rem; line-height: 1.45; overflow-wrap: anywhere; word-break: break-all; }
.hash-generator-row.is-error .hash-generator-val { font-family: inherit; word-break: normal; color: var(--danger); }
.hash-generator-row .btn svg { width: 16px; height: 16px; }
.hash-generator-file { margin-top: 12px; }
.hash-generator-file-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hash-generator-file-head .file-name { min-width: 0; }
.hash-generator-file-head .file-meta { flex: none; }
.hash-generator-file .progress { margin-top: 8px; }
.hash-generator-file-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.hash-generator-file-foot .hint { margin: 0; }
.hash-generator-file .meter.is-busy > span { animation: hash-generator-pulse 1.2s ease-in-out infinite; }
@keyframes hash-generator-pulse { 50% { opacity: 0.35; } }
.hash-generator-compare { margin: 24px 0 0; }
.hash-generator-verdict.ok, .hash-generator-verdict.bad { font-weight: 600; font-size: 0.92rem; }
@media (max-width: 560px) {
  .hash-generator-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hash-generator-name { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
  .hash-generator-val { grid-column: 1 / -1; grid-row: 2; }
}
/* The about table scrolls inside its box instead of widening the page on phones (width 0 keeps it out of
   the grid column's minimum width; min-width 100% fills the column again). */
.hash-generator-table { width: 0; min-width: 100%; margin-bottom: 1em; }

/* tools/heic-ke-jpg/style.css */
/* tool: heic-ke-jpg */
.heic-ke-jpg-settings .seg { margin-bottom: 12px; }
.heic-ke-jpg-engine { margin: 12px 0 0; }

/* tools/kalkulator-bmi/style.css */
/* tool: kalkulator-bmi */
.kalkulator-bmi-units { align-items: stretch; }
.kalkulator-bmi-units > .kalkulator-bmi-in, .kalkulator-bmi-units > .kalkulator-bmi-pair { flex: 1; min-width: 0; }
.kalkulator-bmi-pair { display: flex; gap: 8px; }
.kalkulator-bmi-pair > .suffix { flex: 1; min-width: 0; }
.kalkulator-bmi-units .suffix input { padding-right: 36px; }
.kalkulator-bmi-limits { margin-top: 20px; }
.kalkulator-bmi-cat { font-size: 1.05rem; font-weight: 650; margin: 2px 0 0; }
/* Scale: grey bands with the normal range in green, a dark marker at the visitor's BMI. */
.kalkulator-bmi-scale-wrap { position: relative; margin: 22px 0 4px; }
.kalkulator-bmi-scale { display: flex; height: 8px; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.kalkulator-bmi-scale > span { display: block; height: 100%; background: var(--border-strong); border-right: 2px solid var(--surface); }
.kalkulator-bmi-scale > span:last-child { border-right: 0; }
.kalkulator-bmi-scale > span:nth-child(even) { background: var(--border); }
.kalkulator-bmi-scale > .kalkulator-bmi-normal, .kalkulator-bmi-scale > .kalkulator-bmi-normal:nth-child(even) { background: var(--ok); }
.kalkulator-bmi-marker { position: absolute; top: -6px; width: 4px; height: 20px; margin-left: -2px; background: var(--text); border-radius: 2px; }
.kalkulator-bmi-ticks { position: relative; height: 20px; margin-top: 4px; font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.kalkulator-bmi-ticks > span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.kalkulator-bmi-table th, .kalkulator-bmi-table td { white-space: normal; padding: 8px 10px; }
.kalkulator-bmi-table td:first-child { min-width: 96px; }
.kalkulator-bmi-table td:not(:first-child) { min-width: 84px; }
/* Comparison table in the article below the tool (Indonesian page) */
.kalkulator-bmi-compare th, .kalkulator-bmi-compare td { white-space: normal; text-align: left; padding: 8px 10px; }

/* tools/kalkulator-bpjs/style.css */
.bpjs-table { max-height: none; }
tr.bpjs-strong td { font-weight: 650; }
#hasil .bpjs-table + .hint { margin-top: 12px; }
.bpjs-table td:first-child { white-space: normal; min-width: 9.5rem; }
@media (max-width: 560px) { .bpjs-table th, .bpjs-table td { padding: 8px 9px; } }
.bpjs-table th { white-space: normal; min-width: 6.5rem; }

/* tools/kalkulator-persen/style.css */
/* tool: kalkulator-persen */
.kalkulator-persen-discounts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.kalkulator-persen-disc-actions { margin: -4px 0 0; }
.kalkulator-persen-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kalkulator-persen-presets .btn { white-space: normal; text-align: left; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.kalkulator-persen-presets .btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.kalkulator-persen-panel .stat .k { overflow-wrap: anywhere; }
.kalkulator-persen-panel .table-wrap td:first-child { white-space: normal; }

/* tools/kalkulator-pph21/style.css */
.pph21-sub { font-size: 1.05rem; margin: 8px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.pph21-auto-hint { margin: 0 0 14px; }
.pph21-extra-hint { margin: 0 0 10px; }
.pph21-extra { list-style: none; margin: 0; padding: 0; }
.pph21-extra-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.pph21-extra-row .btn-icon { width: 44px; min-height: 44px; }
.pph21-add { margin: 0 0 16px; }
.pph21-h3 { margin: 24px 0 0; font-size: 1rem; }
.pph21-annual { max-height: none; }
.pph21-annual td { white-space: normal; }
.pph21-annual td:last-child { white-space: nowrap; }
tr.pph21-strong td { font-weight: 650; }
.pph21-sub + .check { margin-bottom: 2px; }
input.pph21-ro { color: var(--muted); background: var(--surface-2); }
@media (max-width: 560px) { .pph21-monthly th, .pph21-monthly td { padding: 8px 9px; } }
.pph21-monthly { max-height: none; }
.pph21-extra { max-width: 34rem; }
.pph21-monthly th { white-space: normal; }

/* tools/kalkulator-thr/style.css */
.thr-note { margin-top: 12px; }
.thr-row { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* tools/kalkulator-zakat/style.css */
.zakat-panel .stats { margin-top: 8px; }
.zakat-note { margin-top: 12px; }
.zakat-panel > .check { margin: 0 0 4px; }
.zakat-panel .row { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* tools/kompres-pdf/style.css */
/* tool: kompres-pdf */
.kompres-pdf-table { margin-bottom: 1em; }
.kompres-pdf-target { margin-top: -4px; }
.kompres-pdf-hint { margin: -6px 0 0; }
.kompres-pdf-result .stats { margin-top: 8px; }
.kompres-pdf-result .stat.hl { border-top: 0; padding-top: 0; }
.kompres-pdf-result > .notice, .kompres-pdf-result > .hint { margin-top: 14px; }

/* tools/konversi-gambar/style.css */
/* tool: konversi-gambar */
.konversi-gambar-settings .seg { margin-bottom: 8px; }
.konversi-gambar-nowebp { margin: 0 0 12px; }
.konversi-gambar-settings .row { margin-top: 12px; }
.seg label.konversi-gambar-off { cursor: not-allowed; }
.seg label.konversi-gambar-off span { opacity: 0.45; }
.seg label.konversi-gambar-off input { cursor: not-allowed; }

/* tools/konversi-satuan/style.css */
/* tool: konversi-satuan. One row per unit: name and factor on the left, the value on the right. */
.konversi-satuan-help { margin: -6px 0 12px; }
.konversi-satuan-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; border-top: 1px solid var(--border); margin-top: 12px; }
@media (min-width: 760px) { .konversi-satuan-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.konversi-satuan-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.konversi-satuan-name label { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.35; overflow-wrap: anywhere; }
.konversi-satuan-name .hint { margin: 2px 0 0; font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; }
.konversi-satuan-item input { font-variant-numeric: tabular-nums; text-align: right; }
.konversi-satuan-item.is-src input { border-color: var(--text); }
.konversi-satuan-item input[aria-invalid="true"] { border-color: var(--danger); }
.konversi-satuan-status { margin: 0 0 12px; }

/* tools/kwitansi/style.css */
/* tool: kwitansi */
.kwitansi-preview { padding: 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.kwitansi-preview svg { display: block; width: 100%; height: auto; border: 1px solid var(--border); background: #ffffff; }
.kwitansi-split .seg { margin-top: 16px; }
@media (min-width: 820px) {
  .kwitansi-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
  .kwitansi-side { position: sticky; top: 72px; align-self: start; }
}
.kwitansi-actions { margin-top: 4px; }
.kwitansi-terbilang { margin: -8px 0 16px; min-height: 1.4em; font-style: italic; }
.kwitansi-untuk { min-height: 68px; }
.kwitansi-ttd { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.kwitansi-ttd-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kwitansi-table { margin-bottom: 1em; }
.kwitansi-table th, .kwitansi-table td { white-space: normal; text-align: left; }
.kwitansi-print { display: none; }
/* Printing: only the sheet, at its real size, on its own named page (other pages keep the default). */
@media print {
  .kwitansi-printing { min-height: 0; display: block; }
  .kwitansi-printing > :not(.kwitansi-print) { display: none !important; }
  .kwitansi-printing > .kwitansi-print { display: block; }
  .kwitansi-print svg { display: block; width: 100%; height: auto; max-height: 100vh; }
  .kwitansi-print-a5 { page: kwitansi-a5; }
  .kwitansi-print-a4 { page: kwitansi-a4; }
}
@page kwitansi-a5 { size: 210mm 148mm; margin: 0; }
@page kwitansi-a4 { size: 210mm 297mm; margin: 0; }

/* tools/nomor-halaman-pdf/style.css */
/* nomor-halaman-pdf: the four number fields sit two to a row on phones */
.nomor-halaman-pdf-nums { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* tools/pdf-ke-jpg/style.css */
/* tool: pdf-ke-jpg */
.pdf-ke-jpg-table { margin-bottom: 1em; }
.pdf-ke-jpg-size { margin: -8px 0 16px; }
.pdf-ke-jpg-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pdf-ke-jpg-item { min-width: 0; }
.pdf-ke-jpg-item img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; object-position: left top; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; }
.pdf-ke-jpg-cap { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.pdf-ke-jpg-text { flex: 1; min-width: 0; }
.pdf-ke-jpg-text .file-name { font-size: 0.88rem; }
.pdf-ke-jpg-text .file-meta { font-size: 0.8rem; }
.pdf-ke-jpg-text .file-meta.bad { color: var(--danger); }
@media (max-width: 560px) { .pdf-ke-jpg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }

/* tools/putar-pdf/style.css */
/* putar-pdf: page groups before and after, as hairline-separated rows */
.putar-pdf-compare { margin-top: 8px; }
.putar-pdf-compare .tool-sub { font-size: 1rem; margin-bottom: 6px; }
.putar-pdf-groups { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.putar-pdf-groups li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.putar-pdf-count { margin: 0 0 8px; }
.putar-pdf-table { margin-bottom: 1em; }

/* tools/rapikan-baris/style.css */
/* tool: rapikan-baris. Input and result side by side on wide screens with the steps underneath; on phones
   the steps sit between the input and the result, so the result is right below the options. */
.rapikan-baris-layout { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "in" "steps" "out"; }
.rapikan-baris-in { grid-area: in; }
.rapikan-baris-out { grid-area: out; }
.rapikan-baris-panel { grid-area: steps; margin-bottom: 8px; }
@media (min-width: 820px) {
  .rapikan-baris-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "in out" "steps steps"; }
  .rapikan-baris-steps { columns: 2; column-gap: 32px; }
}
.rapikan-baris-panel .hint { margin: 2px 0 8px; }
.rapikan-baris-steps { margin: 0; padding: 0 0 0 1.6em; }
.rapikan-baris-steps > li { break-inside: avoid; padding: 10px 0 10px 4px; border-top: 1px solid var(--border); }
.rapikan-baris-steps > li::marker { font-weight: 700; color: var(--muted); }
.rapikan-baris-steps .field { margin-bottom: 8px; }
.rapikan-baris-steps .row { gap: 0 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.rapikan-baris-steps .seg { margin: 6px 0 0; }
.rapikan-baris-steps .seg span { min-height: 36px; }
.rapikan-baris-name { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 4px; }
.rapikan-baris-opts { display: flex; flex-wrap: wrap; gap: 0 18px; }
.rapikan-baris-sort select { flex: 1; min-width: 0; }
.rapikan-baris-sort .btn { flex: none; }
.rapikan-baris-effect { display: block; color: var(--text); font-size: 0.86rem; font-weight: 600; margin-top: 2px; }
.rapikan-baris-effect:empty { display: none; }
.rapikan-baris-layout input:disabled, .rapikan-baris-layout select:disabled { opacity: 0.55; }
.rapikan-baris-layout .check:has(input:disabled) { color: var(--muted); }
.rapikan-baris-table th, .rapikan-baris-table td { text-align: left; white-space: normal; vertical-align: top; }
.rapikan-baris-steps .seg input:disabled + span { opacity: 0.5; cursor: not-allowed; }

/* tools/tanda-tangan/style.css */
/* tool: tanda-tangan */
.tanda-tangan-pad { position: relative; max-width: 760px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #ffffff; overflow: hidden; }
.tanda-tangan-pad canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.tanda-tangan-line { position: absolute; left: 8%; right: 8%; top: 72%; border-top: 1px dashed #b5b5b5; pointer-events: none; }
.tanda-tangan-opts { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 16px; }
.tanda-tangan-edit { margin-top: 0; }
.tanda-tangan-range label span { font-weight: 400; color: var(--muted); }
.tanda-tangan-out { min-height: 140px; }
.tanda-tangan-out canvas { max-height: 220px; width: auto; height: auto; }
.tanda-tangan-photo { margin-top: 16px; }

/* tools/timestamp/style.css */
/* tool: timestamp */
.timestamp-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; }
.timestamp-now-row { display: flex; align-items: center; gap: 12px; }
.timestamp-now output { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; overflow-wrap: anywhere; }
.timestamp-now-s { font-size: 2rem; letter-spacing: -0.01em; line-height: 1.2; }
.timestamp-now-ms { font-size: 1.3rem; color: var(--muted); }
.timestamp-sub { margin-bottom: 12px; }
.timestamp-list { margin: 4px 0 0; border-top: 2px solid var(--text); }
.timestamp-list > div { display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto; align-items: center; gap: 2px 16px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.timestamp-list dt { color: var(--muted); font-size: 0.9rem; }
.timestamp-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.timestamp-list dd.mono { font-weight: 500; font-size: 0.92rem; }
.timestamp-list .is-main dd { font-size: 1.15rem; font-weight: 700; }
.timestamp-list .btn { width: 34px; padding: 0; }
.timestamp-list .btn svg { width: 16px; height: 16px; }
.timestamp-date-row input[type="time"] { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; min-height: 44px; }
.timestamp-date-row input[type="time"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.timestamp-note { margin: -6px 0 12px; }
.timestamp-table { width: 0; min-width: 100%; margin-bottom: 1em; }
.timestamp-table th, .timestamp-table td { text-align: left; white-space: normal; vertical-align: top; }
.timestamp-table td:nth-child(2) { min-width: 14em; }
.timestamp-table code { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .timestamp-now-s { font-size: 1.6rem; }
  .timestamp-list > div { grid-template-columns: minmax(0, 1fr) auto; }
  .timestamp-list dt { grid-column: 1 / -1; }
}

/* tools/uuid-generator/style.css */
/* tool: uuid-generator */
.uuid-generator-opts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 24px; }
.uuid-generator-opts .seg { margin-bottom: 16px; }
.uuid-generator-count { width: 11rem; }
.uuid-generator-fmt { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.uuid-generator-fmt legend { padding: 0; }
.uuid-generator-checks { display: flex; flex-wrap: wrap; gap: 2px 22px; }
textarea.uuid-generator-out { min-height: 0; resize: vertical; white-space: pre; overflow-x: auto; line-height: 1.6; }
@media (max-width: 560px) { textarea.uuid-generator-out { font-size: 0.82rem; padding-left: 10px; padding-right: 10px; } }
textarea.uuid-generator-out.is-single { padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 561px) { textarea.uuid-generator-out.is-single { font-size: 1.05rem; } }
.uuid-generator-inspect { margin-bottom: 4px; }
.uuid-generator-report { margin: 12px 0 0; border-top: 1px solid var(--border); }
.uuid-generator-report > div { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2px 16px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.uuid-generator-report dt { color: var(--muted); font-size: 0.9rem; }
.uuid-generator-report dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.uuid-generator-report dd.mono { font-weight: 500; }
.uuid-generator-table { width: 0; min-width: 100%; margin-bottom: 1em; }
.uuid-generator-sub { margin-bottom: 10px; }
.uuid-generator-table th, .uuid-generator-table td { text-align: left; white-space: normal; vertical-align: top; }
.uuid-generator-table td:nth-child(2), .uuid-generator-table td:nth-child(4) { min-width: 12em; }
@media (max-width: 560px) {
  .uuid-generator-report > div { grid-template-columns: minmax(0, 1fr); }
  .uuid-generator-count { width: 100%; }
}

/* tools/watermark-foto/style.css */
/* tool: watermark-foto */
.watermark-foto-preview canvas { width: auto; height: auto; max-width: 100%; max-height: 520px; }
.watermark-foto-line { font-size: 0.92rem; margin: -4px 0 16px; padding: 8px 0 8px 12px; border-left: 2px solid var(--border-strong); overflow-wrap: anywhere; }
.watermark-foto-line:empty { display: none; }
.watermark-foto-color { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 24px; }
.watermark-foto-color .check { margin-bottom: 24px; }
@media (max-width: 560px) { .watermark-foto-color .check { margin: -6px 0 12px; } }
.watermark-foto #date { max-width: 220px; }

/* tools/watermark-pdf/style.css */
/* watermark-pdf: page outline preview. The paper stays white in dark mode because it depicts a sheet. */
.watermark-pdf-fold { margin-top: 8px; }
.watermark-pdf-preview { margin: 20px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; background: var(--surface-2); border-radius: var(--radius-sm); }
.watermark-pdf-page { position: relative; width: min(100%, 260px); aspect-ratio: 210 / 297; background: #fff; border: 1px solid var(--border-strong); overflow: hidden; container-type: inline-size; }
.watermark-pdf-mark { position: absolute; white-space: nowrap; line-height: 1; font-family: Helvetica, Arial, sans-serif; font-weight: 700; margin-bottom: -0.16em; transform-origin: 0 calc(100% - 0.16em); pointer-events: none; }
.watermark-pdf-preview figcaption { margin: 0; text-align: center; }
.watermark-pdf-preview { align-self: start; }
