:root {
  --bg: oklch(0.92 0.034 24);
  --ink: oklch(0.19 0.035 24);
  --muted: oklch(0.42 0.034 24);
  --panel: oklch(0.992 0.008 30);
  --pearl: oklch(0.982 0.014 28);
  --surface: oklch(0.964 0.022 24);
  --surface-strong: oklch(0.92 0.04 22);
  --soft: oklch(0.97 0.018 28);
  --primary: oklch(0.56 0.18 18);
  --primary-strong: oklch(0.39 0.145 18);
  --berry: oklch(0.49 0.19 14);
  --blush: oklch(0.72 0.14 8);
  --blush-soft: oklch(0.94 0.052 12);
  --mint: oklch(0.75 0.095 166);
  --mint-soft: oklch(0.93 0.046 166);
  --lilac: oklch(0.72 0.095 305);
  --honey: oklch(0.86 0.12 82);
  --line: oklch(0.84 0.026 24);
  --hairline: oklch(0.89 0.022 24);
  --shadow: 0 8px 18px oklch(0.28 0.075 18 / 0.12);
  --shadow-tight: 0 4px 8px oklch(0.28 0.075 18 / 0.1);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, oklch(0.72 0.15 14 / 0.34), transparent 20%),
    radial-gradient(circle at 88% 10%, oklch(0.78 0.09 166 / 0.28), transparent 22%),
    linear-gradient(180deg, oklch(0.982 0.01 24), var(--bg));
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px;
}

.app-card {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 28px);
  border: 1px solid oklch(0.7 0.045 20);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  background: linear-gradient(180deg, oklch(0.985 0.02 24), oklch(0.958 0.032 22));
  padding: 8px 17px 0;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 900;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-icons i {
  display: block;
  width: 14px;
  height: 7px;
  border-radius: 999px;
  background: var(--primary-strong);
}

.status-icons i:nth-child(2) {
  width: 10px;
}

.status-icons i:nth-child(3) {
  width: 18px;
  height: 8px;
  border: 1px solid var(--primary-strong);
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 22%, oklch(0.83 0.09 166 / 0.46), transparent 30%),
    radial-gradient(circle at 14% 16%, oklch(0.68 0.18 14 / 0.66) 0 2px, transparent 3px),
    linear-gradient(180deg, oklch(0.98 0.034 20), oklch(0.952 0.035 22));
  padding: 12px 14px 16px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -18px;
  width: 88px;
  height: 88px;
  opacity: 0.76;
  background:
    radial-gradient(circle, var(--primary) 0 3px, transparent 4px) 0 0 / 16px 16px;
}

.hero::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 132px;
  width: 96px;
  height: 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle, oklch(0.98 0.01 353) 0 3px, transparent 4px) 3px 4px / 14px 14px,
    oklch(0.78 0.1 166 / 0.5);
  transform: rotate(-6deg);
}

.brand-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 4px;
  place-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid oklch(1 0 0 / 0.82);
  border-radius: 13px;
  background: oklch(1 0 0 / 0.94);
  box-shadow: var(--shadow-tight);
}

.brand-mark span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.brand-mark span:nth-child(1) { background: var(--blush); }
.brand-mark span:nth-child(2) { background: var(--honey); }
.brand-mark span:nth-child(3) { background: var(--mint); }
.brand-mark span:nth-child(4) { background: var(--lilac); }

.brand-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.brand-row strong {
  color: var(--primary-strong);
  font-size: 16px;
  font-weight: 950;
}

.brand-row span:not(.brand-mark) {
  overflow: hidden;
  color: oklch(0.38 0.045 24);
  font-size: 11px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 32px;
  border: 1px solid oklch(0.84 0.04 24);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.82);
  color: var(--primary-strong);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.shop-banner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid oklch(0.78 0.06 18);
  border-radius: 16px;
  background:
    linear-gradient(90deg, oklch(1 0 0 / 0.96), oklch(1 0 0 / 0.7) 58%, transparent 58%),
    radial-gradient(circle at 86% 20%, oklch(1 0 0 / 0.94), transparent 32%),
    linear-gradient(135deg, oklch(0.996 0.006 24), oklch(0.93 0.065 16 / 0.92));
  padding: 13px;
}

.banner-copy {
  min-width: 0;
}

.banner-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  min-height: 22px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.74);
  color: var(--primary-strong);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 950;
}

h1 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.shop-banner p {
  margin-bottom: 10px;
  color: oklch(0.34 0.04 24);
  font-size: 12px;
  line-height: 1.35;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 11px;
}

.hero-steps span {
  min-height: 25px;
  border: 1px solid oklch(0.86 0.045 22);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.78);
  color: var(--primary-strong);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.banner-button {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: oklch(1 0 0);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid oklch(0.82 0.042 22);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.76);
  color: oklch(0.36 0.045 24);
  padding: 0 12px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.hero-kit {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 156px;
  border: 1px solid oklch(0.78 0.055 18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 16%, oklch(1 0 0 / 0.62), transparent 24%),
    linear-gradient(180deg, oklch(1 0 0), oklch(0.968 0.024 24));
  padding: 8px;
  transform: rotate(-2deg);
}

.hero-kit::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 39px;
  width: 32px;
  height: 46px;
  border: 1px solid oklch(1 0 0 / 0.9);
  border-radius: 11px 11px 8px 8px;
  background:
    radial-gradient(circle, var(--mint) 0 2px, transparent 3px) 5px 8px / 10px 10px,
    oklch(0.92 0.044 166);
  box-shadow: 0 3px 7px oklch(0.28 0.075 18 / 0.12);
}

.kit-badge {
  justify-self: start;
  min-height: 20px;
  border-radius: 999px;
  background: var(--primary-strong);
  color: oklch(1 0 0);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 950;
}

.kit-board {
  display: grid;
  grid-template-columns: repeat(5, 11px);
  grid-auto-rows: 11px;
  gap: 3px;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid oklch(0.88 0.02 24);
  border-radius: 12px;
  background:
    linear-gradient(45deg, oklch(0.968 0.012 24) 25%, transparent 25%),
    linear-gradient(-45deg, oklch(0.968 0.012 24) 25%, transparent 25%),
    oklch(1 0 0);
  background-size: 14px 14px;
}

.kit-board i {
  border-radius: 999px;
  background: oklch(0.95 0.014 353);
  box-shadow: inset 0 -1px 0 oklch(0 0 0 / 0.08);
}

.kit-board i:nth-child(2),
.kit-board i:nth-child(4),
.kit-board i:nth-child(6),
.kit-board i:nth-child(7),
.kit-board i:nth-child(8),
.kit-board i:nth-child(9),
.kit-board i:nth-child(10),
.kit-board i:nth-child(12),
.kit-board i:nth-child(13),
.kit-board i:nth-child(14),
.kit-board i:nth-child(17),
.kit-board i:nth-child(18),
.kit-board i:nth-child(19) {
  background: var(--berry);
}

.kit-board i:nth-child(11),
.kit-board i:nth-child(15) {
  background: var(--ink);
}

.kit-board i:nth-child(23) {
  background: var(--blush);
}

.kit-footer {
  display: grid;
  gap: 2px;
  border-radius: 10px;
  background: oklch(0.98 0.018 24);
  padding: 7px;
}

.kit-footer strong {
  color: var(--primary-strong);
  font-size: 13px;
  line-height: 1;
}

.kit-footer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
}

.shop-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.shop-proof span {
  display: grid;
  gap: 2px;
  min-height: 48px;
  border: 1px solid oklch(0.84 0.03 24);
  border-radius: 12px;
  background: oklch(1 0 0 / 0.74);
  color: oklch(0.38 0.04 24);
  padding: 7px 8px;
  font-size: 10px;
  font-weight: 850;
}

.shop-proof b {
  color: var(--primary-strong);
  font-size: 15px;
  line-height: 1;
}

.shortcut-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.shortcut-grid button,
.shortcut-grid a {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 72px;
  border: 1px solid oklch(0.87 0.026 24);
  border-radius: 12px;
  background: oklch(1 0 0 / 0.8);
  color: var(--ink);
  padding: 8px 5px;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.shortcut-grid button:hover {
  background: oklch(1 0 0 / 0.94);
  transform: translateY(-1px);
}

.shortcut-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 11px;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.08);
}

.shortcut-icon.pink { background: linear-gradient(135deg, var(--primary), var(--blush)); }
.shortcut-icon.mint { background: linear-gradient(135deg, var(--mint), oklch(0.88 0.08 165)); }
.shortcut-icon.purple { background: linear-gradient(135deg, var(--lilac), oklch(0.84 0.08 315)); }
.shortcut-icon.yellow { background: linear-gradient(135deg, var(--honey), oklch(0.96 0.08 92)); }

.shortcut-icon::before,
.shortcut-icon::after {
  content: "";
  display: block;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.88);
  box-shadow: 0 1px 0 oklch(0 0 0 / 0.09);
}

.shortcut-icon::before {
  width: 7px;
  height: 7px;
}

.shortcut-icon.bead-upload::after {
  position: absolute;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  transform: translateY(8px);
}

.shortcut-icon.bead-ai::before {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 48% 52%, oklch(1 0 0 / 0.9) 0 3px, transparent 4px),
    oklch(1 0 0 / 0.26);
}

