:root {
  --ink: #e9f4ed;
  --muted: #9ab2a8;
  --soft: #728b81;
  --line: rgba(185, 227, 205, 0.13);
  --paper: #07141b;
  --paper-2: #0b1d25;
  --paper-3: #0e2530;
  --v2: #58d7b2;
  --v3: #a396ff;
  --warning: #f0bd71;
  --danger: #f18686;
  --mono: "DM Mono", SFMono-Regular, Consolas, monospace;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; background: linear-gradient(180deg, #08171e 0, var(--paper) 42rem); }
.topbar, main, footer { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: -0.04em; text-decoration: none; }
.brand b { color: var(--v2); font-size: 10px; letter-spacing: .13em; margin-left: 3px; }
.brand-mark { width: 27px; height: 27px; display: flex; align-items: flex-end; gap: 3px; padding: 5px; border: 1px solid rgba(88,215,178,.55); border-radius: 8px; }
.brand-mark i { width: 4px; background: var(--v2); border-radius: 3px; }.brand-mark i:nth-child(1){height: 7px}.brand-mark i:nth-child(2){height:13px}.brand-mark i:nth-child(3){height:18px}
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.network-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; font-size: 11px; }
.signal, .live-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 3px rgba(240,189,113,.12); }.signal.live { background: var(--v2); box-shadow: 0 0 0 3px rgba(88,215,178,.12); }.signal.error{background:var(--danger);box-shadow:none}
.button { padding: 10px 14px; color: var(--ink); border: 1px solid transparent; border-radius: 8px; background: transparent; font-weight: 700; font-size: 12px; transition: background .16s ease, transform .16s ease; }.button:hover { transform: translateY(-1px); }.button.primary { background: var(--v2); color: #062019; }.button.ghost { border-color: var(--line); color: var(--muted); }.button.ghost:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.masthead { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 46px 0 30px; }.eyebrow { margin: 0 0 8px; color: var(--v2); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.masthead h1 { max-width: 730px; margin: 0; color: #eff9f3; font-size: clamp(35px,4.6vw,62px); letter-spacing: -.07em; line-height: .98; }.masthead h1 em { color: var(--v2); font-style: normal; }.lede { max-width: 675px; margin: 15px 0 0; color: var(--muted); line-height: 1.7; font-size: 14px; }.masthead-meta { display: flex; flex-direction: column; align-items: end; gap: 10px; padding-bottom: 5px; white-space: nowrap; }.live-label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 12px; }.live-label i { background: var(--v2); box-shadow: 0 0 0 4px rgba(88,215,178,.1); }.mono { font-family: var(--mono); }.masthead-meta .mono { color: var(--soft); font-size: 11px; }
.summary-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }.summary-card { min-height: 118px; padding: 21px 20px; background: rgba(8,26,34,.78); display: flex; flex-direction: column; align-items: flex-start; }.summary-card.focal { background: rgba(16,48,51,.65); }.card-label { color: var(--soft); font-size: 11px; font-weight: 700; }.summary-card strong { margin-top: 10px; font-size: 17px; letter-spacing: -.04em; }.summary-card > span:not(.card-label), .transaction-link { margin-top: 5px; color: var(--muted); font-size: 11px; }.transaction-link { text-decoration-color: rgba(88,215,178,.45); text-underline-offset: 4px; }
.history-section { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: rgba(6,19,25,.82); }.history-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 17px; }.history-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.045em; }.history-tools { display: flex; align-items: end; gap: 10px; }.history-search { display: grid; gap: 5px; color: var(--soft); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.history-search input { width: 210px; padding: 9px 10px; color: var(--ink); outline: none; border: 1px solid var(--line); border-radius: 7px; background: #06151c; font-size: 11px; }.history-search input:focus { border-color: var(--v2); }.history-feed { display: grid; gap: 9px; }.history-loading, .history-empty { padding: 28px 16px; color: var(--soft); border: 1px dashed var(--line); border-radius: 8px; text-align: center; }.trade-card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); transition: border-color .16s ease, background .16s ease; }.trade-card:hover { border-color: rgba(88,215,178,.32); background: rgba(88,215,178,.035); }.trade-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--v2); background: rgba(88,215,178,.09); font-size: 18px; }.trade-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }.trade-topline strong { font-size: 13px; }.trade-time { color: var(--soft); font: 9px var(--mono); }.trade-copy { margin: 7px 0 9px; color: #bdcfc4; font-size: 12px; line-height: 1.55; }.trade-route { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }.route-token { color: #cfe1d6; font: 9px var(--mono); }.route-arrow { color: #4f6d64; font-size: 10px; }.venue-summary { margin-left: 5px; padding: 3px 6px; color: #c7c0ff; border-radius: 4px; background: rgba(163,150,255,.1); font: 8px var(--mono); }.trade-actions { display: flex; flex-direction: column; justify-content: center; align-items: end; gap: 8px; }.trade-actions a, .trade-actions button { white-space: nowrap; }.history-status { margin: 13px 0 0; color: var(--soft); font-size: 10px; }
.workspace { display: grid; grid-template-columns: 250px minmax(430px, 1fr) 250px; margin-top: 22px; border: 1px solid var(--line); border-radius: 11px; background: rgba(6,19,25,.82); overflow: hidden; }.activity-panel, .details-panel { padding: 22px 18px; background: rgba(4,17,23,.55); }.activity-panel { border-right: 1px solid var(--line); }.details-panel { border-left: 1px solid var(--line); }.story-panel { padding: 28px clamp(20px, 3vw, 40px) 24px; min-width: 0; }.panel-heading, .story-heading, .chapters-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }.panel-heading h2, .story-heading h2, .chapters-heading h2, .dialog-header h2 { margin: 0; letter-spacing: -.045em; font-size: 19px; }.count-chip { padding: 3px 7px; color: var(--v2); background: rgba(88,215,178,.09); border-radius: 5px; font: 11px var(--mono); }.panel-copy, .dialog-copy { color: var(--muted); font-size: 12px; line-height: 1.6; }.activity-list { margin: 21px -7px 15px; }.activity-item { width: 100%; display: block; padding: 12px 10px; text-align: left; border: 1px solid transparent; border-radius: 8px; color: var(--ink); background: transparent; }.activity-item:hover, .activity-item.active { background: rgba(88,215,178,.08); border-color: rgba(88,215,178,.15); }.activity-item-title { display: flex; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 12px; }.activity-item-meta { display: block; margin-top: 6px; color: var(--soft); font: 10px var(--mono); }.state-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--v2); }.text-button { padding: 0; border: 0; background: none; color: var(--v2); font-size: 11px; font-weight: 800; }.text-button span { font-size: 15px; }
.freshness { padding: 5px 8px; border-radius: 5px; background: rgba(163,150,255,.12); color: #c7c0ff; font: 10px var(--mono); }.story-lead { max-width: 740px; margin: 21px 0 19px; color: #d0ded5; font-size: 16px; letter-spacing: -.02em; line-height: 1.7; }.route-map { min-height: 190px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #081820; }.route-map svg { display: block; min-width: 960px; width: 100%; height: 205px; }.route-key { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 13px; color: var(--soft); font-size: 10px; }.route-key span { display: flex; align-items: center; gap: 6px; }.route-key i { display: block; width: 9px; height: 9px; border-radius: 3px; }.key-v2 { background: var(--v2); }.key-v3 { background: var(--v3); }.key-flow { width: 14px !important; height: 2px !important; border-radius: 0 !important; background: #567a70; }.split-callout { margin-top: 16px; padding: 12px 13px; border-left: 2px solid var(--v2); border-radius: 0 6px 6px 0; background: rgba(88,215,178,.06); color: #b9cfc2; line-height: 1.5; font-size: 12px; }.split-callout b { color: var(--ink); }
.story-impacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 0 17px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }.story-impact { min-height: 61px; padding: 10px 12px; background: rgba(255,255,255,.025); }.story-impact span { display: block; color: var(--soft); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.story-impact strong { display: block; margin-top: 5px; color: #d9e9df; font: 11px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.story-impact strong.positive { color: var(--v2); }.story-impact strong.unavailable { color: var(--warning); font-family: var(--sans); font-weight: 600; }
.telegram-state { min-height: 95px; margin-top: 19px; padding: 13px; border: 1px dashed rgba(185,227,205,.18); border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }.telegram-state strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 12px; }.telegram-button { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 11px; color: #c9dcff; background: rgba(113,156,255,.11); }.divider { height: 1px; margin: 23px 0; background: var(--line); }.execution-facts { margin: 10px 0 0; }.execution-facts div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }.execution-facts dt { color: var(--soft); font-size: 10px; }.execution-facts dd { margin: 0; color: #d6e4dc; font-size: 11px; overflow-wrap: anywhere; }.icon-button { width: 28px; height: 28px; padding: 0; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; background: transparent; font-size: 17px; line-height: 1; }.icon-button:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.proof-panel { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }.proof-link { display: flex; justify-content: space-between; align-items: center; padding: 10px; color: #cde2d5; border: 1px solid rgba(88,215,178,.25); border-radius: 7px; background: rgba(88,215,178,.06); font-size: 11px; font-weight: 800; text-decoration: none; }.proof-link:hover { border-color: var(--v2); }.proof-summary { margin: 9px 0; color: var(--soft); font: 10px/1.6 var(--mono); overflow-wrap: anywhere; }
.chapters { margin: 58px 0 26px; }.chapters-heading { align-items: center; margin-bottom: 17px; }.chapters-list { border-top: 1px solid var(--line); }.chapter { display: grid; grid-template-columns: 56px minmax(0,1fr) minmax(150px, 210px); gap: 17px; align-items: center; min-height: 102px; padding: 18px 8px; border-bottom: 1px solid var(--line); }.chapter-index { color: var(--soft); font: 13px var(--mono); }.chapter-title-row { display: flex; align-items: center; gap: 8px; }.venue-badge { padding: 4px 6px; border-radius: 4px; font: 9px var(--mono); }.venue-badge.v2 { color: #062019; background: var(--v2); }.venue-badge.v3 { color: #17112e; background: var(--v3); }.chapter h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }.chapter-copy { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.chapter-pool { margin: 6px 0 0; color: var(--soft); font-size: 10px; }.chapter-flow { justify-self: end; color: #cde2d5; text-align: right; font: 10px var(--mono); line-height: 1.8; }.chapter-flow b { color: var(--v2); font-weight: 500; }.source-note { display: flex; gap: 10px; max-width: 900px; padding: 14px 0 28px; color: var(--soft); font-size: 11px; line-height: 1.65; }.source-note p { margin: 0; }.source-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--v2); border: 1px solid rgba(88,215,178,.5); border-radius: 50%; font: 10px var(--mono); }
footer { display: flex; justify-content: space-between; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--soft); font-size: 10px; }.settings-dialog { width: min(540px, calc(100% - 30px)); max-height: min(90vh, 820px); padding: 0; color: var(--ink); border: 1px solid rgba(185,227,205,.22); border-radius: 12px; background: #0a1d25; box-shadow: 0 24px 80px rgba(0,0,0,.55); overflow-y: auto; }.settings-dialog::backdrop { background: rgba(0,0,0,.67); backdrop-filter: blur(4px); }.settings-dialog form { padding: 25px; }.dialog-header { display: flex; justify-content: space-between; gap: 20px; }.settings-dialog label { display: grid; gap: 8px; margin-top: 18px; color: #c6d8ce; font-size: 12px; font-weight: 700; }.settings-dialog input { width: 100%; padding: 11px; color: var(--ink); outline: none; border: 1px solid var(--line); border-radius: 7px; background: #06151c; font-size: 12px; }.settings-dialog input:focus { border-color: var(--v2); box-shadow: 0 0 0 3px rgba(88,215,178,.1); }.dialog-actions { display: flex; justify-content: end; gap: 10px; margin-top: 25px; }.server-state { margin: 15px 0 4px; padding: 10px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.025); font: 10px/1.55 var(--mono); }.server-state.ready { color: var(--v2); border-color: rgba(88,215,178,.28); }.server-state.error { color: var(--danger); border-color: rgba(241,134,134,.28); }.form-message { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }.form-message.success { color: var(--v2); }.form-message.error { color: var(--danger); }.router-history { margin-top: 17px; border-top: 1px solid var(--line); }.router-history-item { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }.router-history-item strong { color: #d9e9df; font-size: 11px; }.router-history-item span { color: var(--soft); font: 9px/1.5 var(--mono); }.router-history-item .active-router { color: var(--v2); font-weight: 800; }
@media (max-width: 1050px) { .workspace { grid-template-columns: 240px minmax(420px,1fr); }.details-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); border-left: 0; }.details-panel .panel-heading,.details-panel .telegram-state,.details-panel .telegram-button { grid-column: 1; }.details-panel .divider { display: none; }.details-panel .eyebrow,.details-panel .execution-facts { grid-column: 2; }.details-panel .eyebrow { grid-row: 1; align-self:end; }.details-panel .execution-facts { grid-row: 2 / span 2; margin: 0; } }
@media (max-width: 760px) { .topbar, main, footer { width: min(100% - 28px, 1420px); }.topbar { min-height: 67px; }.brand b,.network-pill { display: none; }.masthead { display: block; padding: 34px 0 25px; }.masthead h1 { font-size: 40px; }.masthead-meta { align-items: start; margin-top: 20px; }.summary-grid { grid-template-columns: 1fr 1fr; }.summary-card { min-height: 100px; padding: 16px; }.summary-card strong { font-size: 15px; }.history-section { padding: 16px 12px; }.history-heading { align-items: start; }.history-tools { display: grid; justify-items: end; }.history-search input { width: 150px; }.trade-card { grid-template-columns: 35px minmax(0,1fr); gap: 10px; padding: 13px 10px; }.trade-icon { width: 32px; height: 32px; }.trade-actions { grid-column: 2; flex-direction: row; justify-content: flex-start; align-items: center; }.workspace { grid-template-columns: 1fr; }.activity-panel { border-right: 0; border-bottom: 1px solid var(--line); }.activity-list { display: flex; overflow-x: auto; gap: 5px; }.activity-item { min-width: 180px; }.story-panel { padding: 23px 16px; }.route-map svg { height: 184px; }.story-impacts { grid-template-columns: 1fr; }.details-panel { display: block; }.details-panel .divider { display: block; }.details-panel .eyebrow,.details-panel .execution-facts { display: block; }.chapter { grid-template-columns: 38px minmax(0,1fr); gap: 10px; }.chapter-flow { grid-column: 2; justify-self: start; text-align: left; }.chapters-heading { align-items: flex-end; }.chapters-heading .button { padding: 9px; font-size: 11px; }.source-note { padding-bottom: 17px; } footer { padding-top: 17px; }.topbar-actions .button.ghost { display: none; } }
