/* ======================================================================================
   Sync365: sistem reka bentuk "Instrumen"
   Swiss-editorial: tipografi sebagai struktur, garis halus, satu aksen terang digunakan sebagai DATA.
   Tiada gradien, bayang kad, kotak ikon berwarna, atau label pastel.
   Fon: Instrument Serif (paparan), IBM Plex Sans (UI), IBM Plex Mono (data, kod, tarikh).
   ====================================================================================== */
:root {
  --bg: #f6f5f0; --panel: #ffffff; --ink: #0d0e0b; --ink2: #4b4d46; --ink3: #85877d;
  --rule: #e3e1d8; --rule2: #cdcabd; --hover: rgba(13,14,11,.045); --press: rgba(13,14,11,.085);
  --accent: #0ee0b4; --accent-ink: #03211b; --accent-text: #00705c; --accent-tint: rgba(14,224,180,.16); --accent-line: rgba(0,112,92,.35);
  --warn: #f2a900; --warn-text: #8a5800; --warn-tint: rgba(242,169,0,.14); --danger: #ee4a35; --danger-text: #b3261b; --danger-tint: rgba(238,74,53,.1); --ok-text: #00705c;
  --overlay: 0 0 0 1px rgba(13,14,11,.08), 0 18px 48px rgba(13,14,11,.22);
  --focus: 0 0 0 3px rgba(14,224,180,.4);
  --f-ui: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b09; --panel: #11130f; --ink: #f3f4ee; --ink2: #a4a79b; --ink3: #6c6f65;
    --rule: rgba(255,255,255,.085); --rule2: rgba(255,255,255,.17); --hover: rgba(255,255,255,.05); --press: rgba(255,255,255,.09);
    --accent: #2cf0c9; --accent-ink: #03221b; --accent-text: #2cf0c9; --accent-tint: rgba(44,240,201,.13); --accent-line: rgba(44,240,201,.4);
    --warn: #ffc24a; --warn-text: #ffc24a; --warn-tint: rgba(255,194,74,.12); --danger: #ff6a55; --danger-text: #ff8a78; --danger-tint: rgba(255,106,85,.12); --ok-text: #2cf0c9;
    --overlay: 0 0 0 1px rgba(255,255,255,.1), 0 18px 48px rgba(0,0,0,.65);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b09; --panel: #11130f; --ink: #f3f4ee; --ink2: #a4a79b; --ink3: #6c6f65;
  --rule: rgba(255,255,255,.085); --rule2: rgba(255,255,255,.17); --hover: rgba(255,255,255,.05); --press: rgba(255,255,255,.09);
  --accent: #2cf0c9; --accent-ink: #03221b; --accent-text: #2cf0c9; --accent-tint: rgba(44,240,201,.13); --accent-line: rgba(44,240,201,.4);
  --warn: #ffc24a; --warn-text: #ffc24a; --warn-tint: rgba(255,194,74,.12); --danger: #ff6a55; --danger-text: #ff8a78; --danger-tint: rgba(255,106,85,.12); --ok-text: #2cf0c9;
  --overlay: 0 0 0 1px rgba(255,255,255,.1), 0 18px 48px rgba(0,0,0,.65);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--f-ui); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--f-mono); } .num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink2); } .faint { color: var(--ink3); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 8px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl { font: 500 10.5px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--rule2); border-top-color: var(--accent-text); animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes cell-in { from { opacity: 0; transform: scaleY(.3); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- memuat ---- */
.boot { display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.boot .sk-side { border-right: 1px solid var(--rule); padding: 18px 14px; display: grid; gap: 12px; align-content: start; }
.boot .sk-main { padding: 56px 48px; display: grid; gap: 16px; align-content: start; max-width: 1120px; }
.sk { height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--hover) 25%, var(--press) 37%, var(--hover) 63%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }

/* ---- rangka ---- */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--rule); padding: 16px 10px 12px; display: flex; flex-direction: column; gap: 1px; background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 18px; }
.wm { font: 600 17px/1 var(--f-ui); letter-spacing: -.045em; } .wm b { color: var(--accent-text); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; background: none; border-radius: 6px; color: var(--ink2); cursor: pointer; text-align: left; font-size: 14px; font-weight: 450; transition: background .12s, color .12s; position: relative; }
.nav:hover { background: var(--hover); color: var(--ink); }
.nav[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--hover); } .nav[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav .cnt { margin-left: auto; font: 600 11px/18px var(--f-mono); background: var(--accent); color: var(--accent-ink); border-radius: 4px; padding: 0 6px; }
.nav kbd { margin-left: auto; }
kbd { font: 500 10.5px/16px var(--f-mono); color: var(--ink3); border: 1px solid var(--rule2); border-radius: 4px; padding: 0 5px; background: transparent; }
.sec { margin: 22px 10px 6px; }
.dim { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--ink2); font-size: 13px; font-weight: 550; text-align: left; }
.dim:hover { background: var(--hover); color: var(--ink); } .dim svg { width: 12px; height: 12px; transition: transform .14s; } .dim[aria-expanded="true"] svg { transform: rotate(90deg); } .dim .pc { margin-left: auto; font: 500 11px var(--f-mono); color: var(--ink3); }
.asp { display: flex; align-items: center; gap: 9px; padding: 0 10px 0 30px; min-height: 28px; border-radius: 6px; color: var(--ink2); font-size: 13px; }
.asp:hover { background: var(--hover); color: var(--ink); } .asp[aria-current="page"] { background: var(--hover); color: var(--ink); font-weight: 550; }
.asp .c { font: 500 11px var(--f-mono); color: var(--ink3); width: 24px; flex: none; }
.sq { width: 7px; height: 7px; border-radius: 2px; flex: none; background: var(--rule2); }
.sq.lemah { background: var(--danger); } .sq.sederhana { background: var(--warn); } .sq.kuat { background: var(--accent); } .sq.off { background: transparent; box-shadow: inset 0 0 0 1px var(--rule2); }
.me { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 10px; }
.me .av { width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 600 13px var(--f-ui); flex: none; }
.me .who { min-width: 0; flex: 1; line-height: 1.25; } .me .btn { padding: 0; width: 28px; height: 28px; }
.main { min-width: 0; }
.tb { position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 48px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.tb .crumb { font: 500 12px var(--f-mono); color: var(--ink3); letter-spacing: .02em; } .tb .crumb b { color: var(--ink); font-weight: 500; }
.tb .menu { display: none; }
.search { display: flex; align-items: center; gap: 10px; height: 32px; width: 220px; padding: 0 10px; border: 1px solid var(--rule2); border-radius: 6px; background: var(--panel); color: var(--ink3); cursor: pointer; font-size: 13px; } .search:hover { border-color: var(--ink3); } .search span { flex: 1; text-align: left; }
.page { max-width: 1160px; margin: 0 auto; padding: 44px 48px 140px; outline: none; }
.page.enter > * { animation: fadein .26s both; }
h1.display { font: 400 clamp(44px, 5.4vw, 68px)/.98 var(--f-display); letter-spacing: -.025em; margin: 0; } h1.display em { font-style: italic; color: var(--accent-text); }
h1.title { font: 400 clamp(36px, 4vw, 52px)/1.02 var(--f-display); letter-spacing: -.022em; margin: 0; }
.kick { font: 500 12px var(--f-mono); color: var(--ink3); letter-spacing: .04em; margin-top: 14px; }
.sh { display: flex; align-items: baseline; gap: 14px; margin: 64px 0 18px; padding-top: 14px; border-top: 1px solid var(--ink); }
.sh .n { font: 500 11px var(--f-mono); color: var(--ink3); } .sh h2 { font: 400 30px/1.05 var(--f-display); letter-spacing: -.015em; } .sh .r { margin-left: auto; }
.lead2 { color: var(--ink2); max-width: 64ch; margin: -6px 0 18px; font-size: 14.5px; }

/* ---- kawalan ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--rule2); background: transparent; border-radius: 6px; cursor: pointer; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--hover); border-color: var(--ink3); } .btn:active { transform: translateY(1px); } .btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; } .btn.pri:hover { filter: brightness(1.06); }
.btn.ink { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 550; } .btn.ink:hover { filter: opacity(.88); }
.btn.ghost { border-color: transparent; color: var(--ink2); } .btn.ghost:hover { background: var(--hover); color: var(--ink); border-color: transparent; }
.btn.dng { color: var(--danger-text); } .btn.sm { height: 28px; padding: 0 10px; font-size: 13px; } .btn.icon { width: 32px; padding: 0; } .btn.sm.icon { width: 28px; }
.in { height: 34px; padding: 0 10px; border: 1px solid var(--rule2); border-radius: 6px; background: var(--panel); width: 100%; transition: border-color .12s, box-shadow .12s; }
.in:hover { border-color: var(--ink3); } .in:focus { outline: none; border-color: var(--accent-text); box-shadow: var(--focus); } textarea.in { height: auto; min-height: 92px; padding: 9px 10px; resize: vertical; line-height: 1.5; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--rule2); border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 100%; color: var(--ink); }
.chip i { width: 7px; height: 7px; border-radius: 2px; background: var(--c, var(--ink3)); flex: none; } .chip.warn { border-color: var(--warn); color: var(--warn-text); background: var(--warn-tint); } .chip.ok { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-tint); } .chip.bad { border-color: var(--danger); color: var(--danger-text); background: var(--danger-tint); }
.code { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border: 1px solid var(--rule2); border-radius: 4px; font: 500 11px var(--f-mono); color: var(--ink2); white-space: nowrap; }
.code button { border: 0; background: none; padding: 0; cursor: pointer; opacity: .55; display: grid; color: inherit; } .code button:hover { opacity: 1; } .code svg { width: 11px; height: 11px; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.bar { height: 3px; background: var(--rule); overflow: hidden; position: relative; } .bar i { display: block; height: 100%; background: var(--accent); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-tint); font-size: 13.5px; margin: 14px 0; border-radius: 0 6px 6px 0; } .note svg { margin-top: 2px; color: var(--accent-text); }
.note.warn { border-color: var(--warn); background: var(--warn-tint); } .note.warn svg { color: var(--warn-text); } .note.bad { border-color: var(--danger); background: var(--danger-tint); } .note.bad svg { color: var(--danger-text); } .note b { font-weight: 600; }
.err { background: var(--danger-tint); color: var(--danger-text); border-left: 3px solid var(--danger); padding: 10px 14px; margin-bottom: 16px; border-radius: 0 6px 6px 0; }

/* ---- ikhtisar ---- */
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stat4 { padding: 18px 22px 20px; border-right: 1px solid var(--rule); min-width: 0; } .stat4:first-child { padding-left: 0; } .stat4:last-child { border-right: 0; }
.stat4 .v { font: 400 76px/1 var(--f-display); letter-spacing: -.035em; margin: 14px 0 10px; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; } .stat4 .v small { font: 450 15px var(--f-ui); letter-spacing: 0; color: var(--ink3); margin-left: 4px; }
.stat4 .s { color: var(--ink2); font-size: 13px; min-height: 20px; } .stat4 a.s { display: inline-flex; gap: 4px; align-items: center; color: var(--accent-text); font-weight: 600; } .stat4 a.s:hover { text-decoration: underline; }
.stat4 .bar { margin-top: 12px; }
.dz { display: flex; align-items: center; gap: 16px; min-height: 64px; margin-top: 28px; padding: 12px 18px; border: 1px dashed var(--rule2); border-radius: 8px; cursor: pointer; transition: border-color .12s, background .12s; }
.dz:hover, .dz.over { border-color: var(--accent-text); background: var(--accent-tint); } .dz svg.i { width: 20px; height: 20px; color: var(--ink2); } .dz b { font-weight: 600; font-size: 14.5px; }
.ulog { margin-top: 18px; border-top: 1px solid var(--rule); } .ulh { display: flex; align-items: center; gap: 10px; padding: 10px 0 6px; }
.ul { display: flex; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); position: relative; } .ul.done { cursor: pointer; } .ul.done:hover { background: var(--hover); }
.ul .sti { width: 20px; display: grid; place-items: center; flex: none; color: var(--ink3); } .ul.ok .sti { color: var(--accent-text); } .ul.rev .sti { color: var(--warn-text); } .ul.bad .sti { color: var(--danger-text); }
.ul .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pbar { height: 2px; background: var(--rule); margin-top: 8px; overflow: hidden; } .pbar::after { content: ""; display: block; height: 100%; width: 30%; background: var(--accent); animation: slide-i 1s infinite ease-in-out; } @keyframes slide-i { from { transform: translateX(-100%); } to { transform: translateX(340%); } }