.shortcut-icon.bead-ai::after {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  background: oklch(1 0 0 / 0.9);
  box-shadow: -10px 12px 0 oklch(1 0 0 / 0.7);
}

.shortcut-icon.bead-palette::before {
  box-shadow:
    -7px 2px 0 oklch(1 0 0 / 0.84),
    7px 2px 0 oklch(1 0 0 / 0.84),
    0 -7px 0 oklch(1 0 0 / 0.84);
}

.shortcut-icon.bead-palette::after {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 5px;
  height: 5px;
}

.shortcut-icon.bead-list::before {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    radial-gradient(circle, oklch(1 0 0 / 0.9) 0 2px, transparent 3px) 1px 1px / 8px 8px,
    oklch(1 0 0 / 0.18);
}

.shortcut-icon.bead-list::after {
  display: none;
}

.shortcut-icon.bead-funnel::before {
  width: 18px;
  height: 15px;
  border-radius: 4px 4px 10px 10px;
  clip-path: polygon(0 0, 100% 0, 60% 58%, 60% 100%, 40% 100%, 40% 58%);
}

.shortcut-icon.bead-funnel::after {
  display: none;
}

.shortcut-grid strong {
  font-size: 11px;
  font-weight: 950;
}

.shortcut-grid em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.funnel-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.funnel-row span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid oklch(0.84 0.028 24);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.58);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.funnel-row span.is-active,
.funnel-row span.is-done {
  border-color: oklch(0.66 0.11 18);
  background: var(--blush-soft);
  color: var(--primary-strong);
}

.view {
  display: none;
  padding: 14px 14px 96px;
}

#listView {
  padding-bottom: 190px;
}

.trend-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.trend-strip article {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid oklch(0.88 0.026 24);
  border-radius: 12px;
  background:
    linear-gradient(180deg, oklch(1 0 0), oklch(0.992 0.008 24));
  padding: 7px;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}

.trend-strip article:hover {
  border-color: oklch(0.78 0.06 18);
  transform: translateY(-1px);
}

.trend-photo {
  display: block;
  width: 100%;
  height: 74px;
  border: 1px solid oklch(0.88 0.026 24);
  border-radius: 10px;
  background: var(--surface);
  object-fit: cover;
  object-position: center;
}

.trend-strip strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-strip em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 780;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 68px;
  border-radius: 12px;
  background:
    radial-gradient(circle, var(--berry) 0 3px, transparent 4px) 8px 8px / 14px 14px,
    var(--surface);
}

.trend-art::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid oklch(1 0 0 / 0.86);
  background:
    radial-gradient(circle, var(--berry) 0 3px, transparent 4px) 5px 5px / 11px 11px,
    oklch(1 0 0 / 0.58);
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.07);
}

.trend-art::after {
  content: "热";
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--primary);
  color: oklch(1 0 0);
  font-size: 10px;
  font-weight: 950;
}

.trend-art.strawberry {
  background:
    radial-gradient(circle, var(--berry) 0 3px, transparent 4px) 8px 8px / 14px 14px,
    radial-gradient(circle at 62% 28%, var(--mint) 0 6px, transparent 7px),
    var(--blush-soft);
}

.trend-art.flower {
  background:
    radial-gradient(circle, var(--blush) 0 3px, transparent 4px) 8px 8px / 14px 14px,
    radial-gradient(circle, var(--honey) 0 5px, transparent 6px) 16px 16px / 28px 28px,
    oklch(0.98 0.018 24);
}

.trend-art.flower::before {
  background:
    radial-gradient(circle, var(--blush) 0 3px, transparent 4px) 5px 5px / 11px 11px,
    radial-gradient(circle at 50% 50%, var(--honey) 0 7px, transparent 8px),
    oklch(1 0 0 / 0.62);
}

.trend-art.flower::after {
  content: "礼";
  background: var(--honey);
  color: var(--ink);
}

.trend-art.charm {
  background:
    radial-gradient(circle, var(--lilac) 0 3px, transparent 4px) 8px 8px / 14px 14px,
    linear-gradient(180deg, var(--mint-soft), oklch(1 0 0));
}

.trend-art.charm::before {
  border-radius: 999px 999px 12px 12px;
  background:
    radial-gradient(circle, var(--lilac) 0 3px, transparent 4px) 5px 5px / 11px 11px,
    oklch(1 0 0 / 0.62);
}

.trend-art.charm::after {
  content: "新";
  background: var(--mint);
  color: var(--ink);
}

.view.is-active {
  display: block;
}

.section-heading {
  margin-bottom: 12px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid oklch(0.84 0.055 18);
  background: var(--blush-soft);
  color: var(--primary-strong);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 950;
}

h2 {
  margin: 8px 0 5px;
  font-size: 20px;
  line-height: 1.2;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.deliverables-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: -2px 0 10px;
}

.deliverables-strip span,
.deliverables-strip strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.deliverables-strip span {
  background: var(--ink);
  color: oklch(1 0 0);
  font-weight: 950;
}

.deliverables-strip strong {
  border: 1px solid oklch(0.84 0.03 24);
  background: oklch(1 0 0);
  color: var(--primary-strong);
  font-weight: 900;
}

.upload-zone {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 11px;
  border: 1px solid oklch(0.86 0.03 24);
  border-radius: 16px;
  background:
    linear-gradient(90deg, transparent 0 78%, oklch(0.94 0.05 18 / 0.48) 78%),
    radial-gradient(circle at 94% 18%, oklch(0.93 0.07 18 / 0.64), transparent 22%),
    oklch(1 0 0);
  padding: 12px;
}

.upload-zone.is-prompted {
  outline: 3px solid oklch(0.72 0.13 75 / 0.42);
  animation: uploadPulse 700ms var(--ease) 2;
}

@keyframes uploadPulse {
  0% { transform: translateY(0); }
  45% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 28%, oklch(1 0 0 / 0.45), transparent 20%),
    var(--primary);
  color: oklch(1 0 0);
  font-size: 26px;
  font-weight: 800;
}

.upload-zone span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.upload-zone strong {
  font-size: 16px;
  font-weight: 950;
}

.upload-zone em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-grid,
.action-row,
.summary-grid {
  display: grid;
  gap: 10px;
}

.control-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.field {
  display: grid;
  gap: 7px;
  border: 1px solid oklch(0.88 0.024 24);
  border-radius: 12px;
  background: oklch(1 0 0);
  padding: 11px;
}

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  outline: none;
  font-size: 14px;
  font-weight: 850;
}

button:focus-visible,
select:focus,
textarea:focus,
.upload-zone:focus-within {
  outline: 3px solid oklch(0.66 0.15 18 / 0.24);
  outline-offset: 2px;
}

.action-row {
  grid-template-columns: 1fr auto;
  margin-top: 10px;
}

.primary-button,
.ghost-button,
.tool-button {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 14px;
  font-weight: 950;
  line-height: 1.2;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.primary-button {
  border: 1px solid var(--primary);
  background:
    linear-gradient(180deg, oklch(0.63 0.17 18), var(--primary));
  color: oklch(1 0 0);
}

.primary-button:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.primary-button:active,
.ghost-button:active,
.tool-button:active,
.bottom-tabs button:active {
  transform: translateY(0);
}

.primary-button:disabled,
.ghost-button:disabled,
.tool-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.primary-button:disabled {
  border-color: oklch(0.78 0.03 24);
  background: oklch(0.82 0.026 24);
  color: oklch(1 0 0 / 0.92);
}

.ghost-button,
.tool-button {
  border: 1px solid oklch(0.84 0.03 24);
  background: oklch(1 0 0);
  color: var(--ink);
}

.ghost-button:hover,
.tool-button:hover {
  background: var(--blush-soft);
  border-color: oklch(0.78 0.06 18);
}

.full-button {
  width: 100%;
  margin-top: 10px;
}

.status-card {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(1 0 0), var(--surface));
  padding: 12px;
}

.status-card strong {
  font-size: 14px;
}

.status-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.status-card.is-loading::after {
  content: "";
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 18%, oklch(0.72 0.14 18) 32% 54%, transparent 70% 100%),
    oklch(0.94 0.025 18);
  background-size: 220% 100%;
  animation: loading-slide 1100ms linear infinite;
}

@keyframes loading-slide {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

.result-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
  border: 1px solid oklch(0.83 0.045 18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 12%, var(--mint-soft), transparent 34%),
    linear-gradient(180deg, oklch(1 0 0), oklch(0.982 0.022 24));
  padding: 13px;
}

.result-card.is-hidden {
  display: none;
}

.result-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  border-radius: 999px;
  background: var(--blush-soft);
  color: var(--primary-strong);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
}

.result-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 950;
}

.result-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.4;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

.result-actions .primary-button,
.result-actions .ghost-button {
  min-height: 40px;
  padding: 0 10px;
}

.empty-state {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px dashed oklch(0.74 0.08 18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18px 18px, oklch(0.76 0.15 18) 0 4px, transparent 5px),
    radial-gradient(circle at 38px 18px, var(--mint) 0 3px, transparent 4px),
    linear-gradient(180deg, oklch(1 0 0), var(--surface));
  padding: 13px;
}

