@font-face{font-family:'Archivo Variable';font-style:normal;font-display:swap;font-weight:100 900;font-stretch:62% 125%;src:url(fonts/archivo-latin-wdth-normal.woff2) format('woff2')}
/* Kompak. Paper white, ink black, one highlighter yellow. Archivo throughout; the headline width is squeezed because the product is. */
:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5a5a5a;
  --line: #dedede;
  --line-strong: #8c8c8c;
  --accent: #ffd93b;
  --accent-ink: #141414;
  --accent-soft: #fff4b8;
  --bad: #b3261e;
  --font: 'Archivo Variable', 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --surface: #1c1c1c; --ink: #f0f0ee; --muted: #a8a8a8; --line: #333333; --line-strong: #6b6b6b;
    --accent-soft: #3a3411; --bad: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --surface: #1c1c1c; --ink: #f0f0ee; --muted: #a8a8a8; --line: #333333; --line-strong: #6b6b6b;
  --accent-soft: #3a3411; --bad: #ff8a80;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.55 var(--font); font-stretch: 100%;
  padding-inline: 16px;
}
[hidden] { display: none !important; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { display: block; flex: none; }
.wrap { max-width: 1040px; margin-inline: auto; padding-bottom: 48px; }

h1, h2 { font-weight: 800; font-stretch: 74%; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }

/* header */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 74%; font-size: 1.7rem; letter-spacing: -0.005em; line-height: 1; }
.brand svg { width: 30px; height: 30px; }
.theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme-btn:hover { border-color: var(--ink); }

