/* Chatvolution — dashboard (tema terang) */
:root {
  --brand: #2563eb; --brand-600: #1d4ed8; --brand-50: #eff6ff; --brand-100: #dbeafe;
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line-2: #f1f5f9; --bg: #f8fafc; --card: #ffffff;
  --alert: #dc2626; --alert-50: #fef2f2; --warn: #d97706; --warn-50: #fffbeb;
  --ok: #16a34a; --ok-50: #f0fdf4; --ai: #7c3aed; --ai-50: #f5f3ff; --wa: #16a34a;
  --note: #fef9c3; --note-line: #fde68a;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

/* ── Tombol & elemen dasar ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; transition: background .15s, box-shadow .15s; white-space: nowrap; }
.btn-sm { height: 30px; font-size: 12.5px; padding: 0 10px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-soft { background: var(--ai-50); color: var(--ai); }
.btn-soft:hover { background: #ede9fe; }
.btn-danger { background: #fff; border: 1px solid #fecaca; color: var(--alert); }
.btn-danger:hover { background: var(--alert-50); }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.link-btn { color: var(--brand); font-size: 12.5px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill-alert { background: var(--alert-50); color: var(--alert); }
.pill-ai { background: var(--ai-50); color: var(--ai); }
.pill-agent { background: var(--brand-50); color: var(--brand-600); }
.pill-wa { background: var(--ok-50); color: var(--wa); }
.pill-warn { background: var(--warn-50); color: var(--warn); }
.pill-ok { background: var(--ok-50); color: var(--ok); }
.form-error { color: var(--alert); font-size: 13px; min-height: 18px; }
.section-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }

/* ── Login ── */
.login-screen { min-height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(1200px 600px at 20% 0%, #dbeafe 0%, transparent 60%), var(--bg); padding: 24px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.login-card h1 { font-size: 22px; margin: 14px 0 4px; }
.login-card .muted { margin-bottom: 22px; }
.field { display: block; text-align: left; margin-bottom: 14px; }
.field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; outline: none; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.login-card .btn { margin-top: 6px; height: 40px; }
.login-card .form-error { margin-top: 12px; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark.small { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; margin-bottom: 14px; }

/* ── Kerangka aplikasi ── */
.app { display: flex; height: 100vh; overflow: hidden; }
.rail { width: 72px; background: #0f172a; display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 4px; flex-shrink: 0; }
.rail-btn { position: relative; width: 56px; padding: 8px 0 6px; border-radius: 10px; color: #94a3b8; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; }
.rail-btn:hover { background: #1e293b; color: #e2e8f0; }
.rail-btn.active { background: #1e293b; color: #fff; }
.rail-btn.active::before { content: ""; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #60a5fa; }
.rail-badge { position: absolute; top: 4px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--alert); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rail-spacer { flex: 1; }
.me { position: relative; }
.me .avatar { width: 38px; height: 38px; cursor: pointer; background: #334155; color: #fff; }
.me .presence { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #0f172a; }
.me-menu { display: none; position: absolute; left: 52px; bottom: 0; width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; z-index: 50; }
.me.open .me-menu { display: block; }
.me-name { font-weight: 700; }
.me-role { font-size: 12.5px; margin-bottom: 10px; }
.me-status { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.me-status button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; text-align: left; }
.me-status button:hover { background: var(--line-2); }
.dot, .presence { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.dot.online, .presence.online { background: #22c55e; }
.dot.away, .presence.away { background: #f59e0b; }
.dot.offline, .presence.offline { background: var(--faint); }

.view { flex: 1; min-width: 0; display: flex; height: 100vh; }
.view-page { flex-direction: column; overflow-y: auto; padding: 28px 32px; gap: 18px; }

/* ── Inbox ── */
.inbox-list { width: 340px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-head { padding: 18px 16px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.inbox-head h2 { font-size: 18px; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--faint); background: var(--bg); }
.search svg { width: 16px; height: 16px; }
.search input { flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); }
.search:focus-within { border-color: var(--brand); background: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; background: #fff; }
.chip b { font-weight: 700; color: var(--faint); }
.chip:hover { background: var(--line-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active b { color: #cbd5e1; }
.chip-alert b { color: var(--alert); }
.conv-list { flex: 1; overflow-y: auto; }
.conv-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; }
.conv-item:hover { background: var(--bg); }
.conv-item.active { background: var(--brand-50); }
.conv-item.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); }
.conv-item.needs-human { background: #fff7f7; }
.conv-item.needs-human.active { background: #fee2e2; }
.avatar { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.avatar .ch { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; border: 2px solid #fff; background: var(--wa); color: #fff; font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.conv-main { flex: 1; min-width: 0; }
.conv-row { display: flex; align-items: center; gap: 6px; }
.conv-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item.unread .conv-name { font-weight: 800; }
.conv-time { font-size: 11.5px; color: var(--faint); flex-shrink: 0; }
.conv-preview { color: var(--muted); font-size: 13px; margin: 2px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item.unread .conv-preview { color: var(--ink); }
.conv-tags { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.emo { font-size: 13px; }
.list-empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.team-online { border-top: 1px solid var(--line); padding: 12px 16px; max-height: 150px; overflow-y: auto; }
.team-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; }
.team-row .muted { font-size: 11.5px; }

/* ── Percakapan ── */
.conversation { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.empty-state { margin: auto; text-align: center; max-width: 340px; padding: 24px; }
.empty-illus { font-size: 40px; margin-bottom: 10px; }
.empty-state h3 { font-size: 17px; margin-bottom: 6px; }
.conv-pane { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.conv-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); min-height: 64px; }
.conv-head .title { flex: 1; min-width: 0; }
.conv-head .title b { font-size: 15.5px; }
.conv-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; }
.wait-banner { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--alert-50); color: #991b1b; border-bottom: 1px solid #fecaca; font-size: 13.5px; }
.wait-banner b { font-weight: 700; }
.messages { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; display: flex; flex-direction: column; gap: 3px; }
.msg .who { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.msg .bubble { padding: 10px 13px; border-radius: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg .meta { font-size: 11px; color: var(--faint); }
.msg.visitor { align-self: flex-start; }
.msg.visitor .bubble { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.msg.ai, .msg.agent { align-self: flex-end; align-items: flex-end; }
.msg.ai .bubble { background: var(--ai-50); border: 1px solid #ddd6fe; border-top-right-radius: 4px; }
.msg.ai .who { color: var(--ai); }
.msg.agent .bubble { background: var(--brand); color: #fff; border-top-right-radius: 4px; }
.msg.agent .bubble a { color: #fff; }
.msg.note { align-self: stretch; max-width: 100%; }
.msg.note .bubble { background: var(--note); border: 1px dashed var(--note-line); color: #713f12; border-radius: 10px; }
.msg.note .who { color: #a16207; }
.msg.system { align-self: center; max-width: 90%; font-size: 12px; color: var(--muted); text-align: center; background: var(--line-2); padding: 4px 12px; border-radius: 999px; }
.day-sep { align-self: center; font-size: 11.5px; color: var(--faint); font-weight: 600; margin: 6px 0; }
.bubble img { max-width: 240px; max-height: 240px; border-radius: 8px; display: block; margin-top: 4px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.18); border: 1px solid rgba(15,23,42,.08); margin-top: 4px; text-decoration: none; color: inherit; font-size: 12.5px; }
.typing { padding: 0 24px 8px; font-size: 12.5px; color: var(--ai); }
.dots i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ── Composer ── */
.composer { position: relative; background: #fff; border-top: 1px solid var(--line); padding: 8px 16px 12px; }
.composer.note-mode { background: #fffdf2; }
.composer-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.ctab { padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ctab.active { background: var(--line-2); color: var(--ink); }
.composer.note-mode .ctab.active { background: var(--note); color: #854d0e; }
.composer-hint { margin-left: auto; font-size: 11.5px; }
.composer textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; resize: none; outline: none; line-height: 1.5; min-height: 64px; max-height: 200px; background: #fff; }
.composer textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.composer.note-mode textarea { background: #fffbeb; border-color: var(--note-line); }
.composer-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.join-cta { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--brand-50); color: var(--brand-600); font-size: 13px; }
.join-cta span { flex: 1; }
.canned-pop { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 4px); max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; z-index: 20; }
.canned-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.canned-item.sel, .canned-item:hover { background: var(--brand-50); }
.canned-item b { color: var(--brand-600); margin-right: 6px; }
.canned-item div { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Panel konteks ── */
.context { width: 320px; flex-shrink: 0; background: #fff; border-left: 1px solid var(--line); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ctx-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ctx-title { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.insight-body p { line-height: 1.55; color: var(--ink-2); }
.insight-body ul { margin: 10px 0 0 16px; color: var(--ink-2); line-height: 1.5; }
.insight-body li { margin-bottom: 4px; }
.insight-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.emo-bar { display: flex; gap: 3px; margin-top: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.emo-bar i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); }
.emo-bar i.on1 { background: #ef4444; } .emo-bar i.on2 { background: #f97316; } .emo-bar i.on3 { background: #eab308; } .emo-bar i.on4 { background: #84cc16; } .emo-bar i.on5 { background: #22c55e; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { word-break: break-word; }
.related { padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; cursor: pointer; }
.related:first-child { border-top: 0; padding-top: 0; }
.related:hover .rel-sum { color: var(--ink); }
.rel-sum { color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Halaman (statistik, balasan, tim) ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 22px; margin-bottom: 4px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--ink); color: #fff; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-title { font-weight: 700; margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 28px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.02em; }
.kpi .note { font-size: 12px; color: var(--muted); }
.kpi.alert .value { color: var(--alert); }
.kpi.good .value { color: var(--ok); }
.grid-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hbar { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.hbar .track { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 5px; background: var(--brand); }
.hbar .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.chart-svg { width: 100%; height: auto; display: block; stroke: none; }
.chart-svg text { font-size: 10.5px; fill: var(--muted); stroke: none; }
.csat-big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.csat-big b { font-size: 34px; letter-spacing: -.02em; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.form-row input, .form-row select, .card textarea { flex: 1 1 160px; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; outline: none; background: #fff; }
.card textarea { width: 100%; height: auto; padding: 10px 12px; resize: vertical; }
.form-row input:focus, .card textarea:focus, .form-row select:focus { border-color: var(--brand); }
.form-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.empty-note { color: var(--muted); padding: 10px 0; }

.view-split { display: flex; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; box-shadow: var(--shadow); z-index: 100; }

@media (max-width: 1280px) { .context { width: 280px; } .inbox-list { width: 300px; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .context { display: none !important; } .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── v2.2 Multisite ── */
.inbox-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inbox-title.single .site-select { display: none; }
.site-select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); max-width: 160px; }
.page-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.page-tools .site-select { height: 36px; }
.pill-site { background: color-mix(in srgb, var(--site) 12%, #fff); color: color-mix(in srgb, var(--site) 80%, #000); }
.site-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--site, #94a3b8); flex: none; }
.site-line { --site: #94a3b8; display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--ink-2);
  background: color-mix(in srgb, var(--site) 8%, #fff); border: 1px solid color-mix(in srgb, var(--site) 25%, #fff); border-radius: 8px; padding: 4px 10px; width: fit-content; }
.msg .who .alias { font-weight: 500; color: var(--faint); }
.small-note { font-size: 12px; margin-top: 8px; }
.site-editor { flex: 1; overflow-y: auto; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; background: var(--bg); }
.site-editor .empty-state { margin: auto; }
.site-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.site-head h2 { font-size: 20px; }
.site-head .head-actions { display: flex; gap: 8px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.field-block { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.field-block > span { font-weight: 600; color: var(--ink-2); }
.field-block small, .check-row small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.field-block input, .field-block select, .field-block textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fff; outline: none; }
.field-block input, .field-block select { height: 38px; }
.field-block input[type=color] { width: 72px; padding: 4px; }
.field-block textarea { resize: vertical; line-height: 1.5; }
.field-block:has(textarea[rows="6"]) { grid-column: 1 / -1; }
.field-block :focus { border-color: var(--brand); }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.check-row input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }
.check-row span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.alias-input { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; }
.test-out { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--ai-50); color: var(--ink-2); line-height: 1.55; font-size: 13.5px; }
.embed { background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 12px 14px; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; margin: 10px 0; font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 1100px) { .field-grid { grid-template-columns: 1fr; } }
.field-block textarea, .field-block input, .field-block select { flex: none; }
.field-grid { align-items: start; }
a.btn { text-decoration: none; }

/* ══════════ v2.3 ══════════ */
.rail { overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-btn { padding-top: 6px; padding-bottom: 6px; min-height: 52px; }
.rail-btn span { font-size: 10.5px; }
.me-head { margin-bottom: 2px; }
.me-link { display: block; width: 100%; text-align: left; padding: 7px 4px; font-size: 13px; color: var(--ink-2); border-radius: 6px; }
.me-link:hover { background: var(--line-2); }
#me-avatar img, .ava-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ava-img, .ava-txt { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; flex: none; }
.ava-txt { background: var(--brand-50); color: var(--brand-600); font-weight: 700; font-size: 12px; }
.ava-img.sm, .ava-txt.sm { width: 24px; height: 24px; font-size: 10px; margin-right: 4px; }
.ava-img.xl, .ava-txt.xl { width: 56px; height: 56px; font-size: 20px; }
.mini-ava { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; margin-right: 6px; vertical-align: -4px; }
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: flex-start; justify-content: center; z-index: 60; padding: 6vh 16px; overflow-y: auto; }
.modal-card { background: #fff; border-radius: 14px; width: min(720px, 100%); padding: 22px 24px; box-shadow: 0 20px 60px rgba(15,23,42,.25); display: flex; flex-direction: column; gap: 10px; }
.modal-card h3 { font-size: 18px; } .modal-card h4 { font-size: 14px; }
.modal-card textarea, .modal-card .full-input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; resize: vertical; font: inherit; }
.modal-card .form-row select, .modal-card .form-row input { height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: #fff; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 6px; }
.checklist { margin-left: 18px; line-height: 1.7; }
.paste-preview { background: var(--line-2); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; white-space: pre-wrap; max-height: 160px; overflow: auto; font-family: inherit; }
.paste-preview.tall { max-height: 320px; }
.notif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notif-grid .check-row { align-items: center; }
.notif-grid .check-row span { flex: 1; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.pick span:last-child { display: flex; flex-direction: column; } .pick small { color: var(--muted); }
.pick:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips.disabled, .hours-grid.disabled { opacity: .4; pointer-events: none; }
.chip-check input { display: none; }
.chip-check span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; cursor: pointer; background: #fff; }
.chip-check input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.warn-strip { padding: 10px 12px; background: #fff7ed; border-bottom: 1px solid #fed7aa; display: flex; flex-direction: column; gap: 6px; }
.warn-item { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #9a3412; }
.warn-item.red { color: #991b1b; }
.kb-btn { font-size: 11px; color: var(--muted); border-radius: 4px; padding: 0 4px; }
.kb-btn:hover { color: var(--ai); background: var(--ai-50); }
.msg .meta { display: inline-flex; gap: 2px; align-items: center; }
.tr-note { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(100,116,139,.35); font-size: 12.5px; color: var(--muted); }
.msg.k-assist .bubble { background: #f5f3ff; border: 1px dashed #c4b5fd; color: var(--ink); }
.msg.k-whisper .bubble { background: #ecfeff; border: 1px dashed #67e8f9; color: #155e75; }
.msg video { max-width: 280px; border-radius: 8px; display: block; }
.icon-btn { font-size: 16px; }
.head-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.mini-select { height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 12.5px; background: #fff; color: var(--ink-2); }
.tr-wrap { display: inline-flex; gap: 5px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding: 0 6px; }
.forbid-warn { font-size: 12px; color: var(--alert); font-weight: 600; }
.composer.assist-mode textarea { background: #faf5ff; }
.composer.whisper-mode textarea { background: #ecfeff; }
.pill-urgent { background: #dc2626; color: #fff; }
.pill-lock { background: #1e293b; color: #fff; }
.role-superadmin { background: #0f172a; color: #fff; } .role-admin { background: #312e81; color: #fff; }
.role-supervisor { background: var(--ai-50); color: var(--ai); } .role-koordinator { background: var(--ok-50); color: var(--ok); }
.history-body { display: flex; flex: 1; min-height: 0; }
.history-body .messages { flex: 1; }
.review-panel { width: 300px; border-left: 1px solid var(--line); padding: 14px; overflow-y: auto; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.review-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.review-item .tags, .review-form .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.review-form { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.review-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.star-pick button { font-size: 24px; color: #cbd5e1; padding: 0 2px; } .star-pick button.on { color: #f59e0b; }
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.site-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--site); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; }
.sc-head { display: flex; align-items: center; gap: 10px; } .sc-head b { flex: 1; font-size: 15px; }
.sc-head img, .sc-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.sc-logo { background: var(--site); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.sc-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-big div { background: var(--line-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; }
.sc-big b { font-size: 26px; } .sc-big span { font-size: 11.5px; color: var(--muted); }
.sc-big .alert { background: var(--alert-50); } .sc-big .alert b { color: var(--alert); }
.sc-row { display: flex; justify-content: space-between; font-size: 12.5px; gap: 8px; flex-wrap: wrap; }
.alert { color: var(--alert); }
.perf-hero { display: flex; gap: 14px; align-items: center; }
.perf-hero h3 { font-size: 18px; }
.tbar { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.tbar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.tbar.ok i { background: var(--ok); } .tbar.mid i { background: #eab308; } .tbar.bad i { background: var(--alert); }
.perf-list { margin-left: 18px; line-height: 1.8; } .perf-list.good li::marker { color: var(--ok); } .perf-list.bad li::marker { color: var(--alert); }
.quote { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.row-bad td { background: #fff7f7; }
.nowrap { white-space: nowrap; }
.heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; font-size: 10.5px; color: var(--muted); }
.heat .hc { aspect-ratio: 1; border-radius: 3px; background: rgba(79,70,229,var(--a)); outline: 1px solid var(--line-2); }
.heat .hd { display: flex; align-items: center; } .heat .hh { text-align: center; }
.hours-bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 90px; align-items: end; margin-top: 14px; }
.hours-bars div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; font-size: 10px; color: var(--muted); text-align: center; }
.hours-bars i { display: block; background: #a5b4fc; border-radius: 3px 3px 0 0; min-height: 2px; } .hours-bars i.bad { background: var(--alert); }
.top-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.top-row { display: grid; grid-template-columns: 22px 1fr 70px 34px; gap: 8px; align-items: center; padding: 5px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.top-row:hover { background: var(--line-2); }
.top-row .rank { color: var(--muted); font-weight: 700; } .top-row .tk { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbarw { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; } .tbarw i { display: block; height: 100%; background: var(--brand); }
.scroll-list .top-row { grid-template-columns: 30px 1fr 50px; }
.link-btn.more { margin-top: 8px; }
.scroll-list { max-height: 60vh; overflow: auto; } .scroll-list.tall { max-height: 70vh; }
.kbs { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; }
.grid-graph { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.rel-graph { min-height: 300px; } .graph-svg { width: 100%; height: auto; }
.graph-svg text { font-size: 10px; fill: var(--ink-2); } .gnode { cursor: pointer; }
.legend-inline { display: inline-flex; flex-wrap: wrap; gap: 10px; font-weight: 500; font-size: 11.5px; color: var(--muted); margin-left: 10px; }
.legend-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.grp { border: 1px solid var(--line); border-left: 4px solid #94a3b8; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; }
.grp.tinggi { border-left-color: var(--alert); } .grp.sedang { border-left-color: #f97316; }
.log-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.hours-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 14px; margin-top: 8px; }
.hours-row { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.hours-row label { width: 80px; display: flex; gap: 6px; align-items: center; }
.hours-row input[type=time] { height: 32px; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-pick { display: flex; gap: 12px; align-items: flex-start; }
.media-prev { width: 72px; height: 72px; border-radius: 12px; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-size: 11px; }
.media-prev img { width: 100%; height: 100%; object-fit: cover; }
.learn-out { background: var(--ai-50); border-radius: 10px; padding: 12px 14px; line-height: 1.6; font-size: 13.5px; }
.loader { height: 4px; background: linear-gradient(90deg, var(--ai-50), var(--ai), var(--ai-50)); background-size: 200% 100%; animation: ld 1.2s linear infinite; border-radius: 99px; }
@keyframes ld { to { background-position: -200% 0; } }
.timeline { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.tl { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; font-size: 13px; }
.kpi-svc { border-top: 3px solid var(--brand); }
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 55; background-repeat: repeat; }
/* Multi-monitor: jendela pop-out & mode layar dinding */
body.pop .rail, body.pop .inbox-list { display: none !important; }
body.wall .rail { display: none; }
body.wall #view-monitor { padding: 24px; } body.wall .site-cards { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
body.wall .sc-big b { font-size: 40px; } body.wall .page-tools { display: none; }
body.hide-ctx .context { display: none !important; }
body.dense .conv-item { padding-top: 7px; padding-bottom: 7px; } body.dense .conv-preview { display: none; }
@media (max-width: 1200px) { .top-grid { grid-template-columns: 1fr 1fr; } .grid-graph { grid-template-columns: 1fr; } .notif-grid { grid-template-columns: 1fr; } }
.conv-head { flex-wrap: wrap; row-gap: 6px; }
.conv-head .head-tools { flex-basis: 100%; order: 9; margin-top: 0; padding-left: 56px; }
.conv-head .title { min-width: 0; flex: 1; }
.site-line { width: auto; max-width: 100%; }
.warn-strip { max-height: 170px; overflow-y: auto; }
.warn-strip.collapsed .warn-item:nth-of-type(n+2) { display: none; }
.warn-head { display: flex; justify-content: space-between; font-size: 12.5px; color: #9a3412; }
.composer-tabs { flex-wrap: nowrap; overflow-x: auto; }
.ctab { white-space: nowrap; }
.composer-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.graph-svg { stroke: none; fill: none; }
.graph-svg text { stroke: none; fill: var(--ink-2); font-weight: 600; paint-order: stroke; }
.graph-svg circle { stroke-width: 1.5; }

/* ══════════ v2.4: palet pastel per bagian ══════════ */
:root {
  --t-blue: #eef4ff; --t-blue-b: #c7d7fe; --t-blue-i: #3b5bdb;
  --t-green: #ecfdf3; --t-green-b: #b7ebcd; --t-green-i: #2f855a;
  --t-rose: #fff1f3; --t-rose-b: #fecdd6; --t-rose-i: #c0395b;
  --t-amber: #fff8eb; --t-amber-b: #fde3b0; --t-amber-i: #b7791f;
  --t-violet: #f5f3ff; --t-violet-b: #ddd6fe; --t-violet-i: #6d4bd8;
  --t-teal: #ecfbfa; --t-teal-b: #b2ebe5; --t-teal-i: #23807a;
  --t-slate: #f4f6f9; --t-slate-b: #d6dce5; --t-slate-i: #4a5568;
}
.tone-blue { --t: var(--t-blue); --tb: var(--t-blue-b); --ti: var(--t-blue-i); }
.tone-green { --t: var(--t-green); --tb: var(--t-green-b); --ti: var(--t-green-i); }
.tone-rose { --t: var(--t-rose); --tb: var(--t-rose-b); --ti: var(--t-rose-i); }
.tone-amber { --t: var(--t-amber); --tb: var(--t-amber-b); --ti: var(--t-amber-i); }
.tone-violet { --t: var(--t-violet); --tb: var(--t-violet-b); --ti: var(--t-violet-i); }
.tone-teal { --t: var(--t-teal); --tb: var(--t-teal-b); --ti: var(--t-teal-i); }
.tone-slate { --t: var(--t-slate); --tb: var(--t-slate-b); --ti: var(--t-slate-i); }
/* Kartu bagian: garis atas & judul berwarna lembut */
.card[class*="tone-"] { border-color: var(--tb); border-top: 4px solid var(--tb); padding-top: 0; overflow: hidden; }
.card[class*="tone-"] > .card-title { margin: 0 -18px 14px; padding: 12px 18px; background: var(--t); color: var(--ti); border-bottom: 1px solid var(--tb); }
.ctx-card[class*="tone-"] { border-color: var(--tb); border-left: 4px solid var(--tb); }
.ctx-card[class*="tone-"] .ctx-title span:first-child { color: var(--ti); }
/* Kartu KPI */
.kpi[class*="tone-"] { background: var(--t); border: 1px solid var(--tb); position: relative; transition: transform .12s, box-shadow .12s; }
.kpi .kpi-top { display: flex; align-items: center; gap: 8px; }
.kpi .kpi-ico { width: 28px; height: 28px; border-radius: 8px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; box-shadow: 0 1px 2px rgba(0,0,0,.05); flex: none; }
.kpi .label { color: var(--ti); flex: 1; }
.kpi .kpi-state { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.kpi.is-good .kpi-state { background: #dcfce7; color: #166534; }
.kpi.is-warn { border-color: #fcd34d; box-shadow: inset 0 0 0 1px #fde68a; }
.kpi.is-warn .kpi-state { background: #fef3c7; color: #92400e; }
.kpi.is-alert { background: #fff1f2; border-color: #fda4af; box-shadow: inset 0 0 0 1px #fecdd3; }
.kpi.is-alert .kpi-state { background: #ffe4e6; color: #be123c; }
.kpi.is-alert .value { color: #be123c; }
.kpi.clickable { cursor: pointer; }
.kpi.clickable:hover, .kpi.clickable:focus { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15,23,42,.08); outline: none; }
.kpi .kpi-more { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: var(--ti); opacity: 0; transition: opacity .12s; }
.kpi.clickable:hover .kpi-more { opacity: 1; }
.mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mini-kpis .kpi .value { font-size: 22px; }
/* Belum dibalas */
.chip-warn b { color: #b45309; }
.noreply-strip { display: flex; gap: 10px; align-items: center; padding: 8px 16px; background: #fff8eb; border-bottom: 1px solid #fde3b0; font-size: 12.5px; color: #92400e; }
.noreply-strip span { flex: 1; }
.noreply-strip.late { background: #fff1f3; border-color: #fecdd6; color: #be123c; }
.pill-noreply { background: #fff8eb; color: #b45309; border: 1px solid #fde3b0; }
/* Panel pengetahuan */
.ctx-search { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; margin-bottom: 8px; font-size: 13px; }
.kbp-item { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; background: #fff; }
.kbp-item summary { cursor: pointer; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.kbp-text { font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; max-height: 180px; overflow: auto; margin: 6px 0; line-height: 1.5; }
.kbp-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tz-pick { max-width: 320px; margin-top: 8px; }
.tz-pick select { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
/* Kartu situs & lain lebih tenang */
.site-card { background: linear-gradient(180deg, color-mix(in srgb, var(--site) 7%, #fff), #fff 60%); }
.sc-big div { background: #fff; border: 1px solid var(--line-2); }
.page-head h2 { letter-spacing: -.01em; }

/* ═══════════ v2.5 ═══════════ */
.view-page > *, .site-editor > * { flex-shrink: 0; }
.conv-head .head-actions { flex-basis: 100%; order: 8; padding-left: 56px; }
.heat.need .hc { aspect-ratio: auto; height: 22px; }
/* Area chat tengah: berbingkai, setiap pesan berupa kartu dengan garis tegas */
.conversation { padding: 10px; }
.conv-pane { background: #fff; border: 2px solid #c9d3e3; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(15,23,42,.06); }
.conv-head { border-bottom: 2px solid #e2e8f0; background: linear-gradient(#fff, #fbfcfe); }
.messages { background: #f6f8fb; gap: 14px; }
.msg .bubble { box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.msg.visitor .bubble { border: 1.5px solid #b8c4d6; border-left: 5px solid #64748b; background: #fff; }
.msg.ai .bubble { border: 1.5px solid #c4b5fd; border-right: 5px solid #7c5cf0; }
.msg.agent .bubble { border: 1.5px solid #3b4fd8; border-right: 5px solid #1e2fa6; }
.msg.k-assist .bubble { border: 1.5px dashed #a78bfa; border-right: 5px solid #8b5cf6; }
.msg.k-whisper .bubble { border: 1.5px dashed #22b8cf; border-right: 5px solid #0e9fb6; }
.msg.note .bubble { border: 1.5px dashed #e3b341; border-left: 5px solid #d69e2e; }
.msg .who { font-size: 12px; color: #475569; }
.msg.system { border: 1px solid #e2e8f0; background: #fff; }
.composer { border-top: 2px solid #e2e8f0; }
.conv-item { border-left: 3px solid transparent; }
.conv-item.needs-human { border-left-color: var(--alert); }

/* Tombol aksi: besar, berlabel, warnanya membedakan risiko */
.act { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 2px solid transparent; white-space: nowrap; transition: filter .12s, transform .05s; }
.act:active { transform: translateY(1px); }
.act:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.act-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.act-primary { background: #2f4de0; color: #fff; border-color: #2440c4; }
.act-primary:hover { filter: brightness(1.08); }
.act-blue { background: #eef3ff; color: #2440c4; border-color: #9db1f5; }
.act-neutral { background: #fff; color: #334155; border-color: #cbd5e1; }
.act-neutral:hover, .act-blue:hover { background: #f1f5f9; }
.act-violet { background: #f5f3ff; color: #5b3fc4; border-color: #c4b5fd; }
.act-danger { background: #fff; color: #c22d4d; border-color: #f19aac; }
.act-danger:hover { background: #fff1f3; }
.act-danger-soft { background: #fff5f6; color: #b4233f; border-color: #f7c1cc; }
.act-panic { background: #fff4e5; color: #b45309; border-color: #f6b25b; }
.act-panic:hover { background: #ffe9cc; }
.act-sep { width: 1px; align-self: stretch; background: #e2e8f0; margin: 2px 4px; }
.head-actions { flex-wrap: wrap; gap: 8px; align-items: center; }
.head-tools .mini-select { height: 30px; border: 2px solid #cbd5e1; border-radius: 9px; font-weight: 600; }

/* FRT */
.frt-chip { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; border: 1.5px solid; font-variant-numeric: tabular-nums; }
.frt-chip.ok { background: #ecfdf3; color: #237a4b; border-color: #a7e3c0; }
.frt-chip.warn { background: #fff8eb; color: #a8650b; border-color: #f6cf86; }
.frt-chip.late { background: #fff1f3; color: #c0284b; border-color: #f7a6b7; animation: frtpulse 1.6s infinite; }
@keyframes frtpulse { 50% { box-shadow: 0 0 0 4px rgba(225,29,72,.15); } }
.frt-banner { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; width: 100%; font-size: 13.5px; }
.frt-banner b { font-size: 16px; font-variant-numeric: tabular-nums; }
.frt-banner small { flex-basis: 100%; color: #64748b; }
.frt-banner.late b { color: #c0284b; } .frt-banner.warn b { color: #a8650b; } .frt-banner.ok b { color: #237a4b; }

/* Peringatan operasional */
.ops-strip { margin: 10px 12px 0; border: 2px solid #f6cf86; background: #fff8eb; border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.ops-strip.critical { border-color: #f19aac; background: #fff1f3; }
.ops-head { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; }
.ops-item { display: grid; grid-template-columns: 10px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; text-align: left; background: #fff; border: 1px solid #f3dfb8; border-radius: 8px; padding: 5px 8px; font: inherit; font-size: 12.5px; cursor: pointer; }
.ops-item .site-dot { grid-row: span 2; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--site); }
.ops-item b { grid-row: 1 / span 2; grid-column: 3; align-self: center; color: #b45309; }
.ops-item.critical b { color: #c0284b; } .ops-item.done { opacity: .55; } .ops-item.done b { color: #237a4b; }
.ops-item .muted { grid-column: 2; font-size: 11.5px; }

/* Cek tautan sebelum kirim */
.link-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid; font-size: 12.5px; }
.link-row code { word-break: break-all; font-size: 12px; }
.link-row.green { background: #ecfdf3; border-color: #a7e3c0; color: #237a4b; }
.link-row.amber { background: #fff8eb; border-color: #f6cf86; color: #a8650b; }
.link-row.rose { background: #fff1f3; border-color: #f7a6b7; color: #c0284b; }
small.alert { color: #c0284b; }

/* Chat tim */
.team-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #2440c4; background: #2f4de0; color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(47,77,224,.3); }
.team-fab i { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: #e11d48; color: #fff; font-style: normal; font-size: 11px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.team-panel { position: fixed; right: 18px; bottom: 72px; z-index: 61; width: 360px; height: min(560px, 75vh); background: #fff; border: 2px solid #c9d3e3; border-radius: 14px; box-shadow: 0 20px 50px rgba(15,23,42,.25); display: flex; flex-direction: column; overflow: hidden; }
.tp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 2px solid #e2e8f0; background: #f8fafc; }
.tp-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.tp-room { display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font: inherit; cursor: pointer; position: relative; }
.tp-room:hover { border-color: #9db1f5; background: #f7f9ff; }
.tp-room.group { border-color: #c4b5fd; background: #faf8ff; }
.tp-room span:not(.dot):not(.ava-txt) { display: flex; flex-direction: column; min-width: 0; }
.tp-room small { color: #64748b; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-unread { margin-left: auto; background: #e11d48; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.tp-compose { border-top: 2px solid #e2e8f0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.tp-compose input#tp-input { flex: 1; height: 36px; border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 0 10px; font: inherit; }
.team-msg { display: flex; gap: 8px; align-items: flex-start; }
.team-msg.mine { flex-direction: row-reverse; }
.team-msg .who { font-size: 11px; color: #64748b; }
.team-msg .bubble { background: #f1f5f9; border: 1.5px solid #dbe2ec; border-radius: 10px; padding: 7px 10px; font-size: 13px; white-space: pre-wrap; }
.team-msg.mine .bubble { background: #eef3ff; border-color: #b9c8f7; }
.team-msg.panic .bubble { background: #fff4e5; border-color: #f6b25b; color: #8a4a06; font-weight: 700; }
.panic-toast { position: fixed; top: 16px; right: 16px; z-index: 80; width: 340px; background: #fff4e5; border: 2px solid #f6b25b; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 12px 30px rgba(180,83,9,.25); animation: frtpulse 1.6s 3; }
.panic-toast div { display: flex; gap: 6px; }

/* Layar terbelah */
.view-inbox.split-on .context { display: none !important; }
.split-pane { width: 46%; min-width: 420px; display: flex; flex-direction: column; border-left: 2px solid #c9d3e3; background: #eef2f7; }
.split-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #fff; border-bottom: 2px solid #e2e8f0; }
.split-pane iframe { flex: 1; border: 0; width: 100%; }
body.split-child .team-fab, body.split-child .context { display: none !important; }

/* Statistik & analitik */
#chart-daily rect.day-bar { cursor: pointer; } #chart-daily rect.day-bar:hover { fill: #93b4f5; }
#chart-daily rect:not(.day-bar) { pointer-events: none; }
.kpis.small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpis.small .kpi { padding: 10px 12px; } .kpis.small .kpi .value { font-size: 22px; }
.modal-card.wide { width: min(980px, 100%); max-height: 92vh; overflow-y: auto; }
.hours-bars.tall { height: 150px; }
.legend-inline .lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 3px 0 8px; } .lg.ok { background: #a5b4fc; } .lg.bad { background: var(--alert); }
.heat.need .hc { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #1e293b; background: rgba(16,185,129,var(--a)); }
.heat.need .hc.short { outline: 2px solid #e11d48; outline-offset: -2px; }
.callout { border: 1.5px solid; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.callout small { color: #475569; } .callout.amber { background: #fff8eb; border-color: #f6cf86; } .callout.green { background: #ecfdf3; border-color: #a7e3c0; }
.seg.small button { height: 26px; font-size: 11.5px; padding: 0 8px; }
.tips { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.tips li { padding: 8px 10px; border-radius: 8px; border: 1.5px solid; font-size: 13px; }
.tips li.good { background: #ecfdf3; border-color: #a7e3c0; } .tips li.warn { background: #fff8eb; border-color: #f6cf86; } .tips li.alert { background: #fff1f3; border-color: #f7a6b7; }
.set-h { margin: 18px 0 8px; font-size: 14px; color: #334155; }
.check-inline { display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; }

/* Editor situs: pratinjau widget & persona */
.wg-preview { background: repeating-linear-gradient(45deg, #f8fafc 0 10px, #f1f5f9 10px 20px); border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.wgp { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; } .wgp.left { align-items: flex-start; }
.wgp-panel { width: 300px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,.15); }
.wgp-hero { padding: 14px 16px 16px; } .wgp-hero h4 { margin: 8px 0 2px; font-size: 18px; } .wgp-hero p { margin: 0; font-size: 12.5px; opacity: .92; }
.wgp-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .wgp-top img, .wgp-top span { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.25); display: grid; place-items: center; object-fit: cover; }
.wgp-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #f8fafc; }
.wgp-msg { font-size: 12.5px; padding: 8px 10px; border-radius: 12px; max-width: 85%; } .wgp-msg.ai { background: #fff; border: 1px solid #e2e8f0; } .wgp-msg.me { align-self: flex-end; color: #fff; }
.wgp-msg i { font-style: normal; font-size: 10px; background: #ede9fe; color: #6d28d9; border-radius: 4px; padding: 0 4px; }
.wgp-queue { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; } .wgp-queue i { height: 6px; width: 55%; border-radius: 6px; }
.wgp-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; }
.persona-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.persona-main { flex: 1; min-width: 0; }
.media-prev.sm { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ede9fe; font-weight: 800; overflow: hidden; }
.media-prev.sm img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1280px) { .split-pane { min-width: 360px; } .kpis.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* v2.5.1 SOS */
.act-sos { background: #e8402f; color: #fff; border-color: #c22d1d; }
.act-sos:hover { filter: brightness(1.08); }
.sos-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.sos-mine { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 6px; }
.sos-row { display: flex; gap: 10px; align-items: center; background: #fff4e5; border: 2px solid #f6b25b; border-radius: 12px; padding: 8px 12px; box-shadow: 0 10px 30px rgba(180,83,9,.2); font-size: 13.5px; }
.sos-row.ok { background: #ecfdf3; border-color: #a7e3c0; }
.panic-toast small { color: #8a4a06; }

/* ── v2.6: onboarding, QA, insentif, playbook, canned ── */
.pill-green { background: var(--t-green); color: var(--t-green-i); } .pill-amber { background: var(--t-amber); color: var(--t-amber-i); }
.pill-rose { background: var(--t-rose); color: var(--t-rose-i); } .pill-violet { background: var(--t-violet); color: var(--t-violet-i); }
.pill-muted { background: var(--line-2); color: var(--faint); }
.card-title .seg-sm, .card-title .spacer { font-weight: 400; }
.card-title:has(.spacer), .card-title:has(.seg-sm) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-sm button { padding: 3px 9px; font-size: 12px; }
.ob-hero { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding-top: 18px !important; border-top-width: 6px !important; }
.ob-hero h3 { font-size: 22px; margin: 2px 0 6px; color: var(--ti); }
.ob-hero-side { display: flex; gap: 22px; } .ob-hero-side > div { display: flex; flex-direction: column; } .ob-hero-side b { font-size: 18px; }
.ob-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ob-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ob-step:last-child { border-bottom: 0; }
.ob-step > i { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; color: #fff; }
.ob-step.done > i { background: var(--ok); border-color: var(--ok); }
.ob-step > div { flex: 1; display: flex; flex-direction: column; gap: 2px; } .ob-step small { color: var(--muted); }
.ob-step.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.ob-nexts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-next { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.ob-next.ready { border-color: var(--t-green-b); background: var(--t-green); } .ob-next.done { border-color: var(--t-violet-b); background: var(--t-violet); }
.ob-next small { color: var(--muted); }
.ob-diffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 10px; }
.ob-diff { display: flex; flex-direction: column; gap: 8px; } .ob-diff > .pill { align-self: flex-start; }
.ob-sc { display: flex; align-items: center; gap: 10px; justify-content: space-between; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; }
.ob-sc > div { display: flex; flex-direction: column; } .ob-sc small { color: var(--muted); }
.ob-mini { display: flex; flex-direction: column; margin-bottom: 8px; }
.mini-bar { height: 6px; border-radius: 6px; background: var(--line-2); width: 110px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.mini-bar i { display: block; height: 100%; background: var(--brand); }
.modal-card.modal-wide { width: min(1040px, 100%); }
.qz-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qz-list { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow: auto; padding-right: 4px; }
.qz { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.qz.right { border-color: var(--t-green-b); background: var(--t-green); } .qz.wrong { border-color: var(--t-rose-b); background: var(--t-rose); }
.qz small { color: var(--ink-2); }
.qz-opt { display: flex; gap: 8px; align-items: flex-start; padding: 4px 6px; border-radius: 6px; cursor: pointer; } .qz-opt:hover { background: var(--line-2); }
.qz-score { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--t-rose); }
.qz-score.ok { background: var(--t-green); } .qz-score b { font-size: 34px; }
.pb-list { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; } .pb-list li span { display: block; color: var(--muted); }
.rb-bars, .rb-scores { display: flex; flex-direction: column; gap: 8px; }
.rb-bars > div { display: grid; grid-template-columns: 200px 1fr 44px; gap: 10px; align-items: center; }
.rb-bars i { height: 8px; border-radius: 8px; background: var(--brand); display: block; }
.rb-scores > div { display: grid; grid-template-columns: 180px 1fr 40px; gap: 4px 10px; align-items: center; }
.rb-scores > div > i { height: 9px; border-radius: 9px; background: var(--line-2); overflow: hidden; display: block; }
.rb-scores em { display: block; height: 100%; } .rb-scores em.ok { background: var(--ok); } .rb-scores em.mid { background: var(--warn); } .rb-scores em.low { background: var(--alert); }
.rb-scores small { grid-column: 1 / -1; color: var(--muted); margin-top: -2px; }
.sim { display: grid; grid-template-columns: 1fr 240px; gap: 16px; }
.sim-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sim-goal { background: var(--line-2); padding: 6px 10px; border-radius: 8px; }
.sim-chat { height: 46vh; min-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.sim-chat-ro { height: auto; max-height: 50vh; }
.sim-msg { max-width: 78%; display: flex; flex-direction: column; gap: 2px; }
.sim-msg small { color: var(--muted); font-size: 11px; }
.sim-msg > div { padding: 8px 11px; border-radius: 12px; background: #fff; border: 1px solid var(--line); white-space: pre-wrap; line-height: 1.45; }
.sim-msg.a { align-self: flex-end; } .sim-msg.a > div { background: var(--brand); color: #fff; border-color: var(--brand); } .sim-msg.a small { text-align: right; }
.sim-typing { color: var(--muted); font-size: 12.5px; font-style: italic; }
.sim-compose { display: flex; gap: 8px; } .sim-compose textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; resize: none; }
.sim-side { border-left: 1px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.sim-side ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; } .sim-side ol small { display: block; color: var(--muted); }
.sim-clock { font-variant-numeric: tabular-nums; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--t-green); color: var(--t-green-i); }
.sim-clock.warn { background: var(--t-amber); color: var(--t-amber-i); } .sim-clock.late { background: var(--t-rose); color: var(--t-rose-i); }
.sim-score { display: flex; align-items: baseline; gap: 6px; } .sim-score b { font-size: 46px; line-height: 1; } .sim-score small { margin-left: 12px; color: var(--muted); }
.sh-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.sh-item { text-align: left; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; } .sh-item:hover { border-color: var(--brand); }
.sh-item small { color: var(--muted); }
.sh-view { height: 52vh; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.qa-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.qa-row { display: grid; grid-template-columns: 1fr 140px 56px; gap: 8px; align-items: center; padding: 6px 0; }
.rb-row, .pb-row { margin-bottom: 6px; } .pb-row { display: grid; grid-template-columns: 140px 1.4fr 1fr; gap: 8px; }
.rb-row input, .pb-row input { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.error { color: var(--alert); }
.inc-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.inc-goal { border: 1.5px solid var(--tb); background: var(--t); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.inc-goal-top { display: flex; justify-content: space-between; gap: 8px; } .inc-goal-top b { color: var(--ti); } .inc-goal-top span { font-weight: 800; font-size: 20px; color: var(--ti); }
.inc-bar { height: 10px; border-radius: 10px; background: #fff; overflow: hidden; border: 1px solid var(--tb); } .inc-bar i { display: block; height: 100%; background: var(--ti); }
.inc-goal small { color: var(--ink-2); }
.pb-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 16px; border-top: 1px solid var(--line); background: #fbfcfe; font-size: 12px; }
.pb-strip > i { color: var(--faint); font-style: normal; }
.pb-lbl { font-weight: 700; color: var(--muted); margin-right: 2px; }
.pb-chip { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: help; }
.pb-chip.done { background: var(--t-green); border-color: var(--t-green-b); color: var(--t-green-i); font-weight: 600; }
.pb-warn { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--t-amber); color: var(--t-amber-i); font-weight: 600; }
.adapt-pill { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--ai); background: var(--ai-50); border: 1px solid #ddd6fe; border-radius: 999px; padding: 3px 10px; margin-bottom: 4px; }
.var-row { margin-bottom: 6px; } .var-row textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 9px; }
pre.code { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }
code.break { word-break: break-all; }
ul.plain { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .sim, .qa-grid { grid-template-columns: 1fr; } .sim-side { border-left: 0; padding-left: 0; } .ob-nexts { grid-template-columns: 1fr; } .pb-row { grid-template-columns: 1fr; } }
.sim-msg.sys { align-self: center; max-width: 90%; } .sim-msg.sys > div { background: var(--line-2); border-color: var(--line); color: var(--muted); font-size: 12.5px; } .sim-msg.sys small { text-align: center; }

/* ── v2.7: materi, contoh, kualitas, pembinaan, komisi per produk ── */
.ob-hero { position: relative; }
.pt-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.pt { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pt.done { background: var(--t-green); border-color: var(--t-green-b); } .pt small { color: var(--muted); } .pt span { font-weight: 800; font-size: 18px; }
.mod { display: grid; grid-template-columns: 240px 1fr; gap: 16px; min-height: 55vh; }
.mod-nav { display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); padding-right: 12px; }
.mod-tab { text-align: left; display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1.5px solid transparent; font-weight: 600; color: var(--ink-2); }
.mod-tab i { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--line-2); }
.mod-tab.read i { background: var(--ok); color: #fff; } .mod-tab.on { border-color: var(--brand); color: var(--brand); background: #fff; }
.mod-body { max-height: 62vh; overflow: auto; padding-right: 6px; line-height: 1.6; }
.mod-body h3 { margin: 0 0 8px; } .mod-body h4 { margin: 16px 0 6px; } .mod-body ul, .mod-body ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.kb-site { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; } .kb-site > summary { font-weight: 700; cursor: pointer; }
.kb-item { margin: 6px 0 0 10px; } .kb-item summary { cursor: pointer; } .kb-item p { color: var(--muted); font-size: 13px; margin: 4px 0; }
.ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .ex-cols h4 { margin: 0 0 6px; }
.ex-item { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; margin-bottom: 8px; }
.ex-item.good { border-left: 5px solid var(--ok); } .ex-item.bad { border-left: 5px solid var(--alert); } .ex-item small { color: var(--muted); } .ex-item .pill { align-self: flex-start; }
.ex-note.good { background: var(--t-green); border-color: var(--t-green-b); } .ex-note.bad { background: var(--t-rose); border-color: var(--t-rose-b); }
.q-card { display: flex; flex-direction: column; gap: 12px; } .q-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.q-head h3 { font-size: 22px; margin: 2px 0 6px; color: var(--ti); }
.q-bars { display: flex; flex-direction: column; gap: 6px; } .q-bars > div { display: grid; grid-template-columns: 150px 1fr 32px; gap: 8px; align-items: center; font-size: 13px; }
.q-bars i { height: 8px; border-radius: 8px; background: #fff; overflow: hidden; display: block; } .q-bars em { display: block; height: 100%; }
.q-bars em.ok { background: var(--ok); } .q-bars em.mid { background: var(--warn); } .q-bars em.low { background: var(--alert); }
.q-plan, .q-rec { background: #fff; border-radius: 10px; padding: 10px 12px; border: 1px solid var(--tb); display: flex; flex-direction: column; gap: 4px; }
.q-rec-row, .q-plan-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px dashed var(--line); } .q-rec-row:last-child, .q-plan-row:last-child { border-bottom: 0; }
.q-rec-row > span:nth-child(2), .q-plan-row > span:nth-child(2) { flex: 1; min-width: 200px; }
.q-admin { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.rec-box { background: var(--t-amber); border-color: var(--t-amber-b); }
.sp-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; } .sp-form textarea, .sp-form select, .q-admin input, .q-admin select { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 9px; }
small.rec { display: block; color: var(--t-amber-i); font-weight: 600; }
.ex-mark { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.ex-mark input { flex: 1; min-width: 240px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.inc-bd { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; font-size: 11.5px; } .inc-bd .yes { color: var(--t-green-i); } .inc-bd .no { color: var(--faint); }
.cr-table input, .cr-table select { border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 8px; width: 100%; }
@media (max-width: 860px) { .mod, .q-head, .ex-cols, .pt-steps { grid-template-columns: 1fr; } .mod-nav { border-right: 0; } }
