.instrument-fascia {
  --bezel:clamp(6px,.65vw,8px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--controls-width, 28%);
  align-items: stretch;
  gap: var(--bezel);
  padding: clamp(4px, .7vw, 8px);
  min-width: 0;
  border: 1px solid #52514a;
  border-radius: 6px;
  background: linear-gradient(175deg, #393a35, #272923 42%, #30302b);
  box-shadow: inset 0 1px 0 #f3ead738, inset 0 -2px 0 #080908, 0 2px 5px #0005;
}
.instrument-fascia .instrument-display {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3em;
  padding: clamp(6px, .8vw, 11px) clamp(6px, 1.15vw, 15px);
  border: solid transparent;
  border-width: var(--bezel);
  border-image: url("/assets/deck-glass-bezel.webp") 22 / var(--bezel) stretch;
  background: linear-gradient(162deg, #252925 0%, #171a17 32%, #111410 86%);
  color: #eeede2;
  overflow-wrap: anywhere;
}
.instrument-fascia .instrument-display > * { min-width: 0; margin: 0; }
.instrument-fascia .instrument-hardware {
  pointer-events: none;
  min-width: 0;
  width: 100%;
  align-self:center;
  aspect-ratio:var(--hardware-ratio);
  background-color: #272723;
  background-image: var(--hardware-image);
  /* The right-hand hardware register is a fixed crop of the original photograph. */
  background-position: right center;
  background-repeat: no-repeat;
  background-size: var(--hardware-zoom) auto;
  border-radius:3px;
  box-shadow:0 0 0 1px #131510;
}
.instrument-fascia .instrument-display :is(h1,h2) { color: #e4e9d8; text-shadow: 0 0 5px #cae5aa35; }
.instrument-fascia[data-reading-light] .instrument-display { background:linear-gradient(155deg,#363c31,#20251e 42%,#161a14); }
.instrument-fascia[data-reading-light] .instrument-display :is(h1,h2,p,small,.review-comment-status) { color:#f1f3e7; }
.instrument-fascia ceres-panel-lamp { position:relative; isolation:isolate; overflow:hidden; min-width:44px; }
.instrument-fascia .panel-light {
  position:absolute; z-index:2; left:clamp(22px,var(--control-x),calc(100% - 22px)); top:clamp(22px,var(--control-y),calc(100% - 22px));
  width:44px; height:44px; min-width:0; min-height:0; transform:translate(-50%,-50%); padding:0;
  border:0; border-radius:6px; background:transparent; color:inherit; pointer-events:auto; cursor:pointer; touch-action:manipulation;
}
.instrument-fascia .panel-light:focus-visible { outline:2px solid #f5f2ce; outline-offset:-2px; }
.instrument-fascia ceres-panel-lamp:has(.panel-light[aria-pressed=true])::after,
.instrument-fascia ceres-panel-lamp:has(.panel-light:active)::after {
  content:""; position:absolute; z-index:1; top:var(--control-y); left:var(--control-x); transform:translate(-50%,-50%);
  width:var(--lamp-width,12%); height:var(--lamp-height,12%); border-radius:var(--lamp-radius,50%);
  background:radial-gradient(closest-side,#fff3bc8c,transparent); box-shadow:0 0 8px #f4e3a15e; pointer-events:none;
}
.instrument-fascia .panel-engraving {
  position:absolute; bottom:4px; inset-inline:3px; text-align:center; font:600 9px/1.2 var(--mono,monospace);
  letter-spacing:.11em; color:var(--anodized-cut,#a2a59c); text-shadow:var(--anodized-edge,0 -.7px #10120f); pointer-events:none;
}
.annex-controls .annex-key {
  position:absolute; width:min(44px,14%); height:44px; transform:translate(-50%,-50%); pointer-events:auto;
  min-width:0; min-height:0; padding:0; border:0; background:none; cursor:pointer; touch-action:manipulation;
}
.annex-keypad .annex-key { width:min(46px,27%); height:min(46px,28%); border-radius:3px; }
.annex-key:focus-visible { outline:2px solid #fff2cc; outline-offset:0; }
.annex-key::after { content:""; position:absolute; inset:50% auto auto 50%; width:55%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; pointer-events:none; }
.annex-key[aria-pressed=true]::after { background:radial-gradient(circle,#fffbe0db,#f7d39652 56%,transparent 72%); }
.annex-radio .annex-key:first-of-type[aria-pressed=true]::after { background:radial-gradient(circle,#ffdbb0,#ff3b3155 56%,transparent 72%); }
.annex-keypad .annex-key::after { width:80%; height:76%; border-radius:4px; }
.annex-keypad .annex-key[aria-pressed=true]::after { background:linear-gradient(150deg,#fff1af57,#efc47237); box-shadow:inset 0 1px 5px #4e391ca8,0 0 8px #fff3b143; }
.annex-radio .annex-dial {
  position:absolute; pointer-events:auto; left:25.6%; top:55%; transform:translate(-50%,-50%);
  width:29%; height:auto; aspect-ratio:1;
  --glass-wheel-image:var(--hardware-image); --glass-wheel-size:630% auto; --glass-wheel-position:61.2% 60%;
}
.review .review-heading .instrument-display { filter:brightness(var(--glass-light,1)); }
@media (max-width: 520px) {
  .instrument-fascia { --controls-width: 22%; }
  .instrument-fascia .instrument-display { padding: 6px; }
}
@media (forced-colors: active) {
  .instrument-fascia { display: block; border: 1px solid CanvasText; background: Canvas; }
  .instrument-fascia .instrument-hardware { display: none; }
  .instrument-fascia .instrument-display { color: CanvasText; background: Canvas; border: 0; }
}