/* buttons */
button { font: inherit; }
button.primary, button.ghost, .btn { font-weight: 700; border-radius: 10px; padding: 11px 18px; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
button.primary { background: var(--accent); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { filter: brightness(0.94); }
button.primary:active:not(:disabled) { transform: translateY(1px); }
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
button.ghost:hover { border-color: var(--ink); }
button.sm { padding: 6px 12px; font-size: 0.875rem; }
button.link { background: none; border: 0; padding: 6px 0; font-size: 0.9rem; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.icon-btn { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.icon-btn:hover:not(:disabled) { border-color: var(--ink); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* drop zone */
.drop { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border: 2px dashed var(--line-strong); border-radius: 20px; background: var(--surface); padding: 24px; transition: background 0.15s, border-color 0.15s; }
.drop.over { border-color: var(--ink); background: var(--accent-soft); }
.drop b { font-weight: 700; display: block; }
.drop small { color: var(--muted); font-size: 0.9rem; }
.drop.compact { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; border-radius: 16px; padding: 16px 18px; }
.drop.compact .msg { flex: 1 1 220px; min-width: 0; }
.drop.compact.has { padding: 10px 14px; }
.drop.compact.has small, .drop.compact.has [data-sample] { display: none; }
.drop.big { min-height: 290px; justify-content: center; gap: 10px; padding: 28px; }
.drop.big .up-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 6px; }
.drop.big .t { font-size: 1.5rem; font-weight: 800; font-stretch: 78%; line-height: 1.1; }
.drop.big .btns { margin-top: 8px; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(16px, 5vw, 48px) 0 clamp(28px, 5vw, 44px); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.2rem); line-height: 0.98; text-wrap: pretty; }
.hero p { margin: 18px 0 0; max-width: 40ch; color: var(--muted); font-size: 1.05rem; }
.suggest { margin-top: 14px; }
.suggest p { margin: 0 0 8px; }
.suggest .sg-t { font-weight: 700; }
.suggest .err, .hint.err, .meta.err, .status.err { color: var(--bad); }
.suggest ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { border: 1px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.chipbtn:hover { background: var(--accent); }

.finder { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 6px 0 14px; }
.recent { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.95rem; color: var(--muted); }
.recent a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.finder input { width: min(100%, 380px); margin-left: auto; font: inherit; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.finder input:focus-visible { border-color: var(--ink); }
.grp { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.grp h2 { font-size: 1.6rem; line-height: 1.1; }
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
.tool { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; text-decoration: none; }
.tool:hover { background: var(--accent-soft); }
.tool .ic-wrap { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; background: var(--surface); }
.tool:hover .ic-wrap { background: var(--accent); border-color: var(--ink); color: var(--accent-ink); }
.tool .tx { min-width: 0; display: grid; }
.tool b { font-weight: 700; line-height: 1.25; }
.tool small { color: var(--muted); font-size: 0.875rem; line-height: 1.35; margin-top: 2px; }
.nores { color: var(--muted); }

/* tool page */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-weight: 700; padding: 6px 0; margin-top: 4px; }
.back:hover { color: var(--ink); }
.head { padding: 10px 0 22px; }
.head h1 { font-size: clamp(2.4rem, 7vw, 4rem); line-height: 0.98; }
.head p { margin: 12px 0 0; color: var(--muted); max-width: 58ch; font-size: 1.05rem; }

.listhead { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.row.bad { border-color: var(--bad); }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; }
.thumbbtn { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; display: block; }
.row > div:nth-child(2) { min-width: 0; }
.name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; }
.acts { display: flex; gap: 6px; align-items: center; }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 22px; margin-top: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.opts:empty { display: none; }
.opts > details { grid-column: 1 / -1; }
.opts.inner { margin-top: 14px; padding: 0; border: 0; background: none; }
.adv summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.fld { display: grid; gap: 7px; min-width: 0; align-content: start; }
.fld .lbl { font-size: 0.9rem; font-weight: 700; }
.fld select, .fld input[type="text"], .fld input[type="number"] { width: 100%; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.fld input[type="range"] { width: 100%; accent-color: var(--ink); }
.fld output { font-variant-numeric: tabular-nums; font-weight: 700; }
.hint { color: var(--muted); font-size: 0.875rem; line-height: 1.4; margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg); font-weight: 600; }
.seg input:checked + span { background: var(--accent); border-color: var(--ink); color: var(--accent-ink); font-weight: 800; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.stage { margin-top: 14px; }

/* crop */
.cropwrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; border-radius: 12px; overflow: hidden; background: var(--line); user-select: none; -webkit-user-select: none; touch-action: none; }
.cropwrap img { display: block; max-width: 100%; max-height: min(62vh, 560px); width: auto; height: auto; pointer-events: none; }
.cropbox { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.52); cursor: move; touch-action: none; outline: 1px solid rgba(0, 0, 0, 0.45); background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 33.333% 33.333%; }
.cropbox:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-radius: 0; }
.hd { position: absolute; width: 26px; height: 26px; touch-action: none; }
.hd::before { content: ''; position: absolute; width: 18px; height: 18px; border: 0 solid var(--accent); filter: drop-shadow(0 0 1px #000); }
.hd::after { content: ''; position: absolute; inset: -10px; }
.hd.nw { left: -2px; top: -2px; cursor: nwse-resize; } .hd.nw::before { left: 0; top: 0; border-width: 5px 0 0 5px; }
.hd.ne { right: -2px; top: -2px; cursor: nesw-resize; } .hd.ne::before { right: 0; top: 0; border-width: 5px 5px 0 0; }
.hd.sw { left: -2px; bottom: -2px; cursor: nesw-resize; } .hd.sw::before { left: 0; bottom: 0; border-width: 0 0 5px 5px; }
.hd.se { right: -2px; bottom: -2px; cursor: nwse-resize; } .hd.se::before { right: 0; bottom: 0; border-width: 0 5px 5px 0; }
.cropinfo { margin-top: 8px; font-variant-numeric: tabular-nums; }

/* organize */
.pgs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; justify-items: center; }
.pv { width: 100%; aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--bg); border-radius: 6px; overflow: hidden; }
.pv img { max-width: 100%; max-height: 100%; display: block; }
.pn { font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pa { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.pa .icon-btn { width: 28px; height: 28px; border-radius: 7px; }

/* results */
.sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 6px 0 16px; }
.sum .big { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; font-stretch: 74%; font-variant-numeric: tabular-nums; line-height: 1.05; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.sum .was { color: var(--muted); font-weight: 600; font-size: 0.7em; text-decoration: line-through; text-decoration-thickness: 2px; }
.sum .arrow { color: var(--muted); font-weight: 600; }
.mark { background: linear-gradient(transparent 38%, var(--accent) 38%, var(--accent) 94%, transparent 94%); color: var(--accent-ink); padding: 0 0.22em; font-weight: 800; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sum .mark { font-size: clamp(1.3rem, 4vw, 1.9rem); font-stretch: 74%; line-height: 1.15; }
.up { font-weight: 700; color: var(--muted); }

.runbar { position: sticky; bottom: 0; z-index: 5; margin-top: 16px; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; }
.runbar .line { display: flex; gap: 8px; flex-wrap: wrap; }
.runbar .line .primary { flex: 1 1 200px; }
.status { color: var(--muted); font-size: 0.9rem; }
.status:empty { display: none; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 0.9rem; max-width: calc(100vw - 32px); z-index: 20; }

/* viewer */
dialog.viewer { border: 0; padding: 0; background: transparent; max-width: min(96vw, 960px); width: 100%; color: var(--ink); overflow: visible; }
dialog.viewer::backdrop { background: rgba(0, 0, 0, 0.72); }
.vbox { background: var(--surface); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.vbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.solo { max-width: 100%; max-height: 72vh; justify-self: center; border-radius: 8px; }
.cmp { --p: 50%; --r: 1.5; position: relative; justify-self: center; width: min(100%, calc(72vh * var(--r))); aspect-ratio: var(--r); border-radius: 10px; overflow: hidden; background: var(--line); touch-action: pan-y; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; display: block; }
.cmp .before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp .cl { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.cmp .cl::after { content: ''; position: absolute; top: 50%; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--accent); border: 2px solid #141414; }
.cmp .tg { position: absolute; top: 10px; padding: 3px 10px; border-radius: 99px; background: rgba(20,20,20,.78); color: #fff; font-size: 0.8rem; font-weight: 700; pointer-events: none; }
.cmp .tg.l { left: 10px; } .cmp .tg.r { right: 10px; }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

/* info + footer */
.info { margin-top: 48px; display: grid; gap: 34px; max-width: 70ch; }
.info h2 { font-size: 1.7rem; margin-bottom: 12px; }
.info ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 700; }
details.faq p { margin: 8px 0 2px; color: var(--muted); }
.crumbs { font-size: 0.875rem; color: var(--muted); margin: 0; }
.related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.related a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); text-decoration: none; font-weight: 600; }
.related a:hover { background: var(--accent); border-color: var(--ink); color: var(--accent-ink); }
.site-foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.acp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acp-mark { background: var(--accent); color: var(--accent-ink); font-weight: 800; font-stretch: 80%; letter-spacing: 0.04em; border-radius: 8px; padding: 3px 9px; }
.acp-line { margin: 0; color: var(--ink); font-weight: 700; }
.site-foot p { margin: 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .drop.big { min-height: 170px; }
  .hero p { margin-top: 12px; }
  .grp { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 0; }
  .grp h2 { font-size: 1.35rem; }
}
@media (max-width: 560px) {
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tool { flex-direction: column; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
  .tool small { display: none; }
  .tool b { font-size: 0.95rem; }
  .opts { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .runbar .line > button { flex: 1 1 auto; }
  .finder input { width: 100%; }
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row .acts { grid-column: 1 / -1; justify-content: flex-end; }
  .thumb { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.same { color: var(--muted); font-size: .9em; }
/* Di mode gelap teks penanda berwarna gelap, jadi latarnya harus kuning penuh agar semua hurufnya terbaca. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark { background: var(--accent); border-radius: 0.18em; } }
:root[data-theme="dark"] .mark { background: var(--accent); border-radius: 0.18em; }
