:root {
  color-scheme: light;
  --ink: #171817;
  --muted: #73756f;
  --line: rgba(32, 34, 31, 0.12);
  --panel: #f7f7f2;
  --canvas: #e8e8e1;
  --accent: #49536b;
  --body-color: #49536b;
  --body-light: #68738d;
  --body-dark: #343d54;
  --keyboard-color: #727c96;
  --key-label: #f5f5f0;
  --trackpad-color: #4c566f;
  --port-color: #49536b;
  --display-color: #49536b;
  --bottom-color: #3f4962;
  --screen-wallpaper: url("assets/neo-wallpaper-indigo.jpg");
  --preview-zoom: 1;
  --model-light-x: 50%;
  --model-shadow-x: 0px;
  --left-edge-opacity: 0.08;
  --right-edge-opacity: 0.08;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible {
  outline: 2px solid #2a5bd7;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  min-height: 100svh;
  overflow: hidden;
}

.topbar {
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 26px;
  background: rgba(250, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #595b56;
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65aa78;
  box-shadow: 0 0 0 4px rgba(101, 170, 120, 0.12);
}

.topbar-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.quiet-button,
.primary-button {
  height: 38px;
  border-radius: 8px;
  border: 0;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.quiet-button {
  background: transparent;
  color: #686b65;
}

.quiet-button:hover { background: rgba(0, 0, 0, 0.045); }

.primary-button {
  position: relative;
  color: white;
  background: #20211f;
  box-shadow: 0 5px 14px rgba(21, 22, 20, 0.13);
  overflow: hidden;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #080908;
  box-shadow: 0 8px 18px rgba(21, 22, 20, 0.18);
}

.save-button-label,
.save-button-confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 180ms ease, transform 260ms var(--ease);
}

.save-button-confirmation {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
}

.save-button-confirmation i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #23442d;
  background: #d6efdc;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.primary-button.saved {
  background: #315d3d;
  box-shadow: 0 7px 18px rgba(49, 93, 61, 0.22);
}

.primary-button.saved:hover { background: #315d3d; }

.primary-button.saved .save-button-label {
  opacity: 0;
  transform: translateY(-8px);
}

.primary-button.saved .save-button-confirmation {
  opacity: 1;
  transform: translateY(0);
}

.button-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 15px;
}

.workspace {
  height: calc(100svh - 68px);
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
}

.inspector {
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 36px 28px 28px;
  position: relative;
  z-index: 10;
}

.inspector-heading {
  animation: rise-in 700ms var(--ease) both;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "DM Mono", monospace;
  color: #85877f;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.inspector h1 {
  margin: 0;
  font-size: clamp(28px, 2.1vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.intro {
  margin: 15px 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  max-width: 260px;
}

.mobile-config-actions {
  display: none;
}

.control-section {
  border-top: 1px solid var(--line);
  padding: 19px 0 20px;
  animation: rise-in 600ms var(--ease) both;
}

.finish-section { animation-delay: 90ms; }
.parts-section { animation-delay: 160ms; }
.palette-section { animation-delay: 230ms; }

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.section-title-row > span {
  color: #85877f;
  font-size: 10px;
}

.finish-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.finish-option {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 4px;
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.finish-option:hover { transform: translateY(-2px); }

.finish-option.active {
  border-color: rgba(24, 25, 23, 0.45);
  background: white;
}

.finish-sample {
  display: block;
  height: 38px;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  background-size: 154% auto;
  background-position: center 31%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07);
}

.finish-sample::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 46%, rgba(0,0,0,0.04));
}

.photo-source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  color: #92948e;
  font-size: 8.5px;
  line-height: 1.35;
}

.photo-source span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6b956f;
  box-shadow: 0 0 0 3px rgba(107,149,111,0.1);
}

.model-variant {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(35,37,33,0.08);
}

.variant-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 9px;
}

.variant-title-row strong {
  font-size: 10px;
  font-weight: 650;
}

.variant-title-row span {
  color: #85877f;
  font-size: 9px;
}

.variant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(35,37,33,0.09);
  border-radius: 8px;
  background: rgba(226,227,220,0.58);
}

.variant-options button {
  min-width: 0;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #797c75;
  font-size: 9px;
  cursor: pointer;
  transition: background 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.variant-options button:hover { color: #30322f; }

.variant-options button.active {
  color: #2d2f2c;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 1px 5px rgba(31,33,30,0.09);
}

.finish-option span:last-child {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  color: #747670;
  text-align: center;
}

.part-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.part-option {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.part-option:hover { background: rgba(30, 32, 29, 0.045); }

.part-option.active {
  background: #e6e7e0;
}

.part-symbol {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #6d7069;
  font-size: 14px;
}

.part-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
}

.part-copy small {
  display: block;
  margin-top: 3px;
  color: #8c8e88;
  font-size: 9px;
  line-height: 1.2;
}

.part-color-chip {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.13);
}

.paint-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.palette-note {
  margin: 9px 0 0;
  color: #92948e;
  font-size: 9px;
  line-height: 1.4;
}

.selected-price {
  margin: 8px 0 0;
  color: #92948e;
  font-family: "DM Mono", monospace;
  font-size: 9px;
}

.selected-price.has-price {
  color: #42453f;
  font-weight: 600;
}

.paint-color {
  padding: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--panel);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.13), inset 0 0 0 1px rgba(255,255,255,0.14);
  cursor: pointer;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.paint-color:hover { transform: scale(1.1); }

.paint-color.active {
  box-shadow: 0 0 0 2px #222421, inset 0 0 0 1px rgba(255,255,255,0.18);
}

