:root {
  --ink: #0b1118;
  --ink-soft: #101a24;
  --panel: rgba(16, 26, 36, .86);
  --panel-strong: #15222e;
  --line: rgba(181, 211, 231, .13);
  --line-strong: rgba(181, 211, 231, .23);
  --text: #edf7fb;
  --muted: #8fa7b8;
  --muted-strong: #bbcad4;
  --orange: #ff6a2c;
  --orange-soft: rgba(255, 106, 44, .15);
  --mint: #9ee8c2;
  --blue: #89cfff;
  --yellow: #f3d878;
  --red: #f2968c;
  --shadow: 0 18px 60px rgba(0, 0, 0, .24);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--ink); font-family: "Trebuchet MS", "Segoe UI", sans-serif; letter-spacing: -.01em; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }

.prospect-shell { min-height: 100vh; overflow-x: hidden; background: radial-gradient(circle at 77% -12%, rgba(255,106,44,.12), transparent 32rem), linear-gradient(125deg, #081017 0%, #0c151e 58%, #0a1118 100%); }
.page-glow { position: fixed; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(90px); opacity: .09; pointer-events: none; }
.page-glow-one { right: -10rem; top: 28rem; background: var(--blue); }
.page-glow-two { left: 18rem; bottom: -16rem; background: var(--orange); }
.app-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; position: relative; }
.sidebar { border-right: 1px solid var(--line); padding: 30px 20px 22px; display: flex; flex-direction: column; background: rgba(7, 14, 21, .55); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,106,44,.62); border-radius: 10px; color: var(--orange); font-weight: 900; box-shadow: 0 0 25px rgba(255,106,44,.12); }
.brand strong { display: block; font-size: 1rem; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font: 10px/1.2 "Courier New", monospace; text-transform: uppercase; letter-spacing: .09em; }
.nav-stack { display: grid; gap: 7px; margin-top: 70px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: .82rem; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav-link:hover, .nav-link:focus-visible { color: var(--text); background: rgba(255,255,255,.04); transform: translateX(2px); outline: none; }
.nav-link.is-active { color: var(--text); border-color: var(--line); background: linear-gradient(90deg, rgba(255,106,44,.16), rgba(255,255,255,.03)); }
.nav-index { width: 24px; color: var(--orange); font: 10px "Courier New", monospace; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 10px; border-top: 1px solid var(--line); color: var(--muted); font: 10px "Courier New", monospace; text-transform: uppercase; letter-spacing: .06em; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status-dot.is-live { background: var(--mint); box-shadow: 0 0 0 4px rgba(158,232,194,.08), 0 0 16px rgba(158,232,194,.9); }
.main-content { width: min(1540px, 100%); padding: 28px clamp(22px, 4vw, 68px) 42px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 8px; color: var(--orange); font: 10px "Courier New", monospace; text-transform: uppercase; letter-spacing: .15em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.6rem, 2vw, 2rem); letter-spacing: -.06em; }
h2 { margin-bottom: 0; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -.05em; }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.live-chip, .source-badge, .count-badge, .pulse-label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; color: var(--muted-strong); font: 10px "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; }
.live-chip { border-color: rgba(158,232,194,.24); color: var(--mint); }
.refresh-label { color: var(--muted); font: 10px "Courier New", monospace; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); color: var(--muted-strong); font-size: 1.15rem; transition: border .2s ease, color .2s ease, transform .2s ease; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); outline: none; }
.hero-strip { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 32px 34px; min-height: 200px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(110deg, rgba(255,106,44,.14), rgba(17,31,42,.72) 43%, rgba(10,20,29,.88)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-strip::after { content: ""; position: absolute; width: 28rem; height: 28rem; right: -9rem; top: -18rem; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.018); }
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.hero-copy h2 { font-size: clamp(2rem, 4.2vw, 4.2rem); line-height: .98; max-width: 650px; }
.hero-note { margin: 16px 0 0; color: var(--muted-strong); font-size: .82rem; }
.hero-signal { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; min-width: 165px; }
.hero-signal strong { display: block; font-size: 2.4rem; letter-spacing: -.08em; }
.hero-signal small { color: var(--muted); font: 10px "Courier New", monospace; text-transform: uppercase; letter-spacing: .1em; }
.signal-orbit { width: 70px; height: 70px; border: 1px solid rgba(158,232,194,.34); border-radius: 50%; position: relative; box-shadow: 0 0 35px rgba(158,232,194,.08); }
.signal-orbit::before, .signal-orbit::after { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(137,207,255,.3); border-radius: 50%; }
.signal-orbit::after { inset: 23px; border-style: solid; border-color: rgba(255,106,44,.8); }
.signal-orbit span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.signal-orbit span:nth-child(1) { top: 5px; left: 32px; }.signal-orbit span:nth-child(2) { right: 5px; bottom: 22px; background: var(--orange); }.signal-orbit span:nth-child(3) { left: 18px; bottom: 5px; background: var(--blue); }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin: 14px 0 26px; }
.kpi-card { min-height: 119px; padding: 17px 17px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(13,25,35,.72); }
.kpi-card.kpi-primary { border-color: rgba(255,106,44,.36); background: linear-gradient(140deg, rgba(255,106,44,.17), rgba(13,25,35,.72)); }
.kpi-card span { display: block; color: var(--muted-strong); font-size: .72rem; }
.kpi-card strong { display: block; margin-top: 14px; font-size: 2rem; letter-spacing: -.08em; }
.kpi-card small { display: block; margin-top: 3px; color: var(--muted); font: 10px "Courier New", monospace; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 16px 38px rgba(0,0,0,.12); }
.pipeline-panel, .prospects-panel, .routines-panel { padding: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 22px; }
.section-heading.compact { align-items: center; margin-bottom: 17px; }
.section-mark, .price-mark { color: var(--orange); font: 11px "Courier New", monospace; }
.price-mark { color: var(--mint); font-size: 1rem; }
.stage-flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 8px; scrollbar-color: var(--orange) transparent; }
.stage-item { min-width: 126px; flex: 1 0 126px; position: relative; }
.stage-link { height: 2px; position: absolute; top: 18px; left: 54%; right: -46%; background: linear-gradient(90deg, rgba(255,106,44,.68), rgba(137,207,255,.2)); }
.stage-item:last-child .stage-link { display: none; }
.stage-node { position: relative; z-index: 1; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(137,207,255,.35); border-radius: 12px; background: #12202b; color: var(--blue); font: 11px "Courier New", monospace; }
.stage-item.is-human .stage-node { border-color: rgba(255,106,44,.7); background: var(--orange-soft); color: var(--orange); }
.stage-item.is-terminal .stage-node { border-color: rgba(158,232,194,.5); color: var(--mint); }
.stage-count { display: block; margin-top: 12px; font-size: 1.35rem; letter-spacing: -.06em; }
.stage-name { display: block; max-width: 104px; margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.25; }
.stage-meta { display: block; margin-top: 8px; color: var(--muted); font: 9px "Courier New", monospace; text-transform: uppercase; }
.pipeline-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--muted); font: 10px "Courier New", monospace; text-transform: uppercase; letter-spacing: .05em; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--blue); }.legend-dot.human { background: var(--orange); }.legend-dot.terminal { background: var(--mint); }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px; margin-top: 14px; }
.approvals-panel, .events-panel { padding: 22px; min-height: 315px; }
.count-badge { min-width: 31px; justify-content: center; padding: 6px 8px; color: var(--orange); border-color: rgba(255,106,44,.35); }
.pulse-label { border: 0; padding: 0; color: var(--mint); }
.approval-list, .event-list, .strategy-list, .offer-list { display: grid; gap: 9px; }
.approval-item { display: grid; grid-template-columns: 1fr auto; gap: 13px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.approval-item:first-child { border-top: 0; padding-top: 0; }
.approval-item strong, .event-item strong { display: block; font-size: .78rem; }.approval-item small, .event-item small { display: block; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.approval-type { color: var(--orange); font: 9px "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.action-button, .primary-button { border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 9px; background: rgba(255,255,255,.03); color: var(--muted-strong); font-size: .67rem; transition: border .2s ease, color .2s ease, background .2s ease; }
.action-button:hover, .action-button:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }.primary-button { border-color: rgba(255,106,44,.55); background: var(--orange-soft); color: #ffd1bf; }.primary-button:hover, .primary-button:focus-visible { background: rgba(255,106,44,.28); color: white; outline: none; }
.event-item { display: grid; grid-template-columns: 7px 1fr auto; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }.event-item:first-child { border-top: 0; padding-top: 0; }.event-line { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px rgba(255,106,44,.8); }.event-item time { color: var(--muted); font: 9px "Courier New", monospace; white-space: nowrap; }
.prospects-panel { margin-top: 14px; }.prospects-heading { align-items: center; }.table-tools { display: flex; gap: 8px; align-items: center; }.search-box { display: flex; align-items: center; gap: 7px; min-width: 190px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.15); color: var(--muted); }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .72rem; }.table-tools select { border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; background: #101b25; color: var(--muted-strong); font-size: .72rem; }.table-wrap { overflow-x: auto; } table { width: 100%; min-width: 720px; border-collapse: collapse; } th { padding: 0 12px 11px; color: var(--muted); text-align: left; font: 9px "Courier New", monospace; text-transform: uppercase; letter-spacing: .09em; } td { padding: 13px 12px; border-top: 1px solid var(--line); color: var(--muted-strong); font-size: .72rem; vertical-align: middle; } td:first-child { color: var(--text); font-weight: 700; } .lead-cell { display: flex; align-items: center; gap: 10px; }.lead-avatar { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid rgba(255,106,44,.38); border-radius: 8px; color: var(--orange); font: 10px "Courier New", monospace; }.lead-cell small { display: block; max-width: 240px; margin-top: 4px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.stage-pill, .signal-pill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--muted-strong); font: 9px "Courier New", monospace; white-space: nowrap; }.stage-pill.human { border-color: rgba(255,106,44,.36); color: #ffc2ad; }.stage-pill.won { border-color: rgba(158,232,194,.35); color: var(--mint); }.signal-pill { margin: 2px 2px 2px 0; color: var(--blue); }.table-link { color: var(--blue); font-size: .68rem; }.row-button { border: 0; background: transparent; color: var(--orange); font-size: .7rem; }.row-button:hover, .row-button:focus-visible { text-decoration: underline; outline: none; }
.strategy-grid { margin-top: 14px; }.strategy-grid .panel { padding: 22px; }.strategy-item, .offer-item { padding: 13px 0; border-top: 1px solid var(--line); }.strategy-item:first-child, .offer-item:first-child { border-top: 0; padding-top: 0; }.strategy-item-head, .offer-item-head { display: flex; justify-content: space-between; gap: 12px; }.strategy-item strong, .offer-item strong { font-size: .78rem; }.strategy-item em { color: var(--mint); font: normal 9px "Courier New", monospace; text-transform: uppercase; }.strategy-item p, .offer-item p { margin: 6px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }.offer-price { color: var(--mint); font: 1rem "Courier New", monospace; }
.guardrail-strip { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }.guardrail-strip span { border: 1px solid rgba(158,232,194,.22); border-radius: 999px; padding: 7px 9px; color: var(--mint); font: 9px "Courier New", monospace; text-transform: uppercase; }
.routines-panel { margin-top: 14px; }.routine-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }.routine-item { min-height: 135px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.12); }.routine-top { display: flex; justify-content: space-between; gap: 8px; }.routine-mode { color: var(--blue); font: 9px "Courier New", monospace; text-transform: uppercase; }.routine-item strong { display: block; margin-top: 21px; font-size: .76rem; }.routine-item small { display: block; margin-top: 7px; color: var(--muted); font: 10px "Courier New", monospace; line-height: 1.4; }.routine-status { display: inline-block; margin-top: 14px; color: var(--mint); font: 9px "Courier New", monospace; text-transform: uppercase; }.routine-status.off { color: var(--yellow); }
.dashboard-footer { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; color: var(--muted); font: 10px "Courier New", monospace; }.dashboard-footer span:last-child { color: var(--mint); }
.empty-state { padding: 24px 0 5px; color: var(--muted); font-size: .8rem; }.empty-state[hidden] { display: none; }
.lead-dialog { width: min(680px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line-strong); border-radius: 20px; background: #101b25; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.5); }.lead-dialog::backdrop { background: rgba(2,7,12,.75); backdrop-filter: blur(5px); }.dialog-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 18px; }.dialog-title-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.detail-block { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(0,0,0,.14); }.detail-block span { display: block; color: var(--muted); font: 9px "Courier New", monospace; text-transform: uppercase; }.detail-block strong { display: block; margin-top: 8px; font-size: .8rem; line-height: 1.35; }.detail-block.full { grid-column: 1 / -1; }.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: grid; gap: 8px; }.toast { max-width: 320px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #15232e; color: var(--muted-strong); font-size: .75rem; box-shadow: var(--shadow); animation: toast-in .25s ease both; }.toast.error { border-color: rgba(242,150,140,.45); color: var(--red); }.toast.ok { border-color: rgba(158,232,194,.35); color: var(--mint); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) { .app-layout { grid-template-columns: 74px minmax(0,1fr); }.sidebar { padding: 24px 12px; }.brand { justify-content: center; padding: 0; }.brand > span:last-child, .nav-link { font-size: 0; justify-content: center; }.nav-link { gap: 0; }.nav-index { font-size: 10px; width: auto; }.sidebar-footer { justify-content: center; padding: 14px 0; }.sidebar-footer span:last-child { display: none; }.kpi-grid { grid-template-columns: repeat(3,1fr); }.routine-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px) { .main-content { padding: 22px 15px 32px; }.topbar, .hero-strip, .section-heading, .prospects-heading { align-items: start; flex-direction: column; }.hero-strip { padding: 24px; }.hero-signal { align-self: end; }.kpi-grid { grid-template-columns: repeat(2,1fr); }.kpi-card:last-child { grid-column: 1 / -1; }.split-grid { grid-template-columns: 1fr; }.table-tools { width: 100%; flex-wrap: wrap; }.search-box { flex: 1; }.table-tools select { flex: 1; }.routine-grid { grid-template-columns: repeat(2,1fr); }.guardrail-strip { justify-content: start; }.dashboard-footer { flex-direction: column; }.detail-grid { grid-template-columns: 1fr; }.detail-block.full { grid-column: auto; } }
@media (max-width: 460px) { .app-layout { display: block; }.sidebar { position: sticky; top: 0; z-index: 10; flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--line); }.brand-mark { width: 30px; height: 30px; }.nav-stack { display: flex; gap: 3px; margin: 0; }.nav-link { width: 29px; height: 29px; padding: 0; }.sidebar-footer { display: none; }.nav-index { font-size: 8px; }.topbar-actions { width: 100%; justify-content: space-between; }.hero-copy h2 { font-size: 2.45rem; }.routine-grid { grid-template-columns: 1fr; } }
