/* v2.60 — instrument modules only. Leave main enclosure and game case intact. */
:root {
  --module-edge:#8e9dab;
  --module-top:#4b5e70;
  --module-bottom:#273541;
  --module-amber:#f0b36d;
  --module-silver:#dce5ec;
  --module-muted:#a6b8c7;
  --module-surface:repeating-linear-gradient(0deg,#ffffff06 0 1px,transparent 1px 4px),
    linear-gradient(145deg,var(--module-top),var(--module-bottom));
}
.brand-name .ui-icon {width:62px;height:36px;stroke-width:1.25}
.workbench-subtitle {margin-top:4px}
.measurement-head .ui-icon {width:19px;height:19px;color:#52697b}
.sidebar .record-chassis,.sidebar .settings-card,#recordResetDialog {
  background:var(--module-surface);
  border:2px solid var(--module-edge);
  border-radius:13px;
  box-shadow:0 0 0 1px #354654,0 5px 9px #15242e40,inset 0 1px 0 #c7d4df50,inset 0 -2px 3px #101c2940;
  color:var(--module-silver);
}
.record-chassis::before {
  width:3px;left:2px;top:12px;bottom:12px;
  background:linear-gradient(#f7ce91,#b77a3c);
  box-shadow:0 0 5px #f0b36d40;
}
.data-caption,.data-caption h2 {color:var(--module-silver)}
.data-caption .ui-icon {width:19px;height:19px;stroke:var(--module-amber)}
.data-caption i,.settings-heading .settings-num {color:var(--module-muted);letter-spacing:.12em}
.records-now .data-caption .ui-icon {stroke:#b1cfdf}
.records-world .numeric-reading strong {color:var(--module-muted)}
.records-world[data-connected="true"] .numeric-reading strong {color:#f1f6fa}
.data-separator,.settings-divider {
  background:#1a2733;border:0;box-shadow:0 1px 0 #91a1ad44;
}
.numeric-pair .numeric-reading {
  min-width:0;min-height:58px;
  background:linear-gradient(160deg,#15222e,#223340);
  border:1px solid #758998;
  border-radius:7px;
  box-shadow:inset 0 2px 5px #080e16ad,0 1px 0 #a7bac040;
  color:#f1f6fa;
}
.numeric-reading .ui-icon {stroke:var(--module-amber)}
.numeric-pair .numeric-reading strong {
  font-size:29px;
  letter-spacing:-.055em;min-width:0;overflow-wrap:anywhere;
  white-space:normal;text-shadow:0 0 7px #d5e8f326;
}
.numeric-pair-now .numeric-reading {min-height:45px}
.numeric-pair-now .numeric-reading strong {font-size:25px}
.numeric-pair-now .numeric-reading .ui-icon {stroke:#afc8d9}
.settings-heading {border-bottom:1px solid #1d2c38;box-shadow:0 1px 0 #a2b3c344}
.settings-heading .ui-icon,.settings-label .ui-icon {color:var(--module-amber);width:20px;height:20px}
.settings-label span:last-child {color:var(--module-silver);font-variant-numeric:tabular-nums}
.theme-grid {gap:9px}
.theme-key,.theme-key.is-selected {
  background:transparent;
  border:0;
  box-shadow:none;
  isolation:isolate;
}
/* The six sockets use the actual cap alpha silhouette, not a shared rounded
   rectangle. A slightly wider, lower lip stays put when the cap is pressed. */
.theme-key.theme-basic {--socket-shape:var(--basic-keycap)}
.theme-key.theme-wood {--socket-shape:var(--walnut-keycap)}
.theme-key.theme-stone {--socket-shape:var(--granite-keycap)}
.theme-key.theme-glass {--socket-shape:var(--crystal-keycap)}
.theme-key.theme-metal {--socket-shape:var(--gunmetal-keycap)}
.theme-key.theme-gel {--socket-shape:var(--gel-keycap)}
.theme-key::before {
  content:"";position:absolute;inset:0;margin:auto;
  width:var(--theme-key-size);height:var(--theme-key-size);
  max-width:100%;max-height:100%;border-radius:13px;
  background:linear-gradient(165deg,#17232d 0%,#101b25 74%,#182530 93%,#536775 100%);
  -webkit-mask:var(--socket-shape) center/100% 100% no-repeat;
  mask:var(--socket-shape) center/100% 100% no-repeat;
  mask-mode:alpha;
  transform:translateY(2px) scale(1.035);
  pointer-events:none;z-index:0;
}
.theme-key .theme-keycap {z-index:1}
.theme-key:focus-visible {outline-color:var(--module-silver)}
.setting-row label {color:var(--module-silver)}
.setting-row output {
  min-width:42px;padding:4px 5px;
  border:1px solid #627483;border-radius:4px;
  background:#1b2935;color:#f4f7f9;
  box-shadow:inset 0 1px 2px #0b131d80;
}
.volume-slider {
  height:8px;
  background:linear-gradient(90deg,#d29151 0%,#f1bb7a var(--volume-progress,0%),#15212d var(--volume-progress,0%),#15212d 100%);
  border:1px solid #92a4b455;
  box-shadow:inset 0 1px 3px #0e18277d,0 1px 0 #92a4b455;
}
.volume-slider::-webkit-slider-thumb {
  width:19px;height:19px;
  background:radial-gradient(circle at 42% 36%,#e8eef2,#a8b6c3 52%,#536575 68%,#adbcc6 82%,#334553 100%);
  border:1px solid #c7d4dd;box-shadow:0 2px 4px #0a131d99;
}
.volume-slider::-moz-range-thumb {
  width:17px;height:17px;
  background:radial-gradient(circle at 42% 36%,#e8eef2,#a8b6c3 52%,#536575 68%,#adbcc6 82%,#334553 100%);
  border:1px solid #c7d4dd;box-shadow:0 2px 4px #0a131d99;
}
.reset-label .ui-icon {color:var(--module-amber)}
.reset-actions button,.reset-dialog-actions button {
  min-height:40px;border:1px solid #8fa0af;border-bottom:3px solid #263544;
  border-radius:8px;
  background:linear-gradient(160deg,#677b8c,#3c4e5d);
  box-shadow:inset 0 1px 0 #d9e4ee65,0 2px 3px #0e18286b;
  color:#e9f2f8;cursor:pointer;
}
.reset-actions button:hover,.reset-dialog-actions button:hover {background:linear-gradient(160deg,#7d919f,#4c6070)}
.reset-actions button:focus-visible,.reset-dialog-actions button:focus-visible,.volume-slider:focus-visible {outline:2px solid #ebf4fc;outline-offset:3px}
.reset-actions .reset-icon {color:var(--module-amber)}
#recordResetDialog {position:fixed;inset:0;margin:auto;width:min(280px,85vw);padding:23px;box-sizing:border-box}
#recordResetDialog::backdrop {background:#0d1826a6}
.reset-preview {display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 6px;margin-bottom:16px;background:#1c2935;border:1px solid #687d8e;border-radius:7px;color:var(--module-amber)}
.reset-preview .ui-icon {width:25px;height:25px}
.reset-preview span {color:var(--module-muted);font-size:23px}
.reset-preview strong {font-size:30px;color:#f0f6fb}
.reset-dialog-actions {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.reset-dialog-actions button {display:grid;place-items:center;padding:10px}
#confirmRecordReset {color:var(--module-amber)}
.reset-dialog-actions button:active {transform:translateY(2px)}