.paint-color.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--check-color, white);
}

.key-tools {
  margin-top: 13px;
}

.key-tools p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 11px;
  color: #85877f;
  font-size: 9px;
  line-height: 1.5;
}

#paintColorDot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 3px;
  border-radius: 50%;
  background: #7dc89c;
}

.key-tools > div {
  display: flex;
  gap: 7px;
}

.key-tools button {
  flex: 1;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.58);
  font-size: 8px;
  cursor: pointer;
}

.key-tools button:hover { background: white; }

.selection-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  animation: rise-in 600ms 300ms var(--ease) both;
}

.selection-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #72756e;
  font-size: 12px;
}

.selection-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.selection-note p {
  margin: 0;
  color: #878981;
  font-size: 9px;
  line-height: 1.45;
}

.receipt-section {
  padding-bottom: 26px;
}

.receipt-list {
  display: grid;
  gap: 8px;
}

.receipt-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.receipt-item strong,
.receipt-item small {
  display: block;
}

.receipt-item strong {
  color: #484b45;
  font-size: 10px;
  font-weight: 650;
}

.receipt-item small {
  margin-top: 2px;
  color: #8a8d86;
  font-size: 9px;
  line-height: 1.35;
}

.receipt-item > span {
  color: #484b45;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  white-space: nowrap;
}

.receipt-empty,
.receipt-note {
  margin: 0;
  color: #92948e;
  font-size: 9px;
  line-height: 1.45;
}

.receipt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.receipt-total span {
  color: #6b6e67;
  font-size: 10px;
  font-weight: 700;
}

.receipt-total strong {
  color: #222420;
  font-family: "DM Mono", monospace;
  font-size: 15px;
  font-weight: 500;
}

.receipt-note {
  margin-top: 8px;
}

.receipt-export {
  width: 100%;
  margin-top: 13px;
  padding: 9px 10px;
  border: 1px solid rgba(35, 37, 33, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.62);
  color: #4c4f49;
  font-size: 9px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.receipt-export:hover {
  border-color: rgba(35, 37, 33, 0.28);
  background: white;
}

.print-receipt {
  display: none;
}

.preview {
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) 70px;
  background:
    radial-gradient(circle at 75% 12%, rgba(255,255,255,0.72), transparent 27%),
    linear-gradient(135deg, #e9e9e3 0%, #e4e4dc 100%);
}

.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  position: relative;
  z-index: 5;
}

.view-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(36, 38, 34, 0.09);
  border-radius: 9px;
  background: rgba(249, 249, 245, 0.56);
  box-shadow: 0 4px 18px rgba(28, 30, 27, 0.04);
  backdrop-filter: blur(12px);
}

.view-switcher button {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #777a74;
  font-size: 10px;
  cursor: pointer;
  transition: background 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.view-switcher button.active {
  color: #30322f;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 2px 8px rgba(32, 34, 31, 0.08);
}

.view-icon {
  width: 14px;
  height: 10px;
  position: relative;
  display: block;
}

.open-icon::before,
.closed-icon::before {
  content: "";
  position: absolute;
  inset: 0 2px 2px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.open-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.topdown-icon::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.topdown-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  height: 2px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.side-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 3px -3px 0 -0.5px currentColor;
}

.closed-icon::before { inset: 2px 0; border-radius: 2px; }

.bottom-icon::before {
  content: "";
  position: absolute;
  inset: 1px 0;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.bottom-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px 0 currentColor, 0 4px currentColor, 8px 4px currentColor;
}

.compare-button {
  position: absolute;
  right: 24px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(35, 37, 33, 0.11);
  border-radius: 8px;
  background: rgba(249,249,245,0.58);
  color: #6f726c;
  font-size: 9px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  user-select: none;
}

.compare-button:hover,
.compare-button.comparing { background: rgba(255,255,255,0.9); color: #20221f; }

.compare-symbol {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.compare-symbol::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 50%;
  background: currentColor;
}

.stage-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  padding: 0 44px;
  perspective: 1600px;
  perspective-origin: 50% 45%;
}

.stage-aura {
  position: absolute;
  width: min(64vw, 860px);
  aspect-ratio: 1.6;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.7), rgba(255,255,255,0) 67%);
  filter: blur(4px);
  pointer-events: none;
}

.laptop {
  width: min(54vw, calc((100svh - 220px) * 0.88), 620px);
  aspect-ratio: 0.97;
  position: relative;
  z-index: 2;
  transform: scale(var(--preview-zoom));
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
  animation: device-enter 1000ms 140ms var(--ease) both;
}

.laptop.side,
.laptop.closed,
.laptop.bottom,
.laptop.topdown {
  transform: scale(var(--preview-zoom));
}

.open-view,
.side-view,
.closed-view,
.bottom-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 330ms ease, transform 500ms var(--ease), visibility 330ms;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.open-view { backface-visibility: visible; }

