:root {
  /* Brand Jadwalin (dokumen produk v2 bagian 5): rapi · tenang · adil — tosca + putih, aksen koral */
  --brand: #0E7C7B; --aksen: #F2784B; --bg: #F6FAF9; --bg-gelap: #0D1B1E; --teks: #13292B; --sukses: #1F9D55; --peringatan: #D64545;
  --kode-p: #F6C445; --kode-s: #F2784B; --kode-m: #5B5BD6; --kode-l: #C9D3D2; --kode-c: #8FB8DE;
  --font-judul: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-isi: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --panel: #FFFFFF; --panel2: #EDF4F3; --line: #D8E5E3; --text: var(--teks); --muted: #5B7271;
  --brand2: #0A6463; --brandSoft: #DDF0EF; --on-brand: #FFFFFF; --aksenSoft: #FDE8DF; --aksenText: #B4491F;
  --warnSoft: #FBE3E3; --warnText: #A33030; --okSoft: #DDF3E6; --kodeText: #13292B; --kodeTextGelap: #FFFFFF;
  --shadow: 0 1px 2px rgba(13,40,40,.05), 0 6px 18px rgba(13,40,40,.06); --r: 14px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: var(--bg-gelap); --teks: #E6F1F0; --panel: #132629; --panel2: #1A3134; --line: #24403F; --muted: #93AEAC;
  --brand: #3CC1BE; --brand2: #6AD3D0; --brandSoft: #123B3C; --on-brand: #06201F; --aksen: #FF916A; --aksenSoft: #3D2419; --aksenText: #FFB394;
  --warnSoft: #3D1C1C; --warnText: #FF9C9C; --okSoft: #133524; --sukses: #4FD18A; --peringatan: #FF8080;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font-isi); }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-family: var(--font-judul); letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
small, .muted { color: var(--muted); }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-size: .9em; }

.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 12px; color: var(--muted); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: block; flex: none; }
.logo-mark.big { width: 64px; height: 64px; margin: 0 auto; }

.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 14px; color: var(--text); }
.brand b { display: block; font-family: var(--font-judul); font-size: 18px; } .brand small { font-size: 12px; }
.nav-h { font-size: 11px; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin: 14px 10px 6px; }
.nav-a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); font-size: 14px; }
.nav-a:hover { background: var(--panel2); }
.nav-a.on { background: var(--brandSoft); color: var(--brand); font-weight: 600; }
.nav-a .n { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.nav-a .tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--aksenSoft); color: var(--aksenText); }
.side-foot { margin-top: auto; padding: 12px 10px 0; font-size: 12px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; display: flex; gap: 10px; align-items: center; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; max-width: 560px; }
.search input { width: 100%; padding: 10px 40px 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); outline: none; }
.search input:focus { border-color: var(--brand); }
.search kbd { position: absolute; right: 10px; top: 9px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; color: var(--muted); }
.qres { position: absolute; left: 0; right: 0; top: 46px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto; padding: 6px; }
.qres a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; }
.qres a:hover { background: var(--panel2); }
.qres .qh { font-size: 11px; font-weight: 700; color: var(--muted); padding: 8px 10px 2px; letter-spacing: .06em; }
.icon-btn { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; flex: none; }
.view { padding: 24px; max-width: 1240px; width: 100%; }
.foot { margin-top: auto; padding: 18px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat b { display: block; font: 700 1.7rem/1.1 var(--font-mono); color: var(--brand); } .stat span { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.hero { background: linear-gradient(135deg, var(--brandSoft), var(--panel) 70%); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; overflow: hidden; }
.hero h1 { margin-bottom: 6px; }
.hero .mini { position: absolute; right: 18px; top: 18px; display: grid; grid-template-columns: repeat(7, 16px); gap: 3px; opacity: .9; }
.hero .mini i { width: 16px; height: 16px; border-radius: 4px; display: block; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 11px; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; }
.btn:hover { background: var(--brand2); }
.btn.ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--panel2); }
.btn.koral { background: var(--aksen); color: #fff; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.chip.ok { background: var(--okSoft); color: var(--sukses); border-color: transparent; }
.chip.merah { background: var(--warnSoft); color: var(--warnText); border-color: transparent; }
.chip.koral { background: var(--aksenSoft); color: var(--aksenText); border-color: transparent; }
.chip.brand { background: var(--brandSoft); color: var(--brand); border-color: transparent; }

label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.inp, select.inp, textarea.inp { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); outline: none; }
.inp:focus { border-color: var(--brand); }
textarea.inp { min-height: 180px; resize: vertical; line-height: 1.5; }
.inp.num { width: 76px; text-align: center; font-family: var(--font-mono); padding: 8px 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.steps { display: flex; gap: 6px; margin: 4px 0 6px; }
.steps div { flex: 1; height: 6px; border-radius: 4px; background: var(--line); }
.steps div.on { background: var(--brand); }
.steplab { display: flex; gap: 6px; margin-bottom: 18px; font-size: 12px; color: var(--muted); }
.steplab span { flex: 1; } .steplab span.on { color: var(--brand); font-weight: 700; }
.disclaimer { background: var(--aksenSoft); color: var(--aksenText); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.danger { background: var(--warnSoft); color: var(--warnText); border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.okbox { background: var(--okSoft); color: var(--sukses); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; }

.pola { display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; text-align: left; width: 100%; }
.pola:hover { border-color: var(--brand); }
.pola.on { border-color: var(--brand); background: var(--brandSoft); }
.pola .ic { font-size: 24px; } .pola b { display: block; font-size: 14px; } .pola span { font-size: 12.5px; color: var(--muted); }

/* Grid jadwal */
.gwrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); max-height: 72vh; }
table.jg { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
table.jg th, table.jg td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; text-align: center; white-space: nowrap; }
table.jg thead th { position: sticky; top: 0; background: var(--panel2); z-index: 2; font-weight: 700; padding: 4px 0; min-width: 30px; }
table.jg thead th small { display: block; font-weight: 500; font-size: 10px; color: var(--muted); }
table.jg thead th.lib { background: var(--warnSoft); color: var(--warnText); cursor: pointer; }
table.jg th.nm, table.jg td.nm { position: sticky; left: 0; background: var(--panel); z-index: 1; text-align: left; padding: 4px 10px; min-width: 170px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
table.jg thead th.nm { z-index: 3; background: var(--panel2); }
table.jg td.nm b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
table.jg td.nm small { font-size: 10.5px; }
table.jg td.c { width: 30px; height: 32px; cursor: pointer; font: 700 12px var(--font-mono); position: relative; }
table.jg td.c:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
table.jg td.c.k-P { background: var(--kode-p); color: var(--kodeText); }
table.jg td.c.k-S { background: var(--kode-s); color: var(--kodeText); }
table.jg td.c.k-M { background: var(--kode-m); color: var(--kodeTextGelap); }
table.jg td.c.k-L { background: var(--kode-l); color: var(--kodeText); }
table.jg td.c.k-C { background: var(--kode-c); color: var(--kodeText); }
table.jg td.c.k-x { background: var(--brandSoft); color: var(--brand); }
table.jg td.c.minta::before { content: ''; position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--teks); opacity: .55; }
table.jg td.c.kunci::after { content: ''; position: absolute; right: 2px; bottom: 2px; width: 6px; height: 6px; border-radius: 1px; background: var(--teks); opacity: .7; }
table.jg td.c.bad { box-shadow: inset 0 0 0 2.5px var(--peringatan); }
table.jg td.c.kosong { background: var(--panel); color: var(--muted); font-weight: 400; }
table.jg td.t { font: 600 11.5px var(--font-mono); padding: 0 6px; background: var(--panel2); }
table.jg tr.sum td { font: 600 11px var(--font-mono); background: var(--panel2); height: 24px; }
table.jg tr.sum td.kurang { background: var(--warnSoft); color: var(--warnText); }
table.jg tr.sum td.nm { background: var(--panel2); font-family: var(--font-isi); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; margin: 10px 0; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.pop { position: fixed; z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px; width: 260px; }
.pop .kodes { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.pop .kodes button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); font: 700 14px var(--font-mono); cursor: pointer; }
.pop .tukar { max-height: 220px; overflow: auto; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.pop .tukar button { display: flex; width: 100%; justify-content: space-between; border: 0; background: none; padding: 7px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; text-align: left; }
.pop .tukar button:hover { background: var(--panel2); }
.pop .tukar button span.mono { font-weight: 700; }
.issue { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--warnSoft); color: var(--warnText); font-size: 13px; margin-bottom: 6px; }

.list a.item, .item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); margin-bottom: 8px; }
.item:hover { border-color: var(--brand); }
.item .code { font: 600 12px var(--font-mono); color: var(--brand); background: var(--brandSoft); padding: 2px 6px; border-radius: 6px; flex: none; }
.item .t { font-weight: 600; } .item .s { font-size: 13px; color: var(--muted); }
.star { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--muted); padding: 0 4px; flex: none; margin-left: auto; }
.star.on { color: #E8A317; }
.kat { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); }
.kat:hover { border-color: var(--brand); } .kat b { display: block; font-size: 14px; } .kat span { font-size: 12px; color: var(--muted); }
.kat .ic { font-size: 22px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.tabs button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
.tabs button.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }

/* Preview dokumen */
.doc { background: #fff; color: #1b1b1b; border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; font: 13.5px/1.55 Arial, sans-serif; max-height: 70vh; overflow: auto; }
.doc .kop { text-align: center; border-bottom: 3px double #0E7C7B; padding-bottom: 6px; margin-bottom: 14px; }
.doc .kop b { font-size: 16px; display: block; } .doc .kop span { font-size: 12.5px; }
.doc h4 { text-align: center; font-size: 15px; margin: 4px 0 8px; } .doc h5 { font-size: 13.5px; margin: 12px 0 6px; }
.doc table { border-collapse: collapse; width: 100%; margin: 6px 0 10px; font-size: 12.5px; }
.doc td, .doc th { border: 1px solid #9aa9a8; padding: 4px 6px; vertical-align: top; }
.doc th { background: #E3EFEE; }
.doc .ttd { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 14px; }
.doc .ttd div { min-height: 90px; white-space: pre-line; }
.doc p { margin: 0 0 6px; }
pre.prompt { white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 12.5px/1.5 var(--font-mono); max-height: 320px; overflow: auto; }

.modal { position: fixed; inset: 0; background: rgba(5,20,20,.5); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--panel); border-radius: 18px; padding: 22px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; border: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--teks); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); max-width: 90vw; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 15; }
.only-m { display: none !important; }
.bottom { position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); display: flex; z-index: 12; padding-bottom: env(safe-area-inset-bottom); }
.bottom a { flex: 1; text-align: center; padding: 8px 2px; font-size: 11px; color: var(--muted); }
.bottom a span { display: block; font-size: 18px; } .bottom a.on { color: var(--brand); font-weight: 600; }
.loading { display: inline-block; width: 16px; height: 16px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; }
  .only-m { display: flex !important; } .only-d { display: none; }
  .top { padding: 10px 14px; } .view { padding: 16px 16px 96px; } .foot { padding-bottom: 80px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3, .g2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .hero .mini { display: none; }
  table.jg th.nm, table.jg td.nm { min-width: 112px; max-width: 120px; padding: 4px 6px; }
  .doc { padding: 16px; }
}
