    :root, [data-theme="dark"] {
      --bg:#0b0f19; --side:#0e1322; --panel:#121829; --panel-2:#182035; --hover:#1c253d; --line:#232d48; --line-2:#313e63;
      --ink:#f8fafc; --ink-2:#cbd5e1; --muted:#8291a9; --faint:#53627e;
      --accent:#6366f1; --accent-ink:#ffffff; --accent-text:#a5b4fc; --accent-soft:rgba(99,102,241,.12); --accent-line:rgba(99,102,241,.35);
      --ok:#10b981; --ok-soft:rgba(16,185,129,.12); --ok-line:rgba(16,185,129,.3);
      --warn:#f59e0b; --warn-soft:rgba(245,158,11,.12); --warn-line:rgba(245,158,11,.3);
      --bad:#ef4444; --bad-soft:rgba(239,68,68,.12); --bad-line:rgba(239,68,68,.3);
      --info:#3b82f6; --info-soft:rgba(59,130,246,.12); --info-line:rgba(59,130,246,.3);
      --shadow: 0 4px 20px -2px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.05);
      color-scheme: dark;
    }
    [data-theme="light"] {
      --bg:#F8FAFC; --side:#FFFFFF; --panel:#FFFFFF; --panel-2:#F1F5F9; --hover:#F1F5F9; --line:#E2E8F0; --line-2:#CBD5E1;
      --ink:#0F172A; --ink-2:#334155; --muted:#64748B; --faint:#94A3B8;
      --accent:#4F46E5; --accent-ink:#FFFFFF; --accent-text:#4338CA; --accent-soft:rgba(79,70,229,.08); --accent-line:rgba(79,70,229,.3);
      --ok:#059669; --ok-soft:#ECFDF5; --ok-line:#A7F3D0;
      --warn:#D97706; --warn-soft:#FFFBEB; --warn-line:#FDE68A;
      --bad:#DC2626; --bad-soft:#FEF2F2; --bad-line:#FECACA;
      --info:#2563EB; --info-soft:#EFF6FF; --info-line:#BFDBFE;
      --shadow: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
      color-scheme: light;
    }
    * { box-sizing: border-box; }
    html, body { margin:0; height:100%; }
    body { font-family: Inter, system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
    button, input { font: inherit; color: inherit; }
    button { cursor: pointer; }
    svg.i { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
    [hidden] { display: none !important; }

    /* ================= Shell ================= */
    .app { display: grid; grid-template-columns: 260px 1fr; height: 100vh; transition: grid-template-columns .2s ease; }
    .app.collapsed { grid-template-columns: 72px 1fr; }
    @media (prefers-reduced-motion: reduce) { .app { transition: none; } }

    /* ================= Sidebar ================= */
    .sidebar { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
    .brand { display:flex; align-items:center; gap: 12px; padding: 20px 20px; border-bottom: 1px solid var(--line); min-height: 68px; }
    .logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #818CF8, #4F46E5); flex-shrink: 0; display:grid; place-items:center; color:#fff; font-weight:750; font-size: 12px; box-shadow: 0 2px 6px rgba(79,70,229,.35); }
    .brand-name { font-weight: 750; font-size: 15px; letter-spacing: -.015em; white-space: nowrap; margin-right: auto; }
    .icon-btn { background: none; border: 0; color: var(--muted); padding: 7px; border-radius: 8px; display:grid; place-items:center; transition: all .15s; }
    .icon-btn:hover { background: var(--hover); color: var(--ink); }
    .collapse svg { transition: transform .2s; }
    .app.collapsed .collapse svg { transform: rotate(180deg); }
    .app.collapsed .brand { justify-content: center; padding: 16px 0; flex-direction: column; gap: 8px; }
    .app.collapsed .brand-name { display: none; }

    .nav { flex: 1; overflow-y: auto; padding: 12px 14px 20px; }
    .sec { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 14px 6px; white-space: nowrap; opacity: .85; }
    .item { display:flex; align-items:center; gap: 12px; width: 100%; background: none; border: 1px solid transparent; border-radius: 10px;
            padding: 9px 14px; color: var(--ink-2); text-align: left; white-space: nowrap; margin-bottom: 2px; font-weight: 500; font-size: 13.5px; transition: background .12s, color .12s, border-color .12s; }
    .item:hover { background: var(--hover); color: var(--ink); }
    .item.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); font-weight: 600; }
    .item .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; }
    .item .chev { width: 16px; height: 16px; transition: transform .2s; color: var(--muted); }
    .item[aria-expanded="false"] .chev { transform: rotate(180deg); }
    .sub { padding-left: 20px; margin: 2px 0 6px; }
    .sub .item { padding: 8px 12px; font-size: 13px; color: var(--muted); }
    .sub .item:hover { color: var(--ink); }
    .sub .item.active { color: var(--accent-text); font-weight: 600; }
    .sub svg.i { width: 16px; height: 16px; }
    .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin: 0 4px; }

    .count { min-width: 22px; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 650; display:inline-grid; place-items:center;
             border: 1px solid var(--line-2); color: var(--muted); background: var(--panel-2); font-variant-numeric: tabular-nums; }
    .count.ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
    .count.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
    .count.bad { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
    .count.accent { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-line); }

    .side-foot { border-top: 1px solid var(--line); padding: 14px 14px; }
    .acct { display:flex; align-items:center; gap: 10px; margin-top: 8px; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
    .acct .av { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display:grid; place-items:center; font-weight: 700; font-size: 12px; flex-shrink: 0; border: 1px solid var(--accent-line); }
    .acct .who { flex: 1; min-width: 0; line-height: 1.25; }
    .acct .who b { display:block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .acct .who small { display:block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
    .acct button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px; transition: all .15s; }
    .acct button:hover { color: var(--bad); background: var(--bad-soft); }
    .collapsed .acct .who, .collapsed .acct button { display: none; }
    .pw-dialog { position: fixed; inset: 0; background: rgba(0,0,0,.55); display:grid; place-items:center; z-index: 100; }
    .pw-dialog > div { width: min(420px, 92vw); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
    .pw-dialog h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.01em; }
    .pw-dialog label { display:block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 14px 0 6px; }
    .pw-dialog .row { display:flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
    .pw-dialog .err { color: var(--bad); font-size: 13px; margin-top: 10px; min-height: 18px; }
    .app.collapsed .sec, .app.collapsed .lbl, .app.collapsed .count, .app.collapsed .chev, .app.collapsed .sub { display: none; }
    .app.collapsed .item { justify-content: center; padding: 10px 0; }
    .app.collapsed .nav { padding: 10px 10px; }
    .app.collapsed .nav .group-gap { height: 12px; }

    /* ================= Content ================= */
    .content { display:flex; flex-direction:column; min-width: 0; overflow: hidden; }
    .topbar { display:flex; align-items:center; gap: 14px; padding: 0 36px; min-height: 64px; border-bottom: 1px solid var(--line); background: var(--bg); }
    .crumbs { display:flex; align-items:center; gap: 8px; color: var(--muted); margin-right: auto; white-space: nowrap; overflow: hidden; font-size: 13.5px; }
    .crumbs b { color: var(--ink); font-weight: 600; }
    .crumbs .sep { color: var(--faint); }
    .name-field { display:flex; align-items:center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 38px; }
    .name-field svg { color: var(--muted); width: 16px; height: 16px; }
    .name-field input { background: none; border: 0; outline: none; width: 190px; }
    .name-field input::placeholder { color: var(--faint); }
    .page { flex: 1; overflow-y: auto; padding: 24px 32px 64px; }
    .page-inner { max-width: min(100%, 1880px); width: 100%; margin: 0 auto; }

    .ph { display:flex; align-items:flex-end; gap: 20px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
    .ph h1 { font-size: 26px; margin: 0; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
    .ph p { margin: 6px 0 0; color: var(--muted); max-width: 65ch; font-size: 14px; line-height: 1.5; }

    .btn { display:inline-flex; align-items:center; justify-content:center; gap: 8px; white-space: nowrap; border-radius: 10px; padding: 9px 16px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); text-decoration: none; transition: all .15s; }
    .btn:hover { background: var(--hover); border-color: var(--line); }
    .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 3px rgba(79,70,229,.25); }
    .btn.primary:hover { filter: brightness(1.08); box-shadow: 0 2px 6px rgba(79,70,229,.35); }
    .btn svg { width: 16px; height: 16px; }
    .btn.disabled { opacity: .5; pointer-events: none; }

    .card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
    .card-pad { padding: 24px; }
    .card h2 { font-size: 15px; font-weight: 650; margin: 0 0 16px; display:flex; align-items:center; gap: 8px; letter-spacing: -.01em; }
    .card h2 svg { color: var(--muted); width: 16px; height: 16px; }

    /* Stats */
    .stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
    @media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
    .stat { padding: 20px 22px; border-radius: 16px; }
    .stat .k { color: var(--muted); font-size: 12.5px; font-weight: 600; }
    .stat .v { font-size: 30px; font-weight: 750; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
    .stat .s { color: var(--faint); font-size: 12px; }

    .card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
    .card-pad { padding: 20px; }
    .card h2 { font-size: 14px; font-weight: 600; margin: 0 0 14px; display:flex; align-items:center; gap: 8px; }
    .card h2 svg { color: var(--muted); width: 16px; height: 16px; }

    /* Stats */
    .stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
    @media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
    .stat { padding: 16px 18px; }
    .stat .k { color: var(--muted); font-size: 12.5px; }
    .stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
    .stat .s { color: var(--faint); font-size: 12px; }

    /* Persona cards */
    .grid4 { display:grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
    .pcard { padding: 20px; display:flex; flex-direction:column; gap: 14px; transition: border-color .15s; }
    .pcard:hover { border-color: var(--line-2); }
    .p-top { display:flex; align-items:center; gap: 12px; }
    .avatar { width: 42px; height: 42px; border-radius: 12px; display:grid; place-items:center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
    .avatar.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 20px; }
    .p-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
    .pill { display:inline-flex; align-items:center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid; }
    .lv1 { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
    .lv2 { color: var(--info); background: var(--info-soft); border-color: var(--info-line); }
    .lv3 { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
    .lv4 { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
    .p-tests { color: var(--muted); margin: 0; font-size: 13px; }
    .lead { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display:grid; gap: 8px; }
    .lead .k { color: var(--muted); font-size: 11.5px; }
    .lead .v { font-weight: 500; }
    .p-actions { display:flex; gap: 8px; margin-top: auto; }
    .p-actions .btn { flex: 1; padding: 9px 10px; }
    .p-actions .btn.primary { flex: 1.6; }
    .warn-text { color: var(--bad); font-size: 12.5px; margin: 0; }

    /* Profile page */
    .hero { display:flex; gap: 18px; align-items:center; padding: 24px; margin-bottom: 16px; flex-wrap: wrap; }
    .hero h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
    .hero .meta { display:flex; gap: 12px; align-items:center; margin-top: 6px; color: var(--muted); flex-wrap: wrap; }
    .hero .grow { flex: 1; min-width: 220px; }
    .cols2 { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    .cols3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
    @media (max-width: 1000px) { .cols2, .cols3 { grid-template-columns: 1fr; } }
    dl.kv { margin: 0; display:grid; grid-template-columns: 110px 1fr; gap: 10px 14px; }
    dl.kv dt { color: var(--muted); }
    dl.kv dd { margin: 0; color: var(--ink); }
    .prose { margin: 0; color: var(--ink-2); }
    .reveal-bar { display:flex; align-items:center; gap: 14px; padding: 16px 20px; margin-bottom: 16px; border-style: dashed; color: var(--muted); }
    .reveal-bar p { margin: 0; flex: 1; }
    .obj { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--panel-2); }
    .obj:last-child { margin-bottom: 0; }
    .obj-top { display:flex; align-items:center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
    .obj q { display:block; color: var(--ink-2); font-style: italic; margin-bottom: 4px; }
    .obj .how { color: var(--muted); font-size: 13px; }

    /* Tables */
    .toolbar { display:flex; align-items:center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
    .chip { border: 1px solid var(--line-2); background: var(--panel); border-radius: 999px; padding: 6px 13px; font-size: 13px; color: var(--ink-2); }
    .chip:hover { background: var(--hover); }
    .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
    .row-item .code { display:inline-block; min-width: 34px; margin-right: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; text-align: center; font-variant-numeric: tabular-nums; }
    .info-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
    @media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }
    .info-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .info-val { margin-left: auto; font-weight: 650; color: var(--ink); text-align: right; }
    .info-none { margin-left: auto; color: var(--faint); font-size: 12.5px; }
    .row-item .na { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--faint); }
    .datebar { display:flex; align-items:center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
    .datebar .lbl2 { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-right: 2px; }
    .datebar input[type="date"] { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 9px; color: var(--ink); font: inherit; font-size: 13px; color-scheme: light dark; }
    .datebar .sep2 { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
    .datebar .grow2 { flex: 1; }
    .range-note { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; }
    .muted-cell { color: var(--faint); }
    .trainee-edit { display:inline-flex; gap: 6px; align-items:center; }
    .trainee-edit .input { width: 200px; padding: 6px 10px; }
    .link-btn { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; font-size: 13px; cursor: pointer; }
    .link-btn:hover { text-decoration: underline; }
    .name-field.need { box-shadow: 0 0 0 2px var(--bad); border-radius: 10px; }
    .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
    table { width: 100%; border-collapse: separate; border-spacing: 0; }
    th { text-align:left; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
    td { padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); font-size: 13.5px; vertical-align: middle; }
    td.strong { color: var(--ink); font-weight: 600; }
    td.wrap { white-space: normal; min-width: 160px; width: 100%; color: var(--muted); }
    tbody tr:last-child td { border-bottom: 0; }
    tbody tr { cursor: pointer; transition: background .12s ease; }
    tbody tr:hover { background: var(--hover); }
    .who { display:flex; align-items:center; gap: 10px; }
    .who .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 11.5px; }
    .badge { display:inline-flex; align-items:center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
    .badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
    .b-pass { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
    .b-dev { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
    .b-fail { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
    .b-none { color: var(--muted); background: var(--panel-2); border-color: var(--line-2); }
    .empty { padding: 48px 24px; text-align:center; color: var(--muted); }
    .empty svg { width: 28px; height: 28px; color: var(--faint); margin-bottom: 8px; }
    .mini-bar { display:inline-block; width: 56px; height: 6px; border-radius: 3px; background: var(--panel-2); vertical-align: middle; margin-right: 8px; overflow: hidden; }
    .mini-bar span { display:block; height: 100%; background: var(--accent); }

    /* Result page */
    .r-hero { display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
    @media (max-width: 900px) { .r-hero { grid-template-columns: 1fr; } }
    .r-tile { padding: 20px; }
    .r-tile .k { color: var(--muted); font-size: 12.5px; }
    .r-tile .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 4px; }
    .r-tile.pass { background: var(--ok-soft); border-color: var(--ok-line); } .r-tile.pass .v { color: var(--ok); }
    .r-tile.dev { background: var(--warn-soft); border-color: var(--warn-line); } .r-tile.dev .v { color: var(--warn); }
    .r-tile.fail { background: var(--bad-soft); border-color: var(--bad-line); } .r-tile.fail .v { color: var(--bad); }
    .meter { height: 6px; background: var(--panel-2); border-radius: 3px; margin-top: 12px; overflow: hidden; }
    .meter span { display:block; height: 100%; background: var(--accent); border-radius: 3px; }
    .alert { display:flex; gap: 12px; align-items:flex-start; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); }
    .alert b { display:block; }
    .alert span { color: var(--ink-2); }
    .row-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .row-item:last-child { border-bottom: 0; padding-bottom: 0; }
    .ri-top { display:flex; align-items:center; gap: 10px; }
    .ri-top .name { flex: 1; font-weight: 500; color: var(--ink); }
    .ri-why { color: var(--muted); font-size: 13px; margin: 4px 0 0 28px; }
    .res-ic.success { color: var(--ok); } .res-ic.failure { color: var(--bad); } .res-ic.unknown { color: var(--faint); }
    .must { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--bad); border: 1px solid var(--bad-line); background: var(--bad-soft); border-radius: 5px; padding: 1px 6px; }
    .dots { display:flex; gap: 4px; }
    .dots i { width: 10px; height: 10px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line-2); }
    .dots i.on { background: var(--accent); border-color: var(--accent); }
    .transcript { display:flex; flex-direction:column; gap: 12px; }
    .msg { max-width: 76%; padding: 10px 14px; border-radius: 14px; }
    .msg .t { font-size: 11.5px; color: var(--muted); display:block; margin-bottom: 3px; }
    .msg.customer { background: var(--panel-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
    .msg.caller { background: var(--accent-soft); border: 1px solid var(--accent-line); align-self: flex-end; border-bottom-right-radius: 4px; }
    audio { height: 36px; max-width: 100%; }
    .loading { color: var(--muted); padding: 40px 0; text-align: center; }
    .error { color: var(--bad); }

    @media (max-width: 820px) {
      .app, .app.collapsed { grid-template-columns: 72px 1fr; }
      .app .sec, .app .lbl, .app .count, .app .chev, .app .sub, .app .brand-name { display: none; }
      .app .item { justify-content: center; padding: 10px 0; }
      .app .collapse { display: none; }
      .topbar { padding: 0 16px; }
      .name-field input { width: 120px; }
      .page { padding: 20px 16px 48px; }
    }
    /* ================= Configure a call ================= */
    .steps-note { color: var(--muted); font-size: 12.5px; margin: -4px 0 10px; }
    .section-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin: 24px 0 10px; display:flex; align-items:center; gap: 10px; }
    .persona-pick { display:grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
    .pp { display:flex; align-items:center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align:left; }
    .pp:hover { border-color: var(--line-2); }
    .pp.sel { border-color: var(--accent); background: var(--accent-soft); }
    .pp .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
    .pp b { display:block; font-weight: 600; font-size: 13.5px; }
    .pp small { color: var(--muted); display: block; }
    .opt-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
    .opt { display:flex; gap: 10px; align-items:flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-align: left; }
    .opt:hover { border-color: var(--line-2); }
    .opt.sel { border-color: var(--accent-line); background: var(--accent-soft); }
    .opt b { display:block; font-weight: 600; font-size: 13px; }
    .opt small { display:block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
    .tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display:grid; place-items:center; flex-shrink: 0; background: var(--panel); margin-top: 1px; }
    .sel > .tick { background: var(--accent); border-color: var(--accent); }
    .tick svg { width: 14px; height: 14px; color: var(--accent-ink); stroke-width: 3; display: none; }
    .sel > .tick svg { display: block; }
    .draft { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--warn); border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: 5px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
    .input { width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; color: var(--ink); outline: none; }
    .input:focus { border-color: var(--accent-line); }
    .field { display:flex; flex-direction:column; gap: 6px; }
    .field label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
    .footer-bar { display:flex; align-items:center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
    .footer-bar .hint { color: var(--muted); margin-right: auto; font-size: 13px; }
    .leadcard { border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--panel-2), var(--panel)); padding: 20px; position: relative; overflow: hidden; }
    .leadcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #7C7FF7, #34D399); }
    .lc-top { display:flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
    .lc-label { font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
    .lc-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
    .leadcard dl { display:grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; }
    .leadcard dt { color: var(--muted); } .leadcard dd { margin: 0; font-weight: 500; }
    .cfg { padding: 18px; display:flex; flex-direction:column; gap: 12px; }
    .cfg h3 { margin: 0; font-size: 15px; }
    .cfg .meta-line { color: var(--muted); font-size: 12.5px; }
    .cfg .meta-line b { color: var(--ink-2); font-weight: 500; }
    .cfg-actions { display:flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
    .x-btn { background: none; border: 1px solid var(--line-2); color: var(--muted); padding: 8px 10px; border-radius: 10px; display:inline-flex; align-items:center; }
    .x-btn:hover { color: var(--bad); border-color: var(--bad-line); background: var(--bad-soft); }
    .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 60; }
    .sec-text { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
    .var-box { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; max-height: 220px; overflow: auto; }
    .setup-head { display:flex; align-items:flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 4px; flex-wrap: wrap; }
    .setup-title { font-size: 18px; margin: 0; letter-spacing: -.01em; }
    code { font-size: 12.5px; background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
    .sub-config { display:block; color: var(--muted); font-size: 12px; font-weight: 400; }