/* ============================================================================
   app.css — Liquid-glass design system for the Omega elevator configurator.
   Layout: icon rail · options sheet · 3D stage. Phone: stage / sheet / dock.
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font: "Montserrat", system-ui, -apple-system, Arial, sans-serif;
  --ink: #131a29;
  --ink-2: #3c4761;
  --mute: #737f96;
  --sky: #2ea3ef;
  --sky-deep: #1178c4;
  --sky-line: rgba(46, 163, 239, .32);
  --sky-glow: rgba(56, 175, 240, .44);
  --glass-a: rgba(255, 255, 255, .50);
  --glass-b: rgba(255, 255, 255, .40);
  --glass-c: rgba(255, 255, 255, .66);
  --glass-d: rgba(255, 255, 255, .82);
  --stroke: rgba(255, 255, 255, .62);
  --edge: rgba(40, 56, 104, .10);
  --lift: 0 18px 40px -20px rgba(26, 40, 92, .30), 0 8px 18px -12px rgba(26, 40, 92, .18);
  --card: 0 16px 34px -18px rgba(26, 40, 92, .26), 0 5px 14px -10px rgba(26, 40, 92, .16);
  --soft: 0 6px 16px -8px rgba(26, 40, 92, .20);
  --topline: inset 0 1px 0 rgba(255, 255, 255, .9);
  --topline-2: inset 0 1px 0 rgba(255, 255, 255, .7);
  --frost: blur(32px) saturate(185%);
  --spring: cubic-bezier(.22, .85, .28, 1.02);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }

body {
  font-family: var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(58vw 52vh at 10% -8%, #dcecff 0%, rgba(228, 233, 255, 0) 60%),
    radial-gradient(52vw 54vh at 102% 6%, #d3ecff 0%, rgba(217, 237, 255, 0) 58%),
    radial-gradient(68vw 62vh at 88% 112%, #dff1ff 0%, rgba(236, 230, 255, 0) 62%),
    linear-gradient(158deg, #eef1f9 0%, #e7ebf5 100%);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ── shell ──────────────────────────────────────────────────────────────── */
.topbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 30px;
  background: var(--glass-b);
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 10px 24px -18px rgba(30, 45, 90, .35);
  backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost);
}
.topbar .brand { height: 44px; width: auto; display: block; }
.topbar-title {
  font: 500 12px var(--font); color: var(--mute); letter-spacing: .22em;
  text-transform: uppercase;
}

.shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 122px 404px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 18px; padding: 22px 30px 30px;
  height: calc(100vh - 56px); height: calc(100dvh - 56px);
}

.rail, .sheet, .stage { backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost); }

/* ── icon rail ──────────────────────────────────────────────────────────── */
.rail {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-height: 0; overflow-y: auto; padding: 16px 12px;
  background: var(--glass-a);
  border: 1px solid var(--stroke); border-radius: 30px;
  box-shadow: var(--lift), var(--topline);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { width: 0; }

.rail-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 72px; padding: 12px 6px;
  background: transparent; border: 1px solid transparent; border-radius: 16px;
  color: var(--mute); font: 600 11px/1.2 var(--font); letter-spacing: .01em; text-align: center;
  cursor: pointer;
  transition: transform .28s var(--spring), background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.rail-tab .glyph {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 13px; background: var(--glass-c);
  border: 1px solid var(--stroke); box-shadow: var(--soft), var(--topline-2);
  color: #59637d;
  transition: transform .28s var(--spring), color .25s ease, box-shadow .25s ease, background .25s ease;
}
.rail-tab .glyph svg { width: 24px; height: 24px; display: block; }
.rail-tab:hover {
  color: var(--sky-deep); transform: translateY(-2px);
  background: rgba(255, 255, 255, .55); border-color: var(--sky-line);
  box-shadow: 0 14px 26px -14px var(--sky-glow), var(--topline-2);
}
.rail-tab:hover .glyph { color: var(--sky); box-shadow: 0 10px 20px -9px var(--sky-glow), var(--topline-2); }
.rail-tab.on {
  color: var(--sky-deep); background: rgba(255, 255, 255, .72);
  border-color: var(--sky-line);
  box-shadow: 0 14px 30px -14px var(--sky-glow), var(--topline-2);
}
.rail-tab.on .glyph { background: #fff; color: var(--sky); border-color: var(--sky-line); box-shadow: 0 12px 22px -8px var(--sky-glow), var(--topline-2); }

/* ── options sheet ──────────────────────────────────────────────────────── */
.sheet {
  min-height: 0; overflow-y: auto; overflow-x: hidden;
  padding: 26px 24px;
  background: var(--glass-b);
  border: 1px solid var(--stroke); border-radius: 30px;
  box-shadow: var(--lift), var(--topline);
  scrollbar-gutter: stable;
}
.sheet::-webkit-scrollbar { width: 12px; }
.sheet::-webkit-scrollbar-thumb { background: rgba(90, 105, 135, .30); border-radius: 999px; border: 4px solid transparent; background-clip: padding-box; }
.sheet::-webkit-scrollbar-thumb:hover { background: rgba(46, 163, 239, .5); background-clip: padding-box; }
.sheet::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }

.sheet h1 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin: 2px 0 26px; }
.sheet .blurb { color: var(--mute); font-size: 13.5px; line-height: 1.5; margin: 15px 0 25px; }

