Spaces:
Runtime error
Runtime error
| /* FlowTwin — Race Control | |
| A restrained operations console. Dark, high-contrast, tabular numerals, | |
| almost no chrome: the map and the numbers are the interface. */ | |
| :root { | |
| --bg: #070910; | |
| --bg-panel: #0d111a; | |
| --bg-panel-2: #111725; | |
| --bg-raised: #161d2c; | |
| --line: #1e2637; | |
| --line-soft: #172032; | |
| --text: #e8edf7; | |
| --text-dim: #9aa6bd; | |
| --text-faint: #64708a; | |
| --red: #e10600; | |
| --red-soft: #ff3b30; | |
| --amber: #ffa415; | |
| --yellow: #ffd400; | |
| --green: #12d38a; | |
| --cyan: #35c8f5; | |
| --violet: #a78bfa; | |
| --lvl-clear: #2f9e6a; | |
| --lvl-busy: #d7c33a; | |
| --lvl-warning: #ff9310; | |
| --lvl-critical: #ff3222; | |
| --radius: 10px; | |
| --radius-sm: 7px; | |
| --shadow: 0 18px 40px rgba(0,0,0,.45); | |
| --rail-l: 304px; | |
| --rail-r: 392px; | |
| --header-h: 58px; | |
| --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace; | |
| --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; | |
| } | |
| * { box-sizing: border-box; } | |
| /* Several elements below set an explicit `display`, which would otherwise beat | |
| the user-agent rule for [hidden]. Keep the attribute authoritative. */ | |
| [hidden] { display: none ; } | |
| html, body { | |
| height: 100%; | |
| margin: 0; | |
| background: var(--bg); | |
| color: var(--text); | |
| font-family: var(--sans); | |
| font-size: 13px; | |
| line-height: 1.45; | |
| -webkit-font-smoothing: antialiased; | |
| overflow: hidden; | |
| } | |
| body { | |
| background-image: | |
| radial-gradient(1200px 620px at 78% -12%, rgba(225,6,0,.10), transparent 62%), | |
| radial-gradient(900px 520px at 6% 108%, rgba(53,200,245,.07), transparent 60%); | |
| } | |
| h1, h2, h3, h4 { margin: 0; font-weight: 600; } | |
| p { margin: 0; } | |
| button { font: inherit; color: inherit; cursor: pointer; } | |
| :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; } | |
| .num { font-family: var(--mono); font-variant-numeric: tabular-nums; } | |
| /* ───────────────────────────── top bar ───────────────────────────── */ | |
| .topbar { | |
| height: var(--header-h); | |
| display: flex; align-items: center; gap: 20px; | |
| padding: 0 16px; | |
| border-bottom: 1px solid var(--line); | |
| background: linear-gradient(180deg, #0c111b, #090d15); | |
| position: relative; z-index: 40; | |
| } | |
| .brand { display: flex; align-items: center; gap: 11px; padding-right: 18px; border-right: 1px solid var(--line); } | |
| .brand-mark { display: flex; gap: 3px; align-items: flex-end; height: 22px; } | |
| .brand-mark span { | |
| width: 4px; border-radius: 2px; background: var(--red); | |
| animation: pulseBar 2.4s ease-in-out infinite; | |
| } | |
| .brand-mark span:nth-child(1) { height: 10px; animation-delay: 0s; } | |
| .brand-mark span:nth-child(2) { height: 18px; animation-delay: .2s; background: #ff5b52; } | |
| .brand-mark span:nth-child(3) { height: 13px; animation-delay: .4s; background: #7d1512; } | |
| @keyframes pulseBar { 0%,100% { opacity: .55; } 50% { opacity: 1; } } | |
| .brand-text { display: flex; flex-direction: column; line-height: 1.15; } | |
| .brand-text strong { font-size: 14px; letter-spacing: .16em; } | |
| .brand-text span { font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--text-faint); } | |
| .scenario-switch { display: flex; gap: 6px; flex: 1; min-width: 0; overflow: hidden; } | |
| .scenario-switch button { | |
| border: 1px solid var(--line); background: var(--bg-panel); | |
| border-radius: 999px; padding: 6px 14px; | |
| font-size: 11.5px; letter-spacing: .04em; color: var(--text-dim); | |
| white-space: nowrap; transition: .16s ease; | |
| } | |
| .scenario-switch button:hover { color: var(--text); border-color: #2c384f; } | |
| .scenario-switch button[aria-pressed="true"] { | |
| background: rgba(225,6,0,.14); border-color: rgba(225,6,0,.55); color: #ffd9d7; | |
| } | |
| .scenario-switch button .idx { | |
| font-family: var(--mono); font-size: 10px; color: var(--text-faint); margin-right: 7px; | |
| } | |
| .scenario-switch button[aria-pressed="true"] .idx { color: var(--red-soft); } | |
| .topbar-right { display: flex; align-items: center; gap: 10px; } | |
| .status-chip { | |
| display: flex; flex-direction: column; gap: 1px; | |
| padding: 4px 11px; border: 1px solid var(--line); | |
| border-radius: var(--radius-sm); background: var(--bg-panel); min-width: 78px; | |
| } | |
| .status-chip label { font-size: 8.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-faint); } | |
| .status-chip strong { font-size: 12.5px; font-weight: 600; } | |
| .status-chip.clock strong { font-family: var(--mono); letter-spacing: .02em; } | |
| .status-chip.conn { flex-direction: row; align-items: center; gap: 7px; min-width: 0; } | |
| .status-chip.conn strong { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; } | |
| .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); } | |
| .dot.live { background: var(--green); box-shadow: 0 0 0 3px rgba(18,211,138,.16); animation: blip 2s ease-in-out infinite; } | |
| .dot.error { background: var(--red-soft); box-shadow: 0 0 0 3px rgba(255,59,48,.18); } | |
| @keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: .45; } } | |
| .transport { display: flex; align-items: center; gap: 8px; } | |
| .btn-icon { | |
| width: 32px; height: 32px; display: grid; place-items: center; | |
| border: 1px solid var(--line); border-radius: var(--radius-sm); | |
| background: var(--bg-panel); transition: .16s ease; | |
| } | |
| .btn-icon:hover { border-color: #33425e; background: var(--bg-raised); } | |
| .btn-icon svg { width: 13px; height: 13px; fill: currentColor; } | |
| #btn-play .ico-pause { display: none; } | |
| #btn-play[data-playing="true"] { background: rgba(225,6,0,.15); border-color: rgba(225,6,0,.5); color: #ffb3af; } | |
| #btn-play[data-playing="true"] .ico-play { display: none; } | |
| #btn-play[data-playing="true"] .ico-pause { display: block; } | |
| .speed-group { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; } | |
| .speed-group button { | |
| border: 0; background: var(--bg-panel); padding: 6px 9px; | |
| font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); | |
| border-right: 1px solid var(--line-soft); transition: .14s ease; | |
| } | |
| .speed-group button:last-child { border-right: 0; } | |
| .speed-group button:hover { color: var(--text); } | |
| .speed-group button[aria-pressed="true"] { background: var(--bg-raised); color: var(--cyan); } | |
| /* ───────────────────────────── layout ───────────────────────────── */ | |
| .layout { | |
| height: calc(100vh - var(--header-h)); | |
| display: grid; | |
| grid-template-columns: var(--rail-l) minmax(0, 1fr) var(--rail-r); | |
| gap: 12px; padding: 12px; | |
| } | |
| .rail { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overflow-x: hidden; padding-right: 2px; } | |
| .rail::-webkit-scrollbar, .panel-body::-webkit-scrollbar, | |
| .drawer-col::-webkit-scrollbar, .modal-body::-webkit-scrollbar { width: 8px; } | |
| .rail::-webkit-scrollbar-thumb, .panel-body::-webkit-scrollbar-thumb, | |
| .drawer-col::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb { | |
| background: #1d2637; border-radius: 4px; | |
| } | |
| .rail::-webkit-scrollbar-track { background: transparent; } | |
| .panel { | |
| background: var(--bg-panel); | |
| border: 1px solid var(--line); | |
| border-radius: var(--radius); | |
| overflow: hidden; | |
| flex-shrink: 0; | |
| } | |
| .panel-head { | |
| display: flex; align-items: center; justify-content: space-between; gap: 8px; | |
| padding: 9px 13px; border-bottom: 1px solid var(--line-soft); | |
| background: linear-gradient(180deg, rgba(255,255,255,.022), transparent); | |
| } | |
| .panel-head h2 { font-size: 10px; letter-spacing: .17em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; } | |
| .panel-body { padding: 13px; } | |
| .panel-body.tight { padding: 8px; } | |
| .tag { | |
| font-family: var(--mono); font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; | |
| padding: 2.5px 8px; border-radius: 999px; | |
| background: var(--bg-raised); color: var(--text-faint); border: 1px solid var(--line); | |
| } | |
| .tag.warn { background: rgba(255,164,21,.12); color: var(--amber); border-color: rgba(255,164,21,.3); } | |
| .tag.live { background: rgba(18,211,138,.12); color: var(--green); border-color: rgba(18,211,138,.3); } | |
| .tag.busy { background: rgba(53,200,245,.12); color: var(--cyan); border-color: rgba(53,200,245,.3); } | |
| /* left rail content */ | |
| .scenario-name { font-size: 14.5px; letter-spacing: -.01em; margin-bottom: 4px; } | |
| .scenario-headline { color: var(--text-dim); font-size: 12px; margin-bottom: 10px; } | |
| .briefing { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; } | |
| .briefing li { | |
| font-size: 11.5px; color: var(--text-dim); | |
| padding-left: 13px; position: relative; line-height: 1.4; | |
| } | |
| .briefing li::before { | |
| content: ""; position: absolute; left: 0; top: 6.5px; | |
| width: 5px; height: 5px; border-radius: 1px; background: var(--line); | |
| transform: rotate(45deg); | |
| } | |
| .briefing li.fact::before { background: var(--cyan); } | |
| .briefing li.assume::before { background: var(--violet); } | |
| .kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line-soft); } | |
| .kv dt { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-faint); } | |
| .kv dd { margin: 0; font-family: var(--mono); font-size: 11.5px; text-align: right; } | |
| .field { margin-bottom: 12px; } | |
| .field label { | |
| display: flex; justify-content: space-between; align-items: baseline; | |
| font-size: 10px; letter-spacing: .1em; text-transform: uppercase; | |
| color: var(--text-faint); margin-bottom: 5px; | |
| } | |
| .field output { font-family: var(--mono); font-size: 11.5px; color: var(--cyan); letter-spacing: 0; text-transform: none; } | |
| input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--bg-raised); outline: none; } | |
| input[type="range"]::-webkit-slider-thumb { | |
| -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; | |
| background: var(--text); border: 3px solid var(--bg-panel); | |
| box-shadow: 0 0 0 1px var(--line); cursor: pointer; | |
| } | |
| input[type="range"]::-moz-range-thumb { | |
| width: 14px; height: 14px; border-radius: 50%; background: var(--text); | |
| border: 3px solid var(--bg-panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; | |
| } | |
| input[type="number"], select { | |
| width: 100%; background: var(--bg-raised); border: 1px solid var(--line); | |
| border-radius: var(--radius-sm); padding: 6px 9px; color: var(--text); | |
| font-family: var(--mono); font-size: 11.5px; | |
| } | |
| select { font-family: var(--sans); } | |
| .seed-row { display: flex; gap: 6px; } | |
| .seed-row input { flex: 1; } | |
| .seed-row .btn-ghost { width: 32px; padding: 0; } | |
| .btn-primary { | |
| border: 1px solid rgba(225,6,0,.55); border-radius: var(--radius-sm); | |
| background: linear-gradient(180deg, #d5211c, #a91310); | |
| color: #fff; padding: 9px 14px; font-size: 11.5px; font-weight: 600; | |
| letter-spacing: .1em; text-transform: uppercase; transition: .16s ease; | |
| } | |
| .btn-primary:hover:not(:disabled) { filter: brightness(1.14); } | |
| .btn-primary:disabled { opacity: .45; cursor: not-allowed; } | |
| .btn-ghost { | |
| border: 1px solid var(--line); border-radius: var(--radius-sm); | |
| background: var(--bg-raised); color: var(--text-dim); | |
| padding: 7px 12px; font-size: 11px; transition: .16s ease; | |
| } | |
| .btn-ghost:hover { color: var(--text); border-color: #2e3a52; } | |
| .btn-ghost.sm, .btn-primary.sm { padding: 4px 9px; font-size: 10px; } | |
| .block { display: block; width: 100%; } | |
| .hint { font-size: 10.5px; color: var(--text-faint); margin-top: 8px; line-height: 1.45; } | |
| .timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; } | |
| .timeline li { display: flex; gap: 10px; padding: 7px 0; position: relative; } | |
| .timeline li + li { border-top: 1px solid var(--line-soft); } | |
| .timeline .t { font-family: var(--mono); font-size: 11px; color: var(--text-faint); min-width: 46px; } | |
| .timeline .body { flex: 1; } | |
| .timeline .label { font-size: 11.5px; } | |
| .timeline .detail { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; line-height: 1.4; } | |
| .timeline li.fired .label { color: var(--text); } | |
| .timeline li.fired .t { color: var(--red-soft); } | |
| .timeline li.pending { opacity: .55; } | |
| .timeline li.sev-critical .label::before, | |
| .timeline li.sev-warning .label::before { content: "▲ "; color: var(--amber); font-size: 9px; } | |
| .timeline li.sev-critical .label::before { color: var(--red-soft); } | |
| .prov-group + .prov-group { margin-top: 12px; } | |
| .prov-group h4 { margin-bottom: 6px; } | |
| .pill { | |
| font-size: 9px; letter-spacing: .14em; text-transform: uppercase; | |
| padding: 2px 8px; border-radius: 999px; font-weight: 600; | |
| } | |
| .pill.fact { background: rgba(53,200,245,.13); color: var(--cyan); border: 1px solid rgba(53,200,245,.3); } | |
| .pill.assume { background: rgba(167,139,250,.13); color: var(--violet); border: 1px solid rgba(167,139,250,.3); } | |
| .prov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; } | |
| .prov-list li { font-size: 11px; line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--line); } | |
| .prov-list li strong { display: block; color: var(--text); font-weight: 500; } | |
| .prov-list li span { color: var(--text-faint); } | |
| .prov-list li cite { display: block; color: var(--text-faint); font-style: normal; font-size: 10px; margin-top: 2px; } | |
| .disclaimer { | |
| font-size: 10.5px; line-height: 1.5; color: var(--amber); | |
| background: rgba(255,164,21,.07); border: 1px solid rgba(255,164,21,.2); | |
| border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 12px; | |
| } | |
| /* ───────────────────────────── stage / map ───────────────────────────── */ | |
| .stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; } | |
| .map-shell { | |
| position: relative; flex: 1; min-height: 0; | |
| background: | |
| radial-gradient(1000px 700px at 50% 42%, #0e1523, #070a11 74%); | |
| border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; | |
| } | |
| #map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } | |
| .map-overlay { position: absolute; z-index: 3; pointer-events: none; } | |
| .map-title { top: 14px; left: 16px; display: flex; flex-direction: column; } | |
| .map-title strong { font-size: 15px; letter-spacing: .015em; } | |
| .map-title span { font-size: 10.5px; color: var(--text-faint); letter-spacing: .04em; } | |
| .map-layers { top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 60%; pointer-events: auto; } | |
| .map-layers button { | |
| border: 1px solid var(--line); background: rgba(10,14,22,.86); backdrop-filter: blur(6px); | |
| border-radius: 999px; padding: 4px 10px; font-size: 10px; letter-spacing: .06em; | |
| color: var(--text-faint); transition: .15s ease; | |
| } | |
| .map-layers button[aria-pressed="true"] { color: var(--text); border-color: #33425e; background: rgba(28,38,56,.9); } | |
| .map-layers button .sw { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 6px; vertical-align: middle; } | |
| .map-legend { bottom: 14px; left: 16px; } | |
| .legend-row { display: flex; gap: 2px; margin-bottom: 5px; } | |
| .legend-row i { width: 42px; height: 6px; display: block; position: relative; } | |
| .legend-row i:first-child { border-radius: 3px 0 0 3px; } | |
| .legend-row i:last-child { border-radius: 0 3px 3px 0; } | |
| .legend-row i b { | |
| position: absolute; top: 9px; left: 0; font-family: var(--mono); | |
| font-size: 9px; font-weight: 400; color: var(--text-faint); | |
| } | |
| .legend-note { font-size: 9.5px; color: var(--text-faint); letter-spacing: .07em; text-transform: uppercase; margin-top: 12px; } | |
| .map-scale { bottom: 16px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; } | |
| .map-scale span { display: block; height: 5px; border: 1px solid var(--text-faint); border-top: 0; } | |
| .map-scale label { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); } | |
| .tooltip { | |
| position: absolute; z-index: 12; pointer-events: none; | |
| background: rgba(9,13,21,.97); border: 1px solid #2a3549; | |
| border-radius: var(--radius-sm); padding: 9px 11px; min-width: 190px; | |
| box-shadow: var(--shadow); font-size: 11px; | |
| } | |
| .tooltip h5 { font-size: 11.5px; margin: 0 0 6px; letter-spacing: .01em; } | |
| .tooltip .trow { display: flex; justify-content: space-between; gap: 16px; padding: 1.5px 0; color: var(--text-dim); } | |
| .tooltip .trow b { font-family: var(--mono); color: var(--text); font-weight: 500; } | |
| .tooltip .tsep { height: 1px; background: var(--line); margin: 6px 0; } | |
| .map-empty { | |
| position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; | |
| text-align: center; gap: 6px; background: rgba(7,9,16,.72); backdrop-filter: blur(3px); | |
| } | |
| .map-empty h3 { font-size: 15px; } | |
| .map-empty p { color: var(--text-faint); font-size: 12px; } | |
| .map-flash { | |
| position: absolute; inset: 0; z-index: 6; pointer-events: none; | |
| display: grid; place-items: center; | |
| } | |
| .map-flash div { | |
| border: 1px solid rgba(255,50,34,.55); background: rgba(30,8,8,.9); | |
| border-radius: var(--radius); padding: 14px 26px; text-align: center; | |
| box-shadow: 0 0 40px rgba(255,50,34,.22); | |
| animation: flashIn .35s ease-out, flashOut .5s ease-in 3.1s forwards; | |
| } | |
| .map-flash strong { display: block; font-size: 13px; letter-spacing: .13em; text-transform: uppercase; color: #ff6a5e; } | |
| .map-flash span { font-size: 11.5px; color: var(--text-dim); } | |
| @keyframes flashIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } } | |
| @keyframes flashOut { to { opacity: 0; } } | |
| /* metrics strip */ | |
| .metrics-strip { | |
| display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; | |
| border: 1px solid var(--line); border-radius: var(--radius); | |
| background: var(--bg-panel); overflow: hidden; flex-shrink: 0; | |
| } | |
| .metric { padding: 9px 14px; border-right: 1px solid var(--line-soft); min-width: 0; } | |
| .metric:last-child { border-right: 0; } | |
| .metric label { | |
| display: block; font-size: 8.5px; letter-spacing: .15em; text-transform: uppercase; | |
| color: var(--text-faint); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; | |
| } | |
| .metric .val { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; } | |
| .metric .sub { font-size: 9.5px; color: var(--text-faint); font-family: var(--mono); } | |
| .metric.is-warning .val { color: var(--amber); } | |
| .metric.is-critical .val { color: var(--red-soft); } | |
| .metric.is-good .val { color: var(--green); } | |
| /* ───────────────────────────── alerts ───────────────────────────── */ | |
| .alerts-panel .panel-body { max-height: 246px; overflow-y: auto; } | |
| .alert { | |
| border: 1px solid var(--line); border-left-width: 3px; | |
| border-radius: var(--radius-sm); padding: 9px 11px; margin-bottom: 7px; | |
| background: var(--bg-panel-2); cursor: pointer; transition: .15s ease; | |
| } | |
| .alert:last-child { margin-bottom: 0; } | |
| .alert:hover { background: var(--bg-raised); } | |
| .alert.critical { border-left-color: var(--red-soft); background: rgba(255,50,34,.055); } | |
| .alert.warning { border-left-color: var(--amber); background: rgba(255,164,21,.05); } | |
| .alert.watch { border-left-color: var(--text-faint); } | |
| .alert-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; } | |
| .alert-sev { | |
| font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; | |
| } | |
| .alert.critical .alert-sev { color: var(--red-soft); } | |
| .alert.warning .alert-sev { color: var(--amber); } | |
| .alert.watch .alert-sev { color: var(--text-faint); } | |
| .alert-ttc { font-family: var(--mono); font-size: 11px; color: var(--text); } | |
| .alert-name { font-size: 12.5px; font-weight: 500; margin-bottom: 2px; } | |
| .alert-detail { font-size: 11px; color: var(--text-dim); } | |
| .alert-causes { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; } | |
| .alert-causes li { | |
| font-size: 9.5px; color: var(--text-faint); background: rgba(255,255,255,.035); | |
| border: 1px solid var(--line-soft); border-radius: 999px; padding: 1.5px 7px; | |
| } | |
| .alert.critical { animation: alertIn .3s ease-out; } | |
| @keyframes alertIn { from { opacity: 0; transform: translateX(10px); } } | |
| .empty { color: var(--text-faint); font-size: 11.5px; text-align: center; padding: 14px 0; } | |
| /* prediction */ | |
| .pred-row { padding: 7px 6px; border-bottom: 1px solid var(--line-soft); } | |
| .pred-row:last-of-type { border-bottom: 0; } | |
| .pred-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 5px; } | |
| .pred-name { font-size: 11.5px; } | |
| .pred-ttc { font-family: var(--mono); font-size: 10.5px; color: var(--amber); white-space: nowrap; } | |
| .pred-ttc.safe { color: var(--text-faint); } | |
| .pred-track { display: flex; gap: 3px; align-items: flex-end; height: 30px; } | |
| .pred-cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; } | |
| .pred-cell i { display: block; width: 100%; border-radius: 2px 2px 0 0; min-height: 2px; transition: height .3s ease, background .3s ease; } | |
| .pred-cell b { font-family: var(--mono); font-size: 8.5px; font-weight: 400; color: var(--text-faint); } | |
| .pred-cell.now b { color: var(--text-dim); } | |
| /* strategy */ | |
| #recommendation-card:empty { display: none; } | |
| .rec-card { | |
| margin-top: 12px; border: 1px solid rgba(18,211,138,.32); | |
| background: linear-gradient(180deg, rgba(18,211,138,.09), rgba(18,211,138,.02)); | |
| border-radius: var(--radius-sm); padding: 11px 12px; | |
| animation: alertIn .3s ease-out; | |
| } | |
| .rec-card .rec-label { font-size: 9px; letter-spacing: .17em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; } | |
| .rec-card h4 { font-size: 14px; margin-bottom: 3px; } | |
| .rec-card .rec-instr { font-size: 11px; color: var(--text-dim); margin-bottom: 9px; } | |
| .rec-card ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 3px; } | |
| .rec-card ul li { font-size: 11px; color: var(--text-dim); display: flex; gap: 6px; } | |
| .rec-card ul li::before { content: "▸"; color: var(--green); } | |
| .rec-card ul li.cost::before { content: "▸"; color: var(--amber); } | |
| .rec-actions { display: flex; gap: 6px; } | |
| .rec-actions .btn-primary { flex: 1; } | |
| .applied-banner { | |
| margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); | |
| padding: 9px 11px; background: var(--bg-panel-2); | |
| } | |
| .applied-banner .rec-label { color: var(--cyan); } | |
| /* ───────────────────────────── drawer ───────────────────────────── */ | |
| .drawer { | |
| position: fixed; left: 12px; right: 12px; bottom: 0; z-index: 30; | |
| background: var(--bg-panel); border: 1px solid var(--line); | |
| border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; | |
| box-shadow: var(--shadow); max-height: 62vh; display: flex; flex-direction: column; | |
| animation: drawerUp .28s cubic-bezier(.22,.8,.3,1); | |
| } | |
| @keyframes drawerUp { from { transform: translateY(24px); opacity: 0; } } | |
| .drawer-head { | |
| display: flex; align-items: center; justify-content: space-between; gap: 12px; | |
| padding: 10px 16px; border-bottom: 1px solid var(--line-soft); | |
| } | |
| .drawer-head h2 { font-size: 11px; letter-spacing: .17em; text-transform: uppercase; color: var(--text-dim); } | |
| .drawer-head p { font-size: 11px; color: var(--text-faint); margin-top: 2px; } | |
| .drawer-body { | |
| display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr) minmax(0, .8fr); | |
| gap: 0; overflow: hidden; min-height: 0; | |
| } | |
| .drawer-col { padding: 12px 16px; overflow-y: auto; border-right: 1px solid var(--line-soft); min-width: 0; } | |
| .drawer-col:last-child { border-right: 0; } | |
| .drawer-col h3 { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 9px; } | |
| .strategy-table { width: 100%; border-collapse: collapse; font-size: 11.5px; } | |
| .strategy-table th { | |
| text-align: right; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; | |
| color: var(--text-faint); font-weight: 500; padding: 0 8px 7px; white-space: nowrap; | |
| border-bottom: 1px solid var(--line); | |
| } | |
| .strategy-table th:first-child { text-align: left; } | |
| .strategy-table td { padding: 7px 8px; text-align: right; font-family: var(--mono); border-bottom: 1px solid var(--line-soft); } | |
| .strategy-table td:first-child { text-align: left; font-family: var(--sans); } | |
| .strategy-table tr:last-child td { border-bottom: 0; } | |
| .strategy-table tbody tr { cursor: pointer; transition: background .14s ease; } | |
| .strategy-table tbody tr:hover { background: rgba(255,255,255,.028); } | |
| .strategy-table tr.recommended { background: rgba(18,211,138,.075); } | |
| .strategy-table tr.recommended td { border-color: rgba(18,211,138,.18); } | |
| .strategy-table tr.baseline td:first-child { color: var(--text-faint); } | |
| .strategy-table tr.selected { outline: 1px solid var(--cyan); outline-offset: -1px; } | |
| .st-name { display: flex; align-items: center; gap: 7px; } | |
| .st-star { color: var(--green); font-size: 11px; } | |
| .st-family { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); } | |
| .delta { font-size: 9.5px; display: block; } | |
| .delta.good { color: var(--green); } | |
| .delta.bad { color: var(--amber); } | |
| .delta.flat { color: var(--text-faint); } | |
| .table-note { font-size: 10px; color: var(--text-faint); margin-top: 10px; line-height: 1.5; } | |
| .why-block { margin-bottom: 12px; } | |
| .why-block .k { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; } | |
| .why-block .v { font-size: 13px; } | |
| .why-block .v.big { font-size: 16px; font-family: var(--mono); } | |
| .why-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; } | |
| .why-reasons li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: baseline; font-size: 11.5px; } | |
| .why-reasons .metric-name { color: var(--text-dim); } | |
| .why-reasons .metric-val { font-family: var(--mono); } | |
| .why-reasons .metric-val .arrow { margin-right: 4px; } | |
| .why-reasons li.good .metric-val { color: var(--green); } | |
| .why-reasons li.bad .metric-val { color: var(--amber); } | |
| .why-method { font-size: 10px; color: var(--text-faint); line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); } | |
| #strategy-chart { width: 100%; height: 156px; display: block; } | |
| .chart-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; } | |
| .chart-legend span { font-size: 10px; color: var(--text-faint); display: flex; align-items: center; gap: 5px; } | |
| .chart-legend i { width: 12px; height: 2px; border-radius: 1px; } | |
| /* ───────────────────────────── modal / toast ───────────────────────────── */ | |
| .modal-backdrop { | |
| position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; | |
| background: rgba(4,6,11,.74); backdrop-filter: blur(4px); padding: 24px; | |
| } | |
| .modal-card { | |
| background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); | |
| box-shadow: var(--shadow); width: min(760px, 100%); max-height: 82vh; display: flex; flex-direction: column; | |
| } | |
| .modal-card header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); } | |
| .modal-card header h2 { font-size: 13px; letter-spacing: .04em; } | |
| .modal-body { padding: 16px; overflow-y: auto; font-size: 12px; line-height: 1.6; color: var(--text-dim); } | |
| .modal-body h3 { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-faint); margin: 16px 0 7px; } | |
| .modal-body h3:first-child { margin-top: 0; } | |
| .modal-body table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 6px; } | |
| .modal-body th { text-align: right; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; padding: 0 8px 6px; border-bottom: 1px solid var(--line); } | |
| .modal-body th:first-child { text-align: left; } | |
| .modal-body td { padding: 6px 8px; text-align: right; font-family: var(--mono); border-bottom: 1px solid var(--line-soft); color: var(--text); } | |
| .modal-body td:first-child { text-align: left; font-family: var(--sans); color: var(--text-dim); } | |
| .modal-body code { font-family: var(--mono); font-size: 11px; background: var(--bg-raised); padding: 1px 5px; border-radius: 4px; color: var(--cyan); } | |
| .toasts { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; } | |
| .toast { | |
| background: var(--bg-raised); border: 1px solid var(--line); border-left: 3px solid var(--cyan); | |
| border-radius: var(--radius-sm); padding: 9px 13px; font-size: 11.5px; box-shadow: var(--shadow); | |
| animation: toastIn .25s ease-out; max-width: 340px; | |
| } | |
| .toast.error { border-left-color: var(--red-soft); } | |
| .toast.ok { border-left-color: var(--green); } | |
| @keyframes toastIn { from { opacity: 0; transform: translateY(8px); } } | |
| .spinner { | |
| display: inline-block; width: 11px; height: 11px; border-radius: 50%; | |
| border: 2px solid rgba(255,255,255,.22); border-top-color: #fff; | |
| animation: spin .7s linear infinite; vertical-align: -1px; margin-right: 7px; | |
| } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| .skeleton { | |
| background: linear-gradient(90deg, var(--bg-raised) 25%, #1b2434 50%, var(--bg-raised) 75%); | |
| background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 4px; | |
| } | |
| @keyframes shimmer { to { background-position: -200% 0; } } | |
| /* ───────────────────────────── responsive ───────────────────────────── */ | |
| @media (max-width: 1500px) { | |
| :root { --rail-l: 268px; --rail-r: 348px; } | |
| } | |
| @media (max-width: 1240px) { | |
| .layout { grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: minmax(0,1fr) auto; } | |
| .rail-right { grid-column: 1 / -1; flex-direction: row; max-height: 260px; } | |
| .rail-right .panel { flex: 1; min-width: 0; } | |
| .drawer-body { grid-template-columns: minmax(0, 1fr); } | |
| .drawer-col { border-right: 0; border-bottom: 1px solid var(--line-soft); } | |
| } | |
| @media (max-width: 900px) { | |
| .layout { grid-template-columns: minmax(0, 1fr); } | |
| .rail-left { flex-direction: row; max-height: 220px; } | |
| .rail-left .panel { flex: 1; min-width: 240px; } | |
| .scenario-switch { display: none; } | |
| } | |
| @media (prefers-reduced-motion: reduce) { | |
| *, *::before, *::after { animation-duration: .001ms ; transition-duration: .001ms ; } | |
| } | |
| .pred-ttc[data-trend="rising"] { color: var(--amber); } | |
| /* ── perception modal ──────────────────────────────────────────────── */ | |
| .ascii { | |
| font-family: var(--mono); font-size: 10.5px; line-height: 1.6; color: var(--text-faint); | |
| background: var(--bg-raised); border: 1px solid var(--line); | |
| border-radius: var(--radius-sm); padding: 11px 13px; margin: 12px 0; overflow-x: auto; | |
| } | |
| .perc-state { | |
| border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-sm); | |
| padding: 11px 13px; margin: 12px 0; background: var(--bg-panel-2); | |
| } | |
| .perc-state.ok { border-left-color: var(--green); } | |
| .perc-state.bad { border-left-color: var(--amber); } | |
| .perc-state .k { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); } | |
| .perc-state .v { font-size: 13px; color: var(--text); font-family: var(--mono); margin-top: 2px; } | |
| .perc-state .v.big { font-size: 20px; } | |
| .perc-state p { margin-top: 6px; font-size: 11px; } | |
| .perc-state p.muted { color: var(--text-faint); } | |
| .perc-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; } | |
| .perc-form input[type="file"] { flex: 1; min-width: 180px; font-size: 11px; color: var(--text-dim); } | |
| .perc-form input[type="number"] { width: 190px; } | |
| .perc-chain { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; } | |
| .perc-chain li { border-left: 2px solid var(--line); padding-left: 10px; font-size: 11px; } | |
| .perc-chain li strong { display: block; font-family: var(--mono); color: var(--cyan); font-weight: 400; } | |
| .perc-chain li span { display: block; color: var(--text-dim); } | |
| .perc-chain li span.muted { color: var(--text-faint); margin-top: 2px; } | |