/* PerfectWeb — app styles (uses tokens.css). Mobile first; sidebar from 1024px. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.5 var(--body); -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 90; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--mono); font-size: .88em; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.rose { color: var(--rose) !important; }
.good { color: var(--good); font-weight: 600; }
.spacer { flex: 1; }
.eyebrow { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }

/* ---------- shell ---------- */
.app { min-height: 100dvh; }
.side { display: none; }
.main { min-width: 0; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); letter-spacing: -.02em; }
.mark { width: 30px; height: 30px; flex: none; }
.mark rect { fill: var(--accent); }
.mark path { fill: none; stroke: var(--accent-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.top-title { font: 700 17px/1.1 var(--display); letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-act { display: flex; gap: 2px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn--sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn--sm .ico { width: 16px; height: 16px; }

.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: column;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 4px 4px env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 0 2px; border: 0; background: none; color: var(--ink-3); font-size: 11px; font-weight: 600; line-height: 1.2; border-radius: 12px; }
.tb > span:not(.sr) { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb--menu.is-active > span:not(.sr) { color: var(--accent-text); }
.tb .ico { width: 22px; height: 22px; }
.tb.is-active { color: var(--ink); }
.tb.is-active::before { content: ""; position: absolute; top: 6px; width: 46px; height: 30px; border-radius: 10px; background: var(--accent-soft); z-index: -1; }
.tb.is-active .ico { color: var(--accent-text); }
.tb .badge { position: absolute; top: 4px; left: calc(50% + 7px); }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rose); color: var(--surface); font: 700 10.5px/1 var(--body); }

.view { display: block; padding: 14px 14px calc(var(--tab-h) + 34px + env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; outline: none; animation: in .3s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- generic ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 14px; margin: 6px 2px 16px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 260px; }
.h1 { font: 700 28px/1.1 var(--display); letter-spacing: -.025em; margin-top: 4px; text-wrap: balance; }
.h1 em { font-style: normal; color: var(--accent-text); }
.h1 em.v-waspada { color: var(--warn); } .h1 em.v-berat { color: var(--rose); } .h1 em.v-cukup { color: var(--good); }
.h2 { font: 700 19px/1.2 var(--display); letter-spacing: -.015em; }
.lede { color: var(--ink-2); max-width: 640px; margin: -6px 2px 16px; font-size: 15px; }
.head-act { display: flex; gap: 6px; align-items: center; }

.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.sec + .sec, .grid-2 + .sec, .sec + .grid-2, .stats4 + .sec, .biz-list + .sec, .plats + .grid-2 { margin-top: 12px; }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; min-height: 28px; }
.sec-h h2 { font: 650 12.5px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.sec-h .link, .sec-h .chips, .sec-h .icon-btn { margin-left: auto; }
.sec-h .chips + .link { margin-left: 6px; }
.sec-h--gap { margin-top: 18px; }
.count { font: 700 11.5px/20px var(--mono); min-width: 22px; padding: 0 6px; text-align: center; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.count--rose { background: var(--rose-soft); color: var(--rose); }
.link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 2px; color: var(--accent-text); font-weight: 650; font-size: 13px; }
.link .ico { width: 15px; height: 15px; }
.empty { padding: 18px 6px; color: var(--ink-3); display: grid; gap: 10px; justify-items: start; font-size: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid transparent; font-weight: 650; font-size: 14px; white-space: nowrap; transition: transform .1s, background-color .2s, filter .2s; }
.btn:active { transform: scale(.98); }
.btn .ico { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger-quiet { background: none; color: var(--rose); border-color: color-mix(in srgb, var(--rose) 35%, transparent); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-xs { min-height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips--row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 14px; padding: 2px 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; text-transform: none; }
.chip .ico { width: 15px; height: 15px; }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.is-on .muted { color: inherit; opacity: .7; }
.chip--sm { height: 28px; padding: 0 10px; font-size: 12px; }
.chip--add { border-style: dashed; color: var(--ink-2); }
.pill-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pill-btn .ico { width: 15px; height: 15px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot--ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.light { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--line-2); display: inline-block; }
.light--jalan { background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.light--menunggu { background: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.st { font: 600 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.st--jalan { color: var(--good); } .st--menunggu { color: var(--rose); } .st--selesai { color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 650; white-space: nowrap; }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--idea { background: var(--accent-soft); color: var(--accent-text); }
.ribbon { display: inline-flex; align-items: center; height: 20px; padding: 0 8px 0 6px; border-radius: 3px 10px 10px 3px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: 11px; font-weight: 700; white-space: nowrap; }
.stamp { display: inline-block; padding: 3px 7px; border-radius: 6px; border: 1px solid currentColor; font: 600 10px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }
.stamp--baru { color: var(--accent-text); } .stamp--diterima { color: var(--info); } .stamp--dikerjakan, .stamp--diuji { color: var(--good); }
.stamp--cocok { background: var(--good); border-color: var(--good); color: var(--surface); }
.stamp--ditolak { color: var(--rose); text-decoration: line-through; }
.stage { display: inline-flex; height: 20px; align-items: center; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); text-transform: capitalize; }
.stage--penawaran { background: var(--accent-soft); color: var(--accent-text); }
.stage--diskusi, .stage--dibalas { background: var(--info-soft); color: var(--info); }
.stage--deal { background: var(--good-soft); color: var(--good); }
.stage--kalah { background: var(--rose-soft); color: var(--rose); }
.delta { font: 600 11.5px/1 var(--mono); white-space: nowrap; }
.delta--good { color: var(--good); } .delta--bad { color: var(--rose); } .delta--flat { color: var(--ink-3); }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.meter--done i { background: var(--good); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row-main { flex: 1; min-width: 0; }
.row-t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.row-t.is-done { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.row-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); }

.grid-2 { display: grid; gap: 12px; }
.stats4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; }
.stat { background: var(--surface); padding: 12px 14px; display: grid; gap: 3px; align-content: start; min-width: 0; }
.stat-l { font: 500 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.stat-v { font: 650 26px/1.05 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-v small { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.stat-s { font-size: 12px; color: var(--ink-3); }

.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 12px; margin: 0 0 14px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 13px; }
.demo-bar-act { display: flex; gap: 6px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.filters input[type=search], .filters select { height: 38px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 0 12px; font-size: 14px; }
.filters input[type=search] { flex: 1 1 200px; min-width: 0; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.table-wrap { position: relative; overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.tbl th { text-align: left; font: 500 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.kv { display: grid; gap: 8px; margin-bottom: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- HARI INI ---------- */
.brief { margin: 6px 2px 16px; }
.brief-h { font: 650 25px/1.18 var(--display); letter-spacing: -.025em; margin-top: 6px; text-wrap: balance; }
.brief-h span { font-weight: 350; color: var(--ink-2); }
.brief-h em { font-style: normal; font-weight: 650; color: var(--rose); }
.brief-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.grid-hari { display: grid; gap: 12px; }
.decide { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.decide-i { position: relative; padding: 12px 12px 12px 15px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.decide-i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rose); }
.decide-top { display: flex; align-items: center; gap: 6px; margin: -4px -6px 6px 0; }
.decide-top .mono { margin-left: auto; font-size: 11.5px; }
.decide-t { font: 650 16px/1.3 var(--display); letter-spacing: -.01em; }
.decide-c { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.decide-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.answered { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.answered li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.answered li > span { flex: 1; min-width: 0; }
.answered b { color: var(--good); }
.answered .ico { color: var(--good); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; transition: border-color .2s; }
.kpi:hover { border-color: var(--line-2); }
.kpi-l { font: 500 10.5px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.kpi-v { font: 650 24px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-v small { font-size: 14px; color: var(--ink-3); }
.kpi-s { font-size: 12px; color: var(--ink-3); }
.kpi .spark { width: 100%; height: 26px; }
.spark { display: block; width: 100%; height: 34px; overflow: visible; }
.spark .line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item, .tl-now { display: grid; grid-template-columns: 44px 18px 1fr; align-items: start; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 52px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-time { font: 500 12px/1 var(--mono); color: var(--ink-3); padding-top: 13px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; margin: 13px 0 0 4px; background: var(--line-2); position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--surface); }
.tl--jalan .tl-dot { background: var(--good); } .tl--menunggu .tl-dot { background: var(--rose); } .tl--antri .tl-dot { background: var(--surface); border: 2px solid var(--line-2); }
.tl-body { text-align: left; border: 0; background: none; padding: 8px 8px 10px; border-radius: 10px; display: grid; gap: 4px; }
.tl-body:hover { background: var(--surface-2); }
.tl-t { font-weight: 600; font-size: 14px; }
.tl--selesai .tl-t { color: var(--ink-3); }
.tl-m { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-now { align-items: center; padding: 4px 0; }
.tl-now span { font: 600 12px/1 var(--mono); color: var(--accent-text); }
.tl-now i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-left: 3px; box-shadow: 0 0 0 4px var(--accent-soft); position: relative; z-index: 1; }
.tl-now b { font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); display: flex; align-items: center; gap: 8px; }
.tl-now b::after { content: ""; flex: 1; height: 1.5px; background: var(--accent); opacity: .6; }
.team-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.team-now { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); border-top: 3px solid var(--c); min-width: 0; }
.team-now-n { font-weight: 700; font-size: 13.5px; }
.team-now-t { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- INBOX ---------- */
.grid-inbox { display: grid; gap: 12px; }
.capture { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); align-self: start; }
.capture-l { font: 650 18px/1.2 var(--display); letter-spacing: -.01em; }
.capture textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 12px; font-size: 16px; line-height: 1.45; }
.capture textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.capture-sub { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.targets { display: flex; flex-wrap: wrap; gap: 6px; }
.target { height: 34px; padding: 0 12px 0 10px; border-radius: 4px 10px 10px 4px; border: 1px solid var(--line-2); border-left: 3px solid var(--c); background: var(--surface); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.target[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: var(--surface); }
[data-theme="dark"] .target[aria-pressed="true"] { color: var(--bg); }
.capture-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.capture-foot .muted { flex: 1 1 180px; }
.form-error { color: var(--rose); font-size: 13px; font-weight: 600; }
.inbox-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.reminder { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); font-size: 13px; }
.reminder .ico { color: var(--accent-text); }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.pipeline button { position: relative; border: 0; background: none; padding: 9px 2px 8px; display: grid; gap: 2px; justify-items: center; }
.pipeline button + button { border-left: 1px solid var(--line); }
.pipeline b { font: 600 18px/1 var(--mono); }
.pipeline span { font: 500 9.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.pipeline [aria-pressed="true"] { background: var(--surface-3); }
.pipeline [aria-pressed="true"]::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; background: var(--accent); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.note { display: flex; gap: 6px; align-items: flex-start; padding: 10px 6px 10px 12px; border-radius: 5px var(--r) var(--r) 5px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); }
.note-main { flex: 1; min-width: 0; }
.note-t { font-weight: 600; font-size: 14px; }
.note-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.note-m .mono { margin-left: auto; font-size: 11.5px; }
.note-act { display: flex; }
.board { display: none; }
.board--team { display: grid; gap: 10px; }
.board--team .board-col .board-empty { padding: 8px; }
.board-col { background: color-mix(in srgb, var(--surface-3) 55%, transparent); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; min-width: 0; transition: background-color .15s, border-color .15s; }
.board-col.is-over { border-color: var(--accent); background: var(--accent-soft); }
.board-h { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 4px 8px; font: 600 12px/1.2 var(--body); }
.board-empty { list-style: none; padding: 14px 6px; text-align: center; color: var(--ink-3); font-size: 12px; border: 1px dashed var(--line-2); border-radius: 10px; }

/* ---------- JADWAL ---------- */
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 58px; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 2px 14px 4px; }
.day { display: grid; justify-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.day-n { font: 500 10.5px/1 var(--mono); text-transform: uppercase; color: var(--ink-3); }
.day-d { font: 650 20px/1.1 var(--display); }
.day-dots { display: flex; gap: 3px; height: 8px; align-items: center; }
.day-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.day-dots i.is-idea { border-radius: 1px; transform: rotate(45deg); }
.day-dots em { font: 600 9px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.day.is-today { border-color: var(--accent); }
.day.is-today .day-n { color: var(--accent-text); }
.day.is-sel { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day.is-sel .day-n, .day.is-sel .day-dots em { color: inherit; opacity: .75; }
.tick { flex: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-2); background: var(--surface); display: grid; place-items: center; color: transparent; }
.tick .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.tick.is-on { background: var(--good); border-color: var(--good); color: var(--surface); }
.row--task { align-items: flex-start; }
.row--task .tick { margin-top: 1px; }

/* ---------- TIM ---------- */
.roster { display: grid; gap: 10px; }
.roster-c { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); transition: transform .15s, border-color .15s; }
.roster-c:hover { transform: translateY(-1px); border-color: var(--line-2); border-top-color: var(--c); }
.roster-top { display: flex; align-items: center; gap: 8px; }
.roster-n { font: 700 20px/1.1 var(--display); letter-spacing: -.02em; margin-right: auto; }
.roster-role { font-size: 12.5px; color: var(--ink-3); }
.roster-now { font-weight: 600; font-size: 14px; min-height: 2.7em; }
.roster-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-3); }
.roster-stats b { font: 650 16px/1 var(--display); color: var(--ink); margin-right: 3px; }
.roster-spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.roster-spark i { flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--c) 70%, transparent); }
.roster-spark i.is-zero { background: var(--surface-3); }
.team-band { margin: -14px -14px 14px; padding: 14px 14px 12px; background: linear-gradient(color-mix(in srgb, var(--c) 16%, var(--bg)), var(--bg)); border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.team-band .h1 { font-size: 34px; }
.demo-bar + .team-band { margin: 0 0 14px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.team-band .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.report { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; }
.report .stat-v { font-size: 22px; }
.stat--chart { grid-column: 1 / -1; padding-bottom: 6px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.card-task { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 8px 6px 10px; display: grid; gap: 3px; }
.card-t { text-align: left; border: 0; background: none; padding: 0; font-weight: 600; font-size: 13.5px; }
.card-m { font-size: 11px; color: var(--ink-3); }
.card-move { display: flex; justify-content: space-between; margin: 0 -4px; }

/* ---------- KAPASITAS ---------- */
.grid-cap { display: grid; gap: 12px; }
.batt + .batt { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.batt-top { display: flex; justify-content: space-between; align-items: baseline; }
.batt-l { font-weight: 650; }
.batt-v { font: 300 44px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.batt-v small { font-size: 20px; color: var(--ink-3); }
.batt-cells { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin: 10px 0 8px; }
.batt-cells i { height: 24px; border-radius: 4px; background: var(--surface-3); position: relative; }
.batt-cells i.on { background: var(--good); }
.batt--warm .batt-cells i.on { background: var(--accent); }
.batt--hot .batt-cells i.on { background: var(--rose); }
.batt-cells i.mark::before { content: ""; position: absolute; left: -3px; top: -5px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--ink-2); }
.batt-s { font-size: 12.5px; color: var(--ink-3); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: 10px; font-size: 13.5px; }
.hbars li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.hb i { display: block; height: 100%; border-radius: 0 5px 5px 0; background: var(--series-1); }
.hbars b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; }
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.heat th { font: 500 10.5px/1 var(--mono); color: var(--ink-3); padding-bottom: 4px; }
.heat td { text-align: center; padding: 9px 0; border-radius: 6px; font-size: 12px; font-weight: 650; background: color-mix(in srgb, var(--accent) calc(var(--v) * 80%), var(--surface-3)); }

/* ---------- LOG ---------- */
.log-day + .log-day { margin-top: 16px; }
.log-d { font: 650 13px/1.2 var(--body); margin: 0 2px 8px; }
.log-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.log-i { display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; padding: 10px 12px; }
.log-i + .log-i { border-top: 1px solid var(--line); }
.log-t { color: var(--ink-3); padding-top: 1px; }
.lv { grid-column: 2; justify-self: start; font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: var(--surface-3); color: var(--ink-2); }
.lv--keputusan { background: var(--accent-soft); color: var(--accent-text); }
.lv--peringatan { background: var(--warn-soft); color: var(--warn); }
.lv--error { background: var(--rose-soft); color: var(--rose); }
.log-main { grid-column: 2; font-size: 14px; }

/* ---------- BANK & WORKFLOW ---------- */
.grid-bank { display: grid; gap: 12px; align-items: start; }
.ideas { display: grid; gap: 10px; }
.idea { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.idea-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.idea-score { font: 300 44px/.9 var(--display); letter-spacing: -.04em; min-width: 34px; }
.idea-meter { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; flex: 1; max-width: 180px; }
.idea-meter i { height: 6px; border-radius: 2px; background: var(--surface-3); }
.idea-meter i.on { background: var(--accent); }
.idea--ditolak .idea-meter i.on { background: var(--ink-3); }
.idea-top .stamp { margin-left: auto; }
.idea-t { font: 650 18px/1.25 var(--display); letter-spacing: -.01em; }
.idea--ditolak { opacity: .72; }
.idea-n { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.idea-act { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 6px; }
.sec--flow .sec-h { margin-bottom: 4px; }
.rail { list-style: none; margin: 16px 0 0; padding: 0; }
.step { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.step::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step--selesai::before { background: var(--good); }
.node { position: relative; z-index: 1; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 500 16px/1 var(--display); background: var(--surface-3); color: var(--ink-3); }
.node .ico { width: 17px; height: 17px; stroke-width: 2.6; }
.step--selesai .node { background: var(--good); color: var(--surface); }
.step--berjalan .node { background: var(--good-soft); color: var(--good); box-shadow: inset 0 0 0 2px var(--good); }
.step--berjalan .node::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--good); opacity: 0; animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { opacity: .6; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }
.step--menunggu .node { background: var(--rose); color: var(--surface); }
.step-main { flex: 1; min-width: 0; padding-top: 6px; }
.step-t { font-weight: 650; font-size: 14.5px; }
.step--belum .step-t { color: var(--ink-2); font-weight: 550; }
.gate { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 6px 4px 10px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: 12.5px; font-weight: 650; }
.gate .ico { width: 14px; height: 14px; }
.gate--wait { background: var(--rose-soft); color: var(--rose); }
.gate .btn { margin-left: 4px; }
.flow-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- YOUTUBE ---------- */
.acct { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin: -4px 2px 12px; }
.acct .ico { width: 15px; height: 15px; color: var(--ink-3); }
.chan-list { display: grid; gap: 10px; margin-top: 12px; }
.chan { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.chan:hover { border-color: var(--line-2); }
.chan-top { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.chan-n { font: 650 17px/1.2 var(--display); }
.chan-nums { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); }
.chan-nums b, .plat-nums b { color: var(--ink); font: 650 16px/1 var(--display); margin-right: 2px; }
.prog { display: grid; gap: 5px; margin: 6px 0; }
.prog-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.prog-top b { font-variant-numeric: tabular-nums; color: var(--ink); }
.or { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); text-align: center; margin: 2px 0; }

/* ---------- MARKETING ---------- */
.goals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.goal { display: grid; gap: 6px; }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--ink-2); }
.goal-top b { font: 650 24px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.goal-top small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.goal--plain { align-content: start; font-size: 13px; color: var(--ink-2); gap: 2px; }
.goal--plain b { font: 650 24px/1 var(--display); color: var(--ink); }
.plats { display: grid; gap: 10px; margin-bottom: 12px; }
.plat { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.plat--planned { border-style: dashed; background: transparent; }
.plat-top { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 0 0; }
.plat-n { font: 650 16px/1.2 var(--display); }
.plat-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-3); }
.src { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.src li { position: relative; display: flex; justify-content: space-between; padding: 8px 10px; font-size: 13.5px; border-radius: 8px; overflow: hidden; }
.src li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: color-mix(in srgb, var(--series-1) 14%, transparent); border-radius: 8px; }
.src li > * { position: relative; }

/* ---------- PROSPEK ---------- */
.stage-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 2px 14px; }
.stage-tab { position: relative; display: grid; gap: 1px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.stage-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 0%); background: var(--accent); opacity: .8; }
.stage-tab span { font-size: 12px; font-weight: 650; text-transform: capitalize; color: var(--ink-2); }
.stage-tab b { font: 650 20px/1.1 var(--display); }
.stage-tab small { font-size: 11px; color: var(--ink-3); }
.stage-tab.is-on { background: var(--ink); border-color: var(--ink); }
.stage-tab.is-on span, .stage-tab.is-on b, .stage-tab.is-on small { color: var(--bg); }
.plist, .pcol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pcard { padding: 12px 10px 8px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 5px; }
.pcard.is-drag { opacity: .5; }
.board--pipe .pcard { cursor: grab; }
.pcard-top { display: flex; align-items: baseline; gap: 8px; }
.pcard-n { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; font: 650 15px/1.25 var(--display); }
.pcard-v { font: 600 13px/1 var(--mono); white-space: nowrap; }
.pcard-note { font-size: 12.5px; color: var(--ink-2); }
.pcard-foot { display: flex; align-items: center; gap: 2px; margin: 2px -4px 0 0; }
.fu { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.fu .ico { width: 14px; height: 14px; }
.fu--today { color: var(--accent-text); }
.fu--late { color: var(--rose); }
.stage-b--deal { border-left: 3px solid var(--good); }
.stage-b--kalah { opacity: .7; }
.board--pipe .pcard { padding: 10px 8px 6px 10px; }
.board--pipe .pcard-top { flex-direction: column; align-items: flex-start; gap: 2px; }
.board--pipe .pcard-foot { flex-wrap: wrap; row-gap: 2px; }
.board--pipe .fu { white-space: nowrap; }
.board--pipe .pcard-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- BISNIS ---------- */
.biz-list { display: grid; gap: 10px; }
.biz { padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.biz-top { display: flex; justify-content: space-between; gap: 8px; margin-right: -6px; }
.biz-n { font: 650 18px/1.2 var(--display); letter-spacing: -.01em; }
.biz-rev { display: flex; align-items: baseline; gap: 10px; }
.biz-v { font: 300 32px/1 var(--display); letter-spacing: -.03em; }
.biz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.mini li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- PENGATURAN ---------- */
.settings { display: grid; gap: 12px; margin-bottom: 12px; }
.settings .sec + .sec { margin-top: 0; }
.pins { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.data-act { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ---------- charts ---------- */
.chart { margin: 0; display: grid; gap: 6px; }
.chart-plot { position: relative; margin-left: 40px; touch-action: pan-y; }
.chart-plot:focus-visible { outline-offset: 4px; }
.chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.grid { position: absolute; inset: 0; pointer-events: none; }
.gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.gl span { position: absolute; right: calc(100% + 8px); top: -7px; font: 500 10.5px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.chart .line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--c); opacity: .12; stroke: none; }
.end-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.hair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); pointer-events: none; }
.tip { position: absolute; top: -6px; transform: translateY(-100%); z-index: 5; min-width: 120px; max-width: 220px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12px; pointer-events: none; box-shadow: var(--shadow-pop); }
.tip-t { font: 500 10.5px/1.2 var(--mono); opacity: .75; margin-bottom: 4px; }
.tip-r { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.tip-r b { font-variant-numeric: tabular-nums; }
.tip-r span { opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip-r.is-focus b { text-decoration: underline; text-underline-offset: 3px; }
.key { flex: none; display: inline-block; background: var(--c, var(--ink-3)); }
.key--line { width: 12px; height: 3px; border-radius: 2px; }
.key--bar { width: 10px; height: 10px; border-radius: 3px; }
.tip .key:not([class*=" s"]) { background: transparent; }
.xlabels { position: relative; height: 16px; margin-left: 40px; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.xlabels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.xlabels span:first-child { transform: none; }
.xlabels span:last-child:not(:first-child) { transform: translateX(-100%); }
.xlabels--cols { display: flex; gap: 2px; }
.xlabels--cols span { position: static; transform: none !important; flex: 1; text-align: center; }
.xlabels--cols span.is-hi { color: var(--ink); font-weight: 600; }
.chart-plot--bars .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 6px; outline-offset: 1px; }
.col.is-hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.stack { width: min(70%, 34px); display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.seg { display: block; min-height: 2px; background: var(--c); opacity: .78; }
.seg:first-child { border-radius: 4px 4px 0 0; }
.col--hi .seg, .col.is-hover .seg { opacity: 1; }
.chart-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.chart-foot .chip { margin-left: auto; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.chart-table { overflow-x: auto; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.chart-table th, .chart-table td { padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.chart-table th:first-child, .chart-table thead th:first-child { text-align: left; }
.chart-table thead th { font: 500 10.5px/1.2 var(--mono); color: var(--ink-3); }

/* ---------- sheet, forms, menu, search, toast ---------- */
#sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 12, .5); opacity: 0; transition: opacity .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90dvh; overflow: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 6px 16px calc(16px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .24s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-pop); }
#sheet.is-open .sheet { transform: none; }
#sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 4px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; position: sticky; top: -6px; background: var(--surface); padding-top: 4px; z-index: 1; }
.sheet-head h2 { font: 700 20px/1.2 var(--display); letter-spacing: -.015em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; grid-column: 1 / -1; min-width: 0; }
.field--half { grid-column: span 1; }
.field--third { grid-column: span 1; }
.field-label { font: 500 10.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.field-hint { font-size: 12px; color: var(--ink-3); }
.field input, .field select, .field textarea, .money { width: 100%; min-height: 44px; border: 1px solid var(--line-2); background: var(--surface-2); border-radius: 11px; padding: 10px 12px; font-size: 16px; }
.field textarea { resize: vertical; line-height: 1.45; }
.field :focus, .money:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.money { display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.money span { color: var(--ink-3); font-weight: 600; }
.money input { border: 0; background: transparent; padding: 10px 0; min-height: 0; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.form .form-error { margin-top: 10px; }
.form-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.menu-h { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 12px 2px 8px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu-item { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 650; text-align: center; }
.menu-item .ico { width: 22px; height: 22px; }
.menu-item.is-active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent-text); }
.search input { width: 100%; height: 48px; border: 1.5px solid var(--accent); border-radius: 12px; padding: 0 14px; font-size: 16px; background: var(--surface-2); }
.search input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.results { margin-top: 12px; display: grid; gap: 8px; }
.hit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hit { width: 100%; text-align: left; display: grid; grid-template-columns: 74px 1fr; gap: 0 10px; padding: 9px 8px; border: 0; border-radius: 10px; background: none; }
.hit:hover, .hit:focus-visible { background: var(--surface-3); }
.hit-type { grid-row: span 2; font: 600 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.hit-t { font-weight: 600; font-size: 14px; }
.hit-s { font-size: 12.5px; color: var(--ink-3); }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); z-index: 70; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: .25s; background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; width: max-content; max-width: calc(100% - 28px); box-shadow: var(--shadow-pop); }
#toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* screenshot mode (?shot=1): top bar and tab bar flow with the page */
.shot .top { position: relative; }
.shot .tabbar { position: relative; }
.shot .view { padding-bottom: 20px; }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .stats4 { grid-template-columns: repeat(4, 1fr); }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .roster { grid-template-columns: 1fr 1fr; }
  .plats { grid-template-columns: 1fr 1fr; }
  .biz-list { grid-template-columns: 1fr 1fr; }
  .chan-list { grid-template-columns: 1fr 1fr; }
  .field--third { grid-column: span 1; }
  .form-grid { grid-template-columns: repeat(6, 1fr); }
  .field { grid-column: 1 / -1; } .field--half { grid-column: span 3; } .field--third { grid-column: span 2; }
  .pins { grid-template-columns: repeat(3, 1fr); }
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
}
/* ---------- ≥ 900px ---------- */
@media (min-width: 900px) {
  .view { padding: 22px 28px 40px; }
  .h1 { font-size: 34px; }
  .brief-h { font-size: 32px; max-width: 900px; }
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid-hari { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .grid-hari .sec--decide { grid-row: span 2; }
  .grid-hari .sec--full { grid-column: 1 / -1; }
  .grid-hari .sec--kpi { grid-column: 2; }
  .team-strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 0; }
  .grid-inbox { grid-template-columns: minmax(320px, 400px) 1fr; align-items: start; }
  .grid-cap { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; }
  .grid-bank { grid-template-columns: 1fr 1fr; }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .plats { grid-template-columns: repeat(3, 1fr); }
  .report { grid-template-columns: repeat(3, 1fr) 1.6fr; }
  .stat--chart { grid-column: auto; }
  .team-band { margin: -22px -28px 16px; padding: 22px 28px 14px; }
  .chips--row, .days, .stage-tabs, .team-strip { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .days { grid-auto-flow: row; grid-template-columns: repeat(10, 1fr); grid-auto-columns: auto; overflow: visible; }
  .table-wrap { margin: 0; padding: 0; }
  .board--team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: start; }
}
/* ---------- ≥ 1024px: sidebar ---------- */
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 18px 12px 14px; border-right: 1px solid var(--line); background: var(--surface); }
  .side .brand { padding: 2px 8px 4px; }
  .brand--top { display: none; }
  .side-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-3); font-size: 13.5px; }
  .side-search span { flex: 1; text-align: left; }
  kbd { font: 500 11px/1 var(--mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); }
  .nav-group { display: grid; gap: 1px; }
  .nav-group + .nav-group { margin-top: 12px; }
  .nav-h { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 0 10px 6px; }
  .nav-a { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
  .nav-a:hover { background: var(--surface-3); color: var(--ink); }
  .nav-a.is-active { background: var(--accent-soft); color: var(--ink); }
  .nav-a.is-active .ico { color: var(--accent-text); }
  .nav-a .badge { margin-left: auto; }
  .side-sync { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--ink-3); }
  .tabbar { display: none; }
  .top { padding: 12px 28px; }
  .top-title { font-size: 15px; color: var(--ink-3); font-weight: 600; font-family: var(--body); }
  .view { padding-bottom: 48px; }
  #toast { bottom: 24px; }
  .grid-hari { grid-template-columns: 1.1fr 1fr 1fr; }
  .grid-hari .sec--decide { grid-column: 1; grid-row: 1 / span 2; }
  .grid-hari .sec--fu { grid-column: 2; grid-row: 1; }
  .grid-hari .sec--tl { grid-column: 3; grid-row: 1 / span 2; }
  .grid-hari .sec--kpi { grid-column: 2; grid-row: 2; }
  .grid-hari .sec--kpi .kpis { grid-template-columns: 1fr 1fr; }
  .grid-hari .sec--full { grid-row: 3; }
  .notes--list, .inbox-side .pipeline { display: none; }
  .grid-inbox { grid-template-columns: minmax(320px, 420px) 1fr; }
  .board--inbox, .board--pipe { display: grid; gap: 10px; align-items: start; margin-top: 12px; }
  .board--inbox { grid-template-columns: repeat(4, 1fr); }
  .board--pipe { grid-template-columns: repeat(6, minmax(190px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .plist, .stage-tabs { display: none; }
  .roster { grid-template-columns: repeat(3, 1fr); }
  .biz-list { grid-template-columns: repeat(2, 1fr); }
  .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: 520px; max-height: 86dvh; border-radius: 20px; transform: translate(-50%, -46%); opacity: 0; transition: transform .22s, opacity .2s; }
  .sheet--wide { width: 640px; }
  #sheet.is-open .sheet { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grip { display: none; }
  .shot .side { position: relative; height: auto; }
}
@media (min-width: 1280px) {
  .biz-list { grid-template-columns: repeat(4, 1fr); }
  .chan-list { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- gate (setup / login) ---------- */
.auth-gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: var(--bg); overflow-y: auto; }
.gate-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--shadow-pop); display: grid; gap: 10px; }
.gate-brand { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.gate-card h1 { font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.gate-form { display: grid; gap: 12px; margin-top: 8px; }
.gate-form .field { grid-column: auto; }
.gate-form input { font-size: 16px; letter-spacing: .08em; }
body.is-gated .app, body.is-gated .tabbar { visibility: hidden; }

/* ---------- server / sync status ---------- */
.dot--off { background: var(--ink-3); box-shadow: 0 0 0 3px var(--surface-3); }
.dot--warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.net .dot { margin: 0; }
.net--warn .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.side-sync { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 8px; }

/* ---------- bot tokens ---------- */
.tok-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tok { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md, 12px); background: var(--surface-2); }
.tok > div { min-width: 0; overflow-wrap: anywhere; }
.token-show { display: block; padding: 12px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); word-break: break-all; font-size: 13px; user-select: all; margin: 10px 0; }
.mono { font-family: var(--mono); }

.exp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.exp { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.exp-main { min-width: 0; overflow-wrap: anywhere; }
.gate-card h1 { color: var(--ink); }
.gate-form .btn-block { margin: 0; }
.note-r { margin-top: 2px; overflow-wrap: anywhere; }