/* compact cab-shape chips (layout tab) */
.chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chips .opt {
  width: 103px; height: 102px; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.chips .opt .media {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  flex: 1 1 auto; min-height: 0;
}
.chips .opt .media img { height: 36px; width: auto; }
.chips .opt .cap { font-size: 11px; margin-top: 0; }
.block { margin: 0 0 26px; }
.block > h3 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 12px; color: var(--ink); }

/* dropdown */
.dd {
  appearance: none; -webkit-appearance: none;
  width: 100%; margin: 2px 0 18px; padding: 12px 40px 12px 15px;
  background: var(--glass-d) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23737f96' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8.5l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--stroke); border-radius: 11px;
  box-shadow: var(--soft), var(--topline-2);
  color: var(--ink); font: 600 13.5px var(--font); cursor: pointer;
}
.dd:hover { border-color: var(--sky-line); }

/* grids */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid1 { display: grid; grid-template-columns: 1fr; gap: 16px; }

/* option card — outer glass card + inner white media card + caption */
.opt {
  background: var(--glass-a);
  backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost);
  border: 1px solid var(--stroke); border-radius: 22px;
  box-shadow: var(--card), var(--topline-2);
  color: var(--ink-2); cursor: pointer; text-align: center;
  padding: 12px; min-width: 0;
  transition: transform .22s var(--spring), box-shadow .22s ease, border-color .22s ease;
}
.opt .media {
  background: #fff; border: 1px solid var(--edge); border-radius: 16px;
  box-shadow: var(--soft);
  padding: 10px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.opt .media img { max-width: 100%; display: block; }
.opt .media svg { width: 40px; height: 40px; color: var(--ink-2); }
.opt .cap {
  font-weight: 600; color: var(--ink-2); font-size: 10.5px; letter-spacing: .01em;
  margin-top: 9px; line-height: 1.3;
}
.opt:hover {
  transform: translateY(-4px); border-color: var(--sky-line);
  box-shadow: 0 20px 38px -14px var(--sky-glow), var(--topline-2);
}
.opt:hover .media { border-color: var(--sky-line); box-shadow: 0 10px 22px -8px var(--sky-glow); }
.opt.on {
  border-color: var(--sky);
  box-shadow: 0 0 0 2px var(--sky), 0 16px 30px -12px var(--sky-glow), var(--topline-2);
}
.opt.on .media { border-color: var(--sky-line); }
.opt.on .cap { color: var(--sky-deep); }

/* variants */
.opt.swatch .media { padding: 4px; }
.opt.swatch .media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-view-box: inset(11% 7% 3% 7%); border-radius: 12px; }
.opt.tile .media { padding: 0; overflow: hidden; }
.opt.tile .media .ph { width: 100%; aspect-ratio: 1/1; border-radius: 12px; background-size: cover; background-position: center; }
.opt.door-card .media img { height: 190px; width: auto; max-width: 100%; object-fit: contain; }
.opt.panelbtn .media { background: transparent; border: 0; box-shadow: none; height: 232px; padding: 0; border-radius: 0; }
.opt.panelbtn .media img { height: 100%; width: 100%; object-fit: contain; }
.opt.wide-media .media { min-height: 82px; }
.opt.wide-media .media img { max-height: 62px; width: auto; object-fit: contain; }

