/* AI CallFlow — business workspace & super-admin panel */

/* ============================================================ shell */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.main { display: flex; flex-direction: column; min-width: 0; }
.content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 26px 32px 56px; flex: 1; }
.content-narrow { max-width: 980px; }
@media (max-width: 1200px) { .content { padding: 22px 22px 48px; } }
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .content { padding: 18px 16px 40px; }
}

/* ============================================================ sidebar */
.sidebar {
  --sb-bg: var(--surface); --sb-fg: var(--text-2); --sb-muted: var(--muted-2); --sb-hover: var(--surface-3); --sb-active: var(--brand-soft); --sb-active-fg: var(--brand); --sb-line: var(--border);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--sb-bg); border-right: 1px solid var(--sb-line); z-index: 40;
}
.sidebar-dark {
  --sb-bg: #05221F; --sb-fg: #A3C8C0; --sb-muted: #547C74; --sb-hover: rgba(45, 212, 191, .07); --sb-active: rgba(16, 185, 129, .15); --sb-active-fg: #6EE7B7; --sb-line: #0D3B34;
  color-scheme: dark;
}
.sidebar-dark .sidebar-brand .brand-name { color: #fff; }
[data-theme="dark"] .sidebar:not(.sidebar-dark) { --sb-bg: #05221F; --sb-line: #0D3B34; }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 64px; padding: 0 18px; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; flex: none; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); overflow: hidden; }
.sidebar-dark .brand-mark, [data-theme="dark"] .sidebar .brand-mark { background: color-mix(in srgb, var(--brand) 15%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); color: var(--brand-2); box-shadow: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.brand-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.brand-sub { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-muted, var(--muted-2)); }
.brand-name span { color: var(--brand); }
.sidebar-close { display: none; color: var(--sb-muted); }

.biz-card { margin: 4px 14px 10px; padding: 11px 12px; display: flex; align-items: center; gap: 10px; border-radius: 12px; border: 1px solid var(--sb-line); background: color-mix(in srgb, var(--sb-bg) 94%, var(--brand) 6%); color: var(--sb-fg); text-align: left; width: calc(100% - 28px); }
.biz-card:hover { border-color: var(--brand-line); }
.biz-card .avatar { width: 32px; height: 32px; border-radius: 9px; }
.biz-card-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.25; }
.sidebar-dark .biz-card-name { color: #fff; }
.biz-card-plan { font-size: 11.5px; color: var(--sb-muted); display: flex; align-items: center; gap: 6px; margin-top: 1px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; }
.nav-section { padding: 16px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sb-muted); }
.nav-link { position: relative; display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--sb-fg); font-size: 13.5px; font-weight: 550; transition: background .12s, color .12s; }
.nav-link .icon { width: 18px; height: 18px; color: var(--sb-muted); transition: color .12s; }
.nav-link:hover { background: var(--sb-hover); color: var(--text); }
.sidebar-dark .nav-link:hover { color: #fff; }
.nav-link:hover .icon { color: var(--sb-fg); }
.nav-link.is-active { background: var(--sb-active); color: var(--sb-active-fg); font-weight: 650; }
.nav-link.is-active .icon { color: var(--sb-active-fg); }
.sidebar-dark .nav-link.is-active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sidebar-dark .nav-link.is-active .icon { color: var(--brand-2); }
.nav-group-toggle { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; border-radius: 8px; }
.nav-group-toggle:hover { color: var(--sb-fg); }
.nav-chevron { width: 14px; height: 14px; margin-left: auto; transition: transform .2s var(--ease); }
.nav-group-count { margin-left: auto; }
.nav-group-count + .nav-chevron { margin-left: 6px; }
.nav-group.is-open .nav-group-count { display: none; }
.nav-group.is-open .nav-chevron { transform: rotate(180deg); }
.nav-group-items { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--ease); }
.nav-group-items > div { overflow: hidden; min-height: 0; }
.nav-group.is-open .nav-group-items { grid-template-rows: 1fr; }
.nav.no-anim .nav-group-items, .nav.no-anim .nav-chevron { transition: none; }
.biz-switch .dropdown-menu { left: 14px; right: 14px; min-width: 0; }
.brand-logo { height: 32px; width: auto; }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: block; }
.usage-chip { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.usage-chip .meter { width: 70px; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--brand); color: #04150F; }
.nav-badge.soft { background: var(--surface-3); color: var(--text-2); }
.sidebar-dark .nav-badge.soft { background: rgba(255, 255, 255, .07); color: #BFDCCD; }
.nav-badge.warn { background: var(--brand); color: #04150F; }
.nav-badge.danger { background: var(--red); }
.nav-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--green); }

.sidebar-foot { padding: 12px 14px 16px; border-top: 1px solid var(--sb-line); flex: none; }
.usage-card { padding: 13px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--brand-line); }
.sidebar-dark .usage-card { background: linear-gradient(135deg, rgba(16, 185, 129, .18), rgba(52, 211, 153, .07)); border-color: rgba(52, 211, 153, .18); }
.usage-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.usage-card-label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sidebar-dark .usage-card-label { color: #9FC2B2; }
.usage-card-value { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.sidebar-dark .usage-card-value { color: #fff; }
.usage-card-value small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.usage-card .meter { margin: 9px 0 10px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.usage-card .btn { width: 100%; }

@media (max-width: 1024px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 284px; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--sh-3); }
  .sidebar.is-open { transform: none; }
  .sidebar-close { display: inline-grid; }
}
.backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(8, 11, 24, .45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ============================================================ top bar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
@media (max-width: 1200px) { .topbar { padding: 0 22px; } }
@media (max-width: 1024px) { .topbar { padding: 0 14px; } }
.menu-toggle { display: none; }
@media (max-width: 1024px) { .menu-toggle { display: inline-flex; } }
.search-trigger { display: flex; align-items: center; gap: 10px; width: min(380px, 100%); height: 38px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted-2); font-size: 13.5px; box-shadow: var(--sh-1); transition: border-color .15s; }
.search-trigger:hover { border-color: var(--border-strong); color: var(--muted); }
.search-trigger kbd { margin-left: auto; }
@media (max-width: 720px) { .search-trigger { width: 38px; padding: 0; justify-content: center; } .search-trigger span, .search-trigger kbd { display: none; } }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .btn-icon { color: var(--text-2); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); }
.live-pill:hover { color: var(--text); border-color: var(--green-line); }
.live-pill.is-live { color: var(--green); border-color: var(--green-line); background: var(--green-bg); }
.mode-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.mode-pill.is-live { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }

.bell { position: relative; }
.bell-count { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.notif-menu { width: 380px; padding: 0; overflow: hidden; }
.notif-menu-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.notif-menu-list { max-height: 420px; overflow-y: auto; }
.notif-menu-foot { padding: 10px; border-top: 1px solid var(--border); text-align: center; background: var(--surface-2); }
@media (max-width: 520px) { .notif-menu { width: calc(100vw - 24px); right: -60px; } }

.user-btn { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 4px; border-radius: 999px; border: 1px solid transparent; }
.user-btn:hover { background: var(--surface); border-color: var(--border); }
.user-btn .user-name { font-size: 13px; font-weight: 650; color: var(--text); line-height: 1.2; text-align: left; }
.user-btn .user-role { font-size: 11px; color: var(--muted); text-align: left; }
@media (max-width: 720px) { .user-btn .user-meta { display: none; } }

/* banners above the top bar */
.impersonate-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: repeating-linear-gradient(-45deg, #0B3A2B, #0B3A2B 12px, #0F4A37 12px, #0F4A37 24px); color: #D9F5E7; font-size: 13px; font-weight: 600; }
.impersonate-bar .btn { height: 28px; }
.announce-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; font-size: 13px; font-weight: 600; text-align: center; color: #fff; background: var(--grad); }
.announce-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.announce-bar.is-warning { background: linear-gradient(90deg, #B45309, #D97706); }
.announce-bar.is-danger { background: linear-gradient(90deg, #B91C1C, #E5484D); }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; font-size: 12.5px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border-bottom: 1px solid var(--amber-line); text-align: center; }
.demo-bar a { color: inherit; text-decoration: underline; }

/* ============================================================ page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head-main { min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 550; }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 13px; height: 13px; color: var(--muted-2); }
.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.025em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-sub { margin-top: 5px; font-size: 14px; color: var(--muted); max-width: 760px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) { .page-title { font-size: 21px; } }

.greeting { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.greeting h1 { font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.greeting p { color: var(--muted); margin-top: 4px; }

/* ============================================================ layout helpers */
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.grid-main-wide { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.grid-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-thirds { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1280px) { .grid-main-wide { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 1100px) { .grid-main, .grid-main-wide, .grid-thirds { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .grid-half { grid-template-columns: minmax(0, 1fr); } }
.sticky-side { position: sticky; top: 84px; }
@media (max-width: 1100px) { .sticky-side { position: static; } }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title h2 { font-size: 16px; font-weight: 750; }

/* ============================================================ stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1280px) { .stats-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .stats, .stats-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats, .stats-3, .stats-5 { grid-template-columns: minmax(0, 1fr); } }
.stat { position: relative; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; min-width: 0; }
a.stat { color: inherit; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.stat-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.green { background: var(--green-bg); color: var(--green); }
.stat-icon.red { background: var(--red-bg); color: var(--red); }
.stat-icon.amber { background: var(--amber-bg); color: var(--amber); }
.stat-icon.blue { background: var(--blue-bg); color: var(--blue); }
.stat-icon.violet { background: var(--violet-bg); color: var(--violet); }
.stat-icon.orange { background: var(--orange-bg); color: var(--orange); }
.stat-icon.teal { background: var(--teal-bg); color: var(--teal); }
.stat-icon.mint { background: var(--mint-bg); color: var(--mint); }
.stat-value { margin-top: 10px; font-size: 27px; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 14px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.stat-foot { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.delta.up { color: var(--green); background: var(--green-bg); }
.delta.down { color: var(--red); background: var(--red-bg); }
.delta.flat { color: var(--muted); background: var(--surface-3); }
.stat-spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 42px; opacity: .9; pointer-events: none; }
.stat-hero { background: var(--grad); border: 0; color: #fff; }
.stat-hero .stat-label, .stat-hero .stat-foot { color: rgba(255, 255, 255, .78); }
.stat-hero .stat-value, .stat-hero .stat-value small { color: #fff; }
.stat-hero .stat-icon { background: rgba(255, 255, 255, .16); color: #fff; }
/* On the dark panel a solid brand block shouts; the reference keeps it a lit card. */
[data-theme="dark"] .stat-hero { background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 34%, #0A3733) 0%, color-mix(in srgb, var(--brand) 14%, #083029) 58%, #072C28 100%); border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent); }
[data-theme="dark"] .stat-hero .stat-label, [data-theme="dark"] .stat-hero .stat-foot { color: color-mix(in srgb, var(--brand-2) 62%, #fff); }
[data-theme="dark"] .stat-hero .stat-icon { background: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--brand-2); }

/* mini metrics row inside cards */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.metric { padding: 14px 18px; background: var(--surface); }
.metric-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.metric-value { font-size: 18px; font-weight: 800; color: var(--text); margin-top: 2px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ============================================================ charts */
.chart { position: relative; width: 100%; height: 260px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart-sm { height: 180px; }
.chart-lg { height: 320px; }
.chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.chart .axis-label { fill: var(--muted-2); font-size: 11px; font-family: var(--font); }
.chart .bar { transition: opacity .15s; }
.chart .bar:hover { opacity: .8; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; padding: 9px 11px; border-radius: 10px; background: #04150F; color: #DCF1E7; font-size: 12px; line-height: 1.5; box-shadow: var(--sh-3); white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .12s; }
.chart-tip.is-on { opacity: 1; }
.chart-tip b { color: #fff; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted-2); font-size: 13px; }

.donut-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 480px) { .donut-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; } }
.donut { position: relative; width: 170px; height: 170px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; }
.donut-center span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.legend-list { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.legend-row .legend-val { margin-left: auto; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.legend-row .legend-pct { width: 44px; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 70px; align-items: center; gap: 12px; font-size: 13px; }
.funnel-label { color: var(--text-2); font-weight: 600; }
.funnel-track { height: 28px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 8px; background: var(--grad); display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: 11.5px; font-weight: 700; min-width: 34px; transition: width .8s var(--ease); }
.funnel-value { text-align: right; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.funnel-value small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* horizontal bars list */
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.hbar-top span:first-child { color: var(--text-2); font-weight: 600; }
.hbar-top span:last-child { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* ============================================================ tabs & toolbars */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--brand); }
.tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.tab-count { min-width: 20px; height: 19px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.tab.is-active .tab-count { background: var(--brand-soft); color: var(--brand); }
.card > .tabs { padding: 0 12px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.toolbar .input-icon { flex: 1 1 240px; max-width: 360px; }
.toolbar .select { width: auto; min-width: 150px; height: 38px; }
.toolbar .input { height: 38px; }
.toolbar-spacer { flex: 1; }
.bulk-bar { display: none; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--brand-line); font-size: 13px; font-weight: 600; color: var(--brand); }
.bulk-bar.is-on { display: flex; }
.filter-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

/* ============================================================ lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border); color: inherit; min-width: 0; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); color: inherit; }
.list-item-main { flex: 1; min-width: 0; }
.list-item-title { font-size: 13.5px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 8px; min-width: 0; }
.list-item-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.list-item-side { text-align: right; flex: none; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.icon-tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.icon-tile .icon { width: 17px; height: 17px; }
.icon-tile.green { background: var(--green-bg); color: var(--green); }
.icon-tile.red { background: var(--red-bg); color: var(--red); }
.icon-tile.amber { background: var(--amber-bg); color: var(--amber); }
.icon-tile.blue { background: var(--blue-bg); color: var(--blue); }
.icon-tile.violet { background: var(--violet-bg); color: var(--violet); }
.icon-tile.orange { background: var(--orange-bg); color: var(--orange); }
.icon-tile.brand { background: var(--brand-soft); color: var(--brand); }
.icon-tile.teal { background: var(--teal-bg); color: var(--teal); }
.icon-tile.mint { background: var(--mint-bg); color: var(--mint); }
.icon-tile.gray { background: var(--gray-bg); color: var(--gray); }
.icon-tile.lg { width: 44px; height: 44px; border-radius: 12px; }
.icon-tile.lg .icon { width: 21px; height: 21px; }

/* ============================================================ onboarding checklist */
.setup { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; overflow: hidden; }
@media (max-width: 900px) { .setup { grid-template-columns: minmax(0, 1fr); } }
.setup-intro { padding: 24px; background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.setup-intro::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.setup-intro h3 { color: #fff; font-size: 18px; }
.setup-intro p { color: rgba(255, 255, 255, .82); font-size: 13.5px; margin-top: 6px; }
.setup-progress { margin-top: 18px; }
.setup-progress .meter { background: rgba(255, 255, 255, .22); }
.setup-progress .meter > span { background: #fff; }
.setup-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .setup-steps { grid-template-columns: minmax(0, 1fr); } }
.setup-step { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); color: inherit; }
a.setup-step:hover { background: var(--surface-2); color: inherit; }
.setup-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; flex: none; color: transparent; margin-top: 1px; }
.setup-step.is-done .setup-check { background: var(--green); border-color: var(--green); color: #fff; }
.setup-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.setup-step-title { font-size: 13.5px; font-weight: 650; color: var(--text); }
.setup-step.is-done .setup-step-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); }
.setup-step-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ============================================================ orders */
.order-no { font-family: var(--mono); font-weight: 650; font-size: 12.5px; color: var(--text); }
a.order-no:hover { color: var(--brand); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.attempts { display: inline-flex; gap: 3px; }
.attempts i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.attempts i.used { background: var(--amber); }
.attempts i.ok { background: var(--green); }
.attempts i.fail { background: var(--red); }

.order-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 22px; }
.order-hero-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-hero-title h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-family: var(--font); }
.order-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.order-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.order-hero-meta .icon { width: 14px; height: 14px; }

.progress-steps { display: flex; align-items: center; gap: 0; padding: 16px 22px; border-top: 1px solid var(--border); overflow-x: auto; }
.pstep { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; color: var(--muted-2); white-space: nowrap; }
.pstep-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface); color: var(--muted-2); flex: none; }
.pstep-dot .icon { width: 12px; height: 12px; stroke-width: 3; }
.pstep.is-done { color: var(--text-2); }
.pstep.is-done .pstep-dot { background: var(--green); border-color: var(--green); color: #fff; }
.pstep.is-current { color: var(--brand); }
.pstep.is-current .pstep-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.pstep.is-failed .pstep-dot { background: var(--red); border-color: var(--red); color: #fff; }
.pstep-line { flex: 1 0 28px; height: 2px; margin: 0 10px; background: var(--border); min-width: 28px; }
.pstep-line.is-done { background: var(--green); }

.items { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.items th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.items td { padding: 13px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.items .num { text-align: right; white-space: nowrap; }
.item-cell { display: flex; align-items: center; gap: 12px; }
.item-thumb { width: 42px; height: 42px; border-radius: 10px; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand); flex: none; overflow: hidden; }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.variant-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.totals { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 8px; margin-left: auto; width: min(100%, 340px); }
.totals-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; color: var(--text-2); }
.totals-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.totals-total { padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--border-strong); font-size: 15px; font-weight: 800; color: var(--text); }
.totals-total span:last-child { font-weight: 800; }
.cod-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px 18px; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); border: 1px solid var(--amber-line); font-size: 13px; color: var(--text-2); }
.cod-box strong { font-size: 17px; color: var(--text); }
.cod-box.paid { background: var(--green-bg); border-color: var(--green-line); }

.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-actions .btn { justify-content: flex-start; height: 40px; }
.quick-actions .span-2 { grid-column: span 2; }

.risk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.risk-bar { display: flex; gap: 3px; }
.risk-bar i { width: 14px; height: 6px; border-radius: 3px; background: var(--border-strong); }
.risk-low .risk-bar i:nth-child(-n+1) { background: var(--green); }
.risk-medium .risk-bar i:nth-child(-n+2) { background: var(--amber); }
.risk-high .risk-bar i:nth-child(-n+3) { background: var(--red); }
.risk-low { color: var(--green); } .risk-medium { color: var(--amber); } .risk-high { color: var(--red); } .risk-unknown { color: var(--muted); }

.courier-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.courier-box div { padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); text-align: center; }
.courier-box strong { display: block; font-size: 17px; font-weight: 800; color: var(--text); }
.courier-box span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* line item editor (order form) */
.line-items { display: flex; flex-direction: column; gap: 10px; }
.line-item { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr) 90px 120px 40px; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.line-item .line-total { height: 40px; display: flex; align-items: center; justify-content: flex-end; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .line-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .line-item .line-total { justify-content: flex-start; } }
.line-head { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.4fr) 90px 120px 40px; gap: 10px; padding: 0 13px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 900px) { .line-head { display: none; } }
.summary-box { padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }

/* ============================================================ timeline */
.timeline { position: relative; padding: 6px 20px 10px; }
.tl-item { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.tl-item::before { content: ""; position: absolute; left: 15px; top: 40px; bottom: -10px; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-icon { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); border: 3px solid var(--surface); }
.tl-icon .icon { width: 14px; height: 14px; }
.tl-icon.green { background: var(--green-bg); color: var(--green); }
.tl-icon.red { background: var(--red-bg); color: var(--red); }
.tl-icon.amber { background: var(--amber-bg); color: var(--amber); }
.tl-icon.blue { background: var(--blue-bg); color: var(--blue); }
.tl-icon.violet { background: var(--violet-bg); color: var(--violet); }
.tl-icon.brand { background: var(--brand-soft); color: var(--brand); }
.tl-icon.orange { background: var(--orange-bg); color: var(--orange); }
.tl-title { font-size: 13.5px; font-weight: 650; color: var(--text); }
.tl-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tl-meta { font-size: 11.5px; color: var(--muted-2); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.tl-meta a { color: var(--brand); font-weight: 600; }

/* ============================================================ calls & transcript */
.outcome-hero { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.outcome-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.outcome-icon .icon { width: 24px; height: 24px; }
.outcome-hero h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.outcome-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 5px; }
.outcome-meta span { display: inline-flex; align-items: center; gap: 6px; }
.outcome-meta .icon { width: 14px; height: 14px; }
.tone-green { background: var(--green-bg); color: var(--green); } .tone-red { background: var(--red-bg); color: var(--red); }
.tone-amber { background: var(--amber-bg); color: var(--amber); } .tone-blue { background: var(--blue-bg); color: var(--blue); }
.tone-violet { background: var(--violet-bg); color: var(--violet); } .tone-orange { background: var(--orange-bg); color: var(--orange); }
.tone-gray { background: var(--gray-bg); color: var(--gray); } .tone-brand { background: var(--brand-soft); color: var(--brand); }

.ai-summary { position: relative; padding: 16px 18px 16px 50px; margin: 18px 20px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--brand-line); font-size: 14px; line-height: 1.6; color: var(--text); }
.ai-summary > .icon { position: absolute; left: 17px; top: 17px; color: var(--brand); }
.ai-summary-label { font-size: 11.5px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); margin-bottom: 3px; }

.player { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 20px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.player-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.player-btn:hover { background: var(--brand-strong); }
.player-track { flex: 1; height: 34px; display: flex; align-items: center; gap: 2px; cursor: pointer; }
.player-track i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--border-strong); }
.player-track i.on { background: var(--brand); }
.player-time { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

.transcript { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.transcript-scroll { max-height: 640px; overflow-y: auto; scroll-behavior: smooth; }
.turn { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.turn .avatar { width: 30px; height: 30px; font-size: 11px; }
.turn-agent { align-self: flex-start; }
.turn-customer { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; color: var(--text); background: var(--surface-3); border: 1px solid var(--border); }
:lang(bn) .bubble, .bubble[lang="bn"] { font-size: 15px; }
.turn-agent .bubble { border-bottom-left-radius: 5px; background: var(--surface); box-shadow: var(--sh-1); }
.turn-customer .bubble { border-bottom-right-radius: 5px; background: var(--brand); border-color: var(--brand); color: #fff; }
.turn-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11px; color: var(--muted-2); font-family: var(--mono); }
.turn-customer .turn-meta { justify-content: flex-end; }
.turn-intent { font-family: var(--font); font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--violet-bg); color: var(--violet); border: 1px solid var(--violet-line); }
.turn-system { align-self: center; max-width: 92%; }
.turn-system .bubble { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; text-align: center; }
.turn.is-typing .bubble { display: inline-flex; gap: 4px; padding: 14px 16px; }
.turn.is-typing .bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: typing 1.2s infinite; }
.turn.is-typing .bubble i:nth-child(2) { animation-delay: .15s; } .turn.is-typing .bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.turn-new { animation: turn-in .35s var(--ease); }
@keyframes turn-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tool-call { align-self: center; width: min(100%, 520px); display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; }
.tool-call > .icon { margin-top: 1px; color: var(--brand); }
.tool-call.is-success { border-color: var(--green-line); background: var(--green-bg); } .tool-call.is-success > .icon { color: var(--green); }
.tool-call.is-rejected { border-color: var(--amber-line); background: var(--amber-bg); } .tool-call.is-rejected > .icon { color: var(--amber); }
.tool-call.is-failed { border-color: var(--red-line); background: var(--red-bg); } .tool-call.is-failed > .icon { color: var(--red); }
.tool-name { font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 12px; }
.tool-args { font-family: var(--mono); color: var(--muted); font-size: 11.5px; word-break: break-word; }
.tool-result { color: var(--text-2); margin-top: 3px; }

.intent-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================ live monitor */
.live-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.live-counters { display: flex; gap: 10px; flex-wrap: wrap; }
.live-counter { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-1); }
.live-counter strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.live-counter span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.live-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; min-height: 330px; animation: turn-in .35s var(--ease); }
.live-card.is-ringing { border-color: var(--amber-line); }
.live-card.is-talking { border-color: var(--green-line); box-shadow: 0 0 0 3px var(--green-bg), var(--sh-1); }
.live-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.live-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.live-card-sub { font-size: 12px; color: var(--muted); }
.live-timer { margin-left: auto; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--text); padding: 4px 9px; border-radius: 8px; background: var(--surface-3); }
.live-state { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 12.5px; font-weight: 650; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.live-state .wave { color: var(--green); height: 16px; }
.live-card.is-ringing .live-state { color: var(--amber); background: var(--amber-bg); }
.live-card .transcript { padding: 14px 16px; gap: 10px; flex: 1; max-height: 300px; overflow-y: auto; }
.live-card .turn { max-width: 92%; }
.live-card .bubble { font-size: 13px; padding: 8px 12px; }
.live-card-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.live-empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.radar { position: relative; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: radar 2.4s var(--ease) infinite; }
.radar::after { animation-delay: 1.2s; }
@keyframes radar { 0% { transform: scale(.7); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.queue-row:last-child { border-bottom: 0; }
.queue-eta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ============================================================ test lab */
.lab { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .lab { grid-template-columns: minmax(0, 1fr); } }
.mode-cards { display: grid; gap: 8px; }
.mode-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.mode-card:hover { border-color: var(--border-strong); }
.mode-card input { position: absolute; opacity: 0; }
.mode-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.mode-card-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.mode-card-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.lab-stage { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1400px) { .lab-stage { grid-template-columns: minmax(0, 1fr); } }

.phone { position: relative; width: 100%; max-width: 400px; margin: 0 auto; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #1B2140, #070A18); box-shadow: 0 40px 80px -30px rgba(11, 16, 38, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.phone-screen { position: relative; height: 640px; border-radius: 34px; overflow: hidden; display: flex; flex-direction: column; background: radial-gradient(120% 70% at 50% 0%, #2A1F7A 0%, #121636 45%, #0A0D20 100%); color: #fff; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; border-radius: 20px; background: #000; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); height: 40px; flex: none; }
.phone-caller { text-align: center; padding: 18px 20px 12px; flex: none; }
.phone-caller .avatar { width: 72px; height: 72px; font-size: 24px; margin: 0 auto 10px; background: var(--grad); color: #fff; border: 0; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 0 0 12px rgba(255, 255, 255, .03); }
.phone-caller h3 { color: #fff; font-size: 19px; font-weight: 700; }
.phone-caller p { color: rgba(255, 255, 255, .6); font-size: 12.5px; margin-top: 2px; }
.phone-caller .wave { color: var(--brand-2); margin-top: 10px; }
.phone-timer { font-family: var(--mono); font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 4px; }
.phone-body { flex: 1; overflow-y: auto; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.phone-body::-webkit-scrollbar { display: none; }
.phone-body .turn { max-width: 90%; }
.phone-body .bubble { font-size: 13.5px; padding: 9px 13px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; }
.phone-body .turn-customer .bubble { background: #fff; color: #04150F; border-color: #fff; }
.phone-body .turn-meta { color: rgba(255, 255, 255, .4); }
.phone-body .turn-intent { background: rgba(167, 139, 250, .18); border-color: rgba(167, 139, 250, .3); color: #D5C8FF; }
.phone-body .tool-call { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.phone-body .tool-call.is-success { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); }
.phone-body .tool-call.is-rejected { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); }
.phone-body .tool-name { color: #fff; }
.phone-body .tool-args, .phone-body .tool-result { color: rgba(255, 255, 255, .65); }
.phone-body .turn-system .bubble { color: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .15); background: transparent; }
.phone-input { display: flex; gap: 8px; padding: 10px 12px 14px; flex: none; background: rgba(0, 0, 0, .2); }
.phone-input input { flex: 1; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .08); color: #fff; outline: none; }
.phone-input input::placeholder { color: rgba(255, 255, 255, .45); }
.phone-input input:focus { border-color: var(--brand-2); }
.phone-controls { display: flex; justify-content: center; gap: 22px; padding: 14px 0 22px; flex: none; }
.phone-key { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; transition: background .15s, transform .15s; }
.phone-key:hover { background: rgba(255, 255, 255, .2); }
.phone-key:active { transform: scale(.95); }
.phone-key .icon { width: 22px; height: 22px; }
.phone-key.end { background: #EF4444; } .phone-key.end:hover { background: #DC2626; }
.phone-key.go { background: #22C55E; } .phone-key.go:hover { background: #16A34A; }
.phone-key.is-on { background: #fff; color: #04150F; }
.phone-idle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: rgba(255, 255, 255, .7); font-size: 13.5px; }
.phone-idle .radar { background: rgba(255, 255, 255, .08); color: #fff; }
.phone-idle .radar::before, .phone-idle .radar::after { border-color: var(--brand-2); }
.phone-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; flex: none; }
.phone-suggest button { height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .12); }
.phone-suggest button:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.phone-ended { margin: auto 16px 16px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: 13px; }
.phone-ended strong { display: block; font-size: 15px; color: #fff; margin-bottom: 4px; }

.inspector { display: flex; flex-direction: column; gap: 16px; }
.inspector .kv { font-size: 12.5px; }
.state-json { max-height: 260px; overflow: auto; margin: 0; padding: 12px; border-radius: 10px; background: #04150F; color: #C3E3D4; font-size: 11.5px; line-height: 1.6; }

/* ============================================================ settings */
.settings { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .settings { grid-template-columns: minmax(0, 1fr); } }
.settings-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 960px) { .settings-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; } }
.settings-nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.settings-nav a .icon { width: 16px; height: 16px; color: var(--muted); }
.settings-nav a:hover { background: var(--surface); color: var(--text); }
.settings-nav a.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--sh-1); border: 1px solid var(--border); }
.settings-nav a.is-active .icon { color: var(--brand); }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: 18px 22px; border-bottom: 1px solid var(--border); align-items: start; }
.setting-row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .setting-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.setting-label { font-size: 13.5px; font-weight: 650; color: var(--text); }
.setting-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.setting-control { min-width: 0; }
.setting-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.setting-inline .input, .setting-inline .select { width: auto; min-width: 90px; }

/* calling rules */
.rule-card { overflow: hidden; }
.rule-head { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.rule-head h3 { font-size: 15px; font-weight: 750; }
.rule-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rule-head .switch { margin-left: auto; }
.days-picker { display: flex; gap: 6px; flex-wrap: wrap; }
.days-picker label { position: relative; }
.days-picker input { position: absolute; opacity: 0; }
.days-picker span { display: grid; place-items: center; width: 44px; height: 38px; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface); cursor: pointer; transition: all .15s; }
.days-picker input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.days-picker input:focus-visible + span { box-shadow: var(--ring); }
.retry-steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 10px; }
.retry-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 88px; }
.retry-step .icon-tile { border-radius: 50%; }
.retry-step small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.retry-gap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 90px; }
.retry-gap::before { content: ""; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 11px); }
.retry-gap .input { width: 80px; height: 32px; text-align: center; font-size: 13px; }
.hours-visual { position: relative; height: 34px; border-radius: 10px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.hours-visual span { position: absolute; top: 0; bottom: 0; background: var(--grad); opacity: .9; }
.hours-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); margin-top: 5px; font-family: var(--mono); }

/* ============================================================ integrations */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.int-card { display: flex; flex-direction: column; }
.int-card .card-body { flex: 1; }
.int-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff; flex: none; }
.int-logo.woo { background: #7F54B3; } .int-logo.shopify { background: #5E8E3E; } .int-logo.api { background: var(--ink); }
.int-logo.webhook { background: var(--brand); } .int-logo.sms { background: #0EA5E9; } .int-logo.courier { background: #F97316; } .int-logo.csv { background: #16A34A; }
.int-logo .icon { width: 22px; height: 22px; }
.endpoint { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--text-2); overflow: hidden; }
.endpoint span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.method { font-family: var(--mono); font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 5px; background: var(--green-bg); color: var(--green); flex: none; }
.endpoint .method { flex: none; overflow: visible; }
.method.post { background: var(--blue-bg); color: var(--blue); }
.method.patch { background: var(--amber-bg); color: var(--amber); }
.method.delete { background: var(--red-bg); color: var(--red); }
.steps-list { counter-reset: s; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps-list li { counter-increment: s; position: relative; padding-left: 34px; font-size: 13.5px; color: var(--text-2); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.secret-box { padding: 16px; border-radius: 12px; border: 1px solid var(--green-line); background: var(--green-bg); }

/* ============================================================ billing */
.balance-hero { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r-xl); background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--brand-2) 45%, transparent) 0%, transparent 50%), linear-gradient(135deg, #053A2B 0%, var(--brand) 100%); color: #fff; box-shadow: var(--sh-2); }
.balance-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.balance-hero .label { color: rgba(255, 255, 255, .75); margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.balance-value { font-size: 40px; font-weight: 800; letter-spacing: -.035em; margin-top: 6px; line-height: 1; }
.balance-value small { font-size: 16px; font-weight: 600; opacity: .8; margin-left: 4px; }
.balance-sub { color: rgba(255, 255, 255, .78); font-size: 13px; margin-top: 8px; }
.balance-hero .meter { background: rgba(255, 255, 255, .18); margin-top: 18px; }
.balance-hero .meter > span { background: #fff; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.plan-card.is-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, var(--sh-2); }
.plan-card.is-current { background: var(--brand-soft); border-color: var(--brand-line); }
.plan-ribbon { position: absolute; top: -11px; left: 20px; height: 22px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em; color: #fff; background: var(--grad); }
.plan-name { font-size: 15px; font-weight: 800; color: var(--text); }
.plan-price { margin-top: 10px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-minutes { font-size: 13px; color: var(--brand); font-weight: 700; margin-top: 2px; }
.plan-features { list-style: none; margin: 16px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); flex: 1; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-features .icon { width: 15px; height: 15px; color: var(--green); margin-top: 2px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pack-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pack-card:hover { border-color: var(--brand-line); }
.pack-card input { position: absolute; opacity: 0; }
.pack-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-soft); }
.pack-minutes { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.pack-minutes small { font-size: 12px; color: var(--muted); font-weight: 650; }
.pack-bonus { font-size: 12px; font-weight: 700; color: var(--green); }
.pack-price { font-size: 14px; font-weight: 750; color: var(--text-2); margin-top: 6px; }
.pack-rate { font-size: 11.5px; color: var(--muted); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pay-method { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; }
.pay-method:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-logo { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; background: var(--gray); overflow: hidden; }
.pay-logo img { width: 100%; height: 100%; object-fit: cover; }
.pay-instructions { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: 13px; color: var(--text-2); white-space: pre-line; }

/* ============================================================ notifications */
.notif { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: inherit; position: relative; }
.notif:last-child { border-bottom: 0; }
a.notif:hover { background: var(--surface-2); color: inherit; }
.notif.is-unread { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); }
.notif.is-unread::after { content: ""; position: absolute; right: 18px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.notif-title { font-size: 13.5px; font-weight: 650; color: var(--text); padding-right: 16px; }
.notif-body { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.notif-time { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

/* ============================================================ follow-ups */
.fu-card { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.fu-card:last-child { border-bottom: 0; }
.fu-main { flex: 1; min-width: 0; }
.fu-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--text); }
.fu-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.fu-meta span { display: inline-flex; align-items: center; gap: 5px; }
.fu-meta .icon { width: 13px; height: 13px; }
.fu-note { margin-top: 8px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.fu-actions { display: flex; gap: 6px; flex-wrap: wrap; flex: none; }
.priority { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .03em; }
.priority::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.priority-urgent { color: var(--red); } .priority-high { color: var(--orange); } .priority-normal { color: var(--blue); } .priority-low { color: var(--muted); }

/* ============================================================ customer profile */
.profile-head { display: flex; align-items: center; gap: 16px; padding: 22px; flex-wrap: wrap; }
.profile-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.profile-stats div { padding: 14px 18px; border-right: 1px solid var(--border); }
.profile-stats div:last-child { border-right: 0; }
.profile-stats strong { display: block; font-size: 19px; font-weight: 800; color: var(--text); }
.profile-stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-stats div:nth-child(2) { border-right: 0; } }

/* ============================================================ admin extras */
.health-list { display: flex; flex-direction: column; }
.health-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; }
.health-row:last-child { border-bottom: 0; }
.health-row .health-name { font-weight: 650; color: var(--text); }
.health-row .health-meta { color: var(--muted); font-size: 12px; }
.health-row > :last-child { margin-left: auto; }
.money-big { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.split-bar span { height: 100%; }

/* ============================================================ auth */
.auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
@media (max-width: 1000px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none !important; } }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; color: #fff; background: radial-gradient(90% 60% at 80% 10%, rgba(52, 211, 153, .26) 0%, transparent 60%), radial-gradient(80% 70% at 10% 90%, rgba(16, 185, 129, .22) 0%, transparent 60%), linear-gradient(160deg, #04150F 0%, #0A3126 55%, #0F4A38 100%); }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.auth-side > * { position: relative; }
.auth-side .brand, .auth-side .brand:hover { color: #fff; }
.auth-side .brand-name span { color: var(--brand-2); }
.auth-quote { max-width: 520px; }
.auth-quote h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.auth-quote h2 em { font-style: normal; background: linear-gradient(90deg, #6EE7B7, #5EEAD4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-quote p { color: rgba(255, 255, 255, .72); margin-top: 12px; font-size: 15px; line-height: 1.6; }
.auth-points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.auth-points span { display: inline-flex; align-items: center; gap: 7px; }
.auth-points .icon { width: 15px; height: 15px; color: #5EEAD4; }
.auth-call { width: min(100%, 440px); padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.auth-call-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 12px; font-size: 13px; }
.auth-call-head .avatar { background: var(--grad); color: #fff; border: 0; }
.auth-call-head strong { display: block; color: #fff; font-size: 13.5px; }
.auth-call-head small { color: rgba(255, 255, 255, .6); }
.auth-call-head .wave { margin-left: auto; color: #5EEAD4; height: 18px; }
.auth-call .bubble { font-size: 13px; background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; }
.auth-call .turn-customer .bubble { background: #fff; color: #04150F; }
.auth-call .transcript { padding: 0; gap: 10px; }
.auth-call .tool-call { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); color: rgba(255, 255, 255, .85); }
.auth-call .tool-call .tool-name { color: #fff; }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; }
.auth-card .brand { margin-bottom: 26px; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.auth-card .auth-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.demo-logins { display: grid; gap: 8px; }
.demo-login { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); text-align: left; transition: border-color .15s, background .15s; }
.demo-login:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.demo-login .icon-tile { width: 34px; height: 34px; }
.demo-login strong { display: block; font-size: 13px; color: var(--text); }
.demo-login small { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.demo-login > .icon { margin-left: auto; color: var(--muted-2); }
.onboard { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.onboard-steps { display: flex; gap: 8px; margin: 18px 0 26px; }
.onboard-steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--border); }
.onboard-steps span.is-done { background: var(--grad); }
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.industry { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 650; color: var(--text); }
.industry input { position: absolute; opacity: 0; }
.industry .icon-tile { width: 34px; height: 34px; }
.industry small { font-weight: 500; color: var(--muted); font-size: 12px; }
.industry:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }

/* ============================================================ misc */
.code-inline { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.kbd-hint { font-size: 12px; color: var(--muted-2); }
.helper-card { padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--brand-line); background: var(--grad-soft); }
.helper-card h4 { font-size: 13.5px; font-weight: 750; display: flex; align-items: center; gap: 8px; color: var(--text); }
.helper-card p { font-size: 12.5px; color: var(--text-2); margin-top: 5px; line-height: 1.55; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 650; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }
.divider-label { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin: 6px 0; }
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.import-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 20px; border: 2px dashed var(--border-strong); border-radius: var(--r-lg); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.import-drop:hover, .import-drop.is-drag { border-color: var(--brand); background: var(--brand-soft); }
.import-drop input { display: none; }
.suspended { min-height: 70vh; display: grid; place-items: center; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.auth-main { position: relative; }
.auth-top { position: absolute; top: 18px; right: 20px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sidebar-dark .brand-name span { color: var(--brand-2); }
.auth-card.wide { max-width: 580px; }
.auth-card > .badge { margin-bottom: 4px; }

/* ============================================================ facebook page picker */
.pick-list { display: flex; flex-direction: column; }
.pick-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.pick-row.is-child { padding-left: 52px; }
.pick-row input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.pick-row:has(input:checked) { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.pick-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
