/* Tumoro app — tampilan aplikasi (dashboard, events, plan, team, settings).
   Gaya sama dengan landing & login: Plus Jakarta Sans, biru Tumoro, aksen merah, kartu putih lembut. */
:root {
  --ink: #0f1d3d; --muted: #56627f; --faint: #8a94ad; --line: #e3e9f5; --line-2: #eef2f9;
  --bg: #f4f7fd; --card: #ffffff; --soft: #f7f9fe;
  --blue: #1a5fe8; --blue-2: #134bc0; --blue-soft: #e8efff;
  --red: #e0313b; --crimson: #c8102e; --red-soft: #fde8ec;
  --green: #13803d; --green-soft: #e3f7ea; --amber: #a3620a; --amber-soft: #fff2d9;
  --navy: #0b1530;
  --grad: linear-gradient(135deg, #e0313b 0%, #b0122f 45%, #6d0a1f 100%);
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --r: 16px; --side: 224px;
  --shadow: 0 1px 2px rgba(15,29,61,.04), 0 10px 30px rgba(15,29,61,.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.3px; }
svg { flex: none; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 12px; background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; }
.side .logo { display: block; padding: 2px 8px; }
.side .logo img { height: 28px; display: block; }
.ws { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); text-align: left; cursor: default; }
.ws .ava { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.ws b { display: block; font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws small { display: block; font-size: 12px; color: var(--muted); text-transform: capitalize; }
.ws select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ws-wrap { position: relative; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav a svg { width: 17px; height: 17px; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.on { background: var(--blue-soft); color: var(--blue); }
.nav a .live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(224,49,59,.15); }
.side .bottom { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.credit-box { padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #f3f7ff, #e8efff); border: 1px solid #d6e2fb; color: var(--ink); }
.credit-box small { display: block; font-size: 12px; color: var(--muted); }
.credit-box b { display: block; font-size: 19px; font-weight: 800; margin: 2px 0 8px; }
.credit-box b span { font-size: 13px; font-weight: 600; color: var(--muted); }
.cb-acts { display: flex; justify-content: space-between; gap: 8px; }
.cb-acts a { font-weight: 700; font-size: 13px; }
.credit-box .meter { height: 6px; border-radius: 999px; background: #fff; overflow: hidden; margin-bottom: 10px; }
.credit-box .meter i { display: block; height: 100%; background: linear-gradient(90deg, #4f8bff, #9fbcff); border-radius: inherit; }
.credit-box.low .meter i { background: linear-gradient(90deg, #ff6b74, #e0313b); }
.credit-box a { color: var(--blue); font-weight: 700; font-size: 13px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me .ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; }
.me div { min-width: 0; flex: 1; }
.me b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.me button:hover { background: var(--soft); color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 18px clamp(16px, 3vw, 40px); background: rgba(244,247,253,.85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .menu { display: none; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }
.top .ttl { min-width: 0; }
.top h1 { font-size: 22px; font-weight: 800; }
.top p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.top .acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.demo-chip { font-size: 12px; font-weight: 800; color: var(--amber); background: var(--amber-soft); padding: 5px 10px; border-radius: 999px; border: 0; cursor: pointer; }
.demo-chip:hover { filter: brightness(.97); box-shadow: 0 0 0 2px #f3dcae; }
.page { padding: 8px clamp(16px, 3vw, 40px) 48px; display: grid; gap: 20px; align-content: start; max-width: 1440px; width: 100%; }

/* ---------- komponen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; border: 1px solid transparent; font: 700 14px var(--body); cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(26,95,232,.22); }
.btn-primary:hover { background: var(--blue-2); }
.btn-live { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(200,16,46,.28); }
.btn-live:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7d3ec; background: var(--soft); }
.btn-danger { background: var(--card); color: var(--crimson); border-color: #f3c8cf; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2 { font-size: 16.5px; font-weight: 800; }
.card-h small, .card-h .hint { color: var(--muted); font-size: 13px; font-weight: 500; }
.grid { display: grid; gap: 20px; }
.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)); }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .k i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.stat .k i svg { width: 16px; height: 16px; }
.stat b { font-size: 28px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15; }
.stat small { color: var(--muted); font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.red { background: var(--red-soft); color: var(--crimson); border-color: transparent; }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }

.list { display: grid; }
.li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); min-width: 0; }
.li:first-child { border-top: 0; padding-top: 0; }
.li .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.li .ic svg { width: 18px; height: 18px; }
.li .ic.date { flex-direction: column; gap: 0; line-height: 1; background: var(--blue-soft); color: var(--blue); }
.li .ic.date b { font-size: 15px; } .li .ic.date small { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.li .t { min-width: 0; flex: 1; }
.li .t b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t small { display: block; color: var(--muted); font-size: 13px; }
.li .r { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.empty { padding: 26px 12px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; }
.field small { font-weight: 500; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 500 15px var(--body); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,95,232,.12); }
textarea.input { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(15,29,61,.08); }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd8ea; transition: background .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(18px); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.setting:first-of-type { border-top: 0; }
.setting b { display: block; font-size: 14.5px; }
.setting small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.rule-num { display: flex; align-items: center; gap: 8px; }
.rule-num input { width: 96px; text-align: right; }
.msg { min-height: 20px; font-size: 13.5px; color: var(--muted); }
.msg.err { color: var(--crimson); } .msg.ok { color: var(--green); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--amber-soft); color: #7a4a06; font-size: 14px; }
.note.blue { background: var(--blue-soft); color: #173b8f; }
.note svg { width: 18px; height: 18px; margin-top: 2px; }
.note .btn { margin-left: auto; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(11,21,48,.45); backdrop-filter: blur(3px); animation: fade .15s; }
.modal .box { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(11,21,48,.3); padding: 24px; display: grid; gap: 16px; }
.modal .box h2 { font-size: 20px; font-weight: 800; }
.modal .box.wide { max-width: 760px; }
/* ---------- setup acara ---------- */
.ev-sec { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.ev-more { border: 1px dashed #cfdcf7; border-radius: 16px; background: #f8fbff; }
.ev-more > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; padding: 14px 16px 14px 40px; position: relative; }
.ev-more > summary::-webkit-details-marker { display: none; }
.ev-more > summary::before { content: '+'; position: absolute; left: 16px; top: 11px; font-size: 20px; font-weight: 700; color: var(--blue); }
.ev-more[open] > summary::before { content: '–'; }
.ev-more > summary b { color: var(--blue); }
.ev-more > summary small { color: var(--muted); }
.ev-more-body { display: grid; gap: 12px; padding: 0 12px 12px; }
.sugg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.sugg small { color: var(--muted); font-size: 12px; margin-right: 2px; }
.chip-add { border: 1px dashed #bcd0fa; background: #fff; color: var(--blue); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip-add:hover { background: var(--blue-soft); border-style: solid; }
.ev-sec > header { display: flex; align-items: center; gap: 10px; }
.ev-sec > header .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 13px; flex: none; }
.ev-sec > header b { font-size: 15px; }
.ev-sec > header small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.ev-sec > header .sw { margin-left: auto; }
.ev-sec.off > :not(header) { display: none; }
.ev-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ev-card { display: grid; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; position: relative; }
.ev-card input { position: absolute; opacity: 0; }
.ev-card b { font-size: 14.5px; } .ev-card small { color: var(--muted); font-size: 12.5px; }
.ev-card .cr { font-size: 12px; font-weight: 800; color: var(--blue); }
.ev-card:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px #dce7ff; }
.ev-card:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-pick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.chips-pick button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips-pick button.fixed { background: var(--soft); color: var(--text); cursor: default; }
.chips-pick button:disabled:not(.fixed) { opacity: .45; cursor: not-allowed; }
.ev-toggles { display: grid; gap: 8px; }
.ev-toggles label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.fit { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: var(--green-soft); color: var(--green); font-weight: 700; }
.fit.need { background: var(--amber-soft); color: var(--amber); }
.fit a { margin-left: auto; color: inherit; }
.est { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #0b1530; color: #fff; }
.est .h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #9fb7ff; }
.est .r { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.est .r span:last-child { font-weight: 800; text-align: right; }
.est .warn { color: #ffd38a; font-size: 13px; }
.est a { color: #9fb7ff; }
@media (max-width: 640px) { .ev-cards { grid-template-columns: 1fr; } }
.modal .box .lead { margin: -8px 0 0; color: var(--muted); }
.modal .x { justify-self: end; margin: -8px -8px -28px 0; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@keyframes fade { from { opacity: 0; } }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice label { position: relative; display: grid; gap: 4px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.choice label:hover { border-color: #c7d3ec; }
.choice input { position: absolute; opacity: 0; }
.choice label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice b { font-size: 15px; } .choice small { color: var(--muted); font-size: 13px; }
.choice i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--blue); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 16px 40px rgba(11,21,48,.3); animation: fade .2s; }

/* bar chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.chart > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart i { width: 100%; max-width: 28px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #4f8bff, var(--blue)); min-height: 3px; }
.chart i.zero { background: var(--line); }
.chart small { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* hero dashboard */
.hello { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid #dbe5f7;
  background: radial-gradient(520px 260px at 100% 0%, rgba(26,95,232,.16), transparent 62%), radial-gradient(420px 240px at 0% 100%, rgba(224,49,59,.08), transparent 60%), linear-gradient(180deg, #ffffff, #f3f7ff); }
.hello h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; color: var(--ink); }
.hello p { margin: 6px 0 0; color: var(--muted); }
.hello .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.checklist { display: grid; gap: 8px; }
.checklist a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.checklist a:hover { background: var(--soft); }
.checklist a i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c7d3ec; display: grid; place-items: center; flex: none; }
.checklist a.done { color: var(--muted); }
.checklist a.done i { background: var(--green); border-color: var(--green); color: #fff; }
.checklist a.done i::after { content: "✓"; font-size: 12px; font-weight: 800; }
.checklist a span { margin-left: auto; color: var(--blue); font-size: 13px; }

/* plan cards */
.plan-now { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.plan-now .name { font-size: 24px; font-weight: 800; }
.big-meter { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 10px 0 6px; }
.big-meter i { display: block; height: 100%; background: linear-gradient(90deg, #4f8bff, var(--blue)); border-radius: inherit; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.plan.cur { border-color: var(--blue); background: var(--blue-soft); }
.plan h3 { font-size: 15px; font-weight: 800; color: var(--blue); }
.plan .p { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.plan .p small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.plan ul li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 8px; }
.plan .btn { margin-top: auto; }

/* mobile */
.scrim { display: none; }
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main, .g3 { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .25s; box-shadow: 0 20px 60px rgba(11,21,48,.25); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(11,21,48,.35); }
  .top .menu { display: inline-flex; }
  .top .acts .hide-sm { display: none; }
  .g2, .row2 { grid-template-columns: minmax(0, 1fr); }
  .hello { grid-template-columns: minmax(0, 1fr); }
  .hello .acts { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .plans, .choice { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g4 .card { padding: 14px; } .stat b { font-size: 24px; } .stat small { font-size: 12px; }
  .top h1 { font-size: 19px; } .top p { display: none; }
  .li .r .hide-xs { display: none; }
}

/* kartu statistik berwarna (seperti landing) */
.stat.tint { position: relative; overflow: hidden; border: 1px solid #e6ebf5; --ac: var(--blue); --tint: #eef3ff; background: linear-gradient(180deg, var(--tint) 0%, #fff 70%); }
.stat.tint .k i { background: var(--ac); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--ac) 30%, transparent); width: 32px; height: 32px; border-radius: 10px; }
.stat.tint::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--ac) 8%, transparent); }
.stat.t-blue { --ac: #1a5fe8; --tint: #eaf1ff; } .stat.t-red { --ac: #e0313b; --tint: #fdecef; }
.stat.t-violet { --ac: #6a4cf0; --tint: #f0ecff; } .stat.t-green { --ac: #0f9d7a; --tint: #e4f6f0; }
/* grafik bertumpuk transcribe / translation */
.chart.stack > div { gap: 6px; }
.chart.stack .col { width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 3px 3px; overflow: hidden; min-height: 3px; background: var(--line); }
.chart.stack .col i { width: 100%; max-width: none; border-radius: 0; min-height: 0; }
.chart.stack .col i.tr { background: linear-gradient(180deg, #ff6b74, #e0313b); }
.chart.stack .col i.tc { background: linear-gradient(180deg, #4f8bff, #1a5fe8); }
.chart.stack.dense small { font-size: 10px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.legend i.tr { background: var(--red); }
/* onboarding akun baru */
.welcome { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; border: 1px solid #e6ebf5; background: linear-gradient(180deg, var(--tint, #eef3ff) 0%, #fff 70%); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.step:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15,29,61,.1); }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--ac, var(--blue)); font-weight: 800; }
.step b { font-size: 17px; } .step p { margin: 0; color: var(--muted); font-size: 14px; }
.step span { margin-top: auto; font-weight: 700; color: var(--ac, var(--blue)); font-size: 14px; }
.step.s1 { --ac: #e0313b; --tint: #fdecef; } .step.s2 { --ac: #1a5fe8; --tint: #eaf1ff; } .step.s3 { --ac: #0f9d7a; --tint: #e4f6f0; }
@media (max-width: 860px) { .welcome { grid-template-columns: minmax(0, 1fr); } }

/* aksesibilitas & tambahan dashboard */
.btn:focus-visible, .seg button:focus-visible, .nav a:focus-visible, .step:focus-visible, .checklist a:focus-visible, .input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chart { position: relative; padding-top: 18px !important; }
.chart-max { position: absolute; left: 0; top: 0; font-size: 11px; color: var(--muted); }
.chart.stack .col i.tr { box-shadow: inset 0 -1px 0 rgba(255,255,255,.7); }
.live-strip { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(90deg, #fdecef, #fff 70%); border: 1px solid #f6cbd2; flex-wrap: wrap; }
.live-strip .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,49,59,.5); } 70% { box-shadow: 0 0 0 10px rgba(224,49,59,0); } 100% { box-shadow: 0 0 0 0 rgba(224,49,59,0); } }
.live-strip b { font-weight: 800; } .live-strip small { color: var(--muted); }
.live-strip .btn { margin-left: auto; }
.big-meter i.amber { background: linear-gradient(90deg, #f6b445, #e08a0b); }
.big-meter i.red { background: linear-gradient(90deg, #ff6b74, #e0313b); }
.delta { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.delta.up { background: var(--green-soft); color: var(--green); } .delta.down { background: var(--red-soft); color: var(--crimson); }
.step { border: 1px solid #e6ebf5; font: inherit; text-align: left; }
.step.done { opacity: .62; } .step.done .n { background: var(--green); }
.onb-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.onb-h b { font-size: 15px; } .onb-h button { border: 0; background: none; color: var(--muted); cursor: pointer; font: 600 13px var(--body); }
.empty-chart { display: grid; place-items: center; height: 150px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 12px; }
@media print { .side, .top .acts, .no-print, .scrim { display: none !important; } .app { display: block; } .card { box-shadow: none; break-inside: avoid; } body { background: #fff; } .print-only { display: block !important; } }
.print-only { display: none; }

/* ---------- popover, palette, notifikasi, pager, skeleton ---------- */
.pop { position: fixed; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(15,29,61,.18); padding: 6px; display: grid; gap: 2px; max-height: 70vh; overflow-y: auto; animation: fade .12s; }
.pop.static { position: static; box-shadow: none; border: 0; padding: 0; }
.pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.pop-h { padding: 8px 10px 6px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pop-h b { display: block; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); } .pop-h small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pop-h.row { display: flex; justify-content: space-between; align-items: center; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; color: var(--ink); font: 600 14px var(--body); text-align: left; cursor: pointer; text-decoration: none !important; }
.pop-item:hover, .pop-item:focus-visible { background: var(--soft); outline: none; }
.pop-item > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.pop-item small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: capitalize; }
.pop-item kbd, .search-btn kbd, .kbd-list kbd { font: 700 11px var(--body); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 6px; background: #fff; }
.pop-item svg:last-child { color: var(--blue); }
.pop-item.danger { color: var(--crimson); }
.ava.sm { width: 24px !important; height: 24px !important; border-radius: 7px !important; font-size: 12px !important; display: inline-grid !important; place-items: center; background: var(--grad); color: #fff; font-weight: 800; flex: none; }
button.ws, button.me { font: inherit; cursor: pointer; text-align: left; }
button.ws:hover { border-color: #c7d3ec; }
button.me { width: 100%; border: 0; background: none; color: var(--ink); }
button.me:hover { background: var(--soft); }
.linkish { border: 0; background: none; color: var(--blue); font: 700 12.5px var(--body); cursor: pointer; text-transform: none; letter-spacing: 0; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font: 600 13.5px var(--body); }
.icon-btn:hover { color: var(--ink); border-color: #c7d3ec; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.search-btn { min-width: 210px; justify-content: flex-start; }
.search-btn kbd { margin-left: auto; }
.note-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; font-size: 13.5px; line-height: 1.45; }
.note-item:hover { background: var(--soft); }
.note-item i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line); }
.note-item.unread i { background: var(--blue); } .note-item.unread.warn i { background: var(--red); } .note-item.unread.ok i { background: var(--green); }
.note-item.unread span { font-weight: 700; }
.modal .box.palette { max-width: 600px; align-self: start; margin-top: 10vh; padding: 14px; gap: 8px; }
.modal .box.palette .x { display: none; }
.pal-list { display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 600 14.5px var(--body); text-align: left; cursor: pointer; }
.pal-item small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; }
.pal-item.on, .pal-item:hover { background: var(--blue-soft); color: var(--blue); }
.pal-foot { font-size: 12px; color: var(--muted); padding: 4px 6px 0; }
.kbd-list { display: grid; gap: 10px; } .kbd-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14.5px; }
.btn-danger-solid { background: var(--crimson); color: #fff; }
.btn-danger-solid:hover { background: #a50d26; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pager span { margin-right: auto; }
.skel-list { display: grid; gap: 10px; }
.skel { height: 44px; border-radius: 10px; background: linear-gradient(90deg, #eef2f9 0%, #f7f9fe 50%, #eef2f9 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.err-box b { color: var(--crimson); } .err-box .btn { margin-top: 10px; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs-line button, .tabs-line a { border: 0; background: none; padding: 10px 14px; font: 700 14px var(--body); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.tabs-line .on { color: var(--blue); border-bottom-color: var(--blue); }
.crumbs { font-size: 13.5px; color: var(--muted); } .crumbs a { color: var(--muted); font-weight: 600; } .crumbs a:hover { color: var(--blue); }
.drawer { position: fixed; z-index: 55; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; box-shadow: -20px 0 60px rgba(11,21,48,.2); display: flex; flex-direction: column; animation: slidein .2s; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer header { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 18px; } .drawer header small { color: var(--muted); }
.drawer .body { flex: 1; overflow-y: auto; padding: 16px 22px; display: grid; gap: 12px; align-content: start; }
.drawer .line { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
.drawer .line time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 1px; }
.drawer .line .tr { color: var(--blue); font-size: 13.5px; margin-top: 2px; }
.drawer-scrim { position: fixed; inset: 0; z-index: 54; background: rgba(11,21,48,.3); }
@media (max-width: 860px) { .search-btn { display: none; } }
@media (max-width: 600px) {
  .tbl.cards table, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; }
  .tbl.cards thead { display: none; }
  .tbl.cards tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .tbl.cards td { border: 0; padding: 2px 0; white-space: normal; text-align: left !important; }
  .tbl.cards td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12.5px; }
  .top .acts .icon-btn { min-width: 36px; height: 36px; padding: 0 8px; }
}
@media (max-width: 600px) {
  .card-h { flex-wrap: wrap; }
  .card-h > div, .card-h input[type=search] { max-width: 100%; }
  #q { width: 100% !important; }
  .seg { max-width: 100%; overflow-x: auto; }
}

/* ---------- pindah halaman halus (View Transitions antar dokumen, Chrome/Edge 126+) ---------- */
@view-transition { navigation: auto; }
.side { view-transition-name: tm-side; }
.main > .top { view-transition-name: tm-top; }
::view-transition-group(tm-side), ::view-transition-group(tm-top) { animation: none; }
::view-transition-old(tm-side), ::view-transition-new(tm-side) { animation: none; }
::view-transition-old(root) { animation: tm-fade-out .12s ease both; }
::view-transition-new(root) { animation: tm-fade-in .16s ease both; }
@keyframes tm-fade-out { to { opacity: 0; } }
@keyframes tm-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