.yr-wrap { overflow-x: auto; padding-bottom: 6px; } .yr { width: max-content; }
.yr-m { position: relative; height: 16px; font: 500 10.5px var(--f-mono); color: var(--ink3); } .yr-m span { position: absolute; top: 0; }
.yr-g { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); gap: 3px; margin-top: 4px; }
.yc { width: 12px; height: 12px; border-radius: 2px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--rule); } .yc.e { background: none; box-shadow: none; }
.yc[data-l="1"] { background: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: none; } .yc[data-l="2"] { background: color-mix(in srgb, var(--accent) 78%, transparent); box-shadow: none; } .yc[data-l="3"] { background: var(--accent); box-shadow: none; }
.yc[data-fut="1"] { background: none; box-shadow: inset 0 0 0 1px var(--rule); opacity: .6; } .yc[data-today="1"] { box-shadow: 0 0 0 1.5px var(--ink); }
.yr-note { display: flex; gap: 18px; align-items: center; margin-top: 12px; font-size: 12.5px; color: var(--ink2); flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 4px; color: var(--ink3); font: 500 11px var(--f-mono); } .lg i { width: 12px; height: 12px; border-radius: 2px; display: block; background: var(--hover); box-shadow: inset 0 0 0 1px var(--rule); }
.lg i[data-l="1"] { background: color-mix(in srgb, var(--accent) 38%, transparent); box-shadow: none; } .lg i[data-l="2"] { background: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: none; } .lg i[data-l="3"] { background: var(--accent); box-shadow: none; }

