:root {
  color-scheme: light;
  --ink: #181616;
  --ink-soft: #3d3938;
  --muted: #746c69;
  --line: rgba(48, 38, 36, 0.12);
  --soft-line: rgba(48, 38, 36, 0.08);
  --paper: #fffdfb;
  --surface: #fffaf7;
  --canvas: #f8f3ee;
  --canvas-2: #eef6f3;
  --rose: #c75d68;
  --rose-dark: #923f49;
  --coral: #e88973;
  --teal: #1f7774;
  --teal-dark: #164c4c;
  --gold: #d6a84f;
  --plum: #37272d;
  --shadow: 0 22px 70px rgba(47, 37, 35, 0.14);
  --shadow-soft: 0 14px 36px rgba(47, 37, 35, 0.09);
  --radius: 8px;
  font-family:
    "Aptos", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fffaf7 0, #f7f0eb 34%, #eef6f3 74%, #fbfaf7 100%);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 10001;
  padding: 10px 14px;
  border: 2px solid var(--teal);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

main:focus {
  outline: none;
}

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

@media (pointer: fine) {
  body.has-lipstick-cursor,
  body.has-lipstick-cursor * {
    cursor: none !important;
  }
}

.lipstick-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 30px;
  height: 58px;
  opacity: 0;
  pointer-events: none;
  transform-origin: 8px 1px;
  transition:
    opacity 0.14s ease,
    filter 0.12s ease;
  will-change: transform;
}

.lipstick-cursor.is-visible {
  opacity: 1;
}

.lipstick-cursor img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(40, 18, 30, 0.2));
  transform-origin: 8px 1px;
  transition: transform 0.14s ease;
}

.lipstick-cursor.is-interactive img {
  transform: scale(0.84);
}

.lipstick-cursor.is-clicking {
  filter: drop-shadow(0 0 5px rgba(199, 63, 85, 0.38));
}

.lipstick-cursor.is-clicking img {
  transform: scale(0.78);
}

.lipstick-click-dot {
  position: fixed;
  z-index: 9998;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c73f55;
  box-shadow: 0 0 0 3px rgba(199, 63, 85, 0.12);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.5);
  animation: lipstick-dot 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lipstick-dot {
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lipstick-cursor,
  .lipstick-cursor img {
    transition: none;
  }

  .lipstick-click-dot {
    display: none;
  }
}

/* ShopPageDocument v3: shared compositional AI shop renderer */
.shop-preview.shop-document {
  --shop-bg: #f7f2ee;
  --shop-surface: #fffdfc;
  --shop-text: #201b1d;
  --shop-muted: #746b6e;
  --shop-accent: #a63f55;
  --shop-highlight: #d8a84e;
  --shop-font-display: "Songti SC", serif;
  --shop-font-body: "Microsoft YaHei", sans-serif;
  display: flex;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: clip;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: var(--shop-bg);
  color: var(--shop-text);
  box-shadow: none;
  font-family: var(--shop-font-body);
}

.shop-document[data-radius="soft"] .shop-doc-work,
.shop-document[data-radius="soft"] .shop-doc-package-list article,
.shop-document[data-radius="soft"] .shop-doc-review-list article {
  border-radius: 8px;
}

.shop-document[data-radius="sharp"] .shop-doc-work,
.shop-document[data-radius="sharp"] .shop-doc-package-list article,
.shop-document[data-radius="sharp"] .shop-doc-review-list article {
  border-radius: 0;
}

.shop-doc-section {
  position: relative;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
  color: var(--shop-text);
}

.shop-document[data-spacing="airy"] .shop-doc-section {
  padding-block: 96px;
}

.shop-document[data-spacing="compact"] .shop-doc-section {
  padding-block: 52px;
}

.shop-doc-section[data-width="full"] {
  width: 100%;
}

.shop-doc-section[data-width="inset"] {
  width: min(860px, calc(100% - 64px));
}

.shop-doc-section + .shop-doc-section:not(.shop-doc-booking) {
  border-top: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
}

.shop-doc-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(280px, 1fr);
  gap: 8px 48px;
  align-items: start;
  margin: 0 0 42px;
}

.shop-doc-heading span,
.shop-doc-design-note > span,
.shop-doc-narrative-list span,
.shop-doc-scene-index span,
.shop-doc-service-list > article > span,
.shop-doc-package-list > article > span {
  color: var(--shop-accent);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
  text-transform: uppercase;
}

.shop-doc-heading h2 {
  grid-column: 1;
  margin: 0;
  color: var(--shop-text);
  font-family: var(--shop-font-display);
  font-size: 42px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

.shop-doc-heading p {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 660px;
  margin: 4px 0 0;
  color: var(--shop-muted);
  font-size: 16px;
  line-height: 1.9;
}

.shop-doc-hero {
  display: grid;
  min-height: 650px;
  padding: 0;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  background: var(--shop-surface);
}

.shop-doc-hero-copy {
  z-index: 2;
  display: flex;
  grid-column: 1 / span 7;
  grid-row: 1;
  min-width: 0;
  padding: 88px 7vw 64px;
  align-self: center;
  align-items: flex-start;
  flex-direction: column;
}

.shop-doc-hero-copy .shop-label {
  color: var(--shop-accent);
  font-size: 12px;
  letter-spacing: 0;
}

.shop-doc-hero-copy h1,
.shop-doc-hero-copy h2 {
  max-width: 760px;
  margin: 20px 0 24px;
  color: var(--shop-text);
  font-family: var(--shop-font-display);
  font-size: 72px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.shop-doc-hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: var(--shop-muted);
  font-size: 18px;
  line-height: 1.85;
}

.shop-doc-actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.shop-document .primary-button {
  border-color: var(--shop-accent);
  background: var(--shop-accent);
}

.shop-document .secondary-button {
  border-color: color-mix(in srgb, var(--shop-text) 18%, transparent);
  background: color-mix(in srgb, var(--shop-surface) 90%, transparent);
  color: var(--shop-text);
}

.shop-doc-hero-media {
  position: relative;
  grid-column: 7 / -1;
  grid-row: 1;
  min-height: 570px;
  margin: 0;
  overflow: hidden;
}

.shop-doc-hero-media img,
.shop-doc-work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-document[data-image-treatment="film"] img {
  filter: saturate(0.82) contrast(0.94) sepia(0.08);
}

.shop-document[data-image-treatment="cinematic"] img {
  filter: saturate(0.78) contrast(1.08) brightness(0.82);
}

.shop-document[data-image-treatment="soft-focus"] img {
  filter: saturate(0.9) contrast(0.92) brightness(1.04);
}

.shop-doc-meta {
  z-index: 3;
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: 2fr repeat(3, 1fr);
  border-top: 1px solid color-mix(in srgb, var(--shop-text) 13%, transparent);
  background: var(--shop-surface);
}

.shop-doc-meta span {
  min-width: 0;
  padding: 20px 28px;
  border-right: 1px solid color-mix(in srgb, var(--shop-text) 13%, transparent);
  background: transparent;
  color: var(--shop-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.shop-doc-meta span:last-child {
  border-right: 0;
}

.shop-doc-meta b {
  color: var(--shop-text);
  font-size: 16px;
}

.shop-doc-hero[data-variant="portrait-overlay"] {
  min-height: 720px;
  background: var(--shop-text);
}

.shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-media {
  grid-column: 1 / -1;
  min-height: 650px;
}

.shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-media::after {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 17, 0.28);
  content: "";
}

.shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy {
  grid-column: 1 / span 8;
  align-self: end;
  padding-bottom: 86px;
}

.shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy h1,
.shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy h2,
.shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy > p {
  color: #fffaf7;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

.shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy {
  grid-column: 1 / span 8;
  padding-top: 72px;
}

.shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy h1,
.shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy h2 {
  font-size: 82px;
  text-transform: uppercase;
}

.shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-media {
  grid-column: 8 / -1;
  margin: 44px 44px 44px 0;
}

.shop-doc-hero[data-variant="split-story"] .shop-doc-hero-copy {
  grid-column: 1 / span 6;
  background: var(--shop-bg);
}

.shop-doc-hero[data-variant="split-story"] .shop-doc-hero-media {
  grid-column: 7 / -1;
}

.shop-doc-hero[data-variant="minimal-signature"] {
  min-height: 590px;
  background: var(--shop-bg);
}

.shop-doc-hero[data-variant="minimal-signature"] .shop-doc-hero-copy {
  grid-column: 2 / span 7;
}

.shop-doc-hero[data-variant="minimal-signature"] .shop-doc-hero-media {
  grid-column: 9 / -1;
  min-height: 450px;
  margin: 64px 56px 64px 0;
}

.shop-doc-hero[data-variant="service-led"] .shop-doc-hero-copy {
  grid-column: 1 / span 8;
  border-right: 1px solid color-mix(in srgb, var(--shop-text) 12%, transparent);
}

.shop-doc-hero[data-variant="service-led"] .shop-doc-hero-media {
  grid-column: 9 / -1;
}

.shop-doc-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 10px;
}

.shop-doc-work {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--shop-surface);
}

.shop-doc-work figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--shop-surface) 90%, transparent);
  color: var(--shop-text);
  font-size: 13px;
  font-weight: 700;
}

.shop-doc-work figcaption span {
  color: var(--shop-accent);
}

.shop-doc-portfolio[data-variant="case-study"] .shop-doc-work:first-child {
  grid-column: span 8;
  grid-row: span 3;
}

.shop-doc-portfolio[data-variant="case-study"] .shop-doc-work:not(:first-child) {
  grid-column: span 4;
}

.shop-doc-portfolio[data-variant="masonry"] .shop-doc-work:nth-child(3n + 1) {
  grid-row: span 3;
}

.shop-doc-portfolio[data-variant="film-strip"] .shop-doc-gallery {
  display: flex;
  padding: 0 6vw 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.shop-doc-portfolio[data-variant="film-strip"] .shop-doc-work {
  width: min(430px, 74vw);
  height: 500px;
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.shop-doc-portfolio[data-variant="full-bleed"] .shop-doc-gallery {
  display: block;
}

.shop-doc-portfolio[data-variant="full-bleed"] .shop-doc-work {
  width: 100%;
  height: 72vh;
  min-height: 520px;
}

.shop-doc-portfolio[data-variant="full-bleed"] .shop-doc-work + .shop-doc-work {
  margin-top: 10px;
}

.shop-doc-portfolio[data-variant="contact-sheet"] .shop-doc-gallery {
  gap: 1px;
  background: color-mix(in srgb, var(--shop-text) 16%, transparent);
}

.shop-doc-portfolio[data-variant="contact-sheet"] .shop-doc-work {
  grid-column: span 4;
  grid-row: span 2;
  border-radius: 0;
}

.shop-doc-service-list,
.shop-doc-package-list,
.shop-doc-review-list,
.shop-doc-scene-index,
.shop-doc-narrative-list {
  display: grid;
  grid-template-columns: repeat(var(--doc-columns, 3), minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
}

.shop-doc-service-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-doc-service-list article,
.shop-doc-package-list article,
.shop-doc-review-list article,
.shop-doc-scene-index article,
.shop-doc-narrative-list article {
  display: flex;
  min-height: 190px;
  padding: 26px 24px;
  align-items: flex-start;
  flex-direction: column;
  border: 0;
  border-right: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
  background: transparent;
  color: var(--shop-text);
  box-shadow: none;
}

.shop-doc-service-list article:nth-child(3n),
.shop-doc-package-list article:last-child,
.shop-doc-review-list article:last-child,
.shop-doc-scene-index article:nth-child(3n),
.shop-doc-narrative-list article:last-child {
  border-right: 0;
}

.shop-doc-service-list strong,
.shop-doc-package-list strong,
.shop-doc-review-list strong,
.shop-doc-scene-index strong,
.shop-doc-narrative-list strong {
  margin-top: auto;
  color: var(--shop-text);
  font-family: var(--shop-font-display);
  font-size: 23px;
  line-height: 1.25;
}

.shop-doc-service-list p,
.shop-doc-package-list p,
.shop-doc-review-list span,
.shop-doc-scene-index p,
.shop-doc-narrative-list p {
  margin: 10px 0 0;
  color: var(--shop-muted);
  font-size: 13px;
  line-height: 1.65;
}

.shop-doc-package-list b {
  margin-top: 18px;
  color: var(--shop-accent);
  font-size: 15px;
}

.shop-doc-reviews[data-variant="spotlight"] .shop-doc-review-list {
  grid-template-columns: 1fr;
}

.shop-doc-reviews[data-variant="spotlight"] .shop-doc-review-list article {
  min-height: 230px;
  padding-inline: 8vw;
  justify-content: center;
  border-right: 0;
  text-align: center;
}

.shop-doc-reviews[data-variant="spotlight"] .shop-doc-review-list strong {
  margin-top: 0;
  font-size: 32px;
}

.shop-doc-reviews[data-variant="quotes"] .shop-doc-review-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-doc-empty-review {
  grid-column: 1 / -1;
}

.shop-doc-booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  padding: 76px max(32px, calc((100% - 1052px) / 2));
  align-items: end;
  background: var(--shop-accent);
  color: #fffaf7;
}

.shop-doc-booking .shop-doc-heading {
  display: block;
  margin: 0;
}

.shop-doc-booking .shop-doc-heading span,
.shop-doc-booking .shop-doc-heading h2,
.shop-doc-booking .shop-doc-heading p {
  display: block;
  max-width: 700px;
  margin-right: 0;
  color: #fffaf7;
}

.shop-doc-booking .shop-doc-heading h2 {
  margin-top: 10px;
  font-size: 48px;
}

.shop-doc-booking .shop-doc-heading p {
  margin-top: 16px;
  opacity: 0.82;
}

.shop-doc-booking .primary-button {
  border-color: #fffaf7;
  background: #fffaf7;
  color: var(--shop-accent);
}

.shop-doc-booking-note {
  display: flex;
  gap: 22px;
  margin: 20px 0 0;
  color: #fffaf7;
  font-size: 13px;
}

.shop-doc-insight {
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--shop-accent);
  color: var(--shop-muted);
  line-height: 1.75;
}

.shop-doc-design-note {
  display: grid;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto 64px;
  padding: 24px 0;
  grid-template-columns: 150px 1fr 1fr;
  gap: 24px;
  border-top: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
  color: var(--shop-text);
}

.shop-doc-design-note p {
  margin: 0;
  color: var(--shop-muted);
  line-height: 1.65;
}

.shop-doc-asset-status {
  grid-column: 2 / 4;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--shop-accent) 24%, transparent);
  border-radius: 4px;
  background: color-mix(in srgb, var(--shop-accent) 7%, transparent);
  color: var(--shop-accent);
  font-size: 12px;
  font-weight: 700;
}

.shop-document[data-motion="reveal"] .shop-doc-section,
.shop-document[data-motion="soft-slide"] .shop-doc-section,
.shop-document[data-motion="chapter"] .shop-doc-section {
  animation: shopDocReveal 560ms ease both;
}

.shop-document[data-motion="soft-slide"] .shop-doc-section {
  animation-name: shopDocSoftSlide;
}

.shop-doc-section[data-surface="soft"] {
  padding-inline: max(32px, calc((100% - 1052px) / 2));
  background: var(--shop-surface);
}

.shop-doc-section[data-surface="contrast"] {
  padding-inline: max(32px, calc((100% - 1052px) / 2));
  background: var(--shop-text);
  color: var(--shop-bg);
}

.shop-doc-section[data-align="center"] .shop-doc-heading {
  display: block;
  text-align: center;
}

.shop-doc-section[data-align="center"] .shop-doc-heading p {
  margin: 18px auto 0;
}

.shop-document[data-section-shape="staggered"] .shop-doc-section[data-offset="left"] {
  transform: translateX(-28px);
}

.shop-document[data-section-shape="staggered"] .shop-doc-section[data-offset="right"] {
  transform: translateX(28px);
}

.shop-doc-section[data-frame="line"] .shop-doc-work,
.shop-doc-section[data-frame="line"] .shop-doc-narrative-list,
.shop-doc-section[data-frame="line"] .shop-doc-service-list {
  outline: 1px solid color-mix(in srgb, var(--shop-text) 24%, transparent);
  outline-offset: -1px;
}

.shop-doc-section[data-frame="paper"] .shop-doc-work,
.shop-doc-section[data-frame="paper"] .shop-doc-narrative-list article,
.shop-doc-section[data-frame="paper"] .shop-doc-service-list article {
  border: 1px solid color-mix(in srgb, var(--shop-accent) 18%, transparent);
  background: var(--shop-surface);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--shop-text) 8%, transparent);
}

