:root {
  --bg: #f4ede7;
  --bg-deep: #e9d5c7;
  --panel: rgba(255, 250, 246, 0.78);
  --panel-strong: rgba(255, 248, 241, 0.9);
  --line: rgba(125, 88, 74, 0.18);
  --text: #37261f;
  --muted: #7f6257;
  --accent: #d85f77;
  --accent-strong: #a23553;
  --pearl: #fff3ec;
  --gold: #b98b40;
  --shadow: 0 22px 70px rgba(84, 42, 34, 0.14);
  --font-display: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-body: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --skin: #efc9b5;
  --nail-base: linear-gradient(180deg, #f8d8dd 0%, #ef9cb0 100%);
  --nail-overlay: none;
  --accent-nail-base: linear-gradient(180deg, #fff1f4 0%, #f2cad6 100%);
  --accent-overlay: none;
  --sample-shadow: 0 18px 34px rgba(90, 48, 43, 0.16);
  --tip-color: transparent;
  --tip-opacity: 0;
  --scene-a: #f7d0db;
  --scene-b: #f4e6bf;
  --scene-c: #e6d7ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 360px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.72), transparent 38%),
    linear-gradient(180deg, #f8f1eb 0%, #f0e3d7 48%, #e8d6cb 100%);
  color: var(--text);
  font-family: var(--font-body);
}

button,
textarea {
  font: inherit;
}

button {
  border: 1px solid transparent;
  cursor: pointer;
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -8rem;
  left: -10rem;
  background: rgba(248, 190, 216, 0.7);
}

.page-glow-right {
  right: -10rem;
  bottom: -12rem;
  background: rgba(238, 212, 164, 0.65);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1580px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 32px;
}

.hero-card,
.control-panel,
.preview-stage,
.summary-panel,
.stat-card,
.mini-card,
.summary-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(140deg, rgba(255, 251, 248, 0.88), rgba(252, 240, 233, 0.64)),
    rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.hero-copy h1,
.panel-header h2,
.preview-top h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: 0.98;
  max-width: 10ch;
}

.hero-text {
  max-width: 56rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions button,
.ghost,
.primary {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.primary {
  color: #fff9f4;
  background: linear-gradient(135deg, #d45d74, #b4465d 65%, #83334a);
  box-shadow: 0 18px 30px rgba(180, 70, 93, 0.28);
}

.ghost,
.hero-actions button:not(.primary) {
  color: var(--text);
  background: rgba(255, 253, 251, 0.72);
  border-color: rgba(112, 78, 65, 0.14);
}

.hero-actions button:hover,
.ghost:hover,
.chip:hover,
.swatch:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.stat-card,
.mini-card,
.summary-card,
.control-panel,
.preview-stage,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(255, 252, 250, 0.85), rgba(251, 237, 226, 0.7)),
    var(--panel-strong);
}

.stat-card span,
.mini-card span,
.choice-label {
  display: inline-flex;
  color: var(--muted);
  font-size: 0.82rem;
}

.stat-card strong,
.mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  font-weight: 800;
}

.stat-card small,
.mini-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.workspace {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.control-panel,
.preview-stage,
.summary-panel {
  padding: 22px;
}

.panel-header,
.group-head,
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-tag,
.preview-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 241, 0.86);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.preview-badge.muted {
  color: var(--muted);
}

.control-panel {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.control-group {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(123, 91, 77, 0.12);
}

.control-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.control-group h3,
.summary-card h3 {
  margin: 0;
  font-size: 1rem;
}

.chip-grid,
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chip-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.decor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chip,
.swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(122, 90, 75, 0.14);
  border-radius: 18px;
  background: rgba(255, 251, 248, 0.68);
  color: var(--text);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.chip.active,
.swatch.active {
  border-color: rgba(186, 90, 115, 0.56);
  background: rgba(255, 237, 241, 0.98);
  box-shadow: 0 10px 24px rgba(211, 94, 121, 0.15);
}

.chip.multi-active {
  border-color: rgba(181, 134, 62, 0.58);
  background: rgba(255, 247, 225, 0.92);
}

.chip-label {
  display: grid;
  gap: 4px;
}

.chip-label strong {
  font-size: 0.92rem;
}

.chip-label small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.swatch-color {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(71, 48, 40, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
  flex: 0 0 auto;
}

.preview-stage {
  min-height: 980px;
}

.preview-top {
  margin-bottom: 18px;
}

.scene {
  position: relative;
  overflow: hidden;
  min-height: 860px;
  padding: 26px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 28%),
    linear-gradient(155deg, rgba(255, 249, 246, 0.88), rgba(244, 228, 217, 0.94));
  isolation: isolate;
}

.scene-orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.78;
  filter: blur(6px);
}

.orb-a {
  top: 2rem;
  right: 4rem;
  width: 11rem;
  height: 11rem;
  background: radial-gradient(circle, var(--scene-a), transparent 72%);
}

.orb-b {
  bottom: 16rem;
  left: -2rem;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, var(--scene-b), transparent 72%);
}

.orb-c {
  bottom: 2rem;
  right: -3rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, var(--scene-c), transparent 72%);
}