.empty-state.is-hidden {
  display: none;
}

.empty-state strong {
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 950;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.empty-state .ghost-button {
  justify-self: start;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
}

.preview-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 14px;
  background: oklch(1 0 0 / 0.86);
  padding: 6px;
}

.preview-mode-row button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.preview-mode-row button.is-active {
  background: var(--blush-soft);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px oklch(0.78 0.06 18);
}

.editor-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(45deg, oklch(0.965 0.012 353) 25%, transparent 25%),
    linear-gradient(-45deg, oklch(0.965 0.012 353) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, oklch(0.965 0.012 353) 75%),
    linear-gradient(-45deg, transparent 75%, oklch(0.965 0.012 353) 75%),
    oklch(1 0 0);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  touch-action: none;
}

#patternCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  touch-action: none;
}

#patternCanvas.is-muted {
  opacity: 0.48;
}

.tool-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.tool-button {
  min-height: 40px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.tool-button.is-active {
  border-color: var(--primary);
  background: var(--blush-soft);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px var(--primary), 0 5px 12px oklch(0.45 0.11 18 / 0.12);
}

.editor-feedback {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid oklch(0.82 0.04 24);
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(1 0 0), oklch(0.98 0.018 24));
  padding: 8px 10px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 950;
}

.editor-feedback i {
  width: 24px;
  height: 24px;
  border: 2px solid oklch(1 0 0);
  border-radius: 999px;
  box-shadow: 0 0 0 1px oklch(0.72 0.08 18), inset 0 -2px 0 oklch(0 0 0 / 0.1);
}

.editor-feedback strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-feedback[data-mode="erase"] {
  border-color: oklch(0.68 0.08 24);
  background:
    repeating-linear-gradient(45deg, oklch(0.96 0.012 24), oklch(0.96 0.012 24) 5px, oklch(1 0 0) 5px, oklch(1 0 0) 10px);
  color: var(--ink);
}

.editor-feedback[data-mode="erase"] i {
  background:
    linear-gradient(45deg, transparent 43%, var(--primary) 44% 56%, transparent 57%),
    oklch(1 0 0 / 0.8);
}

.palette-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.palette-strip::-webkit-scrollbar {
  display: none;
}

.palette-button {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 7px;
  flex: 0 0 132px;
  min-height: 48px;
  border: 1px solid oklch(0.86 0.024 24);
  border-radius: 12px;
  background: oklch(1 0 0);
  padding: 8px;
  text-align: left;
}

.palette-button i,
.material-item i {
  width: 24px;
  height: 24px;
  border: 1px solid oklch(1 0 0 / 0.9);
  border-radius: 999px;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.1);
}

.palette-button span {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  font-weight: 950;
}

.palette-button em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palette-button.is-active {
  border-color: var(--primary);
  background: var(--blush-soft);
  box-shadow: inset 0 0 0 2px var(--primary), 0 6px 12px oklch(0.45 0.11 18 / 0.12);
}

.palette-button.is-active::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid oklch(1 0 0);
  border-radius: 999px;
  background: var(--primary);
}

.summary-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
}

.summary-grid div {
  display: grid;
  gap: 5px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(1 0 0), oklch(0.985 0.012 24));
  padding: 11px;
}

.summary-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.summary-grid strong {
  color: var(--primary-strong);
  font-size: 20px;
  line-height: 1;
}

.decision-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 10px;
}

.decision-metrics article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(1 0 0), oklch(0.988 0.015 353));
  padding: 11px;
}

.decision-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.decision-metrics strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.decision-metrics em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.material-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(1 0 0), oklch(0.99 0.007 353));
  padding: 14px;
}

.panel-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-title-row h3 {
  margin: 0;
}

.panel-title-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.pricing-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.pricing-controls label,
.unit-price-field {
  display: grid;
  gap: 4px;
}

.pricing-controls span,
.unit-price-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.pricing-controls input,
.unit-price-field input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(1 0 0 / 0.9);
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.material-list {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
}

.material-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border-radius: 12px;
  background: var(--surface);
  padding: 8px 9px;
}

.material-item-detail {
  grid-template-columns: 24px minmax(0, 1fr) 72px;
  align-items: start;
}

.material-item span {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.material-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.formula-line {
  color: var(--primary-strong);
}

.material-item strong {
  color: var(--primary-strong);
  font-size: 13px;
  white-space: nowrap;
}

.kit-offer-card,
.dialog-kit-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid oklch(0.8 0.055 18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 18%, oklch(0.91 0.07 78), transparent 34%),
    linear-gradient(180deg, oklch(1 0 0), oklch(0.982 0.018 24));
  padding: 13px;
}

.kit-offer-card.is-disabled {
  opacity: 0.58;
}

.kit-offer-card span,
.dialog-kit-summary span {
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 950;
}

.kit-offer-card strong,
.dialog-kit-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 1000;
}

.kit-offer-card em,
.dialog-kit-summary em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.kit-offer-card .primary-button {
  min-width: 118px;
  min-height: 42px;
}

.kit-offer-card {
  margin-bottom: 88px;
}

.shop-hero-card {
  display: grid;
  grid-template-columns: 1fr 112px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid oklch(0.8 0.06 18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 88% 28%, oklch(0.84 0.09 166 / 0.72), transparent 34%),
    radial-gradient(circle at 20% 92%, oklch(0.93 0.06 18), transparent 30%),
    linear-gradient(135deg, oklch(1 0 0), oklch(0.965 0.03 24));
  padding: 14px;
}

.shop-hero-card div:first-child {
  display: grid;
  gap: 6px;
}

.shop-hero-card strong {
  font-size: 17px;
  font-weight: 950;
}

.shop-hero-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.mini-products {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  min-height: 82px;
  border-radius: 12px;
  background:
    radial-gradient(circle, oklch(1 0 0 / 0.72) 0 3px, transparent 4px) 4px 8px / 16px 16px,
    oklch(1 0 0 / 0.54);
  padding: 10px 8px;
}

.mini-products i {
  width: 28px;
  height: 56px;
  border: 2px solid oklch(1 0 0);
  border-radius: 999px 999px 12px 12px;
  background:
    radial-gradient(circle, var(--primary) 0 3px, transparent 4px) 4px 8px / 11px 11px,
    oklch(0.95 0.045 18);
}

.mini-products i:nth-child(2) {
  height: 68px;
  background:
    radial-gradient(circle, oklch(0.78 0.095 165) 0 3px, transparent 4px) 4px 8px / 11px 11px,
    oklch(0.92 0.045 165);
}

.mini-products i:nth-child(3) {
  height: 50px;
  background:
    radial-gradient(circle, oklch(0.86 0.14 78) 0 3px, transparent 4px) 4px 8px / 11px 11px,
    oklch(0.96 0.06 86);
}

.finished-showcase {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 16%, oklch(0.93 0.046 166 / 0.7), transparent 30%),
    linear-gradient(180deg, oklch(1 0 0), var(--surface));
  padding: 10px;
}

.finished-showcase img {
  display: block;
  width: 118px;
  height: 86px;
  border: 1px solid oklch(0.88 0.026 24);
  border-radius: 10px;
  background: var(--surface);
  object-fit: cover;
}

.finished-showcase div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.finished-showcase span {
  color: var(--primary-strong);
  font-size: 11px;
  font-weight: 950;
}

