#appearance {
  margin: 1.1rem 0 1.3rem;
  scroll-margin-top: .8rem;
}
#appearance[hidden] { display: none; }
.appearance-heading {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: .15rem .75rem; margin-bottom: .55rem;
}
.appearance-heading h2 { margin: 0; font-size: 1.12rem; font-weight: 600; }
#appearance-model { color: var(--muted); font-size: .89rem; overflow-wrap: anywhere; }
#appearance-comparison {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.35rem, 1vw, .75rem);
}
.hardware-view {
  min-width: 0; padding: 0; overflow: hidden; font: inherit; letter-spacing: inherit; text-align: start;
  color: inherit; border: 1px solid var(--line); background: var(--paper); border-radius: .7rem; cursor: pointer;
}
.hardware-view[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.hardware-view:focus-visible { outline-offset: 2px; }
.drawing-stage {
  position: relative; isolation: isolate; display: grid; align-items: end; justify-items: center;
  padding-bottom: clamp(12px, 2.1vw, 20px);
  container-type: inline-size; height: clamp(126px, 20vw, 178px);
  background: linear-gradient(155deg,#f4f4f2,#eaeae7);
}
.drawing-stage::after {
  position: absolute; z-index: -1; content: ''; bottom: 5%; left: 23%; width: 54%; height: 10%;
  border-radius: 50%; background: radial-gradient(ellipse,#5556,transparent 70%); filter: blur(4px);
}
.hardware-shell {
  position: relative; display: block;
  forced-color-adjust: none;
  width: min(82%, calc(clamp(99px, 15.5vw, 142px) * var(--body-ratio) * var(--figure-scale, 1)));
  aspect-ratio: var(--body-ratio);
  border: 1px solid #43474a;
  border-radius: clamp(6px, 2.5cqw, 11px);
  background: linear-gradient(143deg,#e6e9e8 1%,#848d90 20%,#444b4e 36%,#b5bcbd 68%,#62696a 100%);
  box-shadow: inset 0 0 0 .8px #fffa, 1px 1.5px 0 #313537, 2px 3px 0 #6c7274, 2px 6px 7px #20282a2b;
}
.hardware-display {
  position: absolute; display: flex; overflow: hidden; inset: 2.3%;
  border-radius: clamp(4px, 1.7cqw, 8px); border: 1px solid #121a1e;
  background: radial-gradient(ellipse 118% 95% at 12% 0%,transparent 57%,#e5ece53b 58%,transparent 62%),
    linear-gradient(132deg,#dbe7db -12%,#9cc0b0 27%,#65939d 44%,#386879 57%,#213e52 78%,#122735 100%);
}
.hardware-shell[data-surface="cover"] .hardware-display {
  inset: auto; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: var(--cover-width,94%); height: var(--cover-height,95%);
}
.hardware-shell[data-form="wrap"] .hardware-display { left: 51%; width: 97%; }
.hardware-shell[data-form="round"] .hardware-display { border-radius: 50%; }
.hardware-shell[data-form="strip"] .hardware-display { border-radius: .22rem; }
.hardware-shell[data-surface="cover"][data-form="folder"] .hardware-display {
  clip-path: polygon(0 0,100% 0,100% 76%,66% 76%,57% 91%,52% 100%,0 100%);
}
.hardware-shell[data-form="blank"] {
  background: linear-gradient(142deg,#eaeceb,#c9cfce 72%,#a2aaaa);
}
.hardware-shell[data-form="blank"]::before,.hardware-shell[data-form="blank"]::after {
  content:''; position:absolute; width:6%; height:13%; left:-2%; border-radius:2px;
  background: linear-gradient(90deg,#555d5f,#c0c4c4,#51595a);
}
.hardware-shell[data-form="blank"]::before { top:13%; }
.hardware-shell[data-form="blank"]::after { bottom:13%; }
.hardware-display .fold-panel { flex: 1 1 0; min-height: 0; min-width: 0; }
.hardware-display .fold-panel + .fold-panel {
  border-inline-start: 1px solid #152c405c;
  background: linear-gradient(90deg,#203a463b,transparent 10%,transparent 92%,#d3e2dc12);
}
.hardware-shell[data-form$="clamshell"] .hardware-display { flex-direction: column; }
.hardware-shell[data-form$="clamshell"] .fold-panel + .fold-panel {
  border-inline-start: 0; border-top: 1px solid #15354258;
  background: linear-gradient(#18384632,transparent 12%,transparent);
}
.hardware-shell[data-surface="inner"][data-form="dual"] .hardware-display {
  inset: 4%; gap: 3.5%; border: 0; border-radius: 2px; background: #434b4e;
}
.hardware-shell[data-surface="inner"][data-form="dual"] .fold-panel {
  border: 1px solid #171d20; border-radius: 2px;
  background: radial-gradient(ellipse 118% 95% at 12% 0%,transparent 57%,#e5ece535 58%,transparent 62%),
    linear-gradient(137deg,#c0d3bf,#709fa5 47%,#2d5368 80%,#1d364b);
}
.hardware-shell[data-form="trifold-in"] .fold-panel:nth-child(2),
.hardware-shell[data-form="trifold-mixed"] .fold-panel:nth-child(2) {
  background: linear-gradient(90deg,#213a4945,transparent 13%,transparent 90%,#cfdfdd40);
}
.hardware-shell[data-form="trifold-mixed"] .fold-panel:nth-child(3) {border-inline-start-color: #c9e1d9a6;}
.hardware-cameras { position: absolute; display: flex; top: 8%; gap: 2px; width: 17%; }
.hardware-cameras[data-side="left"] { left: 8%; }
.hardware-cameras[data-side="right"] { right: 8%; }
.hardware-cameras[data-layout="stack"] { flex-direction: column; }
.hardware-cameras[data-layout="stack"] .camera-lens { flex: none; width: 100%; }
.hardware-cameras[data-layout="row"] { width: 28%; }
.camera-housing {
  position:absolute; width:35%; aspect-ratio:1; border-radius:50%; transform:translate(-50%,-50%);
  border:1px solid #9ba4a6;
  background:radial-gradient(ellipse at 36% 23%,#3e5058,#202930 33%,#101519 62%,#06090a 87%);
  box-shadow:0 0 0 1px #53595b;
}
.camera-lens {
  flex: 1 1 0; min-width: 0; aspect-ratio: 1; border-radius: 100%;
  border: 1px solid #c5caca;
  background: radial-gradient(circle at 39% 32%,#9bb7bf 0 7%,#384b54 15%,#111a21 31%,#060b0e 48%,#333d40 55%,#161d20 75%,#747c7e 90%);
}
.view-legend { display: grid; align-content: start; gap: .16rem; padding: .55rem .7rem .65rem; }
.view-title { font-weight: 600; line-height: 1.18; }
.view-detail, .drawing-credit { font-size: .82rem; line-height: 1.35; color: var(--muted); }
.drawing-credit { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:0 .8rem; margin: .3rem 0 0; text-align: end; }
.drawing-credit a { display:inline-flex; align-items:center; min-height:2rem; }
.drawing-credit [hidden] { display:none; }
#rig[data-enclosure] {
  border-color: #484e50 #343b3d #646a6b #4a5052;
  box-shadow: 0 0 0 1px #888f90, 0 1px 0 2px #474d4e, 0 4px 9px #10171725;
}
#rig[data-enclosure="dual"] { border-radius: 6px; }
#rig[data-enclosure="trifold-in"],#rig[data-enclosure="trifold-mixed"] { border-radius: 8px; }
#models .directory-model { display:inline-flex; align-items:center; min-height:2.75rem; }
@media (prefers-color-scheme: dark) {
  .drawing-stage { background: linear-gradient(155deg,#303538,#1d2123); }
  .drawing-stage::after { background: radial-gradient(ellipse,#000a,transparent 68%); }
}
@media (max-width: 360px) {
  .view-legend { padding:.4rem .45rem .45rem; }
  .view-detail { font-size:.78rem; }
}