.design-display {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.74fr);
  gap: 18px;
  min-height: 620px;
}

.display-panel,
.detail-card {
  position: relative;
  border: 1px solid rgba(123, 91, 77, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.86), rgba(252, 238, 230, 0.78)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.display-panel-main {
  display: grid;
  align-content: space-between;
  min-height: 620px;
  padding: 24px;
}

.display-panel-main::before {
  content: "";
  position: absolute;
  inset: auto -4rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.66), transparent 70%);
  pointer-events: none;
}

.display-copy {
  position: relative;
  z-index: 1;
  max-width: 26rem;
}

.display-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 246, 238, 0.88);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display-copy h3,
.detail-head strong {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
}

.display-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.nail-set {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 380px;
  margin-top: 28px;
  padding: 42px 18px 24px;
}

.nail-piece {
  position: relative;
  z-index: 1;
  flex: 0 0 88px;
  height: 228px;
  transform: translateY(0);
  transition: transform 220ms ease;
}

.nail-piece:hover {
  transform: translateY(-6px);
}

.display-tray {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 8px;
  width: calc(100% - 28px);
  height: 168px;
  transform: translateX(-50%);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(239, 222, 209, 0.98)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(130, 94, 74, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -18px 28px rgba(180, 135, 106, 0.18),
    0 24px 50px rgba(105, 64, 47, 0.14);
}

.display-tray::before {
  content: "";
  position: absolute;
  inset: 16px 18px 26px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(246, 234, 225, 0.2)),
    repeating-linear-gradient(
      90deg,
      rgba(190, 154, 129, 0.06) 0 54px,
      rgba(255, 255, 255, 0.08) 54px 108px
    );
}

.nail-piece::before {
  content: attr(data-slot);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(98, 71, 62, 0.58);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nail-swatch,
.sample-nail {
  position: absolute;
  inset: 0;
  border-radius: 44px 44px 34px 34px;
  background: var(--nail-base);
  box-shadow:
    inset 0 -14px 18px rgba(113, 55, 65, 0.16),
    inset 0 10px 14px rgba(255, 255, 255, 0.42),
    var(--sample-shadow);
  overflow: hidden;
}

.nail-swatch::before,
.sample-nail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nail-overlay);
  mix-blend-mode: screen;
  opacity: 0.96;
}

.nail-swatch::after,
.sample-nail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: var(--tip-color);
  opacity: var(--tip-opacity);
  clip-path: ellipse(78% 88% at 50% 100%);
}

.nail-piece .nail-swatch {
  position: relative;
  width: 100%;
  height: 100%;
}

.nail-piece.is-accent .nail-swatch,
.sample-nail.is-accent {
  background: var(--accent-nail-base);
}

.nail-piece.is-accent .nail-swatch::before,
.sample-nail.is-accent::before {
  background: var(--accent-overlay);
}

.shape-almond .nail-swatch,
.shape-almond.sample-nail {
  border-radius: 44px 44px 30px 30px;
}

.shape-square .nail-swatch,
.shape-square.sample-nail {
  border-radius: 18px 18px 14px 14px;
}

.shape-oval .nail-swatch,
.shape-oval.sample-nail {
  border-radius: 38px 38px 30px 30px;
}