.finished-showcase strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.finished-showcase em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.38;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.product-card {
  display: grid;
  gap: 8px;
  border: 1px solid oklch(0.87 0.024 24);
  border-radius: 12px;
  background: oklch(1 0 0);
  padding: 10px;
  text-align: left;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.product-card:hover {
  border-color: oklch(0.76 0.07 18);
  background: var(--blush-soft);
  transform: translateY(-1px);
}

.product-art {
  display: grid;
  place-items: center;
  height: 78px;
  border-radius: 12px;
  background:
    radial-gradient(circle, oklch(0.9 0.026 24) 0 2px, transparent 3px) 4px 4px / 14px 14px,
    linear-gradient(180deg, var(--surface), oklch(1 0 0));
}

.product-art i {
  width: 46px;
  height: 58px;
  border: 2px solid oklch(1 0 0 / 0.92);
  border-radius: 999px 999px 12px 12px;
  background: var(--product-color, var(--blush));
  box-shadow: inset 0 -3px 0 oklch(0 0 0 / 0.12);
}

.product-card strong {
  font-size: 12px;
  font-weight: 950;
}

.product-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.product-card em {
  color: var(--primary-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.product-card.is-preview {
  border: 1px dashed var(--hairline);
  color: var(--ink);
}

.product-card.is-preview em {
  color: var(--muted);
}

.message-list {
  display: grid;
  gap: 10px;
}

.message-list button {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 12px;
  background: linear-gradient(180deg, oklch(1 0 0), oklch(0.99 0.012 24));
  padding: 11px;
  text-align: left;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.message-list button:hover {
  background: var(--blush-soft);
  transform: translateY(-1px);
}

.message-icon {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.message-icon.yellow { background: var(--honey); }
.message-icon.mint { background: var(--mint); }
.message-icon.pink { background: var(--blush); }

.message-list strong {
  display: grid;
  gap: 3px;
  font-size: 14px;
  font-weight: 950;
}

.message-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
  line-height: 1.35;
}

.message-list i {
  color: var(--primary-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.support-window-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  border-radius: 14px;
  background: oklch(1 0 0 / 0.72);
  padding: 6px;
  box-shadow: inset 0 0 0 1px oklch(0.88 0.024 24);
}

.support-window-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.support-window-tabs button.is-active {
  background: var(--honey);
  color: oklch(0.28 0.06 34);
}

.support-panel {
  display: none;
}

.support-panel.is-active {
  display: block;
}

.support-panel {
  padding-bottom: 86px;
}

.support-chat-card {
  display: grid;
  gap: 10px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, var(--mint-soft), transparent 32%),
    linear-gradient(180deg, oklch(1 0 0), var(--surface));
  padding: 12px;
}

.support-chat-list {
  display: grid;
  align-content: start;
  gap: 9px;
  overflow-y: auto;
  min-height: 330px;
  max-height: 430px;
  padding: 4px 2px 8px;
}

.support-bubble {
  display: grid;
  gap: 4px;
  max-width: 82%;
}

.support-bubble span,
.support-bubble em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
}

.support-bubble strong {
  border-radius: 14px 14px 14px 4px;
  background: oklch(1 0 0);
  color: var(--ink);
  padding: 10px 11px;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
  box-shadow: 0 8px 18px oklch(0.36 0.06 24 / 0.07);
}

.support-bubble.is-user {
  justify-self: end;
  text-align: right;
}

.support-bubble.is-user strong {
  border-radius: 14px 14px 4px 14px;
  background: var(--blush);
  color: oklch(1 0 0);
}

.support-quick-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.support-quick-row::-webkit-scrollbar {
  display: none;
}

.support-quick-row button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.9);
  color: var(--primary-strong);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 950;
}

.support-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  background: oklch(1 0 0);
  padding: 7px;
  box-shadow: inset 0 0 0 1px oklch(0.88 0.024 24);
}

.support-chat-form input {
  min-height: 34px;
  border: 0;
  background: transparent;
  padding: 0 8px;
  font-size: 13px;
  outline: 0;
}

.support-chat-form button {
  min-height: 34px;
  border-radius: 999px;
  background: var(--primary);
  color: oklch(1 0 0);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 950;
}

.community-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 18%, var(--mint-soft), transparent 28%),
    linear-gradient(135deg, oklch(1 0 0), var(--blush-soft));
  padding: 13px;
}

.community-hero h2 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.18;
}

.community-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
}

.community-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.community-filter-row::-webkit-scrollbar {
  display: none;
}

.community-filter-row button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.84);
  color: var(--ink);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 950;
}

.community-filter-row button.is-active {
  border-color: oklch(0.76 0.08 18);
  background: var(--honey);
  color: oklch(0.28 0.06 34);
}

.community-list {
  display: grid;
  gap: 12px;
}

.community-card {
  overflow: hidden;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 14px;
  background: oklch(1 0 0);
  box-shadow: 0 10px 24px oklch(0.36 0.06 24 / 0.08);
}

.community-card > img {
  display: block;
  width: 100%;
  height: 188px;
  object-fit: cover;
  background: var(--surface);
}

.community-card-body {
  display: grid;
  gap: 8px;
  padding: 11px;
}

.community-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.community-card-title strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.community-card-title i {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--blush-soft);
  color: var(--primary-strong);
  padding: 4px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.community-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.45;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.community-tags span {
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-strong);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
}

.community-author {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 7px;
}

.community-author img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.community-author span,
.community-author em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.community-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.community-actions button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.community-actions button.is-active {
  background: var(--blush);
  color: oklch(1 0 0);
}

.community-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed oklch(0.78 0.04 24);
  border-radius: 14px;
  background: oklch(1 0 0 / 0.76);
  padding: 18px;
  text-align: center;
}

.community-empty span {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background:
    radial-gradient(circle, var(--berry) 0 5px, transparent 6px) 10px 10px / 20px 20px,
    var(--blush-soft);
}

.community-empty strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.community-empty em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
}

.publish-dialog {
  width: min(390px, calc(100vw - 28px));
  border: 0;
  border-radius: 18px;
  background: #fffafc;
  color: var(--ink);
  padding: 16px;
  box-shadow: 0 22px 46px oklch(0.28 0.04 24 / 0.24);
}

.publish-dialog::backdrop {
  background: oklch(0.24 0.028 24 / 0.36);
}

.community-upload {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border: 1px dashed oklch(0.76 0.06 24);
  border-radius: 14px;
  background: var(--surface);
  padding: 10px;
}

.community-upload input {
  display: none;
}

.community-upload img {
  width: 86px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: oklch(1 0 0);
}

.community-upload strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.community-upload em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.35;
}

.publish-dialog textarea {
  resize: vertical;
  min-height: 78px;
}

.profile-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border: 1px solid oklch(0.86 0.03 24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 20%, oklch(0.92 0.06 18), transparent 32%),
    linear-gradient(180deg, oklch(1 0 0), var(--surface));
  padding: 14px;
}

.avatar-bead {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 36%, oklch(1 0 0) 0 5px, transparent 6px),
    radial-gradient(circle at 66% 36%, oklch(1 0 0) 0 5px, transparent 6px),
    var(--berry);
  box-shadow: inset 0 -4px 0 oklch(0 0 0 / 0.12);
}

.profile-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 950;
}

.profile-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.funnel-explain {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 94% 16%, var(--mint-soft), transparent 30%),
    linear-gradient(180deg, oklch(1 0 0), var(--surface));
  padding: 12px;
}

.funnel-explain strong {
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 950;
}

.funnel-explain p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.rate-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.rate-row span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border-radius: 12px;
  background: oklch(1 0 0 / 0.78);
  color: var(--muted);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.rate-row b {
  color: var(--primary-strong);
  font-size: 13px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.works-grid div {
  display: grid;
  gap: 7px;
  border-radius: 13px;
  background: var(--surface);
  padding: 10px;
}

.works-grid button {
  display: grid;
  gap: 7px;
  width: 100%;
  border: 0;
  border-radius: 13px;
  background: var(--surface);
  padding: 10px;
  text-align: left;
}

.works-grid span {
  display: block;
  height: 90px;
  border-radius: 12px;
  background:
    radial-gradient(circle, var(--berry) 0 5px, transparent 6px) 10px 10px / 22px 22px,
    oklch(1 0 0);
}

.works-grid div:nth-child(2) span {
  background:
    linear-gradient(180deg, var(--blush-soft), oklch(1 0 0)),
    oklch(1 0 0);
}

.works-grid strong {
  font-size: 12px;
  font-weight: 950;
}

.works-grid em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.works-grid img,
.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: oklch(1 0 0);
}

