/* styles.css — extracted verbatim from ui/index.html <style> (build 281). */
    :root {
      color-scheme: light dark;
      --bg: #f3f6f8;
      --surface: #ffffff;
      --surface-2: #eef2f5;
      --surface-3: #e5ebef;
      --ink: #14212a;
      --muted: #5d6d78;
      --faint: #83919a;
      --line: #d9e1e6;
      --line-strong: #c3ced5;
      --nav: #14242d;
      --nav-ink: #edf5f7;
      --nav-muted: #a9bac2;
      --accent: #007f88;
      --accent-2: #00656d;
      --accent-soft: #d9f0ef;
      --good: #087a55;
      --good-soft: #daf2e6;
      --warn: #a75a00;
      --warn-soft: #fff0d6;
      --bad: #bb2f37;
      --bad-soft: #fce2e3;
      --danger: #bb2f37;
      --danger-soft: #fce2e3;
      --blue: #256fa8;
      --blue-soft: #e2eff9;
      --shadow: 0 10px 30px rgba(22, 43, 55, .08);
      --radius: 10px;
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --bg: #0d151a;
        --surface: #142027;
        --surface-2: #1a2931;
        --surface-3: #22343d;
        --ink: #edf4f6;
        --muted: #a9bac2;
        --faint: #7f949e;
        --line: #2a3c45;
        --line-strong: #3b4f59;
        --nav: #091015;
        --nav-ink: #f2f7f8;
        --nav-muted: #92a6af;
        --accent: #5dc5c6;
        --accent-2: #83d8d6;
        --accent-soft: #163d40;
        --good: #54c99c;
        --good-soft: #173c30;
        --warn: #f1ad5b;
        --warn-soft: #47321c;
        --bad: #ff8c91;
        --bad-soft: #48262a;
        --danger: #ff8c91;
        --danger-soft: #48262a;
        --blue: #79b9e9;
        --blue-soft: #183349;
        --shadow: 0 10px 35px rgba(0,0,0,.28);
      }
    }
    * { box-sizing: border-box; }
    html { min-width: 320px; }
    body { margin: 0; background: var(--bg); color: var(--ink); font-family: "IBM Plex Sans", sans-serif; font-size: 14px; line-height: 1.45; }
    button, input, select, textarea { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { color: inherit; }
    a { color: inherit; }
    svg { display: block; }
    .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

    .app { min-height: 100dvh; display: grid; grid-template-columns: 224px minmax(0,1fr); }
    .sidebar { position: sticky; top: 0; height: 100dvh; background: var(--nav); color: var(--nav-ink); display: flex; flex-direction: column; padding: 18px 12px 14px; z-index: 20; }
    .tenant { padding: 4px 8px 17px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 12px; }
    .tenant-label { font: 500 11px/1.2 "IBM Plex Mono", monospace; color: var(--nav-muted); text-transform: uppercase; letter-spacing: .08em; }
    .tenant-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
    .tenant-mark { width: 28px; height: 28px; display: grid; place-items: center; background: #f0a548; color: #17252d; font-weight: 700; border-radius: 6px; }
    .tenant-name { font-weight: 600; font-size: 13px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .env { margin-left: auto; color: #7ee0c1; font: 500 10px/1 "IBM Plex Mono",monospace; }
    .nav { display: grid; gap: 3px; }
    .nav button { border: 0; background: transparent; color: var(--nav-muted); width: 100%; min-height: 41px; padding: 0 10px; display: flex; align-items: center; gap: 11px; text-align: left; border-radius: 7px; cursor: pointer; position: relative; }
    .nav button:hover { background: rgba(255,255,255,.06); color: var(--nav-ink); }
    .nav button.active { background: rgba(93,197,198,.14); color: #fff; }
    .nav button.active::before { content:""; position:absolute; left:0; top:9px; bottom:9px; width:3px; background:#66d2ce; border-radius: 0 3px 3px 0; }
    .nav svg { width: 18px; height: 18px; flex: 0 0 auto; }
    .nav .count { margin-left: auto; background: #bd343c; color: white; min-width: 21px; height: 19px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; font: 600 10px/1 "IBM Plex Mono",monospace; }
    .side-footer { margin-top: auto; padding: 13px 8px 4px; border-top: 1px solid rgba(255,255,255,.12); color: var(--nav-muted); }
    .health { display: flex; align-items: center; gap: 8px; font-size: 12px; }
    .health-dot { width: 8px; height: 8px; border-radius:50%; background:#3fd49e; box-shadow: 0 0 0 3px rgba(63,212,158,.13); }
    .profile { display:flex; align-items:center; gap:9px; margin-top:15px; }
    .avatar { width: 28px; height: 28px; border-radius:50%; background:#405660; color:white; display:grid; place-items:center; font-weight:600; }
    .profile strong { display:block; color: var(--nav-ink); font-size:12px; }
    .profile span { font-size:11px; }

    .main { min-width: 0; }
    .topbar { height: 64px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom:1px solid var(--line); display:flex; align-items:center; gap:14px; padding:0 26px; position:sticky; top:0; z-index:15; backdrop-filter: blur(12px); }
    .mobile-menu { display:none; }
    .crumb { color:var(--muted); font-size:12px; }
    .crumb strong { color:var(--ink); font-weight:600; }
    .top-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
    .search { width:min(330px,30vw); position:relative; }
    .search svg { position:absolute; width:16px; height:16px; left:11px; top:50%; transform:translateY(-50%); color:var(--muted); }
    .search input { width:100%; height:36px; padding:0 12px 0 34px; background:var(--surface-2); border:1px solid transparent; border-radius:7px; color:var(--ink); outline:none; }
    .search input:focus { border-color:var(--accent); background:var(--surface); }
    .icon-btn, .btn { border:1px solid var(--line-strong); background:var(--surface); min-height:36px; border-radius:7px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:7px; font-weight:600; }
    .icon-btn { width:36px; padding:0; }
    .icon-btn svg, .btn svg { width:16px; height:16px; }
    .icon-btn:hover, .btn:hover { border-color:var(--accent); color:var(--accent-2); }
    .btn { padding:0 12px; }
    .btn.primary { background:var(--accent); color:white; border-color:var(--accent); }
    .btn:disabled { opacity:.45; cursor:not-allowed; }
    .btn.primary:hover { background:var(--accent-2); color:white; }
    .btn.danger { color:var(--bad); }
    .content { padding: 25px 26px 60px; max-width: 1540px; margin: 0 auto; }
    .view { display:none; }
    .view.active { display:block; }
    .page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
    h1 { margin:0; font-size:25px; line-height:1.15; letter-spacing:-.025em; }
    .subtitle { margin:6px 0 0; color:var(--muted); }
    .head-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
    .live-pill { display:inline-flex; align-items:center; gap:7px; border:1px solid color-mix(in srgb,var(--good) 42%,var(--line)); color:var(--good); background:var(--good-soft); padding:7px 10px; border-radius:999px; font-size:12px; font-weight:600; }
    .live-pill i { width:7px; height:7px; border-radius:50%; background:var(--good); animation:pulse 1.8s infinite; }
    @keyframes pulse { 50% { opacity:.4; } }
    @media (prefers-reduced-motion: reduce) { .live-pill i { animation:none; } }

    .metrics { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
    .metric { background:var(--surface); border:1px solid var(--line); padding:13px 14px; border-radius:var(--radius); min-height:96px; box-shadow:0 1px 0 rgba(0,0,0,.02); }
    .metric[data-view-jump] { cursor:pointer; }
    .metric[data-view-jump]:hover { border-color:var(--accent); }
    .metric-top { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:11px; }
    .metric-icon { width:24px; height:24px; border-radius:6px; background:var(--surface-2); display:grid; place-items:center; color:var(--accent-2); }
    .metric-icon svg { width:13px; height:13px; }
    .metric-value { font:600 22px/1.1 "IBM Plex Mono",monospace; margin-top:10px; letter-spacing:-.04em; }
    .delta { margin-left:7px; font:500 11px/1 "IBM Plex Sans",sans-serif; color:var(--good); }
    .metric-foot { margin-top:7px; color:var(--faint); font-size:11px; }
    .grid-main { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr); gap:14px; }
    .panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:0 1px 0 rgba(0,0,0,.02); }
    .panel + .panel { margin-top:14px; }
    .panel-head { min-height:51px; padding:0 16px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:10px; }
    .panel-head h2 { font-size:14px; margin:0; font-weight:600; }
    .panel-head p { color:var(--faint); font-size:11px; margin:0 0 0 2px; }
    .panel-head .spacer { margin-left:auto; }
    .text-link { border:0; background:none; color:var(--accent-2); padding:5px; cursor:pointer; font-weight:600; font-size:12px; }
    .text-link:hover { text-decoration:underline; }
    .text-link.danger { color:var(--danger); }
    .settings-tabs { display:flex; gap:4px; margin-bottom:16px; border-bottom:1px solid var(--line); }
    .settings-tab { border:0; background:none; padding:10px 16px; font-size:13px; font-weight:600; color:var(--muted); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-1px; }
    .settings-tab:hover { color:var(--text); }
    .settings-tab.active { color:var(--accent-2); border-bottom-color:var(--accent-2); }
    .settings-subtabs { display:flex; gap:4px; margin-bottom:14px; }
    .settings-subtabs .settings-tab { padding:8px 12px; font-size:12px; border:1px solid var(--line); border-radius:6px; margin-bottom:0; }
    .settings-subtabs .settings-tab.active { background:var(--surface); border-color:var(--accent-2); }
    .settings-tabpane { display:none; }
    .settings-tabpane.active { display:block; }
    .policy-actions { display:flex; gap:2px; align-items:center; }
    .filter-row { padding:10px 14px; display:flex; align-items:center; gap:7px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
    .chip { border:1px solid var(--line); background:var(--surface); border-radius:999px; padding:5px 10px; color:var(--muted); cursor:pointer; font-size:11px; }
    .chip:hover,.chip.active { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-2); }
    .table-wrap { width:100%; overflow-x:auto; }
    .table-wrap table { width:100%; }
    #policyTable td:nth-child(2) strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    #policyTable td:last-child { white-space:nowrap; }
    table { width:100%; border-collapse:collapse; }
    th { text-align:left; color:var(--faint); font:500 10px/1.2 "IBM Plex Mono",monospace; text-transform:uppercase; letter-spacing:.05em; padding:11px 14px; background:var(--surface-2); border-bottom:1px solid var(--line); }
    td { padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
    tbody tr:last-child td { border-bottom:0; }
    tbody tr.clickable { cursor:pointer; }
    tbody tr.clickable:hover { background:color-mix(in srgb,var(--accent-soft) 38%,transparent); }
    .event-main { display:flex; align-items:center; gap:10px; min-width:160px; }
    .event-icon { width:29px; height:29px; border-radius:7px; display:grid; place-items:center; flex:0 0 auto; }
    .event-icon svg { width:15px; height:15px; }
    .event-icon.allow { background:var(--good-soft); color:var(--good); }
    .event-icon.deny { background:var(--bad-soft); color:var(--bad); }
    .event-icon.review { background:var(--warn-soft); color:var(--warn); }
    .event-icon.rejected { background:#e2e8f0; color:#475569; }
    .event-title { font-weight:600; font-size:12px; }
    .event-sub { color:var(--muted); font:400 10px/1.35 "IBM Plex Mono",monospace; margin-top:2px; }
    .badge { display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:4px 8px; font-size:10px; font-weight:600; white-space:nowrap; }
    .badge.allow { color:var(--good); background:var(--good-soft); }
    .badge.deny { color:var(--bad); background:var(--bad-soft); }
    .badge.review { color:var(--warn); background:var(--warn-soft); }
    .badge.rejected { color:#475569; background:#e2e8f0; }
    .badge.info { color:var(--blue); background:var(--blue-soft); }
    .mono { font-family:"IBM Plex Mono",monospace; font-size:10px; color:var(--muted); }
    .risk-list { padding:6px 16px 12px; }
    .risk-item { display:grid; grid-template-columns:29px 1fr auto; gap:10px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }
    .risk-item:last-child { border-bottom:0; }
    .rank { font:500 12px/29px "IBM Plex Mono",monospace; width:29px; text-align:center; border-radius:6px; background:var(--surface-2); color:var(--muted); }
    .risk-item strong { display:block; font-size:12px; }
    .risk-item small { display:block; color:var(--muted); margin-top:2px; }
    .risk-count { font:600 14px/1 "IBM Plex Mono",monospace; color:var(--ink); }
    .coverage { padding:16px; }
    .coverage-ring { width:116px; height:116px; border-radius:50%; margin:5px auto 16px; display:grid; place-items:center; background:conic-gradient(var(--accent) 0 93%,var(--surface-3) 93% 100%); position:relative; }
    .coverage-ring::after { content:""; position:absolute; inset:11px; border-radius:50%; background:var(--surface); }
    .coverage-ring div { position:relative; z-index:1; text-align:center; }
    .coverage-ring strong { font:600 23px/1 "IBM Plex Mono",monospace; display:block; }
    .coverage-ring small { color:var(--muted); }
    .legend-row { display:flex; align-items:center; gap:8px; margin-top:8px; font-size:12px; }
    .legend-row i { width:8px; height:8px; border-radius:2px; background:var(--good); }
    .legend-row:nth-child(2) i { background:var(--warn); }
    .legend-row span:last-child { margin-left:auto; font-family:"IBM Plex Mono",monospace; }

    .toolbar { display:flex; align-items:center; gap:9px; margin-bottom:12px; flex-wrap:wrap; }
    .toolbar input[type="text"], .toolbar input[type="date"] { height:36px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); border-radius:7px; padding:0 10px; }
    .toolbar .search { width:280px; }
    .select { height:36px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); border-radius:7px; padding:0 30px 0 10px; }
    .toolbar .push { margin-left:auto; }
    .policy-grid { display:grid; grid-template-columns:1fr; gap:14px; }
    .policy-list { padding:5px 16px 12px; }
    .policy-row { display:grid; grid-template-columns:36px 1fr auto; gap:11px; align-items:start; padding:15px 0; border-bottom:1px solid var(--line); }
    .policy-row:last-child { border-bottom:0; }
    .policy-num { width:34px; height:34px; border:1px solid var(--line); background:var(--surface-2); display:grid; place-items:center; border-radius:7px; font:500 10px "IBM Plex Mono",monospace; color:var(--muted); }
    .policy-row h3 { margin:0; font-size:13px; }
    .policy-row p { margin:4px 0 7px; color:var(--muted); font-size:12px; }
    .tags { display:flex; gap:5px; flex-wrap:wrap; }
    .tag { padding:3px 6px; background:var(--surface-2); border-radius:4px; color:var(--muted); font:500 9px "IBM Plex Mono",monospace; }
    .switch { width:35px; height:20px; border-radius:12px; background:var(--line-strong); border:0; padding:2px; cursor:pointer; transition:.2s; }
    .switch::after { content:""; display:block; width:16px; height:16px; background:white; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:.2s; }
    .switch.on { background:var(--good); }
    .switch.on::after { transform:translateX(15px); }
    .simulator { padding:16px; }
    .simulator label { display:block; color:var(--muted); font-size:11px; margin:11px 0 5px; }
    .simulator label:first-child { margin-top:0; }
    .simulator input,.simulator select,.simulator textarea { width:100%; border:1px solid var(--line-strong); background:var(--bg); color:var(--ink); border-radius:6px; padding:9px 10px; outline:none; }
    .simulator textarea { min-height:87px; resize:vertical; font-family:"IBM Plex Mono",monospace; font-size:11px; }
    .simulator input:focus,.simulator select:focus,.simulator textarea:focus { border-color:var(--accent); }
    .simulator .btn { width:100%; margin-top:13px; }
    /* ---- New Policy form (reuses modal shell + input look) ---- */
    .policy-form label { display:block; color:var(--muted); font-size:11px; margin:12px 0 5px; }
    .policy-form label:first-child { margin-top:0; }
    .policy-form input[type=text],.policy-form input[type=number],.policy-form select { width:100%; border:1px solid var(--line-strong); background:var(--bg); color:var(--ink); border-radius:6px; padding:9px 10px; outline:none; }
    .policy-form input:focus,.policy-form select:focus { border-color:var(--accent); }
    .policy-form .hint { font-size:11px; color:var(--muted); margin-top:4px; }
    .policy-form .mono { font-family:"IBM Plex Mono",monospace; font-size:11px; }
    .cond-row { display:grid; grid-template-columns:1fr 84px 1fr; gap:8px; margin-top:5px; }
    label.cond-toggle { display:flex !important; align-items:center; gap:8px; font-size:12px; color:var(--ink); cursor:pointer; }
    label.cond-toggle input { width:auto; accent-color:var(--accent); }
    .decide-radios { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
    .decide-radios label { margin:0 !important; border:1px solid var(--line-strong); border-radius:7px; padding:10px 6px; text-align:center; font-size:12px; color:var(--ink); cursor:pointer; line-height:1.5; }
    .decide-radios label small { color:var(--muted); font-size:10px; letter-spacing:.06em; }
    .decide-radios input { display:none; }
    .decide-radios label:has(input:checked) { border-color:var(--accent); background:var(--surface-3); }
    .switch-row { display:flex; align-items:center; gap:10px; margin-top:14px; font-size:12px; }
    .form-error { display:none; color:var(--bad); font-size:12px; margin-top:10px; }
    .form-error.show { display:block; }
    .sim-result { margin-top:13px; padding:12px; border:1px solid var(--line); border-radius:7px; background:var(--surface-2); display:none; }
    .sim-result.show { display:block; }
    .sim-result strong { display:flex; align-items:center; gap:7px; color:var(--warn); }
    /* Simulator banner — practice only, always visible at the top of the form. */
    .sim-banner { margin-bottom:13px; padding:11px 13px; background:var(--warn-soft); color:var(--warn); border-radius:7px; font-size:13px; }
    .sim-synth-note { margin-bottom:13px; padding:11px 13px; background:var(--accent-soft); color:var(--accent-2); border-radius:7px; font-size:13px; }
    .sim-synth-note.warn { background:var(--warn-soft); color:var(--warn); }
    .req { color:var(--bad); font-weight:700; }
    .field-missing { border-color:var(--bad) !important; box-shadow:0 0 0 2px var(--bad-soft, rgba(220,60,60,.18)); }
    .sim-hint { margin:10px 0 4px; padding:11px 13px; background:var(--accent-soft); color:var(--accent-2); border-radius:7px; font-size:13px; }
    /* Post-run next step — an invitation, not a demand. */
    .sim-result .sim-next { margin-top:13px; padding-top:13px; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
    .sim-result .sim-next .sim-next-title { font-weight:700; font-size:13px; }
    .sim-result .sim-next p { color:var(--muted); font-size:12px; margin:0; }
    .sim-result .sim-next .btn { align-self:flex-start; }
    .sim-result p { margin:6px 0 0; color:var(--muted); font-size:11px; }

    .cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
    /* Inventory sections under each platform tab (build 287). */
    .inv-sec { margin-bottom:22px; }
    .inv-sec-title { font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 0 10px; }
    .inv-tools-group { border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin-bottom:10px; background:var(--surface); }
    .inv-tools-head { display:flex; gap:10px; align-items:baseline; margin-bottom:8px; }
    .inv-tools-list { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12px; color:var(--muted); }
    .inv-tools-filter { width:100%; max-width:340px; margin:2px 0 8px; }
    .inv-tools-toggle { margin-top:8px; }
    .inv-tools-match { color:var(--accent,#2563eb); }
    .entity-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px; }
    .entity-top { display:flex; gap:11px; align-items:center; }
    .entity-logo { width:38px; height:38px; border-radius:8px; background:var(--surface-2); display:grid; place-items:center; color:var(--accent-2); font-weight:700; }
    .entity-card h3 { margin:0; font-size:13px; }
    .entity-card p { margin:3px 0 0; color:var(--muted); font-size:11px; }
    .entity-data { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:15px; }
    .entity-data div { background:var(--surface-2); padding:9px; border-radius:6px; }
    .entity-data span { display:block; color:var(--faint); font-size:9px; text-transform:uppercase; letter-spacing:.05em; }
    .entity-data strong { display:block; margin-top:3px; font:500 11px "IBM Plex Mono",monospace; }
    .entity-actions { display:flex; margin-top:13px; gap:7px; }
    .entity-actions .btn { flex:1; min-height:32px; font-size:11px; }

    .approval-list { display:grid; gap:10px; }
    .approval { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); display:grid; grid-template-columns:5px minmax(0,1fr) auto; overflow:hidden; }
    .approval::before { content:""; background:var(--warn); }
    .approval-body { padding:15px 16px; }
    .approval-top { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
    .approval h3 { margin:0; font-size:13px; }
    .approval p { margin:7px 0 0; color:var(--muted); font-size:12px; }
    .approval-detail { display:flex; gap:16px; margin-top:11px; color:var(--muted); font:400 10px "IBM Plex Mono",monospace; flex-wrap:wrap; }
    .approval-actions { padding:15px; display:flex; flex-direction:column; justify-content:center; gap:7px; border-left:1px solid var(--line); min-width:122px; }
    .approval-actions .btn { min-height:32px; font-size:11px; }
    .empty { text-align:center; padding:50px 20px; color:var(--muted); }

    .audit-hero { display:grid; grid-template-columns:1.3fr .7fr; gap:14px; margin-bottom:14px; }
    .audit-summary { padding:18px; }
    .audit-summary h2 { margin:0 0 4px; font-size:15px; }
    .audit-summary p { color:var(--muted); margin:0; font-size:12px; }
    .audit-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:17px; }
    .audit-stats div { background:var(--surface-2); border-radius:7px; padding:12px; }
    .audit-stats strong { font:600 18px "IBM Plex Mono",monospace; display:block; }
    .audit-stats span { color:var(--muted); font-size:10px; }
    .compliance { padding:16px; }
    .compliance-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
    .compliance-row:last-child { border:0; }
    .help-link { color:var(--accent); text-decoration:none; font-weight:600; }
    .help-link:hover { text-decoration:underline; }
    .check { width:20px; height:20px; border-radius:50%; background:var(--good-soft); color:var(--good); display:grid; place-items:center; }
    .check svg { width:12px; height:12px; }
    .compliance-row strong { font-size:11px; }
    .compliance-row span { margin-left:auto; color:var(--good); font-size:10px; }

    .adapter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .adapter { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:17px; }
    .adapter-head { display:flex; gap:12px; align-items:center; }
    .adapter-logo { width:44px; height:44px; border-radius:9px; display:grid; place-items:center; background:var(--surface-2); color:var(--accent-2); font-weight:700; font-size:17px; }
    .adapter h3 { margin:0; font-size:14px; }
    .adapter p { margin:3px 0 0; color:var(--muted); font-size:11px; }
    .adapter-status { margin-left:auto; text-align:right; }
    .adapter-status small { display:block; color:var(--faint); margin-top:3px; }
    .adapter-body { margin-top:15px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
    .adapter-body div { border-top:1px solid var(--line); padding-top:9px; }
    .adapter-body span { color:var(--faint); font-size:9px; text-transform:uppercase; }
    .adapter-body strong { display:block; margin-top:4px; font:500 11px "IBM Plex Mono",monospace; }
    .adapter-actions { display:flex; gap:8px; margin-top:15px; }
    .adapter-actions .btn { min-height:33px; font-size:11px; }

    .modal-backdrop { position:fixed; inset:0; background:rgba(4,12,16,.58); z-index:100; display:none; align-items:center; justify-content:center; padding:18px; }
    .modal-backdrop.open { display:flex; }
    .modal { width:min(660px,100%); max-height:min(720px,90dvh); overflow:auto; background:var(--surface); border:1px solid var(--line-strong); border-radius:12px; box-shadow:0 28px 70px rgba(0,0,0,.28); }
    .modal-head { display:flex; align-items:flex-start; gap:12px; padding:18px 20px; border-bottom:1px solid var(--line); }
    .modal-head h2 { margin:0; font-size:17px; }
    .modal-head p { margin:4px 0 0; color:var(--muted); font:400 10px "IBM Plex Mono",monospace; }
    .modal-head .icon-btn { margin-left:auto; flex:0 0 auto; }
    .modal-body { padding:20px; }
    .decision-banner { display:flex; gap:12px; padding:13px; background:var(--bad-soft); border-radius:8px; color:var(--bad); align-items:flex-start; }
    .decision-banner svg { width:20px; height:20px; flex:0 0 auto; }
    .decision-banner strong { display:block; }
    .decision-banner span { color:var(--muted); font-size:11px; }
    .detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }
    .detail-grid div { border-bottom:1px solid var(--line); padding-bottom:10px; }
    .detail-grid span { display:block; color:var(--faint); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
    .detail-grid strong { display:block; margin-top:4px; font-size:12px; }
    .code { margin-top:16px; background:#0c171d; color:#c8e2e2; border-radius:8px; padding:14px; overflow-wrap:anywhere; font:400 11px/1.6 "IBM Plex Mono",monospace; }
    .modal-foot { padding:14px 20px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:8px; }
    .guide-steps { margin:0; padding-left:20px; display:grid; gap:14px; }
    .guide-steps li { line-height:1.75; }
    .guide-steps .mono { background:var(--code-bg,#0f1a20); color:#e8eef2; padding:2px 6px; border-radius:4px; }
    /* role gating: non-admins never see admin controls; viewers are read-only */
    body[data-role="viewer"] .admin-only, body[data-role="approver"] .admin-only { display:none !important; }
    body[data-role="viewer"] .approver-only { display:none !important; }
    body[data-role="approver"] .admin-only, body[data-role="viewer"] .admin-only { display:none !important; }
    /* deploy-345: admins manage themselves in the Users tab, so the
       Your account panel (self-service for everyone else) hides for them */
    body[data-role="admin"] .hide-for-admin { display:none !important; }
    /* auth screens reuse the wizard shell */
    .qr-box { background:#fff; border-radius:10px; padding:12px; display:inline-block; margin:10px 0; }
    .qr-box svg { display:block; width:200px; height:200px; }
    .secret-code { font-family:"IBM Plex Mono",monospace; font-size:13px; background:var(--bg); border:1px dashed var(--line-strong); border-radius:8px; padding:8px 12px; user-select:all; word-break:break-all; }
    .logout-btn { margin-left:auto; }
    /* first-run setup wizard */
    .wizard-backdrop { position:fixed; inset:0; z-index:300; background:var(--bg); display:none; align-items:flex-start; justify-content:center; padding:44px 18px; overflow:auto; }
    .wizard-backdrop.open { display:flex; }
    .wizard { width:min(600px,100%); background:var(--surface); border:1px solid var(--line-strong); border-radius:14px; padding:28px; box-shadow:var(--shadow); }
    .wizard h1 { margin:0; font-size:20px; }
    .wizard .subtitle { color:var(--muted); font-size:12px; margin:6px 0 0; }
    .wizard-steps { display:flex; gap:6px; margin:18px 0 4px; }
    .wizard-steps i { flex:1; height:4px; border-radius:2px; background:var(--line); }
    .wizard-steps i.done { background:var(--accent); }
    .policy-form input[type=password] { width:100%; border:1px solid var(--line-strong); background:var(--bg); color:var(--ink); border-radius:6px; padding:9px 10px; outline:none; }
    .wizard-nav { display:flex; justify-content:space-between; gap:8px; margin-top:22px; }
    .env-tabs { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
    .env-card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:15px; margin-bottom:12px; }
    .env-card.active-env { border-color:var(--accent); }
    .env-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
    .env-head h3 { margin:0; font-size:14px; text-transform:capitalize; }
    .env-head .btn { margin-left:auto; }
    .kv2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
    .toast { position:fixed; right:22px; bottom:22px; z-index:200; background:var(--ink); color:var(--surface); padding:11px 14px; border-radius:8px; box-shadow:var(--shadow); transform:translateY(20px); opacity:0; pointer-events:none; transition:.2s; font-size:12px; }
    .toast.show { transform:translateY(0); opacity:1; pointer-events:auto; }
    .toast.error { background:#7f1d1d; padding-right:34px; }
    .toast-x { position:absolute; right:8px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--surface); font-size:16px; line-height:1; cursor:pointer; padding:2px 4px; }
    .help-icon { width:26px; height:26px; border-radius:50%; border:1px solid var(--line-strong); background:var(--surface); color:var(--muted); font-size:13px; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex:none; }
    .help-icon:hover { border-color:var(--accent); color:var(--accent-2); }

    @media (max-width: 1050px) {
      .metrics { grid-template-columns:repeat(2,1fr); }
      .grid-main,.policy-grid { grid-template-columns:1fr; }
      .cards { grid-template-columns:repeat(2,1fr); }
      .adapter-grid { grid-template-columns:1fr; }
    }
    @media (max-width: 760px) {
      .app { display:block; }
      .sidebar { display:none; position:fixed; left:0; top:0; width:224px; box-shadow:20px 0 40px rgba(0,0,0,.25); }
      .sidebar.open { display:flex; }
      .mobile-menu { display:inline-flex; }
      .topbar { height:57px; padding:0 14px; }
      .crumb { display:none; }
      .topbar .search { width:auto; flex:1; }
      .topbar .search input { min-width:0; }
      .top-actions { margin-left:0; flex:1; }
      .top-actions > .btn { display:none; }
      .content { padding:18px 14px 42px; }
      h1 { font-size:22px; }
      .page-head { align-items:flex-start; }
      .head-actions .btn .btn-label { display:none; }
      .metrics { grid-template-columns:1fr 1fr; gap:8px; }
      .metric { min-height:108px; padding:13px; }
      .metric-value { font-size:22px; }
      .cards { grid-template-columns:1fr; }
      .audit-hero { grid-template-columns:1fr; }
      .approval { grid-template-columns:4px 1fr; }
      .approval-actions { grid-column:2; border-left:0; border-top:1px solid var(--line); flex-direction:row; }
      .approval-actions .btn { flex:1; }
      .table-wrap table,.table-wrap thead,.table-wrap tbody,.table-wrap tr,.table-wrap td { display:block; }
      .table-wrap thead { display:none; }
      .table-wrap tr { border-bottom:1px solid var(--line); padding:12px 14px; }
      .table-wrap tr:last-child { border-bottom:0; }
      .table-wrap td { border:0; padding:4px 0; }
      .table-wrap td[data-label]::before { content:attr(data-label); display:inline-block; min-width:72px; color:var(--faint); font:500 9px "IBM Plex Mono",monospace; text-transform:uppercase; }
      .table-wrap td:first-child::before { display:none; }
      .toolbar .search { width:100%; }
      .toolbar .push { margin-left:0; }
      .detail-grid { grid-template-columns:1fr; }
      .adapter-body { grid-template-columns:1fr 1fr; }
    }
    @media (max-width: 430px) {
      .metrics { grid-template-columns:1fr; }
      .metric { min-height:auto; }
      .page-head { display:block; }
      .head-actions { margin-top:12px; justify-content:flex-start; }
      .audit-stats { grid-template-columns:1fr; }
      .entity-data { grid-template-columns:1fr 1fr; }
      .top-actions .icon-btn { display:none; }
    }

    /* Welcome page */
    .welcome-intro { color:var(--muted); font-size:13px; margin:6px 0 0; max-width:760px; }
    /* Welcome journey — Learn / Play / Deploy, modelled on the
       ServiceNow Build Access home: three cards over a stage line.
       Same card structure as the stepper; the line underneath shows
       which stage you're on. */
    .welcome-journey { margin-bottom:16px; }
    .journey-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
    .journey-card { display:flex; flex-direction:column; gap:8px; border:1px solid var(--accent); border-radius:12px; padding:14px; background:var(--surface); }
    .journey-card.current { box-shadow:0 2px 10px rgba(15,40,30,.12); }
    .journey-card.done { opacity:.75; }
    .journey-icon { flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); color:var(--accent); }
    .journey-card.current .journey-icon { border-color:var(--accent); }
    .journey-card.done .journey-icon { background:var(--good); border-color:var(--good); color:#fff; }
    .journey-card strong { font-size:13px; }
    .journey-card p { color:var(--muted); font-size:12px; margin:0; }
    .journey-card .btn { align-self:flex-start; margin-top:auto; }
    .journey-track { list-style:none; margin:12px 0 0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); position:relative; }
    .journey-track::before { content:''; position:absolute; top:5px; left:16%; right:16%; height:2px; background:var(--line); }
    .journey-track li { position:relative; text-align:center; font-size:12px; color:var(--muted); padding-top:14px; }
    .journey-track li::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:12px; height:12px; border-radius:50%; background:var(--surface); border:2px solid var(--line); }
    .journey-track li.done::before { background:var(--good); border-color:var(--good); }
    .journey-track li.current { color:var(--text); font-weight:700; }
    .journey-track li.current::before { border-color:var(--accent); background:var(--accent); }
    @media (max-width: 900px){
      .journey-cards { grid-template-columns:1fr; }
    }
    /* Step 2 · Play (the prebuilt sample) — its own guided path. Same card
       structure as the stepper, but a soft accent tint sets the section
       apart from the white sections around it. */
    #prebuiltPanel { background:var(--accent-soft); border-color:color-mix(in srgb, var(--accent) 45%, var(--line)); }
    #learnPath { background:var(--accent-soft); border-color:color-mix(in srgb, var(--accent) 45%, var(--line)); } /* 302: Learn wears the same teaching tint as Play (Linda, 2026-11-13) */
    .prebuilt-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:14px 16px; }
    .prebuilt-card { display:flex; flex-direction:column; gap:8px; border:1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius:10px; padding:14px; background:var(--surface); }
    .prebuilt-card .prebuilt-step { font-size:13px; font-weight:700; }
    .prebuilt-card p { color:var(--muted); font-size:12px; margin:0; }
    .prebuilt-card .btn { align-self:flex-start; margin-top:auto; }
    /* The deploy card reads as the path ahead, not a wall: dashed until the
       simulation has run, solid once it is the live next step. */
    .prebuilt-card.prebuilt-next { border-style:dashed; }
    .prebuilt-card.prebuilt-next.ready { border-style:solid; border-color:var(--accent); }
    @media (max-width: 900px){
      .prebuilt-cards { grid-template-columns:1fr; }
    }
    .prebuilt-intro { padding:12px 16px 0; color:var(--muted); font-size:12.5px; margin:0; max-width:840px; }
    /* The one path sentence above the journey cards. */
    .welcome-path-line { color:var(--muted); font-size:13px; margin:0 0 10px; max-width:840px; }
    .welcome-path-line strong { color:var(--text); }
    /* Learning path — the Step 1 tour: five stops, each says what you'll
       see before its button takes you there. A stop reads visited once
       its button has been clicked (localStorage), number turns green. */
    .learn-intro { padding:12px 16px 0; color:var(--muted); font-size:12.5px; margin:0; max-width:840px; }
    .learn-lessons { list-style:none; margin:0; padding:12px 16px 16px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
    @media (max-width:820px){ .learn-lessons { grid-template-columns:1fr; } }
    .learn-hint { display:flex; align-items:flex-start; gap:12px; border:1px dashed var(--line); border-radius:10px; padding:12px 14px; background:var(--surface); }
    .learn-hint .btn { flex:none; align-self:center; }
    .learn-lesson { display:flex; align-items:flex-start; gap:12px; border:1px solid var(--line); border-radius:10px; padding:12px 14px; background:var(--surface); }
    .learn-num { flex:none; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); color:var(--accent); font-weight:700; font-size:13px; }
    .learn-lesson.visited .learn-num { background:var(--good); border-color:var(--good); color:#fff; }
    .learn-body { flex:1; min-width:0; }
    .learn-body strong { font-size:13px; }
    .learn-body p { color:var(--muted); font-size:12px; margin:3px 0 0; }
    .learn-state { flex:none; font-size:12px; color:var(--good); font-weight:600; padding-top:5px; }
    .learn-lesson .btn { flex:none; align-self:center; }
    /* How-to-start stepper: the green "what satisfied this step" note. */
    .welcome-step-done-note { font-size:12px; color:var(--good); font-weight:600; }
    /* How to start (Step 3 · Deploy) — the teaching panel: six stations
       that show the setup route without doing any of it. Mirrors the
       Learn list's shape so the two teaching surfaces read as siblings. */
    .hs-intro { padding:12px 16px 0; color:var(--muted); font-size:12.5px; margin:0; max-width:840px; }
    .hs-stations { list-style:none; margin:0; padding:12px 16px 16px; display:flex; flex-direction:column; gap:10px; }
    .hs-station { display:flex; align-items:flex-start; gap:12px; border:1px solid var(--line); border-radius:10px; padding:12px 14px; background:var(--surface); }
    .hs-num { flex:none; width:28px; height:28px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); color:var(--accent); font-weight:700; font-size:13px; }
    .hs-body { flex:1; min-width:0; }
    .hs-body strong { font-size:13px; }
    .hs-body p { color:var(--muted); font-size:12px; margin:3px 0 0; }
    .hs-body p b { color:var(--text); }
    .hs-how { margin-top:8px; }
    .hs-how summary { cursor:pointer; font-size:12px; font-weight:600; color:var(--accent); }
    .hs-how ol { margin:8px 0 2px; padding-left:18px; color:var(--muted); font-size:12px; }
    .hs-how ol li { margin:3px 0; }
    /* Prebuilt arrival strip above the simulator (Policy Studio): where
       you are, what just ran, what to try next. Dismissible. */
    .sim-orient { margin:0 16px 14px; padding:12px 14px; background:var(--accent-soft); border:1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius:8px; font-size:13px; display:flex; gap:12px; align-items:flex-start; }
    .sim-orient[hidden] { display:none; }
    .sim-orient-body { flex:1; min-width:0; }
    .sim-orient p { color:var(--muted); font-size:12.5px; margin:4px 0 0; }
    .sim-orient .btn { flex:none; }
    /* Help cards — the explore-and-learn pattern: the landing page is a
       scannable card grid, one line each; the full guide lives on its own
       detail page (the arrow). Every color is a theme variable, so dark
       mode stays dark — no hardcoded light surface. */
    #help-howto.active, #help-pages.active, #help-faq.active { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
    .help-card { margin:0; padding:14px 16px; position:relative; }
    /* Help cards get real breathing room (Linda, 2026-11-12): the bare
       .panel has no padding, so card text and the Learn-more button sat
       flush against the border. 16px sides match .panel-head; this one
       rule covers How-to, Pages and FAQ cards alike — they all share
       the .help-card structure. */
    .help-card-head { display:flex; flex-direction:column; gap:4px; cursor:pointer; padding-right:52px; }
    .help-card-headrow { display:flex; align-items:baseline; gap:8px; }
    .help-card-title { font-size:13px; }
    .help-card-title a { color:inherit; text-decoration:none; }
    .help-card-title a:hover { color:var(--accent); }
    .help-card-summary { color:var(--muted); font-size:12px; }
    .help-card-more { position:absolute; top:12px; right:12px; margin:0; font-size:17px; line-height:1; padding:4px 12px; }
    .help-card-body { display:none; }
    /* deploy-292: help cards invite the eye (Linda) — an icon chip like
       the Welcome journey cards, a bigger title, room to breathe, and
       bodies typeset to their subject: heads, steps, lists. */
    .help-card-headrow { align-items:center; }
    .help-card-icon { flex:none; width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); color:var(--accent); margin-right:2px; }
    .help-card-icon svg { width:15px; height:15px; }
    .help-card-title { font-size:14px; }
    .help-card-summary { font-size:12.5px; line-height:1.5; }
    .help-card-body { font-size:13px; color:var(--muted); line-height:1.6; padding-top:6px; }
    .help-card-body p { margin:0 0 8px; }
    .help-card-body h4 { color:var(--text); font-size:13px; margin:14px 0 6px; }
    .help-card-body h4:first-child { margin-top:2px; }
    .help-card-body ul, .help-card-body ol { margin:0 0 8px; padding-left:19px; }
    .help-card-body li { margin:3px 0; }
    /* Help cards expand IN PLACE (Linda, 2026-11-12): clicking a card —
       or its arrow — opens the full text right under the summary;
       clicking again closes it. There is no separate article page. The
       old #helpArticle detail view is retired and never shown. */
    #helpArticle { display:none !important; }
    .help-card.open .help-card-body { display:block; }
    /* "Need help?" on Welcome — two cards, same journey language. */
    .journey-cards.two-col { grid-template-columns:repeat(2,1fr); }
    @media (max-width: 900px){
      #help-howto.active, #help-pages.active, #help-faq.active { grid-template-columns:1fr; }
      .journey-cards.two-col { grid-template-columns:1fr; }
    }
    .welcome-stepper { list-style:none; margin:0; padding:4px 0; display:grid; grid-template-columns:repeat(5,1fr); gap:12px; position:relative; }
    .welcome-stepper::before { content:''; position:absolute; top:37px; left:10%; right:10%; height:2px; background:var(--line); }
    .welcome-step { position:relative; display:flex; flex-direction:column; gap:10px; border:1px solid var(--line); border-radius:12px; padding:14px; background:var(--surface); }
    .welcome-step.next { border-color:var(--accent); }
    .welcome-step.done { opacity:.7; }
    .welcome-step-rail { display:flex; justify-content:center; position:relative; }
    .welcome-step-icon { flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--surface); border:1px solid var(--line); color:var(--accent); position:relative; z-index:1; }
    .welcome-step.done .welcome-step-icon { background:var(--good); border-color:var(--good); color:#fff; }
    .welcome-step-body strong { font-size:13px; display:block; }
    .welcome-step-body p { color:var(--muted); font-size:12px; margin:4px 0 0; }
    .welcome-step-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:auto; }
    @media (max-width: 900px){
      .welcome-stepper { grid-template-columns:1fr; }
      .welcome-stepper::before { display:none; }
      .welcome-step { flex-direction:row; align-items:flex-start; flex-wrap:wrap; padding:12px 14px; }
      .welcome-step:not(:last-child) .welcome-step-rail::after { content:''; position:absolute; top:40px; bottom:-12px; left:50%; width:2px; background:var(--line); }
      .welcome-step-body { flex:1; min-width:0; }
      .welcome-step-actions { margin-top:0; }
    }

/* Help Center hero (299): the search is the opening action — big,
   centered, "Describe your issue"; matching topics surface as you type. */
.help-hero{max-width:640px;margin:18px auto 6px}
.help-hero input{width:100%;padding:13px 18px;border:1px solid var(--line);border-radius:999px;font-size:15px;background:var(--bg);box-shadow:0 1px 4px rgba(0,0,0,.06)}
.help-hero input:focus{outline:2px solid var(--accent);outline-offset:1px}
.help-hero{position:relative}
.help-suggest{position:absolute;left:0;right:0;top:calc(100% + 6px);background:var(--panel,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.14);z-index:40;overflow:hidden}
.help-suggest-item{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 16px;background:none;border:none;font-size:14px;cursor:pointer;color:inherit}
.help-suggest-item:hover{background:var(--accent-soft,#f3f6ff)}
.help-suggest-tab{font-size:11px;color:var(--muted);white-space:nowrap}

    /* AI insights page + Overview teaser (deploy-354) */
    .ix-teaser { display:flex; align-items:center; gap:12px; padding:14px 16px; }
    .ix-teaser-icon { color:var(--accent); display:flex; flex:none; }
    .ix-teaser-icon svg { width:22px; height:22px; }
    .ix-teaser-body { display:flex; flex-direction:column; gap:2px; }
    .ix-teaser-body strong { font-size:14px; }
    .ix-teaser-body span { color:var(--muted); font-size:13px; }
    .ix-empty { padding:0 16px 14px; color:var(--muted); font-size:13px; line-height:1.55; }
    .ix-sec { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin:14px 0 6px; }
    .ix-att-row { display:flex; gap:9px; align-items:baseline; padding:4px 0; font-size:13px; }
    .ix-dot { width:8px; height:8px; border-radius:50%; flex:none; position:relative; top:-1px; }
    .ix-dot.red { background:var(--bad); }
    .ix-dot.amber { background:var(--warn); }
    .ix-quiet { font-size:13px; color:var(--muted); padding:2px 0 4px; }
    .ix-tiles { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:2px 16px 4px; }
    .ix-tile { border:1px solid var(--line); border-radius:10px; padding:10px 12px; }
    .ix-tile .lab { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.07em; }
    .ix-tile .num { font-size:24px; font-weight:650; margin:2px 0; }
    .ix-tile .sub { font-size:12px; color:var(--muted); }
    .ix-ranks { display:grid; grid-template-columns:1fr; gap:2px; padding:0 16px 10px; }
    .ix-rk { display:flex; align-items:center; gap:10px; font-size:13px; padding:3px 0; }
    .ix-rk .nm { width:190px; flex:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ix-rk .bar { flex:1; height:6px; background:var(--line); border-radius:3px; overflow:hidden; }
    .ix-rk .bar i { display:block; height:100%; background:var(--accent); border-radius:3px; }
    .ix-rk .ct { color:var(--muted); font-size:12px; white-space:nowrap; }
    @media (max-width: 760px){ .ix-tiles{grid-template-columns:repeat(2,1fr)} .ix-rk .nm{width:120px} }

    .ix-click { cursor:pointer; border-radius:8px; }
    .ix-click .ix-go { margin-left:auto; color:var(--muted); }
    .ix-click:hover .ix-go { color:var(--accent); }
    .ix-drill { color:var(--accent); text-decoration:none; }
    .ix-drill:hover { text-decoration:underline; }

    .ix-msg { font-size:13.5px; line-height:1.55; padding:8px 10px; border-radius:10px; margin:6px 0; border:1px solid var(--line); }
    .ix-msg.u { background:var(--bg); }
    .ix-msg .who { font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); display:block; margin-bottom:2px; }
