/* ==========================================================================
   豆格子 BeadGrid — 拼豆图纸生成器
   ========================================================================== */

:root {
  --paper: #f5efe3;
  --paper-deep: #ede3d1;
  --card: #fffdf8;
  --card-soft: #fbf6ea;
  --ink: #1e272e;
  --ink-soft: #34414a;
  --muted: #6f6b60;
  --muted-light: #958f80;
  --line: #ded4c2;
  --line-soft: #e9e0d0;
  --coral: #ef6a52;
  --coral-deep: #d8543e;
  --coral-soft: #fde8e2;
  --teal: #2d7d72;
  --teal-soft: #e2f1ec;
  --yellow: #f2c94c;
  --yellow-soft: #fff4cf;
  --shadow-sm: 0 4px 14px rgba(75, 55, 30, 0.06);
  --shadow: 0 22px 60px rgba(75, 55, 30, 0.1);
  --shadow-lg: 0 36px 90px rgba(75, 55, 30, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(239, 106, 82, 0.08), transparent 32rem),
    radial-gradient(circle at 94% 12%, rgba(45, 125, 114, 0.07), transparent 34rem),
    var(--paper);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

h1, h2, h3, h4, p, ul {
  margin-top: 0;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

svg.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(1640px, calc(100% - 48px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 72px;
  border-bottom: 1px solid rgba(222, 212, 194, 0.72);
  background: rgba(245, 239, 227, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  padding: 7px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 8px 16px rgba(30, 39, 46, 0.18);
  transform: rotate(-3deg);
}

.brand-mark span {
  border-radius: 50%;
  background: var(--coral);
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, 0.14);
}

.brand-mark span:nth-child(2) {
  background: var(--yellow);
}

.brand-mark span:nth-child(3) {
  background: #8fd6c4;
}

.brand-mark span:nth-child(4) {
  background: #fff8e8;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-word b {
  font-size: 20px;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.brand-word small {
  margin-top: 5px;
  font-family: var(--mono);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 8px;
}

.topnav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transition: width 0.2s ease;
}

.topnav a:hover::after,
.topnav a.is-active::after {
  width: 100%;
}

.topnav a.is-active {
  color: var(--ink);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.license-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}

.license-pill:hover {
  background: var(--card);
  border-color: #cbbfa9;
}

.license-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-light);
  box-shadow: 0 0 0 3px rgba(149, 143, 128, 0.14);
}

.license-pill.is-paid {
  border-color: rgba(45, 125, 114, 0.32);
  background: var(--teal-soft);
  color: var(--teal);
}

.license-pill.is-paid .status-dot {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 114, 0.14);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.license-pill:focus-visible,
.segmented button:focus-visible,
.preset-row button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 22px rgba(239, 106, 82, 0.26);
}

.btn-primary:hover {
  background: var(--coral-deep);
  box-shadow: 0 14px 26px rgba(239, 106, 82, 0.3);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 39, 46, 0.18);
}

.btn-dark:hover {
  background: #10171c;
}

.btn-soft {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink-soft);
  box-shadow: 0 2px 0 rgba(75, 55, 30, 0.02);
}

.btn-soft:hover {
  border-color: #cbbfa9;
  background: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
  height: 48px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.btn .lock-icon {
  width: 14px;
  height: 14px;
}

.btn.is-unlocked .lock-icon {
  display: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.icon-btn:hover {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.icon-btn.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--coral);
}

.link-muted {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 0;
}

.link-muted:hover {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 39, 46, 0.055) 1px, transparent 1px);
  background-size: 19px 19px;
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 72%, transparent);
  pointer-events: none;
  opacity: 0.55;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: 38px;
}

.hero-side {
  position: relative;
  padding: 18px 18px 15px;
  border: 1px solid #e7dcc8;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.94), rgba(250, 243, 229, 0.82));
  box-shadow: 0 18px 42px rgba(82, 67, 42, 0.1);
}

.hero-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--coral), var(--yellow));
}

.hero-side .hero-lead {
  max-width: none;
  margin: 0 0 13px;
}

.hero-side .hero-actions {
  margin-top: 0;
}

.hero-side .hero-notes {
  margin-top: 12px;
}

.hero-side-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  color: var(--ink-soft);
  font-size: 9px;
}

.hero-side-top b {
  font-weight: 700;
}