.work-card {
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.work-card:hover {
  background: var(--blush-soft);
  transform: translateY(-1px);
}

.work-empty span {
  display: block;
  aspect-ratio: 1;
  height: auto;
  background:
    radial-gradient(circle, var(--primary) 0 5px, transparent 6px) 12px 12px / 24px 24px,
    oklch(1 0 0);
}

.sticky-actions {
  position: fixed;
  bottom: 76px;
  left: 50%;
  z-index: 18;
  width: min(374px, calc(100vw - 28px));
  align-items: center;
  border-top: 1px solid oklch(0.86 0.026 24);
  background: oklch(1 0 0 / 0.92);
  padding: 10px 0 0;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.bottom-tabs {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(402px, calc(100vw - 28px));
  min-height: 68px;
  border-top: 1px solid oklch(0.86 0.026 24);
  border-right: 1px solid oklch(0.86 0.026 24);
  border-left: 1px solid oklch(0.86 0.026 24);
  background:
    radial-gradient(circle at 18% 0, oklch(0.95 0.06 18 / 0.56), transparent 24%),
    radial-gradient(circle at 82% 0, oklch(0.92 0.048 166 / 0.48), transparent 24%),
    oklch(1 0 0 / 0.97);
  padding: 7px 8px 8px;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.bottom-tabs button,
.bottom-tabs a {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.bottom-tabs span {
  position: relative;
  display: block;
  width: 30px;
  height: 27px;
  border: 2px solid currentColor;
  border-radius: 45% 45% 48% 48%;
  background:
    radial-gradient(circle, currentColor 0 1.8px, transparent 2.6px) 8px 12px / 13px 8px no-repeat,
    radial-gradient(circle, currentColor 0 1.8px, transparent 2.6px) 17px 12px / 13px 8px no-repeat,
    linear-gradient(currentColor 0 0) 13px 18px / 5px 2px no-repeat,
    oklch(1 0 0);
  box-shadow: inset 0 -2px 0 oklch(0.28 0.075 18 / 0.05);
  opacity: 0.9;
}

.bottom-tabs span::before,
.bottom-tabs span::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 11px;
  height: 12px;
  border: 2px solid currentColor;
  border-bottom: 0;
  background: oklch(1 0 0);
}

.bottom-tabs span::before {
  left: 1px;
  border-radius: 10px 7px 0 3px;
  transform: rotate(-24deg);
}

.bottom-tabs span::after {
  right: 1px;
  border-radius: 7px 10px 3px 0;
  transform: rotate(24deg);
}

.bottom-tabs button::after,
.bottom-tabs a::after {
  content: "";
  position: absolute;
  top: 11px;
  right: calc(50% - 20px);
  width: 14px;
  height: 10px;
  opacity: 0;
  background:
    radial-gradient(circle at 4px 5px, var(--primary) 0 4px, transparent 4.8px),
    radial-gradient(circle at 10px 5px, var(--primary) 0 4px, transparent 4.8px),
    radial-gradient(circle at 7px 5px, oklch(1 0 0) 0 1.4px, transparent 2px);
  transform: rotate(-12deg) scale(0.82);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.bottom-tabs .tab.is-active,
.bottom-tabs .bottom-tab-static:focus-visible {
  color: var(--primary-strong);
}

.bottom-tabs .tab.is-active span {
  background:
    radial-gradient(circle, var(--ink) 0 1.9px, transparent 2.7px) 8px 12px / 13px 8px no-repeat,
    radial-gradient(circle, var(--ink) 0 1.9px, transparent 2.7px) 17px 12px / 13px 8px no-repeat,
    linear-gradient(var(--ink) 0 0) 13px 18px / 5px 2px no-repeat,
    linear-gradient(180deg, oklch(1 0 0), oklch(0.965 0.032 18));
  border-color: var(--primary);
  color: var(--primary);
  opacity: 1;
}

.bottom-tabs .tab.is-active span::before,
.bottom-tabs .tab.is-active span::after {
  border-color: var(--primary);
}

.bottom-tabs .tab.is-active::after {
  opacity: 1;
  transform: rotate(-12deg) scale(1);
}

.buy-dialog {
  width: min(390px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid oklch(0.84 0.028 24);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ink);
  padding: 18px;
  box-shadow: var(--shadow);
}

.buy-dialog::backdrop {
  background: oklch(0.18 0.036 24 / 0.42);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid oklch(0.84 0.028 24);
  border-radius: 12px;
  background: var(--blush-soft);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

textarea {
  width: 100%;
  border: 1px solid oklch(0.84 0.028 24);
  border-radius: var(--radius);
  background: oklch(1 0 0);
  color: var(--ink);
  padding: 12px;
  resize: vertical;
  line-height: 1.45;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  width: 154px;
  height: 154px;
  margin: 12px auto 0;
  border: 1px dashed oklch(0.72 0.08 350);
  border-radius: 18px;
  background:
    radial-gradient(circle, oklch(0.78 0.11 350) 0 3px, transparent 4px) 10px 10px / 18px 18px,
    var(--surface);
}

.qr-placeholder span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.qr-placeholder strong {
  color: var(--primary-strong);
  font-size: 24px;
}

.contact-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid oklch(0.86 0.026 24);
  border-radius: 14px;
  background: oklch(1 0 0);
  padding: 10px;
}

.contact-card .qr-placeholder {
  width: 124px;
  height: 124px;
  margin: 0;
  border-radius: 16px;
}

.contact-card > div:last-child {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.contact-card > div:last-child > strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 950;
}

.contact-card > div:last-child > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.4;
}

.contact-copy-button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: max(18px, calc((100vw - 402px) / 2 + 18px));
  bottom: 82px;
  z-index: 10;
  transform: translateY(16px);
  opacity: 0;
  border-radius: 999px;
  background: var(--primary-strong);
  color: oklch(1 0 0);
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 850;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

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

@media (max-width: 460px) {
  .app-shell {
    padding: 0;
  }

  .app-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    padding-bottom: 12px;
  }

  .shortcut-grid {
    display: none;
  }

  .funnel-row {
    margin-top: 8px;
  }

  .bottom-tabs {
    width: 100vw;
    border-right: 0;
    border-left: 0;
  }

  .sticky-actions {
    width: calc(100vw - 28px);
  }

  .toast {
    right: 14px;
    bottom: 86px;
  }

  .shop-banner {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .hero-kit {
    min-height: 148px;
    padding: 7px;
  }

  .kit-board {
    grid-template-columns: repeat(5, 10px);
    grid-auto-rows: 10px;
    gap: 3px;
    padding: 9px;
  }

  .shop-proof span {
    min-height: 42px;
  }

  .trend-strip {
    margin-bottom: 10px;
  }

  .trend-strip article {
    padding: 6px;
  }

  .trend-photo {
    height: 54px;
    border-radius: 9px;
  }

  .trend-art {
    height: 58px;
  }

  .finished-showcase {
    grid-template-columns: 104px 1fr;
  }

  .finished-showcase img {
    width: 104px;
    height: 78px;
  }

  .view {
    padding-top: 10px;
  }

  .control-grid,
  .action-row {
    grid-template-columns: 1fr;
  }
}

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

/* Mini-program storefront direction */
:root {
  --bg: oklch(0.955 0.052 88);
  --ink: oklch(0.22 0.038 67);
  --muted: oklch(0.47 0.032 66);
  --panel: oklch(0.995 0.012 88);
  --surface: oklch(0.972 0.035 88);
  --surface-strong: oklch(0.91 0.075 84);
  --soft: oklch(0.984 0.03 88);
  --primary: oklch(0.68 0.16 70);
  --primary-strong: oklch(0.42 0.09 61);
  --berry: oklch(0.58 0.19 27);
  --blush: oklch(0.73 0.16 25);
  --blush-soft: oklch(0.957 0.054 72);
  --mint: oklch(0.74 0.11 165);
  --mint-soft: oklch(0.94 0.05 165);
  --lilac: oklch(0.74 0.09 305);
  --honey: oklch(0.86 0.15 84);
  --line: oklch(0.88 0.038 82);
  --hairline: oklch(0.92 0.03 86);
  --shadow: 0 8px 14px oklch(0.42 0.09 62 / 0.1);
  --shadow-tight: 0 3px 8px oklch(0.42 0.09 62 / 0.09);
}

body {
  background:
    radial-gradient(circle at 0 12%, oklch(0.9 0.145 87 / 0.45), transparent 18%),
    radial-gradient(circle at 98% 2%, oklch(0.88 0.12 78 / 0.28), transparent 22%),
    linear-gradient(180deg, oklch(0.965 0.052 88), oklch(0.982 0.028 88));
}

.app-card {
  background: linear-gradient(180deg, oklch(0.965 0.06 88), oklch(0.99 0.02 88) 46%, oklch(1 0 0));
}

.phone-status {
  background: transparent;
  color: oklch(0.2 0.03 66);
}

.hero {
  background:
    radial-gradient(circle at 8% 18%, oklch(0.86 0.14 84 / 0.36), transparent 18%),
    radial-gradient(circle at 94% 0, oklch(0.9 0.09 72 / 0.34), transparent 23%),
    linear-gradient(180deg, oklch(0.965 0.06 88), oklch(0.972 0.045 88));
  padding: 10px 14px 12px;
}

.hero::before,
.hero::after,
.brand-mark,
.shop-proof,
.hero-kit,
.mini-products {
  display: none;
}

.brand-row {
  gap: 8px;
}

.city-pill,
.stats-link,
.search-row button,
.section-title-row button,
.shop-category-tabs button,
.flash-row button,
.settings-button {
  border: 0;
  background: transparent;
}

.city-pill {
  flex: 0 0 auto;
  color: var(--ink);
  padding: 0;
  font-size: 13px;
  font-weight: 950;
}

.city-pill::before {
  content: "⌖";
  margin-right: 4px;
  color: var(--primary-strong);
}

.brand-row strong {
  color: var(--ink);
  font-size: 15px;
}

.brand-row span:not(.brand-mark) {
  color: oklch(0.44 0.038 68);
}

.stats-link {
  min-width: 34px;
  min-height: 30px;
  border: 1px solid oklch(0.78 0.045 78);
  background: oklch(1 0 0 / 0.55);
  color: var(--ink);
  padding: 0 9px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 8px;
  margin-top: 10px;
}

.search-row button {
  min-height: 36px;
  border: 1px solid oklch(0.78 0.04 78);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.64);
  color: oklch(0.45 0.03 68);
  font-size: 12px;
  font-weight: 850;
}

.search-row button:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 14px;
  text-align: left;
}

.search-row button:first-child::before {
  content: "⌕";
  margin-right: 8px;
  color: var(--primary-strong);
  font-size: 16px;
}

.shop-banner {
  grid-template-columns: minmax(0, 1fr) 150px;
  min-height: 156px;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 8%, oklch(1 0 0 / 0.72), transparent 26%),
    linear-gradient(135deg, oklch(0.972 0.065 82), oklch(0.985 0.045 62));
  padding: 16px 12px;
  box-shadow: var(--shadow-tight);
}

.banner-kicker {
  margin-bottom: 8px;
  background: oklch(1 0 0 / 0.68);
  color: oklch(0.52 0.11 54);
}

h1 {
  font-size: 24px;
  line-height: 1.08;
}

.shop-banner p {
  color: oklch(0.36 0.042 64);
  font-size: 12px;
}

