:root {
  --cream: #f5f1e8;
  --paper: #ffffff;
  --ink: #1a1410;
  --muted: #635b52;
  --soft: #9a938a;
  --line: #e2dcd0;
  --navy: #1a2840;
  --navy-hover: #102050;
  --gold: #b8915e;
  --sienna: #a06b3e;
  --oxblood: #8b3f3f;
  --shadow: 0 1px 3px rgba(26, 20, 16, 0.05);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, "Source Han Sans CN", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 32px 64px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.wordmark {
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.3px;
}

.mode {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.42);
}

.app-link {
  color: var(--muted);
  text-decoration: none;
}

.topbar-button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 0;
  text-transform: inherit;
}

.topbar-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.language-switcher {
  position: relative;
  display: inline-flex;
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 144px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 20;
}

.language-menu-item {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 10px;
  text-align: left;
}

.language-menu-item:hover,
.language-menu-item[aria-selected="true"] {
  background: rgba(26, 20, 16, 0.05);
  color: var(--ink);
}

.wordmark.app-link {
  color: var(--ink);
}

.product-page {
  min-height: 100vh;
}

.product-topbar {
  position: relative;
  z-index: 4;
}

.topbar-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 10;
}

.account-menu-container {
  position: relative;
}

.account-menu-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
  display: block;
}

.account-menu-item:hover {
  background: rgba(26, 20, 16, 0.05);
  color: var(--ink);
}

.lab-link {
  display: none;
  color: rgba(99, 91, 82, 0.64);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lab-link:hover {
  color: var(--ink);
  border-color: rgba(26, 20, 16, 0.28);
}

.login-page {
  min-height: 100vh;
}

.login-shell {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.55fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  border-top: 1px solid rgba(26, 20, 16, 0.14);
  border-bottom: 1px solid rgba(26, 20, 16, 0.14);
  padding: clamp(46px, 8vw, 108px) 0;
}

.login-copy h1 {
  max-width: 780px;
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.auth-mode-switch button,
.auth-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font: inherit;
}

.auth-mode-switch button {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}

.auth-mode-switch button.active {
  background: var(--ink);
  color: var(--paper);
}

.auth-card label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-password-field {
  display: grid;
  gap: 14px;
}

.auth-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  padding: 14px 14px;
}

.auth-link-button {
  justify-self: start;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-card p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.product-hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(410px, 0.82fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
  margin-bottom: 32px;
  border-top: 1px solid rgba(26, 20, 16, 0.14);
  border-bottom: 1px solid rgba(26, 20, 16, 0.14);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 92px) 0;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  color: var(--navy);
  font-size: clamp(56px, 6.4vw, 82px);
  line-height: 0.98;
  max-width: 620px;
  margin-bottom: 34px;
}

.product-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: center;
  margin-top: 42px;
}

.save-note {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.45;
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid rgba(245, 241, 232, 0.72);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.hero-mirror {
  position: relative;
  min-height: 590px;
  margin: 22px 0;
  overflow: hidden;
  background: #e8e2d5;
  border-left: 1px solid rgba(26, 20, 16, 0.12);
}

.hero-mirror::before {
  content: "";
  position: absolute;
  inset: clamp(22px, 5vw, 58px);
  z-index: 2;
  border: 1px solid rgba(245, 241, 232, 0.34);
  pointer-events: none;
}

.hero-mirror::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(26, 20, 16, 0.24), transparent 18%, transparent 76%, rgba(26, 20, 16, 0.16)),
    linear-gradient(180deg, transparent 58%, rgba(26, 20, 16, 0.24));
  pointer-events: none;
}

.hero-mirror img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-mirror figcaption {
  position: absolute;
  left: clamp(24px, 4vw, 54px);
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(24px, 4vw, 54px);
  z-index: 3;
  color: var(--cream);
}

.hero-mirror figcaption span {
  display: block;
  margin-bottom: 8px;
  color: rgba(245, 241, 232, 0.68);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-mirror figcaption strong {
  display: block;
  max-width: 330px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.02;
}

.practice-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(26, 20, 16, 0.14);
  margin-bottom: 34px;
  border: 1px solid rgba(26, 20, 16, 0.12);
}

