/* Sales Hub (Dynamics-style) shell + Premier NX Agent layer. Demo only, synthetic data. */
:root {
  --top: #0f2347;
  --top-ink: #ffffff;
  --bg: #f3f3f3;
  --card: #ffffff;
  --ink: #242424;
  --ink2: #424242;
  --muted: #616161;
  --faint: #8a8886;
  --line: #e0e0e0;
  --line2: #f0f0f0;
  --hover: #f5f5f5;
  --sel: #ebf3fc;
  --brand: #0f6cbd;
  --brand-d: #115ea3;
  --brand-bg: #ebf3fc;
  --ai: #6544d6;
  --ai-d: #4f32b8;
  --ai-bg: #f4f1ff;
  --ai-line: #ddd3fb;
  --ok: #0e700e;
  --ok-bg: #f1faf1;
  --ok-line: #9fd89f;
  --warn: #8a4b00;
  --warn-bg: #fff6dc;
  --warn-line: #f4d38a;
  --bad: #b10e1c;
  --bad-bg: #fdf3f4;
  --bad-line: #eeacb2;
  --hq: #9a3a00;
  --hq-bg: #fff1e8;
  --hq-line: #f5c4a3;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow: 0 0 2px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.10);
  --shadow-lg: 0 0 2px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.16);
  --s1: #2a78d6; /* chart series (blue) */
  --s1-soft: #86b6ef;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-d); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