.laptop.open .open-view { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.laptop.open .side-view,
.laptop.open .closed-view,
.laptop.open .bottom-view { opacity: 0; transform: translateY(24px) scale(0.94); visibility: hidden; }

.laptop.topdown .open-view { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.laptop.topdown .side-view,
.laptop.topdown .closed-view,
.laptop.topdown .bottom-view { opacity: 0; transform: translateY(24px) scale(0.94); visibility: hidden; }

.laptop.side .side-view { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.laptop.side .open-view { opacity: 0; transform: translateY(-20px) scale(0.93); visibility: hidden; }
.laptop.side .closed-view,
.laptop.side .bottom-view { opacity: 0; transform: translateY(20px) scale(0.93); visibility: hidden; }

.laptop.closed .closed-view { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.laptop.closed .open-view { opacity: 0; transform: translateY(-24px) scale(0.94); visibility: hidden; }
.laptop.closed .side-view,
.laptop.closed .bottom-view { opacity: 0; transform: translateY(24px) scale(0.94); visibility: hidden; }

.laptop.bottom .bottom-view { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.laptop.bottom .open-view { opacity: 0; transform: translateY(-24px) scale(0.94); visibility: hidden; }
.laptop.bottom .side-view,
.laptop.bottom .closed-view { opacity: 0; transform: translateY(24px) scale(0.94); visibility: hidden; }

.open-view {
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.lid-orbit,
.base-orbit {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease);
}

.lid-orbit {
  flex: 0 0 59.4%;
  align-items: flex-end;
  transform-origin: bottom center;
}

.base-orbit {
  flex: 0 0 62.7%;
  align-items: flex-start;
  transform-origin: top center;
}

.lid-frame {
  width: 91%;
  height: 100%;
  padding: 0.72%;
  border: 0;
  border-radius: 17px 17px 9px 9px;
  background:
    radial-gradient(ellipse at var(--model-light-x) 0%, rgba(255,255,255,0.3), transparent 44%),
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 38%, rgba(0,0,0,0.045)),
    var(--display-color);
  box-shadow:
    var(--model-shadow-x) 9px 22px rgba(30,31,28,0.16),
    inset 0 0 0 1px rgba(255,255,255,0.2),
    inset 0 -1px 2px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: background 380ms ease, box-shadow 180ms ease;
  transform: rotateX(-8deg);
  transform-origin: bottom center;
  transform-style: preserve-3d;
}

.lid-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 72'%3E%3Cpath fill='%23252725' fill-opacity='.58' d='M38 13c1-6 5-10 11-12 0 6-3 11-10 14M33 18c7-6 17-5 23 2-10 7-8 23 3 28-3 8-8 18-15 22-5 3-8-3-14-3s-9 6-14 3C7 64 1 50 2 37 3 24 12 17 22 18c5 0 8 3 11 0Z'/%3E%3C/svg%3E") center / 11.5% auto no-repeat,
    linear-gradient(140deg, rgba(255,255,255,0.18), transparent 34%, rgba(0,0,0,0.09)),
    var(--display-color);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
  transform: translateZ(-6px);
  pointer-events: none;
}

.lid-frame::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -3px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--display-color) 76%, white), var(--body-dark));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
  transform: translateZ(-2px);
  pointer-events: none;
}

.lid-side {
  position: absolute;
  z-index: -1;
  top: 1.2%;
  bottom: 1.2%;
  width: 10px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--body-dark), var(--display-color), color-mix(in srgb, var(--display-color) 80%, white));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lid-side-left {
  left: 0;
  opacity: var(--left-edge-opacity);
  transform: translateX(-100%) rotateY(-90deg);
  transform-origin: right center;
}

.lid-side-right {
  right: 0;
  opacity: var(--right-edge-opacity);
  transform: translateX(100%) rotateY(90deg);
  transform-origin: left center;
}

.lid-frame:hover { box-shadow: 0 10px 24px rgba(30,31,28,0.18), inset 0 0 0 2px rgba(255,255,255,0.3); }

.screen-bezel {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4.36%;
  border-radius: 12px 12px 7px 7px;
  background: linear-gradient(145deg, #171918, #080908 70%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055), inset 0 -1px 0 rgba(255,255,255,0.03);
  transform: translateZ(1px);
  backface-visibility: hidden;
}

.screen-camera {
  position: absolute;
  z-index: 5;
  top: 2.55%;
  left: 50%;
  width: 3px;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #40545f, #090a0a 58%);
  box-shadow: 0 0 0 1px #050605, 0 0 3px rgba(48,91,113,0.35);
}

.screen-art {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background-color: #dfe8f6;
  background-image: var(--screen-wallpaper);
  background-position: center;
  background-size: cover;
  transition: background-image 260ms ease;
  box-shadow: inset 0 0 22px rgba(0,0,0,0.16);
}

.screen-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255,255,255,0.15), transparent 24% 70%, rgba(255,255,255,0.05)),
    radial-gradient(ellipse at 50% 120%, transparent 50%, rgba(0,0,0,0.16));
}

.screen-menu {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: 7%;
  display: flex;
  align-items: center;
  gap: 1.8%;
  padding: 0 1.6%;
  background: rgba(231,226,219,0.2);
  backdrop-filter: blur(10px) saturate(0.8);
}

.screen-menu b,
.screen-menu i {
  color: rgba(255,255,255,0.72);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(2px, 0.32vw, 4px);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
}

.screen-menu b { font-size: clamp(2px, 0.38vw, 5px); }

.screen-menu em {
  margin-left: auto;
  font-family: "DM Mono", monospace;
  font-size: clamp(3px, 0.46vw, 6px);
  font-style: normal;
  color: rgba(255,255,255,0.85);
}

.dock {
  position: absolute;
  z-index: 4;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 22%;
  height: 8.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5.5%;
  border-radius: 6px;
  background: rgba(239,235,231,0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.26);
  backdrop-filter: blur(7px);
}