.shape-stiletto .nail-swatch,
.shape-stiletto.sample-nail {
  clip-path: polygon(18% 0%, 82% 0%, 100% 80%, 50% 100%, 0% 80%);
  border-radius: 38px 38px 10px 10px;
}

.shape-coffin .nail-swatch,
.shape-coffin.sample-nail {
  clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
  border-radius: 22px 22px 10px 10px;
}

.length-short .nail-piece .nail-swatch {
  height: 148px;
}

.length-medium .nail-piece .nail-swatch {
  height: 188px;
}

.length-long .nail-piece .nail-swatch {
  height: 228px;
}

.nail-piece-a {
  height: 180px;
  transform: rotate(-18deg) translateY(16px);
}

.nail-piece-b {
  height: 214px;
  transform: rotate(-7deg) translateY(-8px);
}

.nail-piece-c {
  height: 242px;
  transform: translateY(-22px);
}

.nail-piece-d {
  height: 222px;
  transform: rotate(7deg) translateY(-2px);
}

.nail-piece-e {
  height: 192px;
  transform: rotate(16deg) translateY(20px);
}

.length-short .nail-piece {
  flex-basis: 78px;
}

.length-medium .nail-piece {
  flex-basis: 88px;
}

.length-long .nail-piece {
  flex-basis: 98px;
}

.display-column {
  display: grid;
  gap: 16px;
}

.detail-card {
  padding: 20px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-head strong {
  margin: 4px 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.detail-samples {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 14px;
  margin-top: 18px;
}

.sample-shell {
  position: relative;
  min-height: 244px;
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 243, 0.9), rgba(247, 232, 223, 0.84)),
    rgba(255, 255, 255, 0.55);
}

.sample-shell.secondary {
  min-height: 206px;
}

.sample-nail {
  position: relative;
  width: min(100%, 150px);
  height: 100%;
  margin: 0 auto;
}

.sample-nail.secondary {
  width: min(100%, 120px);
}

.display-plinth {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.plinth-chip,
.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 248, 242, 0.88);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.material-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.material-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 251, 247, 0.84);
  border: 1px solid rgba(123, 91, 77, 0.08);
}

.material-pill strong {
  display: block;
  font-size: 0.9rem;
}

.material-pill small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.material-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(71, 48, 40, 0.12);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.54);
}

.material-dot.skin {
  background: var(--skin);
}

.material-dot.base {
  background: linear-gradient(180deg, var(--bg-deep), rgba(255, 255, 255, 0.4));
}

.material-dot.accent {
  background: var(--accent);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.decor-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.decor-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 242, 228, 0.92);
  color: #815632;
  font-size: 0.78rem;
  font-weight: 700;
}

.decor-layer {
  position: absolute;
  inset: 0;
}

.decor-layer::before,
.decor-layer::after {
  content: "";
  position: absolute;
  opacity: 0;
}

.has-rhinestone .decor-layer::before {
  top: 18%;
  left: 56%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e6efff 48%, #85addf 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.44),
    0 0 16px rgba(165, 198, 245, 0.68);
  opacity: 1;
}

.has-pearls .decor-layer::after {
  bottom: 18%;
  left: 32%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fffdf7, #f0e0d8 62%, #d5beb6);
  box-shadow:
    11px -2px 0 0 rgba(247, 236, 227, 0.95),
    22px 4px 0 0 rgba(233, 215, 208, 0.88);
  opacity: 1;
}

.has-foil .decor-layer {
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 220, 110, 0.9) 0 10%, transparent 12%),
    radial-gradient(circle at 64% 44%, rgba(255, 236, 178, 0.85) 0 10%, transparent 12%),
    radial-gradient(circle at 48% 70%, rgba(208, 162, 59, 0.92) 0 11%, transparent 13%);
}

.has-metal .decor-layer {
  background:
    linear-gradient(120deg, transparent 20%, rgba(206, 170, 91, 0.95) 20% 24%, transparent 24% 55%, rgba(255, 234, 186, 0.96) 55% 60%, transparent 60%),
    linear-gradient(40deg, transparent 60%, rgba(166, 137, 75, 0.84) 60% 66%, transparent 66%);
}