.practice-strip div {
  min-height: 150px;
  background: rgba(245, 241, 232, 0.88);
  padding: 24px;
}

.practice-strip span {
  display: block;
  color: var(--soft);
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 18px;
}

.practice-strip strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 8px;
}

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

.hero-copy .paste-hint {
  margin-top: 14px;
  text-align: left;
}

.quota-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.billing-page {
  min-height: 100vh;
}

.billing-hero {
  border-top: 1px solid rgba(26, 20, 16, 0.14);
  border-bottom: 1px solid rgba(26, 20, 16, 0.14);
  padding: clamp(40px, 6vw, 82px) 0 48px;
}

.billing-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: 48px;
  align-items: end;
}

.billing-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.billing-quota-summary {
  border-left: 2px solid var(--gold);
  padding: 4px 0 6px 18px;
}

.billing-quota-summary span,
.billing-quota-summary strong {
  display: block;
}

.billing-quota-summary span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.billing-quota-summary strong {
  margin-top: 12px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
}

.billing-hero .notice {
  margin: 32px 0 0;
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  padding: 48px 0;
}

.billing-plan-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  min-height: 430px;
  padding: 32px;
}

.billing-plan-card.featured {
  border-color: rgba(26, 40, 64, 0.34);
}

.billing-plan-copy {
  display: grid;
  gap: 16px;
  min-height: 190px;
}

.billing-plan-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.billing-plan-card h2 span {
  color: var(--muted);
  font-family: Inter, "Source Han Sans CN", "PingFang SC", sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.billing-plan-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.billing-plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 32px;
}

.billing-plan-topline span {
  border: 1px solid rgba(26, 40, 64, 0.18);
  border-radius: 999px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.billing-feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.billing-feature-list li {
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  min-height: 48px;
  padding-top: 12px;
}

.billing-plan-footer {
  align-self: end;
  display: grid;
  gap: 14px;
}

.billing-current-plan {
  align-items: center;
  background: rgba(26, 20, 16, 0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted) !important;
  display: flex;
  font-size: 15px !important;
  font-weight: 500;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
}

.subscription-details {
  margin-bottom: 48px;
}

.subscription-details-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.subscription-details-card h2 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 600;
}

.subscription-info {
  display: grid;
  gap: 20px;
  margin: 0;
}

.subscription-info > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
}

.subscription-info dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.subscription-info dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.billing-plan-state,
.billing-local-preview {
  color: var(--soft) !important;
  font-size: 13px !important;
}

.billing-fine-print {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(26, 20, 16, 0.2);
  margin-top: 8px;
}

.billing-fine-print div {
  min-height: 170px;
  padding: 28px 32px;
}

.billing-fine-print div + div {
  border-left: 1px solid rgba(26, 20, 16, 0.14);
}

.billing-fine-print span {
  display: block;
  margin-bottom: 26px;
  color: var(--soft);
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 40px;
  line-height: 1;
}

.billing-fine-print strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.billing-fine-print p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.product-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
  margin-top: 48px;
}