/* custom-size form */
.dimform .hint { color: var(--mute); font-size: 12px; line-height: 1.45; margin: -6px 0 10px; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font: 600 11.5px var(--font); color: var(--mute); letter-spacing: .01em; }
.num {
  width: 100%; padding: 11px 12px; min-width: 0;
  background: var(--glass-d); border: 1px solid var(--stroke); border-radius: 11px;
  box-shadow: var(--soft), var(--topline-2);
  color: var(--ink); font: 600 13.5px var(--font);
  appearance: textfield; -moz-appearance: textfield;
}
.num::-webkit-outer-spin-button, .num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-glow), var(--topline-2); }
.apply-btn {
  width: 100%; padding: 13px 16px; border-radius: 13px; cursor: pointer;
  background: #fff; border: 1px solid var(--sky-line);
  color: var(--sky-deep); font: 700 13.5px var(--font); letter-spacing: .01em;
  box-shadow: var(--soft), var(--topline-2);
  transition: transform .2s var(--spring), box-shadow .2s ease, border-color .2s ease;
}
.apply-btn:hover { transform: translateY(-2px); border-color: var(--sky); box-shadow: 0 14px 26px -12px var(--sky-glow), var(--topline-2); }

/* advanced disclosure row */
.disclose {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 15px; cursor: pointer;
  background: var(--glass-d); border: 1px solid var(--stroke); border-radius: 11px;
  box-shadow: var(--soft), var(--topline-2);
  color: var(--ink-2); font: 600 13.5px var(--font);
  transition: border-color .2s ease, color .2s ease;
}
.disclose svg { width: 18px; height: 18px; transition: transform .25s var(--spring); }
.disclose:hover { border-color: var(--sky-line); }
.disclose.on { color: var(--sky-deep); border-color: var(--sky-line); }
.disclose.on svg { transform: rotate(180deg); }
.err { color: #d43c3c; font: 600 12px var(--font); min-height: 16px; margin: 4px 0 8px; }

/* pills (segmented) */
.pills {
  display: flex; gap: 4px; width: 100%; padding: 5px; margin: 34px 0 18px;
  background: var(--glass-d); border: 1px solid var(--stroke); border-radius: 999px;
  box-shadow: inset 0 2px 6px rgba(40, 56, 104, .08), var(--topline-2);
}
.pills button {
  flex: 1; padding: 10px 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--mute);
  font: 600 13px var(--font); cursor: pointer;
  transition: color .2s ease, background .25s var(--spring), box-shadow .25s ease;
}
.pills.tight { margin: 12px 0 26px; }
.pills button:hover { color: var(--ink); }
.pills button.on {
  color: var(--sky-deep); background: #fff;
  box-shadow: 0 10px 22px -10px var(--sky-glow), 0 0 0 1px var(--sky-line), var(--topline-2);
}

/* radio rows */
.choice {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; margin-bottom: 8px;
  background: var(--glass-c); border: 1px solid var(--edge); border-radius: 11px;
  box-shadow: var(--soft), var(--topline-2);
  color: var(--ink-2); font: 600 13.5px var(--font); cursor: pointer;
  transition: transform .2s var(--spring), border-color .2s ease, box-shadow .2s ease;
}
.choice:hover { transform: translateY(-2px); border-color: var(--sky-line); }
.choice.on {
  border-color: var(--sky); color: var(--sky-deep); background: #fff;
  box-shadow: 0 0 0 1.5px var(--sky), 0 10px 22px -10px var(--sky-glow), var(--topline-2);
}
.choice .dot {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid rgba(120, 132, 158, .55); background: #fff; position: relative;
}
.choice.on .dot { border-color: var(--sky); }
.choice.on .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sky); }