.has-flower .decor-layer::before {
  top: 34%;
  left: 44%;
  width: 20px;
  height: 20px;
  background:
    radial-gradient(circle, rgba(255, 244, 190, 0.94) 0 18%, transparent 20%),
    radial-gradient(circle at 50% 0, rgba(255, 204, 217, 0.85) 0 32%, transparent 34%),
    radial-gradient(circle at 0 50%, rgba(255, 218, 182, 0.78) 0 32%, transparent 34%),
    radial-gradient(circle at 100% 50%, rgba(244, 176, 201, 0.82) 0 32%, transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(255, 235, 198, 0.8) 0 32%, transparent 34%);
  opacity: 1;
}

.has-charms .decor-layer::after {
  top: 16%;
  left: 42%;
  width: 20px;
  height: 20px;
  background:
    linear-gradient(45deg, transparent 42%, rgba(193, 146, 61, 0.96) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, rgba(255, 226, 164, 0.96) 42% 58%, transparent 58%);
  transform: rotate(45deg);
  opacity: 1;
}

.has-lines .decor-layer {
  background:
    linear-gradient(110deg, transparent 12%, rgba(255, 255, 255, 0.56) 12% 15%, transparent 15% 42%, rgba(255, 255, 255, 0.4) 42% 45%, transparent 45%),
    linear-gradient(15deg, transparent 54%, rgba(120, 79, 82, 0.3) 54% 57%, transparent 57%);
}

.has-shell .decor-layer {
  background:
    radial-gradient(circle at 26% 32%, rgba(170, 222, 226, 0.52) 0 12%, transparent 15%),
    radial-gradient(circle at 58% 50%, rgba(248, 199, 212, 0.54) 0 14%, transparent 16%),
    radial-gradient(circle at 48% 72%, rgba(253, 239, 185, 0.56) 0 12%, transparent 14%);
}

.preview-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.mini-card {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 250, 0.85), rgba(252, 238, 230, 0.82)),
    rgba(255, 255, 255, 0.64);
}

.summary-panel {
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.summary-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 249, 0.84), rgba(249, 238, 232, 0.76)),
    rgba(255, 255, 255, 0.6);
}

.summary-list,
.advice-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.summary-list li,
.advice-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 247, 0.84);
  border: 1px solid rgba(123, 91, 77, 0.1);
  color: var(--text);
  line-height: 1.55;
}

.advice-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

textarea {
  width: 100%;
  min-height: 220px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(123, 91, 77, 0.12);
  border-radius: 18px;
  resize: vertical;
  background: rgba(255, 251, 248, 0.84);
  color: var(--text);
  line-height: 1.7;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff8f2;
  background: rgba(73, 45, 40, 0.88);
  box-shadow: 0 18px 28px rgba(63, 38, 34, 0.22);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

@media (max-width: 1280px) {
  .workspace {
    grid-template-columns: minmax(320px, 1fr);
  }

  .control-panel,
  .summary-panel {
    max-height: none;
  }

  .preview-stage {
    min-height: auto;
  }

  .design-display {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1480px) {
  .workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .summary-panel {
    grid-column: 1 / -1;
    max-height: none;
  }

  .preview-stage {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .app-shell {
    width: min(100vw - 18px, 100%);
    padding-top: 18px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px;
    border-radius: 26px;
  }

  .control-panel,
  .preview-stage,
  .summary-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .scene {
    min-height: 760px;
    padding: 20px;
  }

  .display-panel-main {
    min-height: 520px;
  }

  .nail-set {
    gap: 12px;
    min-height: 330px;
    padding-inline: 8px;
  }

  .display-tray {
    width: calc(100% - 8px);
  }

  .preview-board {
    grid-template-columns: 1fr;
  }

  .chip-grid,
  .swatch-grid,
  .decor-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-actions,
  .preview-top,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .chip-grid.compact,
  .chip-grid,
  .swatch-grid,
  .decor-grid {
    grid-template-columns: 1fr;
  }

  .scene {
    min-height: 640px;
  }

  .nail-set {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 10px;
  }

  .detail-samples {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .mini-card,
  .stat-card {
    border-radius: 20px;
  }
}
