/* axiom-gear's standalone page: the studio's base look, for the Gearbox tab alone. These rules are the page's own,
   copied as they are from Helsinki's style.css (the studio has its own copy, which the sync does not touch); the
   tab's own styles are gear.css, the one copy Helsinki shares (scripts/sync_gear_ui.py). */
:root {
  --bg:#eef1f6; --panel:#ffffff; --panel2:#f6f8fb; --ink:#0f1b2d; --mut:#6b7787;
  --acc:#10b981; --acc-d:#0e9f74; --acc2:#2563eb; --line:#e4e9f0;
  --shadow:0 1px 3px rgba(16,30,54,.06), 0 6px 24px rgba(16,30,54,.05);
}
* { box-sizing:border-box; }
body { font-family:"Inter",-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  margin:0; background:var(--bg); color:var(--ink); font-size:13px;
  -webkit-font-smoothing:antialiased; }
header { display:flex; align-items:center; gap:24px; padding:0 22px; height:60px;
  background:var(--panel); border-bottom:1px solid var(--line); position:sticky;
  top:0; z-index:10; }
.brand { display:flex; flex-direction:column; line-height:1.1;
  text-decoration:none; color:inherit; cursor:pointer; }
.brand:hover .logo { color:var(--acc-d); }
.logo { font-weight:800; letter-spacing:.14em; font-size:17px; color:var(--ink); }
.logo::before { content:"⬡ "; color:var(--acc); }
.tag { font-size:10.5px; color:var(--mut); letter-spacing:.04em; }
.contact { margin-left:auto; color:var(--mut); font-size:11.5px; }
main { padding:18px 22px; max-width:1480px; margin:0 auto; }
.view { display:none; }
.view.active { display:grid; gap:16px; }
.panel { background:var(--panel); border:1px solid var(--line); border-radius:14px;
  padding:16px; box-shadow:var(--shadow); }
label { display:block; color:var(--mut); margin-bottom:9px; font-size:12px; font-weight:500; }
input, select { width:100%; margin-top:4px; padding:8px 9px; background:#fff;
  border:1px solid var(--line); border-radius:8px; color:var(--ink); font-size:13px;
  transition:.12s; }
input:focus, select:focus { outline:none; border-color:var(--acc);
  box-shadow:0 0 0 3px rgba(16,185,129,.13); }
button { padding:9px 16px; background:var(--acc); color:#fff; border:0;
  border-radius:9px; font-weight:700; font-size:13px; cursor:pointer; transition:.15s;
  box-shadow:0 2px 8px rgba(16,185,129,.28); }
button:hover { background:var(--acc-d); }
button:disabled { opacity:.5; cursor:default; box-shadow:none; }
button.ghost, .ghost.filebtn { background:var(--panel2); color:var(--ink);
  border:1px solid var(--line); box-shadow:none; font-weight:600; }
button.ghost:hover, .ghost.filebtn:hover { background:#eef2f7; }
button.ghost:disabled { opacity:.5; cursor:default; }
.status,.state { color:var(--mut); font-size:12px; }
.actions { display:flex; align-items:center; gap:14px; margin-top:14px; }
.chk { display:flex; align-items:center; gap:6px; margin:0; color:var(--mut); }
.chk input { width:auto; margin:0; }
.canvasarea { display:flex; flex-direction:column; }
.hint-row { font-size:10.5px; color:var(--mut); margin-top:7px; font-style:italic; }
img { max-width:100%; background:#fff; border-radius:8px; }
canvas { width:100%; height:auto; background:#fff; border:1px solid var(--line);
  border-radius:10px; }
.th-grp{font:700 11px/1 'Space Mono',monospace,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#7a8190;margin:14px 0 6px;border-bottom:1px solid #e3e6ec;padding-bottom:4px}
.th-grp:first-child{margin-top:0}
.th-row{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;color:#3a4150;margin:5px 0}
.th-row input,.th-row select{width:108px;padding:4px 6px;border:1px solid #cfd4dd;border-radius:3px;font-size:12.5px}
.th-chk{display:flex;gap:7px;align-items:center;font-size:12.5px;color:#3a4150;margin:6px 0}
.th-fig{margin:0}
.th-fig figcaption,.th-trfig figcaption{font:600 10px/1 'Space Mono',monospace,sans-serif;letter-spacing:.1em;color:#8892a4;margin-bottom:6px}
.th-fig canvas{background:#fff;border:1px solid #e3e6ec;border-radius:6px}
.th-verdict{padding:10px 12px;border-radius:5px;font:700 13px/1.4 sans-serif;margin-bottom:12px;border-left:4px solid}
.th-verdict.ok{background:rgba(0,180,130,.08);border-color:#0aa06f;color:#0a7a55}
.th-verdict.bad{background:rgba(232,72,59,.08);border-color:#e8483b;color:#b5301f}
.th-verdict span{display:block;font:400 11.5px/1.5 sans-serif;color:#5a606e;margin-top:5px}
.bm-rows{width:100%;border-collapse:collapse;font-size:12px}
.bm-rows th{font:600 9.5px/1.2 'Space Mono',monospace;color:#8892a4;text-align:left;padding:5px 6px;border-bottom:1px solid var(--line);white-space:nowrap}
.bm-rows td{padding:5px 6px;border-bottom:1px solid #f0f2f6;vertical-align:top}
.bm-rows td.n{font-variant-numeric:tabular-nums;white-space:nowrap}
.bm-rows td i{color:var(--mut);font-style:normal;font-size:11px}
.bm-rows td small{display:block;color:var(--mut);font-size:10.5px}
.bm-rows tr.bad td{background:rgba(232,72,59,.05)}
.bm-chart{width:520px;max-width:100%;height:auto;background:#fff;border:1px solid var(--line);border-radius:6px}
.bm-ok{color:#0aa06f;font-weight:700}.bm-x{color:#e8483b;font-weight:700}.bm-i{color:var(--mut)}
.bm-ct{font:600 11px sans-serif;fill:#0f1b2d}.bm-tk{font:10px sans-serif;fill:#6b7787}.bm-ax{font:10.5px sans-serif;fill:#6b7787}.bm-grid{stroke:#eef1f6}
/* a field the page set flashes (gear.js marks it; the studio's assistant defines the same) */
.hk-flash{animation:hkflash 1.6s ease-out}
@keyframes hkflash{0%{box-shadow:0 0 0 3px rgba(16,185,129,.55);background:#e9fbf4}100%{box-shadow:none}}
/* the standalone page's note on what the full platform adds */
.ui-note{color:var(--mut);font-size:11.5px;margin:0 0 12px}
.ui-note b{color:var(--ink);font-weight:600}

/* tablets, phones and touch — the studio's own breakpoints */
@media (max-width:1000px){
  .th-fig { max-width:100%; min-width:0; }
  .th-chk input { width:auto; flex:none; margin:0; }
}
@media (max-width:860px){
  main { padding:14px 13px; }
  header { gap:12px; padding:0 14px; }
  .contact { display:none; }
}
@media (max-width:700px){
  body .th-row input, body .th-row select { font-size:16px; }
}
@media (pointer:coarse){
  button, .th-chk, .chk { min-height:40px; }
}