.banner-product {
  display: block;
  width: 150px;
  height: 122px;
  align-self: center;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.banner-button {
  background: oklch(0.75 0.14 64);
  color: oklch(0.22 0.038 67);
}

.text-button {
  border-color: oklch(0.82 0.052 78);
  background: oklch(1 0 0 / 0.64);
  color: var(--primary-strong);
}

.shortcut-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.shortcut-grid button {
  grid-template-columns: 42px 1fr;
  place-items: center start;
  min-height: 58px;
  border: 0;
  border-radius: 12px;
  background: oklch(1 0 0 / 0.74);
  padding: 8px 10px;
  text-align: left;
}

.shortcut-icon {
  grid-row: span 2;
}

.shortcut-grid strong {
  font-size: 13px;
}

.mini-feature-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.mini-feature-row button {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  padding: 4px 2px;
  font-size: 10px;
  font-weight: 850;
}

.mini-feature-row span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 11px;
  background: oklch(1 0 0 / 0.74);
  font-size: 15px;
  box-shadow: var(--shadow-tight);
}

.funnel-row {
  display: none;
}

.view {
  padding: 12px 14px 94px;
}

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

.section-title-row h2 {
  margin: 0;
  font-size: 18px;
}

.section-title-row button {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.trend-strip {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trend-strip article {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: oklch(1 0 0);
  padding: 8px;
  box-shadow: var(--shadow-tight);
}

.trend-photo {
  height: 118px;
  border: 0;
  border-radius: 10px;
}

.trend-strip em,
.product-card em {
  color: oklch(0.58 0.18 31);
  font-weight: 950;
}

.section-heading {
  margin-top: 12px;
}

.step-pill {
  border: 0;
  background: oklch(0.96 0.064 84);
  color: oklch(0.48 0.11 62);
}

.upload-zone,
.field,
.status-card,
.summary-grid div,
.material-panel,
.empty-state,
.funnel-explain,
.message-list button,
.buy-dialog {
  border-color: var(--hairline);
  background: oklch(1 0 0 / 0.9);
}

.primary-button {
  border-color: oklch(0.75 0.14 64);
  background: oklch(0.75 0.14 64);
  color: oklch(0.22 0.038 67);
}

.primary-button:hover {
  background: oklch(0.69 0.14 62);
}

.ghost-button,
.tool-button {
  border-color: var(--line);
  background: oklch(1 0 0);
}

.diy-plan-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: oklch(1 0 0 / 0.86);
  padding: 12px;
  box-shadow: var(--shadow-tight);
}

.diy-plan-card img {
  width: 92px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.diy-plan-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.diy-plan-card span,
.diy-plan-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.diy-plan-card strong {
  font-size: 15px;
  font-weight: 950;
}

.diy-plan-card i {
  display: block;
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: oklch(0.9 0.04 84);
}

.diy-plan-card i b {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.diy-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.diy-shortcuts button,
.profile-actions button {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 78px;
  border: 0;
  border-radius: 12px;
  background: oklch(1 0 0 / 0.9);
  color: var(--ink);
  padding: 8px 4px;
}

.diy-shortcuts span,
.profile-actions span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--blush-soft);
  color: oklch(0.55 0.14 38);
}

.diy-shortcuts strong,
.profile-actions strong {
  font-size: 12px;
  font-weight: 950;
}

.diy-shortcuts em,
.profile-actions em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
}

.shop-category-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  margin: -2px 0 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.shop-category-tabs::-webkit-scrollbar {
  display: none;
}

.shop-category-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 28px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.shop-category-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--honey);
}

.shop-hero-card {
  grid-template-columns: 1fr 138px;
  overflow: hidden;
  min-height: 132px;
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 78% 26%, oklch(0.89 0.08 175 / 0.54), transparent 30%),
    linear-gradient(135deg, oklch(0.93 0.067 177), oklch(0.98 0.042 88));
  box-shadow: var(--shadow-tight);
}

.shop-hero-card img {
  display: block;
  width: 138px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
}

.flash-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
}

.flash-row strong {
  margin-right: 4px;
  font-size: 15px;
  font-weight: 950;
}

.flash-row span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  color: oklch(1 0 0);
  font-size: 11px;
  font-weight: 950;
}

.flash-row i {
  font-style: normal;
  font-weight: 950;
}

.flash-row button {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.finished-showcase {
  border: 0;
  background: oklch(1 0 0 / 0.92);
  box-shadow: var(--shadow-tight);
}

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

.product-card {
  border: 0;
  border-radius: 12px;
  background: oklch(1 0 0);
  box-shadow: none;
}

.product-art {
  height: 96px;
  border-radius: 10px;
  background: oklch(0.96 0.04 84);
}

.product-art img {
  display: block;
  width: 100%;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-card {
  grid-template-columns: 58px 1fr 36px;
  border: 0;
  background: transparent;
  padding: 8px 0 10px;
}

.profile-avatar-img {
  width: 58px;
  height: 58px;
  border: 2px solid oklch(1 0 0);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow-tight);
}

.settings-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.55);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 10px;
  text-align: center;
}

.profile-stats div {
  display: grid;
  gap: 3px;
}

.profile-stats strong {
  font-size: 18px;
  font-weight: 950;
}

.profile-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.works-grid {
  grid-template-columns: repeat(3, 1fr);
}

.works-grid div {
  background: transparent;
  padding: 0;
}

.works-grid img {
  display: block;
  width: 100%;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.works-grid span {
  display: none;
}

.bottom-tabs {
  min-height: 66px;
  border-color: var(--hairline);
  background: oklch(1 0 0 / 0.98);
  box-shadow: 0 -4px 10px oklch(0.42 0.09 62 / 0.08);
}

.bottom-tabs span {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.bottom-tabs span::before,
.bottom-tabs span::after,
.bottom-tabs button::after,
.bottom-tabs a::after {
  display: none;
}

.bottom-tabs button:nth-child(1) span::before,
.bottom-tabs button:nth-child(2) span::before,
.bottom-tabs button:nth-child(3) span::before,
.bottom-tabs button:nth-child(4) span::before,
.bottom-tabs button:nth-child(5) span::before {
  display: block;
  position: static;
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  font-size: 22px;
  transform: none;
}

.bottom-tabs button:nth-child(1) span::before { content: "⌂"; }
.bottom-tabs button:nth-child(2) span::before { content: "🛒"; font-size: 19px; }
.bottom-tabs button:nth-child(3) span::before { content: "✿"; }
.bottom-tabs button:nth-child(4) span::before { content: "☷"; }
.bottom-tabs button:nth-child(5) span::before { content: "♙"; }

.bottom-tabs .tab.is-active {
  color: oklch(0.63 0.15 78);
}

.bottom-tabs .tab.is-active span {
  border: 0;
  background: transparent;
  color: currentColor;
}

body:not([data-view="generateView"]) .home-hero {
  display: none;
}

body:not([data-view="generateView"]) .app-card {
  background: linear-gradient(180deg, oklch(0.965 0.06 88), oklch(1 0 0) 34%, oklch(1 0 0));
}

body:not([data-view="generateView"]) .view.is-active {
  min-height: calc(100vh - 98px);
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin: -2px -2px 12px;
}

.page-topbar div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-topbar span {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.1;
}

.page-topbar strong {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-topbar button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid oklch(0.84 0.045 78);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.72);
  color: var(--primary-strong);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
}

#shopView > .section-heading,
#editView > .section-heading,
#messageView > .section-heading,
#profileView > .section-heading,
#listView > .section-heading {
  margin-top: 0;
}

@media (max-width: 460px) {
  .hero {
    padding-bottom: 10px;
  }

  .shop-banner {
    grid-template-columns: minmax(0, 1fr) 132px;
    min-height: 142px;
    padding: 13px 11px;
  }

  .banner-product {
    width: 132px;
    height: 108px;
  }

  .shortcut-grid {
    display: grid;
  }

  .mini-feature-row {
    gap: 4px;
  }

  .trend-photo {
    height: 106px;
  }

  .diy-plan-card {
    grid-template-columns: 76px 1fr;
  }

  .diy-plan-card img {
    width: 76px;
    height: 66px;
  }

  .diy-plan-card .banner-button {
    grid-column: 1 / -1;
  }

  .shop-hero-card {
    grid-template-columns: 1fr 118px;
  }

  .shop-hero-card img {
    width: 118px;
    height: 96px;
  }

  .finished-showcase {
    grid-template-columns: 104px 1fr;
  }

  .profile-actions,
  .diy-shortcuts {
    gap: 7px;
  }

  .page-topbar {
    margin-top: -4px;
  }
}