.mx { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; overflow-x: auto; padding: 4px 0 8px; }
.mxr { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(12, 28px) 44px; gap: 3px; align-items: center; padding: 0 16px; min-width: 640px; height: 31px; }
a.mxr { transition: background .1s; } a.mxr:hover { background: var(--hover); }
.mxh { height: 34px; align-items: end; font: 500 10.5px var(--f-mono); color: var(--ink3); } .mxh span { text-align: center; padding-bottom: 6px; } .mxh span.now { color: var(--accent-text); font-weight: 700; }
.mxd { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px 6px; min-width: 640px; font-weight: 600; font-size: 13.5px; border-top: 1px solid var(--rule); } .mxd:nth-of-type(1) { border-top: 0; } .mxd span { font: 500 11px var(--f-mono); color: var(--ink3); }
.mxl { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; } .mxl .c { font: 500 11px var(--f-mono); color: var(--ink3); width: 24px; flex: none; }
.mxc { height: 19px; border-radius: 2px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--rule); }
.mxc[data-l="1"] { background: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: none; } .mxc[data-l="2"] { background: color-mix(in srgb, var(--accent) 78%, transparent); box-shadow: none; } .mxc[data-l="3"] { background: var(--accent); box-shadow: none; }
.mxc[data-fut="1"] { background: none; box-shadow: inset 0 0 0 1px var(--rule); opacity: .55; } .mxc[data-now="1"][data-l="0"] { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-line); }
.mx.anim .mxc { animation: cell-in .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); transform-origin: bottom; }
.mxn { text-align: right; font: 500 12px var(--f-mono); color: var(--ink2); }
.legend { display: flex; gap: 8px; align-items: center; margin: 12px 2px 0; color: var(--ink3); font: 500 11px var(--f-mono); flex-wrap: wrap; }
.rw { display: grid; grid-template-columns: 56px minmax(0, 1fr) 120px 48px auto; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule); } .rw:first-child { border-top: 1px solid var(--rule); }
.rw .t { font-weight: 550; line-height: 1.35; } .rw .w { font: 500 12px var(--f-mono); color: var(--ink3); text-align: right; }
a.t:hover { text-decoration: underline; text-underline-offset: 3px; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; border-top: 1px solid var(--rule); } .how > div { padding: 16px 24px 4px 0; display: grid; gap: 6px; align-content: start; } .how b { font-weight: 600; font-size: 15px; }
.mxh + .mxd { border-top: 0; }