.shop-doc-section[data-frame="glass"] .shop-doc-work,
.shop-doc-section[data-frame="glass"] .shop-doc-narrative-list article {
  border: 1px solid color-mix(in srgb, #ffffff 48%, transparent);
  background: color-mix(in srgb, var(--shop-surface) 74%, transparent);
  backdrop-filter: blur(16px);
}

.shop-doc-section[data-frame="arched"] .shop-doc-hero-media,
.shop-doc-section[data-frame="arched"] .shop-doc-work:first-child {
  border-radius: 48% 48% 8px 8px;
}

.shop-doc-portfolio[data-media-ratio="portrait"] .shop-doc-work {
  grid-row: span 3;
}

.shop-doc-portfolio[data-media-ratio="square"] .shop-doc-work {
  grid-row: span 2;
}

.shop-doc-portfolio[data-media-ratio="panorama"] .shop-doc-work {
  grid-column: span 6;
  grid-row: span 2;
}

.shop-document[data-archetype="storybook"] {
  background-image: url("assets/shop-storybook-dream.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

.shop-document[data-archetype="storybook"] .shop-doc-section:not(.shop-doc-hero) {
  background-color: color-mix(in srgb, var(--shop-bg) 94%, transparent);
}

.shop-document[data-archetype="storybook"][data-motif="stars"] .shop-doc-heading::before {
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 12px;
  color: var(--shop-highlight);
  content: "✦  ·  ✦";
  font-size: 13px;
}

.shop-doc-hero[data-variant="storybook-cover"] {
  min-height: 760px;
  background: color-mix(in srgb, var(--shop-surface) 88%, transparent);
}

.shop-doc-hero[data-variant="storybook-cover"]::before {
  position: absolute;
  inset: 34px;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--shop-highlight) 62%, transparent);
  border-radius: 50% 50% 8px 8px;
  content: "";
  pointer-events: none;
}

.shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy {
  grid-column: 1 / span 7;
  padding: 112px 6vw 86px 9vw;
}

.shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy h1,
.shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy h2 {
  max-width: 620px;
  font-size: 86px;
  font-weight: 500;
  line-height: 0.92;
}

.shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-media {
  grid-column: 7 / -1;
  min-height: 650px;
  margin: 54px 6vw 54px 0;
  border-radius: 48% 48% 8px 8px;
}

.shop-doc-portfolio[data-variant="scrapbook"] {
  padding-inline: 6vw;
}

.shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-gallery {
  min-height: 820px;
  grid-auto-rows: 150px;
  gap: 26px;
}

.shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-work {
  grid-column: span 4;
  grid-row: span 3;
  border: 10px solid var(--shop-surface);
  box-shadow: 0 20px 42px color-mix(in srgb, var(--shop-text) 14%, transparent);
}

.shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-work:nth-child(2n) {
  transform: translateY(54px) rotate(2deg);
}

.shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-work:nth-child(3n) {
  transform: translateY(-28px) rotate(-2deg);
}

.shop-doc-services[data-variant="ribbon-list"] .shop-doc-service-list {
  display: flex;
  max-width: 900px;
  margin-left: auto;
  border-top: 0;
  flex-direction: column;
}

.shop-doc-services[data-variant="ribbon-list"] .shop-doc-service-list article {
  width: min(720px, 86%);
  min-height: 132px;
  margin-top: -1px;
  padding: 26px 34px;
  border: 1px solid color-mix(in srgb, var(--shop-accent) 24%, transparent);
}

.shop-doc-services[data-variant="ribbon-list"] .shop-doc-service-list article:nth-child(even) {
  align-self: flex-end;
}

.shop-doc-narrative[data-variant="chapter-spread"] .shop-doc-narrative-list {
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: 1.2fr 0.8fr;
  border-top: 0;
}

.shop-doc-narrative[data-variant="chapter-spread"] .shop-doc-narrative-list article:first-child {
  min-height: 380px;
  justify-content: flex-end;
}

.shop-doc-booking[data-variant="portal"] {
  min-height: 520px;
  padding-inline: 12vw;
  align-content: center;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.shop-doc-booking[data-variant="portal"]::before {
  position: absolute;
  inset: 58px 12vw;
  border: 1px solid color-mix(in srgb, #ffffff 58%, transparent);
  border-radius: 50% 50% 8px 8px;
  content: "";
  pointer-events: none;
}

.shop-doc-booking[data-variant="portal"] .shop-doc-heading p {
  margin-inline: auto;
}

.shop-document[data-archetype="futurist"] {
  background: var(--shop-bg);
}

.shop-document[data-archetype="futurist"] .shop-doc-section + .shop-doc-section:not(.shop-doc-booking) {
  border-top-color: color-mix(in srgb, var(--shop-highlight) 34%, transparent);
}

.shop-doc-hero[data-variant="kinetic-poster"] {
  min-height: 760px;
  background: var(--shop-bg);
}

.shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-media {
  grid-column: 1 / -1;
  min-height: 690px;
  opacity: 0.62;
}

.shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-media::after {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--shop-bg) 38%, transparent);
  content: "";
}

.shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy {
  grid-column: 1 / span 10;
  align-self: end;
  padding: 72px 7vw 92px;
}

.shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy h1,
.shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy h2 {
  max-width: 980px;
  color: var(--shop-text);
  font-size: 96px;
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.shop-doc-services[data-variant="technical-index"] .shop-doc-service-list {
  gap: 1px;
  border: 1px solid color-mix(in srgb, var(--shop-highlight) 38%, transparent);
  background: color-mix(in srgb, var(--shop-highlight) 28%, transparent);
}

.shop-doc-services[data-variant="technical-index"] .shop-doc-service-list article {
  min-height: 240px;
  border: 0;
  background: var(--shop-bg);
}

.shop-doc-services[data-variant="technical-index"] .shop-doc-service-list article > span {
  font-family: var(--shop-font-display);
  font-size: 28px;
}

.shop-doc-booking[data-variant="ticket"] {
  margin-block: 80px;
  border: 1px solid var(--shop-highlight);
  background: var(--shop-surface);
  color: var(--shop-text);
}

.shop-doc-booking[data-variant="ticket"] .shop-doc-heading span,
.shop-doc-booking[data-variant="ticket"] .shop-doc-heading h2,
.shop-doc-booking[data-variant="ticket"] .shop-doc-heading p,
.shop-doc-booking[data-variant="ticket"] .shop-doc-booking-note {
  color: var(--shop-text);
}

.shop-doc-booking[data-variant="ticket"] .primary-button {
  border-color: var(--shop-accent);
  background: var(--shop-accent);
  color: #ffffff;
}

.shop-doc-portfolio[data-variant="spotlight-stack"] .shop-doc-gallery {
  display: block;
}

.shop-doc-portfolio[data-variant="spotlight-stack"] .shop-doc-work {
  width: min(900px, 86vw);
  height: 66vh;
  min-height: 520px;
  margin: 0 auto 48px;
}

.shop-doc-hero[data-variant="gallery-stage"] .shop-doc-hero-copy {
  grid-column: 2 / span 5;
}

.shop-doc-hero[data-variant="gallery-stage"] .shop-doc-hero-media {
  grid-column: 7 / span 5;
  margin: 72px 0;
}

@keyframes shopDocReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shopDocSoftSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.draft-card {
  min-height: 430px;
  padding: 16px 18px 20px;
}

.draft-card::before {
  display: none;
}

.draft-page-map {
  display: grid;
  height: 184px;
  margin: -16px -18px 18px;
  padding: 12px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--draft-text) 16%, transparent);
  background: var(--draft-bg);
  color: var(--draft-text);
}

.draft-page-map__hero {
  display: grid;
  padding: 14px;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
  align-items: center;
  background: var(--draft-surface);
}

.draft-page-map__hero i {
  display: block;
  width: 100%;
  height: 72px;
  background: var(--draft-accent);
  opacity: 0.78;
}

.draft-page-map__hero b {
  font-size: 15px;
  line-height: 1.25;
}

.draft-page-map[data-hero-variant="portrait-overlay"] .draft-page-map__hero {
  background: var(--draft-accent);
  color: #fff;
}

.draft-page-map[data-hero-variant="portrait-overlay"] .draft-page-map__hero i {
  order: 2;
  background: var(--draft-text);
}

.draft-page-map[data-hero-variant="split-story"] .draft-page-map__hero {
  grid-template-columns: 1fr 1fr;
}

.draft-page-map__sections {
  display: flex;
  gap: 4px;
  padding-top: 7px;
}

.draft-page-map__sections span {
  min-width: 0;
  height: 20px;
  padding: 4px 6px;
  flex: 1;
  overflow: hidden;
  background: color-mix(in srgb, var(--draft-text) 10%, transparent);
  color: var(--draft-text);
  font-size: 8px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .shop-doc-section,
  .shop-doc-section[data-width="inset"],
  .shop-doc-design-note {
    width: min(100% - 40px, 760px);
  }

  .shop-doc-hero {
    min-height: 570px;
  }

  .shop-doc-hero-copy {
    grid-column: 1 / span 8;
    padding: 60px 36px 44px;
  }

  .shop-doc-hero-copy h1,
  .shop-doc-hero-copy h2,
  .shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy h1,
  .shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy h2,
  .shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy h1,
  .shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy h2,
  .shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy h1,
  .shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy h2 {
    font-size: 54px;
  }

  .shop-doc-hero-media,
  .shop-doc-hero[data-variant="split-story"] .shop-doc-hero-media,
  .shop-doc-hero[data-variant="service-led"] .shop-doc-hero-media {
    grid-column: 7 / -1;
    min-height: 500px;
  }

  .shop-doc-hero[data-variant="minimal-signature"] .shop-doc-hero-copy {
    grid-column: 1 / span 8;
  }

  .shop-doc-hero[data-variant="minimal-signature"] .shop-doc-hero-media,
  .shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-media {
    grid-column: 8 / -1;
    margin: 34px 26px 34px 0;
  }

  .shop-doc-heading {
    grid-template-columns: 1fr;
  }

  .shop-doc-heading p {
    grid-column: 1;
    grid-row: auto;
  }

  .shop-doc-service-list,
  .shop-doc-scene-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-doc-service-list article:nth-child(3n),
  .shop-doc-scene-index article:nth-child(3n) {
    border-right: 1px solid color-mix(in srgb, var(--shop-text) 16%, transparent);
  }

  .shop-doc-service-list article:nth-child(2n),
  .shop-doc-scene-index article:nth-child(2n) {
    border-right: 0;
  }

  .shop-doc-work {
    grid-column: span 6;
  }

  .shop-doc-portfolio[data-variant="case-study"] .shop-doc-work:first-child {
    grid-column: 1 / -1;
  }

  .shop-doc-portfolio[data-variant="contact-sheet"] .shop-doc-work {
    grid-column: span 6;
  }

  .shop-doc-booking {
    padding-inline: 28px;
  }

  .shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-gallery {
    min-height: 1080px;
  }

  .shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-work {
    grid-column: span 6;
  }
}

@media (max-width: 580px) {
  .shop-preview.shop-document {
    border-radius: 0;
  }

  .shop-doc-section,
  .shop-doc-section[data-width="inset"],
  .shop-doc-design-note {
    width: calc(100% - 32px);
  }

  .shop-doc-section,
  .shop-document[data-spacing="airy"] .shop-doc-section,
  .shop-document[data-spacing="compact"] .shop-doc-section {
    padding-block: 54px;
  }

  .shop-doc-hero,
  .shop-doc-hero[data-variant="portrait-overlay"],
  .shop-doc-hero[data-variant="minimal-signature"],
  .shop-doc-hero[data-variant="storybook-cover"],
  .shop-doc-hero[data-variant="kinetic-poster"],
  .shop-doc-hero[data-variant="gallery-stage"] {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .shop-doc-hero-media,
  .shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-media,
  .shop-doc-hero[data-variant="minimal-signature"] .shop-doc-hero-media,
  .shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-media,
  .shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-media,
  .shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-media,
  .shop-doc-hero[data-variant="gallery-stage"] .shop-doc-hero-media {
    width: 100%;
    min-height: 360px;
    height: 58vh;
    margin: 0;
    order: 1;
  }

  .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="minimal-signature"] .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="split-story"] .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="service-led"] .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy,
  .shop-doc-hero[data-variant="gallery-stage"] .shop-doc-hero-copy {
    width: 100%;
    padding: 34px 20px 40px;
    order: 2;
    border-right: 0;
    background: var(--shop-surface);
  }

  .shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy h1,
  .shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy h2,
  .shop-doc-hero[data-variant="portrait-overlay"] .shop-doc-hero-copy > p {
    color: var(--shop-text);
    text-shadow: none;
  }

  .shop-doc-hero-copy h1,
  .shop-doc-hero-copy h2,
  .shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy h1,
  .shop-doc-hero[data-variant="editorial-masthead"] .shop-doc-hero-copy h2,
  .shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy h1,
  .shop-doc-hero[data-variant="storybook-cover"] .shop-doc-hero-copy h2,
  .shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy h1,
  .shop-doc-hero[data-variant="kinetic-poster"] .shop-doc-hero-copy h2 {
    margin-block: 14px 18px;
    font-size: 40px;
    line-height: 1.04;
  }

  .shop-doc-hero-copy > p {
    font-size: 16px;
  }

  .shop-doc-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 3;
  }

  .shop-doc-meta span:nth-child(2) {
    border-right: 0;
  }

  .shop-doc-meta span {
    padding: 15px 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--shop-text) 13%, transparent);
  }

  .shop-doc-heading {
    margin-bottom: 28px;
  }

  .shop-doc-heading h2,
  .shop-doc-booking .shop-doc-heading h2 {
    font-size: 32px;
  }

  .shop-doc-gallery {
    display: block;
  }

  .shop-doc-work,
  .shop-doc-portfolio[data-variant="case-study"] .shop-doc-work:first-child,
  .shop-doc-portfolio[data-variant="contact-sheet"] .shop-doc-work {
    width: 100%;
    height: 390px;
  }

  .shop-doc-work + .shop-doc-work {
    margin-top: 8px;
  }

  .shop-doc-portfolio[data-variant="film-strip"] .shop-doc-gallery {
    display: flex;
    padding-inline: 16px;
  }

  .shop-doc-portfolio[data-variant="film-strip"] .shop-doc-work {
    width: 82vw;
    height: 430px;
    margin-top: 0;
  }

  .shop-doc-portfolio[data-variant="full-bleed"] .shop-doc-work {
    min-height: 420px;
    height: 62vh;
  }

  .shop-doc-portfolio[data-variant="scrapbook"] {
    padding-inline: 16px;
  }

  .shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-gallery {
    min-height: 0;
  }

  .shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-work,
  .shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-work:nth-child(2n),
  .shop-doc-portfolio[data-variant="scrapbook"] .shop-doc-work:nth-child(3n) {
    height: 430px;
    margin-top: 16px;
    transform: none;
  }

  .shop-doc-service-list,
  .shop-doc-package-list,
  .shop-doc-review-list,
  .shop-doc-reviews[data-variant="quotes"] .shop-doc-review-list,
  .shop-doc-scene-index,
  .shop-doc-narrative-list {
    grid-template-columns: 1fr;
  }

  .shop-doc-service-list article,
  .shop-doc-package-list article,
  .shop-doc-review-list article,
  .shop-doc-scene-index article,
  .shop-doc-narrative-list article,
  .shop-doc-service-list article:nth-child(3n),
  .shop-doc-scene-index article:nth-child(3n) {
    min-height: 150px;
    border-right: 0;
  }

  .shop-doc-booking {
    display: flex;
    width: 100%;
    padding: 52px 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .shop-doc-booking[data-variant="portal"]::before {
    inset: 24px 16px;
  }

  .shop-document[data-section-shape="staggered"] .shop-doc-section[data-offset] {
    transform: none;
  }

  .shop-doc-services[data-variant="ribbon-list"] .shop-doc-service-list article {
    width: 100%;
  }

  .shop-doc-booking-note {
    flex-direction: column;
    gap: 5px;
  }

  .shop-doc-design-note {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .shop-doc-asset-status {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-document[data-motion] .shop-doc-section {
    animation: none;
  }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 250, 247, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 38px rgba(47, 37, 35, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(135deg, var(--teal-dark), var(--rose));
  box-shadow: 0 12px 25px rgba(199, 93, 104, 0.28);
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav::-webkit-scrollbar {
  display: none;
}

.top-nav a {
  position: relative;
  min-width: 78px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.top-nav a[aria-current="page"] {
  color: var(--rose-dark);
  background: rgba(199, 93, 104, 0.1);
}

.top-nav a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--teal));
  content: "";
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--rose-dark);
  background: rgba(199, 93, 104, 0.1);
  outline: none;
}

.hero-band {
  position: relative;
  min-height: 76svh;
  overflow: hidden;
  padding: clamp(58px, 9vh, 88px) clamp(18px, 5vw, 72px) 44px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("assets/hero-beauty-ai.webp");
  background-position: center right;
  background-size: cover;
  transform: scale(1.02);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-band::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.95) 0 32%, rgba(255, 250, 247, 0.7) 44%, rgba(255, 250, 247, 0.1) 75%),
    linear-gradient(180deg, rgba(255, 250, 247, 0.2), rgba(255, 250, 247, 0.88) 96%);
  content: "";
}

.hero-scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent 0, rgba(31, 119, 116, 0.16) 48%, transparent 56%);
  mix-blend-mode: multiply;
  transform: translateX(-60%);
  animation: scanSweep 5.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.hero-gridline {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(31, 119, 116, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 93, 104, 0.12) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, #000 0 48%, transparent 78%);
  animation: gridSlide 18s linear infinite;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(670px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 690px;
  margin-bottom: 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  max-width: 840px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

h4 {
  margin-bottom: 9px;
  font-size: 18px;
}

.hero-copy {
  max-width: 590px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.8;
}

.hero-actions,
.report-actions,
.quick-looks,
.category-bar,
.recommended-products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-proof span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  box-shadow: 0 12px 36px rgba(47, 37, 35, 0.08);
  backdrop-filter: blur(14px);
}

.hero-proof b {
  color: var(--ink);
}

.floating-panel {
  position: absolute;
  z-index: 4;
  width: 168px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  transform:
    translate3d(calc(var(--hero-x, 0) * -16px), calc(var(--hero-y, 0) * -14px), 0);
  animation: panelFloat 4.8s ease-in-out infinite;
}

.floating-panel span,
.floating-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.floating-panel strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1;
}

.floating-panel i {
  display: block;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.floating-panel i::before {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--coral), var(--gold));
  content: "";
  animation: metricPulse 2.8s ease-in-out infinite;
}

.face-panel {
  right: clamp(18px, 17vw, 290px);
  top: 22%;
}

.shop-panel {
  right: clamp(20px, 7vw, 110px);
  top: 48%;
  animation-delay: -1.4s;
}

.look-panel {
  right: clamp(24px, 20vw, 330px);
  bottom: 12%;
  width: 210px;
  animation-delay: -2.7s;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  display: grid;
  width: 34px;
  height: 54px;
  place-items: start center;
  border: 1px solid rgba(47, 37, 35, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.scroll-cue span {
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--rose);
  animation: scrollDot 1.6s ease-in-out infinite;
}

.journey-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 72px) 28px;
  background: #fffaf7;
}