@media (max-width: 460px) {
  html[data-shell="framed"],
  body[data-shell="framed"] {
    min-height: 100vh;
    overflow-x: auto;
    background:
      radial-gradient(circle at 0 12%, oklch(0.9 0.145 87 / 0.45), transparent 18%),
      radial-gradient(circle at 98% 2%, oklch(0.88 0.12 78 / 0.28), transparent 22%),
      linear-gradient(180deg, oklch(0.965 0.052 88), oklch(0.982 0.028 88));
  }

  html[data-shell="framed"] .app-shell,
  body[data-shell="framed"] .app-shell {
    width: min(430px, 100%);
    min-height: 100vh;
    padding: 14px;
  }

  html[data-shell="framed"] .app-card,
  body[data-shell="framed"] .app-card {
    min-height: calc(100vh - 28px);
    border: 1px solid oklch(0.7 0.045 20);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  html[data-shell="framed"] .bottom-tabs,
  body[data-shell="framed"] .bottom-tabs {
    width: calc(min(430px, 100%) - 28px);
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  html[data-shell="framed"] .sticky-actions,
  body[data-shell="framed"] .sticky-actions {
    width: calc(min(430px, 100%) - 56px);
  }
}

/* Reference mini-program visual pass */
:root {
  --ref-bg: #fff3c8;
  --ref-bg-2: #fff8df;
  --ref-card: rgba(255, 255, 255, 0.82);
  --ref-ink: #2f2616;
  --ref-muted: #7d6e56;
  --ref-line: #ead69d;
  --ref-gold: #f7b733;
  --ref-orange: #f18d2f;
  --ref-red: #f45a4b;
  --ref-green: #79d5b1;
  --ref-lilac: #caa8e9;
  --ref-shadow: 0 8px 18px rgba(142, 103, 28, 0.12);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(247, 183, 51, 0.22), transparent 24%),
    radial-gradient(circle at 96% 0, rgba(255, 226, 126, 0.34), transparent 20%),
    linear-gradient(180deg, var(--ref-bg), var(--ref-bg-2));
  color: var(--ref-ink);
}

.app-card {
  border-color: #d7b881;
  background: linear-gradient(180deg, #fff0b7 0%, #fff6d9 42%, #ffffff 100%);
}

.phone-status,
.hero {
  background: transparent;
  color: var(--ref-ink);
}

.hero {
  padding: 12px 14px 12px;
}

.brand-row strong,
.brand-row span:not(.brand-mark),
.city-pill,
.stats-link,
h1,
h2,
h3,
.section-title-row h2 {
  color: var(--ref-ink);
}

.search-row button,
.stats-link,
.text-button {
  border-color: #d9c18b;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ref-ink);
}

.shop-banner {
  grid-template-columns: minmax(0, 1fr) 148px;
  min-height: 152px;
  border: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 36%, rgba(245, 119, 49, 0.8) 0 12px, transparent 13px),
    linear-gradient(135deg, #fff7d6, #ffeab3);
  box-shadow: var(--ref-shadow);
  padding: 16px 12px 14px;
}

.banner-kicker {
  background: rgba(255, 255, 255, 0.74);
  color: #b46818;
}

.banner-button,
.primary-button {
  border-color: var(--ref-orange);
  background: var(--ref-orange);
  color: #fff8e8;
}

.hero-collage {
  position: relative;
  min-height: 116px;
}

.hero-collage img {
  position: absolute;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(126, 84, 18, 0.12);
}

.hero-collage img:nth-child(1) {
  right: 36px;
  top: 0;
  width: 82px;
  height: 70px;
  transform: rotate(-4deg);
}

.hero-collage img:nth-child(2) {
  right: 0;
  top: 32px;
  width: 92px;
  height: 72px;
  transform: rotate(4deg);
}

.hero-collage img:nth-child(3) {
  right: 72px;
  bottom: 0;
  width: 70px;
  height: 58px;
  transform: rotate(8deg);
}

.shortcut-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.shortcut-grid button,
.trend-strip article,
.product-card,
.material-panel,
.diy-plan-card,
.tutorial-block article,
.message-list button,
.funnel-explain,
.summary-grid div {
  border: 0;
  background: var(--ref-card);
  box-shadow: var(--ref-shadow);
}

.shortcut-icon.pink { background: linear-gradient(135deg, #f35c43, #ff9b57); }
.shortcut-icon.mint { background: linear-gradient(135deg, #68cfa8, #a9e8cd); }
.shortcut-icon.purple { background: linear-gradient(135deg, #bf98e6, #e2c9ff); }
.shortcut-icon.yellow { background: linear-gradient(135deg, #ffd269, #ffe79c); }

.mini-feature-row span {
  background: rgba(255, 255, 255, 0.9);
}

.trend-strip {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.trend-strip article:nth-child(3) {
  display: none;
}

.trend-photo,
.product-art,
.product-art img {
  height: 114px;
}

.trend-photo,
.product-art img,
.sale-grid img,
.tutorial-block img,
.inspiration-strip img,
.works-grid img {
  background: #fff4c9;
  object-fit: cover;
}

.customize-heading {
  margin-top: 16px;
}

.deliverables-strip strong,
.step-pill {
  border: 0;
  background: #fff0a9;
  color: #9d6512;
}

.deliverables-strip span {
  background: var(--ref-ink);
}

.upload-zone,
.field,
.status-card,
.empty-state,
.editor-feedback {
  border-color: var(--ref-line);
  background: rgba(255, 255, 255, 0.84);
}

.shop-category-tabs {
  gap: 20px;
}

.shop-category-tabs button.is-active::after {
  background: var(--ref-gold);
}

.shop-hero-card {
  min-height: 130px;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 26%, rgba(255, 255, 255, 0.56), transparent 24%),
    linear-gradient(135deg, #c8f1e9, #fff1b6);
  box-shadow: var(--ref-shadow);
}

.shop-hero-card img {
  border-radius: 16px;
}

.sale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.sale-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 8px;
  box-shadow: var(--ref-shadow);
}

.sale-grid img {
  width: 100%;
  height: 72px;
  border-radius: 12px;
}

.sale-grid strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sale-grid em,
.product-card em,
.trend-strip em {
  color: var(--ref-red);
  font-style: normal;
  font-weight: 950;
}

.tutorial-block,
.inspiration-strip {
  margin-bottom: 12px;
}

.tutorial-block article {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  border-radius: 16px;
  padding: 10px;
}

.tutorial-block img {
  width: 112px;
  height: 86px;
  border-radius: 14px;
}

.tutorial-block article div {
  display: grid;
  align-content: center;
  gap: 5px;
}

.tutorial-block strong {
  font-size: 14px;
  font-weight: 950;
}

.tutorial-block span {
  color: #3aa374;
  font-size: 12px;
  font-weight: 900;
}

.tutorial-block em {
  color: var(--ref-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.inspiration-strip > div:last-child {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.inspiration-strip img {
  width: 100%;
  height: 74px;
  border-radius: 14px;
}

.message-filter-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.message-filter-row button {
  display: grid;
  place-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--ref-ink);
  padding: 0;
  font-size: 10px;
  font-weight: 850;
  border-radius: 12px;
}

.message-filter-row span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--ref-shadow);
}

.message-filter-row button.is-active {
  color: var(--ref-red);
}

.message-filter-row button.is-active span {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.94) 0 32%, transparent 33%),
    #fff0a9;
  outline: 2px solid rgba(241, 141, 47, 0.28);
}

.message-icon.yellow { background: #ffd76d; }
.message-icon.mint { background: #86dec0; }
.message-icon.pink { background: #ff9fab; }

.message-empty {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 13px;
  box-shadow: var(--ref-shadow);
}

.message-empty strong,
.message-empty em {
  display: block;
}

.message-empty strong {
  color: var(--ref-ink);
  font-size: 14px;
  font-weight: 950;
}

.message-empty em {
  margin-top: 3px;
  color: var(--ref-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.4;
}

.profile-card {
  background: transparent;
  box-shadow: none;
}

.profile-login-state {
  color: #a26313;
  font-size: 11px;
  font-weight: 950;
}

.profile-actions button {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--ref-shadow);
}

.membership-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd97a, #8b5a20);
  color: #fff7d7;
  padding: 12px;
}

.city-dialog {
  width: min(390px, calc(100vw - 28px));
  border: 0;
  border-radius: 18px;
  background: #fffaf0;
  color: var(--ref-ink);
  padding: 16px;
  box-shadow: 0 18px 42px rgba(83, 50, 16, 0.24);
}

.city-dialog::backdrop {
  background: rgba(54, 35, 24, 0.28);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.city-grid button {
  display: grid;
  gap: 5px;
  min-height: 82px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ref-ink);
  padding: 12px;
  text-align: left;
  box-shadow: var(--ref-shadow);
}

.city-grid button.is-active {
  background: #fff0a9;
  outline: 3px solid rgba(241, 141, 47, 0.22);
}

.city-grid strong {
  font-size: 14px;
  font-weight: 950;
}

.city-grid span {
  color: var(--ref-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.shop-category-tabs button.is-active {
  background: var(--ref-orange);
  color: #fff8e8;
}

.category-note {
  background:
    radial-gradient(circle at 88% 14%, rgba(121, 213, 177, 0.3), transparent 28%),
    rgba(255, 255, 255, 0.9);
}

.bead-category-art,
.bead-product-art {
  display: grid;
  place-items: center;
}

.bead-category-art::before {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background:
    radial-gradient(circle, #ff9fab 0 5px, transparent 6px) 5px 5px / 18px 18px,
    radial-gradient(circle, #86dec0 0 5px, transparent 6px) 14px 14px / 18px 18px,
    #fff4c9;
}

.bead-product-art i {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 6px solid rgba(255, 255, 255, 0.76);
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.08),
    0 5px 10px rgba(83, 50, 16, 0.1);
}

.settings-form select,
.settings-form input {
  min-height: 34px;
}

@media (max-width: 390px) {
  .city-grid {
    grid-template-columns: 1fr;
  }
}

.membership-card span {
  font-size: 13px;
  font-weight: 950;
}

.membership-card button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: #4d3115;
  color: #fff7d7;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
}

.bottom-tabs {
  background: rgba(255, 255, 255, 0.98);
}

.bottom-tabs .tab.is-active {
  color: #c78300;
}

/* DIY workshop first-screen correction */
.maker-banner {
  grid-template-columns: minmax(0, 1fr) 120px;
  min-height: 150px;
  background:
    radial-gradient(circle at 96% 38%, rgba(245, 119, 49, 0.72) 0 12px, transparent 13px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 243, 205, 0.94));
}

.maker-banner h1 {
  font-size: 28px;
  line-height: 1.05;
}

.maker-banner p {
  max-width: 21ch;
  color: var(--ref-muted);
  font-size: 14px;
  font-weight: 820;
}

.bead-preview {
  display: grid;
  grid-template-columns: repeat(5, 15px);
  gap: 7px;
  justify-content: center;
  align-content: center;
  min-height: 120px;
}

.bead-preview span {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #efe9db;
  box-shadow: inset 0 -2px 0 rgba(91, 66, 31, 0.12);
}

.bead-preview span:nth-child(2),
.bead-preview span:nth-child(4),
.bead-preview span:nth-child(6),
.bead-preview span:nth-child(7),
.bead-preview span:nth-child(8),
.bead-preview span:nth-child(9),
.bead-preview span:nth-child(10),
.bead-preview span:nth-child(12),
.bead-preview span:nth-child(13),
.bead-preview span:nth-child(14),
.bead-preview span:nth-child(17),
.bead-preview span:nth-child(18) {
  background: #b86634;
}

.bead-preview span:nth-child(11),
.bead-preview span:nth-child(15) {
  background: #24170f;
}

.bead-preview span:nth-child(23) {
  background: #e76ba5;
}

.work-strip article {
  background: rgba(255, 255, 255, 0.74);
}

.work-strip em {
  color: var(--ref-muted);
}

/* Functional P0.5 workbench and member layer */
.ai-entry-card,
.workbench-ai-card,
.detail-card,
.membership-status-card,
.ai-quota-card {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 10px 0;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 18%, rgba(121, 213, 177, 0.34), transparent 26%),
    rgba(255, 255, 255, 0.86);
  color: var(--ref-ink);
  padding: 13px;
  text-align: left;
  box-shadow: var(--ref-shadow);
}

.ai-entry-card span,
.workbench-ai-card span,
.membership-status-card span,
.ai-quota-card span,
.detail-card span {
  color: #a26313;
  font-size: 12px;
  font-weight: 950;
}

.ai-entry-card strong,
.workbench-ai-card strong,
.membership-status-card strong,
.ai-quota-card strong,
.detail-card strong {
  font-size: 15px;
  font-weight: 950;
  line-height: 1.32;
}

.ai-entry-card em,
.workbench-ai-card em,
.membership-status-card em,
.detail-card p {
  margin: 0;
  color: var(--ref-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  line-height: 1.45;
}

.quest-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 12%, rgba(247, 183, 51, 0.28), transparent 26%),
    rgba(255, 255, 255, 0.86);
  padding: 13px;
  box-shadow: var(--ref-shadow);
}

.quest-panel.large {
  margin-top: 2px;
}

.quest-panel > div {
  display: grid;
  gap: 3px;
}

.quest-panel span {
  color: #3d9b70;
  font-size: 12px;
  font-weight: 950;
}

.quest-panel strong {
  font-size: 16px;
  font-weight: 950;
}

.quest-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quest-panel li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 246, 216, 0.78);
  color: var(--ref-muted);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.quest-panel li::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #ead69d;
}

.quest-panel li.is-done {
  color: #3d7b62;
}

.quest-panel li.is-done::before {
  background: #79d5b1;
}

.quest-panel li.is-current {
  background: #fff0a9;
  color: var(--ref-ink);
}

.quest-panel li.is-current::before {
  background: var(--ref-orange);
}

.tutorial-step-list,
.detail-list,
.ai-action-grid,
.coupon-list,
.plan-grid,
.inspiration-board {
  display: grid;
  gap: 10px;
}

.tutorial-step-list article,
.detail-list article,
.ai-action-grid button,
.coupon-card,
.plan-grid button,
.benefit-table,
.funnel-dashboard article,
.checklist-panel,
.settings-form {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ref-ink);
  padding: 13px;
  box-shadow: var(--ref-shadow);
}

.tutorial-step-list article,
.detail-list article,
.coupon-card,
.plan-grid button {
  display: grid;
  gap: 6px;
  text-align: left;
}

.tutorial-step-list strong,
.detail-list strong,
.coupon-card strong,
.plan-grid strong {
  font-size: 15px;
  font-weight: 950;
  line-height: 1.32;
}

.tutorial-step-list span,
.detail-list span,
.detail-list em,
.coupon-card span,
.coupon-card em,
.plan-grid span,
.plan-grid em {
  color: var(--ref-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 780;
  line-height: 1.42;
}

.detail-list .detail-empty {
  background:
    radial-gradient(circle at 16px 18px, rgba(241, 141, 47, 0.32) 0 5px, transparent 6px),
    rgba(255, 255, 255, 0.86);
}

.detail-list .ghost-button {
  justify-self: start;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
}

.inspiration-board {
  grid-template-columns: repeat(2, 1fr);
}

.inspiration-board article {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px;
  box-shadow: var(--ref-shadow);
}

.inspiration-board img {
  display: block;
  width: 100%;
  height: 118px;
  border-radius: 13px;
  background: #fff4c9;
  object-fit: cover;
}

.inspiration-board strong {
  font-size: 13px;
  font-weight: 950;
}

.inspiration-board span {
  color: var(--ref-muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.checklist-panel {
  display: grid;
  gap: 10px;
}

.checklist-panel label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(255, 246, 216, 0.7);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.checklist-panel input {
  width: 18px;
  height: 18px;
  accent-color: var(--ref-orange);
}

.cart-summary-grid {
  margin-top: 0;
}

.cart-empty {
  grid-template-columns: 1fr auto;
}

.coupon-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  background:
    radial-gradient(circle at 100% 0, rgba(244, 90, 75, 0.22), transparent 30%),
    rgba(255, 255, 255, 0.88);
}

.coupon-card button,
.plan-grid button {
  border: 0;
}

.coupon-card button {
  justify-self: start;
  min-height: 32px;
  border-radius: 999px;
  background: var(--ref-orange);
  color: #fff8e8;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 950;
}

.plan-grid {
  grid-template-columns: 1fr;
  margin: 10px 0;
}

.plan-grid button {
  cursor: pointer;
}

.plan-grid button.is-active {
  outline: 3px solid rgba(241, 141, 47, 0.24);
  background: #fff0a9;
}

.benefit-table {
  display: grid;
  gap: 1px;
  padding: 0;
  overflow: hidden;
}

.benefit-table div {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.8fr;
  gap: 1px;
  background: rgba(234, 214, 157, 0.56);
}

.benefit-table span,
.benefit-table strong {
  display: grid;
  align-items: center;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0 8px;
  font-size: 11px;
}

.benefit-table span {
  color: var(--ref-muted);
  font-weight: 850;
}

.benefit-table strong {
  color: var(--ref-ink);
  font-weight: 950;
  text-align: center;
}

.ai-quota-card i {
  display: block;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(234, 214, 157, 0.7);
}

.ai-quota-card b {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ref-orange), var(--ref-green));
  transition: width 180ms var(--ease);
}

.ai-action-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ai-action-grid button {
  min-height: 108px;
}

.ai-action-grid span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: #fff0a9;
  color: #9d6512;
  font-size: 12px;
  font-weight: 950;
}

.ai-action-grid strong {
  font-size: 12px;
  font-weight: 950;
  line-height: 1.38;
}

.ai-result-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 96% 12%, rgba(121, 213, 177, 0.26), transparent 30%),
    rgba(255, 255, 255, 0.88);
  padding: 14px;
  box-shadow: var(--ref-shadow);
}

.ai-result-panel strong {
  font-size: 16px;
  font-weight: 950;
}

.ai-result-panel p {
  margin: 0;
  color: var(--ref-muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.48;
}

.ai-result-panel .ghost-button {
  justify-self: start;
  min-height: 36px;
  border-radius: 999px;
  font-size: 12px;
}

.settings-form {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.settings-form input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ref-ink);
  outline: none;
  font-size: 14px;
  font-weight: 850;
}

.detail-card.muted {
  background: rgba(255, 246, 216, 0.76);
}

.funnel-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 10px;
}

.funnel-dashboard article {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.funnel-dashboard span {
  color: var(--ref-muted);
  font-size: 11px;
  font-weight: 850;
}

.funnel-dashboard strong {
  color: var(--ref-red);
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
}

.funnel-dashboard em {
  overflow: hidden;
  color: var(--ref-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-works-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 460px) {
  .ai-action-grid,
  .funnel-dashboard {
    grid-template-columns: 1fr;
  }

  .benefit-table div {
    grid-template-columns: 1fr 0.62fr 0.62fr 0.72fr;
  }

  .benefit-table span,
  .benefit-table strong {
    padding: 0 6px;
    font-size: 10px;
  }
}