svg.i.fill { fill: currentColor; stroke: none; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- App frame ---------- */
#app { display: flex; flex-direction: column; height: 100vh; min-width: 1200px; }
.topbar { height: 48px; flex: none; background: var(--top); color: var(--top-ink); display: flex; align-items: center; gap: 4px; padding: 0 8px 0 0; }
.waffle { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: #fff; }
.waffle:hover, .tb-btn:hover { background: rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.brand .sep { width: 1px; height: 18px; background: rgba(255,255,255,.45); }
.brand .app { font-weight: 600; }
.tb-search { margin: 0 auto; width: 380px; height: 30px; background: rgba(255,255,255,.92); color: var(--ink); border-radius: 4px; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.tb-search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 13px; }
.tb-right { display: flex; align-items: center; gap: 2px; }
.tb-btn { height: 40px; min-width: 36px; padding: 0 8px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; border-radius: 4px; }
.tb-btn svg.i { width: 18px; height: 18px; }
.tb-clock { font-size: 12px; opacity: .9; padding: 0 10px; border-left: 1px solid rgba(255,255,255,.2); border-right: 1px solid rgba(255,255,255,.2); line-height: 1.2; text-align: right; white-space: nowrap; }
.tb-clock b { font-size: 13px; font-weight: 600; display: block; }
.agent-btn { height: 30px; padding: 0 12px 0 10px; border-radius: 15px; border: 0; color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; margin: 0 6px; background: linear-gradient(100deg, #6a4be0, #2f7de1 60%, #18a3a8); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; }
.agent-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: #7bf0a4; box-shadow: 0 0 0 0 rgba(123,240,164,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(123,240,164,.6); } 70% { box-shadow: 0 0 0 6px rgba(123,240,164,0); } 100% { box-shadow: 0 0 0 0 rgba(123,240,164,0); } }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; flex: none; }
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.frame { flex: 1; display: flex; min-height: 0; }

/* ---------- Sitemap (left nav) ---------- */
.sitemap { width: 214px; flex: none; background: #fafafa; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.sitemap .scroll { flex: 1; overflow-y: auto; padding: 4px 0 12px; }
.nav-burger { height: 36px; display: flex; align-items: center; padding: 0 14px; color: var(--ink2); }
.nav-group { margin-top: 8px; }
.nav-group > .gh { font-size: 12px; font-weight: 600; color: var(--ink); padding: 6px 16px 4px; display: flex; align-items: center; gap: 6px; }
.nav-group.ai > .gh { color: var(--ai-d); }
.nav-item { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 16px; color: var(--ink2); font-size: 13px; cursor: pointer; user-select: none; }
.nav-item svg.i { color: var(--muted); }
.nav-item:hover { background: #f0f0f0; }
.nav-item.on { background: #e8e8e8; font-weight: 600; color: var(--ink); }
.nav-item.on::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--brand); }
.nav-group.ai .nav-item.on::before { background: var(--ai); }
.nav-group.ai .nav-item svg.i { color: var(--ai); }
.nav-item .count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--ai); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.nav-item .count.zero { background: #d6d6d6; color: #555; }
.nav-item .chev { margin-left: auto; color: var(--faint); }
.area-switch { height: 44px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: 13px; }
.area-switch .sq { width: 24px; height: 24px; border-radius: 4px; background: #2266e3; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.ai-tag { font-size: 10px; font-weight: 700; letter-spacing: .02em; padding: 1px 5px; border-radius: 3px; background: var(--ai-bg); color: var(--ai-d); border: 1px solid var(--ai-line); }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.cmdbar { flex: none; height: 44px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 8px; gap: 2px; overflow: hidden; }
.cmd { height: 32px; padding: 0 8px; border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.cmd:hover { background: var(--hover); }
.cmd svg.i { color: var(--brand); }
.cmd.ai svg.i { color: var(--ai); }
.cmd.ai { color: var(--ai-d); font-weight: 600; }
.cmd.danger svg.i { color: var(--bad); }
.cmd .car { color: var(--faint); margin-left: -2px; }
.cmd.demo { border: 1px dashed #c8b6f5; color: var(--ai-d); }
.cmd.demo svg.i { color: var(--ai); }
.cmd[disabled] { opacity: .45; pointer-events: none; }
.cmd-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.cmd-sp { flex: 1; }
.page { flex: 1; overflow: auto; padding: 12px 16px 24px; }
.page.tight { padding: 0; overflow: hidden; display: flex; min-height: 0; }

.card { background: var(--card); border-radius: 6px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px 8px; }
.card-h h2, .card-h h3 { margin: 0; font-size: 16px; font-weight: 600; }
.card-h h3 { font-size: 14px; }
.card-h .sub { font-size: 12px; color: var(--muted); }
.card-h .sp { flex: 1; }
.card-b { padding: 4px 16px 16px; }
.view-title { display: flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 600; padding: 14px 16px 6px; }
.view-title .vt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border-radius: 4px; padding: 2px 4px; margin-left: -4px; }
.view-title .vt:hover { background: var(--hover); }
.view-title .sp { flex: 1; }
.view-tools { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 400; }
.view-tools .tool { color: var(--brand-d); display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
.kw { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d1d1d1; border-radius: 4px; height: 28px; padding: 0 8px; width: 210px; color: var(--faint); background: #fff; }
.kw input { border: 0; outline: 0; flex: 1; font-size: 12.5px; min-width: 0; }

/* view dropdown */
.menu { position: absolute; z-index: 50; background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 4px 0; min-width: 280px; }
.menu .mi { padding: 8px 14px; font-size: 13px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.menu .mi:hover { background: var(--hover); }
.menu .mi.on { font-weight: 600; }
.menu .mh { padding: 6px 14px 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Grid ---------- */
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.grid th { position: sticky; top: 0; background: #fff; z-index: 1; text-align: left; font-weight: 600; font-size: 12px; color: var(--ink2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th .car { color: var(--faint); }
.grid td { padding: 0 10px; height: 42px; border-bottom: 1px solid var(--line2); white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.grid tr.row { cursor: pointer; }
.grid tr.row:hover td { background: #f7f7f7; }
.grid tr.row.sel td { background: var(--sel); }
.grid tr.flash td { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: #e3dbff; } 100% { background: transparent; } }
.grid td.chk, .grid th.chk { width: 36px; padding: 0 0 0 14px; }
.cb { width: 16px; height: 16px; border: 1px solid #8a8886; border-radius: 3px; display: inline-block; vertical-align: middle; background: #fff; }
.grid-foot { padding: 10px 16px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line2); display: flex; gap: 12px; }
.grid-wrap { overflow: auto; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; vertical-align: middle; line-height: 1; }
.pill svg.i { width: 12px; height: 12px; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.pill.info { background: var(--brand-bg); color: var(--brand-d); border-color: #b4d6fa; }
.pill.ai { background: var(--ai-bg); color: var(--ai-d); border-color: var(--ai-line); }
.pill.hq { background: var(--hq-bg); color: var(--hq); border-color: var(--hq-line); }
.pill.neutral { background: #f3f3f3; color: var(--ink2); border-color: #e0e0e0; }
.pill.ghost { background: #fff; color: var(--muted); border-color: var(--line); font-weight: 500; }
.ai-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--ai-d); background: var(--ai-bg); border: 1px solid var(--ai-line); border-radius: 4px; padding: 0 5px; height: 17px; vertical-align: 1px; }
.ai-chip svg.i { width: 11px; height: 11px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who.sys { color: var(--bad); font-style: italic; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid #d1d1d1; background: #fff; border-radius: 14px; height: 26px; padding: 0 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--brand-bg); border-color: #8fbdf0; color: var(--brand-d); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { height: 32px; padding: 0 14px; border-radius: 4px; border: 1px solid #d1d1d1; background: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.ai { background: var(--ai); border-color: var(--ai); color: #fff; }
.btn.ai:hover { background: var(--ai-d); }
.btn.hq { background: #c4500a; border-color: #c4500a; color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.demo { border-style: dashed; border-color: #b9a6f2; color: var(--ai-d); background: #fff; }
.btn.demo:hover { background: var(--ai-bg); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.tile { background: #fff; border-radius: 6px; box-shadow: var(--shadow); padding: 12px 14px; min-height: 104px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.tile .lbl { font-size: 12.5px; color: var(--muted); }
.tile .val { font-size: 26px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile .val small { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile .ft { font-size: 12px; color: var(--ink2); margin-top: auto; }
.tile .was { font-size: 12px; color: var(--muted); }
.tile .was s { color: var(--faint); }
.tile.link { cursor: pointer; }
.tile.link:hover { box-shadow: var(--shadow-lg); }
.tile .badge-ai { position: absolute; right: 10px; top: 10px; }

/* ---------- Layout helpers ---------- */
.cols { display: grid; gap: 12px; }
.cols.c2 { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }
.cols.c2e { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.cols.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stack > * + * { margin-top: 12px; }
.sp { flex: 1; }
.row-flex { display: flex; align-items: center; gap: 8px; }
.kv { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 0; font-size: 13px; }
.kv > div { padding: 7px 0; border-bottom: 1px solid var(--line2); min-width: 0; }
.kv > .k { color: var(--muted); padding-right: 10px; }
.kv > .v { font-weight: 500; overflow-wrap: anywhere; }
.kv.tight > div { padding: 4px 0; }
.sec-title { font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; display: flex; align-items: center; gap: 6px; }
.sec-title:first-child { margin-top: 0; }
.note { font-size: 12px; color: var(--muted); }
.callout { border-radius: 6px; padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.callout svg.i { margin-top: 1px; }
.callout.ai { background: var(--ai-bg); border: 1px solid var(--ai-line); color: #2e1f6b; }
.callout.ai svg.i { color: var(--ai); }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #5a3400; }
.callout.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: #0b4f0b; }
.callout.bad { background: var(--bad-bg); border: 1px solid var(--bad-line); color: #7a0a14; }
.callout.hq { background: var(--hq-bg); border: 1px solid var(--hq-line); color: #6b2a00; }
.callout.info { background: var(--brand-bg); border: 1px solid #b4d6fa; color: #0c3b6b; }
.callout b { font-weight: 600; }

/* ---------- Activity feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 58px 26px minmax(0,1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 13px; align-items: start; }
.feed li:last-child { border-bottom: 0; }
.feed .t { font-size: 12px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.feed .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ai-bg); color: var(--ai); }
.feed .ic.w { background: #e8f1fb; color: var(--brand); }
.feed .ic.n { background: #ecf7ec; color: var(--ok); }
.feed .ic.h { background: var(--hq-bg); color: var(--hq); }
.feed .ic svg.i { width: 13px; height: 13px; }
.feed .x { min-width: 0; }
.feed .x .s { color: var(--muted); font-size: 12px; margin-top: 1px; }
.feed li.new { animation: flash 1.8s ease-out; }

/* ---------- Intake ---------- */
.intake { display: grid; grid-template-columns: 220px 360px minmax(0,1fr); flex: 1; min-height: 0; }
.intake > section { min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); background: #fff; }
.intake > section:last-child { border-right: 0; background: var(--bg); }
.src-h { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 14px 14px 6px; }
.src { display: flex; align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.src:hover { background: var(--hover); }
.src.on { background: var(--sel); font-weight: 600; }
.src .n { margin-left: auto; font-size: 12px; color: var(--muted); }
.src .n.hot { color: #fff; background: var(--brand); border-radius: 9px; padding: 0 6px; font-weight: 600; }
.src svg.i { color: var(--muted); }
.src-foot { margin: 12px 14px; padding: 10px; border-radius: 6px; background: #f7f7f7; font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.q-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 12px; position: sticky; top: 0; background: #fff; z-index: 2; }
.q-tab { padding: 12px 10px 9px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--ink2); }
.q-tab.on { border-bottom-color: var(--brand); font-weight: 600; color: var(--ink); }
.q-item { padding: 11px 14px; border-bottom: 1px solid var(--line2); cursor: pointer; display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; }
.q-item:hover { background: #fafafa; }
.q-item.on { background: var(--sel); box-shadow: inset 3px 0 0 var(--brand); }
.q-item .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; color: #3b5578; }
.q-item .ic.web { background: #e9f5ee; color: #12783f; }
.q-item .ic.chat { background: #fdf0e6; color: #a2510b; }
.q-item .ic.mrn { background: #f1ecfb; color: #5a3ab4; }
.q-item .ic.corp { background: #eaf2fb; color: #165ea8; }
.q-item .l1 { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; min-width: 0; }
.q-item .l1 .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-item .l1 .tm { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.q-item .l2 { font-size: 12.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.q-item .l3 { margin-top: 5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.detail { padding: 14px 16px 24px; }
.msg { background: #fff; border-radius: 6px; box-shadow: var(--shadow); }
.msg-h { padding: 12px 16px; border-bottom: 1px solid var(--line2); }
.msg-h .subj { font-size: 16px; font-weight: 600; }
.msg-h .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg-b { padding: 12px 16px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; max-height: 240px; overflow: auto; }
.msg-b.full { max-height: none; }
.msg-b.short { max-height: 120px; }

/* run trace */
.run { list-style: none; margin: 0; padding: 0; }
.run > li { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 10px; padding: 8px 0; position: relative; }
.run > li::before { content: ""; position: absolute; left: 12px; top: 30px; bottom: -6px; width: 2px; background: var(--line); }
.run > li:last-child::before { display: none; }
.run .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f0f0f0; color: var(--faint); border: 2px solid #fff; box-shadow: 0 0 0 1px #e0e0e0; z-index: 1; }
.run .st svg.i { width: 13px; height: 13px; }
.run > li.done .st { background: var(--ok); color: #fff; box-shadow: none; }
.run > li.warn .st { background: #c77700; color: #fff; box-shadow: none; }
.run > li.hq .st { background: #c4500a; color: #fff; box-shadow: none; }
.run > li.stop .st { background: #8a8886; color: #fff; box-shadow: none; }
.run > li.running .st { background: var(--ai); color: #fff; box-shadow: 0 0 0 4px var(--ai-bg); }
.run > li.running .st svg.i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.run > li.pending { opacity: .55; }
.run .lb { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; padding-top: 2px; }
.run .lb .ms { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 400; }
.run .dt { font-size: 12.5px; color: var(--ink2); margin-top: 3px; line-height: 1.45; }
.run .dt ul { margin: 2px 0 0; padding-left: 18px; }
.api { margin-top: 5px; font-family: var(--mono); font-size: 11.5px; background: #f6f8fa; border: 1px solid #e7eaee; border-radius: 4px; padding: 5px 8px; color: #2b3a4d; white-space: pre-wrap; word-break: break-all; }
.api .vb { font-weight: 700; }
.api .vb.get { color: #0b6e4f; } .api .vb.post { color: #8a4b00; } .api .vb.patch { color: #5a3ab4; }
body.no-api .api { display: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 18px; }
.fld { padding: 6px 0; border-bottom: 1px solid var(--line2); min-width: 0; }
.fld .k { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fld .v { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.conf { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 500; }
.conf i { display: inline-block; width: 28px; height: 4px; border-radius: 2px; background: #e6e6e6; position: relative; overflow: hidden; }
.conf i b { position: absolute; inset: 0 auto 0 0; background: var(--ok); border-radius: 2px; }
.conf.mid i b { background: #d18b00; }
.conf.low i b { background: var(--bad); }
.meter { height: 8px; border-radius: 4px; background: #e6e6e6; overflow: hidden; position: relative; }
.meter b { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--ok); }
.meter .tick { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #333; }
.checks { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.checks li { display: flex; gap: 8px; padding: 5px 0; align-items: flex-start; }
.checks li svg.i { margin-top: 2px; }
.checks .y { color: var(--ok); } .checks .n { color: var(--faint); } .checks .w { color: #c77700; } .checks .h { color: #c4500a; }

/* ---------- Forms (record) ---------- */
.rec-head { background: #fff; padding: 14px 20px 0; border-bottom: 1px solid var(--line); }
.rec-top { display: flex; align-items: center; gap: 14px; }
.rec-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; }
.rec-name { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rec-type { font-size: 12.5px; color: var(--muted); }
.rec-hf { margin-left: auto; display: flex; gap: 0; }
.rec-hf > div { padding: 0 18px; border-left: 1px solid var(--line); min-width: 110px; }
.rec-hf .k { font-size: 11.5px; color: var(--muted); }
.rec-hf .v { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.bpf { display: flex; align-items: center; gap: 0; margin: 14px 0 0; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 12.5px; }
.bpf .proc { color: var(--muted); padding-right: 16px; border-right: 1px solid var(--line); margin-right: 8px; white-space: nowrap; }
.bpf .stg { flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); position: relative; }
.bpf .stg .d { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c8c6c4; background: #fff; display: grid; place-items: center; }
.bpf .stg.done .d { background: var(--brand); border-color: var(--brand); color: #fff; }
.bpf .stg.done .d svg.i { width: 11px; height: 11px; }
.bpf .stg.on { color: var(--ink); font-weight: 600; }
.bpf .stg.on .d { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-bg); }
.bpf .stg + .stg::before { content: ""; position: absolute; left: -50%; right: 50%; top: 50%; margin-right: 52px; margin-left: 52px; height: 1px; background: #c8c6c4; }
.tabs { display: flex; gap: 4px; margin-top: 6px; }
.tab { padding: 10px 10px 9px; font-size: 13.5px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--ink2); }
.tab.on { border-bottom-color: var(--brand); font-weight: 600; color: var(--ink); }
.rec-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr); gap: 12px; padding: 12px 16px 24px; }
.timeline .tl-item { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.timeline .tl-item:last-child { border-bottom: 0; }
.tl-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; color: #3b5578; }
.tl-ic.ai { background: var(--ai-bg); color: var(--ai); }
.tl-ic.task { background: #fdf0e6; color: #a2510b; }
.tl-ic.in { background: #e9f5ee; color: #12783f; }
.tl-ic.bounce { background: var(--bad-bg); color: var(--bad); }
.tl-h { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tl-t { font-size: 13px; font-weight: 600; margin-top: 2px; }
.tl-b { font-size: 12.5px; color: var(--ink2); margin-top: 3px; white-space: pre-wrap; line-height: 1.45; max-height: 140px; overflow: hidden; position: relative; }
.tl-b.open { max-height: none; }
.tl-new { display: flex; gap: 6px; padding: 8px 0 10px; border-bottom: 1px solid var(--line2); }
.tl-new .fake { flex: 1; height: 30px; border: 1px solid #d1d1d1; border-radius: 4px; padding: 0 10px; display: flex; align-items: center; color: var(--faint); font-size: 12.5px; }

/* ---------- Renewals desk ---------- */
.desk { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 12px; align-items: start; }
.ddm { display: inline-flex; gap: 3px; align-items: center; }
.ddm i { width: 14px; height: 6px; border-radius: 3px; background: #e2e2e2; display: inline-block; }
.ddm i.s { background: var(--brand); }
.ddm i.due { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ai); }
.ddm i.r { background: var(--ok); }
.ddm-big { display: flex; gap: 0; margin: 4px 0 2px; }
.ddm-big .st { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; padding-top: 22px; }
.ddm-big .st::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: #e2e2e2; }
.ddm-big .st:first-child::before { left: 50%; } .ddm-big .st:last-child::before { right: 50%; }
.ddm-big .st .d { position: absolute; top: 0; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #c8c6c4; z-index: 1; }
.ddm-big .st.s .d { background: var(--brand); border-color: var(--brand); }
.ddm-big .st.b .d { background: var(--bad); border-color: var(--bad); }
.ddm-big .st.due .d { border-color: var(--ai); box-shadow: 0 0 0 3px var(--ai-bg); }
.ddm-big .st.due { color: var(--ai-d); font-weight: 600; }
.ddm-big .st b { display: block; color: var(--ink); font-weight: 600; font-size: 12px; }
.panel { background: #fff; border-radius: 6px; box-shadow: var(--shadow); position: sticky; top: 0; }
.panel-h { padding: 14px 16px 10px; border-bottom: 1px solid var(--line2); }
.panel-h .t1 { font-size: 17px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.panel-h .t2 { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.panel-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.panel-b { padding: 14px 16px 18px; }
.editor { border: 1px solid #d1d1d1; border-radius: 6px; overflow: hidden; background: #fff; }
.editor .eh { display: grid; grid-template-columns: 64px minmax(0,1fr); font-size: 12.5px; border-bottom: 1px solid var(--line2); }
.editor .eh > div { padding: 6px 10px; border-bottom: 1px solid var(--line2); }
.editor .eh > div:nth-last-child(-n+2) { border-bottom: 0; }
.editor .eh .k { color: var(--muted); }
.editor textarea { width: 100%; border: 0; outline: 0; resize: vertical; min-height: 230px; padding: 10px 12px; font-size: 13px; line-height: 1.5; display: block; }
.editor .ef { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line2); background: #fafafa; font-size: 12px; color: var(--muted); }
details.tpl { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafafa; }
details.tpl summary { padding: 8px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink2); }
details.tpl pre { margin: 0; padding: 0 12px 12px; white-space: pre-wrap; font-family: inherit; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.thread .m { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; background: #fff; }
.thread .m.in { border-left: 3px solid #12783f; }
.thread .m.out { border-left: 3px solid var(--brand); }
.thread .m.bounce { border-left: 3px solid var(--bad); background: #fffafa; }
.thread .mh { padding: 8px 12px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line2); }
.thread .mh b { color: var(--ink); font-weight: 600; }
.thread .mb { padding: 8px 12px; font-size: 12.5px; white-space: pre-wrap; line-height: 1.45; }
.intent { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.actions-list { list-style: none; margin: 0; padding: 0; }
.actions-list li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13px; }
.actions-list li:last-child { border-bottom: 0; }
.actions-list .n { width: 20px; height: 20px; border-radius: 50%; background: var(--ai-bg); color: var(--ai-d); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.quote { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.quote th, .quote td { padding: 6px 8px; border-bottom: 1px solid var(--line2); text-align: left; }
.quote th { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.quote td.r, .quote th.r { text-align: right; }
.quote tr.tot td { font-weight: 700; border-bottom: 0; }

/* ---------- Approvals ---------- */
.appr { background: #fff; border-radius: 6px; box-shadow: var(--shadow); margin-bottom: 10px; display: grid; grid-template-columns: 4px minmax(0,1fr); overflow: hidden; }
.appr .bar { background: var(--ai); }
.appr.hq .bar { background: #c4500a; }
.appr.email .bar { background: var(--brand); }
.appr.review .bar { background: #c77700; }
.appr.cp4 .bar { background: #b10e1c; }
.appr .in { padding: 12px 16px; }
.appr .t { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.appr .t .tm { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.appr .why { font-size: 13px; color: var(--ink2); margin-top: 4px; }
.appr .body { margin-top: 10px; display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 16px; }
.appr .acts { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.appr.decided { opacity: .75; }
.appr select { height: 28px; border: 1px solid #d1d1d1; border-radius: 4px; padding: 0 6px; font-size: 12.5px; background: #fff; }

/* ---------- Charts ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax { font-size: 11px; fill: var(--muted); }
.chart .lb { font-size: 11.5px; fill: var(--ink2); }
.chart .vl { font-size: 11.5px; fill: var(--ink); font-weight: 600; }
.chart .gl { stroke: #ececec; stroke-width: 1; }
.chart .base { stroke: #c8c8c8; stroke-width: 1; }
.chart .bar { fill: var(--s1); }
.chart .bar.soft { fill: var(--s1-soft); }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar, .chart .grp:hover .bar { filter: brightness(.9); }
.chart .band { fill: #f2f6fb; }
.tip { position: fixed; z-index: 300; pointer-events: none; background: #fff; border-radius: 6px; box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 12px; min-width: 140px; }
.tip b { display: block; font-size: 12.5px; margin-bottom: 2px; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; color: var(--ink2); }
.tbl-toggle { font-size: 12px; color: var(--brand-d); cursor: pointer; white-space: nowrap; margin-left: 12px; }
.mini-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mini-tbl th, .mini-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line2); text-align: left; }
.mini-tbl th { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mini-tbl td.r, .mini-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.quote-card { border-left: 3px solid var(--line); padding: 4px 10px; margin: 8px 0; font-size: 13px; color: var(--ink2); }
.quote-card .src { padding: 0; font-size: 11.5px; color: var(--muted); margin-top: 2px; display: block; cursor: default; }
.quote-card .src:hover { background: none; }

/* ---------- Agent pane ---------- */
.agentpane { width: 0; flex: none; overflow: hidden; background: #fff; border-left: 1px solid var(--line); transition: width .2s ease; display: flex; flex-direction: column; }
.agentpane.open { width: 360px; }
.ap-h { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); min-width: 360px; }
.ap-logo { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6a4be0, #2f7de1 60%, #18a3a8); }
.ap-h .t { font-weight: 600; font-size: 14px; }
.ap-h .s { font-size: 11.5px; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.ap-h .s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #13a10e; }
.ap-b { flex: 1; overflow-y: auto; padding: 12px 14px; min-width: 360px; }
.ap-f { border-top: 1px solid var(--line); padding: 10px 12px; min-width: 360px; }
.ap-f form { display: flex; gap: 6px; }
.ap-f input { flex: 1; height: 34px; border: 1px solid #d1d1d1; border-radius: 17px; padding: 0 14px; outline: 0; font-size: 13px; }
.ap-f input:focus { border-color: var(--ai); }
.bubble { border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
.bubble.me { background: var(--brand-bg); margin-left: 40px; }
.bubble.bot { background: #f6f5fb; border: 1px solid #ebe6fb; margin-right: 10px; }
.bubble ul { margin: 4px 0 0; padding-left: 18px; }
.bubble .src { font-size: 11px; color: var(--muted); margin-top: 6px; }
.suggest { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.suggest button { text-align: left; border: 1px solid var(--ai-line); background: #fff; color: var(--ai-d); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; }
.suggest button:hover { background: var(--ai-bg); }

/* ---------- Toasts ---------- */
#toasts { position: fixed; right: 16px; top: 60px; z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; width: 370px; background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); padding: 10px 12px; display: grid; grid-template-columns: 30px minmax(0,1fr) 16px; gap: 10px; font-size: 13px; animation: tin .25s ease-out; }
.toast.out { animation: tout .25s ease-in forwards; }
@keyframes tin { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tout { to { transform: translateX(30px); opacity: 0; } }
.toast .ic { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.toast .ic.slack { background: #4a154b; }
.toast .ic.teams { background: #4b53bc; }
.toast .ic.ok { background: var(--ok); }
.toast .ic.ai { background: var(--ai); }
.toast .ic.warn { background: #c77700; }
.toast .ic.hq { background: #c4500a; }
.toast .h { font-size: 12px; color: var(--muted); display: flex; gap: 6px; }
.toast .h b { color: var(--ink); }
.toast .b { margin-top: 2px; line-height: 1.4; }
.toast .x { color: var(--faint); cursor: pointer; }

/* ---------- Presenter ---------- */

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 500; display: grid; place-items: center; }
.modal { width: 620px; max-width: calc(100vw - 40px); background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg); }
.modal-h { padding: 16px 20px 6px; font-size: 18px; font-weight: 600; display: flex; align-items: center; }
.modal-b { padding: 6px 20px 10px; }
.modal-b textarea { width: 100%; min-height: 220px; border: 1px solid #d1d1d1; border-radius: 4px; padding: 10px; font-size: 13px; line-height: 1.45; outline: 0; resize: vertical; }
.modal-b textarea:focus { border-color: var(--brand); }
.modal-b input[type=text] { width: 100%; height: 32px; border: 1px solid #d1d1d1; border-radius: 4px; padding: 0 10px; font-size: 13px; outline: 0; margin-bottom: 8px; }
.modal-f { padding: 12px 20px 16px; display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- Misc ---------- */
.ddm-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); align-items: center; }
.ddm-legend span { display: inline-flex; gap: 5px; align-items: center; }
.risk-h { color: var(--bad); font-weight: 600; }
.risk-m { color: #a35a00; font-weight: 600; }
.risk-l { color: var(--muted); }
.lnk { color: var(--brand-d); cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.tag-sys { color: var(--bad); font-style: italic; }
.ph { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 40px; }
.sla { font-variant-numeric: tabular-nums; }
.sla.ok { color: var(--ok); } .sla.warn { color: #a35a00; font-weight: 600; } .sla.bad { color: var(--bad); font-weight: 600; } .sla.done { color: var(--muted); }
.legend-row { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
hr.soft { border: 0; border-top: 1px solid var(--line2); margin: 12px 0; }
.toast .ic.info { background: var(--brand); }
.callout.neutral { background: #f5f5f5; border: 1px solid var(--line); color: var(--ink2); }

.run .dt ul.checks { padding-left: 0; }
.run .dt ul:not(.checks) li { margin: 1px 0; }
.grid td.wrap { white-space: normal; line-height: 1.3; min-width: 130px; }
.grid td.two { max-width: 240px; }
.grid td.two .note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- agent service connection ---------- */
.live-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.14); white-space: nowrap; cursor: default; }
.live-badge .d { width: 7px; height: 7px; border-radius: 50%; background: #c8c6c4; }
.live-badge.live .d { background: #7bf0a4; }
.live-badge.no-llm .d { background: #ffb900; }
.ai-note { margin-top: 6px; padding: 5px 8px; border-radius: 4px; background: var(--ai-bg, #f3f0fc); color: var(--ai-d, #4b31b0); font-size: 12px; display: flex; gap: 6px; align-items: flex-start; }
.ai-note .i { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.touches { margin-top: 6px; font-size: 12px; color: var(--ai-d, #4b31b0); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.touches .i { width: 14px; height: 14px; }
.touches span { background: var(--ai-bg, #f3f0fc); border-radius: 10px; padding: 1px 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.tb-reset { height: 28px; margin: 0 2px; padding: 0 10px 0 8px; font-size: 12.5px; border: 1px solid rgba(255,255,255,.35); }
.tb-reset:hover { background: rgba(255,255,255,.12); }

/* ---------- sign-in ---------- */
body.locked #app { visibility: hidden; }
.avatar-btn { border: 0; cursor: pointer; }
.avatar-btn:hover { box-shadow: 0 0 0 2px rgba(255,255,255,.45); }
#login { --lx-ink: #f4f5fb; --lx-dim: rgba(228,231,245,.68); --lx-line: rgba(255,255,255,.12); --lx-glass: rgba(255,255,255,.055);
  position: fixed; inset: 0; z-index: 1000; overflow: auto; color: var(--lx-ink); background: #070a17; display: flex; flex-direction: column;
  transition: opacity .45s ease, transform .45s ease; }
#login[hidden] { display: none; }
#login.out { opacity: 0; transform: scale(1.015); pointer-events: none; }
.lx-f-ic svg, .lx-eye svg, .lx-card-logo svg { display: block; width: 100%; height: 100%; }
.lx-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.lx-bg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: lxfloat 22s ease-in-out infinite alternate; }
.lx-bg .b1 { width: 620px; height: 620px; left: -160px; top: -200px; background: #5b3df0; }
.lx-bg .b2 { width: 560px; height: 560px; right: -140px; top: 18%; background: #1f6fe0; opacity: .45; animation-delay: -7s; }
.lx-bg .b3 { width: 520px; height: 520px; left: 32%; bottom: -260px; background: #0fa3a0; opacity: .4; animation-delay: -13s; }
.lx-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
@keyframes lxfloat { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.08); } 100% { transform: translate(-40px,70px) scale(.96); } }
.lx-top, .lx-main, .lx-foot { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.lx-top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.lx-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -.01em; }
.lx-brand > svg { width: 34px; height: 34px; filter: drop-shadow(0 6px 18px rgba(91,61,240,.45)); }
.lx-brand b { font-weight: 650; }
.lx-tag { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: #d9d2ff; background: rgba(123,92,255,.18); box-shadow: inset 0 0 0 1px rgba(155,132,255,.35); }
.lx-env { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--lx-dim); padding: 6px 12px; border-radius: 20px; background: var(--lx-glass); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-env .d { width: 7px; height: 7px; border-radius: 50%; background: #5ee39a; box-shadow: 0 0 0 4px rgba(94,227,154,.15); }
.lx-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 440px); gap: 64px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.lx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #c9c0ff; padding: 6px 12px 6px 10px; border-radius: 20px; background: rgba(123,92,255,.12); box-shadow: inset 0 0 0 1px rgba(155,132,255,.28); }
.lx-eyebrow .i { width: 15px; height: 15px; fill: #b8a9ff; stroke: none; }
.lx-story h1 { margin: 22px 0 16px; font-size: 50px; line-height: 1.06; font-weight: 700; letter-spacing: -.028em; }
.lx-grad { background: linear-gradient(92deg, #a996ff 0%, #6fa8ff 45%, #4fe0d0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-lede { margin: 0 0 28px; max-width: 560px; font-size: 16.5px; line-height: 1.55; color: var(--lx-dim); }
.lx-feed { max-width: 600px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)); box-shadow: inset 0 0 0 1px var(--lx-line), 0 30px 60px -20px rgba(0,0,0,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; }
.lx-feed-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 12.5px; font-weight: 600; color: #e6e8f5; border-bottom: 1px solid var(--lx-line); }
.lx-feed-h .sp { flex: 1; }
.lx-muted { color: var(--lx-dim); font-weight: 400; }
.lx-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8ff0b8; }
.lx-live i { width: 7px; height: 7px; border-radius: 50%; background: #5ee39a; animation: lxpulse 1.6s ease-out infinite; }
@keyframes lxpulse { 0% { box-shadow: 0 0 0 0 rgba(94,227,154,.6); } 100% { box-shadow: 0 0 0 8px rgba(94,227,154,0); } }
#lxFeed { list-style: none; margin: 0; padding: 6px 0; min-height: 252px; }
.lx-ev { display: flex; align-items: center; gap: 12px; padding: 9px 16px; }
.lx-ev.in { animation: lxin .55s cubic-bezier(.2,.8,.2,1); }
@keyframes lxin { from { opacity: 0; transform: translateY(-10px); background: rgba(123,92,255,.14); } to { opacity: 1; transform: none; background: transparent; } }
.lx-ev-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-ev-ic .i { width: 17px; height: 17px; stroke: #cfd5ff; }
.lx-ev.ok .lx-ev-ic { background: rgba(94,227,154,.12); } .lx-ev.ok .lx-ev-ic .i { stroke: #7fe9ac; }
.lx-ev.hq .lx-ev-ic { background: rgba(255,154,90,.13); } .lx-ev.hq .lx-ev-ic .i { stroke: #ffb27e; }
.lx-ev.ai .lx-ev-ic { background: rgba(140,115,255,.16); } .lx-ev.ai .lx-ev-ic .i { stroke: #b9a8ff; }
.lx-ev.warn .lx-ev-ic { background: rgba(255,207,90,.12); } .lx-ev.warn .lx-ev-ic .i { stroke: #ffd56e; }
.lx-ev.mute { opacity: .7; }
.lx-ev-b { flex: 1; min-width: 0; }
.lx-ev-t { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; }
.lx-ev-t b { font-size: 13.5px; font-weight: 600; color: #fff; }
.lx-ev-t span { font-size: 12.5px; color: var(--lx-dim); overflow: hidden; text-overflow: ellipsis; }
.lx-ev-r { font-size: 12.5px; color: #c7cbe6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-ev-tm { flex: none; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: #e6e8f5; padding: 3px 9px; border-radius: 12px; background: rgba(255,255,255,.07); }
.lx-ev.hq .lx-ev-tm { color: #ffc49c; } .lx-ev.ok .lx-ev-tm { color: #9cf0bf; }
.lx-stats { display: flex; gap: 36px; margin-top: 28px; }
.lx-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(92deg, #fff, #c5cbff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-stats span { font-size: 12.5px; color: var(--lx-dim); }
.lx-card { position: relative; padding: 34px 32px 26px; border-radius: 20px; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 40px 80px -24px rgba(0,0,0,.7); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); }
.lx-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(169,150,255,.6), rgba(255,255,255,0) 40%, rgba(79,224,208,.45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.lx-card.shake { animation: lxshake .4s ease; }
@keyframes lxshake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.lx-card-h { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.lx-card-logo { width: 44px; height: 44px; flex: none; }
.lx-card h2 { margin: 0; font-size: 23px; font-weight: 650; letter-spacing: -.015em; }
.lx-card-h p { margin: 3px 0 0; font-size: 13.5px; color: var(--lx-dim); }
.lx-f { position: relative; margin-bottom: 14px; }
.lx-f input { width: 100%; height: 56px; padding: 22px 46px 6px 44px; border-radius: 12px; border: 0; outline: none; font: inherit; font-size: 15px; color: #fff; background: rgba(8,11,28,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: box-shadow .15s, background .15s; }
.lx-f input:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.lx-f input:focus { background: rgba(8,11,28,.7); box-shadow: inset 0 0 0 1.5px #8f7bff, 0 0 0 4px rgba(123,92,255,.22); }
.lx-f.bad input { box-shadow: inset 0 0 0 1.5px #ff6b7a, 0 0 0 4px rgba(255,107,122,.15); }
.lx-f label { position: absolute; left: 44px; top: 18px; font-size: 15px; color: var(--lx-dim); pointer-events: none; transition: all .15s ease; }
.lx-f input:focus + label, .lx-f input:not(:placeholder-shown) + label { top: 9px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #b9adff; }
.lx-f-ic { position: absolute; left: 15px; top: 18px; width: 19px; height: 19px; pointer-events: none; }
.lx-f-ic svg, .lx-eye svg, .lx-go svg, .lx-sec svg, .lx-err svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lx-f-ic { color: rgba(220,224,245,.55); }
.lx-f:focus-within .lx-f-ic { color: #b9adff; }
.lx-eye { position: absolute; right: 8px; top: 10px; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 9px; background: none; color: rgba(220,224,245,.6); cursor: pointer; }
.lx-eye:hover { color: #fff; background: rgba(255,255,255,.08); }
.lx-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 6px; font-size: 13px; }
.lx-chk { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: #e3e6f5; user-select: none; white-space: nowrap; }
.lx-chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.lx-chk span { width: 18px; height: 18px; border-radius: 5px; background: rgba(8,11,28,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); display: grid; place-items: center; transition: background .15s; }
.lx-chk input:checked + span { background: linear-gradient(135deg, #7b5cff, #2f7de1); box-shadow: none; }
.lx-chk input:checked + span::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.lx-chk input:focus-visible + span { box-shadow: 0 0 0 3px rgba(123,92,255,.4); }
.lx-err { display: flex; align-items: center; gap: 8px; min-height: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: 13px; color: #ffb3bb; transition: all .2s ease; }
.lx-err.on { min-height: 38px; max-height: 60px; opacity: 1; margin: 8px 0 2px; padding: 8px 12px; border-radius: 10px; background: rgba(255,107,122,.12); box-shadow: inset 0 0 0 1px rgba(255,107,122,.3); }
.lx-err svg { width: 17px; height: 17px; flex: none; }
.lx-go { position: relative; width: 100%; height: 52px; margin-top: 16px; border: 0; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 15.5px; font-weight: 650; color: #fff;
  background: linear-gradient(100deg, #6a4be0 0%, #2f7de1 55%, #18a3a8 100%); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 12px 30px -10px rgba(91,61,240,.75), inset 0 1px 0 rgba(255,255,255,.25); transition: background-position .4s ease, transform .1s ease, box-shadow .2s; }
.lx-go:hover { background-position: 100% 0; box-shadow: 0 16px 36px -10px rgba(47,125,225,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.lx-go:active { transform: translateY(1px); }
.lx-go:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(123,92,255,.45); }
.lx-go > svg { width: 18px; height: 18px; transition: transform .2s; }
.lx-go:hover > svg { transform: translateX(3px); }
.lx-go .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: lxspin .7s linear infinite; }
.lx-go.busy { cursor: progress; } .lx-go.busy > svg { display: none; } .lx-go.busy .spin { display: block; }
.lx-go.done { background: linear-gradient(100deg, #1fae74, #18a3a8); }
@keyframes lxspin { to { transform: rotate(360deg); } }
.lx-sec { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lx-line); font-size: 12px; color: rgba(228,231,245,.55); }
.lx-sec svg { width: 14px; height: 14px; }
.lx-foot { display: flex; gap: 16px; padding-top: 6px; padding-bottom: 24px; font-size: 12px; color: rgba(228,231,245,.42); }
.lx-foot .sp { flex: 1; }
@media (max-width: 1100px) { .lx-story h1 { font-size: 40px; } .lx-main { gap: 40px; } }
@media (max-width: 960px) { .lx-main { grid-template-columns: 1fr; max-width: 520px; } .lx-story { display: none; } .lx-foot .sp, .lx-foot span:last-child { display: none; } }
@media (max-height: 760px) { .lx-story h1 { font-size: 40px; margin-top: 16px; } .lx-lede { margin-bottom: 18px; } #lxFeed { min-height: 0; } .lx-stats { margin-top: 18px; } }
@media (prefers-reduced-motion: reduce) { .lx-bg span, .lx-live i, .lx-ev.in { animation: none; } #login { transition: none; } }