.dock i {
  width: 11%;
  aspect-ratio: 1;
  border-radius: 24%;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(230,230,226,0.7));
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.dock i:nth-child(2) { background: #6a9fc2; }
.dock i:nth-child(3) { background: #e8a55b; }
.dock i:nth-child(4) { background: #80b787; }
.dock i:nth-child(5) { background: #c77e76; }

.hinge {
  width: 68%;
  height: 9px;
  margin-top: -5px;
  position: relative;
  z-index: 12;
  border-radius: 999px;
  background: linear-gradient(to bottom, #292b28 0 16%, #090a09 38% 68%, color-mix(in srgb, var(--body-dark) 82%, black) 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), 0 2px 3px rgba(0,0,0,0.24);
  flex: 0 0 auto;
  transform: translateZ(5px);
  transform-style: preserve-3d;
}

.hinge i {
  position: absolute;
  inset: 1px 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0 2%, rgba(0,0,0,0.78) 3% 97%, transparent 98%);
}


.hinge::before,
.hinge::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 7%;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--body-light), var(--body-dark));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16);
}

.hinge::before { left: -1%; }
.hinge::after { right: -1%; }

.base {
  width: 93%;
  height: 100%;
  margin-top: -4px;
  border-radius: 10px 10px 20px 20px;
  background:
    radial-gradient(ellipse at var(--model-light-x) 2%, rgba(255,255,255,0.23), transparent 42%),
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent 35%, rgba(0,0,0,0.035)),
    var(--body-color);
  box-shadow:
    var(--model-shadow-x) 28px 38px rgba(36,38,34,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.19),
    inset 0 -5px 11px rgba(0,0,0,0.055);
  position: relative;
  z-index: 4;
  transform: rotateX(49deg);
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: background 380ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.base-side {
  position: absolute;
  z-index: 5;
  top: 1.5%;
  bottom: 3%;
  width: 18px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--body-dark), var(--body-color) 50%, color-mix(in srgb, var(--body-color) 82%, white));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.11);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.base-side-left {
  left: 0;
  opacity: var(--left-edge-opacity);
  transform: translateX(-100%) rotateY(-90deg);
  transform-origin: right center;
}

.base-side-right {
  right: 0;
  opacity: var(--right-edge-opacity);
  transform: translateX(100%) rotateY(90deg);
  transform-origin: left center;
}

.base::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at var(--model-light-x) 10%, rgba(255,255,255,0.12), transparent 35%),
    linear-gradient(96deg, transparent 0 47%, rgba(255,255,255,0.035) 53%, transparent 61%);
  opacity: 0.72;
  pointer-events: none;
}

.base::after {
  content: "";
  position: absolute;
  z-index: 6;
  left: 1.2%;
  right: 1.2%;
  bottom: -5px;
  height: 7px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--body-color) 88%, white), var(--body-dark) 78%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 5px 8px rgba(0,0,0,0.1);
  pointer-events: none;
}

.base:hover { box-shadow: 0 30px 46px rgba(40,42,38,0.22), inset 0 0 0 2px rgba(255,255,255,0.22), inset 0 -8px 16px rgba(0,0,0,0.08); }

.keyboard {
  width: 84%;
  height: 50.5%;
  position: absolute;
  left: 8%;
  top: 5.5%;
  display: flex;
  flex-direction: column;
  gap: 2.5%;
  z-index: 2;
  cursor: default;
}

.keyboard::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -1.6% -1.1%;
  border-radius: 5px;
  background: color-mix(in srgb, var(--body-color) 90%, black);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 1px 0 rgba(255,255,255,0.12);
  pointer-events: none;
}

.key-row {
  height: 14.583333%;
  flex: 0 0 14.583333%;
  display: flex;
  gap: 0.7%;
}

.key {
  flex: var(--key-width, 1);
  min-width: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 3px;
  color: var(--key-text, var(--key-label));
  background:
    linear-gradient(145deg, rgba(255,255,255,0.16), transparent 42%, rgba(0,0,0,0.03)),
    var(--key-fill, var(--keyboard-color));
  box-shadow:
    0 1.5px 0 color-mix(in srgb, var(--key-fill, var(--keyboard-color)) 62%, black),
    0 0 0 0.5px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.5px, 0.52vw, 6.5px);
  line-height: 1;
  white-space: pre-line;
  cursor: pointer;
  position: relative;
  transition: transform 100ms ease, background 250ms ease, box-shadow 180ms ease;
}

.key.multi-legend {
  line-height: 1.12;
}

.key-row:first-child .key {
  font-size: clamp(3.2px, 0.44vw, 5.4px);
  line-height: 1;
}

.function-icon-key .function-glyph {
  width: 45%;
  height: 45%;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.22;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.key-row:first-child .function-icon-key .function-glyph {
  width: 38%;
  height: 38%;
  stroke-width: 1.08;
}

.function-icon-key .function-glyph * {
  vector-effect: non-scaling-stroke;
}

.key-row:last-child .key {
  font-size: clamp(3px, 0.42vw, 5.2px);
  line-height: 1.08;
}

.arrow-cluster {
  flex: var(--key-width, 3);
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6% 3.5%;
}

.arrow-cluster .key {
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 2px;
  font-size: clamp(2.8px, 0.36vw, 4.6px);
}

.arrow-cluster .key[data-key-id="5-up"] { grid-column: 2; grid-row: 1; }
.arrow-cluster .key[data-key-id="5-left"] { grid-column: 1; grid-row: 2; }
.arrow-cluster .key[data-key-id="5-down"] { grid-column: 2; grid-row: 2; }
.arrow-cluster .key[data-key-id="5-right"] { grid-column: 3; grid-row: 2; }

.key[data-key-id="2-enter-top"] {
  z-index: 5;
  overflow: visible;
  isolation: isolate;
  border-radius: 3px 3px 0 3px;
  transition: filter 180ms ease, box-shadow 180ms ease;
}

.key[data-key-id="2-enter-top"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  top: calc(100% - 1px);
  width: 61.7%;
  height: calc(117.2% + 1px);
  box-sizing: border-box;
  border-right: 0.5px solid rgba(0,0,0,0.25);
  border-bottom: 0.5px solid rgba(0,0,0,0.25);
  border-left: 0.5px solid rgba(0,0,0,0.25);
  border-radius: 0 0 3px 3px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13), transparent 42%, rgba(0,0,0,0.03)),
    var(--key-fill, var(--keyboard-color));
  box-shadow: 0 1.5px 0 color-mix(in srgb, var(--key-fill, var(--keyboard-color)) 62%, black);
  pointer-events: none;
}