/* ---- jadual & bukti ---- */
.tools { display: flex; gap: 8px; margin: 28px 0 14px; flex-wrap: wrap; } .tools .in { width: auto; flex: 1; min-width: 180px; } .tools select.in { flex: 0 0 auto; width: auto; }
.tbl { border-top: 1px solid var(--ink); }
.tr { display: grid; grid-template-columns: minmax(0, 2.6fr) 104px 150px minmax(0, 1.6fr); gap: 16px; align-items: center; padding: 0 4px; min-height: 48px; border-bottom: 1px solid var(--rule); }
.th { min-height: 34px; font: 500 10.5px var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
button.tr { width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; cursor: pointer; transition: background .1s; } button.tr:hover { background: var(--hover); }
.tr .nm { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 500; } .tr .nm svg { color: var(--ink3); } .tr .dt { font: 450 12.5px var(--f-mono); color: var(--ink2); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; min-width: 0; }
.mh { padding: 22px 4px 8px; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); border-bottom: 1px solid var(--rule); }
.empty { padding: 72px 0; text-align: center; display: grid; gap: 12px; justify-items: center; color: var(--ink2); } .empty .big { font: 400 40px/1 var(--f-display); color: var(--ink); } .empty svg.i { width: 22px; height: 22px; color: var(--accent-text); }

