/** Shared keyboard visualization plus Hall tuning, calibration, and live-monitor components. */
.layer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #091522; }
.tabs button { border: 0; border-radius: 7px; padding: 8px 13px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.tabs button.active { color: #07130f; background: var(--mint); }
.keyboard-panel { padding: 22px; overflow: auto; }
.keyboard-grid { width: max-content; min-width: 558px; display: grid; gap: 8px; margin-inline: auto; }
.keyboard-grid[data-keyboard-mode="hall"] {
  position: relative;
  gap: 9px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;

  /* Add padding around all 4 sides of the grid */
  padding: 30px; 

  /* Ensure padding expands outwards beyond the grid content width */
    border: 1px solid var(--line);
    border-radius: 15px;
  border-color: rgb(38, 244, 227);
}
.keyboard-grid[data-keyboard-mode="hall"] .key-row { gap: 9px; }
.keyboard-grid[data-keyboard-mode="hall"] .keycap { height: 66px; padding: 10px; }
.keyboard-grid[data-keyboard-mode="hall"] .keycap .physical { font-size: 13px; }
.keyboard-grid[data-keyboard-mode="hall"] .keycap .mapped { font-size: 11px; }
.keyboard-grid[data-keyboard-mode="hall"].drag-selecting { cursor: crosshair; }
.keyboard-grid[data-keyboard-mode="hall"].drag-selecting .keycap { cursor: crosshair; }

.hall-selection-box { position: absolute; z-index: 8; border: 1px solid var(--mint); border-radius: 4px; background: rgb(102 247 194 / 13%); box-shadow: 0 0 0 1px rgb(102 247 194 / 10%), 0 0 18px rgb(102 247 194 / 10%); pointer-events: none; }
.key-row { width: max-content; display: flex; gap: 8px; }
.keycap { width: var(--key-width); min-width: 0; height: 62px; flex: 0 0 var(--key-width); position: relative; border: 1px solid #2a4761; border-radius: 10px; background: linear-gradient(#152a3f, #0f2032); color: var(--text); padding: 9px; text-align: left; cursor: pointer; box-shadow: inset 0 -4px rgb(0 0 0 / 18%); overflow: hidden; }
.keycap > span { position: relative; z-index: 2; }
.keycap:hover { border-color: var(--mint); transform: translateY(-1px); }
.keycap.selected { border-color: var(--mint); background: linear-gradient(rgb(102 247 194 / 18%), #11293a); box-shadow: 0 0 0 2px rgb(102 247 194 / 13%), inset 0 -4px rgb(0 0 0 / 15%); }
.keycap.advanced { border-color: #6b86ff; }
.keycap .physical { display: block; font-size: 12px; font-weight: 850; }
.keycap .mapped { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.keycap .primary-label { margin-top: 0; color: var(--text); font-size: 17px; font-weight: 850; line-height: 1.2; }
.keycap .secondary-label { margin-top: 8px; color: var(--muted); font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.keycap .key-dot { position: absolute; z-index: 4; width: 5px; height: 5px; left: 7px; top: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 7px rgb(102 247 194 / 65%); }
.keycap .switch-type-indicator { position: absolute; z-index: 4; right: 6px; top: 6px; min-width: 20px; height: 15px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--switch-color) 70%, white); border-radius: 99px; background: color-mix(in srgb, var(--switch-color) 23%, #07111f); color: color-mix(in srgb, var(--switch-color) 72%, white); box-shadow: 0 0 8px color-mix(in srgb, var(--switch-color) 24%, transparent); font: 850 7px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .02em; pointer-events: none; }
.keycap .travel-fill { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: var(--travel-pct, 0%); background: linear-gradient(0deg, rgb(102 247 194 / 30%), rgb(91 140 255 / 13%)); border-top: 1px solid rgb(102 247 194 / 65%); transition: height 16ms linear; pointer-events: none; }
.keycap.live-pressed { border-color: rgb(102 247 194 / 70%); box-shadow: inset 0 -4px rgb(0 0 0 / 18%), 0 0 14px rgb(102 247 194 / 16%); }
.keyboard-legend { display: flex; gap: 18px; color: var(--muted); font-size: 11px; margin-top: 15px; }
.keyboard-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-right: 5px; }
.keyboard-legend i.advanced-dot { background: var(--blue); }
.keyboard-legend i.staged-dot { background: var(--amber); }
.selection-bar { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.form-card { padding: 18px; }
.form-card h3 { margin: 0 0 4px; font-size: 15px; }
.form-card > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span { color: #a7b9c9; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea, .modal-toolbar input { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; background: #091522; color: var(--text); padding: 10px 11px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus, .modal-toolbar input:focus { border-color: var(--mint); box-shadow: 0 0 0 2px rgb(102 247 194 / 10%); }
.field.disabled { opacity: .46; }
.field input:disabled, .field select:disabled { cursor: not-allowed; }
.field input[type="color"] { height: 42px; padding: 4px; }
.field small { color: var(--muted); font-size: 11px; }
.range-line { display: grid; grid-template-columns: 1fr 58px; grid-auto-flow: column; gap: 9px; align-items: center; }
.range-line.editable { grid-template-columns: minmax(90px, 1fr) 96px; }
.range-line input[type="range"] { padding: 0; accent-color: var(--mint); border: 0; }
.range-value { text-align: center; border: 1px solid var(--line); padding: 7px 4px; border-radius: 7px; color: var(--mint); font-size: 12px; }
.range-number-control { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; background: #091522; color: var(--muted); font-size: 11px; }
.range-number-control:focus-within { border-color: var(--mint); box-shadow: 0 0 0 2px rgb(102 247 194 / 10%); }
.field .range-number-control input { min-width: 0; border: 0; border-radius: 0; padding: 7px 2px 7px 8px; background: transparent; color: var(--mint); font-size: 12px; font-variant-numeric: tabular-nums; box-shadow: none; }
.range-number-control > span { padding: 0 7px 0 3px; pointer-events: none; }
.switch-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #0b1827; padding: 12px; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 12px; }
.switch-row small { color: var(--muted); margin-top: 3px; font-size: 10px; }
.switch { width: 37px; height: 20px; position: relative; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { inset: 0; position: absolute; border-radius: 99px; background: #2b3d50; cursor: pointer; transition: .18s; }
.switch i::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .18s; }
.switch input:checked + i { background: var(--mint); }
.switch input:checked + i::after { transform: translateX(17px); background: #07130f; }
.switch input:disabled + i { cursor: not-allowed; opacity: .42; }
.callout { border: 1px solid rgb(91 140 255 / 25%); border-radius: 10px; background: rgb(91 140 255 / 7%); color: #abc4ff; padding: 11px 13px; font-size: 12px; line-height: 1.5; margin-top: 13px; }

.calibration-panel { padding: 18px 20px; margin-bottom: 14px; background: radial-gradient(circle at 85% 20%, rgb(91 140 255 / 9%), transparent 24rem), rgb(12 24 38 / 86%); }
.calibration-panel.active { border-color: rgb(91 140 255 / 42%); box-shadow: inset 0 1px rgb(255 255 255 / 3%), 0 0 24px rgb(91 140 255 / 7%); }
.calibration-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.calibration-heading h2 { margin: 10px 0 4px; font-size: 18px; }
.calibration-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.calibration-heading .button { min-width: 145px; }
.calibration-progress { display: grid; grid-template-columns: 120px minmax(160px, 1fr) 150px; align-items: center; gap: 14px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.calibration-progress > div:not(.calibration-progress-track) { display: grid; gap: 4px; }
.calibration-progress span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.calibration-progress strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.calibration-progress-track { height: 8px; overflow: hidden; border: 1px solid #28445d; border-radius: 99px; background: #07111d; }
.calibration-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5b8cff, #66f7c2); box-shadow: 0 0 12px rgb(91 140 255 / 34%); transition: width 120ms ease-out; }
.calibration-instructions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 22px; margin-top: 13px; }
.calibration-instructions ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 22px; margin: 0; padding-left: 18px; color: #afc2d2; font-size: 11px; line-height: 1.5; }
.calibration-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.calibration-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calibration-legend i { width: 8px; height: 8px; border-radius: 50%; }
.calibration-legend .waiting { background: var(--red); box-shadow: 0 0 7px rgb(255 126 138 / 45%); }
.calibration-legend .progress { background: var(--amber); box-shadow: 0 0 7px rgb(255 190 92 / 45%); }
.calibration-legend .complete { background: var(--blue); box-shadow: 0 0 7px rgb(91 140 255 / 55%); }
.calibration-idle-note { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: #738ba0; font-size: 11px; line-height: 1.5; }
.keycap .calibration-fill { position: absolute; z-index: 1; inset: auto 0 0; height: var(--calibration-pct, 0%); pointer-events: none; transition: height 35ms linear; }
.keycap.calibration-waiting { border-color: rgb(255 126 138 / 76%); background: linear-gradient(rgb(255 126 138 / 22%), #261924); box-shadow: inset 0 -4px rgb(0 0 0 / 18%), 0 0 13px rgb(255 126 138 / 13%); }
.keycap.calibration-waiting .calibration-fill { background: rgb(255 126 138 / 24%); }
.keycap.calibration-progress { border-color: rgb(255 190 92 / 88%); background: linear-gradient(rgb(255 190 92 / 24%), #2b2217); box-shadow: inset 0 -4px rgb(0 0 0 / 18%), 0 0 16px rgb(255 190 92 / 18%); }
.keycap.calibration-progress .calibration-fill { background: linear-gradient(0deg, rgb(255 190 92 / 56%), rgb(255 190 92 / 17%)); }
.keycap.calibration-complete { border-color: rgb(91 140 255 / 95%); background: linear-gradient(rgb(91 140 255 / 42%), #111f3b); box-shadow: inset 0 -4px rgb(0 0 0 / 18%), 0 0 18px rgb(91 140 255 / 28%); }
.keycap.calibration-complete .calibration-fill { height: 100%; background: linear-gradient(0deg, rgb(91 140 255 / 52%), rgb(91 140 255 / 18%)); }
.keycap[aria-disabled="true"] { cursor: default; }
.keycap[aria-disabled="true"]:hover { transform: none; }
.hall-workspace-content.calibration-locked { opacity: .42; pointer-events: none; user-select: none; }

.hall-primary-grid { display: grid; grid-template-columns: minmax(620px, 1fr) minmax(310px, 350px); align-items: start; gap: 14px; margin-bottom: 14px;}
.hall-config-column { min-width: 0; display: grid; gap: 14px; }
.hall-tuning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hall-workspace-pane[hidden] { display: none; }
.hall-switch-selector-grid { grid-template-columns: 1fr; }
.hall-config-column .hall-tuning-heading { margin: 2px 0 0; }
.hall-workspace-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #091522; box-shadow: inset 0 1px rgb(255 255 255 / 2%); }
.hall-workspace-toggle button { min-width: 0; min-height: 39px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: 750 11px/1.2 inherit; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.hall-workspace-toggle button:hover { color: var(--text); background: rgb(125 231 255 / 5%); }
.hall-workspace-toggle button.active { border-color: rgb(102 247 194 / 40%); background: linear-gradient(135deg, rgb(102 247 194 / 15%), rgb(125 231 255 / 8%)); color: var(--mint); box-shadow: inset 0 0 0 1px rgb(102 247 194 / 6%), 0 0 16px rgb(102 247 194 / 7%); }
.hall-workspace-toggle button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hall-switch-list { margin-bottom: 16px; }
.hall-distance-fields { margin-top: 16px; }
.hall-field-reference { display: grid; gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.hall-field-reference > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 15px; padding: 11px 12px; background: #0b1827; }
.hall-field-reference dt { color: var(--mint); font: 750 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.hall-field-reference dd { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.hall-selection-panel { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hall-selection-required { margin-top: 14px; padding: 28px; text-align: center; }
.hall-selection-required h2 { margin: 10px 0 6px; font-size: 17px; }
.hall-selection-required p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.55; }
.keyboard-grid[data-keyboard-mode="hall"].hall-selection-locked { cursor: not-allowed; }
.keyboard-grid[data-keyboard-mode="hall"].hall-selection-locked .keycap { cursor: not-allowed; }
.keyboard-grid[data-keyboard-mode="hall"].hall-selection-locked .keycap:not(.selected) { opacity: .48; }
.hall-stage-button.pending { border-color: rgb(102 247 194 / 70%); box-shadow: 0 0 0 3px rgb(102 247 194 / 9%), 0 0 20px rgb(102 247 194 / 12%); }
.hall-edit-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.hall-keyboard-heading, .hall-live-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.hall-keyboard-heading h2, .hall-live-heading h2 { margin: 0 0 5px; font-size: 16px; }
.hall-keyboard-heading p, .hall-live-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.hall-switch-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.hall-switch-legend > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.hall-switch-legend i, .switch-type-current > i { min-width: 24px; height: 17px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--switch-color) 70%, white); border-radius: 99px; background: color-mix(in srgb, var(--switch-color) 23%, #07111f); color: color-mix(in srgb, var(--switch-color) 72%, white); font: 850 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; font-style: normal; }
.switch-type-card { min-width: 0; grid-column: 1 / -1; }
.switch-type-card .field-grid { grid-template-columns: 1fr; }
.switch-type-card code { color: var(--mint); font-size: 11px; }
.switch-type-current { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0b1827; }
.switch-type-current > i { min-width: 31px; height: 22px; }
.switch-type-current span { min-width: 0; display: grid; gap: 2px; }
.switch-type-current strong { font-size: 11px; }
.switch-type-current small { color: var(--muted); font-size: 10px; }
.switch-comparison { min-width: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgb(7 17 31 / 62%); }
.switch-comparison > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 14px; cursor: pointer; list-style: none; user-select: none; }
.switch-comparison > summary::-webkit-details-marker { display: none; }
.switch-comparison > summary span { display: grid; gap: 3px; }
.switch-comparison > summary strong { font-size: 12px; }
.switch-comparison > summary small { color: var(--muted); font-size: 10px; }
.switch-comparison > summary > i { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--mint); font: 700 16px/1 ui-monospace, SFMono-Regular, Consolas, monospace; font-style: normal; transition: transform .18s ease; }
.switch-comparison[open] > summary { border-bottom: 1px solid var(--line); }
.switch-comparison[open] > summary > i { transform: rotate(45deg); }
.switch-comparison-content { min-width: 0; padding: 14px; }
.switch-image-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.switch-image-card { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0b1827; }
.switch-image-card h4 { min-height: 34px; display: flex; align-items: flex-start; gap: 7px; margin: 0 0 9px; font-size: 10px; line-height: 1.35; }
.switch-image-card h4 i, .switch-comparison-table-wrap thead i { min-width: 25px; height: 17px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--switch-color) 70%, white); border-radius: 99px; background: color-mix(in srgb, var(--switch-color) 23%, #07111f); color: color-mix(in srgb, var(--switch-color) 72%, white); font: 850 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; font-style: normal; }
.switch-image-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.switch-image-frame { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #30465a; border-radius: 8px; background: #07111f; }
.switch-image-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: linear-gradient(145deg, #edf5f5, #dbe9ea); }
.switch-image-frame figcaption { overflow: hidden; padding: 6px 7px; color: #91a8ba; font: 700 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.switch-comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.switch-comparison-table-wrap table { width: 100%; min-width: 900px; border-collapse: collapse; background: #091522; font-size: 10px; line-height: 1.4; }
.switch-comparison-table-wrap caption { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 10px; }
.switch-comparison-table-wrap th, .switch-comparison-table-wrap td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.switch-comparison-table-wrap th:not(:last-child), .switch-comparison-table-wrap td:not(:last-child) { border-right: 1px solid var(--line); }
.switch-comparison-table-wrap thead th { position: sticky; top: 0; background: #102236; color: var(--text); font-size: 10px; }
.switch-comparison-table-wrap thead th:not(:first-child) { min-width: 165px; }
.switch-comparison-table-wrap thead th i { margin: 0 7px 4px 0; }
.switch-comparison-table-wrap thead th span { display: inline; }
.switch-comparison-table-wrap thead th small { display: block; margin: 3px 0 0 32px; color: var(--mint); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.switch-comparison-table-wrap tbody th { width: 160px; color: #b6c7d8; font-weight: 650; }
.switch-comparison-table-wrap tbody td { color: var(--muted); }
.switch-comparison-table-wrap tbody tr:last-child th, .switch-comparison-table-wrap tbody tr:last-child td { border-bottom: 0; }
.switch-source-links { display: grid; justify-items: start; gap: 6px; }
.switch-source-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: rgb(125 231 255 / 35%); text-underline-offset: 2px; }
.switch-source-links a:hover { color: var(--mint); text-decoration-color: currentColor; }
.switch-source-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
.switch-comparison-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.switch-comparison-note b { color: var(--text); }
@media (max-width: 920px) { .switch-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .switch-image-grid { grid-template-columns: 1fr; } }
.live-session-note { color: var(--muted); font-size: 11px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; }
.live-monitor { --live-travel: 0%; --live-actuation: 10%; --live-offset: 0px; overflow: hidden; background: radial-gradient(circle at 60% 52%, rgb(102 247 194 / 7%), transparent 22rem), rgb(9 21 34 / 92%); }
.hall-live-panel { min-width: 0; padding: 18px; display: grid; grid-template-rows: auto auto 1fr; }
.live-monitor.active { border-color: rgb(102 247 194 / 32%); }
.live-monitor-copy { padding: 0 0 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3px 12px; }
.live-status-line { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.live-monitor-copy .live-status-line { grid-column: 1 / -1; margin-bottom: 8px; }
.live-status-line .live-dot { background: #5d7185; box-shadow: none; }
.live-status-line .live-dot.active { background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .45; } }
.live-monitor-copy h3 { margin: 0 0 4px; font-size: 23px; letter-spacing: -.03em; }
.live-monitor-copy > p { margin: 0; color: var(--muted); font-size: 12px; }
.live-distance { display: block; grid-column: 2; grid-row: 2; margin: 0; color: var(--mint); font-size: 32px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.live-distance small { font-size: 14px; letter-spacing: 0; }
.live-state { grid-column: 2; grid-row: 3; color: var(--muted); font-size: 12px; text-align: right; }
.live-monitor.pressed .live-state { color: var(--blue); }
.live-monitor.actuated .live-state { color: var(--mint); }
.live-monitor-copy .button { grid-column: 1 / -1; width: 100%; margin-top: 12px; }
.live-safety { grid-column: 1 / -1; color: #667d91; font-size: 10px; line-height: 1.45; margin-top: 7px; }
.switch-infographic { position: relative; min-height: 0; display: grid; grid-template-columns: 190px 70px; grid-template-rows: 1fr auto; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 0; }
.switch-cutaway { width: 190px; height: 235px; position: relative; margin: 0 auto; }
.switch-keycap { position: absolute; z-index: 5; top: 5px; left: 26px; width: 138px; height: 54px; display: grid; place-items: center; border: 1px solid #3b5f7b; border-radius: 12px 12px 8px 8px; background: linear-gradient(#203a52, #12283b); box-shadow: inset 0 -5px rgb(0 0 0 / 18%), 0 14px 22px rgb(0 0 0 / 20%); transform: translateY(var(--live-offset)); transition: transform 16ms linear; font-size: 13px; font-weight: 850; }
.switch-stem { position: absolute; z-index: 4; top: 51px; left: 80px; width: 30px; height: 76px; border-radius: 4px; background: linear-gradient(90deg, #88a2b7, #dbe8f1 45%, #7893aa); transform: translateY(var(--live-offset)); transition: transform 16ms linear; }
.switch-housing { position: absolute; z-index: 3; top: 92px; left: 35px; width: 120px; height: 105px; border: 2px solid #42647d; border-radius: 13px 13px 20px 20px; background: rgb(12 29 44 / 78%); box-shadow: inset 0 0 24px rgb(102 247 194 / 6%); }
.switch-housing::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 48px; height: 48px; transform: translateX(-50%); border: 2px solid #5b7790; border-radius: 50%; }
.switch-housing i { position: absolute; top: 20px; width: 22px; height: 2px; background: #7b96aa; }
.switch-housing i:first-child { left: 12px; transform: rotate(28deg); }
.switch-housing i:last-child { right: 12px; transform: rotate(-28deg); }
.magnet { position: absolute; z-index: 5; top: 111px; left: 79px; width: 32px; height: 22px; border-radius: 4px; background: linear-gradient(#ff7e8a 0 50%, #5b8cff 50%); transform: translateY(var(--live-offset)); transition: transform 16ms linear; box-shadow: 0 0 16px rgb(91 140 255 / 20%); }
.sensor { position: absolute; z-index: 4; bottom: 14px; left: 60px; width: 70px; height: 10px; border-radius: 3px; background: var(--mint); box-shadow: 0 0 18px rgb(102 247 194 / 55%); }
.travel-scale { height: 226px; position: relative; display: grid; place-items: center; }
.scale-track { position: relative; width: 11px; height: 190px; overflow: visible; border-radius: 99px; background: #07111d; border: 1px solid #2b475f; }
.scale-fill { position: absolute; left: 0; right: 0; top: 0; height: var(--live-travel); border-radius: inherit; background: linear-gradient(var(--blue), var(--mint)); box-shadow: 0 0 13px rgb(102 247 194 / 24%); transition: height 16ms linear; }
.current-marker { position: absolute; z-index: 2; left: 50%; top: var(--live-travel); width: 23px; height: 3px; transform: translate(-50%, -50%); border-radius: 3px; background: white; box-shadow: 0 0 9px white; transition: top 16ms linear; }
.actuation-marker { position: absolute; left: 19px; top: var(--live-actuation); width: 35px; height: 1px; background: var(--amber); }
.actuation-marker b { position: absolute; left: 42px; top: -6px; color: var(--amber); font-size: 9px; white-space: nowrap; font-weight: 800; }
.scale-top, .scale-bottom { position: absolute; left: 47px; color: var(--muted); font-size: 10px; }
.scale-top { top: 8px; }
.scale-bottom { bottom: 6px; }
.live-metrics { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.live-metrics span { display: block; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: rgb(7 17 29 / 58%); }
.live-metrics small, .live-metrics strong { display: block; }
.live-metrics small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.live-metrics strong { margin-top: 4px; font-size: 13px; }