.key[data-key-id="3-enter"] {
  z-index: 4;
  overflow: visible;
  border-radius: 0;
  color: transparent;
  background: transparent;
  box-shadow: none;
  transition: filter 180ms ease, box-shadow 180ms ease;
}

.key[data-key-id="3-enter"]::before {
  display: none;
}

.key[data-key-id="3-enter"].customized::after { display: none; }

.key[data-corner]::before {
  content: attr(data-corner);
  position: absolute;
  right: 9%;
  bottom: 9%;
  font-size: 0.68em;
  line-height: 1;
  opacity: 0.72;
}

.key[data-key-id="3-F"]::before,
.key[data-key-id="3-J"]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11%;
  width: 29%;
  height: clamp(1px, 0.11vw, 1.4px);
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 -0.5px 0 rgba(255,255,255,0.28),
    0 0.7px 0 rgba(0,0,0,0.24);
  opacity: 0.52;
  transform: translateX(-50%);
  pointer-events: none;
}

.key.touch-id-key {
  color: transparent;
}

.key.touch-id-key::before {
  content: "";
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--key-fill, var(--keyboard-color)) 70%, black);
  background: color-mix(in srgb, var(--key-fill, var(--keyboard-color)) 94%, white);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.28);
}

.key.lock-key {
  color: var(--key-text, var(--key-label));
}

.key:hover {
  transform: translateY(-1px);
  z-index: 3;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--key-fill, var(--keyboard-color)) 73%, black), 0 0 0 1px rgba(255,255,255,0.6);
}

.key[data-key-id="2-enter-top"]:hover,
.key[data-key-id="3-enter"]:hover {
  transform: none;
}

.key[data-key-id="3-enter"]:hover {
  box-shadow: none;
}

.keyboard:has(.key[data-key-id="2-enter-top"]:hover) .key[data-key-id="2-enter-top"],
.keyboard:has(.key[data-key-id="3-enter"]:hover) .key[data-key-id="2-enter-top"] {
  z-index: 6;
  transform: none;
  filter: brightness(1.07) drop-shadow(0 0 0.7px rgba(255,255,255,0.6));
  box-shadow: 0 2px 0 color-mix(in srgb, var(--key-fill, var(--keyboard-color)) 73%, black);
}

.keyboard:has(.key[data-key-id="2-enter-top"]:hover) .key[data-key-id="3-enter"],
.keyboard:has(.key[data-key-id="3-enter"]:hover) .key[data-key-id="3-enter"] {
  transform: none;
  box-shadow: none;
}

.key[data-key-id="2-enter-top"]:focus-visible {
  outline: none;
  filter: brightness(1.07) drop-shadow(0 0 1px #2a5bd7);
}

.key:active { transform: translateY(1px); }

.key.customized::after {
  content: "";
  position: absolute;
  right: 9%;
  top: 10%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
}

.speaker {
  position: absolute;
  z-index: 7;
  top: 39%;
  width: 0.45%;
  height: 15%;
  border-radius: 4px;
  background: color-mix(in srgb, var(--body-color) 36%, #111211);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--body-color) 64%, black);
  transition: opacity 220ms ease;
}

.speaker-left { left: 0.15%; opacity: var(--left-edge-opacity); }
.speaker-right { right: 0.15%; opacity: var(--right-edge-opacity); }

.trackpad {
  position: absolute;
  z-index: 2;
  left: 29.5%;
  bottom: 3.2%;
  width: 41%;
  height: 35%;
  border: 0.8px solid color-mix(in srgb, var(--trackpad-color) 78%, black);
  border-radius: 7px;
  background:
    radial-gradient(ellipse at var(--model-light-x) 10%, rgba(255,255,255,0.08), transparent 60%),
    var(--trackpad-color);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), 0 1px 1px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: background 380ms ease, border-color 180ms ease, transform 180ms ease;
}

.trackpad:hover { border-color: rgba(255,255,255,0.55); transform: scale(1.01); }

.left-edge,
.right-edge {
  position: absolute;
  z-index: 8;
  top: 23%;
  height: 42%;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.left-edge { left: -0.35%; width: 0.8%; opacity: var(--left-edge-opacity); }
.right-edge { right: -0.35%; width: 0.8%; opacity: var(--right-edge-opacity); }

.port {
  position: absolute;
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--port-color) 42%, #121312);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--port-color) 74%, #111);
  cursor: pointer;
  transition: background 300ms ease, box-shadow 300ms ease;
}

.left-edge .usb {
  left: 0;
  width: 100%;
  height: 14%;
  border-radius: 4px 1px 1px 4px;
}

.left-edge .rear { top: 38%; }
.left-edge .front { top: 61%; }

.right-edge .audio {
  right: 0;
  top: 48%;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.front-notch {
  position: absolute;
  bottom: -4px;
  left: 45%;
  width: 10%;
  height: 2.8%;
  z-index: 8;
  border-radius: 0 0 90% 90%;
  background: color-mix(in srgb, var(--body-dark) 72%, black);
}

.laptop.topdown .open-view {
  justify-content: center;
  padding-top: 0;
}

.laptop.topdown .lid-orbit {
  z-index: 14;
  width: 100%;
  flex: 0 0 14px;
  align-items: center;
}

.laptop.topdown .lid-frame {
  width: 108%;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  transform: none;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--display-color) 72%, white), var(--display-color) 48%, var(--body-dark));
  box-shadow:
    0 2px 4px rgba(22,24,22,0.22),
    inset 0 1px 0 rgba(255,255,255,0.28),
    inset 0 -1px 1px rgba(0,0,0,0.2);
}

