/* ==========================================================================
   AUTHENTIC BENCH INSTRUMENT THEME (Warm Industrial Laboratory - Mobile Compact)
   ========================================================================== */
   :root {
    /* Warm Industrial Palette */
    --bg-bench: #d8d3c2;
    --chassis: #e4dfcf;
    --chassis-border: #b8b19a;
    --panel-face: #fbfaf5;
    --panel-border: #cdc6b2;
    --recessed-cavity: #1c1d1f;
  
    /* Natural Mechanical Counter Drums */
    --drum-ivory: #f8f6ee;
    --drum-dark: #212224;
    --tenth-drum: #e8e2d0;
  
    /* Authentic Functional Accents */
    --amber: #c2410c;       /* Milled Vermillion / Terracotta */
    --amber-dark: #9a3412;
    --cyan: #1d4ed8;        /* Instrument Cobalt / Prussian Blue */
    --cyan-dark: #1e40af;
  
    /* Crisp Technical Ink */
    --ink-primary: #18191b;
    --ink-secondary: #595c64;
    --ink-tertiary: #848790;
    --ink-rules: #d1ccbd;
  
    /* Typography */
    --mono: 'JetBrains Mono', 'Consolas', monospace;
    --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  /* ================= Base ================= */
  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }
  
  body {
    font-family: var(--font-sans);
    background-color: var(--bg-bench);
    background-image:
      radial-gradient(#c6bfab 1px, transparent 1px),
      linear-gradient(180deg, #ded8c7 0%, #cdc6b3 100%);
    background-size: 24px 24px, 100% 100%;
    color: var(--ink-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.45rem 1.5rem;
    -webkit-font-smoothing: antialiased;
  }
  
  @media (min-width: 640px) {
    body {
      padding: 1.5rem 1rem 2.25rem;
    }
  }
  
  .app-root {
    width: 100%;
    max-width: 54rem;
    margin: auto;
  }
  
  button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
  }
  
  /* ================= Main Instrument Chassis ================= */
  .chassis {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    width: 100%;
  }
  
  @media (min-width: 640px) {
    .chassis {
      gap: 1rem;
    }
  }
  
  /* ================= Top Instrument Header ================= */
  .topbar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  @media (min-width: 640px) {
    .topbar {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
  
  .logo-ring {
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    background: #25282c;
    padding: 1px;
    box-shadow:
      1px 2px 4px rgba(0, 0, 0, 0.3),
      inset 1px 1px 0 rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-core {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-icon {
    width: 1.15rem;
    height: 1.15rem;
    color: #ffb703;
  }
  
  .title-row {
    display: flex;
    align-items: center;
  }
  
  .brand-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #111315;
  }
  
  @media (min-width: 640px) {
    .brand-title {
      font-size: 1.12rem;
    }
  }
  
  .brand-sub {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--ink-secondary);
  }
  
  .status-row {
    display: none;
    align-items: center;
  }
  
  @media (min-width: 640px) {
    .status-row {
      display: flex;
    }
  }
  
  .thermal-badge {
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--mono);
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    border: 1px solid #b8b09b;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow:
      1px 2px 3px rgba(0, 0, 0, 0.1),
      inset 1px 1px 0 rgba(255, 255, 255, 0.55);
    white-space: nowrap;
  }
  
  .badge-pin {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  }
  
  .badge-freeze { color: #3730a3; background: #e0e7ff; border-color: #c7d2fe; }
  .badge-freezing { color: #0369a1; background: #e0f2fe; border-color: #bae6fd; }
  .badge-cool { color: #0f766e; background: #ccfbf1; border-color: #99f6e4; }
  .badge-comfort { color: #15803d; background: #dcfce7; border-color: #bbf7d0; }
  .badge-warm { color: #b45309; background: #fef3c7; border-color: #fde68a; }
  .badge-heat { color: #be123c; background: #ffe4e6; border-color: #fecdd3; }
  
  /* ================= Capillary Tube Gauge (Overhead Module) ================= */
  .spectrum {
    background: linear-gradient(145deg, #e3ded1 0%, #ded8c7 50%, #d4cdc0 100%);
    border: 1px solid #bbb39c;
    border-top-color: #d0c9b6;
    border-left-color: #c7c0ad;
    border-right-color: #aba28b;
    border-bottom-color: #9c937c;
    border-radius: 7px;
    padding: 0.75rem 0.65rem 0.65rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow:
      3px 5px 14px -2px rgba(45, 40, 28, 0.14),
      1px 2px 4px rgba(45, 40, 28, 0.06),
      inset 1px 1px 0 rgba(255, 255, 255, 0.75),
      inset -1px -1px 0 rgba(0, 0, 0, 0.05);
  }
  
  .spectrum-overhead {
    margin-bottom: 0.15rem;
  }
  
  @media (min-width: 640px) {
    .spectrum {
      padding: 0.85rem 1rem 0.75rem 1rem;
      gap: 0.75rem;
    }
  }
  
  .spectrum-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }
  
  .spectrum-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ink-secondary);
  }
  
  .spectrum-bound-label {
    color: #3e4249;
    letter-spacing: -0.01em;
  }
  
  .spectrum-formula {
    color: var(--ink-primary);
    font-weight: 700;
    order: 3;
    width: 100%;
    text-align: center;
  }
  
  @media (min-width: 640px) {
    .spectrum-labels {
      font-size: 0.72rem;
    }
    .spectrum-formula {
      order: unset;
      width: auto;
      text-align: inherit;
    }
  }
  
  /* ================= Draggable & Clickable Track ================= */
  .spectrum-track {
    position: relative;
    height: 20px;
    background: #bcb49f;
    border-radius: 7px;
    padding: 3px;
    border: 1px solid #99917d;
    box-shadow:
      inset 1px 2px 4px rgba(0, 0, 0, 0.4),
      0 1px 0 rgba(255, 255, 255, 0.6);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
  }
  
  .spectrum-track.is-interactive {
    cursor: ew-resize;
  }
  
  .spectrum-track:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
  }
  
  .capillary-bore {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f4efe2;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.35);
  }
  
  .spectrum-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #1d4ed8 0%, #0284c7 20%, #f59e0b 50%, #dc2626 100%);
    position: relative;
  }
  
  /* Tactile Machined Thumb Slider */
  .spectrum-thumb {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 30px;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #fdfcf9 0%, #ded7c6 50%, #c4bba7 100%);
    border: 1px solid #736b59;
    border-top-color: #eae5d7;
    border-left-color: #dfd8c8;
    border-radius: 4px;
    box-shadow:
      2px 3px 6px rgba(0, 0, 0, 0.4),
      0 1px 2px rgba(0, 0, 0, 0.2),
      inset 1px 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: grab;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
  }
  
  .spectrum-thumb:active {
    cursor: grabbing;
  }
  
  .thumb-grip {
    width: 4px;
    height: 14px;
    border-left: 1px solid #857c6a;
    border-right: 1px solid #857c6a;
    background: transparent;
  }
  
  /* ================= Dual Faceplate Panels ================= */
  .console-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
  }
  
  @media (min-width: 720px) {
    .console-grid {
      grid-template-columns: 1fr 1fr;
      gap: 1.15rem;
    }
  }
  
  .panel {
    position: relative;
    background: linear-gradient(145deg, #fdfcf9 0%, var(--panel-face) 45%, #f4f0e4 100%);
    border: 1px solid var(--panel-border);
    border-top-color: #dfd9c9;
    border-left-color: #d8d2c0;
    border-right-color: #bfb8a4;
    border-bottom-color: #b3ab96;
    border-radius: 8px;
    padding: 0.75rem 0.55rem 0.65rem 0.55rem;
    box-shadow:
      4px 7px 18px -2px rgba(45, 40, 28, 0.18),
      2px 3px 6px rgba(45, 40, 28, 0.08),
      inset 1px 1px 0 rgba(255, 255, 255, 0.95),
      inset -1px -1px 0 rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
  }
  
  @media (min-width: 380px) {
    .panel {
      padding: 1rem 0.95rem 0.85rem 0.95rem;
    }
  }
  
  .panel.is-active {
    border-color: #8c8572;
    border-top-color: #a49c86;
    border-left-color: #9c947f;
    box-shadow:
      6px 12px 24px -3px rgba(45, 40, 28, 0.26),
      2px 4px 8px rgba(45, 40, 28, 0.12),
      inset 1px 1px 0 rgba(255, 255, 255, 1),
      inset -1px -1px 0 rgba(0, 0, 0, 0.08);
  }
  
  /* Fasteners */
  .fastener {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d0cabb;
    border: 1px solid #9f9783;
    box-shadow:
      1px 1px 2px rgba(0, 0, 0, 0.35),
      inset 1px 1px 1px rgba(255, 255, 255, 0.85);
  }
  .fastener::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    height: 1px;
    background: #6c6655;
    transform: translateY(-50%) rotate(38deg);
  }
  .fastener-tl { top: 6px; left: 6px; }
  .fastener-tr { top: 6px; right: 6px; }
  .fastener-bl { bottom: 6px; left: 6px; }
  .fastener-br { bottom: 6px; right: 6px; }
  
  /* Scale Readout Header */
  .readout {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 0.55rem;
  }
  
  .scale-eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  .scale-eyebrow.amber { color: var(--amber); }
  .scale-eyebrow.cyan { color: var(--cyan); }
  
  .readout-value {
    font-family: var(--mono);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
  }
  
  .readout-value.amber { color: var(--amber); }
  .readout-value.cyan { color: var(--cyan); }
  
  @media (min-width: 640px) {
    .scale-eyebrow { font-size: 0.92rem; }
    .readout-value { font-size: 1.55rem; }
  }
  
  /* ================= Aperture Housing & Recessed Window (Top-Left Shadowing) ================= */
  .aperture-bezel {
    background: linear-gradient(140deg, #32353b 0%, #222428 100%);
    padding: 3px;
    border-radius: 6px;
    border: 1px solid #161719;
    border-top-color: #3e4249;
    border-left-color: #35383f;
    border-right-color: #1a1b1d;
    border-bottom-color: #121315;
    box-shadow:
      3px 5px 12px rgba(25, 22, 16, 0.35),
      1px 2px 4px rgba(25, 22, 16, 0.2),
      inset 1px 1px 0 rgba(255, 255, 255, 0.22),
      inset -1px -1px 1px rgba(0, 0, 0, 0.65),
      0 1px 0 rgba(255, 255, 255, 0.85);
  }
  
  .aperture-window {
    background: linear-gradient(140deg, #121315 0%, var(--recessed-cavity) 55%, #202225 100%);
    border-radius: 4px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow:
      inset 4px 5px 12px rgba(0, 0, 0, 0.95),
      inset 2px 2px 5px rgba(0, 0, 0, 0.85),
      inset -1px -1px 1px rgba(255, 255, 255, 0.08);
    width: 100%;
  }
  
  .wheel-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
  }
  
  .reel-cluster {
    display: flex;
    align-items: center;
    gap: 1.5px;
    background: #0d0e0f;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid #1a1b1d;
    border-top-color: #141517;
    border-left-color: #141517;
    border-right-color: #26292e;
    border-bottom-color: #26292e;
    box-shadow:
      inset 2px 3px 6px rgba(0, 0, 0, 0.92),
      inset 1px 1px 2px rgba(0, 0, 0, 0.8),
      0 1px 1px rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }
  
  /* Polarity Rocker Switch */
  .sign-btn {
    height: 40px;
    width: 25px;
    background: linear-gradient(145deg, #373b40 0%, #1c1e21 100%);
    border: 1px solid #141517;
    border-top-color: #464a52;
    border-left-color: #3a3e45;
    border-right-color: #131416;
    border-bottom-color: #0e0f10;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 0;
    box-shadow:
      2px 3px 6px rgba(0, 0, 0, 0.55),
      inset 1px 1px 0 rgba(255, 255, 255, 0.18),
      inset -1px -1px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.1s, background 0.1s;
  }
  
  .sign-btn.amber { color: #fdba74; }
  .sign-btn.cyan { color: #93c5fd; }
  
  .sign-btn:active {
    transform: translate(1px, 1px);
    background: #18191b;
    box-shadow:
      1px 1px 3px rgba(0, 0, 0, 0.6),
      inset 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* Decimal Pin Divider */
  .decimal-sep {
    width: 5px;
    height: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 9px;
    flex-shrink: 0;
  }
  
  .decimal-pin {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f1f5f9;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
  }
  
  /* Fixed Unit Plaque */
  .unit-badge {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
  }
  
  .unit-badge.amber { color: #fdba74; }
  .unit-badge.cyan { color: #93c5fd; }
  
  @media (min-width: 640px) {
    .sign-btn {
      height: 44px;
      width: 29px;
      font-size: 1.25rem;
    }
    .decimal-sep {
      width: 7px;
      height: 44px;
      padding-bottom: 11px;
    }
    .decimal-pin {
      width: 4px;
      height: 4px;
    }
    .unit-badge {
      height: 44px;
      font-size: 1.4rem;
    }
  }
  
  /* ================= 3D Drum Rollers ================= */
  .drum {
    position: relative;
    height: 154px;
    width: 2.9rem;
    touch-action: none;
    cursor: grab;
    overflow: hidden;
    border-radius: 3px;
    border-left: 1px solid rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
  }
  
  .drum:active {
    cursor: grabbing;
  }
  
  @media (min-width: 380px) {
    .drum {
      width: 3rem;
    }
  }
  
  @media (min-width: 640px) {
    .drum {
      height: 168px;
      width: 3rem;
    }
  }
  
  .drum-main-reel {
    background: linear-gradient(
      90deg,
      #cfcbbd 0%,
      #ebe6d6 20%,
      var(--drum-ivory) 50%,
      #ebe6d6 80%,
      #cfcbbd 100%
    );
  }
  
  .drum-sub-reel {
    background: linear-gradient(
      90deg,
      #c4bca8 0%,
      #ddd4bc 20%,
      var(--tenth-drum) 50%,
      #ddd4bc 80%,
      #c4bca8 100%
    );
  }
  
  .drum-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .drum-item {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    user-select: none;
    -webkit-user-select: none;
  }
  
  .drum-item-selected {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--drum-dark);
  }
  
  .drum-item-dim {
    font-size: 1.1rem;
    font-weight: 600;
    color: #78756c;
  }
  
  .tenth-item.drum-item-selected {
    color: #8a2a0d;
  }
  
  @media (min-width: 640px) {
    .drum-item-selected { font-size: 1.6rem; }
    .drum-item-dim { font-size: 1.25rem; }
  }
  
  /* ================= Sight Window Reticle & Real Lens Effect ================= */
  .drum-lens {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    z-index: 10;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.0) 35%),
      linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.0) 25%),
      linear-gradient(0deg, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.0) 25%),
      radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    box-shadow:
      inset 0 5px 10px rgba(255, 255, 255, 0.3),
      inset 0 -5px 10px rgba(0, 0, 0, 0.25),
      0 3px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 4px;
  }
  
  .reticle-tick {
    display: none;
    width: 6px;
    height: 14px;
    filter: drop-shadow(0 1px 1.5px rgba(0,0,0,0.6));
  }
  
  .drum-shade {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    height: 3.5rem;
    z-index: 20;
  }
  
  .drum-shade-top {
    top: 0;
    background: linear-gradient(180deg, rgba(8, 9, 10, 0.92) 0%, rgba(20, 22, 24, 0.5) 50%, transparent 100%);
  }
  
  .drum-shade-bottom {
    bottom: 0;
    background: linear-gradient(0deg, rgba(8, 9, 10, 0.92) 0%, rgba(20, 22, 24, 0.5) 50%, transparent 100%);
  }
  
  /* ================= Calibration Landmarks & Preset Cards ================= */
  .presets-shelf {
    background: linear-gradient(145deg, #e3ded1 0%, #ded8c7 50%, #d4cdc0 100%);
    border: 1px solid #bbb39c;
    border-top-color: #d0c9b6;
    border-left-color: #c7c0ad;
    border-right-color: #aba28b;
    border-bottom-color: #9c937c;
    border-radius: 8px;
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow:
      3px 5px 14px -2px rgba(45, 40, 28, 0.14),
      inset 1px 1px 0 rgba(255, 255, 255, 0.75);
  }
  
  @media (min-width: 640px) {
    .presets-shelf {
      padding: 1rem;
      gap: 0.85rem;
    }
  }
  
  
  /* Responsive Landmark Cards Grid */
  .presets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  @media (min-width: 520px) {
    .presets-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.65rem;
    }
  }
  
  @media (min-width: 820px) {
    .presets-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
    }
  }
  
  /* Individual Calibration Landmark Card */
  .preset-card {
    --preset-color: #06b6d4;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.45rem;
    padding: 0.7rem 0.75rem 0.7rem 0.75rem;
    border-radius: 6px;
    background: linear-gradient(145deg, #fdfcf9 0%, var(--panel-face) 55%, #f2eee2 100%);
    border: 1px solid #c2baa6;
    border-top-color: #ded8c8;
    border-left-color: #d6d0be;
    border-right-color: #b5ad98;
    border-bottom-color: #a69e88;
    box-shadow:
      2px 3px 8px rgba(45, 40, 28, 0.1),
      0 2px 0 #9f9680,
      inset 1px 1px 0 rgba(255, 255, 255, 0.95);
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  }
  
  /* Machined Thermal Color Accent Strip along Top Edge */
  .preset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--preset-color);
    opacity: 0.85;
    transition: opacity 0.12s ease, height 0.12s ease;
  }
  
  .preset-card:hover {
    transform: translateY(-1px);
    background: linear-gradient(145deg, #ffffff 0%, #fcfbf7 60%, #f6f2e8 100%);
    border-color: #9e9681;
    box-shadow:
      3px 6px 14px rgba(45, 40, 28, 0.16),
      0 2px 0 #8d846f,
      inset 1px 1px 0 #ffffff;
  }
  
  .preset-card:hover::before {
    opacity: 1;
  }
  
  .preset-card:active {
    transform: translateY(1px);
    box-shadow:
      1px 1px 3px rgba(45, 40, 28, 0.16),
      0 0 0 #8d846f,
      inset 1px 2px 4px rgba(0, 0, 0, 0.12);
  }
  
  /* Active / Engaged Calibration Preset State */
  .preset-card.is-active {
    background: linear-gradient(145deg, #f5f1e4 0%, #ede7d5 100%);
    border-color: #7c7460;
    box-shadow:
      inset 1px 2px 5px rgba(35, 31, 22, 0.16),
      0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(1px);
  }
  
  .preset-card.is-active::before {
    opacity: 1;
    height: 3.5px;
  }
  
  /* Card Header Row: Recessed Icon + Monospace Readout Badge */
  .preset-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.1rem;
  }
  
  .preset-icon-well {
    width: 2rem;
    height: 2rem;
    border-radius: 5px;
    background: linear-gradient(145deg, #2b2e33 0%, #1b1d20 100%);
    border: 1px solid #141517;
    border-top-color: #3d4148;
    border-left-color: #35383f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow:
      1px 2px 4px rgba(0, 0, 0, 0.25),
      inset 1px 1px 0 rgba(255, 255, 255, 0.15);
  }
  
  .preset-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-primary);
    background: #ede9dc;
    border: 1px solid #c8c1ae;
    border-radius: 4px;
    padding: 0.2rem 0.42rem;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
  }
  
  .preset-card.is-active .preset-badge {
    background: #23262a;
    color: #f8fafc;
    border-color: #16181a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .preset-led {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--preset-color);
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  }
  
  .preset-card.is-active .preset-led {
    box-shadow: 0 0 6px var(--preset-color), 0 0 0 1px rgba(255, 255, 255, 0.25);
  }
  
  /* Card Title & Description */
  .preset-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .preset-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-primary);
    line-height: 1.25;
  }
  
  .preset-desc {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.42;
    color: var(--ink-secondary);
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      transition: none !important;
      animation: none !important;
    }
  }