.hero-side-top > span:last-child {
  margin-left: auto;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.hero-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.hero-side-grid > div {
  padding: 12px 13px;
  background: rgba(255, 253, 248, 0.9);
}

.hero-side-grid b {
  display: block;
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-side-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 8px;
}

.hero-side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 8px;
}

.hero-side-foot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
}

.hero-side-foot a .icon {
  width: 11px;
  height: 11px;
}

.hero-art {
  display: none;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
}

.hero h1 {
  margin: 7px 0 8px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 850;
  white-space: nowrap;
}

.hero h1 .mark {
  position: relative;
  display: inline-block;
  color: var(--coral-deep);
  z-index: 0;
  white-space: nowrap;
}

.hero h1 .mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.02em;
  bottom: -0.015em;
  height: 0.14em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-0.7deg);
  opacity: 0.88;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  height: 36px;
  padding: 0 13px;
  font-size: 10.5px;
  border-radius: 9px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 11px;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-notes svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.hero-art {
  display: none;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.32), rgba(242, 201, 76, 0) 68%);
  z-index: -1;
}

.hero-card {
  position: relative;
  width: min(300px, 100%);
  padding: 10px 10px 7px;
  border: 1px solid #e7dcc8;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.4deg);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 104px;
  height: 27px;
  border-radius: 3px;
  background: rgba(242, 201, 76, 0.72);
  transform: translateX(-50%) rotate(2deg);
  box-shadow: 0 2px 5px rgba(75, 55, 30, 0.08);
}

.hero-board {
  padding: 8px;
  border: 1px solid #e4d8c3;
  border-radius: 18px;
  background: #f0e6d4;
  background-image:
    radial-gradient(rgba(90, 70, 42, 0.16) 1px, transparent 1px);
  background-size: 12px 12px;
}

.hero-board canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(75, 55, 30, 0.12);
}

.hero-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 4px 0;
  color: var(--muted);
  font-size: 10px;
}

.hero-card-foot b {
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.hero-card-foot span:last-child {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  animation: floaty 5s ease-in-out infinite;
}

.float-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.chip-a {
  top: 25px;
  right: 2px;
}

.chip-b {
  bottom: 42px;
  left: -6px;
  animation-delay: -2.2s;
}

.chip-b i {
  background: var(--coral);
}

.float-bead {
  position: absolute;
  z-index: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ff9b85, var(--coral) 66%, #c94a36);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.18), 0 10px 20px rgba(201, 74, 54, 0.18);
}

.float-bead::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: #f5efe3;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.22);
}

.float-bead.one {
  top: 8%;
  left: 4%;
  transform: rotate(15deg) scale(0.74);
}

.float-bead.two {
  bottom: 4%;
  right: 6%;
  width: 56px;
  height: 56px;
  background: radial-gradient(circle at 34% 28%, #9be3d2, #46aa99 66%, #2d7d72);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.18), 0 10px 20px rgba(45, 125, 114, 0.18);
}

.float-bead.three {
  top: 4%;
  right: 13%;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 34% 28%, #ffe58e, var(--yellow) 66%, #d3a524);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.16);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section {
  padding: 86px 0;
  scroll-margin-top: 86px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 820;
}

.section-head p {
  max-width: 380px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.section-head.center {
  display: block;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head.center p {
  max-width: 520px;
  margin: 14px auto 0;
}

/* --------------------------------------------------------------------------
   Studio shell
   -------------------------------------------------------------------------- */

.studio {
  padding-top: 4px;
}

.studio-shell {
  border: 1px solid #dfd4c0;
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.studio-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px 13px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 246, 238, 0.72));
}

.studio-intro h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.studio-intro p {
  max-width: 340px;
  margin: 0 0 1px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.studio-topbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--card-soft);
}

.steps {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-light);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.step b {
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8cebc;
  border-radius: 50%;
  background: #fffdf8;
  font-family: var(--mono);
  font-size: 9px;
}

.step.is-active {
  color: var(--ink);
}

.step.is-active b {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.step-line {
  width: 20px;
  height: 1px;
  background: #d8cebc;
}

.studio-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.studio-status .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 114, 0.13);
}

.studio-grid {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) 270px;
  align-items: stretch;
}