/* switch */
.flip { position: relative; display: inline-block; width: 50px; height: 28px; cursor: pointer; flex: 0 0 auto; }
.flip input { position: absolute; opacity: 0; width: 0; height: 0; }
.flip .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(120, 132, 158, .34);
  box-shadow: inset 0 1px 3px rgba(40, 56, 104, .18);
  transition: background .28s var(--spring);
}
.flip .track::before {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 8px rgba(30, 45, 90, .30);
  transition: transform .28s var(--spring);
}
.flip input:checked + .track { background: linear-gradient(180deg, #63c0f7, var(--sky)); }
.flip input:checked + .track::before { transform: translateX(22px); }
.row-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ── 3D stage ───────────────────────────────────────────────────────────── */
.stage {
  position: relative; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--stroke); border-radius: 30px;
  background:
    radial-gradient(60% 54% at 52% 38%, rgba(74, 176, 244, .20), rgba(74, 176, 244, 0) 72%),
    radial-gradient(120% 90% at 50% 112%, rgba(120, 196, 247, .22), rgba(120, 196, 247, 0) 60%),
    linear-gradient(180deg, #f6f8ff 0%, #e9eefb 100%);
  box-shadow: var(--lift), var(--topline);
}

.stage-bar {
  order: -1; z-index: 22; flex: 0 0 79px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; pointer-events: none;
}
.stage canvas { display: block; width: 100%; flex: 1 1 0; min-height: 0; }
.stage-bar > * { pointer-events: auto; }
.bar-side { display: flex; align-items: center; gap: 12px; }

.pbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--glass-d); border: 1px solid var(--stroke);
  box-shadow: var(--soft), var(--topline-2);
  color: var(--ink); font: 600 13.5px var(--font); cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s ease;
}
.pbtn svg { width: 17px; height: 17px; }
.pbtn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px var(--sky-glow), var(--topline-2); }
.pbtn:active { transform: translateY(0); }
.pbtn.primary { background: #fff; color: var(--sky-deep); border-color: var(--sky-line); box-shadow: 0 14px 30px -10px var(--sky-glow), var(--topline-2); }
.pbtn.primary svg { color: var(--sky); }
.pbtn.round { width: 42px; height: 42px; padding: 0; justify-content: center; }
.hidden { display: none !important; }
.back-wrap { display: inline-flex; align-items: center; gap: 8px; font: 600 14px var(--font); }

.stage-tools {
  position: absolute; right: 21px; top: 160px; z-index: 21;
  display: flex; flex-direction: column; gap: 11px;
}
.tool-b {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--glass-d); backdrop-filter: var(--frost); -webkit-backdrop-filter: var(--frost);
  border: 1px solid var(--stroke); border-radius: 15px;
  box-shadow: var(--card), var(--topline-2);
  color: var(--ink-2); cursor: pointer; line-height: 0; padding: 0;
  transition: transform .18s var(--spring), color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tool-b svg { width: 21px; height: 21px; display: block; }
.tool-b:hover { transform: translateY(-2px) scale(1.04); color: var(--sky); background: #fff; box-shadow: 0 14px 26px -10px var(--sky-glow), var(--topline-2); }
.tool-b:active { transform: translateY(0) scale(.96); }

/* busy toast */
.busy {
  position: fixed; inset: 0; z-index: 210;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px;
  background: rgba(232, 240, 251, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 15px var(--font); color: var(--ink); letter-spacing: -.01em;
}
.busy::before {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--sky-line); border-top-color: transparent;
  animation: busy-spin .8s linear infinite;
}
@keyframes busy-spin { to { transform: rotate(360deg); } }

.recess-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 8px; padding: 14px 16px;
  background: rgba(46, 163, 239, .07); border: 1px solid var(--sky-line);
  border-radius: 14px; color: var(--ink-2);
  font: 500 13px var(--font); line-height: 1.5;
}
.recess-note svg { width: 20px; height: 20px; flex: none; color: var(--sky); margin-top: 1px; }
.recess-note b { color: var(--ink); font-weight: 700; }

/* ── modal ──────────────────────────────────────────────────────────────── */
.veil {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 30, 55, .35); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.veil.show { display: flex; }
.dialog {
  width: min(480px, 92vw);
  background: rgba(255, 255, 255, .92); backdrop-filter: var(--frost);
  border: 1px solid var(--stroke); border-radius: 24px;
  box-shadow: var(--lift); padding: 26px;
}
.dialog h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
.dialog p { margin: 0 0 18px; color: var(--mute); font-size: 13px; }
.dialog label { display: block; font: 700 11px var(--font); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin: 12px 0 5px; }
.dialog input, .dialog textarea {
  width: 100%; padding: 11px 13px;
  background: #fff; border: 1px solid var(--edge); border-radius: 11px;
  font: 500 13.5px var(--font); color: var(--ink);
  box-shadow: var(--soft);
}
.dialog input:focus, .dialog textarea:focus { outline: none; border-color: var(--sky-line); box-shadow: 0 0 0 3px rgba(46, 163, 239, .15); }
.dialog .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ═════════════════════════════ PHONE (≤ 768px) ═════════════════════════ */
@media (max-width: 768px) {
  .topbar { height: 46px; padding: 0 14px; }
  .topbar .brand { height: 36px; }
  .topbar-title { font-size: 9px; letter-spacing: .14em; }
  .shell {
    display: flex; flex-direction: column;
    height: calc(100vh - 46px); height: calc(100dvh - 46px);   /* mobile topbar is 46px, not 56 */
    padding: 10px; gap: 10px; overflow: hidden;
  }
  .stage { order: 1; flex: 0 0 42vh; min-height: 240px; border-radius: 20px; }
  .sheet { order: 2; flex: 1 1 auto; min-height: 0; border-radius: 20px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .rail {
    order: 3; flex: 0 0 auto;                                  /* never compress the nav — it clips the labels */
    flex-direction: row; justify-content: space-between; gap: 0;
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    overflow-x: auto; overflow-y: hidden; border-radius: 20px;
  }
  .rail-tab { flex: 1 1 0; min-width: 0; padding: 6px 2px; gap: 4px; font-size: 8.5px; white-space: normal; overflow: hidden; }
  .rail-tab .glyph { width: 34px; height: 34px; border-radius: 11px; }
  .rail-tab .glyph svg { width: 19px; height: 19px; }
  .rail-tab:hover { transform: none; }

  .stage-bar { position: absolute; top: 0; left: 0; right: 0; order: 0; flex: none; padding: 10px 12px; }
  .pbtn { padding: 8px 13px; font-size: 11.5px; gap: 6px; }
  .pbtn svg { width: 14px; height: 14px; }
  .pbtn.round { width: 36px; height: 36px; }
  .stage-tools { right: 10px; top: 56px; gap: 8px; }
  .tool-b { width: 38px; height: 38px; border-radius: 12px; }
  .tool-b svg { width: 17px; height: 17px; }

  .sheet h1 { font-size: 18px; margin: 0 0 2px; }
  .sheet .blurb { font-size: 12px; }
  .block { margin-bottom: 18px; }
  .block > h3 { font-size: 12.5px; margin-bottom: 10px; }
  .dd { padding: 10px 36px 10px 13px; font-size: 12.5px; margin-bottom: 14px; }
  .grid3, .grid2 { gap: 10px; }
  .opt .cap { font-size: 9.5px; margin-top: 7px; }
  .opt.door-card .media img { height: 150px; }
  .opt.panelbtn .media { height: 182px; }
  .choice { padding: 10px 12px; font-size: 12.5px; }
  .pills button { padding: 8px 10px; font-size: 11.5px; }
  .opt:active { transform: scale(.97); }
}

@media (min-width: 769px) and (max-width: 1080px) {
  .shell { grid-template-columns: 96px 320px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .rail-tab { min-height: 62px; font-size: 10px; }
  .rail-tab .glyph { width: 36px; height: 36px; }
  .rail-tab .glyph svg { width: 20px; height: 20px; }
  .sheet { padding: 18px 16px; }
}