.stage-photo,
.stage-result {
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.stage-photo {
  padding: 24px;
}

.stage-result {
  padding: 32px;
}

.product-photo-zone {
  min-height: 560px;
}

.product-photo-zone img {
  max-width: min(86%, 420px);
  max-height: 520px;
}

.loading-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.product-result {
  display: grid;
  gap: 24px;
}

.audit-result-card {
  gap: 0;
}

.audit-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.audit-decision h2 {
  margin: 10px 0 18px;
  max-width: 760px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: clamp(44px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.audit-decision p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.audit-status {
  min-width: 136px;
  padding-top: 4px;
  text-align: right;
}

.audit-status strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.audit-status span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.45;
}

.audit-mode-shell {
  padding-top: 26px;
}

.audit-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 28px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.audit-tab {
  min-width: 152px;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  color: var(--muted);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.audit-tab.active {
  color: var(--navy);
  background: rgba(26, 40, 64, 0.06);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.audit-mode-panel {
  min-width: 0;
}

.audit-panel-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.audit-panel-kicker h3 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.audit-panel-kicker span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.audit-action-item,
.stylist-analysis-item {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.audit-action-number,
.stylist-analysis-number {
  color: rgba(26, 20, 16, 0.42);
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

.audit-action-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

.audit-action-copy p,
.stylist-analysis-copy p,
.stylist-analysis-copy li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.audit-keep-note,
.stylist-analysis-item.highlight {
  margin-top: 12px;
  padding: 20px 22px 20px 26px;
  border-left: 2px solid var(--gold, #b8915e);
  background: rgba(184, 145, 94, 0.1);
}

.audit-keep-note h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.audit-keep-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.audit-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.audit-cta-row span {
  max-width: 340px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.48;
}

.audit-clear-state {
  padding: 28px;
  border: 1px solid rgba(26, 40, 64, 0.14);
  border-radius: 12px;
  background: rgba(26, 40, 64, 0.045);
}

.audit-clear-state h3 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.audit-clear-state p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.stylist-analysis-view {
  padding-top: 0;
}

.stylist-analysis-item {
  grid-template-columns: 66px minmax(0, 1fr);
}

.stylist-analysis-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.stylist-analysis-copy ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stylist-analysis-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
}

.stylist-analysis-item.highlight {
  grid-template-columns: 66px minmax(0, 1fr);
  border-bottom: 0;
}

.next-version-section {
  margin-top: 48px;
  padding: 44px 32px 32px;
  border-top: 1px solid rgba(26, 20, 16, 0.16);
  border-bottom: 1px solid rgba(26, 20, 16, 0.12);
}

.next-version-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.next-version-header h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.next-version-header p:not(.panel-title) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.next-version-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.next-version-card {
  min-width: 0;
  border: 1px solid rgba(226, 220, 208, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
}

.next-version-card-copy {
  padding: 22px 22px 18px;
}

.next-version-index {
  margin: 0 0 14px;
  color: var(--soft);
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 32px;
  line-height: 1;
}

.next-version-card h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.2px;
}

.next-version-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.next-version-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.next-version-guide-card {
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  grid-template-rows: minmax(520px, auto) auto;
  column-gap: 0;
}

.next-version-guide-card .next-version-card-copy {
  grid-row: 1 / 3;
  border-right: 1px solid var(--line);
  padding: 28px 28px 24px;
}

.next-version-panel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.next-version-card .next-version-panel-list span {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(26, 40, 64, 0.16);
  border-radius: 999px;
  background: rgba(26, 40, 64, 0.045);
  color: var(--navy);
  font-size: 12px;
  line-height: 1.2;
}

.next-version-placeholder {
  min-height: 260px;
  margin: 0 18px 18px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.76)),
    repeating-linear-gradient(45deg, rgba(26, 20, 16, 0.035), rgba(26, 20, 16, 0.035) 1px, transparent 1px, transparent 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-version-guide-card .next-version-placeholder {
  min-height: 520px;
  margin: 22px 22px 0;
}

.next-version-image {
  margin: 0 18px;
  border-radius: 10px;
  background: var(--cream);
  overflow: hidden;
}

.next-version-guide-card .next-version-image {
  margin: 22px 22px 0;
}

.next-version-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
}

.next-version-guide-card .next-version-image img {
  min-height: 520px;
}

.next-version-note {
  border-top: 1px solid var(--line);
  margin: 18px;
  padding-top: 16px;
}

.next-version-note p {
  color: var(--muted);
  font-size: 14px;
}

.next-version-note span {
  color: var(--soft);
  font-size: 12px;
}

.next-version-note.error p {
  color: var(--sienna);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

.text-link {
  color: var(--navy);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 40, 64, 0.28);
}

.site-footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(26, 20, 16, 0.14);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer .text-link {
  font-size: 13px;
}

.legal-page {
  max-width: 1000px;
}

.legal-hero {
  border-top: 1px solid rgba(26, 20, 16, 0.14);
  border-bottom: 1px solid rgba(26, 20, 16, 0.14);
  padding: clamp(34px, 6vw, 68px) 0;
}

.legal-hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1.04;
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.legal-content {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.legal-content section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.scta-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scta-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.34fr) minmax(0, 1fr);
}

.scta-row + .scta-row {
  border-top: 1px solid var(--line);
}

.scta-row dt,
.scta-row dd {
  margin: 0;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.72;
}

.scta-row dt {
  color: var(--ink);
  background: rgba(26, 20, 16, 0.04);
  font-weight: 600;
}

.scta-row dd {
  color: var(--muted);
}

.recent-looks-section {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid rgba(26, 20, 16, 0.14);
}

.looks-block,
.looks-insight-block {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid rgba(26, 20, 16, 0.14);
}

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

.look-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(226, 220, 208, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.look-card-main {
  min-height: 0;
  height: 100%;
  grid-row: 1 / -1;
  display: grid;
  grid-template-rows: auto auto;
  color: inherit;
  text-decoration: none;
}

.look-card figure {
  aspect-ratio: 4 / 5;
  min-height: 0;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(45deg, rgba(26, 20, 16, 0.035), rgba(26, 20, 16, 0.035) 1px, transparent 1px, transparent 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.look-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
}

.look-card-placeholder {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.look-card-copy {
  padding: 18px;
}

.look-card-copy span,
.look-card-copy strong {
  display: block;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.look-card-copy h3 {
  margin: 10px 0 8px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0;
}

.look-card-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.look-delete-button {
  appearance: none;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 220, 208, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 520;
  line-height: 1;
  padding: 8px 13px;
  transition: border-color 160ms ease-out, color 160ms ease-out, opacity 160ms ease-out, background 160ms ease-out;
}

.look-delete-button:hover {
  border-color: rgba(139, 63, 63, 0.38);
  color: var(--oxblood);
  background: rgba(255, 255, 255, 0.96);
}

.look-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.look-card > .look-delete-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  opacity: 0;
}

.look-card:hover > .look-delete-button,
.look-card:focus-within > .look-delete-button {
  opacity: 1;
}

.has-delete-dialog {
  overflow: hidden;
}

.delete-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(245, 241, 232, 0.72), rgba(245, 241, 232, 0.78)),
    rgba(26, 20, 16, 0.18);
  backdrop-filter: blur(12px);
}

.delete-dialog-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(226, 220, 208, 0.92);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 26px 80px rgba(26, 20, 16, 0.18);
  padding: 34px;
}

.delete-dialog-kicker {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.delete-dialog-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.delete-dialog-panel p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.delete-dialog-error {
  border-left: 2px solid var(--oxblood);
  color: var(--oxblood) !important;
  padding-left: 14px;
}

.delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.delete-dialog-actions .button {
  min-width: 112px;
  padding: 13px 22px;
}

.product-page .recent-looks-grid {
  grid-template-columns: repeat(3, minmax(180px, 260px));
  justify-content: start;
  align-items: stretch;
  gap: 16px;
}

.product-page .look-card {
  height: 100%;
  grid-template-rows: 260px minmax(0, 1fr);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-page .look-card-main {
  grid-template-rows: 260px minmax(0, 1fr);
}

.product-page .look-card figure {
  height: 260px;
  aspect-ratio: auto;
  max-height: none;
}

.product-page .look-card-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 14px 16px 16px;
}

.product-page .look-card-copy h3 {
  display: -webkit-box;
  margin: 8px 0 6px;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.12;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-page .look-card-copy p {
  display: -webkit-box;
  margin-bottom: 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.looks-hero {
  padding: 42px 0 36px;
  border-top: 1px solid rgba(26, 20, 16, 0.14);
  border-bottom: 1px solid rgba(26, 20, 16, 0.14);
}

.looks-hero--with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.looks-hero--with-action .subtitle {
  max-width: 720px;
}

.looks-hero--with-action .button {
  flex: 0 0 auto;
  margin-bottom: 4px;
  text-decoration: none;
}

.looks-hero h1,
.look-detail-hero h1 {
  max-width: 860px;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.looks-timeline {
  display: grid;
  border-top: 1px solid var(--line);
}

.looks-page .looks-tile-grid {
  display: grid;
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 18px;
}

.looks-tile-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
  gap: 22px;
}

.looks-tile-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
}

.looks-page .looks-tile-grid .look-card {
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.looks-page .looks-tile-grid .look-card-main {
  grid-template-rows: 280px minmax(188px, 1fr);
}

.looks-page .looks-tile-grid .look-card figure {
  height: 280px;
  aspect-ratio: auto;
  max-height: none;
}

.looks-page .looks-tile-grid .look-card-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 14px 16px 16px;
}

.looks-page .looks-tile-grid .look-card-copy h3 {
  display: -webkit-box;
  margin: 8px 0 6px;
  overflow: hidden;
  font-size: 22px;
  line-height: 1.12;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.looks-page .looks-tile-grid .look-card-copy p {
  display: -webkit-box;
  margin-bottom: 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.looks-page .looks-tile-grid--featured .look-card-copy h3 {
  font-size: 26px;
}

.looks-empty-state {
  max-width: 460px;
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.looks-empty-state p {
  margin: 0;
}

.looks-empty-state .button {
  width: fit-content;
  text-decoration: none;
}

.look-timeline-row {
  display: grid;
  grid-template-columns: 130px minmax(180px, 0.46fr) minmax(0, 1fr) 96px;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.look-timeline-row span,
.look-timeline-row em {
  color: var(--soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.look-timeline-row strong {
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.08;
}

.look-timeline-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.recurring-issue-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.recurring-issue {
  padding: 18px;
  border-left: 2px solid var(--gold);
  background: rgba(184, 145, 94, 0.1);
}

.recurring-issue strong,
.recurring-issue span {
  display: block;
}

.recurring-issue strong {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--ink);
}

.recurring-issue span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.look-detail-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 0;
  border-top: 1px solid rgba(26, 20, 16, 0.14);
  border-bottom: 1px solid rgba(26, 20, 16, 0.14);
}

.look-detail-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.look-delete-button--inline {
  min-height: 45px;
  padding: 13px 18px;
  border-radius: 8px;
}

.look-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
}

.look-detail-meta span {
  position: relative;
}

.look-detail-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(154, 147, 138, 0.75);
}

.look-comparison-stage {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 0.54fr);
  gap: 1px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid rgba(226, 220, 208, 0.96);
  border-radius: 12px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.look-compare-figure {
  min-height: 620px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  margin: 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.look-compare-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.look-compare-figure figcaption span,
.look-detail-meta {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.look-compare-figure figcaption span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 520;
}

.look-compare-figure figcaption strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
}

.look-compare-figure img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: var(--cream);
}

.look-compare-figure.after img {
  object-fit: contain;
}

.look-after-placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(45deg, rgba(26, 20, 16, 0.035), rgba(26, 20, 16, 0.035) 1px, transparent 1px, transparent 14px);
  color: var(--muted);
  text-align: center;
}

.look-after-placeholder > div {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.look-after-placeholder .button {
  min-width: 150px;
}

.look-after-placeholder p {
  max-width: 280px;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.look-after-error {
  color: var(--oxblood);
}

.look-actions-section,
.detail-main-card {
  border: 1px solid rgba(226, 220, 208, 0.96);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  padding: 24px;
}

.look-actions-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 36px;
  padding: 28px;
}

.look-section-heading {
  position: sticky;
  top: 24px;
}

.look-section-heading h2 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
}

.look-section-heading p:not(.panel-title) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.66;
}

.detail-card-heading h2,
.detail-main-card h2 {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
}

.detail-list {
  display: grid;
  gap: 0;
}

.detail-action {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.detail-action:first-child {
  padding-top: 0;
  border-top: 0;
}

.detail-action span {
  color: var(--soft);
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 34px;
  line-height: 1;
}

.detail-action h3,
.detail-main-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.detail-action p,
.detail-fact p,
.detail-main-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.66;
}

.detail-fact {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.detail-fact strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.detail-main-card.highlight {
  border-left: 2px solid var(--gold);
  background: rgba(184, 145, 94, 0.1);
}

.look-support-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.46fr) minmax(0, 0.54fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

h1 {
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -1px;
  margin: 0 0 18px;
  max-width: 840px;
}

.subtitle {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

.paste-hint {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease-out, opacity 180ms ease-out, transform 100ms ease-in;
}

.button:active {
  transform: scale(0.98);
}

.button.primary {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 12px 28px rgba(26, 40, 64, 0.16);
}

.button.primary:hover {
  background: var(--navy-hover);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.file-button input {
  display: none;
}

.notice {
  border: 1px solid rgba(160, 107, 62, 0.34);
  background: rgba(160, 107, 62, 0.08);
  color: var(--sienna);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.run-status {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(26, 40, 64, 0.18);
  border-radius: 12px;
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 18px 44px rgba(26, 20, 16, 0.2);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.45;
}

.lab-grid {
  display: grid;
  grid-template-columns: 250px minmax(460px, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel.flat {
  box-shadow: none;
}

.panel-title {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 16px;
}

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

.history-empty {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.history-item {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid transparent;
  color: inherit;
  cursor: pointer;
}

.history-item.active {
  border-color: var(--navy);
  background: rgba(26, 40, 64, 0.06);
}

.thumb {
  width: 52px;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: var(--line);
  object-fit: cover;
}

.history-name {
  font-size: 13px;
  margin: 0 0 4px;
  word-break: break-word;
}

.history-meta {
  color: var(--soft);
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}

.photo-zone {
  min-height: 500px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(45deg, rgba(26, 20, 16, 0.035), rgba(26, 20, 16, 0.035) 1px, transparent 1px, transparent 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

.photo-zone img {
  max-width: min(78%, 380px);
  max-height: 460px;
  border-radius: 12px;
  background: var(--paper);
  object-fit: contain;
}

.photo-zone.empty {
  text-align: center;
}

.empty-copy h2 {
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}

.empty-copy p {
  color: var(--muted);
  margin: 0;
  max-width: 360px;
  line-height: 1.65;
}

.photo-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 16px;
}

.run-panel {
  display: grid;
  gap: 18px;
}

.run-card {
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.run-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.3px;
}

.run-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

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

.experiment {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid rgba(226, 220, 208, 0.9);
}

.experiment:first-child {
  border-top: 0;
  padding-top: 0;
}

.experiment-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.experiment-meta {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.status-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.status-line.error {
  color: var(--oxblood);
}

.results {
  margin-top: 48px;
}

.tryon-section {
  margin-top: 48px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.results-header h2 {
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0;
}

.run-state {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.run-state.error {
  color: var(--sienna);
}

.result-shell {
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.empty-result {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}

.comparison-layout {
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1.55fr);
}

.result-photo {
  border-radius: 12px;
  background: var(--cream);
  overflow: hidden;
}

.result-photo img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.result-content {
  display: grid;
  gap: 24px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.comparison-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 24px;
  display: grid;
  gap: 20px;
  min-width: 0;
}

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

.result-title.small {
  font-size: 30px;
  letter-spacing: -0.3px;
}

.cost-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(26, 40, 64, 0.2);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(26, 40, 64, 0.06);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.result-kicker {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.result-title {
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.7px;
  margin: 0;
}

.verdict {
  border-left: 2px solid var(--navy);
  padding-left: 16px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

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

.section-grid.compact {
  gap: 18px;
}

.analysis-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.analysis-section.full-width {
  border-top: 0;
  padding-top: 0;
}

.analysis-section h3 {
  margin: 0 0 20px;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Source Han Serif CN", "Songti SC", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.analysis-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.analysis-section li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.analysis-section strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
}

.hidden-insight {
  background: var(--cream);
  border-radius: 12px;
  padding: 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  word-break: break-word;
}

.meta-grid.compact {
  grid-template-columns: 1fr;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.cost-summary {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(26, 20, 16, 0.1);
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cost-summary span:first-child {
  color: var(--ink);
  font-weight: 500;
}

details.raw-json {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

details.raw-json summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

pre {
  overflow: auto;
  max-height: 360px;
  background: var(--cream);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.tryon-actions {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.tryon-actions h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}

.tryon-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tryon-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.tryon-grid figure {
  margin: 0;
}

.tryon-grid img {
  width: 100%;
  border-radius: 12px;
  background: var(--cream);
  display: block;
}

.tryon-grid figcaption {
  color: var(--soft);
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.tryon-copy {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .page {
    padding: 28px 20px 44px;
  }

  .hero,
  .lab-grid,
  .result-layout,
  .comparison-grid,
  .product-stage,
  .audit-decision,
  .audit-action-item,
  .stylist-analysis-item,
  .section-grid,
  .next-version-header,
  .next-version-grid,
  .tryon-grid,
  .recent-looks-grid,
  .look-timeline-row,
  .recurring-issue-list,
  .look-detail-hero,
  .look-comparison-stage,
  .look-actions-section,
  .look-support-grid,
  .billing-hero-row,
  .billing-plans,
  .billing-fine-print {
    grid-template-columns: 1fr;
  }

  .billing-fine-print div + div {
    border-left: 0;
    border-top: 1px solid rgba(26, 20, 16, 0.14);
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .product-hero {
    min-height: calc(100vh - 92px);
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.82fr);
    gap: 28px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 44px 0;
  }

  .hero-mirror {
    min-height: 560px;
    margin: 18px 0;
    border-left: 1px solid rgba(26, 20, 16, 0.12);
  }

  .practice-strip {
    grid-template-columns: 1fr;
  }

  .photo-meta,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .run-state {
    text-align: left;
  }

  .audit-status {
    text-align: left;
  }

  .audit-mode-tabs {
    width: 100%;
  }

  .audit-tab {
    min-width: 0;
  }

  .next-version-section {
    padding: 36px 0 28px;
  }

  .tryon-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .look-detail-hero {
    align-items: stretch;
  }

  .look-detail-actions {
    justify-content: flex-start;
  }

  .look-compare-figure {
    min-height: 0;
  }

  .look-compare-figure img {
    max-height: 680px;
  }

  .look-section-heading {
    position: static;
  }

  .scta-row {
    grid-template-columns: 1fr;
  }

  .scta-row dd {
    border-top: 1px solid rgba(226, 220, 208, 0.72);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 22px 16px 40px;
  }

  .product-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }

  .topbar-meta span {
    display: none;
  }

  .login-shell {
    min-height: 0;
    padding: 42px 0;
  }

  .login-copy h1 {
    font-size: 52px;
  }

  .auth-card {
    padding: 20px;
  }

  .hero-copy h1 {
    font-size: 48px;
    letter-spacing: 0;
  }

  .billing-hero {
    padding: 34px 0;
  }

  .billing-hero h1 {
    font-size: 48px;
  }

  .billing-plan-card {
    min-height: 0;
    padding: 22px;
  }

  .billing-plan-copy {
    min-height: 0;
  }

  .billing-fine-print div {
    min-height: 0;
    padding: 22px;
  }

  .subtitle {
    font-size: 15px;
  }

  .product-upload {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .save-note {
    font-size: 13px;
  }

  .hero-mirror {
    min-height: 430px;
    margin: 0 0 24px;
    border-left: 0;
    border-top: 1px solid rgba(26, 20, 16, 0.12);
  }

  .practice-strip div {
    min-height: 132px;
    padding: 20px;
  }

  .next-version-header h2 {
    font-size: 36px;
  }

  .next-version-card {
    grid-template-rows: auto auto auto;
  }

  .next-version-guide-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .next-version-guide-card .next-version-card-copy {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .next-version-guide-card .next-version-placeholder,
  .next-version-guide-card .next-version-image,
  .next-version-guide-card .next-version-note {
    margin-left: 18px;
    margin-right: 18px;
  }

  .next-version-guide-card .next-version-placeholder,
  .next-version-guide-card .next-version-image img {
    min-height: 360px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .look-card {
    height: auto;
    grid-template-rows: auto auto;
  }

  .look-card figure,
  .look-card img {
    min-height: 0;
  }

  .look-card > .look-delete-button {
    opacity: 1;
  }
}