.controls-panel {
  padding: 20px;
  border-right: 1px solid var(--line-soft);
  background: var(--card-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workspace {
  min-width: 0;
  padding: 18px;
  background: #fffdf8;
}

.legend-panel {
  padding: 20px;
  border-left: 1px solid var(--line-soft);
  background: var(--card-soft);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.panel-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel-kicker em {
  font-style: normal;
  color: var(--coral-deep);
}

.panel-section + .panel-section {
  padding-top: 19px;
  border-top: 1px dashed var(--line);
}

/* Upload */

.upload-zone {
  width: 100%;
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px dashed #cfc1a8;
  border-radius: 16px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--coral);
  background: #fffaf6;
  box-shadow: 0 8px 20px rgba(239, 106, 82, 0.09);
}

.upload-zone.is-dragover {
  transform: scale(1.012);
}

.upload-zone.is-loaded {
  border-color: #d5c6ae;
  border-style: dashed;
}

.upload-zone.is-loaded:hover {
  border-color: var(--coral);
}

.upload-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.upload-icon svg {
  width: 23px;
  height: 23px;
}

.upload-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upload-text strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-text small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.upload-thumb {
  width: auto;
  height: 58px;
  max-width: 88px;
  max-height: 72px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--paper);
}

.upload-cta {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 68px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 5px 12px rgba(239, 106, 82, 0.24);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s, box-shadow 0.18s;
}

.upload-zone:hover .upload-cta {
  background: var(--coral-deep);
  box-shadow: 0 7px 15px rgba(239, 106, 82, 0.28);
}

.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 9.5px;
}

/* Controls */

.control {
  margin-top: 12px;
}

.control:first-child {
  margin-top: 0;
}

.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.control-head label,
.control-head > span:first-child {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.control-head output {
  min-width: 50px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.dimension-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.dimension-summary output {
  min-width: 30px;
  padding: 2px 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.dimension-input {
  width: 48px;
  height: 25px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.dimension-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(45, 125, 114, 0.1);
}

.dimension-input::-webkit-outer-spin-button,
.dimension-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dimension-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1px 2px;
  color: var(--muted-light);
  font-size: 8px;
}

.aspect-lock {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  padding: 0;
  border: 1px solid var(--teal);
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
}

.aspect-lock svg {
  width: 12px;
  height: 12px;
}

.aspect-lock.is-off {
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted-light);
}

.control-head .hint {
  margin: 0;
  font-size: 9px;
}

input[type="range"].range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  margin: 9px 0 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral) 0 var(--fill, 30%), #e5dccb var(--fill, 30%) 100%);
  outline: none;
  cursor: pointer;
}

input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 2px 7px rgba(216, 84, 62, 0.35);
  cursor: grab;
}

input[type="range"].range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 2px 7px rgba(216, 84, 62, 0.35);
  cursor: grab;
}

input[type="range"].range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.08);
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 7px;
}

.preset-row button {
  height: 27px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.preset-row button:hover {
  border-color: #c7bba5;
  color: var(--ink);
}

.preset-row button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.hint {
  display: block;
  margin: 6px 0 0;
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.55;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #eee4d2;
}

.segmented button {
  height: 29px;
  padding: 0 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.segmented button:hover {
  color: var(--ink);
}

.segmented button.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(75, 55, 30, 0.1);
}

.select {
  width: 100%;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 15px,
    calc(100% - 9px) 15px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 114, 0.1);
}

.palette-badge {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

.palette-strip {
  min-height: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 7px 0 2px;
}

.palette-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(30, 39, 46, 0.12);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.1);
}

.palette-dot-more {
  height: 15px;
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.palette-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9px;
}

.palette-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

.toggle-list {
  margin-top: 2px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.toggle-row:last-of-type {
  border-bottom: 0;
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.toggle-copy strong {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
}

.toggle-copy small {
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.45;
}

.switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 38px;
  height: 22px;
}

.switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch .track {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #d7cdbc;
  transition: background 0.2s;
  pointer-events: none;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 39, 46, 0.24);
  transition: transform 0.2s;
}

.switch input:checked + .track {
  background: var(--teal);
}

.switch input:checked + .track::after {
  transform: translateX(16px);
}

.switch input:focus-visible + .track {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.sub-control {
  margin: 4px 0 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--paper);
}

.sub-control .control-head {
  margin-bottom: 4px;
}

.panel-tip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid #ecdba9;
  border-radius: 12px;
  background: #fff8e2;
}

.panel-tip svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  color: #9b7710;
}

.panel-tip strong {
  display: block;
  margin-bottom: 2px;
  color: #6e570f;
  font-size: 10px;
  font-weight: 700;
}

