/* SENTRA. Direction (owner, Oct 2026): calm modern SaaS in the manner of adora.ai, in the owner's coolors lime-to-navy
   palette (the logo's colours), kept professional: navy for structure, one blue accent for actions, lime only as a small
   accent (large B3 tag dot). Off-white canvas, white surfaces with hairline borders, Plus Jakarta Sans.
   Background: pale halftone clusters on the right (owner: plain background felt empty, navy band felt heavy).
   Bin colours carry meaning and match everywhere (tag dot, bar fill): B3 = navy, non-B3 = green, perlu dicek = amber.
   Elevation: one soft shadow for floating things (navbar, latest result, dialog, toast); everything else is flat. */
:root {
  --bg: #f6f8f7; --bg-2: #edf1f2; --card: #fff; --line: #e1e7ea; --line-2: #cfd8dd;
  --ink: #10293d; --text: #2a3a46; --muted: #566773; --soft: #637480;
  --pri: #1a759f; --pri-d: #1e6091; --pri-soft: #e5f1f6; --pri-line: #b8d7e5;
  --navy: #184e77; --lime-hi: #d9ed92;
  --lime: #e9f6e3; --lime-ink: #20502c; --lime-dot: #52b69a;
  --amber: #fff1d6; --amber-ink: #7a4500; --amber-dot: #e8930c;
  --ok: #15803d; --err: #b42318;
  --shadow: 0 1px 2px rgba(15, 46, 71, .05), 0 4px 16px -4px rgba(15, 46, 71, .1);
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar: 60px; --tabs: 64px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: 18px; line-height: 1.3; }
h3 { font-size: 15px; }
p { margin: 6px 0; }
a { color: var(--pri-d); text-underline-offset: 3px; }  /* darker blue keeps 4.5:1 even over the background dots */
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
button, a, input, select { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }

/* ---- shell: floating nav on desktop (opaque white, shadow because content scrolls under it), bar + tabs on phones */
.top { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(1160px, 100% - 32px); height: 60px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.menu { display: flex; gap: 2px; margin: 0 auto; }
.menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.menu a:hover { background: var(--bg-2); color: var(--ink); }
.menu a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.top .srv { margin-right: 6px; white-space: nowrap; }
/* research dashboard: its own outlined control, apart from the work menu, so it reads as a different mode */
.dashbtn { min-height: 40px; }
.dashbtn[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs { display: none; }
main { min-height: 100vh; padding: 108px 40px 64px; overflow-x: clip; }
.page { max-width: 1120px; margin: 0 auto; }
.ico { width: 20px; height: 20px; flex: none; }
@media (max-width: 1199px) { .top .srv { display: none; } .menu a { padding: 0 11px; } }
@media (max-width: 1023px) {
  .top { position: sticky; top: 0; left: auto; transform: none; width: auto; height: var(--bar); padding: 0 16px; background: #fff; backdrop-filter: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
  .top .dashbtn { display: none; }  /* phones reach the dashboard from the Riset tab */
  .menu, .top .upload { display: none; }
  .top .srv { display: inline-flex; margin: 0 0 0 auto; }
  .tabs { position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabs a, .tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%; font: 600 11px var(--sans); color: var(--soft); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .tabs [aria-current="page"] { color: var(--pri); }
  .tabs .shoot { width: 52px; height: 52px; margin-top: -16px; border-radius: 16px; background: var(--pri); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -4px rgba(26, 117, 159, .45); }
  .tabs .shoot .ico { width: 24px; height: 24px; }
  main { padding: 20px 16px 24px; }
  footer.foot { padding-bottom: calc(var(--tabs) + 24px + env(safe-area-inset-bottom)); }
  h1 { font-size: 26px; }
}

/* ---- background: a tidy halftone of a few soft clusters (dot grid, radius follows each cluster), palest palette tints,
   all on the right so titles and text on the left stay clean (owner: gradient dots that say "this is about clusters") */
main { position: relative; isolation: isolate; }
main:has(iframe.dash)::before { display: none; }  /* the dashboard is its own page; dots would sit under its text */
main::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 620px; background: url(assets/bg-clusters.svg) 50% 0 / max(1400px, 100%) auto no-repeat; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); pointer-events: none; }
@media (max-width: 1023px) { main::before { height: 420px; background-position: 100% 0; background-size: 1000px auto; opacity: .3; } }  /* text spans the full width on phones */
iframe.dash { display: block; width: 100%; min-height: 70vh; border: 0; border-radius: 20px; background: transparent; }

/* ---- footer: team and competition only */
.foot { padding: 24px 16px 32px; text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--bg-2); }
.btn:disabled { background: var(--bg-2); border-color: var(--line); color: var(--soft); cursor: default; }  /* solid, so the background dots never show through */
.btn.pri { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.pri:hover { background: var(--pri-d); border-color: var(--pri-d); }
.btn.ok { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.ok:hover { background: #133f61; }
.btn.big { min-height: 50px; font-size: 15px; padding: 0 22px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.danger { color: var(--err); }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn:hover { background: var(--bg-2); }
input[type=text], input[type=number], select { font: 500 15px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; min-height: 44px; padding: 0 12px; width: 100%; }
input[type=text]:focus, input[type=number]:focus, select:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-soft); }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---- bin tag: a pill with a dot in the bin colour */
.tag { display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--lime); color: var(--lime-ink); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-dot); flex: none; }
.tag.b3 { background: #e3edf4; color: var(--navy); }
.tag.b3::before { background: var(--navy); }
.tag.b3.lg { background: var(--navy); color: #fff; }
.tag.b3.lg::before { background: var(--lime-hi); }
.tag.tahan { background: var(--amber); color: var(--amber-ink); }
.tag.tahan::before { background: var(--amber-dot); }
.tag.lain { background: var(--bg-2); color: var(--muted); }
.tag.lain::before { background: #9aa7af; }
.tag.lg { min-height: 34px; font-size: 15px; padding: 0 14px; gap: 9px; }
.tag.lg::before { width: 8px; height: 8px; }
.st { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.st.ok { color: var(--ok); }
.st.cek { color: var(--amber-ink); }
.st.err { color: var(--err); }

/* ---- server status: dot + words */
.srv { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.srv i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-dot); flex: none; box-shadow: 0 0 0 3px rgba(232, 147, 12, .15); }
.srv.on i { background: #22a65a; box-shadow: 0 0 0 3px rgba(34, 166, 90, .15); }
.srv.off i { background: var(--err); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.srv.wait i { animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ---- page heads and stat row */
.head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.head .t { flex: 1 1 260px; min-width: 0; }
.head .meta { font-size: 14px; color: var(--muted); margin: 6px 0 0; max-width: 72ch; }
.head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.sum > span:not(.tag) { display: grid; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.sum b { font-size: 26px; line-height: 1.15; color: var(--ink); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum .warn b { color: var(--amber-ink); }
.sum:has(> .tag) { display: flex; flex-wrap: wrap; gap: 8px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sechead a { font-size: 14px; font-weight: 600; text-decoration: none; }
.sechead a:hover { text-decoration: underline; }
.section { margin-top: 40px; }
.empty { padding: 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line-2); border-radius: 16px; }

/* ---- home: the capture surface is the focal point */
.scan { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .scan { grid-template-columns: 1fr; } }
.capture { position: relative; background: var(--card); color: var(--text); border-radius: 24px; padding: 44px; display: grid; gap: 16px; align-content: center; min-height: 340px; border: 1px solid var(--line); outline: 2px dashed transparent; outline-offset: -10px; transition: outline-color .15s, background-color .15s; }
.capture.over { outline-color: var(--pri); background-color: var(--pri-soft); }
.capture h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.capture h1 span { color: var(--soft); }
.capture p { color: var(--muted); margin: 0; max-width: 48ch; }
.capture .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 560px) { .capture { padding: 28px 20px; min-height: 0; border-radius: 20px; } .capture .row .btn { flex: 1; } }
.links { display: grid; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.links button, .links a { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14.5px; color: var(--ink); transition: background-color .15s; }
.links > :last-child { border-bottom: 0; }
.links button:hover, .links a:hover { background: var(--bg); }
.links button:focus-visible, .links a:focus-visible { outline: 2px solid var(--pri); outline-offset: -2px; }
.links span { font-weight: 500; font-size: 13px; color: var(--muted); }
.links .srv { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg); }

/* ---- lists: item rows and session rows, inside a white panel */
.list, .rows { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.irow { display: grid; grid-template-columns: auto 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.irow:last-child, .srow:last-child { border-bottom: 0; }
.irow.sel { background: var(--pri-soft); }
.irow img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--bg-2); display: block; cursor: pointer; }
.irow .tx { min-width: 0; cursor: pointer; display: grid; gap: 4px; justify-items: start; }
.irow .tt { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.irow .sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.irow .ra { display: flex; gap: 6px; }
.irow input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--pri); }
.irow .ck:empty { width: 0; }
@media (max-width: 760px) {
  .irow { grid-template-columns: 52px minmax(0, 1fr) auto; padding: 10px 12px; }
  .irow .ck { display: none; }
  .irow .st { grid-column: 2; }
  .irow .ra { grid-row: 1 / 3; grid-column: 3; }
  .irow img { grid-row: 1 / 3; }
}
.srow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
a.srow:hover { background: var(--bg); }
.srow .nm { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .meta { font-size: 13px; color: var(--muted); }
.srow .r { display: flex; gap: 6px 14px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; color: var(--muted); }
.srow .r b { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: #22a65a; margin-right: 8px; vertical-align: 1px; }
.dot.done { background: var(--line-2); }

/* ---- workspace */
.ws { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1023px) { .ws { grid-template-columns: 1fr; gap: 14px; } }
.filters { display: grid; gap: 2px; position: sticky; top: 96px; }
.filters button { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: none; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; text-align: left; }
.filters button .num { font-size: 12.5px; color: var(--soft); }
.filters button:hover { background: var(--bg-2); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--pri-soft); color: var(--pri-d); }
.filters button[aria-pressed="true"] .num { color: var(--pri-d); }
.filters .cap { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); padding: 16px 12px 4px; }
@media (max-width: 1023px) {
  .filters { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 2px; scrollbar-width: none; }
  .filters button { flex: none; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; }
  .filters button[aria-pressed="true"] { border-color: var(--pri-line); }
  .filters .cap { display: none; }
}
.add { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.add .btn { flex: 0 0 auto; }
@media (max-width: 560px) { .add .btn { flex: 1; } }
.drop { border: 1.5px dashed var(--line-2); border-radius: 16px; background: var(--card); padding: 14px 16px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.drop.over { border-color: var(--pri); background: var(--pri-soft); }
.drop .btns { display: flex; gap: 8px; margin-left: auto; }
.latest { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; margin-bottom: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.latest img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; background: var(--bg-2); display: block; }
.latest .to { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.latest .kind { font-weight: 700; color: var(--ink); margin-top: 10px; }
.latest p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.latest .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 560px) { .latest { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; } .latest img { width: 84px; height: 84px; } }
.bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 2px 12px; font-size: 13px; color: var(--muted); }
.bulk label { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; cursor: pointer; }
.bulk input { width: 18px; height: 18px; accent-color: var(--pri); }
.note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--pri); animation: rot .8s linear infinite; display: inline-block; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---- dialogs */
dialog { border: 1px solid var(--line); padding: 0; border-radius: 20px; width: min(780px, 100% - 24px); max-height: calc(100% - 24px); background: var(--card); color: var(--text); box-shadow: 0 24px 64px -12px rgba(15, 46, 71, .3); }
dialog::backdrop { background: rgba(15, 46, 71, .45); backdrop-filter: blur(2px); }
@media (max-width: 760px) { dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92vh; } }
.dlg { padding: 22px; display: grid; gap: 16px; }
.dlg .top { display: flex; align-items: center; gap: 10px; }
.dlg .top h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.dlg .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 4px; }
.det { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 760px) { .det { grid-template-columns: 1fr; } .det img.ph { max-height: 240px; } }
.det img.ph { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--bg-2); border-radius: 16px; display: block; }
.det .col { display: grid; gap: 14px; min-width: 0; }
.det .k { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.det .g { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -.015em; }
.det .hand { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.confirm { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details.why { border-top: 1px solid var(--line); }
details.why summary { cursor: pointer; min-height: 46px; display: flex; align-items: center; font-weight: 600; color: var(--pri); }
.ev { padding: 6px 0 12px; }
.ev h3 { font-size: 14px; }
.ev .h { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.nbg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.nbg figure { margin: 0; }
.nbg img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--bg-2); }
.nbg img.same { outline: 2px solid var(--pri); outline-offset: -2px; }
.nbg figcaption { font-size: 11px; color: var(--muted); text-align: center; margin-top: 3px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cb { display: grid; grid-template-columns: 150px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; margin: 5px 0; }
.cb .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb .tr { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.cb .tr i { display: block; height: 100%; background: #c3ced5; }
.cb.win .t { font-weight: 700; color: var(--ink); }
.cb.win .tr i { background: var(--pri); }
.cb .n { text-align: right; font-variant-numeric: tabular-nums; }
.gauge { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--lime) 0 var(--thr), var(--amber) var(--thr) 100%); margin: 24px 0 6px; }
.gauge .mk { position: absolute; top: -6px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); }
.gauge .th { position: absolute; top: -21px; font-size: 11px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.gl { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* ---- Panduan jenis: one panel per bin, rows with the cluster's photo strip */
.jgroup { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.jgroup + .jgroup { margin-top: 20px; }
.jgroup > .sechead { padding: 16px 20px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.jgroup .rows, .jgroup .empty { border: 0; border-radius: 0; }
.jrow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 20px; align-items: center; width: 100%; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background-color .15s; }
.jrow:last-child { border-bottom: 0; }
.jrow:hover { background: var(--bg); }
.jrow:focus-visible { outline: 2px solid var(--pri); outline-offset: -2px; }
.jrow img { width: 220px; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 10px; background: var(--bg-2); display: block; }
.jrow .jt { font-weight: 700; color: var(--ink); }
.jrow .jh { font-size: 13px; color: var(--muted); margin-top: 2px; }
.jrow .jn { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; line-height: 2; }
@media (max-width: 760px) { .jrow { grid-template-columns: 1fr auto; padding: 14px 16px; } .jrow img { grid-column: 1 / -1; width: 100%; } }
.jgal { width: 100%; border-radius: 16px; display: block; background: var(--bg-2); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); }
.facts b { color: var(--ink); }

/* ---- Cara kerja: an article */
.article { max-width: 880px; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pipe li { display: grid; align-content: start; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.pipe li b { display: block; color: var(--ink); }
.pipe li span { font-size: 13px; color: var(--muted); }
.pipe li i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--pri); background: var(--pri-soft); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 6px; }
@media (max-width: 760px) { .pipe { grid-template-columns: 1fr 1fr; } }
table.mini { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
table.mini th, table.mini td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.mini tbody tr:last-child td { border-bottom: 0; }
table.mini th { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); }
table.mini .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.mini td.big { font-size: 16px; font-weight: 700; color: var(--pri); }
.tw { overflow-x: auto; }

/* ---- Riwayat: per-bin bars */
.bars { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.bar-r { display: grid; grid-template-columns: 220px minmax(0, 1fr) 44px; gap: 14px; align-items: center; font-size: 13px; }
.bar-r .tag { justify-self: start; }
.bar-r .tr { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.bar-r .tr i { display: block; height: 100%; background: var(--lime-dot); border-radius: 4px; }
.bar-r .tr i.b3 { background: var(--navy); }
.bar-r .tr i.tahan { background: var(--amber-dot); }
.bar-r .tr i.lain { background: #9aa7af; }
.bar-r .n { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bar-r { grid-template-columns: 1fr 36px; } .bar-r .tr { grid-column: 1 / -1; grid-row: 2; } }

/* ---- documents (tanda terima / manifest), print-ready */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.doc .dh { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 18px; }
.doc .dh h1 { font-size: 22px; }
.doc h2 { font-size: 15px; margin-top: 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 6px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 12px; color: var(--muted); font-weight: 600; }
.doc .n { text-align: right; font-variant-numeric: tabular-nums; }
.doc tr.tot td { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.doc .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; font-size: 14px; }
.doc .sign div { border-top: 1px solid var(--ink); padding-top: 6px; margin-top: 64px; }
@media (max-width: 560px) { .doc { padding: 18px; } }
@media print {
  .top, .tabs, .foot, .noprint { display: none !important; }
  main { margin: 0; padding: 0; }
  body { background: #fff; }
  .doc { border: 0; padding: 0; }
  .tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 12px 32px -8px rgba(15, 46, 71, .4); }
@media (max-width: 1023px) { .toast { bottom: calc(var(--tabs) + 16px); } }

/* ---- Jenis baru: candidate groups with their photos and a naming form */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin: 12px 0; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--bg-2); display: block; cursor: pointer; }
.cand { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.cand + .cand { margin-top: 14px; }
form.name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.name input { flex: 1 1 220px; width: auto; }
form.name select { flex: 0 1 180px; width: auto; }

/* ---- Uji metode: the with/without CMRE comparison is the focal point */
.pipe.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .pipe.three { grid-template-columns: 1fr; } }
.tree { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font: 400 13px/1.6 ui-monospace, "JetBrains Mono", Consolas, monospace; color: var(--text); overflow-x: auto; margin: 16px 0; }
.verdictbox { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.verdictbox > div { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.verdictbox .k { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.vs { display: flex; gap: 32px; align-items: flex-end; flex-wrap: wrap; }
.vs span { display: grid; font-size: 13px; font-weight: 600; color: var(--muted); }
.vs b { font-size: 34px; line-height: 1.05; color: var(--soft); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vs .win b { font-size: 52px; color: var(--pri); }
