/* Sahut v3 — gaya Murpati: sidebar hijau gelap, kad putih, padat & solid. Tiada CDN. */
:root {
  --bg: #f6f7f5; --card: #fff; --line: #e7ebe8; --line-2: #eef1ee; --soft: #f3f6f4; --soft-2: #eaf3ee;
  --text: #15201a; --text-2: #4b5a51; --muted: #7d8a82;
  --g900: #0b2e1f; --g800: #0f3d2a; --g700: #14532d; --g600: #1b6b45; --g500: #1f8a5b; --g100: #e3f3ea; --g50: #f0f8f3;
  --green: #1a7f4e; --orange: #d9730d; --blue: #2563eb; --red: #d92d20; --purple: #7c3aed; --teal: #0d9488;
  --hot: #e5484d; --hot-s: #fdecec; --warm: #d9730d; --warm-s: #fdf1e5; --cold: #2563eb; --cold-s: #eaf1fe;
  --r: 14px; --r-sm: 10px; --r-xs: 7px;
  --sh: 0 1px 2px rgba(16, 40, 28, .04), 0 1px 6px rgba(16, 40, 28, .03);
  --sh-lg: 0 12px 40px rgba(10, 30, 20, .16);
  --side: 240px; --side-mini: 68px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 8px; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.t2 { color: var(--text-2); }
.sm { font-size: 12.5px; }
.b { font-weight: 600; }
.mb0 { margin-bottom: 0 !important; }
.f1 { flex: 1; min-width: 0; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.green { color: var(--green); } .orange { color: var(--orange); } .blue { color: var(--blue); } .red { color: var(--red); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.xs { width: 13px; height: 13px; } .i.sm { width: 16px; height: 16px; } .i.lg { width: 26px; height: 26px; }
.skeleton { background: linear-gradient(90deg, #eef1ef 25%, #f6f8f6 50%, #eef1ef 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 8px; display: inline-block; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin .i { animation: spin 1s linear infinite; }

/* ---------- Butang & input ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; color: var(--g800); white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--g50); border-color: #d3e3d9; }
.btn.primary { background: var(--g700); border-color: var(--g700); color: #fff; }
.btn.primary:hover { background: var(--g800); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-o { color: var(--red); border-color: #f3c6c2; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.white { background: #fff; color: var(--red); border-color: #fff; }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { min-height: 44px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); flex: none; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn.dot { position: relative; } .icon-btn.dot::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.linkish { background: none; border: 0; padding: 0; color: var(--g600); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.linkish:hover { text-decoration: underline; }
.input { width: 100%; min-height: 38px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 14px; outline: none; transition: border-color .12s, box-shadow .12s; }
.input:focus { border-color: var(--g500); box-shadow: 0 0 0 3px rgba(31, 138, 91, .14); }
.input.sm { min-height: 32px; padding: 4px 8px; font-size: 13px; width: auto; }
textarea.input { resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7d8a82 50%), linear-gradient(135deg, #7d8a82 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 11.5px; font-weight: 700; color: var(--text-2); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.hint { font-size: 12.5px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.num-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.win-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.row-a { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
input[type=range] { accent-color: var(--g600); width: 100%; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d5ddd8; border-radius: 99px; transition: .15s; 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: .15s; }
.switch input:checked + span { background: var(--g600); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31,138,91,.25); }
.switch.sm { width: 36px; height: 20px; } .switch.sm span::after { width: 14px; height: 14px; } .switch.sm input:checked + span::after { transform: translateX(16px); }
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.seg button.on { background: #fff; color: var(--g800); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg.full { display: flex; } .seg.full button { flex: 1; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.chip.on { background: var(--g100); border-color: #b9dcc8; color: var(--g800); }
.chip small { color: var(--muted); font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--text-2); border: 1px solid var(--line-2); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--g100); color: var(--green); } .pill.warn { background: var(--warm-s); color: var(--orange); } .pill.bad { background: var(--hot-s); color: var(--red); } .pill.blue { background: var(--cold-s); color: var(--blue); }
.labels { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.lab { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--g50); color: var(--g700); border: 1px solid #d6eadf; }
.lab.wa { background: #e9f8ef; color: #0f7a3d; border-color: #c6ecd4; }
.lab button { border: 0; background: none; padding: 0; color: inherit; display: inline-grid; opacity: .6; }
.temp { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.temp .i { width: 12px; height: 12px; }
.temp.t-hot { background: var(--hot-s); color: var(--hot); } .temp.t-warm { background: var(--warm-s); color: var(--warm); } .temp.t-cold { background: var(--cold-s); color: var(--cold); } .temp.t-none { background: var(--soft); color: var(--muted); }
.temp.icon-only { padding: 3px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; } .avatar.xs { width: 24px; height: 24px; font-size: 10px; } .avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c2ccc6; vertical-align: middle; }
.sdot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.cnt { font-size: 11px; padding: 1px 6px; border-radius: 99px; background: var(--g600); color: #fff; } .cnt.org { background: var(--orange); }

/* ---------- Kad ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h2, .card-h h3 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-h h3 small, .card-h h2 small { font-size: 12.5px; font-weight: 500; }
.card-h .ico, .ico-sq { width: 32px; height: 32px; border-radius: 9px; background: var(--g50); color: var(--g600); display: grid; place-items: center; flex: none; }
.ico-sq.g { background: #e6f7ec; color: #16a34a; }
.card-b { padding: 14px 18px 18px; }
.card.empty { text-align: center; }
.empty { padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text-2); }
.empty.full { min-height: 100dvh; justify-content: center; }
.empty.sm { padding: 14px 6px; }
.empty h3 { font-size: 15px; color: var(--text); }
.empty p { max-width: 380px; font-size: 13px; color: var(--muted); }
.empty .glyph { width: 48px; height: 48px; border-radius: 14px; background: var(--g50); color: var(--g600); display: grid; place-items: center; margin-bottom: 4px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.page-h p { color: var(--text-2); margin: 4px 0 0; }
.page-a { display: flex; gap: 8px; flex-wrap: wrap; }
.statx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.statx b { font-size: 26px; font-weight: 700; font-family: var(--mono); letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.statx span { font-size: 12.5px; color: var(--text-2); }
.statx small { font-size: 11px; color: var(--muted); }
.statx.green b { color: var(--green); } .statx.orange b { color: var(--orange); } .statx.blue b { color: var(--blue); }
.statx.big b { font-size: 32px; }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 20px 22px; }
.stat-row.in { padding: 0; }
.stat-row > .statx + .statx { border-left: 1px solid var(--line-2); padding-left: 16px; }
.big-num { font-size: 32px; font-weight: 800; font-family: var(--mono); letter-spacing: -.02em; margin-bottom: 6px; }
.big-num small { font-size: 13px; font-weight: 500; font-family: var(--font); color: var(--muted); letter-spacing: 0; }
.foot-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--warm-s); color: #8a4a06; border: 1px solid #f4d6b5; margin-bottom: 14px; font-size: 13.5px; }
.banner.red { background: #fdecea; color: #9f1d14; border-color: #f6c7c2; }
.banner span { flex: 1; }
.banner.warn-soft { background: #fffaf2; }
.banner.sm { font-size: 12.5px; padding: 8px 12px; margin: 0; }

/* ---------- Rangka ---------- */
.shell { display: flex; min-height: 100dvh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: linear-gradient(180deg, var(--g900), var(--g800)); color: #e6f1ea; display: flex; flex-direction: column; z-index: 40; padding: 14px 12px; gap: 12px; transition: width .18s, transform .2s; }
.side-top { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.logo-img { width: 36px; height: 36px; border-radius: 10px; flex: none; display: block; }
.side-coll { color: #a9c6b5; } .side-coll:hover { background: rgba(255,255,255,.08); color: #fff; }
.chan { display: flex; background: rgba(0,0,0,.22); border-radius: 10px; padding: 3px; }
.chan button { flex: 1; border: 0; background: transparent; color: #a9c6b5; font-size: 12px; font-weight: 600; padding: 5px 6px; border-radius: 7px; }
.chan button.on { background: var(--g600); color: #fff; }
.side-nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #cfe2d6; font-weight: 500; font-size: 14px; border: 1px solid transparent; position: relative; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: rgba(46, 160, 104, .22); border-color: rgba(120, 214, 160, .35); color: #fff; font-weight: 600; }
.side-nav .nl { flex: 1; white-space: nowrap; overflow: hidden; }
.nb { display: inline-flex; gap: 3px; }
.nb b { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; color: #fff; display: inline-flex; align-items: center; gap: 2px; }
.b-red { background: #e5484d; } .b-org { background: #f59e0b; } .b-blue { background: #3b82f6; }
.side-bot { display: flex; flex-direction: column; gap: 8px; }
.credit-card { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #cfe2d6; font-size: 12.5px; }
.credit-card .i { color: #86efac; }
.credit-card .cl { flex: 1; }
.credit-card b { color: #bbf7d0; font-size: 15px; font-family: var(--mono); }
.credit-card.low b { color: #fca5a5; }
.cplus { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.1); color: #fff; }
.user-card { display: flex; align-items: center; gap: 9px; padding: 9px; border-radius: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.user-card .uc { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-card small { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #86efac; }
.user-card b { color: #fff; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card .icon-btn { color: #a9c6b5; } .user-card .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
body.nav-mini .side { width: var(--side-mini); }
body.nav-mini .side .brand b, body.nav-mini .side .nl, body.nav-mini .chan, body.nav-mini .credit-card .cl, body.nav-mini .credit-card b, body.nav-mini .user-card .uc, body.nav-mini .user-card .icon-btn { display: none; }
body.nav-mini .side-top { flex-direction: column; }
body.nav-mini .side-coll .i { transform: rotate(180deg); }
body.nav-mini .side-nav a { justify-content: center; padding: 10px; }
body.nav-mini .nb { position: absolute; top: 2px; right: 0; transform: scale(.8); }
body.nav-mini .credit-card, body.nav-mini .user-card { justify-content: center; }
.main { flex: 1; min-width: 0; margin-left: var(--side); transition: margin .18s; }
body.nav-mini .main { margin-left: var(--side-mini); }
.view { padding: 26px 32px 60px; max-width: 1240px; margin: 0 auto; }
.view > .card, .view > section, .view > div + div { margin-bottom: 16px; }
#dash > *, #crBody > *, #aiHealth > *, #campList > .card { margin-bottom: 16px; }
.kn-list > .card, .media-grid > .card, .camp-grid > .card { margin: 0; }
#banner { padding: 0 32px; max-width: 1240px; margin: 14px auto 0; }
#banner:empty { display: none; }
.topbar, .bottom, .scrim { display: none; }

/* ---------- Toast / menu / modal ---------- */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 40px); }
.toast { display: flex; align-items: center; gap: 9px; background: var(--g900); color: #fff; padding: 10px 14px; border-radius: 11px; box-shadow: var(--sh-lg); font-size: 13.5px; animation: tin .2s; max-width: 420px; }
.toast.err { background: #8f1d16; } .toast.info { background: #1e3a8a; }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }
.menu { position: fixed; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); padding: 5px; min-width: 200px; }
.menu button { display: flex; width: 100%; align-items: center; gap: 9px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; text-align: left; }
.menu button:hover { background: var(--soft); }
.menu button.danger { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(9, 25, 17, .42); display: grid; place-items: center; padding: 18px; animation: fin .15s; }
@keyframes fin { from { opacity: 0; } }
.modal { background: #fff; border-radius: 16px; width: min(480px, 100%); max-height: calc(100dvh - 36px); display: flex; flex-direction: column; box-shadow: var(--sh-lg); }
.modal.wide { width: min(720px, 100%); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.modal-h h2 { font-size: 17px; font-weight: 700; }
.modal-b { padding: 14px 18px 18px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.lightbox { max-width: 100%; max-height: 75dvh; display: block; margin: 0 auto; border-radius: 10px; }

/* ---------- Log masuk ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100dvh; }
.login-art { background: linear-gradient(160deg, var(--g900), var(--g800) 60%, var(--g700)); color: #e6f1ea; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; }
.lb { display: flex; align-items: center; gap: 10px; } .lb b { font-size: 22px; font-weight: 800; color: #fff; }
.lb .logo-img { width: 42px; height: 42px; }
.la-mid h1 { font-size: 34px; line-height: 1.15; color: #fff; max-width: 520px; font-weight: 800; letter-spacing: -.02em; }
.la-mid p { color: #b9d4c3; max-width: 460px; margin-top: 14px; font-size: 15px; }
.la-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.la-stats div { display: flex; flex-direction: column; } .la-stats b { display: flex; gap: 6px; align-items: center; color: #fff; } .la-stats span { color: #94b8a2; font-size: 12.5px; }
.login-form { display: grid; place-items: center; padding: 24px; }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.login-card h2 { font-size: 24px; font-weight: 800; }
.login-card p { color: var(--text-2); margin: -6px 0 4px; }
.login-card .lb.mob { display: none; } .login-card .lb b { color: var(--g800); }
.pw-wrap { position: relative; } .pw-wrap .icon-btn { position: absolute; right: 3px; top: 2px; }

/* ---------- Dashboard ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-row.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 2px; position: relative; }
.kpi + .kpi { padding-left: 16px; border-left: 1px solid var(--line-2); }
.kpi b { font-size: 30px; font-weight: 700; font-family: var(--mono); line-height: 1.15; }
.kpi.green b { color: var(--green); } .kpi.orange b { color: var(--orange); }
.kpi span { color: var(--text-2); font-size: 13px; } .kpi small { color: var(--muted); font-size: 11.5px; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-2-1 > .card { margin: 0; }
.use-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.use { background: var(--soft); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.use span { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.use b { font-size: 24px; font-family: var(--mono); }
.use small { color: var(--muted); font-size: 11.5px; }
.use-foot { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line-2); margin-top: 14px; padding-top: 12px; font-size: 12.5px; color: var(--text-2); }
.use-foot b { font-family: var(--mono); }
.chan-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chan-row .big { font-size: 22px; font-family: var(--mono); }
.chan-list { border: 1px dashed #cfe0d5; border-radius: 11px; padding: 8px 10px; margin-bottom: 12px; background: var(--g50); }
.cl { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; } .cl span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cl small { color: var(--muted); }
.heat { overflow-x: auto; padding-bottom: 4px; margin-top: 8px; }
.hm-m { display: grid; grid-template-columns: 28px repeat(53, 13px); font-size: 10.5px; color: var(--muted); gap: 0; margin-bottom: 4px; }
.hm-m span:first-child { grid-column: 2; }
.hm-g { display: flex; gap: 3px; }
.hm-d { display: grid; grid-template-rows: repeat(7, 10px); gap: 3px; font-size: 9.5px; color: var(--muted); width: 25px; }
.hc { display: grid; grid-template-rows: repeat(7, 10px); gap: 3px; }
.hc i, .hm-k i { width: 10px; height: 10px; border-radius: 2.5px; background: #ebefec; display: block; }
.hc i.e { background: transparent; }
.l1 { background: #c6e9d3 !important; } .l2 { background: #7fcf9f !important; } .l3 { background: #34a864 !important; } .l4 { background: #166c3b !important; }
.hm-k { display: flex; align-items: center; gap: 3px; justify-content: flex-end; font-size: 11px; color: var(--muted); margin-top: 6px; }
.impact { display: flex; flex-direction: column; gap: 9px; }
.imp { display: grid; grid-template-columns: 120px minmax(0, 1fr) 60px; align-items: center; gap: 10px; font-size: 13px; }
.imp b { text-align: right; font-family: var(--mono); }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--g500); border-radius: 99px; }
.bar i.green { background: var(--g500); } .bar i.blue { background: var(--blue); } .bar i.teal { background: var(--teal); } .bar i.orange { background: var(--orange); } .bar i.purple { background: var(--purple); }

/* ---------- Inbox 3 lajur ---------- */
body.page-inbox .view { max-width: none; padding: 0; }
body.page-inbox #banner { position: fixed; top: 10px; left: calc(var(--side) + 10px); right: 10px; z-index: 30; padding: 0; margin: 0; max-width: none; pointer-events: none; }
body.page-inbox #banner .banner { pointer-events: auto; box-shadow: var(--sh-lg); }
.inbox3 { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: 100dvh; background: #fff; }
.ib-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fff; }
.ib-head { padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line-2); }
.ib-title { display: flex; align-items: center; justify-content: space-between; }
.ib-title h2 { font-size: 18px; font-weight: 800; } .ib-title small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.search { position: relative; display: flex; align-items: center; }
.search > .i { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 34px; }
.search .icon-btn { position: absolute; right: 3px; }
.tabs-pill { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs-pill button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.tabs-pill button.on { background: var(--g700); border-color: var(--g700); color: #fff; }
.tabs-pill button b { color: var(--red); } .tabs-pill button.on b { color: #fecaca; }
.f-active { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.chat-list { flex: 1; overflow-y: auto; padding: 6px; }
.row { display: flex; gap: 10px; padding: 9px 9px; border-radius: 11px; align-items: center; border: 1px solid transparent; }
.row:hover { background: var(--soft); }
.row.on { background: var(--g50); border-color: #cde6d7; }
.av-wrap { position: relative; flex: none; }
.wa-dot { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; }
.row .mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .name { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.row .name span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .name time { font-size: 11.5px; color: var(--muted); font-weight: 500; flex: none; }
.row.unread .name span { font-weight: 800; } .row.unread .name time { color: var(--green); font-weight: 700; }
.tdot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #cfd8d3; }
.tdot.t-hot { background: var(--hot); } .tdot.t-warm { background: var(--warm); } .tdot.t-cold { background: var(--cold); }
.row .prev { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.row .prev span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .prev em { font-style: normal; color: var(--text-2); flex: none; }
.ub { background: var(--g600); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 5px; flex: none; }
.flag { color: var(--orange); display: inline-grid; flex: none; }
.list-more { padding: 10px; text-align: center; }
.ib-foot { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }
.ib-conv { min-width: 0; min-height: 0; display: flex; }
.pick-chat { flex: 1; display: grid; place-items: center; background: #f4f1ea; }
.pick-chat .empty { background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.conv-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-width: 0; min-height: 0; }
.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100dvh; background: #f4f1ea; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #fff; border-bottom: 1px solid var(--line); min-height: 58px; }
.chat-head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head .who b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .who small { font-size: 12px; color: var(--muted); }
.chat-head .back { display: none; }
.dev-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.dev-chip i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lead-toggle { display: none; }
.stage-bar { display: flex; gap: 6px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.stage-bar > :first-child { margin-left: auto; }
.stage-pill { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.stage-pill.on { background: var(--cold-s); border-color: #c7d8fb; color: var(--blue); }
.stage-pill.on i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.stage-pill.neg { color: var(--muted); }
.msgs { flex: 1; overflow-y: auto; padding: 16px 22px; display: flex; flex-direction: column; gap: 6px; }
.day-sep { align-self: center; font-size: 11.5px; background: #fff; color: var(--text-2); padding: 3px 10px; border-radius: 8px; margin: 8px 0; box-shadow: var(--sh); }
.msg { display: flex; max-width: 72%; }
.msg.me { align-self: flex-end; }
.bubble { background: #fff; border-radius: 12px 12px 12px 4px; padding: 7px 10px 5px; box-shadow: 0 1px 1px rgba(0,0,0,.06); min-width: 70px; max-width: 100%; }
.msg.me .bubble { background: #e5f6d8; border-radius: 12px 12px 4px 12px; }
.msg.ai .bubble { background: #f1ecfb; }
.msg.queued .bubble { opacity: .7; } .msg.failed .bubble { box-shadow: 0 0 0 1px #f3b4ae; }
.txt { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: 14px; }
.txt a { color: var(--blue); text-decoration: underline; }
.mt { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.mt .ack2 { color: #34b7f1; } .mt .fail { color: var(--red); display: inline-flex; gap: 2px; }
.src-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: #e4dbf7; color: #5b21b6; margin-bottom: 4px; }
.src-badge.s-keyword { background: #d8f3e4; color: #0f7a3d; } .src-badge.s-campaign { background: #fde8d0; color: #9a4a05; } .src-badge.s-api { background: #e6ecf5; color: #334; }
.media { max-width: 280px; width: 100%; border-radius: 8px; display: block; margin-bottom: 4px; cursor: zoom-in; }
.bubble video { max-width: 280px; width: 100%; border-radius: 8px; } .bubble audio { width: 240px; max-width: 100%; }
.doc { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.04); padding: 8px 10px; border-radius: 8px; margin-bottom: 4px; min-width: 200px; }
.doc .fi { width: 34px; height: 34px; border-radius: 8px; background: var(--g100); color: var(--g600); display: grid; place-items: center; flex: none; }
.doc .dn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .doc .dn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc .dn small { color: var(--muted); font-size: 11px; }
.pending { padding: 0 22px; display: flex; flex-direction: column; gap: 4px; }
.pend { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px dashed #cdd8d1; border-radius: 9px; padding: 4px 6px 4px 10px; font-size: 12.5px; }
.pend .pk { display: inline-flex; gap: 4px; align-items: center; color: var(--orange); font-weight: 600; flex: none; }
.pend .pt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.attach-preview { display: flex; align-items: center; gap: 8px; margin: 6px 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 5px 6px 5px 10px; font-size: 13px; }
.attach-preview span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick { display: flex; gap: 6px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; background: #fff; border-top: 1px solid var(--line); }
.qbtn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); white-space: nowrap; }
.qbtn.soft { background: var(--soft); }
.composer { position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 8px 14px 22px; background: #fff; }
.composer textarea { flex: 1; min-height: 42px; max-height: 160px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; resize: none; outline: none; font-size: 14px; line-height: 1.4; }
.composer textarea:focus { border-color: var(--g500); }
.composer textarea.drafted { background: #f6f2fd; border-color: #cbb8f2; }
.draft-btn { color: var(--purple); } .draft-btn.busy .i { animation: spin 1s linear infinite; }
.send-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--g600); color: #fff; display: grid; place-items: center; flex: none; }
.send-btn:disabled { opacity: .6; }
.kbd-hint { position: absolute; right: 16px; bottom: 4px; font-size: 10.5px; color: var(--muted); }
kbd { font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; background: var(--soft); }
.slash { position: absolute; left: 56px; right: 110px; bottom: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); padding: 5px; display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; z-index: 5; }
.slash button { display: flex; gap: 10px; text-align: left; border: 0; background: none; padding: 7px 9px; border-radius: 8px; font-size: 13px; }
.slash button.on, .slash button:hover { background: var(--g50); }
.slash button span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead { border-left: 1px solid var(--line); background: #fff; height: 100dvh; min-height: 0; display: flex; flex-direction: column; }
.lead-scroll { overflow-y: auto; flex: 1; position: relative; }
.lead-x { position: absolute; top: 8px; right: 8px; display: none; }
.lead-scrim { display: none; }
.lead-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 16px; gap: 3px; border-bottom: 1px solid var(--line-2); }
.lead-top h3 { font-size: 17px; margin-top: 8px; }
.lead-top .cap { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.lead-btns { display: flex; gap: 6px; margin-top: 10px; }
.lead-btns .btn.on { background: var(--g50); border-color: #cde6d7; }
.lsec { padding: 13px 16px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-direction: row; }
.trow .tl { display: flex; gap: 10px; align-items: center; min-width: 0; }
.trow .tl b { font-size: 13.5px; display: block; } .trow .tl small { font-size: 11.5px; color: var(--muted); display: block; }
.trow > .tl > .i { color: var(--g600); }
.temp-pick { display: flex; gap: 6px; }
.temp-pick button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-2); display: inline-flex; gap: 4px; justify-content: center; align-items: center; }
.temp-pick .p-hot.on { background: var(--hot-s); border-color: #f5c2c3; color: var(--hot); }
.temp-pick .p-warm.on { background: var(--warm-s); border-color: #f3d3b0; color: var(--warm); }
.temp-pick .p-cold.on { background: var(--cold-s); border-color: #c7d8fb; color: var(--cold); }
.lab-add .input { min-height: 26px; padding: 2px 9px; font-size: 12px; width: 90px; border-style: dashed; border-radius: 99px; }
.fu-box { display: flex; align-items: center; gap: 9px; background: var(--g50); border: 1px solid #d6eadf; border-radius: 10px; padding: 8px 10px; }
.fu-box .fu-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fu-box small { font-size: 11.5px; color: var(--muted); }
.fields-list { display: flex; flex-direction: column; gap: 4px; }
.fv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; } .fv span { color: var(--muted); }
.ai-box { background: #fbfaff; }
.ai-t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--purple); }
.ai-t .icon-btn { margin-left: auto; width: 28px; height: 28px; }
.ai-box p { font-size: 13px; margin: 0; }
.next { display: flex; gap: 6px; font-size: 12.5px; color: var(--text-2); background: #fff; border-radius: 8px; padding: 6px 8px; border: 1px solid #ece6fa; }
.upd { font-size: 11px; color: var(--muted); }
.rem { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 8px; border-radius: 9px; background: var(--soft); }
.rem div { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rem small { color: var(--muted); }
.rem.due { background: #eef4ff; color: var(--blue); }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gal-i { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 6px; align-items: center; font-size: 11.5px; }
.gal-i img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.sr-list { display: flex; flex-direction: column; gap: 6px; }
.sr-row { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 9px; padding: 6px 6px 6px 10px; font-size: 13px; }
.sr-row span { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Pipeline ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; contain: inline-size paint; }
.col { background: #eef1ee; border-radius: var(--r); padding: 8px; min-height: 160px; border: 1px solid transparent; }
.col.over { border-color: var(--g500); background: var(--g50); }
.col-h { display: flex; align-items: center; gap: 8px; padding: 6px 6px 10px; font-size: 13.5px; }
.col-h b { flex: 1; } .col-h .n { font-size: 12px; color: var(--muted); background: #fff; border-radius: 99px; padding: 1px 8px; font-weight: 700; }
.cdot { width: 9px; height: 9px; border-radius: 50%; background: #9aa8a0; }
.cdot.c1 { background: var(--blue); } .cdot.c2 { background: var(--teal); } .cdot.c3 { background: var(--orange); } .cdot.c4 { background: var(--green); } .cdot.c5 { background: var(--red); }
.col-b { display: flex; flex-direction: column; gap: 8px; }
.col-empty { font-size: 12.5px; color: var(--muted); text-align: center; padding: 22px 8px; border: 1.5px dashed #cfd8d3; border-radius: 10px; }
.lcard { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px; display: flex; flex-direction: column; gap: 7px; cursor: grab; box-shadow: var(--sh); }
.lcard.dragging { opacity: .5; }
.lcard .top { display: flex; align-items: center; gap: 8px; }
.lcard .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lcard .nm b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; } .lcard .nm small { font-size: 11.5px; color: var(--muted); }
.lcard .sum { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .foot { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11.5px; }
.lcard .t { margin-left: auto; color: var(--muted); }
.lcard .mv { border: 1px solid var(--line); border-radius: 7px; font-size: 11.5px; padding: 2px 4px; background: #fff; color: var(--text-2); max-width: 90px; }

/* ---------- Leads ---------- */
.filt { padding: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters > * { flex: 1 1 140px; min-width: 0; }
.filters .search { flex: 2 1 200px; } .filters .btn { flex: 0 0 auto; }
.tbl-card { overflow: hidden; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfa; white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:hover td { background: #fafcfb; }
.tbl .tn { display: flex; align-items: center; gap: 8px; } .tbl .r { text-align: right; }
.tbl-card .foot-note { padding: 0 14px 12px; }

/* ---------- Blaster ---------- */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.camp { padding: 16px; display: flex; flex-direction: column; gap: 10px; margin: 0 !important; }
.camp-h { display: flex; gap: 10px; align-items: flex-start; } .camp-h b { font-size: 15px; display: block; } .camp-h small { color: var(--muted); font-size: 12px; }
.camp-msg { font-size: 13px; color: var(--text-2); background: #e5f6d8; border-radius: 10px 10px 10px 3px; padding: 8px 10px; margin: 0; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.camp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.camp-stats .statx b { font-size: 20px; } .camp-stats .statx span { font-size: 11.5px; }
.camp-a { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.chips.wrap { flex-wrap: wrap; }
.aud-prev { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--soft); border-radius: 11px; padding: 10px 12px; }
.aud-n b { font-size: 20px; font-family: var(--mono); color: var(--green); }
.aud-list { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }

/* ---------- AI Chatbot ---------- */
.dev-card { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.dev-sel { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; max-width: 460px; }
.dev-sel .ds-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--g50); color: var(--g600); display: grid; place-items: center; }
.dev-sel .ds-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dev-sel .ds-t b { font-size: 14px; } .dev-sel .ds-t small { color: var(--muted); font-size: 12px; }
.ds-select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.next-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.next-row { display: flex; align-items: center; gap: 10px; background: var(--g50); border: 1px solid #e0eee5; border-radius: 11px; padding: 9px 12px; font-size: 13px; }
.next-row span { flex: 1; }
.ver-list { display: flex; flex-direction: column; gap: 6px; }
.ver { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.ver .pill { flex: none; }
.ver > span:not(.pill) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ver time { color: var(--muted); font-size: 12px; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs-line button { border: 0; background: none; padding: 10px 12px; font-weight: 600; font-size: 13.5px; color: var(--text-2); border-bottom: 2px solid transparent; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; margin-bottom: -1px; }
.tabs-line button.on { color: var(--g700); border-bottom-color: var(--g600); }
.draft-bar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.draft-bar > .i { color: var(--green); }
.draft-bar.on { background: #fffaeb; border-color: #f3dfa6; } .draft-bar.on > .i { color: #b7791f; }
.db-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .db-t small { color: var(--muted); font-size: 12px; }
.db-a { display: flex; gap: 6px; flex-wrap: wrap; }
.cfg-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.status-row { display: flex; align-items: center; gap: 12px; background: var(--soft); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.status-row.on { background: #eef8f1; border-color: #d3ecdc; }
.status-row b { display: block; } .status-row small, .who-row small { color: var(--muted); font-size: 12px; display: block; }
.who-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.who-row select { max-width: 190px; }
.cnt-row { display: flex; justify-content: flex-end; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: -8px; }
.est { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 9px 12px; border-radius: 10px; background: var(--g50); color: var(--g700); border: 1px solid #d6eadf; }
.est.warn { background: #fff8e6; color: #8a5a00; border-color: #f1d48a; }
.model-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 7px 11px; min-height: 44px; }
.model-btn span { flex: 1; min-width: 0; display: flex; flex-direction: column; } .model-btn b { font-size: 13.5px; } .model-btn small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-list { display: flex; flex-direction: column; gap: 4px; max-height: 44dvh; overflow-y: auto; }
.mrow { display: flex; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; }
.mrow:hover, .mrow.on { border-color: #b9dcc8; background: var(--g50); }
.mrow .mn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .mrow .mn small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.mrow .mp { font-family: var(--mono); font-size: 12px; text-align: right; display: flex; flex-direction: column; } .mrow .mp small { color: var(--muted); font-size: 10.5px; }
.hours { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.hours button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 0; font-size: 11.5px; font-family: var(--mono); color: var(--text-2); }
.hours button.on { background: var(--g600); border-color: var(--g600); color: #fff; }
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--soft); border-radius: 10px; padding: 6px 6px 6px 10px; font-size: 13px; }
.doc-row .dl { flex: 1; min-width: 0; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; justify-content: flex-start; }
.doc-row > .i { color: var(--muted); }
.note-pend { display: flex; gap: 6px; align-items: center; font-size: 12.5px; background: #fffaeb; border: 1px solid #f3dfa6; border-radius: 9px; padding: 7px 10px; }
.sticky-save { position: sticky; bottom: 12px; margin-top: 16px; z-index: 5; }
.sticky-save .btn { box-shadow: var(--sh-lg); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.page-bar p { margin: 0; color: var(--text-2); }
.kn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.kn { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.kn h4 { font-size: 14px; }
.kn p { font-size: 13px; color: var(--text-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.kn.off { opacity: .55; }
.kf { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.kf .icon-btn:first-of-type { margin-left: auto; }
.kw-top { display: flex; align-items: center; gap: 8px; } .kw-top h4 { flex: 1; }
.kwt { font-family: var(--mono); background: var(--g50); color: var(--g700); }
.row-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #fcfdfc; }
.rc-h { display: flex; align-items: center; gap: 8px; } .rc-h .field { flex: 1; }
.n { font-size: 12px; font-weight: 700; }
.rc-h .n, .step-row .n { width: 24px; height: 24px; border-radius: 50%; background: var(--g100); color: var(--g700); display: grid; place-items: center; flex: none; }
.steps-ed { display: flex; flex-direction: column; gap: 8px; }
.step-row { border: 1px solid var(--line); border-radius: 11px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.sr-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sr-h .input.sm { width: 76px; }
.steps-foot { display: flex; align-items: center; justify-content: space-between; } .tot { font-size: 12px; color: var(--muted); } .tot.bad { color: var(--red); font-weight: 700; }
.act-seg { margin-bottom: 4px; }
.job-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.job-row:last-child { border-bottom: 0; }
.jn { flex: 1; min-width: 0; display: flex; flex-direction: column; } .jn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .jn small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .jn small.err { color: var(--red); }
.fu-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--text-2); }
.fu-ic.s-sent { background: var(--g100); color: var(--green); } .fu-ic.s-cancelled { background: var(--hot-s); color: var(--red); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mcard { overflow: hidden; display: flex; flex-direction: column; }
.mthumb { aspect-ratio: 16/10; background: var(--soft); display: grid; place-items: center; color: var(--muted); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mb { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 2px; } .mb small { color: var(--muted); font-size: 11.5px; } .mb p { font-size: 12.5px; color: var(--text-2); margin: 4px 0 0; }
.mcard .kf { padding: 4px 8px 8px; }
.pg { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; height: min(640px, 72dvh); }
.pg-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pg-note { flex: 1; font-size: 12.5px; }
.pg-msgs { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; background: #f4f1ea; }
.pgb { flex-direction: column; align-items: flex-end; gap: 4px; }
.pg-act { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tag.t-hand { background: var(--warm-s); color: var(--orange); } .tag.t-bad { background: var(--hot-s); color: var(--red); }
.pg-an { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12.5px; background: var(--g50); }
.pg .composer { border-top: 1px solid var(--line); padding-bottom: 10px; }
.uq { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.uq .from { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); } .uq .from a { color: var(--g600); font-weight: 600; }
.uq .q { font-weight: 600; margin: 0; }

/* ---------- Nombor ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card.dev { padding: 16px; display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
.dev-top { display: flex; align-items: center; gap: 10px; }
.dev-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--g50); color: var(--g600); display: grid; place-items: center; }
.s-bad .dev-ic { background: var(--hot-s); color: var(--red); } .s-warn .dev-ic { background: var(--warm-s); color: var(--orange); }
.dev-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .dev-name b { font-size: 15px; } .dev-name small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.dev-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.dev-owner { display: inline-flex; gap: 5px; align-items: center; color: var(--text-2); }
.paused { display: inline-flex; gap: 4px; align-items: center; color: var(--orange); font-weight: 600; }
.qr-call { display: flex; align-items: center; gap: 10px; background: var(--warm-s); border: 1px solid #f4d6b5; border-radius: 11px; padding: 10px 12px; font-size: 13px; }
.qr-call p { flex: 1; margin: 0; }
.meter .mh { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; } .meter .mh b { font-family: var(--mono); }
.meter .bar i.hi { background: var(--orange); }
.dev-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.dev-foot .lbl { flex: 1; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 13.5px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-frame { position: relative; width: 260px; height: 260px; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; overflow: hidden; }
.qr-frame img { width: 240px; height: 240px; image-rendering: pixelated; }
.qr-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--g100); border-top-color: var(--g600); border-radius: 50%; animation: spin 1s linear infinite; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.steps li { display: flex; gap: 8px; } .steps li b { width: 22px; height: 22px; border-radius: 50%; background: var(--g100); color: var(--g700); display: grid; place-items: center; flex: none; font-size: 12px; }
.pair-code { font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: .12em; padding: 12px 18px; background: var(--g50); border-radius: 12px; }
.connected { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 10px; }
.connected .big { width: 60px; height: 60px; border-radius: 50%; background: var(--g100); color: var(--green); display: grid; place-items: center; }

/* ---------- Tetapan / Kredit ---------- */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.set-grid > .card { margin: 0; }
.set-grid .card.wide, .set-grid .card.mcp { grid-column: 1 / -1; }
.mcp-url { display: flex; gap: 8px; align-items: center; background: var(--soft); border-radius: 10px; padding: 6px 6px 6px 12px; margin-bottom: 10px; }
.mcp-url code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; }
.mcp ol { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.stage-list { display: flex; flex-direction: column; gap: 6px; }
.stage-item { display: flex; gap: 6px; align-items: center; } .stage-item .n { width: 22px; color: var(--muted); }
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.user-row .un { flex: 1; min-width: 120px; display: flex; flex-direction: column; } .user-row .un small { font-size: 12px; color: var(--muted); }
.role { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--soft); } .role.admin { background: var(--g100); color: var(--green); }
.readonly-note { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 0; }
.ev-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.ev-row { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.ev-row .lv { width: 7px; height: 7px; border-radius: 50%; background: var(--g500); flex: none; transform: translateY(-1px); } .ev-row .lv.warn { background: var(--orange); } .ev-row .lv.error { background: var(--red); }
.ev-row .em { flex: 1; min-width: 0; overflow-wrap: anywhere; } .ev-row time { color: var(--muted); flex: none; font-size: 11.5px; }
.job-list { display: flex; flex-direction: column; }
.bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; height: 150px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.bcol { display: flex; flex-direction: column-reverse; height: 100%; justify-content: flex-start; gap: 1px; }
.bcol i { display: block; border-radius: 3px 3px 0 0; min-height: 2px; }
.bcol i.green, .legend i.green { background: var(--g500); } .bcol i.blue, .legend i.blue { background: var(--blue); } .bcol i.orange, .legend i.orange { background: var(--orange); } .bcol i.purple, .legend i.purple { background: var(--purple); } .bcol i.teal, .legend i.teal { background: var(--teal); } .bcol i.gray { background: #9aa8a0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.pkg { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pkg b { font-size: 20px; } .pkg span { font-size: 12.5px; color: var(--text-2); } .pkg small { font-size: 11px; color: var(--green); font-weight: 700; }
.pkg.on { border-color: var(--g600); background: var(--g50); }
.manual { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.man-txt { white-space: pre-wrap; background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 0; font-size: 13px; }

/* ---------- Tablet ---------- */
@media (max-width: 1280px) {
  .conv-wrap { grid-template-columns: minmax(0, 1fr); }
  .lead { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 60; transform: translateX(105%); transition: transform .2s; box-shadow: var(--sh-lg); }
  body.lead-open .lead { transform: none; }
  body.lead-open .lead-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(9,25,17,.35); }
  .lead-x, .lead-toggle { display: inline-grid; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row > .statx:nth-child(4) { border-left: 0; padding-left: 0; }
  .kpi-row.six { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .kpi-row.six .statx:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1100px) {
  .cfg-grid, .grid-2-1 { grid-template-columns: minmax(0, 1fr); }
  .view { padding: 22px 20px 60px; }
}

/* ---------- Mudah alih ---------- */
@media (max-width: 899px) {
  .side { transform: translateX(-105%); width: min(280px, 86vw) !important; box-shadow: var(--sh-lg); }
  body.drawer-open .side { transform: none; }
  body.drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(9,25,17,.45); }
  body.nav-mini .side .brand b, body.nav-mini .side .nl, body.nav-mini .chan, body.nav-mini .credit-card .cl, body.nav-mini .credit-card b, body.nav-mini .user-card .uc, body.nav-mini .user-card .icon-btn { display: revert; }
  .side-coll { display: none; }
  .main, body.nav-mini .main { margin-left: 0; padding-bottom: 64px; }
  .topbar { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .topbar .brand { flex: none; } .topbar .logo-img { width: 30px; height: 30px; }
  .topbar h1 { flex: 1; font-size: 17px; font-weight: 800; }
  .tb-credit { display: inline-flex; align-items: center; gap: 4px; background: var(--g50); color: var(--g700); border: 1px solid #d6eadf; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; }
  .tb-credit b { font-family: var(--mono); }
  .bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bottom a, .bottom button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 5px 0; border: 0; background: none; position: relative; }
  .bottom a.on { color: var(--g700); }
  .bdot { position: absolute; top: 4px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
  .view { padding: 16px 16px 40px; }
  #banner { padding: 0 16px; margin-top: 10px; }
  body.page-inbox #banner { position: static; padding: 0 10px; margin: 8px 0 0; }
  .page-h h1 { font-size: 21px; }
  .page-h { margin-bottom: 14px; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px; gap: 12px; }
  .stat-row .statx span { font-size: 11.5px; line-height: 1.3; }
  .statx.big b { font-size: 24px; }
  .stat-row > .statx + .statx { border-left: 0; padding-left: 0; }
  .statx b { font-size: 20px; }
  .kpi-row, .kpi-row.six { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .kpi + .kpi { border-left: 0; padding-left: 0; }
  .kpi b { font-size: 24px; }
  .use-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .use { padding: 9px; } .use b { font-size: 18px; } .use small { display: none; }
  .grid-2, .set-grid { grid-template-columns: minmax(0, 1fr); }
  .imp { grid-template-columns: 90px minmax(0, 1fr) 44px; }
  .inbox3 { grid-template-columns: minmax(0, 1fr); height: auto; min-height: calc(100dvh - 120px); }
  .ib-list { border-right: 0; }
  .tabs-pill { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .tabs-pill button { white-space: nowrap; }
  .ib-conv { display: none; }
  .chat-list { overflow: visible; }
  .ib-foot { display: none; }
  .mobile-chat { position: fixed; inset: 0; z-index: 45; background: #fff; display: flex; }
  .mobile-chat .conv-wrap, .mobile-chat .conv { height: 100dvh; }
  body.in-chat .bottom, body.in-chat .topbar { display: none; }
  .chat-head .back { display: inline-grid; }
  .chat-head .dev-chip, .chat-head .pill { display: none; }
  .stage-bar { justify-content: flex-start; }
  .msgs { padding: 12px; } .msg { max-width: 86%; }
  .kbd-hint { display: none; }
  .composer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .slash { left: 10px; right: 10px; }
  .hours { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .camp-grid, .dev-grid, .kn-list { grid-template-columns: minmax(0, 1fr); }
  .camp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { display: none; }
  .login-card .lb.mob { display: flex; margin-bottom: 8px; }
  .hide-sm { display: none; }
  .who-row { flex-wrap: wrap; } .who-row select { max-width: none; }
  #toasts { left: 16px; right: 16px; bottom: 76px; }
  .tbl th:nth-child(n+6), .tbl td:nth-child(n+6) { display: none; }
  .dev-card { padding: 12px 14px; }
  .modal { max-height: calc(100dvh - 24px); }
  .overlay { padding: 12px; align-items: end; }
}