.laptop.topdown .lid-frame::before,
.laptop.topdown .lid-frame::after,
.laptop.topdown .lid-side,
.laptop.topdown .screen-bezel {
  display: none;
}

.laptop.topdown .hinge {
  z-index: 13;
  width: 61%;
  height: 6px;
  margin-top: -2px;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.28);
}

.laptop.topdown .base-orbit {
  z-index: 5;
  width: 100%;
  flex: 0 0 62.7%;
  align-items: flex-start;
}

.laptop.topdown .base {
  width: 93%;
  height: 100%;
  margin-top: 0;
  border-radius: 24px 24px 20px 20px;
  transform: none;
  box-shadow:
    0 24px 38px rgba(36,38,34,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.19),
    inset 0 -5px 11px rgba(0,0,0,0.055);
}

.laptop.topdown .keyboard {
  width: 93%;
  height: 52%;
  left: 3.5%;
  top: 5.5%;
}

.laptop.topdown .trackpad {
  left: 29.5%;
  bottom: 2.5%;
  width: 41%;
  height: 35%;
}

.laptop.topdown .base-side,
.laptop.topdown .speaker,
.laptop.topdown .left-edge,
.laptop.topdown .right-edge {
  opacity: 0;
  pointer-events: none;
}

.side-view {
  flex-direction: column;
  gap: 52px;
}

.side-specimen {
  width: 88%;
  height: 35px;
  position: relative;
  filter: drop-shadow(0 18px 16px rgba(31,33,30,0.16));
}

.side-lid {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0.4%;
  width: 99.2%;
  height: 7px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(to bottom, var(--body-light), var(--display-color));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 1px 1px rgba(0,0,0,0.12);
  transition: background 350ms ease;
}

.side-lid span {
  display: block;
  position: absolute;
  left: 0.5%;
  right: 0.5%;
  bottom: -1px;
  height: 1px;
  background: rgba(18,19,18,0.72);
}

.side-base {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 0;
  width: 100%;
  height: 26px;
  border-radius: 5px 5px 16px 13px;
  background: linear-gradient(to bottom, var(--body-light) 0, var(--body-color) 24%, var(--body-color) 63%, var(--body-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.23), inset 0 -1px 0 rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background 350ms ease;
}

.side-base::before {
  content: "";
  position: absolute;
  left: 1%;
  right: 1%;
  top: 2px;
  height: 1px;
  background: rgba(20,21,20,0.22);
  pointer-events: none;
}

.side-usb {
  position: absolute;
  top: 9px;
  width: 8.5%;
  height: 7px;
  border-radius: 3px 3px 5px 5px;
  background: color-mix(in srgb, var(--port-color) 40%, #101110);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.32), 0 0 0 1px color-mix(in srgb, var(--port-color) 68%, black);
  cursor: pointer;
  transition: background 300ms ease;
}

.usb-one { left: 15%; }
.usb-two { left: 26%; }

.side-audio {
  position: absolute;
  left: 22%;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--port-color) 38%, #090a09);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--port-color) 68%, black);
  cursor: pointer;
}

.side-speaker {
  position: absolute;
  left: 29%;
  top: 10px;
  width: 23%;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--body-color) 48%, #111211);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.24);
}

.side-foot {
  position: absolute;
  left: 14%;
  bottom: -3px;
  width: 9%;
  height: 5px;
  border-radius: 0 0 50% 50%;
  background: var(--body-dark);
}

.side-foot::after {
  content: "";
  position: absolute;
  left: 760%;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: inherit;
}

.side-caption {
  margin: -15px 0 0;
  color: #7e817a;
  font-family: "DM Mono", monospace;
  font-size: clamp(6px, 0.62vw, 9px);
  letter-spacing: 0.02em;
  text-align: center;
}

.closed-view {
  flex-direction: column;
}

.closed-lid {
  width: 82%;
  aspect-ratio: 1.442;
  border: 0;
  border-radius: 19px 19px 13px 13px;
  background:
    radial-gradient(ellipse at var(--model-light-x) 0%, rgba(255,255,255,0.22), transparent 42%),
    linear-gradient(132deg, rgba(255,255,255,0.1), transparent 35%, rgba(0,0,0,0.055)),
    var(--display-color);
  box-shadow:
    0 30px 48px rgba(35,37,33,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.19),
    inset 0 -8px 14px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 380ms ease, transform 200ms ease;
}

.closed-lid:hover { transform: translateY(-3px); }

.neo-lid-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(38px, 4.5vw, 56px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(3px, 0.38vw, 5px);
  transform: translate(-50%, -50%) rotate(45deg);
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.12));
}

.neo-lid-mark i {
  display: block;
  border-radius: 18%;
  background: color-mix(in srgb, var(--display-color) 79%, black);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.neo-lid-mark i:nth-child(2) { opacity: 0.58; }
.neo-lid-mark i:nth-child(3) { opacity: 0.38; }
.neo-lid-mark i:nth-child(4) { opacity: 0.78; }

.lid-highlight {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255,255,255,0.09), transparent 26% 76%, rgba(0,0,0,0.035));
  pointer-events: none;
}

