Wideband autonomous SDR analysis engine forked from sdr-visual-suite
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

596 строки
24KB

  1. /* ═══════════════════════════════════════════════════
  2. SPECTRE UI — HYBRID COCKPIT THEME
  3. Merges Spectre layout + Cockpit aesthetics
  4. All dynamic classes from app.js preserved
  5. ═══════════════════════════════════════════════════ */
  6. @charset "UTF-8";
  7. :root {
  8. --bg: #050810;
  9. --bg2: #0a0e18;
  10. --panel: rgba(11, 16, 26, 0.88);
  11. --panel-2: rgba(8, 12, 20, 0.82);
  12. --line: rgba(30, 48, 72, 0.55);
  13. --line-hi: rgba(50, 78, 116, 0.5);
  14. --text: #d0dced;
  15. --text-dim: #6b84a3;
  16. --text-mute:#3a5070;
  17. --accent: #00ffc8;
  18. --accent2: #0090ff;
  19. --warn: #ffb454;
  20. --danger: #ff6b81;
  21. --good: #7cfb83;
  22. --glow: rgba(0, 255, 200, 0.06);
  23. --shadow: 0 20px 64px rgba(0, 0, 0, 0.4);
  24. --r: 14px;
  25. --r-sm: 8px;
  26. --r-lg: 18px;
  27. --font: 'Outfit', system-ui, sans-serif;
  28. --mono: 'JetBrains Mono', 'Consolas', monospace;
  29. }
  30. *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  31. html { font-size: 13.5px; }
  32. body {
  33. font-family: var(--font);
  34. color: var(--text);
  35. background: var(--bg);
  36. height: 100vh;
  37. overflow: hidden;
  38. -webkit-font-smoothing: antialiased;
  39. }
  40. /* Subtle grid + glow background */
  41. body::before {
  42. content: '';
  43. position: fixed; inset: 0;
  44. background:
  45. radial-gradient(ellipse 70% 45% at 15% 8%, rgba(0, 144, 255, 0.05), transparent),
  46. radial-gradient(ellipse 50% 35% at 85% 92%, rgba(0, 255, 200, 0.03), transparent),
  47. repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(30, 48, 72, 0.15) 79px, rgba(30, 48, 72, 0.15) 80px),
  48. repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(30, 48, 72, 0.15) 79px, rgba(30, 48, 72, 0.15) 80px);
  49. pointer-events: none; z-index: 0;
  50. }
  51. button, input, select { font: inherit; }
  52. ::selection { background: rgba(0, 255, 200, 0.18); color: #fff; }
  53. *:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  54. /* ── Scrollbars ── */
  55. ::-webkit-scrollbar { width: 5px; height: 5px; }
  56. ::-webkit-scrollbar-track { background: transparent; }
  57. ::-webkit-scrollbar-thumb { background: rgba(100, 130, 180, 0.22); border-radius: 99px; }
  58. /* ═══════════ SHELL ═══════════ */
  59. .shell { height: 100%; display: grid; grid-template-rows: auto 1fr; position: relative; z-index: 1; }
  60. /* ═══════════ TOPBAR ═══════════ */
  61. .topbar {
  62. display: grid;
  63. grid-template-columns: auto 1fr auto;
  64. gap: 16px;
  65. align-items: center;
  66. padding: 10px 18px;
  67. background: linear-gradient(180deg, rgba(10, 15, 24, 0.96), rgba(6, 9, 14, 0.92));
  68. border-bottom: 1px solid var(--line);
  69. backdrop-filter: blur(12px);
  70. position: relative;
  71. }
  72. .topbar::after {
  73. content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  74. background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.25;
  75. }
  76. .brand { display: flex; align-items: center; gap: 10px; }
  77. .brand-mark { flex-shrink: 0; }
  78. .brand-kicker { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-dim); }
  79. .brand-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
  80. .brand-thin { font-weight: 300; color: var(--text-dim); margin-left: 1px; }
  81. .topbar-center { display: flex; justify-content: center; }
  82. .topbar-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
  83. /* topbar center intentionally left available for future status content */
  84. .topbar-center { min-height: 1px; }
  85. .ws-badge {
  86. font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  87. padding: 3px 10px; border-radius: 99px;
  88. background: rgba(0, 255, 200, 0.06); border: 1px solid rgba(0, 255, 200, 0.15);
  89. color: var(--accent); white-space: nowrap; transition: border-color 0.2s;
  90. }
  91. .top-meta { font-family: var(--mono); font-size: 0.65rem; color: var(--text-dim); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  92. .shortcut-btn {
  93. display: flex; align-items: center; justify-content: center;
  94. width: 28px; height: 28px; border-radius: 8px;
  95. background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  96. color: var(--text-dim); cursor: pointer; transition: all 0.15s;
  97. }
  98. .shortcut-btn:hover { color: var(--accent); border-color: rgba(0, 255, 200, 0.3); }
  99. /* ═══════════ MAIN LAYOUT ═══════════ */
  100. .layout {
  101. min-height: 0;
  102. display: grid;
  103. grid-template-columns: minmax(0, 1.9fr) minmax(310px, 420px);
  104. grid-template-rows: minmax(0, 1fr) 240px;
  105. gap: 8px;
  106. padding: 8px;
  107. }
  108. /* ═══════════ PANELS ═══════════ */
  109. .panel {
  110. min-height: 0;
  111. background: var(--panel);
  112. border: 1px solid var(--line);
  113. border-radius: var(--r-lg);
  114. box-shadow: var(--shadow);
  115. backdrop-filter: blur(10px);
  116. position: relative;
  117. overflow: hidden;
  118. }
  119. .panel::before {
  120. content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  121. background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.04) 50%, transparent 95%);
  122. pointer-events: none;
  123. }
  124. .panel-title { font-size: 1.05rem; font-weight: 700; }
  125. .panel-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 1px; }
  126. /* ═══════════ STAGE ═══════════ */
  127. .stage {
  128. display: grid;
  129. grid-template-rows: auto auto auto minmax(0, 1fr);
  130. gap: 10px;
  131. padding: 12px;
  132. }
  133. .stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  134. .stage-actions { display: flex; gap: 4px; }
  135. /* Action Buttons */
  136. .act-btn {
  137. font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  138. padding: 5px 10px; border-radius: var(--r-sm);
  139. background: var(--bg2); border: 1px solid var(--line);
  140. color: var(--text); cursor: pointer; transition: all 0.12s; white-space: nowrap;
  141. }
  142. .act-btn:hover { border-color: rgba(0, 255, 200, 0.3); transform: translateY(-1px); }
  143. .act-btn--danger { border-color: rgba(255, 107, 129, 0.25); }
  144. .act-btn--danger:hover { border-color: rgba(255, 107, 129, 0.5); color: var(--danger); }
  145. /* Hero Metrics */
  146. .hero-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  147. .metric {
  148. background: var(--panel-2); border: 1px solid var(--line);
  149. border-radius: var(--r); padding: 8px 10px;
  150. }
  151. .metric-lbl { display: block; font-family: var(--mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
  152. .metric-val { display: block; margin-top: 3px; font-family: var(--mono); font-size: 1rem; font-weight: 700; }
  153. .metric-val--accent { color: var(--accent); }
  154. /* Band Navigator */
  155. .nav-strip { display: grid; gap: 4px; }
  156. .nav-label { font-family: var(--mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
  157. #navCanvas { height: 50px; border-radius: var(--r-sm); cursor: crosshair; }
  158. /* Viz Stack */
  159. .viz-stack {
  160. min-height: 0;
  161. display: grid;
  162. grid-template-rows: minmax(200px, 1fr) minmax(150px, 0.72fr);
  163. gap: 8px;
  164. }
  165. .viz-card {
  166. min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr);
  167. gap: 5px; padding: 8px;
  168. border-radius: var(--r); background: rgba(5, 8, 14, 0.6); border: 1px solid var(--line);
  169. }
  170. .viz-card--compact { }
  171. .viz-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  172. .viz-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; color: var(--text-dim); }
  173. .legend-swatch { width: 10px; height: 10px; border-radius: 2px; background: rgba(255, 204, 102, 0.35); border: 1px solid rgba(255, 204, 102, 0.35); }
  174. .viz-label { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }
  175. .viz-hint { font-family: var(--mono); font-size: 0.58rem; color: var(--text-mute); }
  176. canvas { display: block; width: 100%; height: 100%; border-radius: var(--r-sm); background: #030508; }
  177. .signal-popover {
  178. position: absolute; z-index: 8; pointer-events: none; min-width: 180px; max-width: 220px;
  179. padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-hi);
  180. background: rgba(6, 10, 18, 0.94); box-shadow: 0 18px 50px rgba(0,0,0,0.38);
  181. font-size: 0.72rem; color: var(--text); display: none; opacity: 0; transform: translateY(4px);
  182. }
  183. .signal-popover.open { display: block; opacity: 1; transform: translateY(0); transition: opacity 90ms ease, transform 90ms ease; }
  184. .signal-popover__title { font-family: var(--mono); font-weight: 700; margin-bottom: 4px; color: var(--accent); }
  185. .signal-popover__meta { color: var(--text-mute); margin-bottom: 6px; }
  186. .signal-popover__scores { display: grid; gap: 4px; }
  187. .signal-popover__row { display: grid; grid-template-columns: 42px 1fr 36px; gap: 6px; align-items: center; font-family: var(--mono); font-size: 0.68rem; }
  188. .signal-popover__bar { height: 6px; border-radius: 999px; background: rgba(148,163,184,0.14); overflow: hidden; }
  189. .signal-popover__fill { height: 100%; background: linear-gradient(90deg, rgba(0,255,200,0.72), rgba(0,144,255,0.8)); }
  190. #spectrum, #waterfall { cursor: crosshair; }
  191. #spectrum:active { cursor: grabbing; }
  192. /* ═══════════ OPERATOR RAIL ═══════════ */
  193. .rail {
  194. display: grid;
  195. grid-template-rows: auto auto minmax(0, 1fr);
  196. gap: 10px;
  197. padding: 12px;
  198. }
  199. .rail-head { display: flex; align-items: center; justify-content: space-between; }
  200. /* Rail Tabs */
  201. .rail-tabs { display: flex; gap: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
  202. .rail-tab {
  203. flex: 1; text-align: center;
  204. font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  205. padding: 5px 8px; border-radius: 7px;
  206. background: transparent; border: 1px solid transparent;
  207. color: var(--text-dim); cursor: pointer; transition: all 0.15s;
  208. }
  209. .rail-tab:hover { color: var(--text); }
  210. .rail-tab.active {
  211. background: rgba(0, 255, 200, 0.08); border-color: rgba(0, 255, 200, 0.18);
  212. color: var(--accent);
  213. }
  214. .rail-body { min-height: 0; position: relative; }
  215. .tab-panel { display: none; height: 100%; overflow: auto; padding-right: 4px; }
  216. .tab-panel.active { display: block; }
  217. .tab-panel[data-panel="signals"] {
  218. display: none;
  219. height: 100%;
  220. }
  221. .tab-panel[data-panel="signals"].active {
  222. display: grid;
  223. grid-template-rows: auto minmax(120px, 1fr) auto auto auto auto;
  224. gap: 8px;
  225. min-height: 0;
  226. }
  227. /* ── Form Groups ── */
  228. .form-group {
  229. border: 1px solid var(--line); border-radius: var(--r);
  230. padding: 10px; margin-bottom: 8px;
  231. background: rgba(255, 255, 255, 0.01);
  232. }
  233. .grp-title { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); opacity: 0.7; margin-bottom: 8px; text-transform: uppercase; }
  234. .field { display: grid; gap: 3px; margin-bottom: 8px; }
  235. .field:last-child { margin-bottom: 0; }
  236. .field > span { font-family: var(--mono); font-size: 0.64rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
  237. .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  238. .field-pair .field { margin-bottom: 0; }
  239. /* Inputs */
  240. input[type="number"], select {
  241. width: 100%; font-family: var(--mono); font-size: 0.82rem; color: var(--text);
  242. background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm);
  243. padding: 6px 8px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  244. -webkit-appearance: none; appearance: none;
  245. }
  246. input[type="number"]:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 255, 200, 0.06); }
  247. select {
  248. background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235a6e84' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  249. background-repeat: no-repeat; background-position: right 8px center; padding-right: 24px;
  250. }
  251. /* Presets */
  252. .preset-row { display: flex; gap: 4px; margin-bottom: 8px; }
  253. .preset-btn {
  254. flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0;
  255. font-family: var(--mono); background: var(--bg2); border: 1px solid var(--line);
  256. border-radius: var(--r-sm); padding: 5px 4px 4px; cursor: pointer; color: var(--text); transition: all 0.15s;
  257. }
  258. .preset-btn:hover { border-color: var(--accent); background: rgba(0, 255, 200, 0.04); box-shadow: 0 0 8px rgba(0, 255, 200, 0.08); }
  259. .preset-btn b { font-size: 0.76rem; font-weight: 700; color: var(--accent); line-height: 1; }
  260. .preset-btn small { font-size: 0.58rem; color: var(--text-dim); line-height: 1.3; }
  261. /* Sliders */
  262. .slider-field { margin-bottom: 8px; }
  263. .slider-field > span { display: block; font-family: var(--mono); font-size: 0.64rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
  264. .slider-row { display: flex; align-items: center; gap: 6px; }
  265. .slider-row em { font-family: var(--mono); font-size: 0.58rem; color: var(--text-mute); font-style: normal; width: 16px; flex-shrink: 0; }
  266. .slider-num { width: 50px; text-align: center; flex-shrink: 0; font-size: 0.78rem; padding: 4px 4px; }
  267. input[type="range"] {
  268. -webkit-appearance: none; appearance: none;
  269. flex: 1; height: 4px; border-radius: 2px; background: var(--line); outline: none;
  270. }
  271. input[type="range"]::-webkit-slider-thumb {
  272. -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  273. background: var(--accent); border: 2px solid var(--bg);
  274. box-shadow: 0 0 8px rgba(0, 255, 200, 0.3); cursor: pointer; transition: box-shadow 0.15s;
  275. }
  276. input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 14px rgba(0, 255, 200, 0.5); }
  277. input[type="range"]::-moz-range-thumb {
  278. width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  279. border: 2px solid var(--bg); box-shadow: 0 0 8px rgba(0, 255, 200, 0.3); cursor: pointer;
  280. }
  281. .range--warn::-webkit-slider-thumb { background: var(--warn); box-shadow: 0 0 8px rgba(255, 180, 84, 0.3); }
  282. .range--warn::-moz-range-thumb { background: var(--warn); box-shadow: 0 0 8px rgba(255, 180, 84, 0.3); }
  283. /* Toggle Pills */
  284. .toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 4px; }
  285. .pill-toggle {
  286. display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  287. padding: 4px 6px; border-radius: var(--r-sm);
  288. border: 1px solid transparent; transition: border-color 0.15s;
  289. }
  290. .pill-toggle:hover { border-color: var(--line); }
  291. .pill-toggle input { display: none; }
  292. .pt {
  293. width: 28px; height: 15px; border-radius: 8px; background: var(--line);
  294. position: relative; flex-shrink: 0; transition: background 0.2s;
  295. }
  296. .pk {
  297. position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%;
  298. background: var(--text-dim); transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  299. }
  300. .pill-toggle input:checked ~ .pt { background: rgba(0, 255, 200, 0.2); }
  301. .pill-toggle input:checked ~ .pt .pk { transform: translateX(13px); background: var(--accent); box-shadow: 0 0 6px rgba(0, 255, 200, 0.4); }
  302. .pl { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.03em; }
  303. .pill-toggle input:checked ~ .pt ~ .pl { color: var(--accent); }
  304. /* ═══════════ LISTS (Signals + Events) ═══════════ */
  305. .list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  306. .count-pill {
  307. font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  308. padding: 2px 8px; border-radius: 99px;
  309. background: rgba(0, 255, 200, 0.06); border: 1px solid rgba(0, 255, 200, 0.12);
  310. color: var(--accent);
  311. }
  312. .signal-list, .event-list { display: grid; gap: 5px; }
  313. .signal-list {
  314. min-height: 0;
  315. overflow: auto;
  316. align-content: start;
  317. padding-right: 2px;
  318. }
  319. .empty-state { font-size: 0.78rem; color: var(--text-mute); padding: 12px 0; }
  320. /* List items — rendered by app.js */
  321. .list-item {
  322. padding: 9px 10px; border-radius: var(--r); border: 1px solid var(--line);
  323. background: var(--panel-2); cursor: pointer; transition: border-color 0.12s;
  324. }
  325. .list-item:hover, .list-item.active { border-color: rgba(0, 255, 200, 0.28); }
  326. .list-item.listening { border-color: rgba(255, 92, 92, 0.55); box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.35) inset; }
  327. .item-top, .item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  328. .item-top { margin-bottom: 3px; }
  329. .item-title { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: #e7f1ff; }
  330. .item-meta { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); }
  331. .item-badge {
  332. font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  333. padding: 2px 7px; border-radius: 99px;
  334. background: rgba(15, 25, 40, 0.8); border: 1px solid var(--line);
  335. }
  336. .listen-meta {
  337. margin-top: 2px;
  338. padding: 8px 10px;
  339. border-radius: var(--r);
  340. border: 1px solid var(--line);
  341. background: rgba(5, 8, 14, 0.72);
  342. display: grid;
  343. gap: 5px;
  344. }
  345. .listen-meta__head {
  346. display: flex;
  347. align-items: center;
  348. justify-content: space-between;
  349. gap: 8px;
  350. }
  351. .listen-meta__title {
  352. font-family: var(--mono);
  353. font-size: 0.56rem;
  354. font-weight: 600;
  355. letter-spacing: 0.08em;
  356. text-transform: uppercase;
  357. color: var(--text-mute);
  358. }
  359. .listen-meta__badge {
  360. font-family: var(--mono);
  361. font-size: 0.62rem;
  362. font-weight: 700;
  363. letter-spacing: 0.04em;
  364. padding: 2px 8px;
  365. border-radius: 999px;
  366. border: 1px solid var(--line);
  367. background: rgba(15, 25, 40, 0.8);
  368. color: var(--text-dim);
  369. }
  370. .listen-meta__primary {
  371. display: flex;
  372. align-items: baseline;
  373. justify-content: space-between;
  374. gap: 10px;
  375. }
  376. .listen-meta__mode {
  377. font-family: var(--mono);
  378. font-size: 0.82rem;
  379. font-weight: 700;
  380. color: var(--text);
  381. }
  382. .listen-meta__stereo {
  383. font-family: var(--mono);
  384. font-size: 0.68rem;
  385. font-weight: 700;
  386. color: var(--accent);
  387. text-transform: uppercase;
  388. }
  389. .listen-meta__secondary {
  390. display: flex;
  391. flex-wrap: wrap;
  392. gap: 8px;
  393. font-family: var(--mono);
  394. font-size: 0.63rem;
  395. color: var(--text-dim);
  396. }
  397. .signal-primary {
  398. display: inline-flex;
  399. align-items: center;
  400. gap: 6px;
  401. min-width: 0;
  402. }
  403. .signal-secondary {
  404. display: inline-flex;
  405. align-items: center;
  406. gap: 8px;
  407. min-width: 0;
  408. flex-wrap: wrap;
  409. }
  410. .item-meta--runtime {
  411. color: var(--accent);
  412. font-weight: 700;
  413. }
  414. .item-meta--classifier {
  415. opacity: 0.72;
  416. }
  417. .item-meta--live {
  418. color: #fff;
  419. font-weight: 700;
  420. }
  421. /* Health Grid */
  422. .health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  423. .health-card {
  424. background: var(--panel-2); border: 1px solid var(--line);
  425. border-radius: var(--r); padding: 10px;
  426. }
  427. .health-card--wide { grid-column: 1 / -1; }
  428. .health-lbl { display: block; font-family: var(--mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
  429. .health-val { display: block; margin-top: 4px; font-family: var(--mono); font-size: 1.05rem; font-weight: 700; }
  430. /* ═══════════ TIMELINE PANEL ═══════════ */
  431. .tl-panel {
  432. grid-column: 1 / -1;
  433. display: grid; grid-template-rows: auto minmax(0, 1fr);
  434. gap: 8px; padding: 10px;
  435. }
  436. .tl-head { display: flex; align-items: center; justify-content: space-between; }
  437. .tl-actions { display: flex; gap: 4px; }
  438. .tl-stack {
  439. min-height: 0;
  440. display: grid;
  441. grid-template-rows: 64px minmax(0, 1fr);
  442. gap: 6px;
  443. }
  444. /* ═══════════ INSPECTOR DRAWER ═══════════ */
  445. .inspector {
  446. position: fixed; right: 12px; top: 60px; bottom: 12px;
  447. width: min(440px, calc(100vw - 24px)); z-index: 50;
  448. display: none; grid-template-rows: auto minmax(0, 1fr);
  449. gap: 10px; padding: 12px;
  450. background: rgba(8, 12, 20, 0.94);
  451. border: 1px solid var(--line-hi); border-radius: var(--r-lg);
  452. box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 255, 200, 0.08);
  453. backdrop-filter: blur(20px) saturate(130%);
  454. animation: drawerIn 0.2s ease-out;
  455. }
  456. @keyframes drawerIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
  457. .inspector.open { display: grid; }
  458. .insp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  459. .insp-actions { display: flex; gap: 4px; flex-shrink: 0; }
  460. .insp-body { min-height: 0; overflow: auto; display: grid; gap: 10px; align-content: start; }
  461. .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  462. .detail-item {
  463. background: var(--panel-2); border: 1px solid var(--line);
  464. border-radius: var(--r-sm); padding: 8px;
  465. }
  466. .detail-label { display: block; font-family: var(--mono); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
  467. .detail-item span:last-child { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.85rem; font-weight: 700; }
  468. .insp-viz { height: 200px; }
  469. .insp-note { font-size: 0.72rem; color: var(--text-mute); }
  470. .score-bars { display: grid; gap: 6px; }
  471. .score-bar { display: grid; grid-template-columns: 52px 1fr 44px; gap: 8px; align-items: center; font-family: var(--mono); font-size: 0.68rem; }
  472. .score-bar-label { color: var(--text-dim); }
  473. .score-bar-track { position: relative; height: 8px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
  474. .score-bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(0,255,200,0.72), rgba(0,144,255,0.8)); border-radius: 999px; }
  475. .score-bar-value { color: var(--text-mute); text-align: right; }
  476. /* ═══════════ KEYBOARD OVERLAY ═══════════ */
  477. .kb-overlay {
  478. position: fixed; inset: 0; z-index: 100;
  479. background: rgba(5, 8, 16, 0.8); backdrop-filter: blur(8px);
  480. display: none; align-items: center; justify-content: center;
  481. }
  482. .kb-overlay.open { display: flex; }
  483. .kb-card {
  484. background: var(--panel); border: 1px solid var(--line-hi);
  485. border-radius: var(--r-lg); padding: 24px 28px;
  486. box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5); min-width: 320px;
  487. }
  488. .kb-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
  489. .kb-grid {
  490. display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  491. align-items: center; margin-bottom: 16px;
  492. }
  493. .kb-grid kbd {
  494. font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  495. padding: 3px 8px; border-radius: 5px;
  496. background: var(--bg2); border: 1px solid var(--line);
  497. color: var(--accent); text-align: center; min-width: 36px;
  498. }
  499. .kb-grid span { font-size: 0.82rem; color: var(--text-dim); }
  500. .kb-close { width: 100%; justify-content: center; display: flex; }
  501. /* ═══════════ ANIMATIONS ═══════════ */
  502. @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
  503. /* ═══════════ RESPONSIVE ═══════════ */
  504. @media (max-width: 1320px) {
  505. .layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(360px, auto) 240px; }
  506. .rail { grid-column: 1; grid-row: 2; }
  507. .tl-panel { grid-column: 1; grid-row: 3; }
  508. .topbar { grid-template-columns: 1fr; gap: 8px; }
  509. .topbar-center, .topbar-right { justify-content: flex-start; }
  510. .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  511. }
  512. @media (max-width: 760px) {
  513. .layout { padding: 6px; gap: 6px; }
  514. .hero-metrics, .detail-grid, .health-grid { grid-template-columns: 1fr; }
  515. .field-pair { grid-template-columns: 1fr; }
  516. .toggle-grid { grid-template-columns: 1fr; }
  517. .inspector { left: 8px; width: auto; }
  518. .top-meta { display: none; }
  519. }
  520. @media (max-width: 500px) {
  521. html { font-size: 12.5px; }
  522. .mode-strip { flex-wrap: wrap; }
  523. }
  524. /* Number input spin buttons */
  525. input[type="number"]::-webkit-inner-spin-button,
  526. input[type="number"]::-webkit-outer-spin-button { opacity: 0.3; }
  527. input[type="number"]:hover::-webkit-inner-spin-button { opacity: 0.7; }
  528. /* Active live-listen button */
  529. .act-btn.active {
  530. background: var(--accent);
  531. color: var(--bg-0);
  532. box-shadow: 0 0 12px rgba(0, 255, 200, 0.3);
  533. animation: listen-pulse 1.5s ease-in-out infinite;
  534. }
  535. @keyframes listen-pulse {
  536. 0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 200, 0.2); }
  537. 50% { box-shadow: 0 0 16px rgba(0, 255, 200, 0.5); }
  538. }