.panel-tip p {
  margin: 0;
  color: #8a731f;
  font-size: 9px;
  line-height: 1.55;
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--muted-light);
}

.project-btn {
  height: 23px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
}

.project-btn:hover {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.project-actions #autosaveState {
  margin-left: auto;
  font-size: 7px;
}

.panel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted-light);
  font-size: 9px;
}

/* --------------------------------------------------------------------------
   Workspace metrics and canvas
   -------------------------------------------------------------------------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.metric {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--card-soft);
}

.metric span {
  display: block;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.metric strong {
  display: inline-block;
  margin-top: 1px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.metric small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 8px;
}

.canvas-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.canvas-body {
  position: relative;
}

.edit-bar {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px;
  border-bottom: 1px solid #ecd793;
  background: #fff8e2;
}

.edit-label {
  color: #76590b;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.edit-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 8px 0 5px;
  border: 1px solid #e4cf8b;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.edit-color-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(30, 39, 46, 0.15);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.12);
}

.edit-hint {
  color: #9a8137;
  font-size: 8px;
}

.edit-tools {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.edit-tool {
  height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #8d701f;
  font-size: 9px;
  font-weight: 650;
}

.edit-tool svg {
  width: 12px;
  height: 12px;
}

.edit-tool:hover {
  background: rgba(255, 255, 255, 0.7);
}

.edit-tool.is-active {
  border-color: #e4cf8b;
  background: #fff;
  color: var(--ink);
}

.edit-tool:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.edit-divider {
  width: 1px;
  height: 15px;
  margin: 0 3px;
  background: #e4cf8b;
}

#previewCanvas.is-editing {
  cursor: pointer;
  touch-action: none;
}

.legend-row.is-selected {
  margin: 0 -6px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--yellow-soft);
  outline: 1px solid rgba(242, 201, 76, 0.55);
}

.legend-row.is-selectable {
  cursor: pointer;
}

.canvas-head {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #fffdf8;
}

.canvas-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.canvas-title .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 114, 0.12);
}

.canvas-access {
  overflow: hidden;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.canvas-access.is-paid {
  background: var(--teal-soft);
  color: var(--teal);
}

.canvas-upload-link {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid var(--coral);
  border-radius: 7px;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 4px 9px rgba(239, 106, 82, 0.2);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s;
}

.canvas-upload-link:hover {
  border-color: var(--coral-deep);
  background: var(--coral-deep);
}

.canvas-upload-link svg {
  width: 13px;
  height: 13px;
}

.canvas-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tool-btn {
  height: 28px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.tool-btn svg {
  width: 14px;
  height: 14px;
}

.tool-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.tool-btn.is-active {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink);
}

.tool-divider {
  width: 1px;
  height: 17px;
  margin: 0 4px;
  background: var(--line);
}

.zoom-label {
  min-width: 34px;
  padding: 0 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}

.canvas-viewport {
  position: relative;
  height: clamp(620px, 90vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  background-color: #f0e9dc;
  background-image: radial-gradient(rgba(90, 70, 42, 0.14) 1px, transparent 1px);
  background-size: 15px 15px;
  scrollbar-width: thin;
  scrollbar-color: #c9bda8 transparent;
}

.canvas-viewport::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.canvas-viewport::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: #c9bda8;
  background-clip: padding-box;
}

.canvas-stage {
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  align-items: safe center;
  justify-content: center;
  padding: 18px;
}

#previewCanvas {
  display: block;
  border-radius: 4px;
  background: #fffdf8;
  box-shadow: 0 18px 45px rgba(70, 50, 25, 0.16), 0 2px 5px rgba(70, 50, 25, 0.08);
  cursor: crosshair;
  touch-action: pan-x pan-y;
}

.canvas-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(245, 239, 227, 0.72);
  backdrop-filter: blur(3px);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(30, 39, 46, 0.15);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.canvas-foot {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 13px;
  border-top: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--muted);
  font-size: 9px;
}

.hover-info {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hover-info b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 9px;
}

.grid-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--muted-light);
}

.grid-legend i {
  width: 14px;
  height: 8px;
  border: 1px dashed var(--coral);
  border-radius: 2px;
  background: rgba(239, 106, 82, 0.06);
}

/* --------------------------------------------------------------------------
   Export bar
   -------------------------------------------------------------------------- */

.export-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
}

.export-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.export-copy strong {
  font-size: 11.5px;
  font-weight: 650;
}

.export-copy span {
  color: #b8b1a3;
  font-size: 9px;
}