.journey-band article {
  min-height: 148px;
  padding: 24px;
  border: 1px solid var(--soft-line);
  background: rgba(255, 255, 255, 0.72);
}

.journey-band span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.journey-band strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.journey-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.role-entry-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px) 48px;
  background: #fffaf7;
}

.role-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(47, 37, 35, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 246, 243, 0.68)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.role-card.primary-role {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 236, 231, 0.72)),
    #fff8f4;
}

.role-card h2 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 38px);
}

.role-card p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.75;
}

.workspace-band {
  padding: 62px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.analysis-band {
  background:
    linear-gradient(140deg, rgba(255, 250, 247, 0.98), rgba(239, 247, 244, 0.88)),
    var(--canvas);
}

.studio-band {
  background:
    linear-gradient(180deg, #fffdfb, #f7f0eb);
}

.mall-band {
  background:
    linear-gradient(150deg, #eff7f4, #fff8f4 58%, #f5f6f2);
}

.orders-band {
  background: #fffdfb;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto 24px;
}

.section-head .page-title {
  max-width: 840px;
  margin-bottom: 0;
  font-size: 46px;
  line-height: 1.08;
}

.status-strip,
.shop-meta,
.cart-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.status-strip span,
.shop-meta span,
.cart-mini {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(47, 37, 35, 0.06);
  font-size: 13px;
}

.status-strip b,
.shop-meta b,
.cart-mini b,
.cart-mini strong {
  color: var(--ink);
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(370px, 1.08fr) minmax(320px, 0.9fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: stretch;
}

.analysis-band[data-plan-tier="free"] .analysis-grid {
  grid-template-columns: minmax(300px, 0.88fr) minmax(460px, 1.12fr);
}

.tool-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.tool-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--rose), var(--gold));
  content: "";
}

.upload-panel,
.report-panel,
.tryon-panel,
.builder-panel,
.assistant-panel,
.order-form,
.review-form {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.pill,
.product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(31, 119, 116, 0.1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

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

.upload-tile {
  position: relative;
  display: block;
  min-height: 132px;
}

.upload-tile input,
.portfolio-upload input,
.effect-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-slot {
  position: relative;
  display: grid;
  width: 100%;
  height: 132px;
  place-items: end start;
  overflow: hidden;
  border: 1px dashed rgba(31, 119, 116, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 42%, #f2c7b5 0 25%, transparent 26%),
    radial-gradient(circle at 42% 37%, #252223 0 2px, transparent 3px),
    radial-gradient(circle at 58% 37%, #252223 0 2px, transparent 3px),
    linear-gradient(145deg, #fff2ed, #dfeeea);
  color: var(--muted);
  font-size: 13px;
}

.photo-slot::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.46), transparent 54%);
  content: "";
}

.photo-slot span {
  position: relative;
  margin: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.photo-slot.has-image {
  place-items: end start;
  background:
    linear-gradient(145deg, rgba(255, 250, 247, 0.96), rgba(238, 246, 243, 0.86)),
    #fff;
  border-style: solid;
}

.photo-slot.has-image::before {
  display: none;
}

.photo-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background:
    linear-gradient(145deg, rgba(255, 250, 247, 0.92), rgba(238, 246, 243, 0.72)),
    #fff;
}

.photo-slot.has-image > span {
  z-index: 2;
}

.photo-slot.has-image::after {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(31, 119, 116, 0.88);
  color: #fff;
  content: "已上传";
  font-size: 12px;
  font-weight: 900;
}

.photo-remove {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(47, 37, 35, 0.12);
}

.mobile-scan-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid rgba(31, 119, 116, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 246, 243, 0.7)),
    rgba(255, 255, 255, 0.62);
}

.mobile-scan-panel h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.mobile-scan-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mobile-scan-panel img {
  width: 112px;
  height: 112px;
  grid-row: span 3;
  border: 1px solid rgba(47, 37, 35, 0.1);
  border-radius: 8px;
  background: #fff;
}

.mobile-scan-panel a {
  overflow-wrap: anywhere;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-scan-status[data-tone="success"] {
  color: var(--teal-dark);
}

.mobile-scan-status[data-tone="warning"] {
  color: #74521b;
}

.capture-guidance,
.privacy-note {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid rgba(47, 37, 35, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.capture-guidance strong,
.privacy-note strong {
  font-size: 14px;
}

.capture-guidance span,
.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.capture-guidance span::before {
  margin-right: 7px;
  color: var(--teal);
  content: "✓";
  font-weight: 950;
}

.analysis-band[data-plan-tier="free"] [data-member-only],
.analysis-band[data-plan-tier="member"] [data-free-only] {
  display: none !important;
}

.plan-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.plan-card {
  display: grid;
  gap: 7px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(47, 37, 35, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.plan-card span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 950;
}

.member-lock-label {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(47, 37, 35, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.plan-card strong {
  font-size: 16px;
  line-height: 1.35;
}

.plan-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.plan-card.is-selected {
  border-color: rgba(199, 93, 104, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 245, 241, 0.96), rgba(238, 246, 243, 0.78)),
    #fff;
  box-shadow: 0 14px 28px rgba(199, 93, 104, 0.16);
}

.analysis-band[data-membership="active"] .member-lock-label {
  background: rgba(31, 119, 116, 0.12);
  color: var(--teal-dark);
}

.analysis-band[data-membership="locked"] .plan-card[data-plan-tier-button="member"] {
  border-style: dashed;
}

.membership-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(199, 93, 104, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 245, 241, 0.88), rgba(238, 246, 243, 0.72)),
    rgba(255, 255, 255, 0.82);
}

.membership-entry span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(199, 93, 104, 0.1);
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 950;
}

.analysis-band[data-membership="active"] .membership-entry span {
  background: rgba(31, 119, 116, 0.12);
  color: var(--teal-dark);
}

.membership-entry strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.membership-entry p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.member-options {
  margin-bottom: 2px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field label span {
  display: inline-flex;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(199, 93, 104, 0.1);
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 950;
}

.field select,
.field input,
.field textarea,
.chat-input input,
.chat-input textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 37, 35, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.field select:focus,
.field input:focus,
.field textarea:focus,
.chat-input input:focus,
.chat-input textarea:focus {
  border-color: rgba(199, 93, 104, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(199, 93, 104, 0.11);
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.api-config {
  margin: 2px 0 14px;
  border: 1px solid rgba(47, 37, 35, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.api-config summary {
  padding: 12px 13px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.api-config .field {
  margin: 0 13px 12px;
}

.analysis-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(31, 119, 116, 0.14);
  border-radius: 8px;
  background: rgba(31, 119, 116, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.analysis-status[data-tone="success"] {
  border-color: rgba(31, 119, 116, 0.24);
  background: rgba(31, 119, 116, 0.12);
  color: var(--teal-dark);
}

.analysis-status[data-tone="warning"] {
  border-color: rgba(214, 168, 79, 0.32);
  background: rgba(214, 168, 79, 0.12);
  color: #74521b;
}

.analysis-status[data-tone="loading"] {
  border-color: rgba(199, 93, 104, 0.25);
  background: rgba(199, 93, 104, 0.1);
  color: var(--rose-dark);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.chip,
.choice {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.primary-button {
  padding: 11px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 48%),
    linear-gradient(135deg, var(--rose), var(--coral));
  color: #fff;
  box-shadow: 0 14px 26px rgba(199, 93, 104, 0.28);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.chip:hover,
.chip:focus-visible,
.choice:hover,
.choice:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 18px 36px rgba(199, 93, 104, 0.34);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

[aria-busy="true"] {
  cursor: progress;
}

.secondary-button {
  padding: 11px 16px;
  border-color: rgba(31, 119, 116, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-dark);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(31, 119, 116, 0.1);
}

.glass-button {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(14px);
}

.ghost-button {
  padding: 9px 13px;
  border-color: rgba(47, 37, 35, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.icon-button {
  width: 42px;
  padding: 0;
  background: rgba(31, 119, 116, 0.1);
  color: var(--teal-dark);
  font-size: 20px;
}

.compact {
  min-height: 36px;
  padding: 8px 12px;
}

.full-width {
  width: 100%;
}

.score-badge {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(199, 93, 104, 0.24);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 239, 235, 0.9)),
    #fff5f2;
  color: var(--rose);
  box-shadow: 0 14px 28px rgba(199, 93, 104, 0.12);
  font-size: 23px;
  font-weight: 950;
}

.report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.report-summary div,
.recommendation-box {
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.report-summary div {
  min-height: 92px;
  padding: 13px;
}

.report-summary span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.report-summary strong {
  font-size: 17px;
  line-height: 1.35;
}

.metric-list {
  display: grid;
  gap: 13px;
  margin-bottom: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: 118px 1fr 34px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.metric-row i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 37, 35, 0.08);
}

.metric-row i::before {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--rose), var(--gold));
  content: "";
}

.metric-row b {
  color: var(--ink);
  text-align: right;
}

.recommendation-box {
  padding: 17px;
  margin-bottom: 16px;
}

.recommendation-box p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.report-detail-grid article {
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(238, 246, 243, 0.58)),
    rgba(255, 255, 255, 0.62);
}

.report-detail-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
}

.report-detail-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.free-upgrade-box {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(199, 93, 104, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 245, 241, 0.88), rgba(238, 246, 243, 0.68)),
    rgba(255, 255, 255, 0.72);
}

.free-upgrade-box strong {
  color: var(--rose-dark);
  font-size: 16px;
}

.free-upgrade-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.compact-button {
  width: max-content;
  min-height: 38px;
  padding: 9px 14px;
  font-size: 13px;
}

.membership-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(24, 18, 18, 0.38);
  backdrop-filter: blur(10px);
}

.modal-open {
  overflow: hidden;
}

.membership-modal[hidden] {
  display: none;
}

.membership-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 250, 247, 0.97), rgba(239, 248, 244, 0.92)),
    #fff;
  box-shadow: 0 30px 80px rgba(47, 37, 35, 0.22);
}

.membership-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.08;
}

.membership-dialog-copy,
.membership-dialog small {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.membership-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.membership-benefits span {
  padding: 8px 10px;
  border: 1px solid rgba(199, 93, 104, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 900;
}

.membership-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0 4px;
}

.membership-price strong {
  color: var(--rose-dark);
  font-size: 36px;
  line-height: 1;
}

.membership-price span {
  color: var(--muted);
  font-weight: 800;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.look-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.look-plan-grid article {
  padding: 13px;
  border: 1px solid rgba(199, 93, 104, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 244, 0.74);
}

.look-plan-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 950;
}

.look-plan-grid strong {
  font-size: 14px;
  line-height: 1.5;
}

.tryon-panel {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto auto;
}

.tryon-stage {
  display: grid;
  min-height: 344px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 119, 116, 0.12), rgba(232, 137, 115, 0.14)),
    #fff7f1;
}

.demo-face {
  position: relative;
  display: grid;
  width: min(88%, 330px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 38%, rgba(199, 93, 104, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 250, 247, 0.96), rgba(238, 246, 243, 0.86));
  box-shadow: var(--shadow);
  isolation: isolate;
  animation: faceGlow 3.8s ease-in-out infinite;
}

.demo-face::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 34%);
  content: "";
  pointer-events: none;
}

.demo-face.has-photo {
  border-radius: 8px;
  background: #fff;
}

.demo-face img {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background:
    linear-gradient(145deg, rgba(255, 250, 247, 0.96), rgba(238, 246, 243, 0.86)),
    #fff;
}

.demo-face.has-photo img {
  display: block;
}

#tryonCanvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tryon-placeholder {
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.demo-face.has-photo .tryon-placeholder {
  display: none;
}

.tryon-engine {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(47, 37, 35, 0.1);
}

.tryon-engine[data-tone="success"] {
  color: var(--teal-dark);
}

.tryon-engine[data-tone="warning"] {
  color: #74521b;
}

.slider-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 46px;
  gap: 10px;
  align-items: center;
  margin: 15px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input[type="range"] {
  accent-color: var(--rose);
}

.chip {
  padding: 8px 12px;
  border-color: rgba(47, 37, 35, 0.11);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
}

.chip.is-active,
.chip:hover,
.chip:focus-visible {
  border-color: rgba(199, 93, 104, 0.34);
  background: rgba(199, 93, 104, 0.11);
  color: var(--rose-dark);
}

.analysis-flow {
  display: grid;
  grid-template-columns: auto minmax(38px, 1fr) auto minmax(38px, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 38px rgba(47, 37, 35, 0.07);
}

.analysis-flow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.analysis-flow b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--rose));
  color: #fff;
  font-size: 12px;
}

.analysis-flow i {
  height: 1px;
  background: linear-gradient(90deg, rgba(31, 119, 116, 0.26), rgba(199, 93, 104, 0.26));
}

.analysis-workbench {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 240, 0.58)),
    radial-gradient(circle at 70% 12%, rgba(31, 119, 116, 0.1), transparent 34%);
  box-shadow: var(--shadow);
}

.analysis-workbench .tool-panel {
  border-color: rgba(47, 37, 35, 0.07);
  box-shadow: 0 14px 30px rgba(47, 37, 35, 0.07);
}

.analysis-studio {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(199, 93, 104, 0.08), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(31, 119, 116, 0.11), transparent 34%),
    linear-gradient(140deg, rgba(255, 250, 247, 0.98), rgba(240, 247, 244, 0.92)),
    var(--canvas);
}

.analysis-studio::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.96) 0 42%, rgba(255, 250, 247, 0.58) 72%, rgba(238, 246, 243, 0.36) 100%),
    url("assets/analysis-ai-face-bg.webp") right top / min(1120px, 78vw) auto no-repeat;
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.analysis-studio > * {
  position: relative;
  z-index: 1;
}

.analysis-titlebar,
.agent-head {
  align-items: center;
}

.analysis-titlebar h1,
.agent-head h1 {
  max-width: 780px;
  margin: 5px 0 10px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.98;
}

.analysis-titlebar p:not(.eyebrow),
.agent-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.analysis-stepper {
  max-width: 1440px;
  margin-bottom: 16px;
}

.analysis-command-center,
.analysis-results {
  display: grid;
  max-width: 1440px;
  margin: 0 auto;
}

.analysis-command-center {
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

.capture-studio {
  min-height: 520px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 246, 242, 0.62)),
    rgba(255, 255, 255, 0.74);
}

.capture-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.face-capture-grid {
  grid-template-columns: minmax(260px, 1.1fr) minmax(180px, 0.72fr);
  grid-auto-rows: minmax(124px, auto);
  gap: 12px;
  margin: 0;
}

.face-capture-grid .main-angle {
  grid-row: span 3;
  min-height: 408px;
}

