/* Resolve console. Builds on resolve.css tokens. */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; background: var(--ink); color: var(--cream-on-ink); }
.side :focus-visible { outline-color: #FF9EC0; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px; }
.side-brand span { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-size: 14.5px; font-weight: 500; color: rgba(251,243,234,.72); transition: background-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.side-nav a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .side-nav a:hover { background: rgba(251,243,234,.07); color: #fff; } }
.side-nav a[aria-current='page'] { background: rgba(251,243,234,.12); color: #fff; }
.side-nav a[aria-current='page'] svg { color: #FF9EC0; }
.side-badge { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.side-foot { margin-top: auto; display: grid; gap: 16px; padding: 0 4px; }
.side-org { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(251,243,234,.06); font-size: 13.5px; font-weight: 600; }
.side-muted { color: rgba(251,243,234,.62); font-size: 12px; font-weight: 400; }
.org-dot { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #F7C35B; color: var(--ink); font-size: 12px; font-weight: 800; }
.side-db { padding-left: 8px; color: rgba(251,243,234,.75); }

/* Main */
.main { min-width: 0; padding: 18px clamp(16px, 2.4vw, 32px) 28px; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--wait-soft); color: var(--wait); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.demo-bar svg { flex: none; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.top-kicker { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.top-title { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.05; letter-spacing: -.03em; }
.view-lede { color: var(--muted); max-width: 70ch; margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:active { transform: none; }
.btn-ok { background: var(--ok); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn-ok:not([disabled]):hover { background: #096644; } }
.btn-quiet { color: var(--muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.icon-btn:active { transform: scale(.94); }
.p-team { background: #ECE8F4; color: var(--ink-2); }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* Inbox — list · thread · order */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 300px; gap: 12px; height: max(640px, calc(100vh - 190px)); }
.col-list, .col-thread { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.col-list { padding: 12px 10px 0; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin: 0 2px; border-radius: 999px; background: var(--bg); border: 1.5px solid transparent; color: var(--muted); transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29,20,51,.06); }
.search input { border: 0; outline: 0; background: none; width: 100%; font-size: 14px; color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 2px 0; }
.fchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.fchip b { font-weight: 600; color: var(--muted); }
.fchip[aria-pressed='true'] { background: var(--ink); color: #fff; }
.fchip[aria-pressed='true'] b { color: rgba(255,255,255,.72); }
.chfilters { display: flex; gap: 6px; margin: 8px 2px 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chfilters::-webkit-scrollbar { display: none; }
.cchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--ink-2); transition: border-color var(--t-fast) ease; }
.cchip.ch-web svg { color: var(--ch-web); } .cchip.ch-email svg { color: var(--ch-email); } .cchip.ch-wa svg { color: var(--ch-wa); }
.cchip.ch-web, .cchip.ch-email, .cchip.ch-wa { background: var(--surface); }
.cchip[aria-pressed='true'] { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .fchip:hover { background: var(--bg-2); } .fchip[aria-pressed='true']:hover { background: var(--plum); } .cchip:hover { border-color: var(--ink-2); } }
.convs { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -10px; padding: 4px 8px 10px; border-top: 1px solid var(--line); }
.conv { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 11px 10px; border-radius: 16px; text-align: left; transition: background-color var(--t-fast) ease; }
.conv[aria-current='true'] { background: var(--pink-soft); }
@media (hover: hover) and (pointer: fine) { .conv:not([aria-current='true']):hover { background: var(--bg); } }
.conv-main { min-width: 0; display: grid; gap: 3px; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; }
.conv-name { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.conv-time { font-size: 11px; color: var(--muted); }
.conv-prev { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; }
.conv-tags .pill { height: 21px; font-size: 11px; padding: 0 8px; }
.ch-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.ch-tag.ch-web, .ch-tag.ch-email, .ch-tag.ch-wa { background: none; }
.ch-tag.ch-web svg { color: var(--ch-web); } .ch-tag.ch-email svg { color: var(--ch-email); } .ch-tag.ch-wa svg { color: var(--ch-wa); }

.th-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.th-top .back { display: none; }
.th-who { flex: 1; min-width: 0; }
.th-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; }
.th-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--muted); }
.th-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; background: radial-gradient(circle at 1px 1px, rgba(29,20,51,.05) 1px, transparent 0) 0 0 / 16px 16px; }
.summary { border-radius: 18px; border: 1.5px solid #F5B8CE; background: #FFF4F8; padding: 14px 16px; margin-bottom: 16px; }
.sum-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.summary ul { display: grid; gap: 5px; margin-top: 10px; }
.summary li { position: relative; padding-left: 15px; font-size: 14px; }
.summary li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.sum-next { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #F5B8CE; font-size: 14px; }
.sum-next b { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--pink-deep); }
.subject { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.subject b { color: var(--ink); }
.msgs { display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 78%; }
.msg-c { align-self: flex-start; }
.msg-r, .msg-h { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 10px 14px; border-radius: 20px; font-size: 14.5px; line-height: 1.5; }
.msg-c .bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-r .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg-h .bubble { background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.bubble [lang='hi'] { font-size: 15px; }
.gloss { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.2); font-size: 12.5px; font-style: italic; opacity: .82; }
.msg-who { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.msg-time { font-size: 10.5px; color: var(--muted); }
.photo { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 13px; }
.photo em { grid-column: 2; font-style: normal; font-size: 11.5px; color: var(--muted); }
.ev { align-self: center; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); text-align: left; }
.ev svg { flex: none; }
.ev-ok svg { color: var(--ok); }
.ev-warn { border-color: #F5B8CE; }
.ev-warn svg { color: var(--human); }

.actions { border-top: 1px solid var(--line); padding: 12px 14px 12px; display: grid; gap: 10px; background: #FFFCF9; }
.act-row { display: flex; flex-wrap: wrap; gap: 8px; }
.credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.credit label { font-size: 13px; font-weight: 600; }
.credit .hint { flex-basis: 100%; order: 5; }
.money { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.money:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29,20,51,.06); }
.money span { color: var(--muted); font-weight: 600; }
.money input { width: 96px; border: 0; outline: 0; background: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 42px; max-height: 120px; resize: vertical; padding: 10px 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 14px; outline: 0; transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
.composer textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(29,20,51,.06); }
.composer .btn { height: 42px; }
.act-note { font-size: 12px; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }

.col-order { min-height: 0; overflow-y: auto; display: grid; gap: 12px; align-content: start; }
.o-card { padding: 16px; }
.o-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.o-h { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.o-h .mono { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--pink-deep); margin-left: 4px; }
.o-items { display: grid; gap: 10px; margin-top: 12px; }
.o-items li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.o-items li p:first-child { font-weight: 600; line-height: 1.3; }
.o-sw { width: 34px; height: 42px; border-radius: 10px; background: linear-gradient(160deg, #F6C9D9, #D9CCF5); }
.o-items li:nth-child(2) .o-sw { background: linear-gradient(160deg, #FBE3B5, #F4C0A6); }
.o-kv { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px; }
.o-kv p { display: flex; justify-content: space-between; gap: 12px; }
.o-kv span { color: var(--muted); }
.o-kv b { text-align: right; font-weight: 600; }
.o-kv b.cod { color: var(--wait); }
.o-status { margin-top: 6px; font-weight: 700; font-size: 14px; }
.tl { position: relative; display: grid; gap: 0; margin-top: 10px; }
.tl li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 0 0 12px 24px; font-size: 13px; color: var(--muted); }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ''; position: absolute; left: 3px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--line-2); background: var(--surface); box-sizing: border-box; z-index: 1; }
.tl li::after { content: ''; position: absolute; left: 7.5px; top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl li[data-done] { color: var(--ink-2); }
.tl li[data-done]::before { border-color: var(--pink); background: var(--pink); }
.tl li[data-done]::after { background: var(--pink); }
.tl li[data-now] { color: var(--ink); font-weight: 700; }
.tl li[data-now]::before { border-color: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.tl em { font-style: normal; font-size: 11.5px; font-weight: 400; }
.o-eta { margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-size: 13px; font-weight: 600; }
.o-pol { margin-top: 6px; color: var(--ink-2); }
.o-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--pink-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Policies */
.pol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
fieldset.card { margin: 0; display: grid; gap: 14px; }
.card-h { font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 0; margin-bottom: 2px; }
fieldset.card { min-inline-size: 0; }
fieldset.card > .card-h { float: left; width: 100%; }
fieldset.card > .card-h + * { clear: both; }
.field { display: grid; gap: 6px; }
.field > label { font-size: 13.5px; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; background: var(--bg); font-size: 18px; font-weight: 600; transition: background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out); }
.stepper button:active { transform: scale(.92); }
@media (hover: hover) and (pointer: fine) { .stepper button:hover { background: var(--bg-2); } }
.stepper input { width: 60px; height: 38px; text-align: center; border-radius: 12px; border: 1.5px solid var(--line-2); font-weight: 700; font-variant-numeric: tabular-nums; outline: 0; }
.stepper input:focus { border-color: var(--ink); }
.stepper span { font-size: 13px; color: var(--muted); }
.select { height: 40px; border-radius: 12px; border: 1.5px solid var(--line-2); padding: 0 10px; background: var(--surface); font-size: 14px; max-width: 100%; }
.toggle, .check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tg { flex: none; position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); transition: background-color var(--t-fast) ease; }
.tg::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(29,20,51,.3); transition: transform var(--t-ui) var(--ease-out); }
.toggle input:checked + .tg { background: var(--pink); }
.toggle input:checked + .tg::after { transform: translateX(16px); }
.toggle input:focus-visible + .tg { outline: 2px solid var(--pink); outline-offset: 3px; }
.check span::before { content: ''; display: inline-block; vertical-align: -4px; width: 18px; height: 18px; margin-right: 10px; border-radius: 6px; border: 2px solid var(--line-2); background: var(--surface) center / 14px no-repeat; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.check input:checked + span::before { background-color: var(--pink); border-color: var(--pink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.5 7.2 2.3 2.3 4.7-4.9' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible + span::before { outline: 2px solid var(--pink); outline-offset: 2px; }
.check.is-off { cursor: default; color: var(--muted); }
.check em { font-style: normal; font-size: 12px; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--bg); }
.card-preview { grid-column: 3; grid-row: 2 / span 2; }
.previews { display: grid; gap: 8px; margin-top: 12px; }
.previews li > p { min-width: 0; }
.previews li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--bg); font-size: 14px; }
.previews .pill { white-space: normal; height: auto; min-height: 24px; padding: 3px 10px; }
.pol-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 12px 14px 12px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(29,20,51,.4); }
.pol-state { font-size: 14px; color: var(--ok); font-weight: 600; }
.pol-state[data-dirty] { color: var(--wait); }
.pol-btns { display: flex; gap: 8px; }

/* Reports */
.sample-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13.5px; color: var(--muted); }
.sample-tag .mono { padding: 3px 10px; border-radius: 999px; background: var(--wait-soft); color: var(--wait); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; display: grid; gap: 2px; border-top: 4px solid var(--ink); }
.kpi-ok { border-top-color: var(--ok); } .kpi-human { border-top-color: var(--pink); } .kpi-wait { border-top-color: #E0A43A; }
.kpi p { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.rep-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.box-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; max-width: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-ok { background: var(--ok); } .lg-human { background: var(--pink); }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; height: 300px; padding-bottom: 26px; }
.col { position: relative; display: flex; flex-direction: column; justify-content: flex-end; outline-offset: 4px; }
.stack { display: flex; flex-direction: column-reverse; gap: 3px; height: 100%; justify-content: flex-start; }
.stack i { display: block; height: calc(var(--h) * 100%); border-radius: 8px; transform-origin: bottom; transition: transform 800ms var(--ease-out); }
.s-ok { background: var(--ok); }
.s-human { background: var(--pink); }
.stack { flex-direction: column; justify-content: flex-end; }
.grow .stack i { transform: scaleY(0); }
.grow.grown .stack i { transform: none; }
.col:nth-child(2) i { transition-delay: 40ms; } .col:nth-child(3) i { transition-delay: 80ms; } .col:nth-child(4) i { transition-delay: 120ms; } .col:nth-child(5) i { transition-delay: 160ms; } .col:nth-child(6) i { transition-delay: 200ms; } .col:nth-child(7) i { transition-delay: 240ms; }
.col-l { position: absolute; bottom: -24px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.tip { position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 2; transform: translate(-50%, 4px); opacity: 0; pointer-events: none; white-space: nowrap; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; transition: opacity 150ms ease, transform 150ms var(--ease-out); }
.col:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) { .col:hover .tip { opacity: 1; transform: translate(-50%, 0); } }
.col:first-child .tip { left: 0; transform: translate(0, 4px); }
.col:last-child .tip { left: auto; right: 0; transform: translate(0, 4px); }
.col:first-child:focus-visible .tip, .col:last-child:focus-visible .tip { transform: none; }
@media (hover: hover) and (pointer: fine) { .col:first-child:hover .tip, .col:last-child:hover .tip { transform: none; } }
.hbars { display: grid; gap: 12px; }
.hb-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 5px; }
.hb { display: block; height: 10px; border-radius: 10px; background: var(--bg); overflow: hidden; }
.hb i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 10px; background: var(--ink); transform-origin: left; transition: transform 800ms var(--ease-out); }
.hbars-human .hb i { background: var(--pink); }
.grow .hb i { transform: scaleX(0); }
.grow.grown .hb i { transform: none; }
.splits { display: grid; gap: 22px; }
.split-h { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.split-bar { display: flex; gap: 3px; height: 14px; }
.split-bar i { border-radius: 6px; }
.split-l { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.split-l li { display: inline-flex; align-items: center; gap: 6px; }
.split-l i { width: 10px; height: 10px; border-radius: 3px; }
.split-l b { font-weight: 600; color: var(--muted); }
.k-wa { background: var(--ch-wa); } .k-web { background: var(--ch-web); } .k-email { background: var(--ch-email); }
.k-en { background: var(--ink); } .k-hg { background: var(--pink); } .k-hi { background: #E0A43A; }

.foot-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: 12.5px; color: var(--muted); text-align: center; }

.toasts { bottom: 20px; }

/* Responsive */
@media (max-width: 1320px) {
  .inbox { grid-template-columns: 300px minmax(0, 1fr); height: auto; }
  .col-list, .col-thread { height: max(620px, calc(100vh - 190px)); }
  .col-order { grid-column: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .pol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-preview { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 1100px) {
  .col-order { grid-column: 1 / -1; }
  .rep-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  body.app { grid-template-columns: minmax(0, 1fr); padding-bottom: 76px; }
  .side { position: fixed; z-index: 60; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -20px rgba(29,20,51,.6); }
  .side-brand, .side-foot { display: none; }
  .side-nav { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .side-nav a { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 12px; }
  .side-badge { position: absolute; top: 3px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 17px; font-size: 10px; }
  .main { padding-top: 12px; }
  .top-title { font-size: 32px; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .col-list, .col-thread { height: auto; }
  .inbox[data-mode='list'] .col-thread, .inbox[data-mode='list'] .col-order { display: none; }
  .inbox[data-mode='thread'] .col-list { display: none; }
  .col-order { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .convs { overflow: visible; }
  .th-top { padding: 10px 12px; gap: 10px; position: sticky; top: 0; z-index: 3; background: var(--surface); border-radius: 22px 22px 0 0; }
  .th-top .back { display: grid; margin-left: -4px; }
  .th-top .av { display: none; }
  .th-top [data-th-pill] { display: none; }
  .th-scroll { overflow: visible; padding: 14px 12px; }
  .msg { max-width: 88%; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .pol-grid { grid-template-columns: minmax(0, 1fr); }
  .card-preview { grid-column: auto; }
  .pol-bar { bottom: 84px; }
  .toasts { bottom: 88px; left: 12px; right: 12px; }
  .toast { max-width: none; }
}
@media (max-width: 560px) {
  .demo-bar { font-size: 12px; align-items: flex-start; }
  .kpi b { font-size: 32px; }
  .kpi { padding: 14px; }
  .chart { gap: 6px; height: 200px; }
  .col-l { font-size: 10px; }
  .act-row .btn { flex: 1 1 auto; }
  .pol-bar { padding: 10px; }
  .pol-btns { width: 100%; }
  .pol-btns .btn { flex: 1; }
  .th-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .grow .stack i, .grow .hb i { transform: none; }
}
