:root {
  --brand: #0C7235; --brand-dk: #0A4F27; --brand-ink: #083D1E; --brand-tint: #E8F3EC; --brand-tint2: #D2E8D9;
  --gold: #FFCB08;
  --bg: #F2F5F3; --surface: #FFFFFF; --surface-2: #F8FAF9; --line: #D9E2DC; --line-2: #E8EEEA;
  --ink: #15201A; --ink-2: #435248; --ink-3: #647369;
  --ok: #0CA30C; --ok-bg: #E2F3E4; --ok-tx: #0B5A1F;
  --warn: #FAB219; --warn-bg: #FFF2CF; --warn-tx: #6E4B00;
  --bad: #D03B3B; --bad-bg: #FBE5E3; --bad-tx: #9E2722;
  --info-bg: #E3EDF8; --info-tx: #1B4C86;
  --r: 10px; --r-sm: 7px;
  --shadow: 0 1px 2px rgba(10, 40, 20, .06), 0 8px 24px rgba(10, 40, 20, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
img { display: block; }
.i { flex: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 12.5px; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tombol dan isian */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); touch-action: manipulation; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--surface-2); border-color: #C5D2CA; text-decoration: none; }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-dk); border-color: var(--brand-dk); }
.btn.danger { color: var(--bad-tx); }
.btn.danger:hover { background: var(--bad-bg); border-color: #EDC3BF; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.full { width: 100%; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); min-height: 36px; padding: 0 10px; width: 100%; }
select { padding-right: 28px; }
textarea { padding: 10px; line-height: 1.55; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--brand); flex: none; }
input[type="date"], input[type="time"] { width: auto; }
.chk { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; cursor: pointer; min-height: 28px; color: var(--ink); }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .f { flex: 1 1 240px; }
.num-in { width: 84px; text-align: right; }
.t input, .t select { min-height: 32px; }
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.err { color: var(--bad-tx); font-size: 13px; min-height: 1em; }

/* Pil status */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-2); line-height: 1.2; }
.pill.ok { background: var(--ok-bg); color: var(--ok-tx); }
.pill.warn { background: var(--warn-bg); color: var(--warn-tx); }
.pill.bad { background: var(--bad-bg); color: var(--bad-tx); }
.pill.info { background: var(--info-bg); color: var(--info-tx); }
.pill.brand { background: var(--brand-tint); color: var(--brand-ink); }
.pill.line { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.pill .i { width: 13px; height: 13px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.info { background: var(--info-tx); }
.linkbtn { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 650; cursor: pointer; text-align: left; }
.linkbtn:hover { text-decoration: underline; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.list li:last-child { border-bottom: 0; }
.list a { display: grid; gap: 1px; min-width: 0; color: var(--ink); text-decoration: none; }
.list a:hover b { color: var(--brand); }
.list b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list small { color: var(--ink-3); font-size: 12px; }
.list li > div:first-child { flex: 1; }
.list .acts { flex-wrap: nowrap; }
.panel-f { padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 600; }

/* Kerangka */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; background: var(--brand-dk); color: #fff; display: flex; flex-direction: column; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; }
.brand img { border-radius: 6px; }
.brand b { display: block; font-size: 15px; font-weight: 700; }
.brand span { display: block; font-size: 12px; color: #B9D8C3; }
.nav { display: grid; gap: 2px; padding: 8px 10px; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 7px; color: #CFE6D6; font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); }
.nav .cnt { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #3D2E00; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 8px 12px; }
.side-foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; gap: 10px; font-size: 12px; color: #B9D8C3; }
.side-foot img { opacity: .95; }
.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; height: 60px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 20px; }
.search { position: relative; flex: 1; max-width: 460px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 36px; background: var(--surface-2); height: 38px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; position: relative; }
.badge-n { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.me { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 8px 4px 4px; border-radius: 8px; cursor: pointer; text-align: left; }
.me:hover { background: var(--line-2); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint2); color: var(--brand-ink); font-weight: 700; font-size: 13px; flex: none; }
.me b { display: block; font-size: 13px; font-weight: 600; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me span { display: block; font-size: 12px; color: var(--ink-3); }
.pop { position: absolute; top: 50px; right: 0; width: min(380px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); z-index: 40; overflow: hidden; }
.pop-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.pop-list { max-height: 420px; overflow-y: auto; }
.pop-item { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.pop-item:hover { background: var(--surface-2); text-decoration: none; }
.pop-item.unread { background: #F5FAF6; }
.pop-item .dot { margin-top: 7px; }
.pop-item p { font-size: 13.5px; }
.pop-item small { color: var(--ink-3); font-size: 12px; }
.page { padding: 24px; width: 100%; max-width: 1440px; margin: 0 auto; outline: none; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-h p { color: var(--ink-3); margin-top: 4px; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Panel dan grid */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-h .sub { color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.panel-b { padding: 16px; }
.grid { display: grid; gap: 16px; }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-lap { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
.stack-16 > * + * { margin-top: 16px; }

/* Angka utama */
.hero { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; }
.hero-fig { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hero-fig .l { color: var(--ink-2); font-weight: 600; }
.hero-fig .v { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero-fig .v small { font-size: 22px; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.meter { position: relative; height: 10px; border-radius: 5px; background: var(--brand-tint2); }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }
.meter .tgt { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.kpi { padding: 16px 18px; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); display: grid; gap: 2px; text-decoration: none; color: inherit; }
.kpi:nth-child(-n+2) { border-top: 0; }
.kpi:nth-child(odd) { border-left: 0; }
a.kpi:hover { background: var(--surface-2); text-decoration: none; }
.kpi .l { font-size: 13px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 7px; }
.kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); }

/* Pantauan asisten */
.brief { display: flex; gap: 14px; padding: 14px 16px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--r); }
.brief ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.brief h2 { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.ai-av { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-dk); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 12px; letter-spacing: .02em; flex: none; }

/* Tabel */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t th.r, .t td.r { text-align: right; }
.t td.r { font-variant-numeric: tabular-nums; }
.t tr.go { cursor: pointer; }
.t tr.go:hover td { background: #F5F9F6; }
.t .ttl { font-weight: 600; color: var(--ink); }
.t .ttl:hover { color: var(--brand); }
.t .sub { color: var(--ink-3); font-size: 12.5px; }
.t .mono { white-space: nowrap; }
.empty { padding: 36px 16px; text-align: center; color: var(--ink-3); display: grid; gap: 10px; justify-items: center; }
.empty b { color: var(--ink); font-size: 14.5px; }

/* SLA */
.sla { display: grid; gap: 5px; min-width: 110px; }
.slabar { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; width: 110px; }
.slabar i { display: block; height: 100%; border-radius: 0 3px 3px 0; }
.slabar i.ok { background: var(--ok); } .slabar i.warn { background: var(--warn); } .slabar i.bad { background: var(--bad); }
.stackbar { display: flex; gap: 2px; height: 14px; min-width: 160px; }
.stackbar i { display: block; height: 100%; min-width: 4px; }
.stackbar i:first-child { border-radius: 4px 0 0 4px; }
.stackbar i:last-child { border-radius: 0 4px 4px 0; }
.stackbar i:only-child { border-radius: 4px; }
.stackbar i.ok { background: var(--ok); } .stackbar i.warn { background: var(--warn); } .stackbar i.bad { background: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Batang horizontal */
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; }
.bar .n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .track { height: 12px; }
.bar .track i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar .track.lite i { background: #4E9A63; }
.bar .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.bars.lbl { gap: 12px; }
.bars.lbl .bar { grid-template-columns: minmax(0, 1fr) 44px; row-gap: 4px; }
.bars.lbl .bar .n { grid-column: 1 / -1; white-space: normal; }

/* Tab dan filter */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button, .tabs a { border: 0; background: transparent; padding: 10px 12px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; text-decoration: none; }
.tabs [aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tabs .c { font-size: 11.5px; background: var(--line-2); color: var(--ink-2); padding: 0 6px; border-radius: 9px; min-width: 20px; text-align: center; }
.tabs [aria-selected="true"] .c { background: var(--brand-tint); color: var(--brand-ink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.filters input[type="search"] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 auto; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 0 12px; min-height: 34px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg [aria-pressed="true"] { background: var(--brand-tint); color: var(--brand-ink); }

/* Papan */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; padding: 14px; overflow-x: auto; }
.col { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.col h3 { display: flex; justify-content: space-between; padding: 2px 4px 4px; font-size: 13px; }
.card { display: grid; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); text-decoration: none; }
.card:hover { border-color: #B9CBBF; text-decoration: none; }
.card b { font-size: 13.5px; font-weight: 600; }
.card .muted { font-size: 12px; }

/* Detail */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.idline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 8px; background: var(--bad-bg); color: var(--bad-tx); margin-bottom: 16px; font-size: 13.5px; }
.note.warn { background: var(--warn-bg); color: var(--warn-tx); }
.note.info { background: var(--info-bg); color: var(--info-tx); }
.note.ok { background: var(--ok-bg); color: var(--ok-tx); }
.flow { list-style: none; margin: 0; padding: 4px 0; }
.flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 10px 16px; position: relative; align-items: start; }
.flow li::before { content: ''; position: absolute; left: 29px; top: 34px; bottom: -10px; width: 2px; background: var(--line); }
.flow li:last-child::before { display: none; }
.flow li.done::before { background: var(--brand); }
.flow .mk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; color: var(--ink-3); font-size: 12px; font-weight: 700; position: relative; z-index: 1; }
.flow li.done .mk { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow li.now .mk { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.flow li.now.late .mk { border-color: var(--bad); color: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.flow .nm { font-weight: 600; }
.flow .meta { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.flow .rt { text-align: right; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; padding-top: 4px; }
.flow li.now { background: #FAFCFA; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.checks li:last-child { border-bottom: 0; }
.checks label { display: flex; gap: 10px; align-items: center; flex: 1 1 200px; min-height: 28px; cursor: pointer; }
.checks input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); flex: none; }
.checks .file { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; max-width: 100%; overflow: hidden; }
.checks .file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dl.kv { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 13.5px; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.log { list-style: none; margin: 0; padding: 6px 0; }
.log li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 16px; font-size: 13px; }
.log time { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.log b { font-weight: 600; }
.action-box { display: grid; gap: 8px; }
.aibox { margin: 0 16px 16px; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 8px; }
.aibox ul { margin: 0; padding-left: 18px; }

/* Format berkas */
.fmt { display: inline-grid; place-items: center; width: 36px; height: 22px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; flex: none; }
.fmt.pdf { background: #FBE5E3; color: #9E2722; }
.fmt.xlsx { background: #E2F3E4; color: #0B5A1F; }
.fmt.docx { background: var(--info-bg); color: var(--info-tx); }
.fmt.jpg { background: #F1ECFA; color: #54348F; }

/* Kalender */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .dh { padding: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cal .d { min-height: 112px; padding: 6px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: grid; gap: 3px; align-content: start; min-width: 0; }
.cal .d:nth-child(7n) { border-right: 0; }
.cal .d.out { background: #FAFBFA; }
.cal .d.out .dn { color: #A9B5AE; }
.cal .d.we { background: #FAFBFA; }
.cal .dn { font-size: 12.5px; font-weight: 600; color: var(--ink-2); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal .d.today .dn { background: var(--brand); color: #fff; }
.ev { display: flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 5px; border-radius: 4px; background: var(--surface-2); color: var(--ink); text-decoration: none; overflow: hidden; white-space: nowrap; min-width: 0; }
.ev span { overflow: hidden; text-overflow: ellipsis; }
.ev.agenda { background: var(--info-bg); color: var(--info-tx); }
.ev.libur { background: var(--bad-bg); color: var(--bad-tx); }
.ev:hover { text-decoration: none; filter: brightness(.97); }
.ev .dot { width: 7px; height: 7px; }
.more { font-size: 11.5px; color: var(--ink-3); padding-left: 5px; }
.upc { list-style: none; margin: 0; padding: 0; }
.upc li { padding: 10px 16px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.upc .dd { text-align: center; line-height: 1.1; }
.upc .dd b { display: block; font-size: 18px; }
.upc .dd small { color: var(--ink-3); font-size: 11.5px; }

/* Asisten */
.chat-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 60px - 48px - 70px); min-height: 460px; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; gap: 10px; max-width: 100%; }
.msg .bub { padding: 11px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); max-width: min(720px, 100%); min-width: 0; display: grid; gap: 10px; font-size: 14px; }
.msg.me { flex-direction: row-reverse; }
.msg.me .bub { background: var(--brand); color: #fff; border-color: var(--brand); }
.msg .bub .t { font-size: 13px; }
.msg .bub pre.draft { margin: 0; white-space: pre-wrap; font: 13px/1.6 'Plus Jakarta Sans', sans-serif; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.composer { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 160px; resize: none; }
.composer .btn { min-height: 44px; }
.sugg { display: grid; gap: 6px; padding: 12px; }
.sugg button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 9px 11px; cursor: pointer; font-size: 13px; color: var(--ink); line-height: 1.4; }
.sugg button:hover { border-color: var(--brand); background: var(--brand-tint); }
.policy { width: 100%; border-collapse: collapse; font-size: 13px; }
.policy td { padding: 8px 16px; border-bottom: 1px solid var(--line-2); }
.policy td:last-child { text-align: right; }
.typing { color: var(--ink-3); font-size: 13px; }

/* Laporan */
.tpl { display: grid; gap: 6px; padding: 12px; }
.tpl button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; }
.tpl button:hover { background: var(--surface-2); }
.tpl button[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand-tint2); }
.tpl b { font-size: 13.5px; }
.tpl span { font-size: 12.5px; color: var(--ink-3); }
.kop { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 3px double var(--ink); margin-bottom: 14px; }
.kop p { font-size: 12px; } .kop b { display: block; font-size: 15px; }

/* Masuk */
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login-brand { background: var(--brand-dk); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.login-brand::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(255, 203, 8, .12); }
.logos { display: flex; gap: 14px; align-items: center; }
.logos img { height: 64px; width: auto; }
.org { color: #CFE6D6; font-size: 14px; margin-top: 18px; }
.org b { color: #fff; }
.login-brand h1 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1.02; max-width: 12ch; }
.login-brand .mods { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.login-brand .mods span { border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; color: #E4F1E8; }
.login-form { padding: 48px clamp(20px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 28px; background: var(--surface); }
.login-form form { max-width: 380px; width: 100%; }
.accts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.accts button { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; min-width: 0; }
.accts button:hover { border-color: var(--brand); background: var(--brand-tint); }
.accts .av { width: 30px; height: 30px; font-size: 11.5px; }
.accts b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accts span { display: block; font-size: 11.5px; color: var(--ink-3); }
.accts div { min-width: 0; }

/* Dialog dan toast */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 0 20px 60px rgba(8, 40, 20, .28); color: var(--ink); overscroll-behavior: contain; }
dialog.wide { width: min(860px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(8, 30, 17, .45); }
dialog[open] { animation: dlgIn .18s ease-out; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(8px); } }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: #fff; z-index: 1; }
.dlg-b { padding: 18px; display: grid; gap: 14px; }
.dlg-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; }
.preview { background: #EEF2EF; border-radius: 8px; padding: 18px; display: grid; place-items: center; }
.sheet { width: min(100%, 360px); aspect-ratio: 1 / 1.3; background: #fff; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 8px; align-content: start; }
.sheet i { display: block; height: 7px; border-radius: 3px; background: #E3E8E5; }
.photo { width: min(100%, 420px); aspect-ratio: 4 / 3; border-radius: 6px; background: linear-gradient(160deg, #C9D9CE, #9DB5A6); display: grid; place-items: center; color: #fff; font-weight: 600; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 26px; text-align: center; display: grid; gap: 8px; justify-items: center; color: var(--ink-3); cursor: pointer; }
.drop:hover, .drop.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.fields { display: grid; gap: 10px; }
.fields label { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); font-weight: 600; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
#toast div { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13.5px; box-shadow: var(--shadow); pointer-events: auto; display: flex; gap: 12px; align-items: center; animation: dlgIn .18s ease-out; max-width: calc(100vw - 32px); }
#toast button { background: transparent; border: 0; color: var(--gold); font-weight: 700; cursor: pointer; padding: 0; }
#printArea { display: none; }
.denied { max-width: 420px; margin: 60px auto; text-align: center; display: grid; gap: 10px; justify-items: center; }
.skel { background: linear-gradient(90deg, var(--line-2), #F4F7F5, var(--line-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 4px; height: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

.only-m { display: none; }
@media (max-width: 1180px) {
  .t .hide-m { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .g-main { grid-template-columns: minmax(0, 1fr); }
  .chat-wrap { grid-template-columns: minmax(0, 1fr); }
  .chat { height: 70dvh; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease-out; }
  .app.open .side { transform: none; }
  .app.open .scrim { display: block; position: fixed; inset: 0; background: rgba(8, 30, 17, .4); z-index: 25; }
  .only-m { display: inline-grid; }
  .g-2, .g-3, .g-lap { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-brand { padding: 28px 20px; gap: 22px; }
  .login-brand h1 { font-size: 34px; }
  .login-brand::after { display: none; }
  .me .who { display: none; }
}
@media (max-width: 640px) {
  .page { padding: 16px; }
  .top { padding: 0 10px; gap: 4px; }
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kpi { padding: 12px 14px; }
  .kpi .v { font-size: 24px; }
  .hero-fig .v { font-size: 46px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .accts { grid-template-columns: minmax(0, 1fr); }
  .cal .d { min-height: 58px; padding: 3px; }
  .cal .ev span, .cal .more { display: none; }
  .cal .ev { padding: 2px; background: transparent; }
  .cal .ev.agenda .dot { background: var(--info-tx); }
  .fields label { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .bar { grid-template-columns: 96px minmax(0, 1fr) 44px; }
  .flow li { grid-template-columns: 28px minmax(0, 1fr); }
  .flow .rt { grid-column: 2; text-align: left; padding-top: 0; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .t .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  body { background: #fff; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block; padding: 0; font-size: 11pt; }
  #printArea table.t { font-size: 10pt; }
  #printArea .t th { background: #eee; }
}