.face-capture-grid .main-angle .photo-slot {
  height: 100%;
  min-height: 408px;
  background:
    radial-gradient(ellipse at 50% 38%, #f0c4b1 0 23%, transparent 24%),
    radial-gradient(circle at 42% 34%, #252223 0 1.5%, transparent 2%),
    radial-gradient(circle at 58% 34%, #252223 0 1.5%, transparent 2%),
    linear-gradient(145deg, #fff2ed, #dfeeea);
}

.capture-support {
  display: grid;
  gap: 14px;
  align-content: stretch;
}

.capture-support .mobile-scan-panel,
.capture-support .capture-guidance {
  margin: 0;
}

.capture-support .capture-guidance {
  align-content: start;
}

.analysis-control-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(238, 246, 243, 0.58)),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
}

.analysis-control-panel .plan-selector {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.analysis-control-panel .plan-card {
  min-height: 126px;
}

.analysis-control-panel .member-options {
  padding: 14px 14px 0;
  border: 1px solid rgba(199, 93, 104, 0.12);
  border-radius: 8px;
  background: rgba(255, 248, 244, 0.64);
}

.analysis-control-panel .privacy-note {
  margin: 0;
}

.analysis-control-panel .analysis-status {
  margin-top: 0;
}

.analysis-results {
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.analysis-band[data-plan-tier="free"] .analysis-results {
  grid-template-columns: 1fr;
}

.report-canvas {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 248, 0.72)),
    rgba(255, 255, 255, 0.78);
}

.report-hero-head {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(47, 37, 35, 0.08);
}

.report-hero-head h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.report-canvas .report-summary {
  margin-top: 18px;
}

.report-canvas .metric-list {
  padding: 16px;
  border: 1px solid rgba(47, 37, 35, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.54);
}

.tryon-dock {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.booking-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto 18px;
}

.booking-filter {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-soft);
}

.booking-filter strong {
  font-size: 18px;
}

.booking-filter div {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid rgba(47, 37, 35, 0.08);
}

.booking-filter span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.artist-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.artist-card {
  overflow: hidden;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(47, 37, 35, 0.08);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.artist-card:hover,
.artist-card:focus-within,
.artist-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(199, 93, 104, 0.34);
  box-shadow: 0 22px 46px rgba(47, 37, 35, 0.13);
}

.artist-cover {
  min-height: 168px;
  background:
    radial-gradient(circle at 50% 34%, rgba(246, 205, 185, 0.96) 0 18%, transparent 19%),
    radial-gradient(circle at 44% 33%, rgba(42, 38, 38, 0.82) 0 1.4%, transparent 1.8%),
    radial-gradient(circle at 57% 33%, rgba(42, 38, 38, 0.82) 0 1.4%, transparent 1.8%),
    linear-gradient(135deg, #f7dfd8, #e7f1ee 58%, #d6a84f);
}

.artist-cover.luxury {
  background:
    radial-gradient(circle at 50% 34%, rgba(244, 210, 191, 0.96) 0 18%, transparent 19%),
    linear-gradient(135deg, #f7eee7, #d6a84f 52%, #2f2a28);
}

.artist-cover.editorial {
  background:
    radial-gradient(circle at 50% 34%, rgba(232, 189, 176, 0.96) 0 18%, transparent 19%),
    linear-gradient(135deg, #25272b, #8aa3a0 50%, #c75d68);
}

.artist-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.artist-body > span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
}

.artist-body h3 {
  margin: 0;
  font-size: 22px;
}

.artist-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.artist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.artist-meta b {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 119, 116, 0.08);
  color: var(--teal-dark);
  font-size: 12px;
}

.shop-homepage {
  max-width: 1440px;
  margin: 0 auto;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr) minmax(240px, 0.72fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.onboarding-note {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(231, 241, 238, 0.7)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.onboarding-note strong {
  font-size: 22px;
}

.onboarding-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.agent-band {
  background:
    linear-gradient(120deg, rgba(255, 250, 247, 0.96), rgba(238, 247, 244, 0.82)),
    var(--surface);
}

.agent-head h1 {
  max-width: 820px;
}

.agent-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(300px, 0.86fr) minmax(420px, 1.2fr) minmax(300px, 0.88fr);
  gap: 16px;
  align-items: start;
  max-width: 1560px;
  margin: 0 auto;
}

.agent-workspace .tool-panel {
  min-width: 0;
}

.agent-brief-panel,
.draft-board,
.agent-control-panel {
  padding: 20px;
}

.agent-brief-panel {
  position: sticky;
  top: 92px;
}

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

.helper-text {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.agent-upload {
  min-height: 92px;
  margin-bottom: 10px;
}

.draft-grid {
  display: grid;
  gap: 12px;
}

.draft-empty,
.draft-card {
  padding: 16px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.draft-empty p,
.draft-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.draft-card {
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.draft-card:hover,
.draft-card.is-selected {
  border-color: rgba(199, 93, 104, 0.42);
  box-shadow: 0 18px 40px rgba(199, 93, 104, 0.13);
  transform: translateY(-2px);
}

.draft-card.is-selected {
  background:
    linear-gradient(145deg, rgba(255, 244, 241, 0.92), rgba(239, 248, 246, 0.82)),
    #fff;
}

.draft-card header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.draft-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

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

.draft-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(31, 119, 116, 0.08);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.agent-preview {
  min-width: 0;
}

.agent-preview .shop-hero {
  min-height: 270px;
}

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

.agent-insight {
  margin: 18px 18px 0;
  padding: 14px;
  border: 1px solid rgba(31, 119, 116, 0.15);
  border-radius: 8px;
  background: rgba(231, 241, 238, 0.68);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.65;
}

.generated-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 18px 0;
}

.generated-sections:empty {
  display: none;
}

.generated-section-card {
  min-height: 112px;
  padding: 13px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(238, 246, 243, 0.58)),
    rgba(255, 255, 255, 0.7);
}

.generated-section-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 950;
}

.generated-section-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.35;
}

.generated-section-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.shop-preview[data-layout="portfolio-first"] .generated-sections,
.shop-preview[data-layout="editorial-cover"] .generated-sections {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.shop-preview[data-layout="scenario"] .generated-section-card,
.shop-preview[data-layout="conversion"] .generated-section-card {
  background:
    linear-gradient(145deg, rgba(255, 248, 244, 0.82), rgba(255, 255, 255, 0.72)),
    rgba(255, 255, 255, 0.7);
}

.publish-panel,
.version-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(47, 37, 35, 0.08);
}

.publish-panel p,
.version-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.version-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.version-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.version-item.is-previewed {
  border-color: rgba(24, 119, 111, 0.38);
  box-shadow: inset 3px 0 0 var(--teal);
}

.version-item__copy {
  min-width: 0;
}

.version-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.version-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.version-delta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.version-delta em {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(24, 119, 111, 0.08);
  color: var(--teal-deep);
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.version-actions {
  display: flex;
  gap: 5px;
}

.version-actions .compact {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}

.version-preview-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 12px 0;
  border-block: 1px solid rgba(24, 119, 111, 0.18);
}

.version-preview-bar[hidden] {
  display: none;
}

.version-preview-bar span {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 900;
}

.version-preview-bar strong {
  display: block;
  font-size: 13px;
}

.version-preview-bar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.agent-studio {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(214, 168, 79, 0.12), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(199, 93, 104, 0.12), transparent 34%),
    linear-gradient(120deg, rgba(255, 250, 247, 0.96), rgba(238, 247, 244, 0.86)),
    var(--surface);
}

.agent-studio::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.98) 0 36%, rgba(255, 250, 247, 0.7) 62%, rgba(238, 247, 244, 0.42) 100%),
    url("assets/artist-studio-bg.webp") right top / min(1180px, 82vw) auto no-repeat;
  content: "";
  opacity: 0.58;
  pointer-events: none;
}

.agent-studio > * {
  position: relative;
  z-index: 1;
}

.agent-studio-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1520px;
}

.agent-studio-shell .agent-brief-panel {
  position: static;
}

.agent-studio-shell .agent-brief-panel,
.agent-studio-shell .draft-board,
.agent-production-area .assistant-panel {
  padding: 22px;
}

.brief-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.1fr) minmax(250px, 0.74fr);
  gap: 18px;
  align-items: start;
}

.brief-preferences {
  display: grid;
  gap: 8px;
}

.brief-preferences .choice-group {
  margin-bottom: 0;
}

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

.brief-assets {
  display: grid;
  gap: 10px;
}

.brief-assets .agent-upload,
.brief-assets .helper-text {
  margin: 0;
}

.draft-board {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 246, 242, 0.62)),
    rgba(255, 255, 255, 0.72);
}

.draft-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.draft-empty {
  grid-column: 1 / -1;
  min-height: 120px;
}

.draft-card {
  min-height: 230px;
  align-content: start;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(238, 246, 243, 0.56)),
    rgba(255, 255, 255, 0.72);
}

.draft-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.agent-production-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 18px;
  align-items: start;
}

.agent-production-area .agent-preview {
  min-height: 780px;
}

.agent-production-area .agent-preview .shop-hero {
  min-height: 330px;
}

.agent-production-area .agent-control-panel {
  position: sticky;
  top: 92px;
}

.agent-production-area .chat-log {
  min-height: 220px;
  max-height: 300px;
}

.booking-only {
  align-items: start;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.shop-page-band {
  padding-bottom: 28px;
}

.shop-page-band .shop-homepage {
  margin-top: 0;
}

.shop-hero h1 {
  max-width: 620px;
  margin: 0 0 9px;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.02;
}

.shop-order-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.payment-panel {
  padding: 20px;
}

.order-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.order-steps li {
  position: relative;
  padding: 11px 12px 11px 36px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.order-steps li::before {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(47, 37, 35, 0.18);
  border-radius: 999px;
  content: "";
  transform: translateY(-50%);
}

.order-steps li.is-active {
  border-color: rgba(31, 119, 116, 0.22);
  background: rgba(31, 119, 116, 0.08);
  color: var(--teal-dark);
}

.order-steps li.is-active::before {
  border-color: var(--teal);
  background: var(--teal);
}

.payment-panel button + button {
  margin-top: 10px;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(24, 22, 22, 0.42);
  backdrop-filter: blur(10px);
}

.review-modal.is-open {
  display: grid;
}

.review-modal .review-form {
  width: min(560px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  background: rgba(255, 250, 247, 0.96);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(430px, 1.34fr) minmax(280px, 0.84fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.choice-group > span {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.choice {
  min-height: 38px;
  padding: 8px 11px;
  border-color: rgba(47, 37, 35, 0.11);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
}

.choice.is-selected {
  border-color: rgba(31, 119, 116, 0.34);
  background: rgba(31, 119, 116, 0.1);
  color: var(--teal-dark);
}

.portfolio-upload {
  display: grid;
  min-height: 78px;
  place-items: center;
  margin: 8px 0 14px;
  border: 1px dashed rgba(199, 93, 104, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 238, 232, 0.72)),
    #fff;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.shop-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 251, 247, 0.86);
  box-shadow: var(--shadow);
}

.shop-preview[data-tone="clean"] {
  background: #fcfcfb;
}

.shop-preview[data-tone="dark"] {
  background: #282623;
  color: #fff;
}

.shop-preview {
  --shop-primary: #f6d8c8;
  --shop-secondary: #fff7f1;
  --shop-accent: #d98c73;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 250px;
  padding: 26px;
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.92), rgba(255, 250, 246, 0.48)),
    linear-gradient(135deg, #f7d8cc, #e7f1ee 58%, #f2c988);
}

.shop-preview[data-ai-visual="true"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.92), rgba(255, 250, 246, 0.38)),
    linear-gradient(135deg, var(--shop-primary), var(--shop-secondary) 56%, var(--shop-accent));
}

.shop-preview[data-style="luxury"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(250, 247, 241, 0.94), rgba(250, 247, 241, 0.44)),
    linear-gradient(135deg, #2f2a28, #d6a84f);
}

.shop-preview[data-style="oriental"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(252, 248, 240, 0.94), rgba(252, 248, 240, 0.45)),
    linear-gradient(135deg, #bd6b58, #ece0c9 55%, #3c6765);
}

.shop-preview[data-style="editorial"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(246, 247, 245, 0.88), rgba(246, 247, 245, 0.22)),
    linear-gradient(135deg, #2e3338, #aab2b6 54%, #c75d68);
}

.shop-preview[data-ai-visual="true"][data-style="luxury"] .shop-hero,
.shop-preview[data-ai-visual="true"][data-style="oriental"] .shop-hero,
.shop-preview[data-ai-visual="true"][data-style="editorial"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 246, 0.9), rgba(255, 250, 246, 0.26)),
    linear-gradient(135deg, var(--shop-primary), var(--shop-secondary) 52%, var(--shop-accent));
}

.shop-preview[data-ai-visual="true"][data-visual-mood="cyber"] .shop-hero {
  min-height: 340px;
  background:
    linear-gradient(90deg, rgba(5, 8, 18, 0.94) 0%, rgba(5, 8, 18, 0.78) 42%, rgba(5, 8, 18, 0.12) 72%),
    url("assets/shop-cyberpunk-studio.webp") center / cover no-repeat;
  color: #fff;
}

.shop-preview[data-visual-mood="cyber"] .shop-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.shop-preview[data-visual-mood="cyber"] .shop-label {
  border: 1px solid rgba(99, 216, 232, 0.42);
  background: rgba(8, 10, 18, 0.72);
  color: #9eeef4;
}

.shop-preview[data-layout="editorial-cover"] .shop-hero {
  min-height: 340px;
  align-items: center;
}

.shop-preview[data-layout="editorial-cover"] .shop-hero h1,
.shop-preview[data-layout="editorial-cover"] .shop-hero h3 {
  max-width: 760px;
  font-size: clamp(40px, 6.4vw, 78px);
  letter-spacing: 0;
}

.shop-preview[data-layout="portfolio-first"] .shop-hero,
.shop-preview[data-layout="profile-card"] .shop-hero {
  min-height: 220px;
}

.shop-preview[data-layout="scenario"] .shop-hero {
  min-height: 300px;
}

.shop-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.shop-hero h3 {
  max-width: 560px;
  margin-bottom: 9px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
}

.shop-hero p {
  max-width: 520px;
  margin-bottom: 0;
  color: #4f555d;
  line-height: 1.72;
}

.shop-preview[data-tone="dark"] .shop-hero p {
  color: #e7e3dd;
}

.shop-meta {
  justify-content: flex-start;
  padding: 15px 18px 0;
}

.agent-design-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  margin: 16px 18px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(47, 37, 35, 0.08);
  border-bottom: 1px solid rgba(47, 37, 35, 0.08);
}

.agent-design-summary span {
  grid-row: 1 / span 2;
  align-self: start;
  padding: 5px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--shop-accent) 16%, white);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 950;
}

.agent-design-summary strong {
  line-height: 1.55;
}

.agent-design-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-conversion,
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 18px 0;
}

.service-conversion article,
.package-grid article {
  padding: 14px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.service-conversion span,
.package-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.service-conversion strong,
.package-grid strong {
  line-height: 1.45;
}

.package-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.shop-preview[data-layout="portfolio-first"] .portfolio-grid,
.shop-preview[data-layout="editorial-cover"] .portfolio-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  align-items: stretch;
}

.shop-preview[data-layout="portfolio-first"] .portfolio-grid .portfolio-card:first-child,
.shop-preview[data-layout="editorial-cover"] .portfolio-grid .portfolio-card:first-child {
  grid-row: span 2;
  min-height: 330px;
}

.shop-preview[data-layout="scenario"] .generated-sections {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-preview[data-layout="scenario"] .generated-section-card:first-child {
  grid-column: 1 / -1;
}

.shop-preview[data-layout="profile-card"] .package-grid article,
.shop-preview[data-layout="profile-card"] .service-conversion article {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 232, 0.72)),
    rgba(255, 255, 255, 0.74);
}

.portfolio-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 8px;
  background: #eee;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(47, 37, 35, 0.16);
}

.portfolio-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 229, 213, 0.98) 0 17%, transparent 18%),
    radial-gradient(circle at 43% 31%, rgba(42, 38, 38, 0.8) 0 1.6%, transparent 2%),
    radial-gradient(circle at 57% 31%, rgba(42, 38, 38, 0.8) 0 1.6%, transparent 2%),
    radial-gradient(ellipse at 50% 50%, rgba(199, 93, 104, 0.36) 0 8%, transparent 9%),
    linear-gradient(135deg, #f0d3c8, #c75d68);
  content: "";
}

.portfolio-card.photo::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(239, 198, 177, 0.96) 0 17%, transparent 18%),
    radial-gradient(circle at 45% 31%, rgba(42, 38, 38, 0.8) 0 1.6%, transparent 2%),
    radial-gradient(circle at 56% 31%, rgba(42, 38, 38, 0.8) 0 1.6%, transparent 2%),
    linear-gradient(135deg, #eaf3f0, #1f7774);
}

.portfolio-card.date::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(246, 205, 185, 0.96) 0 17%, transparent 18%),
    radial-gradient(circle at 45% 31%, rgba(42, 38, 38, 0.8) 0 1.6%, transparent 2%),
    radial-gradient(circle at 56% 31%, rgba(42, 38, 38, 0.8) 0 1.6%, transparent 2%),
    linear-gradient(135deg, #f7dfd8, #d6a84f);
}

.portfolio-card.has-image::before {
  display: none;
}

.portfolio-card.has-image {
  background-position: center;
  background-size: cover;
}

.portfolio-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 950;
}

.reviews-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 18px 18px;
}

.reviews-row article {
  padding: 14px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.reviews-row strong,
.reviews-row span {
  display: block;
}

.reviews-row strong {
  margin-bottom: 8px;
  line-height: 1.5;
}

.reviews-row span {
  color: var(--muted);
  font-size: 13px;
}

.shop-preview[data-visual-mood="cyber"] .service-conversion article,
.shop-preview[data-visual-mood="cyber"] .package-grid article,
.shop-preview[data-visual-mood="cyber"] .reviews-row article {
  border-color: rgba(99, 216, 232, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.08);
}

.chat-log {
  display: grid;
  gap: 10px;
  min-height: 278px;
  max-height: 348px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 245, 241, 0.6)),
    #fff;
}

.chat-log p {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  box-shadow: 0 8px 18px rgba(47, 37, 35, 0.05);
  line-height: 1.65;
}

.chat-log p.user-msg {
  background: rgba(31, 119, 116, 0.1);
  color: var(--teal-dark);
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 12px;
}

.category-bar {
  max-width: 1440px;
  margin: 0 auto 16px;
}