.bottom-view {
  flex-direction: column;
  gap: 18px;
}

.bottom-case {
  width: 82%;
  aspect-ratio: 1.442;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(ellipse at var(--model-light-x) 0%, rgba(255,255,255,0.2), transparent 42%),
    linear-gradient(132deg, rgba(255,255,255,0.08), transparent 35%, rgba(0,0,0,0.07)),
    var(--bottom-color);
  box-shadow:
    0 30px 48px rgba(35,37,33,0.2),
    inset 0 0 0 1px rgba(255,255,255,0.16),
    inset 0 -8px 14px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 380ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.bottom-case:hover {
  transform: translateY(-3px);
  box-shadow:
    0 34px 52px rgba(35,37,33,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.2),
    inset 0 -8px 14px rgba(0,0,0,0.08);
}

.bottom-case-seam {
  position: absolute;
  inset: 2.2%;
  border: 1px solid color-mix(in srgb, var(--bottom-color) 72%, black);
  border-radius: 13px 13px 10px 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.1), inset 0 1px 2px rgba(0,0,0,0.05);
  pointer-events: none;
}

.bottom-view-foot {
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bottom-color) 58%, #272a28);
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--bottom-color) 70%, black),
    inset 0 2px 2px rgba(255,255,255,0.12),
    0 1px 2px rgba(0,0,0,0.18);
}

.bottom-view-foot::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: inherit;
}

.bottom-view-foot::after {
  content: "";
  position: absolute;
  left: 47%;
  top: 20%;
  width: 2px;
  height: 60%;
  border-radius: 999px;
  background: rgba(18,20,19,0.52);
  transform: rotate(18deg);
}

.foot-tl { left: 2.55%; top: 5.7%; }
.foot-tr { right: 2.55%; top: 5.7%; }
.foot-bl { left: 2.55%; bottom: 5.7%; }
.foot-br { right: 2.55%; bottom: 5.7%; }

.bottom-case-screw {
  position: absolute;
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bottom-color) 44%, #181a18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), 0 0 0 1px rgba(0,0,0,0.16);
}

.bottom-case-screw::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 45%;
  height: 1px;
  background: rgba(0,0,0,0.48);
}

.screw-tl { left: 2.6%; top: 3.2%; }
.screw-t1 { left: 30.5%; top: 3.8%; }
.screw-t2 { left: 49.5%; top: 3.8%; }
.screw-t3 { left: 68.8%; top: 3.8%; }
.screw-tr { right: 2.6%; top: 3.2%; }
.screw-bl { left: 2.6%; bottom: 3.2%; }
.screw-b1 { left: 30.5%; bottom: 3.8%; }
.screw-b2 { left: 49.5%; bottom: 3.8%; }
.screw-b3 { left: 68.8%; bottom: 3.8%; }
.screw-br { right: 2.6%; bottom: 3.2%; }

.bottom-antenna {
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 1.35%;
  height: 2px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(20,22,21,0.58) 0 2px, rgba(255,255,255,0.08) 2px 3px);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.08);
}

.bottom-mics {
  position: absolute;
  left: 50%;
  bottom: 3.4%;
  width: 24px;
  height: 3px;
  transform: translateX(-50%);
}

.bottom-mics i {
  position: absolute;
  top: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(17,19,18,0.66);
}

.bottom-mics i:first-child { left: 1px; }
.bottom-mics i:last-child { right: 1px; }

.bottom-caption {
  margin: 0;
  color: #7e817a;
  font-family: "DM Mono", monospace;
  font-size: clamp(6px, 0.62vw, 9px);
  letter-spacing: 0.02em;
  text-align: center;
}

.preview-footer {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 26px;
  position: relative;
  z-index: 5;
  border-top: 1px solid rgba(35, 37, 33, 0.08);
  background: rgba(240,240,234,0.34);
  backdrop-filter: blur(10px);
}

.configuration-readout {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.readout-swatch {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--body-color);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 0 0 1px rgba(0,0,0,0.1);
}

.configuration-readout strong,
.configuration-readout span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.configuration-readout strong {
  font-size: 10px;
}

.configuration-readout span {
  margin-top: 2px;
  color: #81847d;
  font-size: 8px;
}

.preview-footer > p {
  margin: 0;
  color: #898b85;
  font-size: 8px;
  text-align: center;
}

.zoom-control {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
}

.zoom-control button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(30,31,29,0.11);
  border-radius: 6px;
  background: rgba(255,255,255,0.45);
  color: #696b66;
  cursor: pointer;
}

.zoom-control input {
  width: 68px;
  height: 2px;
  accent-color: #3d403b;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 30px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 10px;
  color: white;
  background: rgba(27, 29, 26, 0.94);
  box-shadow: 0 18px 50px rgba(0,0,0,0.21);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 400ms var(--ease);
}

.toast.show { opacity: 1; transform: translateY(0); }

.toast.has-action {
  pointer-events: auto;
}

.toast > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #20211f;
  background: #c8df9b;
  font-size: 11px;
  font-weight: 800;
}

.toast.error > span {
  color: #6c2924;
  background: #f4c2bc;
}

.toast strong,
.toast small { display: block; }
.toast strong { font-size: 10px; }
.toast small { margin-top: 2px; color: rgba(255,255,255,0.6); font-size: 8px; }