.export-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.export-actions .btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 10px;
}

.export-actions .btn-primary {
  box-shadow: none;
}

.export-actions .btn-soft {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.export-actions .btn-soft:hover {
  background: rgba(255, 255, 255, 0.14);
}

.export-actions .btn-icon {
  width: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
}

.export-actions .btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   Legend
   -------------------------------------------------------------------------- */

.legend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.legend-head h3 {
  margin: 1px 0 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.legend-summary {
  margin: 10px 0 9px;
  color: var(--muted);
  font-size: 9.5px;
}

.legend-summary strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}

.legend-list {
  flex: 1;
  min-height: 200px;
  max-height: 660px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #c9bda8 transparent;
}

.legend-list::-webkit-scrollbar {
  width: 5px;
}

.legend-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c9bda8;
}

.legend-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  border-bottom: 1px dashed var(--line);
}

.legend-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(30, 39, 46, 0.13);
  box-shadow: inset 0 -1px 3px rgba(0, 0, 0, 0.11);
  position: relative;
}

.legend-swatch::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: var(--card-soft);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.14);
}

.legend-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legend-name b {
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-name code {
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.3;
}

.legend-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

.legend-count span {
  color: var(--muted-light);
  font-family: var(--font);
  font-size: 7px;
}

.legend-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 220px;
  color: var(--muted-light);
  font-size: 10px;
  text-align: center;
}

.legend-empty .mini-board {
  width: 56px;
  height: 56px;
  border: 1px dashed #c9bda8;
  border-radius: 12px;
  background-image: radial-gradient(#d4c8b3 1.2px, transparent 1.2px);
  background-size: 9px 9px;
}

.legend-foot {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.6;
}

.legend-foot b {
  color: var(--muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #f8f3e8;
}

.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  opacity: 0.5;
}

.pricing .container {
  position: relative;
  z-index: 1;
}

.pricing .eyebrow {
  color: #b8b1a3;
}

.pricing .section-head h2 {
  color: #fbf7ee;
}

.pricing .section-head p {
  color: #a9a294;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid #e1d6c2;
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

.price-card.featured {
  border: 2px solid var(--yellow);
  background: #fff9e8;
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2);
}

.price-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 3px;
}

.price-plan {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.price-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.price-card.featured .price-badge {
  background: var(--coral);
}

.price-desc {
  min-height: 21px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 17px 0 3px;
}

.price-amount .currency {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

.price-amount strong {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 850;
}

.price-amount .unit {
  color: var(--muted);
  font-size: 10px;
}

.price-hint {
  min-height: 30px;
  margin: 0 0 16px;
  color: var(--muted-light);
  font-size: 9px;
  line-height: 1.55;
}

.price-line {
  height: 1px;
  margin-bottom: 15px;
  background: var(--line-soft);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.5;
}

.price-features svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-top: 1px;
  color: var(--teal);
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.price-card.featured .btn-primary {
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(30, 39, 46, 0.16);
}

.price-card.featured .btn-primary:hover {
  background: #0e151a;
}

.price-card.is-current {
  outline: 2px solid rgba(45, 125, 114, 0.5);
  outline-offset: 3px;
}

.price-card.is-current .btn {
  background: var(--teal-soft);
  color: var(--teal);
  box-shadow: none;
}

.price-note {
  max-width: 780px;
  margin: 32px auto 0;
  color: #9f988a;
  font-size: 9.5px;
  line-height: 1.8;
  text-align: center;
}

.price-note b {
  color: #d8d0c1;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  padding-top: 78px;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  max-width: 740px;
  padding: 0 30px 20px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.faq-answer b {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: 46px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.4);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand p {
  max-width: 330px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col b {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-col button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  text-align: left;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--coral-deep);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted-light);
  font-size: 9px;
}

.footer-bottom a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--teal);
}

.footer-bottom .footer-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom .footer-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 22, 27, 0.58);
  backdrop-filter: blur(7px);
  animation: fade-in 0.18s ease;
}

.modal {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #e6dac5;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
  animation: modal-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
}