/* ---- peti masuk (terbelah) ---- */
.kbd-hint { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink3); font-size: 12.5px; margin: 18px 0 12px; align-items: center; } .kbd-hint span { display: inline-flex; gap: 6px; align-items: center; }
.split { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); overflow: hidden; min-height: 540px; }
.li-list { border-right: 1px solid var(--rule); overflow-y: auto; max-height: calc(100vh - 250px); min-height: 540px; }
.li { position: relative; padding: 13px 16px 13px 18px; border-bottom: 1px solid var(--rule); cursor: pointer; display: grid; gap: 5px; transition: background .1s; } .li:hover { background: var(--hover); }
.li[aria-selected="true"] { background: var(--accent-tint); } .li[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.li .t { font-weight: 550; line-height: 1.3; } .li .m { display: flex; align-items: center; gap: 10px; font: 450 11.5px var(--f-mono); color: var(--ink3); } .li .bar { width: 36px; margin-left: auto; }
.detail { padding: 24px 30px 30px; overflow-y: auto; max-height: calc(100vh - 250px); min-height: 540px; }
.evp .ttl { width: 100%; border: 0; background: none; font: 400 32px/1.1 var(--f-display); letter-spacing: -.02em; padding: 4px 0; margin: 4px 0 14px; outline: none; border-radius: 4px; } .evp .ttl:focus { box-shadow: none; background: var(--hover); padding-left: 8px; }
.evp .p { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 4px 0; font-size: 13.5px; min-height: 40px; } .evp .p > label { color: var(--ink3); font: 500 11px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.evp .p .in { border-color: transparent; background: none; padding-left: 8px; } .evp .p .in:hover, .evp .p .in:focus { border-color: var(--rule2); background: var(--panel); }
.evp .acts { display: flex; gap: 8px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.evp details { margin-top: 18px; }

/* ---- aspek ---- */
.ahead { display: flex; gap: 22px; align-items: flex-start; margin-top: 4px; } .acode { font: 500 13px var(--f-mono); padding: 5px 9px; border: 1px solid var(--ink); border-radius: 4px; margin-top: 12px; flex: none; letter-spacing: .02em; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); } .stats3 > div { padding: 16px 22px 18px; border-right: 1px solid var(--rule); } .stats3 > div:first-child { padding-left: 0; } .stats3 > div:last-child { border-right: 0; }
.stats3 .v { font: 400 54px/1 var(--f-display); letter-spacing: -.03em; margin: 12px 0 6px; } .stats3 .v small { font: 450 14px var(--f-ui); color: var(--ink3); letter-spacing: 0; margin-left: 4px; }
.mb { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 168px; padding: 16px 16px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); }
.mcol { display: grid; grid-template-rows: 1fr auto auto; gap: 5px; justify-items: center; min-height: 0; } .mbar { width: 100%; max-width: 34px; align-self: stretch; display: flex; align-items: flex-end; background-image: linear-gradient(var(--rule) 1px, transparent 1px); background-size: 100% 25%; } .mbar i { display: block; width: 100%; background: var(--hover); height: 2%; transition: height .6s cubic-bezier(.2,.7,.2,1); } .mbar i[data-on="1"] { background: var(--accent); }
.mcol span { font: 500 10.5px var(--f-mono); color: var(--ink3); } .mcol em { font: 600 11px var(--f-mono); font-style: normal; color: var(--ink2); height: 14px; } .mcol[data-fut="1"] { opacity: .35; } .mcol[data-now="1"] span { color: var(--ink); font-weight: 700; }
details.tg { border-top: 1px solid var(--rule); } details.tg:last-of-type { border-bottom: 1px solid var(--rule); }
details.tg > summary { list-style: none; cursor: pointer; padding: 14px 4px; font-weight: 550; display: flex; gap: 10px; align-items: center; } details.tg > summary::-webkit-details-marker { display: none; }
details.tg > summary svg { width: 12px; height: 12px; transition: transform .14s; color: var(--ink3); } details.tg[open] > summary svg { transform: rotate(90deg); } details.tg .bd { padding: 0 4px 18px 26px; }
.lv { display: flex; gap: 16px; padding: 11px 0; align-items: flex-start; border-bottom: 1px dashed var(--rule); } .lv:last-child { border-bottom: 0; } .lv .n { font: 400 30px/1 var(--f-display); width: 28px; flex: none; color: var(--ink3); } .lv[data-l="5"] .n { color: var(--accent-text); }
ul.tight { margin: 4px 0 10px; padding-left: 20px; } ul.tight li { margin: 4px 0; }

/* ---- lapisan ---- */
.scrim { position: fixed; inset: 0; background: rgba(8,9,7,.46); z-index: 40; animation: fadein .14s; }
.peek { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--bg); box-shadow: var(--overlay); z-index: 41; overflow-y: auto; padding: 16px 30px 40px; animation: slide .2s cubic-bezier(.2,.7,.2,1); } @keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.modal { position: fixed; top: 9vh; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); max-height: 82vh; overflow: auto; background: var(--bg); border-radius: 10px; box-shadow: var(--overlay); z-index: 41; padding: 28px 30px; animation: pop .18s cubic-bezier(.2,.7,.2,1); } @keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }
.modal h2 { font: 400 32px/1.05 var(--f-display); letter-spacing: -.02em; margin: 0 0 16px; } .field { margin-bottom: 14px; } .field label { display: block; font: 500 11px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.seg { display: inline-flex; border: 1px solid var(--rule2); border-radius: 6px; padding: 2px; gap: 2px; } .seg button { border: 0; background: none; height: 26px; padding: 0 14px; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink2); } .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.palette { position: fixed; top: 13vh; left: 50%; transform: translateX(-50%); width: min(620px, calc(100vw - 24px)); background: var(--bg); border-radius: 10px; box-shadow: var(--overlay); z-index: 42; overflow: hidden; animation: pop .14s ease-out; }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--rule); background: none; padding: 18px 20px; font-size: 16px; outline: none; }
.palette ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; } .palette li { display: flex; gap: 12px; align-items: center; padding: 0 12px; height: 38px; border-radius: 6px; cursor: pointer; font-size: 14px; } .palette li[aria-selected="true"] { background: var(--accent-tint); box-shadow: inset 2px 0 0 var(--accent); }
.palette .g { padding: 12px 12px 4px; height: auto; font: 500 10.5px var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); cursor: default; }
.pop { position: fixed; z-index: 60; background: var(--bg); border-radius: 8px; box-shadow: var(--overlay); width: 340px; max-height: 360px; overflow: auto; padding: 8px; animation: fadein .12s; }
.pop .opt { display: flex; gap: 10px; align-items: center; padding: 0 9px; height: 32px; border-radius: 5px; cursor: pointer; font-size: 13.5px; } .pop .opt:hover { background: var(--hover); } .pop .gh { padding: 12px 9px 4px; font: 500 10.5px var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 0 8px 0 16px; height: 44px; border-radius: 8px; box-shadow: var(--overlay); z-index: 70; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 16px; animation: fadein .2s both; }
.toast button { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 5px; height: 28px; padding: 0 12px; font-weight: 650; cursor: pointer; font-size: 13px; }
.tray { position: fixed; right: 20px; bottom: 20px; width: 300px; background: var(--bg); border-radius: 8px; box-shadow: var(--overlay); z-index: 30; padding: 12px 14px; }
.over-all { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 22%, rgba(8,9,7,.7)); pointer-events: none; }
.over-all div { border: 1.5px dashed var(--accent); border-radius: 10px; padding: 52px 64px; color: #fff; font: 400 40px/1.05 var(--f-display); letter-spacing: -.02em; text-align: center; display: grid; gap: 12px; justify-items: center; background: rgba(8,9,7,.55); } .over-all svg { width: 32px; height: 32px; color: var(--accent); } .over-all .small { font: 400 14px var(--f-ui); opacity: .75; letter-spacing: 0; }
.tabbar { display: none; }

@media (max-width: 1080px) {
  .stat4 .v { font-size: 58px; } .stat4 { padding: 16px 16px 18px; }
  .rw { grid-template-columns: 52px minmax(0, 1fr) 100px auto; } .rw .w { display: none; }
}
@media (max-width: 860px) {
  .boot { grid-template-columns: 1fr; } .boot .sk-side { display: none; } .boot .sk-main { padding: 28px 18px; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 50; width: 300px; transform: translateX(-100%); transition: transform .22s cubic-bezier(.2,.7,.2,1); box-shadow: var(--overlay); } .side.open { transform: none; }
  .tb { padding: 0 14px; height: 52px; } .tb .menu { display: inline-flex; } .search { width: 32px; padding: 0; justify-content: center; } .search span, .search kbd, .tb .btn.pri .t { display: none; }
  .page { padding: 28px 18px 120px; } h1.display { font-size: 46px; } .sh { margin-top: 48px; } .sh h2 { font-size: 26px; }
  .stats4 { grid-template-columns: 1fr 1fr; margin-top: 28px; } .stat4 { padding: 16px 14px 18px; border-bottom: 1px solid var(--rule); } .stat4:nth-child(odd) { padding-left: 0; } .stat4:nth-child(2) { border-right: 0; } .stat4:nth-child(n+3) { border-bottom: 0; } .stat4:nth-child(3) { padding-left: 0; } .stat4 .v { font-size: 56px; margin: 10px 0 8px; }
  .stats3 .v { font-size: 38px; } .stats3 > div { padding: 14px 12px 16px; }
  .how { grid-template-columns: 1fr; } .how > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .dz { flex-wrap: wrap; gap: 12px; padding: 16px; } .dz > svg { display: none; } .dz .grow { flex: 1 1 100%; } .dz .grow .small { display: none; } .dz .btn { flex: 1; }
  .rw { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; } .rw > :first-child { grid-column: 1 / -1; } .rw .st { display: none; }
  .tr { grid-template-columns: minmax(0, 1fr) 128px; padding: 0 2px; } .tr .hide-m { display: none; } .kbd-hint { display: none; }
  .split { grid-template-columns: 1fr; border: 0; background: none; min-height: 0; } .li-list { border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); max-height: none; min-height: 0; } .detail { display: none; }
  .peek { padding: 14px 18px 40px; } .evp .p { grid-template-columns: 78px minmax(0, 1fr); }
  .ahead { gap: 12px; flex-direction: column; } .acode { margin-top: 0; } .mb { gap: 3px; padding: 12px 8px 10px; } .tray { left: 12px; right: 12px; width: auto; bottom: 86px; } .toast { bottom: 92px; max-width: calc(100vw - 24px); }
  .modal { top: 5vh; padding: 24px 20px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--rule); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); align-items: center; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px; border: 0; background: none; color: var(--ink3); font-size: 10.5px; font-weight: 550; position: relative; cursor: pointer; } .tab[aria-current="page"] { color: var(--ink); } .tab[aria-current="page"] svg { color: var(--accent-text); }
  .tab .badge { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--accent); color: var(--accent-ink); border-radius: 4px; font: 600 10px/15px var(--f-mono); padding: 0 5px; }
  .fab { width: 50px; height: 50px; border-radius: 12px; border: 0; justify-self: center; margin-top: -18px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 4px var(--bg), 0 8px 18px rgba(0,0,0,.25); } .fab svg { width: 22px; height: 22px; stroke-width: 2.2; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