.toast > button {
  min-height: 30px;
  margin-left: 5px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: white;
  background: rgba(255,255,255,0.09);
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

.toast > button:hover {
  background: rgba(255,255,255,0.16);
}

.painting-mode .key { cursor: crosshair; }

.painting-mode .keyboard {
  outline: 1px dashed rgba(255,255,255,0.68);
  outline-offset: 5px;
  border-radius: 4px;
}

.comparing-state .key { --key-fill: var(--original-keyboard) !important; --key-text: var(--original-key-label) !important; }
.comparing-state .base { background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 33%), var(--original-body); }
.comparing-state .trackpad { background: linear-gradient(145deg, rgba(255,255,255,0.12), transparent), var(--original-trackpad); }
.comparing-state .lid-frame,
.comparing-state .closed-lid { background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 36%), var(--original-body); }
.comparing-state .bottom-case { background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 36%), var(--original-bottom); }
.comparing-state .port,
.comparing-state .side-usb,
.comparing-state .side-audio { --port-color: var(--original-body); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes device-enter {
  from { opacity: 0; scale: 0.94; translate: 0 20px; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 308px minmax(0, 1fr); }
  .inspector { padding-inline: 22px; }
  .laptop { width: min(56vw, 580px); }
  .topbar-title { display: none; }
  .topbar { grid-template-columns: 1fr 1fr; }
  .preview-footer > p { display: none; }
  .preview-footer { grid-template-columns: 1fr auto; }
}

@media (max-width: 780px) {
  .app-shell { overflow: visible; }
  .topbar {
    height: 58px;
    padding: 0 15px;
    position: sticky;
    top: 0;
  }
  .brand { font-size: 10px; }
  .brand-mark { width: 28px; height: 28px; }
  .quiet-button { display: none; }
  .primary-button { height: 40px; padding: 0 11px; font-size: 10px; }
  .workspace {
    height: auto;
    min-height: calc(100svh - 58px);
    display: flex;
    flex-direction: column-reverse;
  }
  .preview {
    height: 62svh;
    min-height: 430px;
    grid-template-rows: 64px minmax(0, 1fr) 56px;
  }
  .inspector {
    border-right: 0;
    border-top: 1px solid var(--line);
    padding: 28px 20px 36px;
    overflow: visible;
  }
  .inspector h1 { font-size: 30px; }
  .intro { margin-bottom: 18px; font-size: 13px; }
  .mobile-config-actions {
    display: flex;
    gap: 7px;
    margin-bottom: 24px;
  }
  .mobile-config-actions button {
    min-height: 42px;
    flex: 1;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.58);
    color: #555852;
    font-size: 10px;
    font-weight: 650;
    cursor: pointer;
  }
  .mobile-config-actions button:hover { background: white; }
  .part-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .part-option { grid-template-columns: 24px 1fr auto; }
  .paint-palette { max-width: 330px; }
  .stage-wrap { padding: 0 10px; }
  .laptop { width: min(82vw, 480px); }
  .preview-topline { justify-content: flex-start; padding: 11px 12px; }
  .view-switcher button { height: 40px; padding: 0 8px; font-size: 8px; }
  .compare-button { right: 12px; height: 40px; padding: 0 9px; font-size: 0; }
  .compare-button .compare-symbol { margin: 0; }
  .preview-footer { padding: 0 14px; }
  .zoom-control input { width: 46px; }
  .selection-note { max-width: 440px; }
  .toast { left: 15px; right: 15px; bottom: 15px; }
  .toast > div { min-width: 0; }
}

@media (max-width: 430px) {
  .preview { height: 55svh; min-height: 380px; }
  .laptop { width: 82vw; }
  .view-switcher .view-icon { display: none; }
  .view-switcher button { padding-inline: 6px; font-size: 8px; }
  .zoom-control { display: none; }
  .preview-footer { grid-template-columns: 1fr; }
  .part-list { grid-template-columns: 1fr; }
  .finish-sample { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 18mm;
  }

  body.printing-receipt {
    min-height: auto;
    background: white;
  }

  body.printing-receipt .app-shell {
    display: none !important;
  }

  body.printing-receipt .print-receipt {
    display: block;
    color: #20211f;
    font-family: Arial, sans-serif;
  }

  .print-receipt-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 2px solid #20211f;
  }

  .print-eyebrow {
    margin: 0 0 5px;
    color: #70736d;
    font: 700 9px/1.2 monospace;
    letter-spacing: 0.16em;
  }

  .print-receipt h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
  }

  .print-receipt-header > span {
    color: #70736d;
    font: 12px/1.2 monospace;
  }

  .print-receipt-meta {
    margin: 18px 0 22px;
    color: #666a63;
    font-size: 12px;
  }

  .print-receipt-items {
    display: grid;
    gap: 13px;
  }

  .print-receipt-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding-bottom: 11px;
    border-bottom: 1px solid #d9dbd5;
  }

  .print-receipt-item strong,
  .print-receipt-item small {
    display: block;
  }

  .print-receipt-item strong {
    font-size: 13px;
  }

  .print-receipt-item small {
    margin-top: 4px;
    color: #70736d;
    font-size: 10px;
  }

  .print-receipt-item > span,
  .print-receipt-total strong {
    font-family: monospace;
    white-space: nowrap;
  }

  .print-receipt-item > span {
    font-size: 12px;
  }

  .print-receipt-empty,
  .print-receipt-note {
    color: #70736d;
    font-size: 11px;
  }

  .print-receipt-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 28px;
    padding-top: 15px;
    border-top: 2px solid #20211f;
  }

  .print-receipt-total span {
    font-size: 14px;
    font-weight: 700;
  }

  .print-receipt-total strong {
    font-size: 20px;
    font-weight: 500;
  }

  .print-receipt-note {
    margin-top: 14px;
  }
}