.mall-layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.recommended-strip {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.recommended-strip span,
.recommended-strip strong {
  display: block;
}

.recommended-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.recommended-strip strong {
  margin: 7px 0 14px;
  font-size: 21px;
}

.recommended-strip p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.recommended-strip > small {
  display: block;
  margin: -6px 0 14px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.recommended-products {
  display: grid;
}

.recommended-products button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: auto;
  padding: 10px 12px;
  border: 1px solid rgba(47, 37, 35, 0.08);
  border-radius: 8px;
  background: rgba(255, 250, 247, 0.88);
  color: var(--ink);
  text-align: left;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed rgba(47, 37, 35, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.product-card {
  display: grid;
  grid-template-rows: 168px auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(47, 37, 35, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(47, 37, 35, 0.14);
}

.product-visual {
  position: relative;
  overflow: hidden;
  background: #f6ece7;
}

.product-visual::before {
  position: absolute;
  inset: 21% 36% 11%;
  border-radius: 14px 14px 24px 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(199, 93, 104, 0.24));
  box-shadow:
    0 -18px 0 -8px rgba(31, 119, 116, 0.82),
    0 18px 28px rgba(47, 37, 35, 0.13);
  content: "";
}

.product-visual::after {
  position: absolute;
  inset: auto 24px 18px;
  height: 10px;
  border-radius: 50%;
  background: rgba(47, 37, 35, 0.12);
  content: "";
}

.product-card[data-category="lip"] .product-visual {
  background: linear-gradient(135deg, #f7d5d1, #bd5663);
}

.product-card[data-category="lip"] .product-visual::before {
  inset: 28% 43% 15%;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(#622d36 0 34%, #f0c5b5 34% 42%, #1f282b 42% 100%);
}

.product-card[data-category="eye"] .product-visual {
  background: linear-gradient(135deg, #e9f2f0, #758a8b);
}

.product-card[data-category="eye"] .product-visual::before {
  inset: 30% 24% 35%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4d8c8, #7e5d52, #d6a84f, #273436);
}

.product-card[data-category="cheek"] .product-visual {
  background: linear-gradient(135deg, #f8e9df, #d6a84f);
}

.product-card[data-category="cheek"] .product-visual::before {
  inset: 24% 30% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, #d97176 0 45%, #fff 46% 56%, #c75d68 57%);
}

.product-card[data-category="tool"] .product-visual {
  background: linear-gradient(135deg, #edf0f2, #d9c2ad);
}

.product-card[data-category="tool"] .product-visual::before {
  inset: 18% 47% 12%;
  border-radius: 999px;
  background: linear-gradient(#5a4740 0 28%, #d6a84f 28% 42%, #252220 42%);
  transform: rotate(16deg);
}

.product-body {
  display: grid;
  gap: 9px;
  padding: 13px;
}

.product-body h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.commerce-band {
  padding: 42px clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(47, 37, 35, 0.08);
  background: #fffdfb;
}

.order-center-band {
  background: #f5f8f6;
}

.commerce-head,
.cart-lines,
.cart-summary-line,
.mall-order-list {
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

.commerce-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

.section-note {
  margin: 0;
  color: var(--muted);
}

.cart-lines {
  border-top: 1px solid rgba(47, 37, 35, 0.1);
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(47, 37, 35, 0.1);
}

.cart-line-copy {
  min-width: 0;
}

.cart-line-copy strong,
.cart-line-copy span {
  display: block;
}

.cart-line-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  border: 1px solid rgba(47, 37, 35, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-stepper button {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
}

.quantity-stepper output {
  text-align: center;
  font-weight: 800;
}

.cart-line-total {
  min-width: 74px;
  text-align: right;
}

.icon-text-button {
  min-height: 34px;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: var(--rose-dark);
  font-weight: 800;
}

.cart-summary-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding-top: 20px;
}

.cart-summary-line strong {
  font-size: 24px;
}

.checkout-dialog {
  width: min(620px, calc(100vw - 32px));
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-fields label,
.product-review-dialog label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-fields .full-field {
  grid-column: 1 / -1;
}

.checkout-fields input,
.checkout-fields textarea,
.product-review-dialog select,
.product-review-dialog textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(47, 37, 35, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.checkout-fields textarea,
.product-review-dialog textarea {
  min-height: 92px;
  resize: vertical;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(47, 37, 35, 0.12);
  border-radius: 8px;
}

.payment-methods legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.payment-methods label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px solid rgba(47, 37, 35, 0.1);
}

.checkout-total strong {
  font-size: 26px;
}

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

.mall-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.7fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(47, 37, 35, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.mall-order-main,
.mall-order-progress {
  min-width: 0;
}

.mall-order-main header,
.mall-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mall-order-main h3 {
  margin: 0;
  font-size: 17px;
}

.order-status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 119, 116, 0.1);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.mall-order-main p,
.mall-order-progress p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.mall-order-progress strong {
  font-size: 18px;
}

.mall-order-actions {
  justify-content: flex-end;
}

.product-review-dialog {
  width: min(520px, calc(100vw - 32px));
}

.product-body p {
  margin: 0;
  min-height: 43px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.product-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.price {
  color: var(--rose);
  font-size: 18px;
  font-weight: 950;
}

.orders-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(260px, 0.8fr) minmax(380px, 1.2fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
}

.effect-upload {
  display: grid;
  min-height: 184px;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px dashed rgba(31, 119, 116, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(199, 93, 104, 0.22) 0 18%, transparent 19%),
    linear-gradient(135deg, #fff1ec, #e7f4f1);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.effect-upload.has-image {
  background-position: center;
  background-size: cover;
}

.effect-upload.has-image span {
  align-self: end;
  margin: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.rating-control {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}

.rating-control button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(47, 37, 35, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #b9b2ae;
  font-size: 20px;
}

.rating-control button.is-active {
  color: var(--gold);
  background: rgba(214, 168, 79, 0.12);
}

.review-wall {
  display: grid;
  gap: 12px;
  align-content: start;
}

.review-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card span {
  margin: 5px 0 8px;
  color: var(--gold);
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.review-photo {
  min-height: 120px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, #f3c6ad 0 18%, transparent 19%),
    linear-gradient(135deg, #f5dcd3, #c75d68);
}

.review-b {
  background:
    radial-gradient(circle at 50% 34%, #e9b99d 0 18%, transparent 19%),
    linear-gradient(135deg, #edf5f2, #1f7774);
}

.review-photo.has-image {
  background-position: center;
  background-size: cover;
}

.artist-cover,
.portfolio-card::before,
.product-visual {
  background-size: cover;
  background-position: center;
}

.artist-cover {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 247, 0.04), rgba(24, 22, 22, 0.2)),
    url("assets/portfolio-interview-clean.webp");
  background-position: center 28%;
}

.artist-cover.luxury {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 247, 0.05), rgba(24, 22, 22, 0.18)),
    url("assets/portfolio-bridal-soft.webp");
  background-position: center 20%;
}

.artist-cover.editorial {
  background-image:
    linear-gradient(180deg, rgba(255, 250, 247, 0.02), rgba(24, 22, 22, 0.28)),
    url("assets/portfolio-evening-editorial.webp");
  background-position: center 20%;
}

.portfolio-card.bridal::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(24, 22, 22, 0.16)),
    url("assets/portfolio-bridal-soft.webp");
  background-position: center 18%;
}

.portfolio-card.photo::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(24, 22, 22, 0.16)),
    url("assets/portfolio-interview-clean.webp");
  background-position: center 22%;
}

.portfolio-card.date::before {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(24, 22, 22, 0.2)),
    url("assets/portfolio-evening-editorial.webp");
  background-position: center 18%;
}

.product-visual,
.product-card[data-category="lip"] .product-visual,
.product-card[data-category="eye"] .product-visual,
.product-card[data-category="cheek"] .product-visual,
.product-card[data-category="tool"] .product-visual {
  background-image:
    linear-gradient(135deg, rgba(255, 250, 247, 0.16), rgba(31, 119, 116, 0.1)),
    url("assets/cosmetics-flatlay-premium.webp");
}

.product-visual::before,
.product-visual::after {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0, rgba(199, 93, 104, 0.11), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 251, 0.96), rgba(238, 246, 243, 0.92));
  padding: 42px 5vw 34px;
}

.mobile-capture-body {
  min-height: 100svh;
  background:
    radial-gradient(circle at 20% 0, rgba(199, 93, 104, 0.16), transparent 34%),
    linear-gradient(180deg, #fffaf7 0, #eef6f3 100%);
}

.mobile-capture-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 22px;
}

.mobile-capture-card {
  width: min(100%, 560px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.mobile-capture-footer {
  padding: 12px 22px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.mobile-capture-footer a {
  color: var(--teal-dark);
}

.mobile-capture-head {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-capture-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(30px, 9vw, 48px);
  line-height: 0.95;
}

.mobile-capture-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.mobile-shot {
  position: relative;
  min-height: 142px;
}

.mobile-shot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mobile-shot span {
  display: grid;
  width: 100%;
  height: 142px;
  place-items: end start;
  padding: 10px;
  overflow: hidden;
  border: 1px dashed rgba(31, 119, 116, 0.34);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 50% 42%, #f2c7b5 0 25%, transparent 26%),
    linear-gradient(145deg, #fff2ed, #dfeeea);
  color: var(--ink);
  font-weight: 900;
}

.mobile-shot span.has-image {
  background-position: center;
  background-size: cover;
  border-style: solid;
  color: #fff;
  text-shadow: 0 1px 8px rgba(24, 22, 22, 0.65);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.footer-brand p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-grid section {
  min-width: 0;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--ink);
}

.footer-grid p,
.footer-grid a {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-decoration: none;
}

.footer-grid a {
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 700;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--rose-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(10px);
  animation: toastIn 260ms ease-out forwards;
}

.toast[data-tone="success"] {
  border-color: rgba(31, 119, 116, 0.24);
  color: var(--teal-dark);
}

.toast[data-tone="warning"],
.toast[data-tone="error"] {
  border-color: rgba(199, 93, 104, 0.28);
  color: var(--rose-dark);
}

.toast.is-leaving {
  animation: toastOut 220ms ease-in forwards;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-18px, -10px, 0);
  }
}

@keyframes scanSweep {
  0%,
  16% {
    transform: translateX(-60%);
    opacity: 0;
  }
  28%,
  74% {
    opacity: 1;
  }
  100% {
    transform: translateX(62%);
    opacity: 0;
  }
}

@keyframes gridSlide {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 58px 58px;
  }
}

@keyframes panelFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes metricPulse {
  0%,
  100% {
    transform: translateX(-8%);
  }
  50% {
    transform: translateX(0);
  }
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes faceGlow {
  0%,
  100% {
    box-shadow: 0 22px 70px rgba(47, 37, 35, 0.14);
  }
  50% {
    box-shadow: 0 22px 70px rgba(199, 93, 104, 0.22);
  }
}

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

/* Directory grid conflict guards. */
.artist-directory .artist-card {
  min-height: 0;
}

.artist-directory .artist-cover {
  min-height: 0;
  aspect-ratio: auto;
}

.artist-directory .artist-body {
  position: relative;
  z-index: 1;
  gap: 8px;
  overflow: hidden;
  background: var(--paper);
}

.artist-directory .artist-card:nth-child(1) .artist-cover {
  height: 278px;
}

.artist-directory .artist-card:nth-child(2),
.artist-directory .artist-card:nth-child(3) {
  grid-template-rows: minmax(0, 1fr);
}

.artist-directory .artist-card:nth-child(2) .artist-cover,
.artist-directory .artist-card:nth-child(3) .artist-cover {
  height: 232px;
}

.artist-directory .artist-card:nth-child(2) .artist-body,
.artist-directory .artist-card:nth-child(3) .artist-body {
  padding: 15px;
}

.artist-directory .artist-card:nth-child(2) .artist-body h3,
.artist-directory .artist-card:nth-child(3) .artist-body h3 {
  font-size: 19px;
}

.artist-directory .artist-card:nth-child(2) .artist-body p,
.artist-directory .artist-card:nth-child(3) .artist-body p {
  font-size: 12px;
  line-height: 1.55;
}

.artist-directory .artist-card:nth-child(2) .artist-meta,
.artist-directory .artist-card:nth-child(3) .artist-meta {
  gap: 4px;
}

.artist-directory .artist-card:nth-child(2) .artist-meta b,
.artist-directory .artist-card:nth-child(3) .artist-meta b {
  padding: 4px 6px;
  font-size: 10px;
}

.artist-directory .artist-card:nth-child(2) .secondary-button,
.artist-directory .artist-card:nth-child(3) .secondary-button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .artist-directory .artist-card:nth-child(1) .artist-cover,
  .artist-directory .artist-card:nth-child(2) .artist-cover,
  .artist-directory .artist-card:nth-child(3) .artist-cover {
    height: 260px;
  }
}

@media (max-width: 580px) {
  .artist-directory .artist-card:nth-child(1) .artist-cover,
  .artist-directory .artist-card:nth-child(2) .artist-cover,
  .artist-directory .artist-card:nth-child(3) .artist-cover {
    height: 300px;
  }
}

@media (max-width: 1180px) {
  .analysis-grid,
  .studio-grid,
  .orders-grid,
  .booking-shell,
  .onboarding-grid,
  .agent-workspace,
  .shop-order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tryon-panel,
  .assistant-panel,
  .agent-preview,
  .review-wall,
  .booking-filter,
  .onboarding-note,
  .shop-order-grid .review-wall {
    grid-column: 1 / -1;
  }

  .booking-filter,
  .agent-brief-panel {
    position: static;
  }

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

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

  .floating-panel {
    opacity: 0.92;
  }
}

@media (max-width: 900px) {
  .app-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero-band {
    min-height: 76svh;
    padding-top: 56px;
  }

  .hero-band::before {
    background:
      linear-gradient(180deg, rgba(255, 250, 247, 0.94) 0 48%, rgba(255, 250, 247, 0.34) 100%),
      linear-gradient(90deg, rgba(255, 250, 247, 0.94), rgba(255, 250, 247, 0.36));
  }

  .hero-image {
    background-position: 62% center;
  }

  .floating-panel {
    display: none;
  }

  .journey-band,
  .role-entry-band,
  .section-head,
    .analysis-grid,
    .studio-grid,
    .booking-shell,
    .onboarding-grid,
    .agent-workspace,
    .shop-order-grid,
  .mall-layout,
  .orders-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .report-summary,
  .report-detail-grid,
  .look-plan-grid,
  .plan-selector,
  .generated-sections,
  .service-conversion,
  .package-grid,
  .portfolio-grid,
  .field-grid,
  .reviews-row,
  .artist-directory,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .shop-preview[data-layout] .generated-sections,
  .shop-preview[data-layout] .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .shop-preview[data-layout] .portfolio-grid .portfolio-card:first-child {
    grid-row: auto;
    min-height: 178px;
  }

  .analysis-flow {
    grid-template-columns: 1fr;
  }

  .analysis-flow i {
    display: none;
  }

  .recommended-strip {
    position: static;
  }

  .mall-order-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .mall-order-actions {
    justify-content: flex-start;
  }
}

/* GlamMind visual system refresh: editorial hierarchy, restrained color, task-first layouts. */
:root {
  --ink: #1d1a1a;
  --ink-soft: #474241;
  --muted: #6b6461;
  --line: rgba(35, 29, 28, 0.14);
  --soft-line: rgba(35, 29, 28, 0.08);
  --paper: #fffefc;
  --surface: #fbf8f5;
  --canvas: #f4f1ed;
  --canvas-2: #edf4f1;
  --rose: #bf5865;
  --rose-dark: #873c47;
  --teal: #267572;
  --teal-dark: #174f4e;
  --gold: #bd8d34;
  --shadow: 0 22px 54px rgba(43, 34, 32, 0.1);
  --shadow-soft: 0 10px 28px rgba(43, 34, 32, 0.065);
  font-family: "Aptos", "Segoe UI Variable Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  color: var(--ink);
  background: var(--surface);
}

::selection {
  background: rgba(191, 88, 101, 0.2);
}

.eyebrow,
.brand strong,
.brand small {
  letter-spacing: 0;
}

button,
.top-nav a,
input,
select,
textarea {
  min-height: 44px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (pointer: fine) {
  body:not([data-page="home"]),
  body:not([data-page="home"]) * {
    cursor: auto !important;
  }

  body:not([data-page="home"]) a,
  body:not([data-page="home"]) button,
  body:not([data-page="home"]) label,
  body:not([data-page="home"]) select,
  body:not([data-page="home"]) input[type="range"] {
    cursor: pointer !important;
  }

  body:not([data-page="home"]) .lipstick-cursor {
    display: none;
  }
}

.app-header {
  min-height: 68px;
  padding: 10px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(255, 254, 252, 0.92);
  box-shadow: none;
}

.brand {
  min-width: 176px;
}

.brand-mark {
  box-shadow: 0 8px 20px rgba(135, 60, 71, 0.2);
}

.top-nav {
  gap: 2px;
}

.top-nav a {
  min-width: 0;
  padding: 10px 16px;
  font-size: 14px;
}

.top-nav a[aria-current="page"],
.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(191, 88, 101, 0.075);
}

.top-nav a[aria-current="page"]::after {
  right: 16px;
  left: 16px;
  background: var(--rose);
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.workspace-band {
  padding: 48px clamp(20px, 5vw, 64px) 58px;
}

.section-head,
.analysis-command-center,
.analysis-results,
.analysis-stepper,
.booking-shell,
.agent-studio-shell,
.shop-homepage,
.shop-order-grid,
.category-bar,
.mall-layout,
.commerce-head,
.cart-lines,
.cart-summary-line,
.mall-order-list {
  max-width: 1320px;
}

.section-head {
  align-items: center;
  margin-bottom: 22px;
}

.section-head .page-title,
.analysis-titlebar h1,
.agent-head h1 {
  max-width: 760px;
  margin: 4px 0 10px;
  font-size: clamp(38px, 4.2vw, 52px);
  line-height: 1.03;
}

.analysis-titlebar p:not(.eyebrow),
.agent-head p:not(.eyebrow) {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.65;
}

.status-strip span,
.shop-meta span,
.cart-mini {
  min-height: 36px;
  border-color: var(--soft-line);
  background: rgba(255, 254, 252, 0.9);
  box-shadow: none;
}

.pill,
.product-tag,
.artist-meta b,
.shop-label,
.member-lock-label {
  border-radius: 6px;
}

.tool-panel {
  border-color: var(--soft-line);
  background: rgba(255, 254, 252, 0.94);
  box-shadow: none;
  backdrop-filter: none;
}

.tool-panel::before {
  display: none;
}

.primary-button {
  background: var(--rose);
  box-shadow: 0 10px 24px rgba(191, 88, 101, 0.2);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--rose-dark);
}

.secondary-button,
.ghost-button {
  border-color: var(--line);
  background: rgba(255, 254, 252, 0.92);
}

/* Homepage */
.hero-band {
  min-height: min(620px, calc(100svh - 112px));
  padding: clamp(72px, 10vh, 98px) clamp(20px, 5vw, 64px) 54px;
}

.hero-band::before {
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.98) 0 31%, rgba(255, 253, 250, 0.76) 45%, rgba(255, 253, 250, 0.08) 76%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.08), rgba(255, 253, 250, 0.78) 100%);
}

.hero-content {
  width: min(620px, 100%);
}

.hero-content h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 5.4vw, 68px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 26px;
  font-size: 17px;
  line-height: 1.7;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
  margin-top: 30px;
}

.hero-proof span {
  min-height: 38px;
  border-color: var(--soft-line);
  background: rgba(255, 254, 252, 0.82);
  box-shadow: none;
}

.shop-panel,
.look-panel {
  display: none;
}

.face-panel {
  top: 25%;
  right: clamp(32px, 18vw, 260px);
}

.role-entry-band {
  gap: 0;
  padding: 0 clamp(20px, 5vw, 64px) 56px;
  background: var(--paper);
}

.role-card,
.role-card.primary-role {
  min-height: 238px;
  padding: 34px 32px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.role-card + .role-card {
  border-left: 1px solid var(--line);
}

.role-card h2 {
  font-size: clamp(26px, 2.8vw, 36px);
}

/* Analysis */
.analysis-studio {
  background: #f5f3f0;
}

.analysis-studio::before {
  bottom: auto;
  height: 320px;
  opacity: 0.58;
  background:
    linear-gradient(90deg, #f5f3f0 0 43%, rgba(245, 243, 240, 0.58) 67%, rgba(245, 243, 240, 0.18) 100%),
    url("assets/analysis-ai-face-bg.webp") right 30% / min(920px, 70vw) auto no-repeat;
}

.analysis-titlebar {
  min-height: 170px;
}

.analysis-flow {
  margin-bottom: 20px;
  padding: 10px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.analysis-flow b {
  background: var(--teal);
}

.analysis-command-center {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.capture-studio,
.analysis-control-panel {
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.capture-studio {
  padding: 28px;
}

.analysis-control-panel {
  padding: 22px;
  border-left: 1px solid var(--line);
}

.capture-support .mobile-scan-panel,
.capture-support .capture-guidance,
.analysis-control-panel .member-options,
.privacy-note {
  background: #f7f7f4;
}

.mobile-scan-panel a {
  display: inline-flex;
  width: max-content;
  min-height: 36px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(38, 117, 114, 0.22);
  border-radius: 6px;
  background: #fff;
  overflow-wrap: normal;
}

.plan-card {
  min-height: 122px;
  background: #fff;
}

.plan-card.is-selected {
  border-color: rgba(191, 88, 101, 0.46);
  background: #fff7f6;
  box-shadow: inset 3px 0 0 var(--rose);
}

.membership-entry {
  background: #fff8f3;
}

.analysis-results {
  margin-top: 28px;
}

.report-canvas {
  background: var(--paper);
}

.report-canvas .metric-list,
.report-detail-grid article,
.look-plan-grid article {
  background: #f7f7f4;
}

/* Booking directory */
.studio-band {
  background: #f7f5f2;
}

.booking-shell {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
}

.booking-filter {
  padding: 0 18px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-filter .chip {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
}

.booking-filter .chip.is-active {
  border-color: rgba(191, 88, 101, 0.16);
  background: rgba(191, 88, 101, 0.09);
}

.artist-directory {
  gap: 18px;
}

.artist-card {
  border-color: var(--soft-line);
  background: var(--paper);
  box-shadow: none;
}

.artist-card:hover,
.artist-card:focus-within,
.artist-card.is-active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.artist-cover {
  min-height: 0;
  aspect-ratio: 4 / 3;
  background-position: center 42%;
}

.artist-cover.luxury,
.artist-cover.editorial {
  background-position: center 42%;
}

.artist-body {
  padding: 18px;
}

.artist-body h3 {
  font-size: 20px;
}

.artist-body .secondary-button {
  width: 100%;
}

/* Artist onboarding and live editor */
.agent-studio {
  background: #f4f2ee;
}

.agent-studio::before {
  bottom: auto;
  height: 320px;
  opacity: 0.46;
  background:
    linear-gradient(90deg, #f4f2ee 0 42%, rgba(244, 242, 238, 0.62) 66%, rgba(244, 242, 238, 0.18) 100%),
    url("assets/artist-studio-bg.webp") right 36% / min(930px, 70vw) auto no-repeat;
}

.agent-head {
  min-height: 174px;
}

.agent-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(560px, 100%);
  gap: 0;
}

.agent-steps span {
  justify-content: center;
  border: 0;
  border-bottom: 2px solid rgba(35, 29, 28, 0.12);
  border-radius: 0;
  background: transparent;
}

.agent-steps span:first-child {
  border-bottom-color: var(--teal);
}

.agent-studio-shell {
  gap: 30px;
}

.agent-studio-shell .agent-brief-panel {
  padding: 26px 0 30px;
  border-width: 1px 0;
  border-radius: 0;
  background: rgba(255, 254, 252, 0.72);
}

.brief-layout {
  gap: 26px;
}

.draft-board {
  padding: 0 !important;
  border: 0;
  background: transparent;
}

.draft-grid {
  gap: 16px;
}

.draft-card,
.draft-empty {
  border-color: var(--line);
  background: var(--paper);
}

.draft-card {
  min-height: 220px;
  box-shadow: none;
}

.draft-card:hover,
.draft-card.is-selected {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.draft-card.is-selected {
  border-color: var(--rose);
  background: #fff9f7;
}

.agent-production-area {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.36fr);
  gap: 20px;
}

.agent-production-area .agent-preview {
  min-height: 700px;
  border-color: var(--line);
  background: var(--paper);
  box-shadow: none;
}

.agent-preview .shop-hero {
  min-height: 330px;
  background:
    linear-gradient(90deg, rgba(255, 252, 248, 0.96) 0 38%, rgba(255, 252, 248, 0.42) 64%, rgba(255, 252, 248, 0.06) 100%),
    url("assets/portfolio-interview-clean.webp") center 35% / cover no-repeat;
}

.agent-preview[data-style="luxury"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(255, 252, 248, 0.96) 0 38%, rgba(255, 252, 248, 0.34) 65%, rgba(255, 252, 248, 0.04) 100%),
    url("assets/portfolio-bridal-soft.webp") center 38% / cover no-repeat;
}

.agent-preview[data-style="editorial"] .shop-hero,
.agent-preview[data-tone="dark"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(24, 24, 26, 0.9) 0 39%, rgba(24, 24, 26, 0.32) 68%, rgba(24, 24, 26, 0.04) 100%),
    url("assets/portfolio-evening-editorial.webp") center 38% / cover no-repeat;
  color: #fff;
}

.agent-preview[data-tone="dark"] .shop-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.agent-control-panel {
  border-color: var(--line);
  background: var(--paper);
}

.chat-log {
  background: #f6f5f2;
}

.chat-log p {
  box-shadow: none;
}

.shop-preview.is-fresh {
  animation: previewUpdated 1.2s ease;
}

@keyframes previewUpdated {
  0% {
    box-shadow: 0 0 0 0 rgba(38, 117, 114, 0);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(38, 117, 114, 0.22), 0 18px 44px rgba(38, 117, 114, 0.13);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(38, 117, 114, 0);
  }
}

/* Public shop */
.shop-page-band {
  padding-top: 34px;
  background: #f7f5f2;
}

.shop-homepage {
  border: 0;
  background: var(--paper);
  box-shadow: none;
}

.shop-preview.shop-homepage .shop-hero,
.shop-preview.shop-homepage[data-ai-visual="true"] .shop-hero {
  min-height: 430px;
  align-items: center;
  padding: 46px;
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.98) 0 39%, rgba(255, 253, 250, 0.62) 57%, rgba(255, 253, 250, 0.04) 82%),
    url("assets/portfolio-interview-clean.webp") center 34% / cover no-repeat;
}

.shop-preview.shop-homepage[data-style="luxury"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.98) 0 39%, rgba(255, 253, 250, 0.56) 58%, rgba(255, 253, 250, 0.04) 82%),
    url("assets/portfolio-bridal-soft.webp") center 38% / cover no-repeat;
}

.shop-preview.shop-homepage[data-style="editorial"] .shop-hero,
.shop-preview.shop-homepage[data-tone="dark"] .shop-hero {
  background:
    linear-gradient(90deg, rgba(24, 24, 26, 0.92) 0 38%, rgba(24, 24, 26, 0.34) 65%, rgba(24, 24, 26, 0.04) 100%),
    url("assets/portfolio-evening-editorial.webp") center 38% / cover no-repeat;
  color: #fff;
}

.shop-preview.shop-homepage[data-tone="dark"] .shop-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.shop-homepage .shop-hero h1 {
  max-width: 580px;
  font-size: clamp(40px, 4.4vw, 56px);
}

.shop-homepage .shop-meta {
  padding: 18px 20px 0;
}

.shop-homepage .service-conversion article {
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
}

.orders-band {
  background: var(--paper);
}

.shop-order-grid {
  grid-template-columns: minmax(300px, 0.82fr) minmax(300px, 0.78fr) minmax(360px, 1fr);
}

/* Mall */
.mall-band {
  background: #f3f6f4;
}

.category-bar {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.category-bar .chip {
  border-color: transparent;
  background: transparent;
}

.category-bar .chip.is-active {
  border-color: rgba(191, 88, 101, 0.18);
  background: rgba(191, 88, 101, 0.09);
}

.mall-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}

.recommended-strip {
  padding: 18px 0 18px 18px;
  border: 0;
  border-left: 2px solid var(--rose);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.recommended-products button {
  background: rgba(255, 254, 252, 0.8);
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  grid-template-rows: auto 1fr;
  border-color: var(--soft-line);
  background: var(--paper);
  box-shadow: none;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.product-visual {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: 12% center;
}

.product-card[data-category="lip"] .product-visual {
  background-size: cover;
  background-position: 48% center;
}

.product-card[data-category="eye"] .product-visual {
  background-size: cover;
  background-position: 88% center;
}

.product-card[data-category="cheek"] .product-visual {
  background-size: cover;
  background-position: 46% 70%;
}

.product-card[data-category="tool"] .product-visual {
  background-size: cover;
  background-position: left 75%;
}

#base-01 .product-visual,
#lip-03 .product-visual {
  background-position: left center;
}

#base-02 .product-visual,
#cheek-01 .product-visual {
  background-position: center 72%;
}

#base-03 .product-visual,
#eye-01 .product-visual,
#eye-02 .product-visual,
#eye-03 .product-visual {
  background-position: right top;
}

#lip-01 .product-visual,
#lip-02 .product-visual,
#lip-04 .product-visual {
  background-position: 52% 18%;
}

#cheek-02 .product-visual {
  background-position: 48% bottom;
}

.product-body {
  align-content: start;
  padding: 15px;
}

.product-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.site-footer {
  background: #eeece8;
}

@media (max-width: 1180px) {
  .analysis-command-center,
  .analysis-results,
  .brief-layout,
  .agent-production-area {
    grid-template-columns: 1fr;
  }

  .analysis-control-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .brief-layout {
    gap: 20px;
  }

  .agent-production-area .agent-control-panel {
    position: static;
  }

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

  .shop-order-grid .review-wall {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .app-header {
    gap: 8px 16px;
  }

  .top-nav {
    justify-content: stretch;
  }

  .top-nav a {
    flex: 1 0 auto;
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero-band {
    min-height: 620px;
  }

  .hero-band::before {
    background:
      linear-gradient(180deg, rgba(255, 253, 250, 0.96) 0 51%, rgba(255, 253, 250, 0.42) 75%, rgba(255, 253, 250, 0.7) 100%),
      linear-gradient(90deg, rgba(255, 253, 250, 0.92), rgba(255, 253, 250, 0.2));
  }

  .hero-image {
    background-position: 58% center;
  }

  .role-entry-band {
    grid-template-columns: 1fr;
  }

  .role-card + .role-card {
    border-left: 0;
  }

  .section-head,
  .analysis-titlebar,
  .agent-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .analysis-titlebar,
  .agent-head {
    min-height: 0;
  }

  .analysis-titlebar h1,
  .agent-head h1 {
    font-size: clamp(36px, 8vw, 46px);
  }

  .analysis-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .analysis-flow i {
    display: none;
  }

  .analysis-flow span {
    display: grid;
    justify-items: start;
    gap: 6px;
  }

  .booking-shell {
    grid-template-columns: 1fr;
  }

  .booking-filter {
    position: static;
    display: block;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-filter > strong {
    display: block;
    margin-bottom: 10px;
  }

  .booking-filter .filter-group {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    border: 0;
    scrollbar-width: none;
  }

  .booking-filter .filter-group::-webkit-scrollbar {
    display: none;
  }

  .booking-filter .filter-group > span,
  .booking-filter > div:not(.filter-group) {
    display: none;
  }

  .booking-filter .chip {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
    border-color: var(--soft-line);
    background: var(--paper);
  }

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

  .agent-steps {
    width: 100%;
  }

  .agent-steps span {
    display: grid;
    justify-items: center;
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
  }

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

  .agent-production-area .agent-preview {
    min-height: auto;
  }

  .shop-homepage .shop-hero {
    min-height: 390px;
    padding: 34px;
    background-position: center 38%;
  }

  .mall-layout {
    grid-template-columns: 1fr;
  }

  .product-grid {
    order: 1;
  }

  .recommended-strip {
    position: static;
    order: 2;
    margin-top: 8px;
  }
}

@media (max-width: 580px) {
  .app-header {
    grid-template-columns: 1fr auto;
    padding: 10px 14px 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  .ghost-button {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 38px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .top-nav {
    grid-row: 2;
  }

  .top-nav {
    grid-column: 1 / -1;
    width: 100%;
  }

  .top-nav a {
    min-height: 40px;
    padding: 9px 6px;
    font-size: 12px;
  }

  .workspace-band {
    padding: 34px 14px 44px;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 18px;
  }

  .section-head .page-title,
  .analysis-titlebar h1,
  .agent-head h1 {
    font-size: 36px;
  }

  .status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .status-strip span {
    justify-content: center;
    min-width: 0;
    padding: 8px 6px;
    font-size: 11px;
    text-align: center;
  }

  .hero-band {
    min-height: 590px;
    padding: 46px 16px 38px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 15px;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero-proof span {
    display: grid;
    justify-items: start;
    width: auto;
    padding: 9px;
    font-size: 11px;
  }

  .hero-proof b {
    font-size: 14px;
  }

  .role-entry-band {
    padding: 0 14px 38px;
  }

  .role-card,
  .role-card.primary-role {
    min-height: 0;
    padding: 28px 8px;
  }

  .analysis-studio::before,
  .agent-studio::before {
    height: 245px;
    opacity: 0.34;
    background-position: 66% top;
    background-size: auto 260px;
  }

  .analysis-flow {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .analysis-flow span {
    font-size: 11px;
  }

  .analysis-flow b {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .analysis-command-center {
    overflow: visible;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .capture-studio,
  .analysis-control-panel,
  .report-canvas,
  .agent-studio-shell .agent-brief-panel,
  .agent-production-area .assistant-panel {
    padding: 18px 14px;
  }

  .capture-layout,
  .face-capture-grid,
  .analysis-control-panel .plan-selector {
    grid-template-columns: 1fr;
  }

  .face-capture-grid .main-angle,
  .face-capture-grid .main-angle .photo-slot {
    min-height: 320px;
  }

  .mobile-scan-panel {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .mobile-scan-panel img {
    width: 96px;
    height: 96px;
  }

  .artist-directory {
    grid-template-columns: 1fr;
  }

  .artist-cover {
    aspect-ratio: 5 / 4;
  }

  .agent-steps {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    overflow-x: auto;
  }

  .agent-steps span {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 10px;
  }

  .draft-grid {
    grid-template-columns: 1fr;
  }

  .agent-studio-shell .agent-brief-panel {
    padding-right: 0;
    padding-left: 0;
  }

  .agent-preview .shop-hero,
  .shop-preview.shop-homepage .shop-hero,
  .shop-preview.shop-homepage[data-ai-visual="true"] .shop-hero {
    min-height: 420px;
    align-items: end;
    padding: 24px 18px;
    background:
      linear-gradient(180deg, rgba(255, 253, 250, 0.12) 0 40%, rgba(255, 253, 250, 0.96) 78%),
      url("assets/portfolio-interview-clean.webp") center 32% / cover no-repeat;
  }

  .agent-preview[data-style="luxury"] .shop-hero {
    background:
      linear-gradient(180deg, rgba(255, 253, 250, 0.1) 0 40%, rgba(255, 253, 250, 0.96) 78%),
      url("assets/portfolio-bridal-soft.webp") center 34% / cover no-repeat;
  }

  .shop-preview.shop-homepage[data-style="luxury"] .shop-hero {
    background:
      linear-gradient(180deg, rgba(255, 253, 250, 0.1) 0 40%, rgba(255, 253, 250, 0.96) 78%),
      url("assets/portfolio-bridal-soft.webp") center 34% / cover no-repeat;
  }

  .agent-preview[data-style="editorial"] .shop-hero,
  .agent-preview[data-tone="dark"] .shop-hero {
    background:
      linear-gradient(180deg, rgba(24, 24, 26, 0.08) 0 38%, rgba(24, 24, 26, 0.94) 80%),
      url("assets/portfolio-evening-editorial.webp") center 34% / cover no-repeat;
  }


  .shop-preview.shop-homepage[data-style="editorial"] .shop-hero,
  .shop-preview.shop-homepage[data-tone="dark"] .shop-hero {
    background:
      linear-gradient(180deg, rgba(24, 24, 26, 0.08) 0 38%, rgba(24, 24, 26, 0.94) 80%),
      url("assets/portfolio-evening-editorial.webp") center 34% / cover no-repeat;
  }

  .shop-homepage .shop-hero h1 {
    font-size: 38px;
  }

  .shop-homepage .service-conversion,
  .shop-homepage .package-grid,
  .shop-homepage .portfolio-grid,
  .shop-homepage .reviews-row {
    grid-template-columns: 1fr;
  }

  .shop-order-grid {
    grid-template-columns: 1fr;
  }

  .category-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-bar::-webkit-scrollbar {
    display: none;
  }

  .category-bar .chip {
    flex: 0 0 auto;
  }

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

  .product-body {
    gap: 7px;
    padding: 11px;
  }

  .product-body h3 {
    font-size: 14px;
  }

  .product-body p {
    display: none;
  }

  .product-foot {
    align-items: end;
  }

  .product-foot .secondary-button {
    min-height: 36px;
    padding: 6px 9px;
  }

  .recommended-strip {
    padding-left: 14px;
  }
}

@media (max-width: 580px) {
  .section-head .page-title {
    font-size: 34px;
  }

  .app-header {
    padding: 11px 14px;
  }

  .brand {
    min-width: 0;
  }

  .ghost-button {
    display: none;
  }

  .workspace-band {
    padding: 44px 14px;
  }

  .hero-band {
    padding: 48px 16px 44px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-proof span {
    width: 100%;
  }

  .mobile-scan-panel,
  .mobile-shot-grid {
    grid-template-columns: 1fr;
  }

  .mobile-scan-panel img {
    grid-row: auto;
  }

  .journey-band {
    padding: 0 14px 24px;
  }

  .site-footer {
    padding: 34px 18px 30px;
  }

  .footer-brand {
    gap: 12px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 92px 1fr 30px;
  }

  .membership-entry {
    grid-template-columns: 1fr;
  }

  .membership-entry .secondary-button,
  .compact-button {
    width: 100%;
  }

  .shop-hero,
  .chat-input,
  .review-card {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 146px auto;
  }

  .commerce-band {
    padding: 34px 14px;
  }

  .cart-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .cart-line .quantity-stepper {
    grid-column: 1;
  }

  .cart-line-total {
    grid-column: 2;
    grid-row: 1;
  }

  .cart-line .icon-text-button {
    grid-column: 2;
    grid-row: 2;
  }

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

  .cart-summary-line .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-fields .full-field {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .analysis-command-center,
  .analysis-results,
  .capture-layout,
  .brief-layout,
  .agent-production-area,
  .agent-studio-shell {
    grid-template-columns: 1fr;
  }

  .tryon-dock,
  .agent-production-area .agent-control-panel {
    position: static;
  }

  .analysis-control-panel .plan-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-production-area .agent-preview {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .analysis-titlebar h1,
  .agent-head h1 {
    font-size: clamp(34px, 12vw, 58px);
  }

  .face-capture-grid,
  .brief-fields .field-grid,
  .draft-grid,
  .analysis-control-panel .plan-selector {
    grid-template-columns: 1fr;
  }

  .face-capture-grid .main-angle {
    grid-row: auto;
    min-height: 300px;
  }

  .face-capture-grid .main-angle .photo-slot {
    min-height: 300px;
  }

  .capture-studio,
  .report-canvas,
  .agent-studio-shell .agent-brief-panel,
  .agent-studio-shell .draft-board,
  .agent-production-area .assistant-panel {
    padding: 18px;
  }
}

/* Final mobile guards: keep the refreshed hierarchy above legacy breakpoint rules. */
@media (max-width: 580px) {
  .app-header {
    grid-template-columns: 1fr auto;
    padding: 10px 14px 8px;
  }

  .ghost-button {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 38px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .top-nav {
    grid-row: 2;
  }

  .workspace-band {
    padding: 34px 14px 44px;
  }

  .hero-band {
    padding: 46px 16px 38px;
  }

  .hero-proof span {
    width: auto;
  }

  .mobile-scan-panel {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .mobile-scan-panel img {
    grid-row: span 3;
    width: 96px;
    height: 96px;
  }

  .product-card {
    grid-template-rows: auto 1fr;
  }
}

/* Editorial redesign v2: clearer stages, fewer containers, image-led commerce. */
:root {
  --display-font: "Aptos Display", "Segoe UI Variable Display", "Microsoft YaHei UI", sans-serif;
  --body-font: "Aptos", "Segoe UI Variable Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --canvas-deep: #e8eeea;
  --rose-wash: #f5e5e5;
}

body {
  font-family: var(--body-font);
  background-color: var(--surface);
  background-image: repeating-linear-gradient(90deg, rgba(66, 52, 49, 0.018) 0 1px, transparent 1px 96px);
}

h1,
h2,
h3,
h4,
.brand strong,
.primary-button,
.secondary-button,
.ghost-button {
  font-family: var(--display-font);
}

button,
a,
.artist-card,
.product-card,
.draft-card {
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 260ms ease,
    transform 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

button:active,
.artist-card:active,
.product-card:active {
  transform: translateY(1px) scale(0.99);
}

.page-intro {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 7px;
}

.primary-button {
  box-shadow: 0 13px 28px rgba(135, 60, 71, 0.2);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(135, 60, 71, 0.24);
}

.secondary-button:hover,
.ghost-button:hover,
.secondary-button:focus-visible,
.ghost-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 119, 116, 0.34);
  background: var(--canvas-2);
}

.status-strip b,
.shop-meta b,
.score-badge,
.metric-row b,
.cart-mini b,
.cart-mini strong {
  font-variant-numeric: tabular-nums;
}

/* Navigation */
.app-header {
  border-bottom-color: rgba(35, 29, 28, 0.08);
  background: rgba(255, 254, 252, 0.94);
  backdrop-filter: blur(18px) saturate(120%);
}

.top-nav a {
  font-weight: 650;
}

.top-nav a[aria-current="page"] {
  background: transparent;
}

/* Homepage */
body[data-page="home"] {
  background: var(--paper);
}

.hero-band {
  min-height: min(720px, calc(100svh - 68px));
  padding-top: clamp(86px, 12vh, 132px);
  padding-bottom: 96px;
}

.hero-band::before {
  background:
    linear-gradient(90deg, rgba(255, 254, 252, 0.98) 0 28%, rgba(255, 254, 252, 0.8) 44%, rgba(255, 254, 252, 0.12) 73%),
    linear-gradient(180deg, rgba(255, 254, 252, 0.02) 52%, rgba(255, 254, 252, 0.78) 100%);
}

.hero-content {
  width: min(720px, 100%);
}

.hero-content h1 {
  max-width: 720px;
  font-size: clamp(54px, 6vw, 82px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 500px;
  font-size: 18px;
}

.hero-actions .primary-button {
  min-height: 52px;
  padding-inline: 24px;
}

.shop-panel,
.look-panel {
  display: none;
}

.face-panel {
  right: clamp(54px, 14vw, 210px);
  top: 27%;
}

.capability-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 0.5fr)) minmax(260px, 1.6fr);
  max-width: 1320px;
  margin: -44px auto 0;
  padding: 28px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 252, 0.96);
  position: relative;
  z-index: 5;
}

.capability-rail span {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 62px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
}

.capability-rail b {
  font-family: var(--display-font);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.capability-rail small {
  color: var(--muted);
  font-size: 13px;
}

.capability-rail p {
  align-self: center;
  max-width: 420px;
  margin: 0 0 0 clamp(18px, 3vw, 40px);
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 600;
  line-height: 1.45;
}

.role-entry-band {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  max-width: 1320px;
  margin: 0 auto;
  padding: 110px 0 128px;
  gap: 0;
  background: transparent;
}

.role-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 64px clamp(34px, 5vw, 72px);
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #f3f6f4;
  box-shadow: none;
  isolation: isolate;
}

.role-card:last-child {
  border-right: 0;
  background: #f8eeee;
}

.role-card::before {
  position: absolute;
  inset: 0 0 0 52%;
  z-index: -2;
  background:
    linear-gradient(90deg, #f3f6f4 0, rgba(243, 246, 244, 0.18) 70%),
    url("assets/portfolio-interview-clean.webp") center 18% / cover no-repeat;
  opacity: 0.68;
  content: "";
}

.role-card:last-child::before {
  inset: 0;
  background:
    linear-gradient(90deg, #f8eeee 0 42%, rgba(248, 238, 238, 0.42) 78%),
    url("assets/artist-studio-bg.webp") 72% center / cover no-repeat;
  opacity: 0.58;
}

.role-card > * {
  position: relative;
  max-width: 460px;
}

.role-card h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 3vw, 48px);
}

.role-card p:not(.eyebrow) {
  max-width: 430px;
  line-height: 1.8;
}

.role-card button {
  margin-top: 22px;
}

/* Shared workspace chapters */
.workspace-band {
  padding-top: 70px;
  padding-bottom: 92px;
}

.section-head {
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-head .page-title,
.analysis-titlebar h1,
.agent-head h1 {
  font-size: clamp(42px, 4.8vw, 62px);
  line-height: 1;
}

.tool-panel {
  border-radius: 8px;
}

/* Face analysis */
.analysis-studio {
  background:
    linear-gradient(180deg, rgba(255, 254, 252, 0.94), rgba(244, 241, 237, 0.94)),
    url("assets/analysis-ai-face-bg.webp") right top / min(760px, 58vw) auto no-repeat;
}

.analysis-titlebar {
  min-height: 250px;
  align-items: start;
}

.analysis-titlebar > div:first-child {
  max-width: 720px;
}

.analysis-stepper {
  margin-top: -44px;
  margin-bottom: 44px;
  background: rgba(255, 254, 252, 0.9);
  backdrop-filter: blur(14px);
}

.analysis-command-center {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  gap: 0;
  align-items: start;
}

.capture-studio {
  padding: 34px 38px 38px 0;
  border: 0;
  background: transparent;
}

.analysis-control-panel {
  position: sticky;
  top: 92px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 252, 0.96);
  box-shadow: var(--shadow-soft);
}

.plan-card {
  min-height: 118px;
  padding: 18px;
  border-radius: 6px;
  box-shadow: none;
}

.plan-card.is-selected {
  background: var(--rose-wash);
}

.upload-tile {
  border-style: solid;
  border-color: rgba(31, 119, 116, 0.18);
  background: rgba(238, 246, 243, 0.72);
}

.upload-tile:hover,
.upload-tile:focus-within {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.capture-support > * {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.analysis-results {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 24px;
  margin-top: 112px;
}

.analysis-results-heading {
  grid-column: 1 / -1;
  max-width: 860px;
  margin-bottom: 26px;
}

.analysis-results-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4.4vw, 56px);
}

.analysis-results-heading > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.report-canvas {
  padding: clamp(28px, 4vw, 54px);
  border: 0;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.report-summary article,
.report-detail-grid article,
.look-plan-grid article {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.tryon-dock {
  top: 92px;
  border: 0;
  background: #e8efec;
  box-shadow: none;
}

/* Artist directory */
.booking-band {
  background: #f3f1ed;
}

.booking-band .section-head {
  min-height: 214px;
}

.booking-shell {
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 34px;
  margin-top: 36px;
}

.booking-filter {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 0 28px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-filter-head {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.booking-filter-head strong {
  font-family: var(--display-font);
  font-size: 20px;
}

.booking-filter-head small {
  color: var(--muted);
}

.booking-filter .filter-group {
  gap: 4px;
}

.booking-filter .chip {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
}

.booking-filter .chip.is-active {
  background: var(--rose-wash);
  color: var(--rose-dark);
}

.artist-directory {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 232px;
  gap: 18px;
}

.artist-card {
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  box-shadow: none;
}

.artist-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
}

.artist-card:nth-child(2),
.artist-card:nth-child(3) {
  grid-column: span 5;
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
}

.artist-card:nth-child(1) .artist-cover {
  min-height: 258px;
}

.artist-card:nth-child(2) .artist-cover,
.artist-card:nth-child(3) .artist-cover {
  height: 100%;
}

.artist-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.artist-body h3 {
  font-size: clamp(20px, 2vw, 28px);
}

.artist-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.artist-body .secondary-button {
  width: 100%;
  margin-top: auto;
}

.artist-card:hover,
.artist-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* Public shop */
.shop-page-band {
  background: #f4f1ed;
}

.shop-homepage {
  padding: 0 0 70px;
  border: 0;
  background: var(--paper);
  box-shadow: none;
}

.shop-homepage .shop-hero {
  min-height: 470px;
  padding: clamp(42px, 6vw, 78px);
}

.shop-homepage .shop-hero h1,
.shop-homepage .shop-hero h3 {
  max-width: 740px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.98;
}

.shop-homepage > :not(.shop-hero) {
  margin-inline: clamp(22px, 5vw, 68px);
}

.service-conversion,
.package-grid {
  gap: 0;
}

.service-conversion article,
.package-grid article {
  padding: 24px;
  border: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.service-conversion article:last-child,
.package-grid article:last-child {
  border-right: 0;
}

.shop-chapter-head {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  gap: 30px;
  align-items: end;
  margin-top: 70px;
  margin-bottom: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.shop-chapter-head span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
}

.shop-chapter-head strong {
  max-width: 700px;
  font-family: var(--display-font);
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.25;
}

.shop-chapter-head.compact {
  margin-top: 48px;
}

.shop-homepage .portfolio-grid,
.agent-preview .portfolio-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  grid-auto-rows: 200px;
}

.shop-homepage .portfolio-card:first-child,
.agent-preview .portfolio-card:first-child {
  grid-row: span 2;
}

.portfolio-card {
  min-height: 0;
}

.reviews-row article {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

/* Onboarding stages */
.agent-studio [hidden] {
  display: none !important;
}

.agent-studio {
  min-height: calc(100svh - 68px);
  padding-top: 60px;
}

.agent-head {
  min-height: 260px;
  align-items: start;
}

.agent-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr));
  align-self: end;
  width: min(610px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
}

.agent-steps button {
  display: grid;
  min-height: 70px;
  gap: 7px;
  align-content: center;
  padding: 12px 14px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.agent-steps button b {
  color: var(--ink);
  font-size: 12px;
}

.agent-steps button.is-active {
  border-bottom-color: var(--teal);
  color: var(--ink);
}

.agent-steps button:hover,
.agent-steps button:focus-visible {
  background: rgba(238, 246, 243, 0.7);
}

.agent-workspace {
  display: block;
}

.agent-brief-panel,
.draft-board {
  animation: workspaceEnter 360ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.agent-studio-shell .agent-brief-panel,
.agent-studio-shell .draft-board {
  padding: clamp(26px, 4vw, 54px) 0 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brief-layout {
  grid-template-columns: minmax(210px, 0.7fr) minmax(360px, 1.35fr) minmax(260px, 0.75fr);
  gap: 28px;
}

.brief-assets {
  align-self: stretch;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.agent-upload {
  min-height: 152px;
  background: rgba(255, 254, 252, 0.64);
}

.draft-grid {
  gap: 16px;
}

.draft-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  padding: 170px 24px 24px;
  border: 1px solid var(--soft-line);
  background: var(--paper);
  box-shadow: none;
}

.draft-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 146px;
  background:
    linear-gradient(180deg, transparent, rgba(24, 22, 22, 0.08)),
    url("assets/portfolio-interview-clean.webp") center 24% / cover no-repeat;
  content: "";
}

.draft-card:nth-child(2)::before {
  background-image:
    linear-gradient(180deg, transparent, rgba(24, 22, 22, 0.08)),
    url("assets/portfolio-bridal-soft.webp");
}

.draft-card:nth-child(3)::before {
  background-image:
    linear-gradient(180deg, transparent, rgba(24, 22, 22, 0.12)),
    url("assets/portfolio-evening-editorial.webp");
}

.draft-card .secondary-button {
  margin-top: auto;
}

.draft-card:hover,
.draft-card:focus-within,
.draft-card.is-selected {
  transform: translateY(-5px);
  border-color: rgba(191, 88, 101, 0.38);
  box-shadow: var(--shadow-soft);
}

.agent-production-area {
  animation: workspaceEnter 360ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.agent-production-area .agent-preview {
  border: 0;
  box-shadow: none;
}

.agent-production-area .agent-control-panel {
  top: 88px;
  max-height: calc(100svh - 112px);
  border: 0;
  background: rgba(255, 254, 252, 0.96);
  box-shadow: var(--shadow-soft);
}

.agent-studio[data-workspace-view="publish"] .publish-panel {
  border-color: rgba(191, 88, 101, 0.38);
  background: var(--rose-wash);
  box-shadow: 0 0 0 4px rgba(191, 88, 101, 0.08);
}

@keyframes workspaceEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mall */
.mall-band {
  background: #f1f4f2;
}

.mall-band .section-head {
  min-height: 200px;
}

.category-bar {
  position: sticky;
  top: 68px;
  z-index: 12;
  margin-inline: calc(clamp(20px, 5vw, 64px) * -1);
  padding: 14px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 244, 242, 0.94);
  backdrop-filter: blur(14px);
}

.category-bar .chip {
  min-width: 74px;
  border-radius: 4px;
}

.mall-layout {
  margin-top: 34px;
}

.recommended-strip {
  position: sticky;
  top: 144px;
  align-self: start;
  padding: 24px 24px 26px;
  border-left: 0;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.recommended-strip > div:first-child {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.recommended-products button {
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  border-radius: 0;
  background: transparent;
}

.product-grid {
  gap: 14px;
}

.product-card {
  border: 0;
  background: var(--paper);
  box-shadow: none;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.product-visual,
.product-card[data-category="lip"] .product-visual,
.product-card[data-category="eye"] .product-visual,
.product-card[data-category="cheek"] .product-visual,
.product-card[data-category="tool"] .product-visual {
  aspect-ratio: 1 / 1;
  background-image: url("assets/cosmetics-product-atlas-v2.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  transform: scale(1.002);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.product-card:hover .product-visual,
.product-card:focus-within .product-visual {
  transform: scale(1.045);
}

#base-01 .product-visual {
  background-position: 0 0;
}

#base-02 .product-visual {
  background-position: 50% 0;
}

#base-03 .product-visual {
  background-position: 50% 100%;
}

#lip-01 .product-visual,
#lip-02 .product-visual,
#lip-03 .product-visual,
#lip-04 .product-visual {
  background-position: 100% 0;
}

#eye-01 .product-visual,
#eye-02 .product-visual,
#eye-03 .product-visual {
  background-position: 0 100%;
}

#cheek-01 .product-visual,
#cheek-02 .product-visual {
  background-position: 50% 100%;
}

#tool-01 .product-visual,
#tool-02 .product-visual {
  background-position: 100% 100%;
}

.product-body {
  position: relative;
  z-index: 2;
  background: var(--paper);
}

.product-tag {
  width: max-content;
  padding: 3px 8px;
  background: var(--canvas-2);
}

.commerce-band {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.order-center-band {
  background: var(--canvas);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #e9eeeb;
}

.footer-inner {
  align-items: start;
}

.footer-grid section {
  border-left: 1px solid rgba(35, 29, 28, 0.1);
  padding-left: 24px;
}

@media (max-width: 1180px) {
  .capability-rail {
    margin-inline: 24px;
  }

  .role-entry-band {
    margin-inline: 24px;
  }

  .analysis-command-center,
  .analysis-results {
    grid-template-columns: 1fr;
  }

  .analysis-control-panel,
  .tryon-dock {
    position: static;
  }

  .capture-studio {
    padding-right: 0;
  }

  .artist-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .artist-card:nth-child(1),
  .artist-card:nth-child(2),
  .artist-card:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    display: block;
  }

  .artist-card:nth-child(2) .artist-cover,
  .artist-card:nth-child(3) .artist-cover {
    height: 260px;
  }

  .brief-layout {
    grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1.3fr);
  }

  .brief-assets {
    grid-column: 1 / -1;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .capability-rail {
    grid-template-columns: repeat(3, 1fr);
  }

  .capability-rail p {
    grid-column: 1 / -1;
    margin: 22px 0 0;
  }

  .role-entry-band {
    grid-template-columns: 1fr;
  }

  .role-card,
  .role-card:last-child {
    min-height: 360px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-filter {
    position: static;
    min-width: 0;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-filter .filter-group {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .booking-filter .chip {
    width: auto;
    min-width: max-content;
  }

  .artist-directory {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .agent-head {
    min-height: auto;
  }

  .agent-steps {
    width: 100%;
  }

  .brief-layout {
    grid-template-columns: 1fr;
  }

  .brief-assets {
    grid-column: auto;
  }

  .draft-card {
    min-height: 350px;
  }
}

@media (max-width: 580px) {
  body {
    background-image: none;
  }

  .hero-band {
    min-height: 570px;
    padding-top: 52px;
  }

  .hero-content h1 {
    max-width: 350px;
    font-size: clamp(46px, 13vw, 58px);
  }

  .face-panel {
    display: none;
  }

  .capability-rail {
    margin: 0;
    padding: 20px 14px;
  }

  .capability-rail span {
    min-height: 56px;
    padding-right: 10px;
  }

  .capability-rail b {
    font-size: 18px;
  }

  .capability-rail p {
    font-size: 18px;
  }

  .role-entry-band {
    margin: 0;
    padding: 0;
  }

  .role-card,
  .role-card:last-child {
    min-height: 420px;
    padding: 46px 20px;
  }

  .role-card::before,
  .role-card:last-child::before {
    inset: 42% 0 0;
    background-position: center 22%;
    opacity: 0.45;
  }

  .workspace-band {
    padding-top: 42px;
    padding-bottom: 64px;
  }

  .section-head .page-title,
  .analysis-titlebar h1,
  .agent-head h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .section-head {
    align-items: start;
  }

  .analysis-titlebar {
    min-height: 260px;
  }

  .analysis-stepper {
    margin-top: -26px;
  }

  .capture-studio {
    padding: 24px 0 0;
  }

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

  .face-capture-grid .main-angle {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .face-capture-grid .main-angle .photo-slot {
    min-height: 360px;
  }

  .face-capture-grid .upload-tile:not(.main-angle) .photo-slot {
    min-height: 150px;
  }

  .analysis-control-panel,
  .report-canvas,
  .tryon-dock {
    padding: 20px;
  }

  .analysis-results {
    margin-top: 76px;
  }

  .analysis-results-heading h2 {
    font-size: 36px;
  }

  .booking-band .section-head,
  .mall-band .section-head {
    min-height: auto;
  }

  .booking-shell {
    margin-top: 24px;
  }

  .artist-cover,
  .artist-card:nth-child(2) .artist-cover,
  .artist-card:nth-child(3) .artist-cover {
    height: 300px;
  }

  .shop-homepage .shop-hero {
    min-height: 470px;
    padding: 36px 22px;
  }

  .shop-homepage .shop-hero h1,
  .shop-homepage .shop-hero h3 {
    font-size: 42px;
  }

  .service-conversion,
  .package-grid {
    grid-template-columns: 1fr;
  }

  .service-conversion article,
  .package-grid article {
    border-right: 0;
  }

  .shop-chapter-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .shop-homepage .portfolio-grid,
  .agent-preview .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .shop-homepage .portfolio-card:first-child,
  .agent-preview .portfolio-card:first-child {
    grid-row: auto;
  }

  .agent-studio {
    padding-top: 40px;
  }

  .agent-steps {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .agent-steps button {
    min-width: 92px;
    min-height: 64px;
    padding: 8px;
    font-size: 12px;
  }

  .agent-studio-shell .agent-brief-panel,
  .agent-studio-shell .draft-board {
    padding-top: 26px;
  }

  .draft-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .draft-card,
  .draft-empty {
    min-width: min(86vw, 330px);
    scroll-snap-align: start;
  }

  .category-bar {
    top: 98px;
    display: flex;
    overflow-x: auto;
    margin-inline: -14px;
    padding-inline: 14px;
    scrollbar-width: none;
  }

  .category-bar::after,
  .booking-filter .filter-group::after {
    display: block;
    min-width: 16px;
    content: "";
  }

  .recommended-strip {
    position: static;
  }

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

  .product-body {
    padding: 12px;
  }

  .product-body p {
    display: none;
  }

  .footer-grid section {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(35, 29, 28, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-brief-panel,
  .draft-board,
  .agent-production-area {
    animation: none;
  }

  .product-visual {
    transition: none;
  }
}

/* High-end material refinement v3: editorial warmth, precise depth, restrained motion. */
:root {
  --luxury-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --material-line: rgba(58, 46, 43, 0.11);
  --material-highlight: rgba(255, 255, 255, 0.72);
  --shadow-float: 0 24px 70px rgba(58, 44, 40, 0.1);
  --shadow-card: 0 16px 42px rgba(58, 44, 40, 0.075);
  --shadow-hover: 0 26px 64px rgba(58, 44, 40, 0.13);
}

::selection {
  background: rgba(199, 93, 104, 0.2);
  color: var(--ink);
}

html {
  scrollbar-color: rgba(55, 39, 45, 0.32) transparent;
  scrollbar-width: thin;
}

body {
  background-color: #f7f3ef;
  background-image:
    linear-gradient(rgba(56, 46, 43, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 46, 43, 0.014) 1px, transparent 1px);
  background-size: 96px 96px;
}

button,
a,
input,
select,
textarea,
.artist-card,
.product-card,
.draft-card,
.upload-tile,
.portfolio-card {
  transition-timing-function: var(--luxury-ease);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(31, 119, 116, 0.72);
  outline-offset: 4px;
}

/* Floating glass navigation */
.app-header {
  top: 12px;
  width: min(calc(100% - 24px), 1360px);
  min-height: 64px;
  margin: 12px auto 0;
  padding: 9px clamp(18px, 3.6vw, 48px);
  border: 1px solid rgba(63, 51, 48, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 42px rgba(58, 44, 40, 0.085);
  backdrop-filter: blur(22px) saturate(135%);
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    0 12px 28px rgba(104, 51, 64, 0.23);
}

.brand strong {
  font-weight: 760;
}

.top-nav {
  gap: 4px;
}

.top-nav a {
  position: relative;
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 6px;
  font-weight: 640;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(238, 246, 243, 0.72);
  color: var(--teal-dark);
}

.top-nav a[aria-current="page"] {
  background: rgba(199, 93, 104, 0.09);
  box-shadow: inset 0 0 0 1px rgba(199, 93, 104, 0.08);
}

.ghost-button {
  border-color: rgba(58, 46, 43, 0.12);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

/* Haptic commands and fields */
.primary-button,
.secondary-button,
.ghost-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 420ms var(--luxury-ease),
    background-color 420ms var(--luxury-ease),
    border-color 420ms var(--luxury-ease),
    box-shadow 520ms var(--luxury-ease),
    transform 520ms var(--luxury-ease);
}

.primary-button::after,
.secondary-button::after,
.ghost-button::after {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
  pointer-events: none;
  content: "";
}

.primary-button {
  border: 1px solid rgba(126, 49, 62, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 46%),
    #c45a66;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 32px rgba(142, 58, 70, 0.2);
}

.primary-button:hover,
.primary-button:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 46%),
    #b94d5a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 22px 44px rgba(142, 58, 70, 0.27);
  transform: translateY(-3px);
}

.secondary-button {
  border-color: rgba(31, 119, 116, 0.17);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 20px rgba(43, 64, 60, 0.055);
}

.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: translateY(1px) scale(0.98);
  transition-duration: 120ms;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,
textarea {
  border-color: rgba(58, 46, 43, 0.12);
  background: rgba(255, 254, 252, 0.86);
  box-shadow:
    inset 0 1px 1px rgba(56, 43, 39, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    border-color 360ms var(--luxury-ease),
    box-shadow 440ms var(--luxury-ease),
    background-color 360ms var(--luxury-ease);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  border-color: rgba(31, 119, 116, 0.48);
  background: var(--paper);
  box-shadow:
    0 0 0 4px rgba(31, 119, 116, 0.075),
    0 12px 30px rgba(43, 64, 60, 0.065);
}

/* Homepage material depth */
.hero-band {
  min-height: min(708px, calc(100svh - 92px));
  margin-top: 12px;
  border-top: 1px solid rgba(58, 46, 43, 0.06);
  border-bottom: 1px solid rgba(58, 46, 43, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-image {
  animation: heroDrift 24s var(--luxury-ease) infinite alternate;
}

.hero-scan {
  opacity: 0.58;
  animation-duration: 7.4s;
  animation-timing-function: var(--luxury-ease);
}

.hero-gridline {
  opacity: 0.2;
  animation: none;
}

.hero-content h1 {
  max-width: 760px;
  font-weight: 720;
  text-wrap: balance;
}

.hero-copy,
.page-intro {
  color: #514b48;
}

.face-panel {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 250, 247, 0.76);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 22px 60px rgba(74, 52, 49, 0.13);
  backdrop-filter: blur(16px) saturate(126%);
}

.capability-rail {
  border: 1px solid var(--material-line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 var(--material-highlight),
    var(--shadow-card);
}

.role-entry-band {
  gap: 18px;
}

.role-card,
.role-card:last-child {
  border: 1px solid var(--material-line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 var(--material-highlight),
    var(--shadow-card);
  transition:
    box-shadow 700ms var(--luxury-ease),
    transform 700ms var(--luxury-ease);
}

.role-card:hover,
.role-card:focus-within {
  box-shadow:
    inset 0 1px 0 var(--material-highlight),
    var(--shadow-hover);
  transform: translateY(-6px);
}

/* Quiet workspaces with precise enclosure */
.workspace-band {
  border-top: 1px solid rgba(58, 46, 43, 0.055);
}

.section-head .page-title,
.analysis-titlebar h1,
.agent-head h1,
.analysis-results-heading h2 {
  font-weight: 720;
  text-wrap: balance;
}

.analysis-stepper,
.analysis-control-panel,
.report-canvas,
.tryon-dock,
.recommended-strip,
.agent-production-area .agent-control-panel,
.order-form,
.payment-panel,
.cart-workspace,
.mall-order-card {
  border: 1px solid var(--material-line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 var(--material-highlight),
    var(--shadow-card);
}

.analysis-stepper {
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(125%);
}

.analysis-control-panel,
.agent-production-area .agent-control-panel,
.recommended-strip {
  background: rgba(255, 254, 252, 0.91);
  backdrop-filter: blur(18px) saturate(125%);
}

.upload-tile {
  border: 1px solid rgba(31, 119, 116, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), transparent 58%),
    rgba(235, 244, 241, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    border-color 420ms var(--luxury-ease),
    box-shadow 520ms var(--luxury-ease),
    transform 520ms var(--luxury-ease);
}

.upload-tile:hover,
.upload-tile:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 44px rgba(43, 64, 60, 0.1);
  transform: translateY(-4px);
}

.report-canvas {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 46%),
    var(--paper);
}

.tryon-dock {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.46), transparent 54%),
    #e6efeb;
}

.artist-card,
.product-card,
.draft-card {
  border: 1px solid var(--material-line);
  border-radius: 8px;
  background: rgba(255, 254, 252, 0.96);
  box-shadow:
    inset 0 1px 0 var(--material-highlight),
    0 10px 30px rgba(58, 44, 40, 0.055);
  transition:
    border-color 520ms var(--luxury-ease),
    box-shadow 650ms var(--luxury-ease),
    transform 650ms var(--luxury-ease);
}

.artist-card:hover,
.artist-card:focus-within,
.product-card:hover,
.product-card:focus-within,
.draft-card:hover,
.draft-card:focus-within,
.draft-card.is-selected {
  border-color: rgba(154, 87, 96, 0.23);
  box-shadow:
    inset 0 1px 0 var(--material-highlight),
    var(--shadow-hover);
  transform: translateY(-6px);
}

.artist-cover,
.product-visual,
.portfolio-card {
  overflow: hidden;
}

.artist-cover {
  transition: background-size 900ms var(--luxury-ease);
}

.artist-card:hover .artist-cover,
.artist-card:focus-within .artist-cover {
  background-size: 106%;
}

.shop-homepage {
  border: 1px solid var(--material-line);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 var(--material-highlight),
    var(--shadow-float);
}

.shop-homepage .shop-hero {
  border-radius: 7px 7px 0 0;
}

.shop-meta span,
.status-strip span,
.cart-mini {
  border-color: rgba(58, 46, 43, 0.09);
  background: rgba(255, 254, 252, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.agent-steps button {
  transition:
    color 420ms var(--luxury-ease),
    background-color 420ms var(--luxury-ease),
    border-color 520ms var(--luxury-ease),
    transform 520ms var(--luxury-ease);
}

.agent-steps button:hover,
.agent-steps button:focus-visible {
  transform: translateY(-2px);
}

.category-bar {
  top: 92px;
  border-color: rgba(58, 46, 43, 0.09);
  background: rgba(241, 244, 242, 0.88);
  box-shadow: 0 12px 34px rgba(43, 64, 60, 0.065);
  backdrop-filter: blur(20px) saturate(128%);
}

.category-bar .chip,
.booking-filter .chip {
  transition:
    color 360ms var(--luxury-ease),
    background-color 360ms var(--luxury-ease),
    box-shadow 440ms var(--luxury-ease),
    transform 440ms var(--luxury-ease);
}

.category-bar .chip:hover,
.booking-filter .chip:hover {
  transform: translateY(-1px);
}

.product-body {
  border-top: 1px solid rgba(58, 46, 43, 0.075);
}

/* Deep editorial footer */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #202624;
  color: #f7f2ed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  content: "";
}

.footer-inner {
  position: relative;
  max-width: 1280px;
  gap: clamp(36px, 7vw, 96px);
}

.footer-brand strong,
.footer-grid h2 {
  color: #fffaf6;
}

.footer-brand p,
.footer-grid p,
.footer-grid a {
  color: rgba(247, 242, 237, 0.62);
}

.footer-grid a {
  font-weight: 620;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: #efb7bd;
}

.footer-grid section {
  border-left-color: rgba(255, 255, 255, 0.09);
}

/* One-time viewport choreography */
.quality-motion-ready .quality-reveal {
  opacity: 0;
  translate: 0 20px;
  transition:
    opacity 760ms var(--luxury-ease) var(--quality-delay, 0ms),
    translate 760ms var(--luxury-ease) var(--quality-delay, 0ms);
  will-change: opacity, translate;
}

.quality-motion-ready .quality-reveal.is-revealed {
  opacity: 1;
  translate: 0 0;
  will-change: auto;
}

@media (max-width: 900px) {
  .app-header {
    top: 8px;
    width: min(calc(100% - 16px), 860px);
    margin-top: 8px;
  }

  .hero-band {
    margin-top: 8px;
  }

  .role-entry-band {
    gap: 14px;
  }

  .category-bar {
    top: 106px;
  }
}

@media (max-width: 580px) {
  .app-header {
    top: 0;
    width: 100%;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: 0 8px 28px rgba(58, 44, 40, 0.07);
  }

  .hero-band {
    min-height: 570px;
    margin-top: 0;
  }

  .capability-rail,
  .role-card,
  .role-card:last-child {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .role-entry-band {
    gap: 0;
  }

  .analysis-stepper,
  .analysis-control-panel,
  .report-canvas,
  .tryon-dock,
  .recommended-strip,
  .agent-production-area .agent-control-panel,
  .shop-homepage {
    box-shadow: 0 12px 34px rgba(58, 44, 40, 0.07);
  }

  .category-bar {
    top: 98px;
  }

  .footer-grid section {
    border-top-color: rgba(255, 255, 255, 0.09);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .hero-scan {
    animation: none;
  }

  .quality-motion-ready .quality-reveal,
  .quality-motion-ready .quality-reveal.is-revealed {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* Keep the v2 draft map above legacy draft-card artwork rules. */
.draft-grid .draft-card {
  min-height: 430px;
  padding: 16px 18px 20px;
  grid-template-rows: 184px auto auto auto auto;
}

/* Give natural-language editing enough room without crowding the page preview. */
@media (min-width: 1181px) {
  .agent-production-area {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.42fr);
  }
}

.agent-control-panel .chat-input {
  align-items: end;
}

.agent-control-panel .chat-input textarea {
  min-height: 76px;
  max-height: 160px;
  resize: vertical;
  font: inherit;
  line-height: 1.55;
}

.agent-control-panel .chat-input .compact {
  min-height: 44px;
}

.agent-control-panel .chat-log p {
  overflow-wrap: anywhere;
}

.agent-result-banner {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(29, 107, 103, 0.2);
  border-radius: 6px;
  background: rgba(29, 107, 103, 0.07);
  color: var(--ink);
}

.agent-result-banner[hidden] {
  display: none;
}

.agent-result-banner strong {
  font-size: 13px;
}

.agent-result-banner span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.agent-result-banner[data-state="partial"] {
  border-color: rgba(201, 147, 52, 0.3);
  background: rgba(201, 147, 52, 0.09);
}

.agent-result-banner[data-state="fallback"] {
  border-color: rgba(196, 75, 91, 0.25);
  background: rgba(196, 75, 91, 0.08);
}

.agent-inline-status {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid rgba(29, 107, 103, 0.18);
  border-radius: 4px;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.agent-inline-status[data-state="partial"] {
  border-color: rgba(201, 147, 52, 0.3);
  color: #8a6424;
}

.agent-inline-status[data-state="fallback"] {
  border-color: rgba(196, 75, 91, 0.25);
  color: var(--rose-deep);
}

.draft-grid .draft-card::before {
  display: none;
}

@media (max-width: 580px) {
  .draft-grid .draft-card {
    min-height: 0;
    padding: 16px;
    grid-template-rows: 168px auto auto auto auto;
  }

  .draft-grid .draft-page-map {
    height: 168px;
    margin-inline: -16px;
  }

  .version-item,
  .version-preview-bar {
    grid-template-columns: 1fr;
  }

  .version-actions {
    width: 100%;
  }

  .version-actions .compact {
    flex: 1;
  }
}
