/* * ПТИЦА cockpit — dark "operator terminal" styles (INCREMENT 1). * * Ported from the prototype tokens.css + styles.css. Every design token is * scoped under `.pticaRoot[data-theme="dark"]` (the wrapper carries BOTH the * class and the attribute) so these dark vars NEVER leak onto the existing * light analysis pages. Cockpit class styles reference tokens via var(--…). */ /* ===================== SCOPED TOKENS (dark) ===================== */ .pticaRoot[data-theme="dark"] { --font-ui: "Inter", "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif; --font-mono: var(--font-plex-mono), "IBM Plex Mono", "Roboto Mono", ui-monospace, monospace; --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --line: 1px; --line-strong: 1.5px; /* accents */ --accent-blue: #2f6f9f; --accent-cyan: #7fd0ee; --accent-cyan-strong: #8ed3ff; --accent-green: #38c172; --accent-yellow: #e0a93b; --accent-red: #d2655b; --accent-purple: #9b80d6; --accent-orange: #e46c35; --gauge-track: 9px; /* dark surface palette */ --bg: #060f16; --bg-2: #08131c; --grid-line: rgba(120, 165, 190, 0.06); --surface: rgba(11, 26, 36, 0.72); --surface-2: rgba(9, 22, 31, 0.62); --surface-strong: rgba(12, 30, 42, 0.94); --surface-muted: rgba(26, 52, 67, 0.55); --surface-inset: rgba(4, 12, 18, 0.6); --text: #dcebf2; --text-strong: #f2fafe; --text-muted: #8ba6b3; --text-soft: #5f7886; --border: rgba(150, 192, 214, 0.18); --border-strong: rgba(150, 192, 214, 0.4); --border-faint: rgba(150, 192, 214, 0.1); --map-bg: #0a1820; --map-filter: saturate(0.7) contrast(1.12) brightness(0.7); --glow: rgba(110, 200, 240, 0.28); --glow-strong: rgba(110, 200, 240, 0.55); --shadow: 0 18px 70px rgba(0, 0, 0, 0.5); --gauge-good: var(--accent-green); /* root paint */ position: relative; min-height: 100vh; font-family: var(--font-ui); color: var(--text); font-size: 13px; line-height: 1.4; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; background: linear-gradient(90deg, transparent 31px, var(--grid-line) 32px), linear-gradient(0deg, transparent 31px, var(--grid-line) 32px), radial-gradient(circle at 78% -10%, var(--glow), transparent 45%), var(--bg); background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%; } .pticaRoot button { font: inherit; cursor: pointer; color: inherit; } .pticaRoot svg { display: block; } .mono { font-family: var(--font-mono); } /* ===================== APP SHELL ===================== */ .shell { display: grid; grid-template-columns: 96px 1fr; min-height: 100vh; } /* sidebar rail */ .rail { border-right: var(--line) solid var(--border); background: var(--surface-2); backdrop-filter: blur(8px); display: flex; flex-direction: column; padding: 16px 10px 12px; gap: 14px; position: sticky; top: 0; height: 100vh; } .brand { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 6px; } .brandMark { width: 40px; height: 40px; color: var(--accent-cyan); filter: drop-shadow(0 0 10px var(--glow)); } .nav { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; } .navItem { position: relative; display: grid; place-items: center; gap: 6px; min-height: 60px; padding: 8px 4px; border: var(--line) solid transparent; border-radius: var(--radius-sm); color: var(--text-soft); background: transparent; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; transition: color 0.15s, background 0.15s; } .navItem svg { width: 22px; height: 22px; } .navItem:hover { color: var(--text-muted); background: var(--surface); } .navFoot { margin-top: auto; display: grid; gap: 8px; justify-items: center; color: var(--text-soft); } .navFoot .mono { font-size: 8px; text-align: center; line-height: 1.5; } /* main column */ .main { display: flex; flex-direction: column; min-width: 0; } /* topbar */ .topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 12px 20px; border-bottom: var(--line) solid var(--border); background: var(--surface-2); backdrop-filter: blur(8px); } .wordmark { display: flex; align-items: center; gap: 12px; } .bird { width: 26px; height: 26px; color: var(--accent-cyan); } .wordmarkTitle { font-weight: 700; letter-spacing: 0.42em; font-size: 18px; color: var(--text-strong); } .wordmarkSub { color: var(--text-soft); font-size: 8.5px; line-height: 1.25; text-transform: uppercase; letter-spacing: 0.06em; } .tabs { display: flex; justify-content: center; gap: 0; } .tab { padding: 8px 22px; background: transparent; border: none; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; border-bottom: 2px solid transparent; } .tab + .tab { border-left: var(--line) solid var(--border); } .tab:hover { color: var(--text); } .tabActive { color: var(--text-strong); border-bottom-color: var(--accent-cyan); } .sysbar { display: flex; align-items: center; gap: 16px; color: var(--text-muted); } .clock { font-family: var(--font-mono); font-size: 12px; text-align: right; line-height: 1.3; } .clock b { color: var(--text); font-weight: 600; } /* canvas (scroll area) */ .canvas { padding: 14px 18px 24px; display: flex; flex-direction: column; gap: 12px; } /* ===================== PANEL / CARD primitives ===================== */ .panel, .card, .mapCard { position: relative; background: var(--surface); border: var(--line) solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); backdrop-filter: blur(6px); } .panel, .card { padding: 14px 15px; } .cardHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; } .cardTitle { display: flex; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-strong); margin: 0; } .cardTitleSub { font-size: 9px; font-weight: 500; letter-spacing: 0.08em; color: var(--text-soft); } .detailBtn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: var(--line) solid var(--border-strong); background: transparent; color: var(--text-muted); border-radius: var(--radius-xs); text-transform: uppercase; font-size: 9px; letter-spacing: 0.08em; white-space: nowrap; } .detailBtn::after { content: "→"; font-size: 11px; } .detailBtn:disabled { opacity: 0.45; cursor: not-allowed; } /* ===================== HERO GRID ===================== */ .hero { display: grid; grid-template-columns: 1.7fr 1.02fr 0.62fr; gap: 12px; } /* map card */ .mapCard { min-height: 358px; overflow: hidden; background: var(--map-bg); } .mapMount { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; } .mapMount :global(.leaflet-container) { width: 100%; height: 100%; background: transparent; font-family: var(--font-ui); } .mapMount :global(.leaflet-tile-pane) { filter: var(--map-filter); } .mapMount :global(.leaflet-control-attribution) { background: rgba(8, 19, 28, 0.55); color: var(--text-soft); font-size: 8px; padding: 1px 6px; opacity: 0.6; backdrop-filter: blur(4px); } .mapMount :global(.leaflet-control-attribution a) { color: var(--text-muted); } .mapLoading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-soft); font-size: 12px; background: var(--map-bg); } /* passport KV-grid */ .kvGrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--line); background: var(--border-faint); border: var(--line) solid var(--border-faint); border-radius: var(--radius-sm); overflow: hidden; } .kv { background: var(--surface-2); padding: 9px 11px; } .kvK { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-soft); margin-bottom: 3px; } .kvV { font-size: 12.5px; font-weight: 600; color: var(--text); } .kvV.mono { font-family: var(--font-mono); font-size: 12px; } .kvWide { grid-column: span 2; } .kvPlaceholder { color: var(--text-soft); font-weight: 500; } .kvCaption { display: block; margin-top: 2px; font-size: 8px; text-transform: none; letter-spacing: 0.02em; color: var(--text-soft); } /* score panel (hero col 3) */ .scorePanel { display: flex; flex-direction: column; gap: 10px; } .gaugePanel { display: flex; flex-direction: column; align-items: center; gap: 6px; } .scoreStack { display: flex; flex-direction: column; gap: 8px; } .statLine { display: flex; align-items: center; justify-content: space-between; font-size: 11px; } .statLine .k { color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 9px; } .statLine .v { font-weight: 600; } .investScore { display: flex; align-items: baseline; gap: 6px; } .investBig { font-size: 26px; font-weight: 700; color: var(--text-strong); font-family: var(--font-mono); } .investSmall { color: var(--text-soft); font-size: 11px; } .investPlaceholder { color: var(--text-soft); } .badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; border: var(--line) solid var(--border-strong); color: var(--text-soft); } .fieldCaption { font-size: 8px; color: var(--text-soft); text-transform: none; letter-spacing: 0.02em; } /* ===================== GAUGE ===================== */ .gauge { position: relative; width: 122px; height: 122px; margin: 2px auto; } .gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); } .gaugeTrack { fill: none; stroke: var(--surface-muted); } .gaugeProg { fill: none; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--glow)); transition: stroke-dashoffset 0.9s ease; } .gaugeGood { stroke: var(--accent-green); } .gaugeWarn { stroke: var(--accent-yellow); } .gaugeBad { stroke: var(--accent-red); } .gaugeNeutral { stroke: var(--accent-cyan); } .gaugeCenter { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .gaugeNum { font-size: 30px; font-weight: 700; line-height: 1; color: var(--text-strong); font-family: var(--font-mono); } .gaugeNumGood { color: var(--accent-green); } .gaugeNumWarn { color: var(--accent-yellow); } .gaugeNumBad { color: var(--accent-red); } .gaugeLab { font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-top: 5px; } .gaugeFootnote { font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); } /* ===================== SCAN GRID ===================== */ .sectionLabel { display: flex; align-items: center; gap: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-soft); margin: 2px 2px -2px; } .sectionLabel::after { content: ""; flex: 1; height: 1px; background: var(--border); } .sectionLabel b { color: var(--accent-cyan); font-weight: 600; letter-spacing: 0.12em; } .scanGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .scanCard { padding: 12px 12px 11px; min-height: 156px; display: flex; flex-direction: column; } .scanCard .cardTitle { margin-bottom: 10px; font-size: 10px; } .kvrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; padding: 3px 0; } .kvrow .k { color: var(--text-muted); } .kvrow .v { font-weight: 600; color: var(--text); text-align: right; } .kvrowPlaceholder .v { color: var(--text-soft); font-weight: 500; } .scanCard .detailBtn { margin-top: auto; align-self: flex-start; } .emptyState { display: grid; place-items: center; flex: 1; text-align: center; color: var(--text-soft); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; } /* ===================== PLACEHOLDER PANEL ===================== */ .placeholderPanel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; min-height: 240px; border-style: dashed; } .placeholderPanel .soon { font-size: 22px; letter-spacing: 0.12em; color: var(--text-soft); font-weight: 700; text-transform: uppercase; } .placeholderPanel p { font-size: 10px; color: var(--text-soft); margin: 0; max-width: 280px; } /* ===================== STATE SCREENS ===================== */ .stateScreen { display: grid; place-items: center; min-height: 60vh; padding: 40px 24px; } .stateBox { text-align: center; color: var(--text-muted); font-size: 14px; } .stateError { border: var(--line) solid var(--accent-red); background: rgba(210, 101, 91, 0.08); color: var(--accent-red); border-radius: var(--radius-md); padding: 16px 20px; } .stateLink { display: inline-block; margin-top: 16px; color: var(--accent-cyan); text-decoration: none; font-size: 13px; } /* ===================== RESPONSIVE ===================== */ @media (max-width: 1500px) { .hero { grid-template-columns: 1.5fr 1fr; } .scorePanel { grid-column: span 2; flex-direction: row; justify-content: space-around; flex-wrap: wrap; } } @media (max-width: 1200px) { .scanGrid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 820px) { .shell { grid-template-columns: 1fr; } .rail { display: none; } .hero, .scanGrid { grid-template-columns: 1fr; } .scorePanel { flex-direction: column; } .tabs { display: none; } }