.modal-close:hover {
  color: var(--ink);
  background: var(--paper);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.checkout-eyebrow {
  color: var(--coral-deep);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.modal h3 {
  margin: 8px 0 5px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.modal-sub {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.order-box {
  margin: 20px 0 14px;
  padding: 14px 15px;
  border: 1px dashed #d4c8b2;
  border-radius: 14px;
  background: var(--card-soft);
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  font-size: 10.5px;
}

.order-row span {
  color: var(--muted);
}

.order-row strong {
  font-size: 11px;
  font-weight: 650;
}

.order-row .order-price {
  color: var(--coral-deep);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.order-row code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.demo-payment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #ecd793;
  border-radius: 12px;
  background: var(--yellow-soft);
}

.demo-payment svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  color: #a67b0d;
}

.demo-payment strong {
  display: block;
  color: #76590b;
  font-size: 10px;
  font-weight: 700;
}

.demo-payment p {
  margin: 1px 0 0;
  color: #8d701f;
  font-size: 9px;
  line-height: 1.55;
}

.demo-payment.is-live {
  border-color: rgba(45, 125, 114, 0.3);
  background: var(--teal-soft);
}

.demo-payment.is-live svg {
  color: var(--teal);
}

.demo-payment.is-live strong {
  color: #1f5f57;
}

.demo-payment.is-live p {
  color: #3d756d;
}

.pay-methods {
  display: flex;
  gap: 6px;
  margin: 13px 0 10px;
}

.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.pay-method:hover {
  border-color: #cbbfa9;
  color: var(--ink);
}

.pay-method.is-active {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.pay-method:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pay-method i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #2fa84f;
}

.pay-method[data-provider="alipay"] i {
  background: #1677ff;
}

.pay-method[data-provider="mock"] i {
  background: #9b7710;
}

.pay-live {
  margin: 12px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card-soft);
  text-align: center;
}

.pay-qr-frame {
  position: relative;
  width: 186px;
  height: 186px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  padding: 8px;
  border: 1px solid #e2d6c2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(75, 55, 30, 0.07);
}

.pay-qr {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.pay-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pay-qr-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--muted);
  font-size: 9px;
}

.pay-live-status {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
  font-size: 10px;
}

.pay-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.18);
}

.pay-status-dot.is-success {
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 114, 0.16);
}

.pay-live-hint {
  margin: 4px auto 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.pay-live .link-button {
  font-size: 9px;
}

.modal-fine {
  margin: 11px 0 0;
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.6;
  text-align: center;
}

.checkout-switch {
  margin-top: 10px;
  text-align: center;
}

.checkout-switch .link-button {
  font-size: 9.5px;
}

.demo-codes {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.demo-codes summary {
  color: var(--muted);
  font-size: 9.5px;
  cursor: pointer;
  user-select: none;
}

.demo-codes summary:hover {
  color: var(--ink);
}

.redeem-row {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.redeem-row input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: var(--mono);
  font-size: 10px;
  outline: none;
}

.redeem-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 114, 0.1);
}

.redeem-row button {
  height: 36px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 650;
}

.demo-code-list {
  margin: 8px 0 0;
  color: var(--muted-light);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
}

.license-current {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-soft);
}

.license-current .license-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.license-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--yellow);
}

.license-icon svg {
  width: 20px;
  height: 20px;
}

.license-current .license-plan strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.license-current .license-plan small {
  color: var(--muted);
  font-size: 9.5px;
}

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.license-cell {
  padding: 9px 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.license-cell span {
  display: block;
  color: var(--muted-light);
  font-size: 8px;
}

.license-cell b {
  font-size: 12px;
}

.account-pill {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.account-pill svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.account-modal {
  width: min(560px, 100%);
}

.auth-error {
  margin: 10px 0 0;
  color: var(--coral-deep);
  font-size: 10px;
}

.auth-switch {
  display: block;
  margin: 12px auto 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 10px;
  font-weight: 650;
}

.cloud-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cloud-head h3 {
  margin: 6px 0 0;
}

.cloud-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: min(42vh, 390px);
  overflow-y: auto;
  margin-top: 14px;
}

.cloud-empty {
  grid-column: 1 / -1;
  padding: 22px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted-light);
  font-size: 10px;
  text-align: center;
}

.cloud-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.cloud-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  background: var(--cream);
}

.cloud-card-body {
  padding: 7px;
}

.cloud-card-body b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloud-card-body span {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 7px;
}

.cloud-card-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.cloud-card-actions button {
  flex: 1;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 650;
}

.cloud-card-actions button:last-child {
  color: var(--coral-deep);
}

.account-orders {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.account-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 9px;
}

.account-order b {
  font-size: 9px;
}

.account-order span {
  color: var(--muted-light);
  font-size: 8px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
}

