Wideband autonomous SDR analysis engine forked from sdr-visual-suite
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

480 líneas
21KB

  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. /* Mode Strip */
  84. .mode-strip { display: flex; gap: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
  85. .mode-btn {
  86. font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  87. padding: 5px 14px; border-radius: 9px;
  88. background: transparent; border: 1px solid transparent;
  89. color: var(--text-dim); cursor: pointer; transition: all 0.15s;
  90. display: flex; align-items: center; gap: 5px;
  91. }
  92. .mode-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
  93. .mode-btn.active {
  94. background: rgba(0, 255, 200, 0.08); border-color: rgba(0, 255, 200, 0.2);
  95. color: var(--accent); box-shadow: 0 0 12px rgba(0, 255, 200, 0.06);
  96. }
  97. .mode-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease-in-out infinite; }
  98. .ws-badge {
  99. font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  100. padding: 3px 10px; border-radius: 99px;
  101. background: rgba(0, 255, 200, 0.06); border: 1px solid rgba(0, 255, 200, 0.15);
  102. color: var(--accent); white-space: nowrap; transition: border-color 0.2s;
  103. }
  104. .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; }
  105. .shortcut-btn {
  106. display: flex; align-items: center; justify-content: center;
  107. width: 28px; height: 28px; border-radius: 8px;
  108. background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  109. color: var(--text-dim); cursor: pointer; transition: all 0.15s;
  110. }
  111. .shortcut-btn:hover { color: var(--accent); border-color: rgba(0, 255, 200, 0.3); }
  112. /* ═══════════ MAIN LAYOUT ═══════════ */
  113. .layout {
  114. min-height: 0;
  115. display: grid;
  116. grid-template-columns: minmax(0, 1.9fr) minmax(310px, 420px);
  117. grid-template-rows: minmax(0, 1fr) 240px;
  118. gap: 8px;
  119. padding: 8px;
  120. }
  121. /* ═══════════ PANELS ═══════════ */
  122. .panel {
  123. min-height: 0;
  124. background: var(--panel);
  125. border: 1px solid var(--line);
  126. border-radius: var(--r-lg);
  127. box-shadow: var(--shadow);
  128. backdrop-filter: blur(10px);
  129. position: relative;
  130. overflow: hidden;
  131. }
  132. .panel::before {
  133. content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  134. background: linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.04) 50%, transparent 95%);
  135. pointer-events: none;
  136. }
  137. .panel-title { font-size: 1.05rem; font-weight: 700; }
  138. .panel-sub { font-size: 0.72rem; color: var(--text-dim); margin-top: 1px; }
  139. /* ═══════════ STAGE ═══════════ */
  140. .stage {
  141. display: grid;
  142. grid-template-rows: auto auto auto minmax(0, 1fr);
  143. gap: 10px;
  144. padding: 12px;
  145. }
  146. .stage-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  147. .stage-actions { display: flex; gap: 4px; }
  148. /* Action Buttons */
  149. .act-btn {
  150. font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  151. padding: 5px 10px; border-radius: var(--r-sm);
  152. background: var(--bg2); border: 1px solid var(--line);
  153. color: var(--text); cursor: pointer; transition: all 0.12s; white-space: nowrap;
  154. }
  155. .act-btn:hover { border-color: rgba(0, 255, 200, 0.3); transform: translateY(-1px); }
  156. .act-btn--danger { border-color: rgba(255, 107, 129, 0.25); }
  157. .act-btn--danger:hover { border-color: rgba(255, 107, 129, 0.5); color: var(--danger); }
  158. /* Hero Metrics */
  159. .hero-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  160. .metric {
  161. background: var(--panel-2); border: 1px solid var(--line);
  162. border-radius: var(--r); padding: 8px 10px;
  163. }
  164. .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; }
  165. .metric-val { display: block; margin-top: 3px; font-family: var(--mono); font-size: 1rem; font-weight: 700; }
  166. .metric-val--accent { color: var(--accent); }
  167. /* Band Navigator */
  168. .nav-strip { display: grid; gap: 4px; }
  169. .nav-label { font-family: var(--mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-mute); text-transform: uppercase; }
  170. #navCanvas { height: 50px; border-radius: var(--r-sm); cursor: crosshair; }
  171. /* Viz Stack */
  172. .viz-stack {
  173. min-height: 0;
  174. display: grid;
  175. grid-template-rows: minmax(200px, 1fr) minmax(150px, 0.72fr);
  176. gap: 8px;
  177. }
  178. .viz-card {
  179. min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr);
  180. gap: 5px; padding: 8px;
  181. border-radius: var(--r); background: rgba(5, 8, 14, 0.6); border: 1px solid var(--line);
  182. }
  183. .viz-card--compact { }
  184. .viz-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  185. .viz-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; color: var(--text-dim); }
  186. .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); }
  187. .viz-label { font-family: var(--mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; color: var(--text-dim); text-transform: uppercase; }
  188. .viz-hint { font-family: var(--mono); font-size: 0.58rem; color: var(--text-mute); }
  189. canvas { display: block; width: 100%; height: 100%; border-radius: var(--r-sm); background: #030508; }
  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. /* ── Form Groups ── */
  218. .form-group {
  219. border: 1px solid var(--line); border-radius: var(--r);
  220. padding: 10px; margin-bottom: 8px;
  221. background: rgba(255, 255, 255, 0.01);
  222. }
  223. .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; }
  224. .field { display: grid; gap: 3px; margin-bottom: 8px; }
  225. .field:last-child { margin-bottom: 0; }
  226. .field > span { font-family: var(--mono); font-size: 0.64rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
  227. .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  228. .field-pair .field { margin-bottom: 0; }
  229. /* Inputs */
  230. input[type="number"], select {
  231. width: 100%; font-family: var(--mono); font-size: 0.82rem; color: var(--text);
  232. background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r-sm);
  233. padding: 6px 8px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  234. -webkit-appearance: none; appearance: none;
  235. }
  236. input[type="number"]:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 255, 200, 0.06); }
  237. select {
  238. 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");
  239. background-repeat: no-repeat; background-position: right 8px center; padding-right: 24px;
  240. }
  241. /* Presets */
  242. .preset-row { display: flex; gap: 4px; margin-bottom: 8px; }
  243. .preset-btn {
  244. flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0;
  245. font-family: var(--mono); background: var(--bg2); border: 1px solid var(--line);
  246. border-radius: var(--r-sm); padding: 5px 4px 4px; cursor: pointer; color: var(--text); transition: all 0.15s;
  247. }
  248. .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); }
  249. .preset-btn b { font-size: 0.76rem; font-weight: 700; color: var(--accent); line-height: 1; }
  250. .preset-btn small { font-size: 0.58rem; color: var(--text-dim); line-height: 1.3; }
  251. /* Sliders */
  252. .slider-field { margin-bottom: 8px; }
  253. .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; }
  254. .slider-row { display: flex; align-items: center; gap: 6px; }
  255. .slider-row em { font-family: var(--mono); font-size: 0.58rem; color: var(--text-mute); font-style: normal; width: 16px; flex-shrink: 0; }
  256. .slider-num { width: 50px; text-align: center; flex-shrink: 0; font-size: 0.78rem; padding: 4px 4px; }
  257. input[type="range"] {
  258. -webkit-appearance: none; appearance: none;
  259. flex: 1; height: 4px; border-radius: 2px; background: var(--line); outline: none;
  260. }
  261. input[type="range"]::-webkit-slider-thumb {
  262. -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  263. background: var(--accent); border: 2px solid var(--bg);
  264. box-shadow: 0 0 8px rgba(0, 255, 200, 0.3); cursor: pointer; transition: box-shadow 0.15s;
  265. }
  266. input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 14px rgba(0, 255, 200, 0.5); }
  267. input[type="range"]::-moz-range-thumb {
  268. width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  269. border: 2px solid var(--bg); box-shadow: 0 0 8px rgba(0, 255, 200, 0.3); cursor: pointer;
  270. }
  271. .range--warn::-webkit-slider-thumb { background: var(--warn); box-shadow: 0 0 8px rgba(255, 180, 84, 0.3); }
  272. .range--warn::-moz-range-thumb { background: var(--warn); box-shadow: 0 0 8px rgba(255, 180, 84, 0.3); }
  273. /* Toggle Pills */
  274. .toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 4px; }
  275. .pill-toggle {
  276. display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none;
  277. padding: 4px 6px; border-radius: var(--r-sm);
  278. border: 1px solid transparent; transition: border-color 0.15s;
  279. }
  280. .pill-toggle:hover { border-color: var(--line); }
  281. .pill-toggle input { display: none; }
  282. .pt {
  283. width: 28px; height: 15px; border-radius: 8px; background: var(--line);
  284. position: relative; flex-shrink: 0; transition: background 0.2s;
  285. }
  286. .pk {
  287. position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%;
  288. background: var(--text-dim); transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  289. }
  290. .pill-toggle input:checked ~ .pt { background: rgba(0, 255, 200, 0.2); }
  291. .pill-toggle input:checked ~ .pt .pk { transform: translateX(13px); background: var(--accent); box-shadow: 0 0 6px rgba(0, 255, 200, 0.4); }
  292. .pl { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0.03em; }
  293. .pill-toggle input:checked ~ .pt ~ .pl { color: var(--accent); }
  294. /* ═══════════ LISTS (Signals + Events) ═══════════ */
  295. .list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
  296. .count-pill {
  297. font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  298. padding: 2px 8px; border-radius: 99px;
  299. background: rgba(0, 255, 200, 0.06); border: 1px solid rgba(0, 255, 200, 0.12);
  300. color: var(--accent);
  301. }
  302. .signal-list, .event-list { display: grid; gap: 5px; }
  303. .empty-state { font-size: 0.78rem; color: var(--text-mute); padding: 12px 0; }
  304. /* List items — rendered by app.js */
  305. .list-item {
  306. padding: 9px 10px; border-radius: var(--r); border: 1px solid var(--line);
  307. background: var(--panel-2); cursor: pointer; transition: border-color 0.12s;
  308. }
  309. .list-item:hover, .list-item.active { border-color: rgba(0, 255, 200, 0.28); }
  310. .item-top, .item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  311. .item-top { margin-bottom: 3px; }
  312. .item-title { font-family: var(--mono); font-size: 0.82rem; font-weight: 700; }
  313. .item-meta { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); }
  314. .item-badge {
  315. font-family: var(--mono); font-size: 0.64rem; font-weight: 600;
  316. padding: 2px 7px; border-radius: 99px;
  317. background: rgba(15, 25, 40, 0.8); border: 1px solid var(--line);
  318. }
  319. /* Health Grid */
  320. .health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  321. .health-card {
  322. background: var(--panel-2); border: 1px solid var(--line);
  323. border-radius: var(--r); padding: 10px;
  324. }
  325. .health-card--wide { grid-column: 1 / -1; }
  326. .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; }
  327. .health-val { display: block; margin-top: 4px; font-family: var(--mono); font-size: 1.05rem; font-weight: 700; }
  328. /* ═══════════ TIMELINE PANEL ═══════════ */
  329. .tl-panel {
  330. grid-column: 1 / -1;
  331. display: grid; grid-template-rows: auto minmax(0, 1fr);
  332. gap: 8px; padding: 10px;
  333. }
  334. .tl-head { display: flex; align-items: center; justify-content: space-between; }
  335. .tl-actions { display: flex; gap: 4px; }
  336. .tl-stack {
  337. min-height: 0;
  338. display: grid;
  339. grid-template-rows: 64px minmax(0, 1fr);
  340. gap: 6px;
  341. }
  342. /* ═══════════ INSPECTOR DRAWER ═══════════ */
  343. .inspector {
  344. position: fixed; right: 12px; top: 60px; bottom: 12px;
  345. width: min(440px, calc(100vw - 24px)); z-index: 50;
  346. display: none; grid-template-rows: auto minmax(0, 1fr);
  347. gap: 10px; padding: 12px;
  348. background: rgba(8, 12, 20, 0.94);
  349. border: 1px solid var(--line-hi); border-radius: var(--r-lg);
  350. box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 255, 200, 0.08);
  351. backdrop-filter: blur(20px) saturate(130%);
  352. animation: drawerIn 0.2s ease-out;
  353. }
  354. @keyframes drawerIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
  355. .inspector.open { display: grid; }
  356. .insp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  357. .insp-actions { display: flex; gap: 4px; flex-shrink: 0; }
  358. .insp-body { min-height: 0; overflow: auto; display: grid; gap: 10px; align-content: start; }
  359. .detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  360. .detail-item {
  361. background: var(--panel-2); border: 1px solid var(--line);
  362. border-radius: var(--r-sm); padding: 8px;
  363. }
  364. .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; }
  365. .detail-item span:last-child { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.85rem; font-weight: 700; }
  366. .insp-viz { height: 200px; }
  367. .insp-note { font-size: 0.72rem; color: var(--text-mute); }
  368. /* ═══════════ KEYBOARD OVERLAY ═══════════ */
  369. .kb-overlay {
  370. position: fixed; inset: 0; z-index: 100;
  371. background: rgba(5, 8, 16, 0.8); backdrop-filter: blur(8px);
  372. display: none; align-items: center; justify-content: center;
  373. }
  374. .kb-overlay.open { display: flex; }
  375. .kb-card {
  376. background: var(--panel); border: 1px solid var(--line-hi);
  377. border-radius: var(--r-lg); padding: 24px 28px;
  378. box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5); min-width: 320px;
  379. }
  380. .kb-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
  381. .kb-grid {
  382. display: grid; grid-template-columns: auto 1fr; gap: 8px 16px;
  383. align-items: center; margin-bottom: 16px;
  384. }
  385. .kb-grid kbd {
  386. font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  387. padding: 3px 8px; border-radius: 5px;
  388. background: var(--bg2); border: 1px solid var(--line);
  389. color: var(--accent); text-align: center; min-width: 36px;
  390. }
  391. .kb-grid span { font-size: 0.82rem; color: var(--text-dim); }
  392. .kb-close { width: 100%; justify-content: center; display: flex; }
  393. /* ═══════════ MODE VARIANTS ═══════════ */
  394. body.mode-hunt .tl-panel { grid-row: 2; }
  395. body.mode-review .stage { grid-template-rows: auto auto auto minmax(0, 0.76fr); }
  396. body.mode-review .tl-panel { box-shadow: 0 0 0 1px rgba(0, 144, 255, 0.12), var(--shadow); }
  397. body.mode-lab .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  398. /* ═══════════ ANIMATIONS ═══════════ */
  399. @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
  400. /* ═══════════ RESPONSIVE ═══════════ */
  401. @media (max-width: 1320px) {
  402. .layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) minmax(360px, auto) 240px; }
  403. .rail { grid-column: 1; grid-row: 2; }
  404. .tl-panel { grid-column: 1; grid-row: 3; }
  405. .topbar { grid-template-columns: 1fr; gap: 8px; }
  406. .topbar-center, .topbar-right { justify-content: flex-start; }
  407. .hero-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  408. }
  409. @media (max-width: 760px) {
  410. .layout { padding: 6px; gap: 6px; }
  411. .hero-metrics, .detail-grid, .health-grid { grid-template-columns: 1fr; }
  412. .field-pair { grid-template-columns: 1fr; }
  413. .toggle-grid { grid-template-columns: 1fr; }
  414. .inspector { left: 8px; width: auto; }
  415. .top-meta { display: none; }
  416. }
  417. @media (max-width: 500px) {
  418. html { font-size: 12.5px; }
  419. .mode-strip { flex-wrap: wrap; }
  420. }
  421. /* Number input spin buttons */
  422. input[type="number"]::-webkit-inner-spin-button,
  423. input[type="number"]::-webkit-outer-spin-button { opacity: 0.3; }
  424. input[type="number"]:hover::-webkit-inner-spin-button { opacity: 0.7; }