.form-field > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.form-field input,
.form-field select {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 125, 114, 0.1);
}

.text-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.text-options .form-field {
  margin-top: 10px;
}

.text-modal .btn-block {
  margin-top: 18px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: min(58vh, 500px);
  overflow-y: auto;
  margin-top: 18px;
  padding-right: 2px;
}

.template-card {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.template-card:hover {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(239, 106, 82, 0.12);
}

.template-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  background: var(--cream);
}

.template-card b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.template-card span {
  display: block;
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 7px;
}

.license-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.license-actions .btn {
  flex: 1;
}

.license-actions .btn-ghost {
  flex: 0 0 auto;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(30, 39, 46, 0.94);
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  font-size: 11px;
  font-weight: 500;
  animation: toast-in 0.25s ease;
}

.toast svg {
  width: 14px;
  height: 14px;
  color: #8fd6c4;
}

.toast.is-error svg {
  color: #ff9b85;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .studio-grid {
    grid-template-columns: 288px minmax(0, 1fr);
  }

  .legend-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 18px 20px;
  }

  .legend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0 16px;
    max-height: 230px;
    min-height: 0;
  }

  .legend-empty {
    min-height: 100px;
    grid-column: 1 / -1;
  }

  .legend-summary {
    margin: 6px 0 8px;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 24px;
  }

  .hero-art {
    min-height: 280px;
  }

  .chip-a {
    right: -4px;
  }

  .float-bead.one {
    left: -2%;
  }

  .price-grid {
    gap: 12px;
  }

  .price-card {
    padding: 22px 18px 18px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 36px, 1420px);
  }

  .topnav {
    display: none;
  }

  .hero {
    padding: 22px 0 26px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-side {
    width: min(100%, 560px);
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(38px, 8vw, 50px);
  }

  .hero-art {
    min-height: 280px;
  }

  .hero-card {
    width: min(300px, 92%);
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    display: block;
  }

  .section-head p {
    max-width: 560px;
    margin-top: 12px;
  }

  .studio-grid {
    grid-template-columns: 1fr;
  }

  .controls-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .legend-panel {
    grid-column: auto;
  }

  .canvas-viewport {
    height: 540px;
  }

  .price-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 14px;
  }

  .price-card.featured {
    transform: none;
  }

  .price-card {
    min-height: 0;
  }

  .price-features {
    margin-bottom: 18px;
  }

  .footer-main {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 26px, 1420px);
  }

  .studio-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 14px 16px 11px;
  }

  .studio-intro p {
    max-width: none;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    height: 64px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-word b {
    font-size: 18px;
  }

  .topbar-actions .btn {
    display: none;
  }

  .license-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero h1 {
    font-size: clamp(30px, 10vw, 38px);
    letter-spacing: -0.06em;
    white-space: normal;
  }

  .hero-lead {
    font-size: 13.5px;
  }

  .hero-notes {
    gap: 7px 12px;
  }

  .hero-art {
    min-height: 250px;
  }

  .hero-card {
    width: 78%;
    transform: rotate(-1.5deg);
  }

  .hero-art::before {
    width: 320px;
    height: 320px;
  }

  .float-chip,
  .float-bead {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

  .section-head h2 {
    font-size: 30px;
  }

  .studio-shell {
    border-radius: 20px;
  }

  .studio-topbar {
    padding: 9px 13px;
  }

  .steps {
    gap: 6px;
  }

  .step {
    font-size: 9px;
  }

  .step b {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .step-line {
    width: 8px;
  }

  .studio-status {
    display: none;
  }

  .controls-panel {
    padding: 15px;
  }

  .workspace {
    padding: 12px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
  }

  .canvas-head {
    flex-wrap: wrap;
    padding: 8px 9px;
  }

  .canvas-tools {
    width: 100%;
    justify-content: flex-end;
  }

  .canvas-viewport {
    height: 390px;
  }

  .canvas-stage {
    padding: 14px;
  }

  .export-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
  }

  .export-actions .btn {
    width: 100%;
  }

  .legend-panel {
    padding: 15px;
  }

  .legend-list {
    grid-template-columns: 1fr 1fr;
    max-height: 420px;
  }

  .price-amount strong {
    font-size: 44px;
  }

  .faq-item summary {
    font-size: 12px;
    padding: 16px 2px;
  }

  .footer-links {
    gap: 30px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .modal {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .modal h3 {
    font-size: 23px;
  }

  .license-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
