/* ============ Base ============ */
:root {
  --bg: #f6f4ef;
  --surface: #fffdf9;
  --surface-2: #efebe3;
  --ink: #211f1c;
  --ink-soft: #4d4943;
  --muted: #7d786e;
  --line: #e2ddd3;
  --line-dark: #cfc8bc;
  --accent: #92715f;
  --accent-dark: #6f5345;
  --accent-soft: #e9ddd4;
  --sage: #768674;
  --sage-soft: #e2e8df;
  --danger: #a34f45;
  --danger-soft: #f5e5e2;
  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 60px rgba(54, 43, 34, .08);
  --font-sans: "Inter", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 4%, rgba(209, 194, 177, .22), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(166, 181, 164, .16), transparent 26rem);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 8px;
}
.skip-link:focus { top: 16px; }
.noscript { padding: 40px; text-align: center; }
[hidden] { display: none !important; }

.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section { padding-block: 94px; }
.section-tight { padding-block: 64px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 38px;
}
.section-head h2 {
  margin-top: 12px; font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.15; letter-spacing: -.04em; font-weight: 650;
}
.section-head p { max-width: 460px; color: var(--muted); }
.section-head .head-copy { display: grid; gap: 8px; }
.section-link {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 3px; border-bottom: 1px solid var(--line-dark);
  font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s;
}
.section-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

/* ============ Buttons & tags ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border: 1px solid transparent;
  border-radius: 999px; font-size: 13px; font-weight: 650; line-height: 1;
  white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #3a3530; }
.btn-accent { background: var(--accent); color: #fffaf6; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; border-color: var(--line-dark); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-soft); }
.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-soft:hover { background: #dfcfc4; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #efd7d3; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-arrow::after { content: "↗"; font-size: 14px; line-height: 1; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; padding: 0; background: none; color: var(--accent-dark);
  font-size: 13px; font-weight: 650; border-bottom: 1px solid transparent;
}
.text-link:hover { border-color: currentColor; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
}
.chip {
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--line-dark); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tag {
  display: inline-flex; align-items: center; min-height: 25px;
  padding: 0 9px; border-radius: 6px; background: var(--surface-2);
  color: var(--ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .02em;
}
.tag-outline { background: transparent; border: 1px solid var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; background: var(--sage-soft); color: #52634f;
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-warm { background: var(--accent-soft); color: var(--accent-dark); }

/* ============ Site header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--ink); color: var(--bg);
  font-family: var(--font-serif); font-size: 20px; font-weight: 700;
}
.brand-text { display: grid; line-height: 1.1; gap: 3px; }
.brand-text strong { font-size: 17px; letter-spacing: .12em; font-weight: 700; }
.brand-text small { font-size: 8px; letter-spacing: .24em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  position: relative; font-size: 13px; font-weight: 550; color: var(--ink-soft);
  padding-block: 10px;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px;
  height: 1px; background: var(--ink); transition: right .25s;
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-admin {
  font-size: 11px; color: var(--muted); border-bottom: 1px solid transparent;
}
.header-admin:hover { color: var(--ink); border-color: var(--line-dark); }
.nav-toggle {
  display: none; width: 42px; height: 42px; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 15px; height: 1px; background: var(--ink); position: relative;
  transition: transform .2s, opacity .2s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ============ Home hero ============ */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr);
  align-items: center; gap: 72px; padding-block: 76px 82px;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  margin-top: 22px; font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 630; line-height: 1.08; letter-spacing: -.055em;
}
.hero h1 em {
  position: relative; z-index: 0; font-style: normal; color: var(--accent-dark);
  white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; z-index: -1; left: -2px; right: -2px; bottom: 4px;
  height: 18%; background: #dcc8b8; opacity: .7;
}
.hero-lead {
  max-width: 520px; margin-top: 26px; color: var(--ink-soft);
  font-size: 16px; line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 46px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.hero-fact { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); }
.hero-fact:last-child { border: 0; margin: 0; padding: 0; }
.hero-fact strong { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.03em; }
.hero-fact span { font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.hero-art { position: relative; min-height: 550px; }
.art-panel {
  position: absolute; inset: 0 8% 0 6%;
  border-radius: 210px 210px 26px 26px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(250, 246, 238, .8) 0 13%, transparent 13.5%),
    radial-gradient(ellipse at 50% 112%, rgba(73, 64, 55, .24) 0 44%, transparent 44.5%),
    linear-gradient(155deg, #d7d0c1 0%, #b9a995 45%, #8b7766 100%);
  box-shadow: inset 0 0 80px rgba(60, 49, 39, .15);
}
.art-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .22) .6px, transparent .6px);
  background-size: 5px 5px; opacity: .35; mix-blend-mode: soft-light;
}
.art-panel::after {
  content: ""; position: absolute; width: 76%; height: 42%; left: 12%; top: 18%;
  border: 1px solid rgba(255, 250, 242, .35); border-radius: 50%;
  transform: rotate(-12deg);
}
.portrait-figure { position: absolute; inset: 0; z-index: 1; }
.portrait-figure .figure-head {
  position: absolute; top: 24%; left: 50%; width: 27%; aspect-ratio: .82;
  border-radius: 48% 48% 46% 46% / 42% 42% 58% 58%;
  transform: translateX(-50%) rotate(2deg);
  background: linear-gradient(135deg, rgba(255, 251, 244, .8), rgba(121, 102, 87, .45));
  box-shadow: inset -14px -8px 30px rgba(82, 66, 53, .2);
}
.portrait-figure .figure-body {
  position: absolute; left: 50%; bottom: -7%; width: 60%; height: 49%;
  border-radius: 48% 48% 8% 8% / 30% 30% 0 0;
  transform: translateX(-50%);
  background: linear-gradient(150deg, rgba(244, 237, 226, .78), rgba(95, 78, 64, .55));
  box-shadow: inset 18px 0 40px rgba(255, 255, 255, .16);
}
.art-kicker {
  position: absolute; z-index: 4; top: 38px; left: 34px;
  color: rgba(255, 251, 244, .88); font-size: 9px; font-weight: 700;
  letter-spacing: .22em; writing-mode: vertical-rl;
}
.art-caption {
  position: absolute; z-index: 4; left: 38px; bottom: 32px;
  color: rgba(255, 251, 244, .92); font-family: var(--font-serif);
  font-size: 22px; letter-spacing: .08em;
}
.art-caption small {
  display: block; margin-top: 6px; font-family: var(--font-sans);
  font-size: 9px; letter-spacing: .18em; opacity: .72;
}
.art-index {
  position: absolute; z-index: 4; right: 30px; top: 34px;
  color: rgba(255, 251, 244, .74); font-family: var(--font-serif);
  font-size: 13px; letter-spacing: .12em;
}
.float-card {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 14px 17px; border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 16px; background: rgba(255, 253, 249, .9);
  box-shadow: 0 16px 38px rgba(47, 38, 29, .14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.float-card strong { display: block; font-size: 12px; line-height: 1.35; }
.float-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.float-a { left: -5%; bottom: 104px; }
.float-b { right: -8%; bottom: 30px; }
.float-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(118, 134, 116, .16); }
.mini-avatars { display: flex; padding-left: 7px; }
.mini-avatars span {
  width: 30px; height: 30px; margin-left: -7px; display: grid; place-items: center;
  border: 2px solid var(--surface); border-radius: 50%;
  font-size: 9px; font-weight: 700; color: #fffaf5;
}
.mini-avatars span:nth-child(1) { background: #8d9b83; }
.mini-avatars span:nth-child(2) { background: #9a7866; }
.mini-avatars span:nth-child(3) { background: #77716b; }
.art-stamp {
  position: absolute; z-index: 5; right: 18px; top: 76px;
  width: 76px; height: 76px; display: grid; place-items: center;
  border: 1px solid rgba(255, 251, 244, .52); border-radius: 50%;
  color: rgba(255, 251, 244, .82); font-family: var(--font-serif);
  font-size: 8px; line-height: 1.45; text-align: center; letter-spacing: .12em;
  transform: rotate(8deg);
}
.marquee {
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.marquee-inner {
  display: flex; justify-content: space-between; gap: 24px; padding-block: 18px;
  overflow: hidden; color: var(--muted); font-size: 10px; letter-spacing: .13em;
  font-weight: 600; text-transform: uppercase;
}
.marquee-inner span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.marquee-inner span::before { content: "✦"; color: var(--accent); font-size: 9px; }

/* ============ Creator cards ============ */
.creator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.creator-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: 9px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: transform .28s, box-shadow .28s, border-color .28s;
}
.creator-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-dark); }
.creator-cover {
  position: relative; overflow: hidden; aspect-ratio: 1.23 / 1;
  border-radius: 19px; isolation: isolate;
}
.creator-cover::before {
  content: ""; position: absolute; width: 56%; aspect-ratio: 1; right: -12%; top: 12%;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .05), 0 0 0 44px rgba(255, 255, 255, .035);
}
.creator-cover::after {
  content: ""; position: absolute; left: -18%; bottom: -44%; width: 92%; aspect-ratio: 1;
  border-radius: 50%; background: rgba(255, 250, 242, .12);
}
.cover-monogram {
  position: absolute; z-index: 2; right: 7%; bottom: -7%;
  color: rgba(255, 250, 244, .37); font-family: var(--font-serif);
  font-size: clamp(96px, 10vw, 142px); line-height: 1; font-weight: 400;
  letter-spacing: -.08em;
}
.cover-index {
  position: absolute; z-index: 3; left: 20px; top: 17px;
  color: rgba(255, 250, 244, .82); font-size: 9px; font-weight: 700; letter-spacing: .18em;
}
.cover-seal {
  position: absolute; z-index: 3; right: 17px; top: 16px;
  padding: 5px 9px; border: 1px solid rgba(255, 250, 244, .35);
  border-radius: 999px; color: rgba(255, 250, 244, .9); font-size: 8px;
  letter-spacing: .08em; backdrop-filter: blur(5px);
}
.cover-word {
  position: absolute; z-index: 3; left: 20px; bottom: 17px;
  color: rgba(255, 250, 244, .94); font-family: var(--font-serif);
  font-size: 19px; letter-spacing: .06em;
}
.cover-word small {
  display: block; margin-top: 3px; font-family: var(--font-sans);
  font-size: 8px; letter-spacing: .17em; opacity: .75;
}
.creator-body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 12px; }
.creator-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.creator-title-row h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.03em; }
.creator-tagline { margin-top: 4px; color: var(--muted); font-size: 11px; }
.creator-price { flex: none; text-align: right; }
.creator-price small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.creator-price strong { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.creator-bio {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 12px; color: var(--ink-soft); font-size: 12px; line-height: 1.7;
}
.creator-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.creator-foot {
  display: flex; align-items: center; gap: 9px; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.creator-foot .tag { margin-right: auto; }
.avatar {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--surface-2);
  color: var(--ink-soft); font-family: var(--font-serif); font-size: 13px;
}
.creator-foot .avatar { width: 26px; height: 26px; font-size: 11px; }
.creator-foot .mini-label { font-size: 9px; color: var(--muted); margin-right: auto; }
.creator-foot .text-link { font-size: 11px; }
.creator-more {
  display: inline-flex; align-items: center; gap: 5px; margin-left: auto;
  color: var(--ink); font-size: 11px; font-weight: 650;
}
.creator-more:hover { color: var(--accent-dark); }

/* Theme artwork gradients */
.theme-0 { background: linear-gradient(150deg, #cfd6c4 0%, #9aa88c 48%, #5a6855 100%); }
.theme-1 { background: linear-gradient(155deg, #e0ddd6 0%, #aaa6a0 52%, #66625c 100%); }
.theme-2 { background: linear-gradient(150deg, #e1c9b6 0%, #b18c74 50%, #71503f 100%); }
.theme-3 { background: linear-gradient(150deg, #dee7e2 0%, #a8bcb4 52%, #6d817a 100%); }
.theme-4 { background: linear-gradient(150deg, #c3bdbd 0%, #858080 50%, #484244 100%); }
.theme-5 { background: linear-gradient(150deg, #dfd0b6 0%, #b39a71 52%, #715c3e 100%); }
.theme-0::before, .theme-1::before, .theme-2::before,
.theme-3::before, .theme-4::before, .theme-5::before {
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(255, 253, 247, .32), transparent 42%),
    radial-gradient(rgba(255, 255, 255, .2) .6px, transparent .6px);
  background-size: auto, 5px 5px;
}

/* ============ Process + CTA ============ */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); margin-top: 8px;
}
.process-step { padding: 30px 26px 6px 0; border-right: 1px solid var(--line); }
.process-step + .process-step { padding-left: 26px; }
.process-step:last-child { border-right: 0; padding-right: 0; }
.step-no {
  display: inline-block; color: var(--accent); font-family: var(--font-serif);
  font-size: 13px; letter-spacing: .08em;
}
.process-step h3 { margin-top: 30px; font-size: 17px; letter-spacing: -.02em; }
.process-step p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.process-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 40px;
  padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--muted); font-size: 11px;
}
.process-foot::before { content: "○"; color: var(--accent); }
.cta-section { padding-block: 94px; }
.cta-panel {
  position: relative; overflow: hidden; display: grid;
  grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px;
  min-height: 310px; padding: 56px 64px; border-radius: 30px;
  background: #292622; color: #f8f4ed;
}
.cta-panel::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 50px rgba(255, 255, 255, .025), 0 0 0 100px rgba(255, 255, 255, .02);
}
.cta-panel .eyebrow { color: #c9b5a5; }
.cta-panel h2 {
  max-width: 590px; margin-top: 17px; font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 600; line-height: 1.2; letter-spacing: -.045em;
}
.cta-panel p { max-width: 500px; margin-top: 15px; color: rgba(248, 244, 237, .6); font-size: 12px; }
.cta-actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }
.cta-panel .btn-primary { background: #f4ede4; color: var(--ink); }
.cta-panel .btn-primary:hover { background: #fff; }
.cta-panel .btn-secondary { color: #f8f4ed; border-color: rgba(255, 255, 255, .25); }
.cta-panel .btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--line); background: #f1eee8; }
.footer-main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px; padding-block: 58px 42px;
}
.footer-brand p { max-width: 290px; margin-top: 17px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.footer-col h4 {
  margin-bottom: 15px; color: var(--muted); font-size: 9px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.footer-col a, .footer-col span {
  display: block; margin-bottom: 9px; color: var(--ink-soft); font-size: 12px;
}
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 9px; letter-spacing: .03em;
}
.footer-bottom .demo-note { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .demo-note::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ============ Discover page ============ */
.page-hero { padding-block: 66px 40px; }
.page-hero h1 { margin-top: 14px; font-size: clamp(36px, 5vw, 60px); line-height: 1.12; letter-spacing: -.05em; font-weight: 620; }
.page-hero p { max-width: 620px; margin-top: 17px; color: var(--muted); font-size: 14px; }
.discover-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filter-scroll { display: flex; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; gap: 8px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.search-box {
  flex: none; display: flex; align-items: center; gap: 9px;
  width: 240px; height: 42px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.search-box:focus-within { border-color: var(--ink-soft); box-shadow: 0 0 0 3px rgba(57, 49, 40, .05); }
.search-box svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.search-box input { width: 100%; border: 0; outline: 0; background: none; font-size: 12px; }
.search-box input::placeholder { color: #aaa49a; }
.discover-body { padding-block: 32px 94px; }
.result-meta { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: 11px; }
.empty-state {
  padding: 70px 24px; border: 1px dashed var(--line-dark);
  border-radius: var(--radius-lg); text-align: center; background: rgba(255, 253, 249, .5);
}
.empty-state .empty-mark { margin: 0 auto 18px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-family: var(--font-serif); font-size: 20px; color: var(--muted); }
.empty-state h3 { font-size: 18px; }
.empty-state p { margin: 7px auto 20px; max-width: 380px; color: var(--muted); font-size: 12px; }
.page-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 28px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 11px; line-height: 1.7;
}
.page-note::before { content: "i"; flex: none; width: 18px; height: 18px; display: grid; place-items: center; margin-top: 1px; border: 1px solid var(--line-dark); border-radius: 50%; font-family: var(--font-serif); font-size: 10px; }

/* ============ Profile ============ */
.profile-page { padding-block: 34px 94px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.back-link:hover { color: var(--ink); }
.profile-hero {
  display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  gap: 58px; align-items: center; margin-top: 28px;
}
.profile-visual {
  position: relative; overflow: hidden; aspect-ratio: 4 / 4.7;
  border-radius: 190px 190px 24px 24px;
}
.profile-visual .cover-index { top: 150px; left: 30px; }
.profile-visual .cover-seal { top: 150px; right: 26px; }
.profile-visual .portrait-figure .figure-head { top: 28%; width: 28%; }
.profile-visual .portrait-figure .figure-body { width: 65%; height: 47%; }
.profile-visual .art-caption { left: 30px; bottom: 28px; }
.profile-visual::after {
  content: ""; position: absolute; width: 70%; height: 34%; left: 15%; top: 17%;
  border: 1px solid rgba(255, 250, 244, .26); border-radius: 50%; transform: rotate(-10deg);
}
.profile-info { max-width: 600px; }
.profile-info h1 { margin-top: 16px; font-size: clamp(44px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.055em; font-weight: 630; }
.profile-tagline { margin-top: 9px; color: var(--accent-dark); font-size: 14px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.profile-bio { margin-top: 24px; color: var(--ink-soft); font-size: 14px; line-height: 1.95; }
.profile-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 30px; padding-block: 20px; border-block: 1px solid var(--line);
}
.profile-meta small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.profile-meta strong { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; }
.profile-meta .price-large { font-size: 24px; letter-spacing: -.03em; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.detail-section { margin-top: 84px; }
.detail-section .section-head { margin-bottom: 26px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card { min-width: 0; }
.work-visual {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3.4;
  border-radius: 18px; isolation: isolate;
}
.work-visual::before {
  content: ""; position: absolute; width: 58%; aspect-ratio: 1; right: -10%; top: -8%;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .04);
}
.work-visual .work-no {
  position: absolute; left: 18px; top: 15px; z-index: 2;
  color: rgba(255, 250, 244, .76); font-size: 9px; font-weight: 700; letter-spacing: .15em;
}
.work-visual .work-letter {
  position: absolute; right: 7%; bottom: -13%; z-index: 2;
  color: rgba(255, 250, 244, .3); font-family: var(--font-serif);
  font-size: clamp(90px, 11vw, 150px); line-height: 1;
}
.work-visual .work-caption {
  position: absolute; left: 18px; bottom: 16px; z-index: 3;
  color: rgba(255, 250, 244, .92); font-size: 12px; font-weight: 600;
}
.work-meta { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px 0; color: var(--muted); font-size: 10px; }
.notice-box {
  display: flex; gap: 14px; margin-top: 18px; padding: 17px 19px;
  border: 1px solid #dfd4c7; border-radius: var(--radius-sm);
  background: #f3ece4; color: #6d5a4c; font-size: 11px; line-height: 1.75;
}
.notice-box strong { display: block; margin-bottom: 2px; color: #5b4538; font-size: 11px; }
.notice-icon { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #cbb9a9; border-radius: 50%; font-family: var(--font-serif); font-size: 11px; }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.package-card {
  display: flex; flex-direction: column; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.package-card:hover { border-color: var(--line-dark); box-shadow: 0 15px 40px rgba(54, 43, 34, .055); }
.package-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.package-head h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.025em; }
.package-price { flex: none; text-align: right; }
.package-price strong { font-size: 22px; letter-spacing: -.04em; }
.package-price small { display: block; color: var(--muted); font-size: 9px; }
.package-desc { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.package-includes { list-style: none; display: grid; gap: 7px; margin-top: 18px; }
.package-includes li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); font-size: 11px; }
.package-includes li::before { content: "✓"; flex: none; color: var(--sage); font-size: 10px; margin-top: 2px; }
.package-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line);
}
.package-duration { color: var(--muted); font-size: 10px; }
.package-foot .btn { min-height: 38px; padding-inline: 16px; font-size: 11px; }
.package-empty { grid-column: 1 / -1; }

/* ============ Booking form ============ */
.booking-page { padding-block: 34px 94px; }
.booking-layout {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: 28px; align-items: start; margin-top: 28px;
}
.booking-panel {
  padding: 34px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface);
}
.booking-panel-head { margin-bottom: 26px; }
.booking-panel-head h1 { margin-top: 9px; font-size: 32px; letter-spacing: -.04em; }
.booking-panel-head p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label {
  display: flex; align-items: center; gap: 5px; margin-bottom: 7px;
  color: var(--ink-soft); font-size: 11px; font-weight: 650;
}
.field label .req { color: var(--accent); }
.field label .optional { color: var(--muted); font-size: 9px; font-weight: 400; margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; outline: 0;
  background: #fbf9f4; color: var(--ink); font-size: 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { resize: vertical; min-height: 118px; line-height: 1.75; }
.input::placeholder, .textarea::placeholder { color: #aaa49a; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink-soft); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(57, 49, 40, .055);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); background: #fffaf9;
}
.field-hint { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.field-error { display: none; margin-top: 5px; color: var(--danger); font-size: 10px; }
.field-error.is-visible { display: block; }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.input-wrap .input { padding-left: 30px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding-top: 2px; }
.check-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.check-row label { margin: 0; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.7; }
.check-row a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-actions .form-note { max-width: 260px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.form-actions .btn { min-width: 160px; }
.booking-summary {
  position: sticky; top: 102px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #efeae1;
}
.summary-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.summary-person { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.summary-person .avatar { width: 48px; height: 48px; font-size: 18px; background: var(--surface); }
.summary-person h3 { font-size: 18px; letter-spacing: -.02em; }
.summary-person p { color: var(--muted); font-size: 10px; }
.summary-package { margin-top: 22px; padding-top: 18px; border-top: 1px solid #dcd5ca; }
.summary-package h4 { font-size: 14px; letter-spacing: -.01em; }
.summary-package p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.summary-list { display: grid; gap: 9px; margin-top: 16px; }
.summary-list li { display: flex; gap: 8px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; list-style: none; }
.summary-list li::before { content: "·"; color: var(--accent); }
.summary-total {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #dcd5ca;
}
.summary-total span { color: var(--muted); font-size: 10px; }
.summary-total strong { font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.summary-demo {
  display: flex; gap: 8px; margin-top: 20px; padding: 11px 12px;
  border-radius: 9px; background: rgba(255, 253, 249, .64);
  color: #75695f; font-size: 9px; line-height: 1.6;
}
.summary-demo::before { content: "◇"; flex: none; color: var(--accent); }

/* ============ Success ============ */
.success-wrap { max-width: 720px; margin: 0 auto; padding: 66px 0 104px; text-align: center; }
.success-mark {
  width: 68px; height: 68px; margin: 0 auto 24px; display: grid; place-items: center;
  border: 1px solid #bbc7b8; border-radius: 50%; background: var(--sage-soft);
  color: #52634f; font-family: var(--font-serif); font-size: 28px;
}
.success-wrap h1 { font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -.045em; line-height: 1.2; }
.success-wrap > p { max-width: 500px; margin: 14px auto 0; color: var(--muted); font-size: 13px; }
.success-ticket {
  margin-top: 34px; padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface); text-align: left;
}
.ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ticket-top small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.ticket-top strong { display: block; margin-top: 6px; font-size: 22px; letter-spacing: .02em; }
.ticket-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.ticket-grid small { display: block; color: var(--muted); font-size: 9px; }
.ticket-grid strong { display: block; margin-top: 3px; font-size: 12px; font-weight: 600; }
.ticket-note { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ============ Legal page ============ */
.legal-page { padding-block: 66px 100px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-aside { position: sticky; top: 110px; }
.legal-aside h2 { margin-top: 13px; font-size: 27px; line-height: 1.3; letter-spacing: -.03em; }
.legal-aside p { margin-top: 10px; color: var(--muted); font-size: 11px; }
.legal-nav { display: grid; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-nav a { color: var(--muted); font-size: 11px; }
.legal-nav a:hover { color: var(--ink); }
.legal-content { max-width: 760px; }
.legal-intro { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-intro p { color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.legal-section { padding-top: 42px; margin-top: 42px; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: 26px; letter-spacing: -.03em; }
.legal-section h3 { margin-top: 26px; font-size: 14px; }
.legal-section p, .legal-section li { color: var(--ink-soft); font-size: 12px; line-height: 1.95; }
.legal-section p { margin-top: 11px; }
.legal-section ul { margin-top: 12px; padding-left: 18px; }
.legal-section li { margin-bottom: 5px; }
.legal-callout { margin-top: 22px; padding: 17px 19px; border-left: 2px solid var(--accent); background: #f2ebe3; color: #67554a; font-size: 11px; line-height: 1.8; }

/* ============ Admin shell ============ */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: #f4f1eb; }
.admin-sidebar {
  position: sticky; top: 0; align-self: start; display: flex; flex-direction: column;
  height: 100vh; padding: 28px 20px 22px; background: #23211e; color: #f3eee7;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding-inline: 8px; }
.admin-brand .brand-mark { background: #f3eee7; color: #23211e; width: 35px; height: 35px; font-size: 18px; border-radius: 9px; }
.admin-brand .brand-text strong { color: #f3eee7; font-size: 15px; }
.admin-brand .brand-text small { color: rgba(243, 238, 231, .44); }
.admin-tag {
  display: inline-flex; width: fit-content; margin: 22px 8px 0; padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  color: rgba(243, 238, 231, .62); font-size: 8px; letter-spacing: .08em;
}
.admin-nav { display: grid; gap: 3px; margin-top: 28px; }
.admin-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 11px;
  border-radius: 9px; color: rgba(243, 238, 231, .58); font-size: 12px;
  transition: background .2s, color .2s;
}
.admin-nav a svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.admin-nav a:hover { background: rgba(255, 255, 255, .055); color: #f3eee7; }
.admin-nav a.is-active { background: #f3eee7; color: #23211e; }
.admin-nav .nav-count {
  min-width: 19px; height: 18px; margin-left: auto; display: grid; place-items: center;
  padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .1);
  font-size: 8px; font-weight: 700;
}
.admin-nav a.is-active .nav-count { background: #e3dbd0; }
.admin-sidebar-foot { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-sidebar-foot p { color: rgba(243, 238, 231, .38); font-size: 9px; line-height: 1.65; }
.admin-sidebar-foot a { display: inline-flex; margin-top: 13px; color: rgba(243, 238, 231, .78); font-size: 10px; }
.admin-sidebar-foot a:hover { color: #fff; }
.admin-main { min-width: 0; padding: 38px 42px 64px; }
.admin-topbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 30px;
}
.admin-topbar .eyebrow { color: var(--accent); }
.admin-topbar h1 { margin-top: 8px; font-size: 32px; line-height: 1.2; letter-spacing: -.04em; }
.admin-topbar p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.admin-topbar-actions { display: flex; gap: 8px; flex: none; }
.admin-content { max-width: 1320px; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-section-head h2 { font-size: 18px; letter-spacing: -.02em; }
.admin-section-head p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.panel {
  padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 2px 0 rgba(46, 37, 29, .015);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { font-size: 17px; letter-spacing: -.02em; }
.panel-head p { margin-top: 3px; color: var(--muted); font-size: 10px; }

/* ============ Admin dashboard ============ */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card {
  position: relative; overflow: hidden; padding: 23px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.metric-card::after {
  content: ""; position: absolute; width: 90px; height: 90px; right: -38px; top: -42px;
  border: 1px solid var(--line); border-radius: 50%;
}
.metric-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 600; }
.metric-value { margin-top: 16px; font-size: 42px; line-height: 1; font-weight: 600; letter-spacing: -.055em; }
.metric-value small { margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.metric-foot { margin-top: 16px; color: var(--muted); font-size: 9px; }
.metric-warm { background: #f1e9df; border-color: #e4d6c7; }
.metric-warm .metric-label { color: var(--accent-dark); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr); gap: 16px; margin-top: 16px; align-items: start; }
.recent-list { display: grid; }
.recent-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.recent-row:first-child { border-top: 0; padding-top: 0; }
.recent-row:last-child { padding-bottom: 0; }
.recent-info { min-width: 0; }
.recent-info strong { display: block; font-size: 12px; font-weight: 600; }
.recent-info span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-tail { text-align: right; }
.recent-tail time { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-link {
  display: flex; flex-direction: column; gap: 11px; padding: 15px;
  border: 1px solid var(--line); border-radius: 11px; background: #fbf8f2;
  font-size: 10px; font-weight: 650; transition: background .2s, border-color .2s;
}
.quick-link:hover { background: #f4efe7; border-color: var(--line-dark); }
.quick-link .quick-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-family: var(--font-serif); font-size: 13px; }

/* ============ Status badges ============ */
.status {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px;
  padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 650; white-space: nowrap;
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { background: #f5ead3; color: #8b6a2e; }
.status-contacting { background: #e2e9ee; color: #4b6777; }
.status-confirmed { background: #e0e9df; color: #4d6b4a; }
.status-completed { background: #ebe8e2; color: #625d55; }
.status-cancelled { background: #f3e4e1; color: #99554c; }

/* ============ Admin lists / forms ============ */
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px;
}
.admin-toolbar-note { color: var(--muted); font-size: 10px; }
.admin-form {
  margin-bottom: 18px; padding: 24px; border: 1px solid #d9cfc1;
  border-radius: var(--radius); background: #fbf7f0;
}
.admin-form .form-grid { gap: 15px; }
.admin-form .field label { font-size: 10px; }
.admin-form .input, .admin-form .select, .admin-form .textarea { background: var(--surface); }
.admin-form .textarea { min-height: 86px; }
.form-section-label {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 9px;
  padding-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.form-section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.inline-check { display: flex; align-items: center; gap: 8px; min-height: 46px; padding-top: 18px; color: var(--ink-soft); font-size: 11px; }
.inline-check input { width: 15px; height: 15px; accent-color: var(--ink); }
.admin-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.admin-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-creator-card {
  display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface);
}
.mini-cover {
  position: relative; overflow: hidden; flex: none; width: 78px; height: 92px;
  display: grid; place-items: center; border-radius: 10px;
  color: rgba(255, 250, 244, .9); font-family: var(--font-serif); font-size: 31px;
}
.mini-cover::before { content: ""; position: absolute; width: 55px; height: 55px; top: -18px; right: -20px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; }
.admin-creator-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.admin-creator-info h3 { font-size: 14px; line-height: 1.4; display: flex; align-items: center; gap: 6px; }
.admin-creator-info > p { margin-top: 3px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-creator-info .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.admin-creator-info .tags .tag { font-size: 8px; min-height: 20px; }
.admin-creator-meta { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 7px; color: var(--muted); font-size: 8px; }
.admin-row-actions { display: flex; gap: 10px; margin-top: 7px; }
.admin-row-actions button { border: 0; padding: 0; background: none; color: var(--accent-dark); font-size: 9px; font-weight: 650; }
.admin-row-actions button:hover { text-decoration: underline; text-underline-offset: 2px; }
.admin-row-actions .danger { color: var(--danger); }
.admin-package-list { display: grid; gap: 8px; }
.admin-package-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) .7fr .9fr auto;
  gap: 18px; align-items: center; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.admin-package-main h3 { font-size: 13px; }
.admin-package-main p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.admin-package-price { font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.admin-package-price small { display: block; color: var(--muted); font-size: 8px; font-weight: 400; }
.admin-package-actions { display: flex; gap: 12px; }
.admin-package-actions button { border: 0; background: none; padding: 0; color: var(--accent-dark); font-size: 9px; font-weight: 650; }
.admin-package-actions .danger { color: var(--danger); }
.admin-empty { padding: 36px 20px; border: 1px dashed var(--line-dark); border-radius: 12px; text-align: center; color: var(--muted); font-size: 11px; }
.booking-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.booking-admin-list { display: grid; gap: 10px; }
.booking-admin-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.booking-admin-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; }
.booking-admin-info { min-width: 0; }
.booking-admin-info .order-no { color: var(--muted); font-size: 8px; letter-spacing: .07em; }
.booking-admin-info h3 { margin-top: 3px; font-size: 14px; letter-spacing: -.01em; }
.booking-admin-info p { margin-top: 4px; color: var(--muted); font-size: 9px; }
.booking-admin-side { display: flex; align-items: center; gap: 16px; flex: none; }
.status-select {
  height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--line);
  border-radius: 8px; outline: 0; background: #fbf8f2;
  font-size: 10px; font-weight: 600;
}
.status-select:focus { border-color: var(--ink-soft); }
.booking-admin-details { border-top: 1px solid var(--line); }
.booking-admin-details summary {
  padding: 10px 19px; color: var(--muted); font-size: 9px; cursor: pointer;
  list-style: none; user-select: none;
}
.booking-admin-details summary::-webkit-details-marker { display: none; }
.booking-admin-details summary::before { content: "＋"; margin-right: 6px; color: var(--accent); }
.booking-admin-details[open] summary::before { content: "－"; }
.booking-admin-details[open] summary { color: var(--ink); }
.booking-detail-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 5px 19px 20px; border-top: 1px dashed var(--line);
}
.booking-detail-grid .detail-full { grid-column: 1 / -1; }
.booking-detail-grid small { display: block; color: var(--muted); font-size: 8px; }
.booking-detail-grid strong, .booking-detail-grid p { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; line-height: 1.6; }
.booking-detail-grid p { color: var(--ink-soft); }

/* ============ Commission ============ */
.commission-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; align-items: start; }
.commission-form { display: grid; gap: 16px; }
.commission-result {
  margin-top: 6px; padding: 24px; border-radius: 15px;
  background: #23211e; color: #f4efe7;
}
.commission-result > span { color: rgba(244, 239, 231, .5); font-size: 9px; letter-spacing: .1em; }
.commission-result .main-result { margin-top: 8px; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -.05em; font-weight: 550; }
.split-result { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 23px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }
.split-result small { display: block; color: rgba(244, 239, 231, .5); font-size: 8px; }
.split-result strong { display: block; margin-top: 3px; font-size: 15px; font-weight: 550; }
.split-result .creator-share { color: #d6c6b7; }
.commission-rate-row { display: flex; align-items: center; gap: 10px; }
.commission-rate-row .input { max-width: 130px; }
.rate-suffix { color: var(--muted); font-size: 12px; }
.commission-note { margin-top: 11px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.admin-aside-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #f2ece4; }
.admin-aside-card h3 { font-size: 14px; }
.admin-aside-card p { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.admin-aside-card ul { margin-top: 14px; padding-left: 15px; }
.admin-aside-card li { margin-bottom: 6px; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }

/* ============ Data page ============ */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.data-card h2 { font-size: 17px; }
.data-card > p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.data-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.data-stat { padding: 12px; border-radius: 10px; background: #f4efe7; }
.data-stat strong { display: block; font-size: 20px; line-height: 1.2; }
.data-stat span { color: var(--muted); font-size: 8px; }
.file-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; margin-top: 16px; padding: 10px 16px;
  border: 1px dashed var(--line-dark); border-radius: 10px;
  background: #fbf8f2; color: var(--ink-soft); font-size: 11px; font-weight: 600;
  cursor: pointer; text-align: center; transition: border-color .2s, background .2s;
}
.file-label:hover { border-color: var(--accent); background: #f7f1e9; }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.data-card .btn { margin-top: 16px; }
.import-status { margin-top: 10px; color: var(--danger); font-size: 10px; line-height: 1.6; }
.danger-card { border-color: #e3cbc6; background: #fbf3f1; }
.danger-card h2 { color: var(--danger); }
.danger-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.data-note { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f5f1ea; color: var(--muted); font-size: 10px; line-height: 1.8; }
.data-note strong { color: var(--ink-soft); }
.storage-path { display: inline-block; margin-top: 5px; padding: 3px 6px; border-radius: 4px; background: #e9e2d8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; color: #5c5147; }

/* ============ Toast / 404 ============ */
.toast-root { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; gap: 8px; pointer-events: none; }
.toast {
  min-width: 220px; max-width: 360px; padding: 12px 16px;
  border: 1px solid #d8d0c4; border-radius: 10px; background: #27241f;
  color: #f6f0e8; box-shadow: 0 16px 40px rgba(32, 25, 19, .2);
  font-size: 11px; line-height: 1.55; animation: toast-in .22s ease-out;
}
.toast.toast-error { background: #6e3831; border-color: #8e4c43; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.not-found { padding: 110px 0 130px; text-align: center; }
.not-found .eyebrow { justify-content: center; }
.not-found h1 { margin-top: 18px; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.05em; }
.not-found p { max-width: 430px; margin: 14px auto 26px; color: var(--muted); font-size: 13px; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .container { width: min(1200px, calc(100% - 48px)); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr); gap: 38px; }
  .hero-art { min-height: 480px; }
  .float-a { left: -1%; }
  .float-b { right: -1%; }
  .creator-grid { gap: 16px; }
  .profile-hero { gap: 36px; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
  .admin-main { padding: 32px 28px 52px; }
  .admin-card-grid { grid-template-columns: 1fr; }
  .booking-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-nav { gap: 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 50px; padding-block: 56px 66px; }
  .hero-copy { max-width: 690px; }
  .hero-art { min-height: 520px; width: min(520px, 100%); margin-inline: auto; }
  .hero h1 { font-size: clamp(42px, 7vw, 62px); }
  .creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { padding: 24px 22px 20px 0; border-bottom: 1px solid var(--line); }
  .process-step:nth-child(2n) { border-right: 0; padding-right: 0; }
  .process-step:nth-child(3) { padding-left: 0; }
  .process-step + .process-step { padding-left: 22px; }
  .cta-panel { grid-template-columns: 1fr; padding: 40px; gap: 28px; }
  .cta-actions { justify-self: start; flex-direction: row; flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .profile-hero { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 30px; }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-aside { position: static; }
  .legal-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 14px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; padding: 18px 24px; }
  .admin-brand { padding-inline: 0; }
  .admin-tag { display: none; }
  .admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
  .admin-nav a { min-width: 0; padding: 8px 9px; }
  .admin-nav .nav-count { display: none; }
  .admin-sidebar-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 14px; padding: 12px 0 0; }
  .admin-sidebar-foot p { display: none; }
  .admin-sidebar-foot a { margin-top: 0; }
  .admin-main { padding: 28px 24px 50px; }
  .admin-topbar { margin-bottom: 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .commission-layout { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 9px; }
  .brand-text strong { font-size: 15px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 16px 18px; border-bottom: 1px solid var(--line);
    background: rgba(246, 244, 239, .98); backdrop-filter: blur(18px);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .header-actions .btn { display: none; }
  .header-admin { display: none; }
  .hero-inner { padding-block: 42px 54px; gap: 36px; }
  .hero h1 { font-size: clamp(36px, 9.5vw, 52px); }
  .hero-lead { font-size: 14px; line-height: 1.85; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-facts { margin-top: 34px; }
  .hero-fact { padding-right: 17px; margin-right: 17px; }
  .hero-fact strong { font-size: 17px; }
  .hero-art { min-height: 430px; width: 92%; }
  .art-panel { inset: 0 6% 0 4%; border-radius: 165px 165px 22px 22px; }
  .float-card { padding: 11px 13px; border-radius: 13px; }
  .float-a { left: -3%; bottom: 72px; }
  .float-b { right: -3%; bottom: 15px; }
  .float-card strong { font-size: 11px; }
  .float-card small { font-size: 9px; }
  .art-stamp { width: 61px; height: 61px; font-size: 7px; }
  .marquee-inner { justify-content: flex-start; gap: 26px; overflow: auto; }
  .section { padding-block: 64px; }
  .section-tight { padding-block: 46px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
  .section-head h2 { font-size: 31px; }
  .section-head p { font-size: 12px; }
  .creator-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .creator-cover { aspect-ratio: 1.35 / 1; }
  .cover-monogram { font-size: 118px; }
  .creator-body { padding: 16px 10px 10px; }
  .creator-title-row h3 { font-size: 20px; }
  .process-grid { grid-template-columns: 1fr; border-top: 0; }
  .process-step, .process-step + .process-step { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-step:last-child { border-bottom: 0; }
  .process-step h3 { margin-top: 7px; }
  .process-step p { margin-top: 5px; }
  .step-no { font-size: 11px; }
  .process-foot { margin-top: 22px; font-size: 10px; }
  .cta-section { padding-block: 56px; }
  .cta-panel { padding: 32px 24px; border-radius: 22px; }
  .cta-panel h2 { font-size: 31px; }
  .cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 42px 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .page-hero { padding-block: 44px 28px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero p { font-size: 12px; }
  .discover-toolbar { flex-direction: column; align-items: stretch; gap: 14px; padding-block: 18px; }
  .filter-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .search-box { width: 100%; order: -1; }
  .discover-body { padding-block: 24px 64px; }
  .profile-page { padding-block: 22px 64px; }
  .profile-hero { grid-template-columns: 1fr; gap: 28px; margin-top: 18px; }
  .profile-visual { aspect-ratio: 4 / 4.5; width: min(420px, 100%); margin-inline: auto; border-radius: 150px 150px 20px 20px; }
  .profile-info h1 { font-size: 48px; }
  .profile-bio { font-size: 13px; }
  .profile-actions .btn { flex: 1; }
  .detail-section { margin-top: 56px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-visual { aspect-ratio: 4 / 3; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card { padding: 22px; }
  .booking-page { padding-block: 22px 64px; }
  .booking-layout { margin-top: 18px; gap: 18px; }
  .booking-panel { padding: 24px 20px; }
  .booking-panel-head h1 { font-size: 27px; }
  .form-grid { grid-template-columns: 1fr; gap: 15px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .form-note { max-width: none; order: 2; }
  .form-actions .btn { width: 100%; }
  .booking-summary { padding: 22px; }
  .success-wrap { padding: 48px 0 70px; }
  .success-ticket { padding: 20px; }
  .ticket-grid { grid-template-columns: 1fr; gap: 13px; }
  .legal-page { padding-block: 44px 70px; }
  .legal-intro { padding: 20px; }
  .legal-section { padding-top: 30px; margin-top: 30px; }
  .legal-section h2 { font-size: 23px; }
  .admin-main { padding: 24px 16px 42px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .admin-topbar h1 { font-size: 27px; }
  .admin-topbar-actions { width: 100%; }
  .admin-topbar-actions .btn { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { padding: 18px; }
  .metric-card:last-child { grid-column: 1 / -1; }
  .metric-value { font-size: 36px; }
  .panel { padding: 18px; }
  .admin-section-head { align-items: flex-start; }
  .admin-form { padding: 18px; }
  .admin-package-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .admin-package-main { grid-column: 1 / -1; }
  .admin-package-actions { justify-content: flex-end; }
  .booking-admin-main { align-items: flex-start; flex-direction: column; gap: 12px; }
  .booking-admin-side { width: 100%; justify-content: space-between; }
  .booking-detail-grid { padding-inline: 16px; }
  .booking-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .booking-filter .chip { flex: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .split-result { gap: 10px; }
  .toast-root { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

@media (max-width: 430px) {
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-fact { padding: 0; margin: 0; border: 0; }
  .hero-fact:nth-child(3) { border-top: 1px solid var(--line); padding-top: 14px; }
  .hero-fact:nth-child(4) { border-top: 1px solid var(--line); padding-top: 14px; }
  .creator-cover { aspect-ratio: 1.25 / 1; }
  .float-b { right: -5%; }
  .float-a { left: -5%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card:last-child { grid-column: auto; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-topbar-actions { flex-wrap: wrap; }
  .admin-topbar-actions .btn { min-width: calc(50% - 4px); }
  .admin-package-row { padding: 13px; }
  .admin-creator-card { gap: 11px; }
  .data-stats { grid-template-columns: 1fr 1fr 1fr; }
  .split-result { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ Accounts, works & creator studio ============ */
.avatar > span { display: grid; place-items: center; width: 100%; height: 100%; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar { overflow: hidden; }
.avatar-xs { width: 29px; height: 29px; font-size: 10px; }
.avatar-sm { width: 38px; height: 38px; font-size: 13px; }
.avatar-md { width: 48px; height: 48px; font-size: 17px; }
.avatar-lg { width: 76px; height: 76px; font-size: 26px; }
.avatar-xl { width: 104px; height: 104px; font-size: 36px; }
.session-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.session-chip:hover { color: var(--ink); }
.header-role-link { font-size: 11px; font-weight: 650; color: var(--accent-dark); white-space: nowrap; }
.header-role-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.header-logout { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 10px; }
.header-logout:hover { color: var(--danger); }
.mobile-auth-nav { display: none; }
.profile-avatar { margin-bottom: 16px; }
.profile-avatar .avatar { background: rgba(255, 253, 249, .85); border: 1px solid rgba(255, 253, 249, .9); color: var(--accent-dark); }
.muted-text { color: var(--muted); font-size: 9px; }

/* Login and registration */
.auth-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: 64px; align-items: start; padding-block: 70px 100px; }
.auth-copy h1 { margin-top: 16px; font-size: clamp(38px, 4.7vw, 59px); line-height: 1.13; letter-spacing: -.055em; font-weight: 630; }
.auth-copy > p { max-width: 610px; margin-top: 19px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.auth-warning { margin-top: 25px; padding: 16px 18px; border: 1px solid #e1d4c5; border-radius: 13px; background: #f2ebe3; color: #6c5a4c; font-size: 10px; line-height: 1.8; }
.auth-warning strong { display: block; margin-bottom: 3px; color: #5b473a; font-size: 11px; }
.auth-session { margin-top: 16px; padding: 12px 15px; border-radius: 10px; background: var(--sage-soft); color: #52634f; font-size: 10px; }
.auth-session a { margin-left: 8px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.demo-accounts { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.demo-accounts-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-accounts-head strong { font-size: 13px; }
.demo-accounts-head span { color: var(--muted); font-size: 9px; }
.demo-account-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }
.demo-account { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: left; transition: border-color .2s, background .2s; }
.demo-account:hover { border-color: var(--line-dark); background: #fbf8f2; }
.demo-account .avatar { flex: none; }
.demo-account-info { min-width: 0; }
.demo-account-info strong { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-account-info small { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-account-fill { margin-left: auto; color: var(--accent-dark); font-size: 8px; font-weight: 650; }
.demo-account-note { margin-top: 11px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.auth-card { position: sticky; top: 104px; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.auth-card h2 { margin-top: 10px; font-size: 28px; letter-spacing: -.04em; }
.auth-card > p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-form { display: grid; gap: 15px; margin-top: 24px; }
.auth-form .field label { font-size: 10px; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-switch { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; text-align: center; }
.auth-switch a { color: var(--accent-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch-note { margin-top: 10px; color: var(--muted); font-size: 9px; line-height: 1.7; text-align: center; }
.auth-feature-list { display: grid; gap: 12px; margin-top: 26px; }
.auth-feature-list > div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.auth-feature-list span { color: var(--accent); font-family: var(--font-serif); font-size: 10px; }
.auth-feature-list strong { display: block; font-size: 11px; }
.auth-feature-list p { grid-column: 2; margin: -6px 0 0; color: var(--muted); font-size: 10px; }

/* Public work cards */
.work-media-grid { align-items: start; }
.work-card-interactive { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .24s, box-shadow .24s, border-color .24s; }
.work-card-interactive:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-dark); }
.work-cover-link { display: block; }
.work-card-interactive .work-visual { aspect-ratio: 1.24 / 1; border-radius: 0; }
.work-cover-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.work-top-tags { position: absolute; z-index: 4; top: 14px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.work-type-tag, .work-free-tag, .work-price-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(8px); }
.work-type-tag { background: rgba(29, 27, 24, .66); color: #fbf7ef; }
.work-type-video { background: rgba(52, 44, 38, .74); }
.work-free-tag { background: rgba(246, 242, 235, .88); color: #586652; }
.work-price-tag { background: rgba(238, 220, 204, .94); color: #6d4d3c; }
.work-lock-overlay { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fffaf3; text-align: center; background: linear-gradient(180deg, rgba(32, 27, 23, .16), rgba(32, 27, 23, .67)); }
.work-lock-overlay strong { font-size: 14px; letter-spacing: .02em; }
.work-lock-overlay small { color: rgba(255, 250, 244, .72); font-size: 9px; }
.work-lock-icon { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 3px; border: 1px solid rgba(255, 250, 244, .5); border-radius: 50%; font-family: var(--font-serif); font-size: 16px; }
.work-card-body { padding: 15px 16px 14px; }
.work-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.work-card-title-row > div { min-width: 0; }
.work-card-title-row h3 { font-size: 15px; line-height: 1.45; letter-spacing: -.02em; }
.work-card-title-row h3 a:hover { color: var(--accent-dark); }
.work-card-title-row p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.work-card-title-row p a { color: var(--accent-dark); }
.work-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.work-card-foot .text-link { font-size: 9px; }
.favorite-btn { flex: none; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 17px; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.favorite-btn:hover { border-color: #c9a99b; color: var(--accent-dark); background: #fbf2ed; }
.favorite-btn.is-active { color: #a65f50; border-color: #dfc3b9; background: #f8eae5; }
.favorite-btn-lg { width: 42px; height: 42px; font-size: 20px; }
.unavailable-work-card { opacity: .8; }
.unavailable-work-card .work-visual { aspect-ratio: 1.24 / 1; border-radius: 0; }
.unavailable-work-card .work-lock-overlay { background: rgba(44, 40, 36, .42); }
.unavailable-work-card .work-card-body { border-top: 0; }

/* Work detail and purchase */
.work-detail-page { padding-block: 34px 94px; }
.work-detail-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr); gap: 52px; align-items: start; margin-top: 26px; }
.work-detail-media-wrap { min-width: 0; }
.work-detail-media { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 4.5; border-radius: 22px; background: #e7e1d7; isolation: isolate; }
.work-detail-media::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(rgba(255, 255, 255, .25) .7px, transparent .7px); background-size: 5px 5px; opacity: .4; }
.work-detail-image { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: rgba(20, 18, 16, .8); }
.work-detail-video { position: relative; z-index: 2; width: 100%; max-height: 100%; background: #171513; }
.work-detail-cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.work-media-placeholder { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 5px; color: rgba(255, 250, 243, .9); text-align: center; }
.work-media-placeholder span { font-family: var(--font-serif); font-size: 42px; line-height: 1; opacity: .75; }
.work-media-placeholder strong { font-size: 15px; }
.work-media-placeholder small { color: rgba(255, 250, 243, .65); font-size: 9px; }
.work-locked-placeholder { padding: 16px; background: rgba(36, 30, 25, .15); border-radius: 9px; }
.work-detail-lock { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #fffaf3; text-align: center; text-shadow: 0 1px 14px rgba(20, 16, 13, .45); background: linear-gradient(180deg, rgba(28, 24, 21, .26), rgba(28, 24, 21, .72)); }
.work-detail-lock span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid rgba(255, 250, 243, .5); border-radius: 50%; font-family: var(--font-serif); font-size: 25px; }
.work-detail-lock strong { font-size: 18px; }
.work-detail-lock small { color: rgba(255, 250, 243, .68); font-size: 10px; }
.work-detail-media-note { margin-top: 10px; color: var(--muted); font-size: 9px; text-align: center; }
.work-detail-info { padding-top: 8px; }
.work-detail-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 15px; }
.work-detail-info .eyebrow { margin-bottom: 10px; }
.work-detail-info h1 { font-size: clamp(38px, 4.7vw, 58px); line-height: 1.1; letter-spacing: -.05em; font-weight: 630; }
.work-creator-line { display: flex; align-items: center; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.work-creator-line a { color: var(--ink); font-weight: 650; }
.work-creator-line .favorite-btn { margin-left: auto; }
.work-detail-description { margin-top: 24px; color: var(--ink-soft); font-size: 13px; line-height: 1.95; white-space: pre-line; }
.work-detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 25px; padding-block: 17px; border-block: 1px solid var(--line); }
.work-detail-meta small { display: block; color: var(--muted); font-size: 8px; }
.work-detail-meta strong { display: block; margin-top: 3px; font-size: 12px; font-weight: 650; }
.unlock-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 18px; border: 1px solid #dcc9b7; border-radius: 14px; background: #f2e9df; }
.unlock-panel > div span { display: block; color: var(--accent-dark); font-size: 9px; }
.unlock-panel > div strong { display: block; margin-top: 2px; font-size: 24px; letter-spacing: -.04em; }
.unlock-panel > div small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.unlocked-banner, .free-banner { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--sage-soft); color: #536450; font-size: 11px; }
.unlocked-banner strong { display: block; font-size: 11px; }
.unlocked-banner small { display: block; margin-top: 2px; color: #6f7d6b; font-size: 8px; }
.free-banner { background: #f1ece4; color: var(--ink-soft); }
.unlocked-banner .pill, .free-banner .pill { flex: none; }
.work-other-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.modal-backdrop { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(28, 24, 20, .58); backdrop-filter: blur(7px); animation: fade-in .16s ease-out; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; width: min(510px, 100%); padding: 32px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 90px rgba(30, 23, 17, .3); }
.modal-card h2 { margin-top: 11px; font-size: 29px; letter-spacing: -.04em; }
.modal-card > p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.modal-close { position: absolute; top: 15px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 17px; }
.modal-close:hover { color: var(--ink); border-color: var(--line-dark); }
.purchase-summary { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #faf7f1; }
.purchase-work { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.purchase-work strong { display: block; margin-top: 7px; font-size: 16px; }
.purchase-work > span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.purchase-work > .work-type-tag { display: inline-flex; width: auto; margin-top: 0; color: #fbf7ef; font-size: 8px; }
.purchase-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; color: var(--muted); font-size: 10px; }
.purchase-line strong { color: var(--ink); font-size: 11px; font-weight: 600; text-align: right; }
.modal-warning { margin-top: 17px; padding: 12px 13px; border-left: 2px solid var(--accent); background: #f3ece4; color: #6b594c; font-size: 9px; line-height: 1.8; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-actions .btn { min-height: 42px; }

/* Portal, account and studio */
.portal-shell .admin-sidebar { background: #26231f; }
.portal-shell .admin-nav { flex: 1; overflow-y: auto; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.portal-user-line { display: flex; align-items: center; gap: 9px; min-width: 0; margin-bottom: 10px; }
.portal-user-line > span { min-width: 0; }
.portal-user-line strong { display: block; color: #f3eee7; font-size: 10px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-user-line small { display: block; color: rgba(243, 238, 231, .43); font-size: 8px; }
.portal-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.portal-foot-links a, .portal-foot-links button { border: 0; padding: 0; background: none; color: rgba(243, 238, 231, .62); font-size: 9px; }
.portal-foot-links a:hover, .portal-foot-links button:hover { color: #fff; }
.role-badge { display: inline-flex; min-height: 23px; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-size: 8px; font-weight: 700; }
.role-creator { background: var(--accent-soft); color: var(--accent-dark); }
.role-admin { background: #e5e2dc; color: #504b42; }
.role-user { background: var(--sage-soft); color: #52634f; }
.account-profile-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.account-identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
.account-identity .avatar { margin-bottom: 15px; }
.account-identity h2 { font-size: 22px; letter-spacing: -.03em; }
.account-identity > p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.account-identity .role-badge { margin-top: 9px; }
.identity-meta { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.identity-meta:first-of-type { margin-top: 18px; }
.identity-meta strong { color: var(--ink-soft); font-size: 9px; }
.account-identity .btn { margin-top: 16px; }
.avatar-upload-row { display: flex; align-items: center; gap: 16px; }
.avatar-upload-row > div:last-child { flex: 1; min-width: 0; }
.file-input { padding: 8px 10px; font-size: 10px; }
.file-input::file-selector-button { margin-right: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--ink-soft); font: inherit; cursor: pointer; }
.privacy-note { padding: 12px 14px; border-left: 2px solid var(--line-dark); background: #f6f1e9; color: var(--muted); font-size: 9px; line-height: 1.7; }
.account-works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.studio-metrics .metric-card { padding: 18px; }
.studio-metrics .metric-value { font-size: 32px; }
.studio-metrics .metric-label { font-size: 9px; }
.studio-metrics .metric-foot { font-size: 8px; }
.paid-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.studio-work-list { display: grid; gap: 9px; }
.studio-work-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.studio-work-thumb { position: relative; overflow: hidden; width: 112px; height: 82px; border-radius: 9px; display: grid; place-items: center; color: rgba(255, 250, 243, .75); font-family: var(--font-serif); font-size: 30px; }
.studio-thumb-img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.studio-work-main { min-width: 0; }
.studio-work-main h3 { font-size: 14px; letter-spacing: -.01em; }
.studio-work-main > p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.studio-work-main a { display: inline-block; margin-top: 4px; color: var(--accent-dark); font-size: 9px; font-weight: 600; }
.studio-work-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.studio-work-actions .btn { min-height: 32px; padding-inline: 10px; font-size: 9px; }
.work-editor-panel { max-width: 970px; }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.upload-preview:empty { display: none; }
.upload-preview-image { width: 100%; height: 128px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); }
.upload-preview-video { width: 100%; max-height: 210px; border-radius: 9px; border: 1px solid var(--line); background: #171513; }
.editor-note { padding: 12px 14px; border-left: 2px solid #d7c3af; background: #f8f2e9; color: var(--muted); font-size: 9px; line-height: 1.75; }
.library-list, .order-list { display: grid; gap: 9px; }
.library-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.library-row.is-unavailable { background: #f7f3ec; }
.library-thumb { position: relative; overflow: hidden; width: 110px; height: 80px; border-radius: 9px; display: grid; place-items: center; color: rgba(255, 250, 243, .75); font-family: var(--font-serif); font-size: 29px; }
.library-thumb-img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.library-info { min-width: 0; }
.library-info h3 { margin-top: 6px; font-size: 14px; }
.library-info h3 a:hover { color: var(--accent-dark); }
.library-info > p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.library-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted); font-size: 9px; }
.unavailable-note { margin-top: 7px; padding: 7px 9px; border-radius: 6px; background: #efe5db; color: #7b6255; font-size: 8px; line-height: 1.6; }
.order-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.order-no { color: var(--muted); font-size: 8px; letter-spacing: .04em; }
.order-card-main h3 { margin-top: 4px; font-size: 14px; }
.order-card-main p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.order-card-side { text-align: right; }
.order-card-side strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.order-card-side .status { margin-top: 5px; }
.order-card-note { grid-column: 1 / -1; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 8px; }
.inline-review-select { height: 26px; padding: 0 22px 0 7px; border: 1px solid var(--line); border-radius: 6px; background: #fbf8f2; color: var(--muted); font-size: 8px; }
.text-button { border: 0; background: none; padding: 0; color: var(--accent-dark); font-size: 9px; font-weight: 650; }
.text-button.danger { color: var(--danger); }
.text-button:disabled { color: var(--line-dark); cursor: not-allowed; }
.user-admin-list { display: grid; gap: 8px; }
.user-admin-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.user-admin-row.is-disabled { opacity: .63; background: #f7f3ed; }
.user-admin-main { min-width: 0; flex: 1; }
.user-admin-main h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.user-admin-main > p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.user-admin-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 5px; color: var(--muted); font-size: 8px; }
.user-admin-controls { display: flex; align-items: center; gap: 12px; flex: none; }
.admin-work-list { display: grid; gap: 9px; }
.admin-work-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.admin-work-thumb { position: relative; overflow: hidden; width: 100px; height: 77px; display: grid; place-items: center; border-radius: 9px; color: rgba(255, 250, 243, .7); font-family: var(--font-serif); font-size: 29px; }
.admin-thumb-img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.admin-work-main { min-width: 0; }
.admin-work-main h3 { margin-top: 5px; font-size: 13px; }
.admin-work-main > p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.admin-work-extra { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 4px; color: var(--muted); font-size: 8px; }
.admin-work-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-work-actions button { border: 0; background: none; padding: 0; color: var(--accent-dark); font-size: 9px; font-weight: 650; }
.admin-work-actions button.danger { color: var(--danger); }
.admin-work-actions .text-link { font-size: 9px; }
.paid-work-stats { display: flex; gap: 22px; }
.paid-work-stats div span { display: block; color: var(--muted); font-size: 8px; }
.paid-work-stats div strong { display: block; margin-top: 2px; font-size: 14px; }
.favorite-summary-list { display: grid; gap: 8px; }
.favorite-summary-row { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.favorite-summary-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f6eae5; color: #a65f50; font-size: 16px; }
.favorite-summary-row h3 { font-size: 12px; }
.favorite-summary-row p { margin-top: 2px; color: var(--muted); font-size: 8px; }
.favorite-summary-row > strong { margin-left: auto; color: var(--accent-dark); font-size: 11px; }
.admin-nav { flex: 1; overflow-y: auto; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }

@media (max-width: 1080px) {
  .auth-page { gap: 38px; }
  .work-detail-layout { gap: 32px; }
  .studio-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-profile-grid { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; gap: 30px; padding-block: 46px 70px; }
  .auth-card { position: static; max-width: 620px; }
  .auth-copy > p { max-width: none; }
  .account-profile-grid { grid-template-columns: 1fr; }
  .account-identity { display: grid; grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; column-gap: 15px; }
  .account-identity .avatar { grid-row: span 3; margin: 0; }
  .account-identity h2 { align-self: end; }
  .account-identity > p { margin: 0; }
  .account-identity .role-badge { margin: 0; }
  .account-identity .identity-meta, .account-identity .btn { grid-column: 1 / -1; }
  .account-identity .identity-meta:first-of-type { margin-top: 14px; }
  .work-detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .work-detail-media { aspect-ratio: 4 / 3.6; }
  .studio-work-row { grid-template-columns: 92px minmax(0, 1fr); }
  .studio-work-thumb { width: 92px; height: 70px; }
  .studio-work-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 7px; border-top: 1px solid var(--line); }
  .admin-work-row { grid-template-columns: 90px minmax(0, 1fr); }
  .admin-work-thumb { width: 90px; height: 70px; }
  .admin-work-actions, .paid-work-stats { grid-column: 1 / -1; justify-content: flex-start; padding-top: 7px; border-top: 1px solid var(--line); }
  .user-admin-row { flex-wrap: wrap; }
  .user-admin-controls { width: 100%; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--line); }
  .library-row { grid-template-columns: 88px minmax(0, 1fr); }
  .library-thumb { width: 88px; height: 68px; }
  .library-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 7px; border-top: 1px solid var(--line); }
  .portal-shell .admin-sidebar { height: auto; }
  .portal-shell .admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .portal-shell .admin-sidebar-foot { margin-top: 14px; }
  .portal-foot-links { flex-wrap: wrap; }
  .studio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .header-role-link, .header-logout { display: none; }
  .session-chip span { display: none; }
  .session-chip { margin-left: 2px; }
  .mobile-auth-nav { display: grid; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .mobile-auth-nav a, .mobile-auth-nav button { display: block; width: 100%; padding: 11px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink-soft); text-align: left; font-size: 13px; font-weight: 550; }
  .mobile-auth-nav button { color: var(--danger); }
  .demo-account-list { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .auth-copy h1 { font-size: 38px; }
  .work-card-interactive .work-visual, .unavailable-work-card .work-visual { aspect-ratio: 1.3 / 1; }
  .work-detail-page { padding-block: 22px 64px; }
  .work-detail-info h1 { font-size: 37px; }
  .work-detail-media { aspect-ratio: 4 / 4.3; border-radius: 17px; }
  .work-detail-meta { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
  .unlock-panel { flex-direction: column; align-items: stretch; }
  .unlock-panel .btn { width: 100%; }
  .modal-card { padding: 26px 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .account-works-grid { grid-template-columns: 1fr; }
  .studio-metrics { grid-template-columns: 1fr 1fr; }
  .studio-metrics .metric-card:last-child { grid-column: 1 / -1; }
  .studio-work-row { grid-template-columns: 76px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .studio-work-thumb { width: 76px; height: 64px; }
  .studio-work-actions { gap: 5px; }
  .studio-work-actions .btn { flex: 1; min-width: 80px; }
  .admin-work-row { grid-template-columns: 72px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .admin-work-thumb { width: 72px; height: 62px; }
  .admin-work-actions { gap: 13px; }
  .paid-work-stats { gap: 18px; }
  .order-card { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
  .order-card-side { display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .order-card-note { grid-column: auto; }
  .user-admin-row { padding: 12px; gap: 10px; }
  .user-admin-controls { flex-wrap: wrap; gap: 9px; }
  .favorite-summary-row { padding: 12px; }
  .portal-shell .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-identity { grid-template-columns: auto 1fr; }
  .account-identity .role-badge { grid-column: 2; }
  .library-row { grid-template-columns: 1fr; gap: 9px; }
  .library-thumb { width: 100%; height: 130px; }
  .library-side { padding-top: 0; border: 0; }
  .avatar-upload-row { align-items: flex-start; }
  .avatar-lg { width: 64px; height: 64px; font-size: 22px; }
  .avatar-xl { width: 88px; height: 88px; font-size: 30px; }
  .paid-metrics { grid-template-columns: 1fr; }
  .data-stats { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 430px) {
  .studio-metrics { grid-template-columns: 1fr; }
  .studio-metrics .metric-card:last-child { grid-column: auto; }
  .demo-account { padding: 8px; }
  .work-detail-meta { grid-template-columns: 1fr; gap: 9px; }
  .studio-work-row { grid-template-columns: 1fr; }
  .studio-work-thumb { width: 100%; height: 112px; }
  .studio-work-actions { grid-column: auto; }
  .admin-work-row { grid-template-columns: 1fr; }
  .admin-work-thumb { width: 100%; height: 100px; }
  .admin-work-actions { grid-column: auto; }
  .paid-work-stats { grid-column: auto; }
}

/* ============ Creator applications, verification & comments ============ */
.application-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.application-aside { padding: 23px; background: #f2ece4; }
.application-aside h3 { margin-top: 10px; font-size: 17px; }
.application-aside ol { margin-top: 15px; padding-left: 18px; }
.application-aside li { margin-bottom: 8px; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.application-aside .data-note { font-size: 9px; }
.application-agreements { display: grid; gap: 8px; }
.application-agreements .inline-check { min-height: auto; padding-top: 0; align-items: flex-start; line-height: 1.7; }
.application-agreements input { margin-top: 3px; }
.application-result-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.application-result-card.is-approved { border-color: #cdd8c9; background: #fbfdf9; }
.application-result-head { display: flex; align-items: flex-start; gap: 16px; }
.application-result-head .empty-mark { flex: none; margin: 0; }
.application-result-head > div { flex: 1; }
.application-result-head h2 { margin-top: 8px; font-size: 27px; letter-spacing: -.035em; }
.application-result-head p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.review-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.review-meta-grid small, .application-detail small { display: block; color: var(--muted); font-size: 8px; }
.review-meta-grid strong { display: block; margin-top: 3px; font-size: 10px; line-height: 1.6; font-weight: 550; }
.application-detail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbf8f2; }
.application-detail .detail-full { grid-column: 1 / -1; }
.application-detail p { margin-top: 3px; color: var(--ink-soft); font-size: 10px; line-height: 1.75; white-space: pre-line; }
.application-detail a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.application-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.application-history { margin-top: 16px; }
.application-history-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.application-history-row:first-of-type { border-top: 0; }
.application-history-row strong { display: block; font-size: 10px; }
.application-history-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.application-admin-list { display: grid; gap: 12px; }
.application-admin-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.application-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.application-admin-head h3 { margin-top: 7px; font-size: 17px; }
.application-admin-head p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.application-admin-head time { color: var(--muted); font-size: 8px; white-space: nowrap; }
.application-review-panel { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.application-review-panel > label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 9px; font-weight: 650; }
.review-complete { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

/* Verification */
.verification-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.verification-summary { padding: 25px; }
.verification-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 10px; }
.verification-hero h2 { font-size: 25px; letter-spacing: -.035em; }
.verification-hero p { max-width: 610px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.75; }
.verification-aside { padding: 22px; background: #f3ede5; }
.verification-aside h3 { margin-top: 9px; font-size: 15px; }
.verification-aside p { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.verification-aside ul { margin-top: 10px; padding-left: 16px; }
.verification-aside li { margin-bottom: 6px; color: var(--ink-soft); font-size: 9px; line-height: 1.65; }
.verification-aside code { padding: 1px 4px; border-radius: 3px; background: #e7ddd1; font-size: 8px; }
.verification-success { display: flex; align-items: center; gap: 13px; margin-top: 19px; padding: 13px 15px; border-radius: 10px; background: var(--sage-soft); }
.verification-success p { color: #5e6d5b; font-size: 9px; }
.verification-admin-list { display: grid; gap: 8px; }
.verification-admin-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.verification-admin-main { min-width: 0; flex: 1; }
.verification-admin-main h3 { font-size: 13px; }
.verification-admin-main h3 small { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 400; }
.verification-admin-main > p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.verification-admin-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.verification-admin-side .admin-work-actions { flex-wrap: wrap; }

/* Public comments */
.comments-section { margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line); }
.comments-head { margin-bottom: 22px; }
.comment-form { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.comment-form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.comment-form-head strong { display: block; font-size: 11px; }
.comment-form-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.comment-textarea { min-height: 98px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.comment-form-foot .btn { min-height: 36px; }
.reply-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; padding: 8px 10px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-dark); font-size: 9px; }
.reply-context button { border: 0; background: none; color: var(--accent-dark); font-size: 8px; text-decoration: underline; }
.comment-login-prompt { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.comment-login-prompt strong { font-size: 12px; }
.comment-login-prompt p { margin-top: 3px; color: var(--muted); font-size: 9px; }
.comment-list { margin-top: 20px; }
.comment-thread { padding: 17px 0; border-top: 1px solid var(--line); }
.comment-thread:first-child { border-top: 0; }
.comment-item { display: flex; gap: 11px; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.comment-head strong { font-size: 11px; }
.comment-head time { color: var(--muted); font-size: 8px; }
.comment-content { margin-top: 6px; color: var(--ink-soft); font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: 13px; margin-top: 7px; }
.comment-action { border: 0; padding: 0; background: none; color: var(--accent-dark); font-size: 8px; font-weight: 600; }
.comment-action.danger { color: var(--danger); }
.comment-replies { margin: 12px 0 0 43px; padding-left: 14px; border-left: 1px solid var(--line); display: grid; gap: 13px; }
.comment-item.is-reply .comment-content { font-size: 10px; }
.creator-comment-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.creator-comment-row { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.creator-comment-row > div { min-width: 0; flex: 1; }
.creator-comment-row p { margin-top: 5px; color: var(--ink-soft); font-size: 10px; line-height: 1.75; }
.creator-comment-row .comment-head span, .creator-comment-row .comment-head a { color: var(--muted); font-size: 8px; }
.creator-comment-row .comment-head a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Admin comment & rule management */
.comment-admin-filters { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-selects { display: flex; gap: 7px; flex-wrap: wrap; }
.comment-admin-list { display: grid; gap: 9px; }
.comment-admin-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.comment-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.comment-admin-head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.comment-admin-head strong { font-size: 11px; }
.comment-admin-head span:not(.status) { color: var(--muted); font-size: 8px; }
.comment-admin-head time { color: var(--muted); font-size: 8px; }
.comment-admin-content { margin-top: 10px; color: var(--ink-soft); font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-admin-meta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 8px; color: var(--muted); font-size: 8px; }
.comment-admin-meta a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.comment-filter-note, .comment-moderation-note { margin-top: 9px; padding: 8px 10px; border-left: 2px solid #d2b6a8; background: #f8f0ea; color: #705b4e; font-size: 8px; line-height: 1.7; }
.comment-moderation-note { border-left-color: #d7a69c; background: #fbf1ef; color: #8b554c; }
.comment-filter-note code { margin-left: 4px; padding: 1px 3px; border-radius: 3px; background: #eee1d7; font-size: 7px; }
.comment-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.comment-admin-actions button { border: 0; padding: 0; background: none; color: var(--accent-dark); font-size: 9px; font-weight: 650; }
.comment-admin-actions button.danger { color: var(--danger); }
.comment-admin-actions .text-link { font-size: 9px; }
.comment-history { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.comment-history summary { color: var(--muted); font-size: 8px; cursor: pointer; }
.comment-history > div { display: grid; grid-template-columns: 120px 80px 90px 1fr; gap: 8px; padding: 6px 0; color: var(--muted); font-size: 8px; }
.comment-history > div strong { color: var(--ink-soft); font-weight: 600; }
.rule-list { display: grid; gap: 8px; }
.rule-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rule-row.is-disabled { opacity: .64; }
.rule-main { min-width: 0; }
.rule-main > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.rule-term { font-size: 13px; font-weight: 650; }
.rule-main p { margin-top: 3px; color: var(--muted); font-size: 8px; }
.rule-row .admin-work-actions { flex-wrap: wrap; }
.audit-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.audit-row { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.audit-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--accent-dark); font-family: var(--font-serif); font-size: 12px; }
.audit-main { min-width: 0; }
.audit-main > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.audit-main strong { font-size: 11px; }
.audit-main p { margin-top: 4px; color: var(--ink-soft); font-size: 9px; line-height: 1.65; word-break: break-word; }
.audit-main small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }

@media (max-width: 1080px) {
  .application-layout { grid-template-columns: 1fr; }
  .application-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verification-admin-row { align-items: flex-start; }
  .verification-admin-side { align-items: flex-end; flex-direction: column; }
}

@media (max-width: 720px) {
  .application-result-card { padding: 20px; }
  .application-result-head { flex-wrap: wrap; }
  .application-result-head .status { margin-left: auto; }
  .review-meta-grid { grid-template-columns: 1fr; gap: 9px; }
  .application-detail { grid-template-columns: 1fr; padding: 13px; }
  .application-admin-head { flex-direction: column; gap: 7px; }
  .application-admin-head time { white-space: normal; }
  .application-review-panel .application-actions .btn { flex: 1; }
  .verification-hero { flex-direction: column; gap: 10px; }
  .verification-hero .status { align-self: flex-start; }
  .verification-admin-row { flex-wrap: wrap; padding: 12px; }
  .verification-admin-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
  .comments-section { margin-top: 44px; }
  .comment-form { padding: 15px; }
  .comment-login-prompt { align-items: flex-start; flex-direction: column; }
  .comment-replies { margin-left: 16px; padding-left: 9px; }
  .comment-admin-filters { flex-direction: column; }
  .filter-selects { width: 100%; }
  .filter-selects .status-select { flex: 1; }
  .comment-history > div { grid-template-columns: 1fr 1fr; }
  .rule-row { align-items: flex-start; flex-direction: column; }
  .rule-row .admin-work-actions { width: 100%; justify-content: flex-start; padding-top: 7px; border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .admin-shell:not(.portal-shell) .admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-shell:not(.portal-shell) .admin-nav a { padding: 8px 6px; font-size: 10px; gap: 7px; }
  .admin-shell:not(.portal-shell) .admin-nav a svg { width: 13px; height: 13px; }
}
@media (max-width: 430px) {
  .admin-shell:not(.portal-shell) .admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   MUSE 2026 visual system — phase 1
   Light, restrained photography-platform UI. Overrides only; no layout logic.
   ========================================================================== */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #0f1115;
  --ink-soft: #5d626c;
  --muted: #727986;
  --line: #e5e7eb;
  --line-dark: #cbd1da;
  --accent: #5b3df5;
  --accent-dark: #452bd8;
  --accent-soft: #eeebff;
  --sage: #2f7d4e;
  --sage-soft: #eaf5ee;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(15, 17, 21, .06);
  --font-sans: "Inter", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: var(--font-sans);
  color-scheme: light;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
}
body::before { display: none; }
h1, h2, h3, h4, .brand-text strong, .art-caption, .empty-mark, .step-no, .metric-value {
  font-family: var(--font-sans);
}
h1, h2, h3, h4 { color: var(--ink); font-weight: 750; letter-spacing: -.035em; }
p { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: min(1200px, calc(100% - 48px)); }

/* Header */
.site-header {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 17, 21, .035); }
.header-inner { min-height: 74px; gap: 26px; }
.brand { gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #101114;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 750;
}
.brand-text { gap: 1px; }
.brand-text strong { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand-text small { font-size: 8px; color: var(--muted); letter-spacing: .16em; }
.site-nav { gap: 28px; }
.site-nav a { color: var(--ink-soft); font-size: 13px; font-weight: 550; padding-block: 16px; }
.site-nav a::after { display: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-dark); }
.header-actions { gap: 9px; }
.header-admin {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 12px; font-weight: 600;
  background: var(--surface);
}
.header-admin:hover { border-color: var(--line-dark); color: var(--ink); }
.header-role-link { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.header-role-link:hover { color: var(--accent-dark); }
.session-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 9px 4px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 11px; font-weight: 600;
}
.session-chip:hover { border-color: var(--line-dark); }
.header-logout {
  border: 0; background: none; color: var(--muted); font-size: 11px; padding: 8px;
}
.header-logout:hover { color: var(--danger); }
.nav-toggle { border-color: var(--line); background: var(--surface); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { background: var(--ink); }

/* Core type and section rhythm */
.eyebrow { color: var(--accent-dark); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.eyebrow::before { width: 18px; background: var(--accent); }
.section { padding-block: 82px; }
.section-tight { padding-block: 58px; }
.section-head { gap: 28px; margin-bottom: 30px; }
.section-head h2 { margin-top: 9px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 780; line-height: 1.18; letter-spacing: -.045em; }
.section-head p { color: var(--muted); font-size: 13px; }
.section-link { color: var(--accent-dark); border-bottom: 0; font-size: 12px; }
.section-link:hover { color: var(--accent); border-color: transparent; }
.page-hero { padding-block: 58px 34px; }
.page-hero h1 { margin-top: 10px; font-size: clamp(34px, 4.2vw, 52px); font-weight: 780; letter-spacing: -.05em; }
.page-hero p { margin-top: 14px; color: var(--muted); font-size: 14px; }
.page-note {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--muted); font-size: 11px;
}
.page-note::before { border-color: var(--line-dark); color: var(--accent-dark); }

/* Buttons */
.btn {
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; font-size: 13px; font-weight: 650;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(91, 61, 245, .18); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 8px 20px rgba(91, 61, 245, .22); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--line-dark); }
.btn-soft { background: var(--accent-soft); color: var(--accent-dark); }
.btn-soft:hover { background: #e5e0ff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: #fadbd7; }
.btn-sm { min-height: 34px; padding: 0 13px; font-size: 12px; }
.btn-arrow::after { font-size: 13px; }
.text-link { color: var(--accent-dark); font-size: 12px; font-weight: 650; }
.text-link:hover { border-color: var(--accent-dark); }
.icon-btn { border-color: var(--line); background: var(--surface); }

/* Chips, tags, pills, status */
.chip {
  min-height: 34px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font-size: 12px; font-weight: 550;
}
.chip:hover { border-color: var(--line-dark); background: var(--surface-2); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag { min-height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); font-size: 10px; }
.tag-outline { border-color: var(--line); background: transparent; }
.pill { min-height: 24px; padding: 4px 9px; border-radius: 999px; background: var(--sage-soft); color: var(--sage); font-size: 10px; }
.pill-warm { background: var(--accent-soft); color: var(--accent-dark); }
.status { border-radius: 999px; font-size: 10px; min-height: 24px; }
.status-pending { background: #fff6df; color: #8a5a12; }
.status-contacting { background: #eef2f7; color: #4b5f72; }
.status-confirmed { background: var(--sage-soft); color: var(--sage); }
.status-completed { background: #eef0f3; color: #59616d; }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }

/* Cards, panels and surfaces */
.panel, .admin-form, .booking-admin-card, .comment-form, .comment-login-prompt,
.legal-intro, .package-card, .creator-card, .work-card, .application-result-card,
.verification-card, .data-card, .admin-aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 24px; }
.admin-form { background: var(--surface); border-color: var(--line); }
.booking-admin-card { border-radius: 14px; }
.package-card { border-radius: var(--radius); box-shadow: none; }
.package-card:hover { border-color: var(--line-dark); box-shadow: var(--shadow); }
.creator-card { border-radius: var(--radius); box-shadow: none; overflow: hidden; }
.creator-card:hover { border-color: var(--line-dark); box-shadow: var(--shadow); }
.creator-body { padding: 16px 16px 14px; }
.creator-title-row h3 { font-size: 18px; font-weight: 750; }
.creator-tagline, .creator-bio { color: var(--muted); }
.creator-bio { font-size: 12px; }
.creator-cover { border-radius: 0; }
.creator-cover::before, .creator-cover::after { opacity: .45; }
.creator-foot { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.creator-more { color: var(--accent-dark); }
.work-visual { border-radius: 14px; }
.metric-card { background: var(--surface); border-color: var(--line); border-radius: var(--radius); }
.metric-warm { background: var(--accent-soft); border-color: #ddd7ff; }
.metric-warm .metric-label { color: var(--accent-dark); }
.quick-link { background: var(--surface); border-color: var(--line); border-radius: 12px; }
.quick-link:hover { background: var(--surface-2); border-color: var(--line-dark); }
.quick-link .quick-icon { background: var(--accent-soft); color: var(--accent-dark); }
.notice-box {
  border: 1px solid #ded9ff; border-radius: 12px; background: #f6f4ff; color: var(--ink-soft);
}
.notice-box strong { color: var(--ink); }
.notice-icon { border-color: #cfc6ff; color: var(--accent-dark); }
.empty-state { border-color: var(--line-dark); background: var(--surface); border-radius: var(--radius); }
.empty-mark { background: var(--surface-2); color: var(--ink-soft); }

/* Forms */
.field label { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.field label .req { color: var(--accent); }
.input, .select, .textarea {
  min-height: 44px; padding: 10px 13px;
  border-color: var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 13px;
}
.textarea { min-height: 116px; }
.input::placeholder, .textarea::placeholder { color: #9aa1ad; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, .10);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger); background: #fffafa;
}
.field-hint { color: var(--muted); font-size: 10px; }
.field-error { color: var(--danger); font-size: 10px; }
.input-prefix { color: var(--muted); }
.check-row input { accent-color: var(--accent); }
.check-row label { color: var(--muted); font-size: 11px; }
.check-row a { color: var(--accent-dark); }
.search-box {
  height: 42px; border-color: var(--line); background: var(--surface);
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 61, 245, .10); }
.search-box input { font-size: 12px; }
.status-select {
  border-color: var(--line); background: var(--surface); border-radius: 9px;
  font-size: 11px;
}
.status-select:focus { border-color: var(--accent); }
.discover-toolbar { border-color: var(--line); background: transparent; }
.result-meta { color: var(--muted); font-size: 11px; }
.booking-filter { gap: 7px; }

/* Footer */
.site-footer {
  margin-top: 0; border-top: 1px solid var(--line); background: var(--surface);
}
.footer-main { gap: 32px; padding-block: 54px 38px; }
.footer-brand p { color: var(--muted); font-size: 12px; }
.footer-col h4 { color: var(--ink); font-size: 10px; letter-spacing: .08em; }
.footer-col a, .footer-col span { color: var(--muted); font-size: 12px; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom { border-color: var(--line); color: var(--muted); font-size: 10px; }
.footer-bottom .demo-note::before { background: var(--accent); }

/* Public page foundations */
.hero { border-bottom: 0; background: transparent; }
.hero-inner { padding-block: 64px 70px; gap: 56px; }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.06em; }
.hero h1 em { color: var(--accent); }
.hero h1 em::after { display: none; }
.hero-lead { color: var(--ink-soft); font-size: 15px; }
.hero-facts { border-color: var(--line); }
.hero-fact { border-color: var(--line); }
.hero-fact strong { font-weight: 750; }
.hero-fact span { color: var(--muted); }
.hero-art { min-height: 500px; }
.art-panel { border-radius: 24px; box-shadow: var(--shadow); }
.float-card { border-color: var(--line); background: rgba(255, 255, 255, .96); border-radius: 14px; box-shadow: var(--shadow); }
.marquee { background: var(--ink); color: #fff; }
.marquee-inner { padding-block: 12px; }
.process-step { background: var(--surface); border-color: var(--line); border-radius: var(--radius); box-shadow: none; }
.process-step:hover { border-color: var(--line-dark); box-shadow: var(--shadow); }
.cta-panel {
  border-radius: 20px; background: var(--ink); color: #fff;
}
.cta-panel .eyebrow { color: #c9c2ff; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, .62); }
.cta-panel .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta-panel .btn-primary:hover { background: #f0f2f5; }
.cta-panel .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .24); }
.cta-panel .btn-secondary:hover { background: rgba(255, 255, 255, .08); }

/* Profile and booking foundations */
.profile-visual { border-radius: 20px; }
.profile-info h1 { font-weight: 800; }
.profile-tagline { color: var(--accent-dark); }
.profile-meta { border-color: var(--line); }
.profile-actions .btn { min-height: 42px; }
.detail-section { margin-top: 70px; }
.package-card { padding: 22px; }
.package-head h3 { font-weight: 750; }
.package-price strong { font-weight: 750; }
.booking-panel { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.booking-panel-head h1 { font-weight: 780; }
.booking-summary { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.summary-package, .summary-total { border-color: var(--line); }
.summary-list li::before { color: var(--accent); }
.summary-total strong { color: var(--ink); }
.summary-demo { background: var(--surface-2); color: var(--muted); }
.summary-demo::before { color: var(--accent); }
.success-mark { border-color: #cbe6d6; background: var(--sage-soft); color: var(--sage); }
.success-ticket { border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); }
.legal-page { padding-block: 58px 88px; }
.legal-aside h2 { font-weight: 780; }
.legal-nav a { color: var(--muted); font-size: 12px; }
.legal-nav a:hover { color: var(--accent-dark); }
.legal-intro { border-color: var(--line); box-shadow: none; }
.legal-section { border-color: var(--line); }
.legal-section h2 { font-weight: 750; }
.legal-callout { border-left-color: var(--accent); background: var(--accent-soft); color: var(--ink-soft); }

/* Auth and account foundations */
.auth-page { padding-block: 56px 86px; }
.auth-copy h1 { font-weight: 800; }
.auth-warning {
  border: 1px solid var(--line); border-radius: 12px;
  background: #f6f4ff; color: var(--ink-soft);
  font-size: 11px;
}
.auth-warning strong { color: var(--ink); font-size: 12px; }
.auth-session { border-radius: 10px; background: var(--sage-soft); color: var(--sage); }
.auth-session a { color: var(--sage); }
.auth-feature-list > div { border-color: var(--line); }
.auth-feature-list span { color: var(--accent-dark); font-family: var(--font-sans); font-weight: 700; }
.auth-feature-list strong { color: var(--ink); font-size: 12px; }
.auth-feature-list p { color: var(--muted); font-size: 11px; }
.auth-card, .login-card, .register-card, .account-card, .verification-card {
  background: var(--surface); border-color: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.portal-shell .admin-main { background: var(--bg); }
.portal-shell .admin-sidebar { background: var(--ink); }
.portal-shell .admin-nav a.is-active { background: #fff; color: var(--ink); }

/* Admin foundations */
.admin-shell { background: var(--bg); }
.admin-sidebar { background: var(--ink); color: #f7f8fa; }
.admin-sidebar .admin-brand .brand-text small { color: rgba(255, 255, 255, .5); }
.admin-nav a { color: rgba(255, 255, 255, .62); border-radius: 9px; }
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.is-active { background: var(--accent); color: #fff; }
.admin-nav a.is-active .nav-count { background: rgba(255, 255, 255, .2); }
.admin-nav .nav-count { background: rgba(255, 255, 255, .12); }
.admin-sidebar-foot { border-color: rgba(255, 255, 255, .12); }
.admin-sidebar-foot p { color: rgba(255, 255, 255, .42); }
.admin-sidebar-foot a { color: rgba(255, 255, 255, .8); }
.admin-main { background: var(--bg); }
.admin-topbar h1 { font-size: 30px; font-weight: 780; }
.admin-topbar p { color: var(--muted); }
.admin-section-head h2 { font-weight: 750; }
.panel-head h2 { font-weight: 750; }
.admin-form { border-color: var(--line); background: var(--surface); }
.admin-form .input, .admin-form .select, .admin-form .textarea { background: var(--surface); }
.admin-form-actions { border-color: var(--line); }
.metric-label { color: var(--muted); }
.metric-value { font-weight: 750; }
.recent-row, .recent-list, .admin-toolbar, .booking-admin-details, .booking-detail-grid { border-color: var(--line); }
.booking-admin-details summary { color: var(--muted); }
.booking-admin-details summary::before { color: var(--accent); }
.booking-admin-info .order-no { color: var(--muted); }
.admin-empty { border-color: var(--line-dark); background: var(--surface); border-radius: 12px; }
.rule-row, .audit-row, .comment-admin-card, .verification-admin-row { border-color: var(--line); background: var(--surface); }
.rule-row { border-radius: 12px; }
.rule-term { font-weight: 700; }
.audit-icon { background: var(--accent-soft); color: var(--accent-dark); }
.comment-filter-note, .comment-moderation-note { border-left-color: #cfc6ff; background: #f6f4ff; color: var(--ink-soft); }
.comment-filter-note code { background: #ece8ff; }
.quick-link .quick-icon { background: var(--accent-soft); color: var(--accent-dark); }

/* Toast and modal foundations */
.toast {
  border-color: var(--line); background: var(--surface); color: var(--ink);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 17, 21, .12);
}
.modal-card, .dialog-card { border-color: var(--line); background: var(--surface); border-radius: var(--radius); box-shadow: 0 24px 80px rgba(15, 17, 21, .2); }

/* Responsive layer */
@media (max-width: 1080px) {
  .container { width: min(1200px, calc(100% - 40px)); }
  .hero-inner { gap: 38px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .site-nav { gap: 20px; }
  .section { padding-block: 64px; }
  .hero-inner { padding-block: 48px 56px; }
  .hero h1 { font-size: clamp(36px, 7vw, 54px); }
  .footer-main { gap: 26px; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: 16px; }
  .header-actions { gap: 7px; }
  .header-actions .btn-sm { min-height: 34px; padding-inline: 12px; font-size: 11px; }
  .header-admin { min-height: 34px; padding-inline: 12px; font-size: 11px; }
  .session-chip span { display: none; }
  .section { padding-block: 52px; }
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: 28px; }
  .page-hero { padding-block: 42px 26px; }
  .hero-inner { gap: 30px; padding-block: 40px 48px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero-lead { font-size: 14px; }
  .hero-facts { margin-top: 30px; }
  .hero-fact { padding-right: 16px; margin-right: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 40px 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding-block: 15px; }
  .booking-panel { padding: 22px; }
  .booking-panel-head h1 { font-size: 28px; }
  .booking-summary { padding: 20px; }
  .legal-page { padding-block: 42px 64px; }
  .legal-aside h2 { font-size: 24px; }
  .admin-main { padding: 24px 20px 48px; }
  .admin-topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .admin-topbar h1 { font-size: 26px; }
  .admin-topbar-actions { flex-wrap: wrap; }
  .admin-content { max-width: none; }
  .panel { padding: 18px; }
  .admin-form { padding: 18px; }
  .metric-value { font-size: 34px; }
  .comment-admin-card, .rule-row { padding: 14px; }
}

/* ==========================================================================
   Phase 2 — home, discovery, creator detail, work detail
   ========================================================================== */

.home-hero { background: transparent; border-bottom: 0; }
.home-hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center; gap: 54px; padding-block: 62px 70px;
}
.home-hero-copy { max-width: 650px; }
.home-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 26px; padding: 0 10px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink-soft);
  font-size: 11px; font-weight: 600;
}
.home-kicker span { color: var(--sage); }
.home-hero h1 {
  margin-top: 18px; font-size: clamp(40px, 5vw, 64px);
  font-weight: 820; line-height: 1.07; letter-spacing: -.065em;
}
.home-hero h1 em { color: var(--accent); font-style: normal; }
.home-hero-lead { max-width: 540px; margin-top: 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.home-search-form {
  display: flex; align-items: center; gap: 9px;
  width: min(570px, 100%); margin-top: 27px; padding: 5px 5px 5px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  box-shadow: 0 8px 28px rgba(15, 17, 21, .06);
}
.home-search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91, 61, 245, .10), 0 8px 28px rgba(15, 17, 21, .06); }
.home-search-form svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.home-search-form input { min-width: 0; flex: 1; height: 38px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.home-search-form input::placeholder { color: #9aa1ad; }
.home-search-form .btn { min-height: 38px; padding-inline: 20px; }
.home-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.home-chips .chip { min-height: 31px; padding-inline: 12px; background: transparent; font-size: 11px; }
.home-chips .chip:hover { background: var(--surface); }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.home-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.home-facts > div { padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); }
.home-facts > div:last-child { border: 0; margin: 0; padding: 0; }
.home-facts strong { display: block; font-size: 18px; font-weight: 750; letter-spacing: -.03em; }
.home-facts span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.home-mosaic {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr 1fr; gap: 11px; min-height: 470px;
}
.home-mosaic-tile {
  position: relative; overflow: hidden; min-height: 0;
  border: 1px solid rgba(15, 17, 21, .06); border-radius: 18px;
  isolation: isolate; transition: transform .25s, box-shadow .25s;
}
.home-mosaic-tile:first-child { grid-row: 1 / span 2; }
.home-mosaic-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.home-mosaic-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 17, 21, .02), rgba(15, 17, 21, .38));
}
.home-mosaic-kicker {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .86);
  color: var(--ink); font-size: 9px; font-weight: 700;
}
.home-mosaic-letter {
  position: absolute; z-index: 2; right: 14px; bottom: 12px;
  color: rgba(255, 255, 255, .35); font-size: clamp(60px, 8vw, 110px); line-height: 1;
  font-weight: 800; letter-spacing: -.08em;
}
.home-mosaic-caption {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 15px;
  display: grid; gap: 2px; color: #fff;
}
.home-mosaic-caption strong { font-size: 14px; font-weight: 700; }
.home-mosaic-caption small { color: rgba(255, 255, 255, .76); font-size: 10px; }
.home-mosaic-note {
  position: absolute; z-index: 3; right: 12px; top: 12px;
  display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 4px 16px rgba(15, 17, 21, .08);
}
.home-mosaic-note strong { font-size: 10px; }
.home-mosaic-note span { color: var(--muted); font-size: 8px; }
.home-mosaic-empty { grid-row: 1 / -1; display: grid; place-content: center; gap: 5px; border: 1px dashed var(--line-dark); border-radius: 18px; color: var(--muted); text-align: center; }
.home-mosaic-empty span { color: var(--accent); font-size: 38px; font-weight: 800; letter-spacing: -.08em; }

/* Discovery controls */
.discover-controls { display: flex; align-items: center; gap: 9px; flex: none; }
.discover-controls .search-box { width: 230px; }
.sort-control { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.sort-control .select { width: 132px; min-height: 42px; padding-block: 0; font-size: 11px; }
.creator-card { position: relative; }
.creator-cover { aspect-ratio: 1.28 / 1; }
.creator-cover .cover-word { font-size: 12px; }
.creator-cover .cover-index { font-size: 8px; }
.creator-body { display: flex; flex-direction: column; }
.creator-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.creator-tags .tag { background: var(--surface-2); }

/* Creator detail: two-column content + booking aside */
.profile-page {
  display: block;
}
.profile-page > .back-link { grid-column: 1 / -1; }
.profile-page > .profile-hero { grid-column: 1; grid-row: 2; margin-top: 20px; }
.profile-page > .creator-booking-aside { grid-column: 2; grid-row: 2 / span 4; position: sticky; top: 96px; }
.profile-page > .detail-section, .profile-page > .comments-section { grid-column: 1; }
.profile-visual { border-radius: 18px; aspect-ratio: 4 / 3.35; }
.profile-visual .cover-index { top: 22px; left: 22px; }
.profile-visual .cover-seal { top: 22px; right: 20px; }
.profile-visual .art-caption { left: 22px; bottom: 20px; }
.profile-visual::after { opacity: .45; }
.profile-info { max-width: none; }
.profile-info h1 { font-size: clamp(40px, 4.5vw, 58px); }
.profile-bio { line-height: 1.8; }
.creator-booking-aside { min-width: 0; }
.aside-booking-card {
  padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow);
}
.aside-eyebrow { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.aside-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.aside-price small { color: var(--muted); font-size: 10px; }
.aside-price strong { font-size: 25px; letter-spacing: -.04em; }
.aside-note { margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.aside-packages { display: grid; gap: 7px; margin-top: 14px; }
.aside-package-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); transition: border-color .2s, background .2s;
}
.aside-package-row:hover { border-color: #cfc6ff; background: #faf9ff; }
.aside-package-row > span { min-width: 0; display: grid; gap: 2px; }
.aside-package-row strong { font-size: 12px; font-weight: 650; }
.aside-package-row small { color: var(--muted); font-size: 9px; }
.aside-package-row b { flex: none; color: var(--ink); font-size: 13px; font-weight: 750; }
.aside-footnote { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.6; }
.profile-page .detail-section { margin-top: 54px; }
.profile-page .comments-section { margin-top: 54px; }
.profile-page .package-grid { grid-template-columns: 1fr 1fr; }

/* Work detail */
.work-detail-page { padding-block: 34px 88px; }
.work-detail-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: 30px; align-items: start; }
.work-detail-media-wrap { position: sticky; top: 94px; min-width: 0; }
.work-detail-media { border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.work-detail-info { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.work-detail-info h1 { margin-top: 10px; font-size: clamp(30px, 3.5vw, 44px); font-weight: 800; line-height: 1.15; }
.work-detail-description { margin-top: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.work-detail-meta { margin-top: 20px; padding-block: 16px; border-block: 1px solid var(--line); }
.work-detail-meta small { color: var(--muted); font-size: 9px; }
.work-detail-meta strong { font-size: 12px; }
.work-creator-line { margin-top: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.work-detail-topline { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.unlock-panel { margin-top: 20px; padding: 16px; border: 1px solid #ded9ff; border-radius: 13px; background: #f6f4ff; }
.unlock-panel > div { display: grid; gap: 2px; }
.unlock-panel > div span { color: var(--accent-dark); font-size: 10px; font-weight: 700; }
.unlock-panel > div strong { font-size: 22px; letter-spacing: -.04em; }
.unlock-panel > div small { color: var(--muted); font-size: 9px; }
.unlock-panel .btn { width: 100%; margin-top: 13px; }
.unlocked-banner, .free-banner { margin-top: 18px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; gap: 10px; }
.unlocked-banner > div { display: grid; gap: 2px; }
.unlocked-banner strong { font-size: 11px; }
.unlocked-banner small { color: var(--muted); font-size: 9px; }
.free-banner { color: var(--muted); font-size: 11px; }
.work-other-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.work-detail-media-note { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.work-detail-media-wrap.is-locked .work-detail-media { border: 1px solid var(--line); }
.work-detail-cover { width: 100%; height: 100%; object-fit: cover; }
.work-detail-image, .work-detail-video { width: 100%; max-height: 72vh; object-fit: contain; background: #0f1115; }
.work-detail-lock { background: rgba(15, 17, 21, .7); }

/* Phase 2 responsive */
@media (max-width: 1080px) {
  .home-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 34px; }
  .home-mosaic { min-height: 420px; }
  .profile-page { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 22px; }
  .work-detail-layout { gap: 22px; }
}

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 46px 56px; }
  .home-hero-copy { max-width: none; }
  .home-mosaic { min-height: 380px; max-width: 680px; }
  .profile-page { display: block; }
  .profile-page > .profile-hero { margin-top: 20px; }
  .profile-page > .creator-booking-aside { position: static; top: auto; margin-top: 24px; }
  .profile-page .detail-section, .profile-page .comments-section { margin-top: 44px; }
  .work-detail-layout { grid-template-columns: 1fr; }
  .work-detail-media-wrap { position: static; }
  .work-detail-info { padding: 24px; }
}

@media (max-width: 720px) {
  .home-hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .home-search-form { margin-top: 20px; }
  .home-search-form .btn { padding-inline: 14px; }
  .home-facts { margin-top: 24px; }
  .home-facts > div { padding-right: 16px; margin-right: 16px; }
  .home-mosaic { min-height: 330px; gap: 8px; }
  .home-mosaic-caption { left: 12px; right: 12px; bottom: 12px; }
  .home-mosaic-caption strong { font-size: 12px; }
  .home-mosaic-note { top: 9px; right: 9px; padding: 6px 8px; }
  .discover-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .discover-controls { width: 100%; }
  .discover-controls .search-box { width: auto; flex: 1; }
  .sort-control { flex: none; }
  .sort-control > span { display: none; }
  .profile-visual { aspect-ratio: 4 / 3.2; }
  .profile-page .package-grid { grid-template-columns: 1fr; }
  .work-detail-info { padding: 20px; }
  .work-detail-info h1 { font-size: 30px; }
}

@media (max-width: 430px) {
  .home-hero-inner { padding-block: 36px 44px; }
  .home-kicker { font-size: 10px; }
  .home-hero-lead { font-size: 14px; }
  .home-search-form { padding-left: 12px; }
  .home-search-form input { font-size: 12px; }
  .home-search-form .btn { min-height: 36px; font-size: 11px; }
  .home-chips { gap: 5px; }
  .home-chips .chip { min-height: 29px; padding-inline: 10px; font-size: 10px; }
  .home-hero-actions .btn { flex: 1 1 auto; }
  .home-mosaic { min-height: 285px; }
  .home-mosaic-letter { font-size: 64px; }
  .home-mosaic-kicker { top: 9px; left: 9px; font-size: 8px; }
  .home-mosaic-note { display: none; }
  .discover-controls { flex-wrap: wrap; }
  .discover-controls .search-box { width: 100%; flex: 1 0 100%; }
  .sort-control .select { width: 145px; }
  .profile-info h1 { font-size: 36px; }
  .aside-booking-card { padding: 16px; }
  .work-detail-page { padding-block: 24px 56px; }
  .work-detail-info { padding: 17px; }
  .work-detail-info h1 { font-size: 27px; }
  .work-detail-description { font-size: 12px; }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 28px); }
  .header-actions .header-role-link { display: none; }
  .header-actions .header-admin { padding-inline: 10px; }
  .header-actions .btn-sm { padding-inline: 10px; }
  .header-inner { gap: 8px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 12px; }
  .brand-text small { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-facts { gap: 14px 0; }
  .hero-fact { padding-right: 12px; margin-right: 12px; }
  .hero-fact strong { font-size: 17px; }
  .hero-fact span { font-size: 9px; }
  .section { padding-block: 44px; }
  .section-head h2 { font-size: 25px; }
  .btn { min-height: 42px; padding-inline: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-full { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; gap: 6px; }
  .admin-main { padding: 20px 14px 40px; }
  .admin-topbar h1 { font-size: 24px; }
  .admin-topbar-actions .btn { padding-inline: 12px; }
  .panel { padding: 15px; }
  .booking-panel { padding: 18px; }
  .booking-summary { padding: 17px; }
  .legal-page { padding-block: 34px 52px; }
  .legal-aside h2 { font-size: 22px; }
  .legal-section h2 { font-size: 23px; }
}

/* ==========================================================================
   Phase 3A — booking request + success receipt
   ========================================================================== */

.booking-page { padding-block: 34px 82px; }
.booking-layout { gap: 24px; margin-top: 24px; }
.booking-panel {
  padding: 30px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.booking-panel-head { margin-bottom: 8px; }
.booking-panel-head h1 { margin-top: 7px; font-size: 30px; font-weight: 800; }
.booking-panel-head p { margin-top: 6px; max-width: 660px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.booking-form-sections { display: grid; }
.form-section { padding: 20px 0; border-top: 1px solid var(--line); }
.form-section:first-child { border-top: 0; padding-top: 12px; }
.form-section-head { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; }
.form-section-head > span {
  flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 10px; font-weight: 750;
}
.form-section-head h2 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.form-section-head p { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.form-section .form-grid { margin-top: 0; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.booking-panel .form-actions { margin-top: 0; padding-top: 18px; }
.booking-panel .form-actions .form-note { max-width: 330px; }
.summary-label { color: var(--accent-dark); }
.summary-person { margin-top: 14px; }
.summary-person .avatar { background: var(--accent-soft); color: var(--accent-dark); }
.summary-package { margin-top: 17px; }
.summary-flow { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.summary-flow h4 { font-size: 11px; font-weight: 750; }
.summary-flow ol { display: grid; gap: 7px; margin-top: 9px; padding-left: 17px; }
.summary-flow li { color: var(--ink-soft); font-size: 10px; line-height: 1.5; }
.summary-flow li::marker { color: var(--accent); font-size: 9px; }
.summary-rule { margin-top: 12px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.booking-summary .summary-demo { margin-top: 13px; }

.success-wrap { max-width: 760px; padding: 56px 0 88px; }
.success-mark { width: 60px; height: 60px; border-radius: 16px; font-size: 24px; }
.success-wrap h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; }
.success-wrap > p { max-width: 560px; color: var(--muted); font-size: 12px; }
.success-ticket { margin-top: 28px; padding: 24px; border-radius: 18px; }
.ticket-top strong { font-size: 20px; }
.ticket-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 17px; margin-top: 18px; }
.ticket-note { margin-top: 18px; padding-top: 14px; font-size: 10px; }
.success-next {
  margin-top: 16px; padding: 22px 24px; text-align: left;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow);
}
.success-next-head h2 { margin-top: 6px; font-size: 20px; font-weight: 780; }
.success-next-list { display: grid; gap: 12px; margin-top: 16px; padding-left: 18px; }
.success-next-list li { padding-left: 3px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.success-next-list li::marker { color: var(--accent); font-weight: 700; }
.success-next-list strong { display: block; color: var(--ink); font-size: 12px; font-weight: 700; }
.success-next-list span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.success-actions { margin-top: 20px; }
.success-actions .btn { min-height: 40px; }
.ticket-grid small { font-size: 8px; }
.ticket-grid strong { font-size: 11px; }

@media (max-width: 900px) {
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .booking-summary { position: static; }
}

@media (max-width: 720px) {
  .booking-page { padding-block: 26px 56px; }
  .booking-layout { gap: 16px; margin-top: 18px; }
  .booking-panel { padding: 20px; }
  .booking-panel-head h1 { font-size: 27px; }
  .booking-panel-head p { font-size: 11px; }
  .form-section { padding: 17px 0; }
  .form-section-head { gap: 9px; margin-bottom: 12px; }
  .form-section-head > span { width: 27px; height: 27px; font-size: 9px; }
  .form-section-head h2 { font-size: 15px; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .booking-panel .form-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .booking-panel .form-actions .btn { width: 100%; }
  .success-wrap { padding: 40px 0 64px; }
  .success-ticket { padding: 19px; }
  .ticket-grid { grid-template-columns: 1fr 1fr; }
  .success-next { padding: 18px; }
  .success-actions { flex-direction: column; align-items: stretch; }
  .success-actions .btn { width: 100%; }
}

@media (max-width: 430px) {
  .booking-page { padding-block: 20px 46px; }
  .booking-panel { padding: 16px; }
  .form-section-head p { font-size: 9px; }
  .summary-person .avatar { width: 42px; height: 42px; }
  .ticket-grid { grid-template-columns: 1fr; gap: 9px; }
  .success-wrap h1 { font-size: 31px; }
}

/* ==========================================================================
   Phase 3B — member center
   ========================================================================== */

.account-shell .admin-main { max-width: 1420px; }
.account-shell .admin-content { max-width: 1120px; }
.account-shell .admin-topbar { margin-bottom: 22px; }
.account-shell .admin-topbar h1 { font-size: 30px; }
.account-shell .admin-sidebar { border-right: 1px solid rgba(255, 255, 255, .06); }
.account-shell .admin-nav a { font-size: 12px; }
.account-shell .admin-tag { color: rgba(255, 255, 255, .46); }
.account-shell .portal-user-line { padding-top: 2px; }

.account-profile-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 18px; }
.account-identity {
  padding: 25px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.account-identity .avatar { box-shadow: 0 0 0 6px var(--accent-soft); }
.account-identity h2 { margin-top: 3px; font-size: 24px; font-weight: 780; }
.account-identity > p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.account-identity .role-badge { margin-top: 10px; }
.identity-meta {
  padding: 11px 0; color: var(--muted); font-size: 10px;
  border-top: 1px solid var(--line);
}
.identity-meta strong { color: var(--ink); font-size: 10px; font-weight: 650; }
.account-identity .btn { margin-top: 18px; }
.account-profile-grid > .panel:last-child { padding: 25px; }
.account-profile-grid .panel-head h2 { font-size: 18px; font-weight: 750; }
.avatar-upload-row { align-items: flex-start; }
.privacy-note {
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  border-radius: 10px; background: #f6f4ff; color: var(--muted);
  font-size: 10px;
}
.account-profile-grid .admin-form-actions { border-color: var(--line); }

/* Account booking cards */
.account-booking-card { overflow: hidden; border-radius: 16px; }
.account-booking-next {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 19px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-soft);
  font-size: 10px; font-weight: 600;
}
.account-booking-next::before {
  content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%;
  background: var(--accent);
}
.account-booking-card[data-booking-status="pending"] .account-booking-next { background: #fff7e6; color: #8a5a12; }
.account-booking-card[data-booking-status="pending"] .account-booking-next::before { background: #b98224; }
.account-booking-card[data-booking-status="contacting"] .account-booking-next { background: #eef2f7; color: #4b5f72; }
.account-booking-card[data-booking-status="contacting"] .account-booking-next::before { background: #5f7d93; }
.account-booking-card[data-booking-status="confirmed"] .account-booking-next { background: #f4f1ff; color: var(--accent-dark); }
.account-booking-card[data-booking-status="pending_cancel"] .account-booking-next { background: #fff1ed; color: #a34f45; }
.account-booking-card[data-booking-status="pending_cancel"] .account-booking-next::before { background: #b42318; }
.account-booking-card[data-booking-status="cancelled"] .account-booking-next { background: #f3f4f6; color: var(--muted); }
.account-booking-card[data-booking-status="cancelled"] .account-booking-next::before { background: #8a909b; }
.account-booking-card[data-booking-status="completed"] .account-booking-next { background: var(--sage-soft); color: var(--sage); }
.account-booking-card[data-booking-status="completed"] .account-booking-next::before { background: var(--sage); }
.account-booking-card .booking-admin-main { padding: 17px 19px; align-items: flex-start; }
.account-booking-card .booking-admin-info h3 { font-size: 16px; font-weight: 700; }
.account-booking-card .booking-admin-info h3 .text-link { font-size: 12px; }
.account-booking-card .booking-admin-info p { color: var(--muted); font-size: 10px; }
.account-booking-card .booking-admin-side { align-items: flex-end; flex-direction: column; gap: 7px; }
.account-booking-card .booking-admin-details > summary { padding: 10px 19px; }
.account-booking-card .booking-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 5px 19px 20px;
}
.account-booking-card .booking-detail-grid strong { font-size: 11px; }
.account-booking-card .booking-detail-grid small { font-size: 9px; }
.account-booking-card .field-hint, .account-booking-card .page-note { font-size: 10px; }
.account-booking-card .btn-danger { margin-top: 2px; }
.account-booking-card .userBookingQuoteMarkup { margin-top: 0; }
.account-toolbar, .account-shell .admin-toolbar {
  padding: 0 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.account-toolbar .text-link, .account-shell .admin-toolbar .text-link { font-size: 11px; }

/* Favorites */
.account-works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-works-grid .work-card-interactive { border-radius: 15px; }
.account-works-grid .work-visual { aspect-ratio: 1.28 / 1; }
.account-works-grid .work-card-body { padding: 12px 14px 14px; }
.account-works-grid .work-card-title-row h3 { font-size: 14px; font-weight: 700; }
.account-works-grid .work-card-foot { border-color: var(--line); color: var(--muted); font-size: 9px; }
.account-shell .unavailable-work-card { border-radius: 15px; }

/* Unlocked library */
.library-list { gap: 10px; }
.library-row {
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px; padding: 13px; border-radius: 14px; background: var(--surface);
}
.library-thumb { width: 116px; height: 84px; border-radius: 10px; }
.library-info .work-detail-topline { gap: 5px; }
.library-info h3 { margin-top: 7px; font-size: 15px; font-weight: 700; }
.library-info > p { color: var(--muted); font-size: 9px; }
.library-side { color: var(--muted); font-size: 9px; }
.library-side .text-link { font-size: 10px; }
.unavailable-note { border: 1px solid #ead9cb; background: #fff5ee; color: #7b6255; font-size: 9px; }

/* Purchase records */
.order-list { gap: 10px; }
.order-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow);
}
.order-card:hover { border-color: var(--line-dark); }
.order-card-main h3 { margin-top: 5px; font-size: 15px; font-weight: 700; }
.order-card-main p { color: var(--muted); font-size: 10px; }
.order-card-side strong { font-size: 18px; }
.order-card-side .status { font-size: 9px; }
.order-card-note { color: var(--muted); font-size: 9px; }

/* Empty and states */
.account-shell .empty-state {
  padding: 48px 24px; border-style: solid; background: var(--surface);
  box-shadow: var(--shadow);
}
.account-shell .empty-state h3 { font-size: 18px; font-weight: 750; }
.account-shell .empty-state p { font-size: 11px; }
.account-shell .page-note { background: var(--surface); }
.account-shell .status { font-size: 9px; }

@media (max-width: 1080px) {
  .account-profile-grid { grid-template-columns: 230px minmax(0, 1fr); }
  .account-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .account-profile-grid { grid-template-columns: 1fr; }
  .account-shell .admin-content { max-width: none; }
  .account-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-booking-card .booking-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .account-shell .admin-topbar h1 { font-size: 26px; }
  .account-shell .admin-topbar-actions { width: 100%; }
  .account-booking-card .booking-admin-main { flex-direction: column; gap: 10px; }
  .account-booking-card .booking-admin-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .account-booking-card .booking-detail-grid { grid-template-columns: 1fr 1fr; }
  .account-booking-next { padding: 9px 15px; font-size: 9px; }
  .account-works-grid { grid-template-columns: 1fr; }
  .library-row { grid-template-columns: 1fr; }
  .library-thumb { width: 100%; height: 150px; }
  .library-side { flex-direction: row; align-items: center; justify-content: space-between; }
  .order-card { grid-template-columns: 1fr; }
  .order-card-side { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .account-profile-grid > .panel:last-child { padding: 18px; }
  .account-identity { padding: 20px 16px; }
}

@media (max-width: 430px) {
  .account-shell .admin-main { padding: 18px 14px 40px; }
  .account-shell .admin-topbar h1 { font-size: 24px; }
  .account-booking-card .booking-admin-main { padding: 14px; }
  .account-booking-card .booking-admin-info h3 { font-size: 15px; }
  .account-booking-card .booking-admin-side { flex-wrap: wrap; }
  .account-booking-card .booking-admin-side .account-booking-next { width: 100%; }
  .account-booking-card .booking-detail-grid { grid-template-columns: 1fr; gap: 10px; }
  .account-booking-next { padding: 8px 14px; }
  .account-works-grid { gap: 12px; }
  .library-info h3 { font-size: 14px; }
  .order-card { padding: 14px; }
  .account-profile-grid .panel-head h2 { font-size: 17px; }
}

/* ==========================================================================
   Phase 4A — creator studio + admin console
   ========================================================================== */

.admin-shell { background: var(--bg); }
.admin-shell:not(.portal-shell) .admin-sidebar,
.portal-shell.studio-shell .admin-sidebar {
  width: 256px; padding: 24px 18px 20px;
  background: #101114;
  border-right: 1px solid rgba(255, 255, 255, .05);
}
.admin-shell:not(.portal-shell) .admin-brand,
.portal-shell.studio-shell .admin-brand { padding-inline: 7px; }
.admin-shell:not(.portal-shell) .admin-tag,
.portal-shell.studio-shell .admin-tag {
  margin: 22px 7px 12px; color: rgba(255, 255, 255, .42);
  font-size: 9px; letter-spacing: .08em;
}
.admin-shell:not(.portal-shell) .admin-nav,
.portal-shell.studio-shell .admin-nav { gap: 3px; padding-top: 6px; }
.admin-shell:not(.portal-shell) .admin-nav a,
.portal-shell.studio-shell .admin-nav a {
  min-height: 39px; padding: 9px 11px; border-radius: 9px;
  color: rgba(255, 255, 255, .62); font-size: 12px;
}
.admin-shell:not(.portal-shell) .admin-nav a:hover,
.portal-shell.studio-shell .admin-nav a:hover { background: rgba(255, 255, 255, .065); color: #fff; }
.admin-shell:not(.portal-shell) .admin-nav a.is-active,
.portal-shell.studio-shell .admin-nav a.is-active { background: var(--accent); color: #fff; }
.admin-shell:not(.portal-shell) .admin-nav .nav-count,
.portal-shell.studio-shell .admin-nav .nav-count { background: rgba(255, 255, 255, .13); color: #fff; }
.admin-shell:not(.portal-shell) .admin-nav a.is-active .nav-count,
.portal-shell.studio-shell .admin-nav a.is-active .nav-count { background: rgba(255, 255, 255, .23); }
.admin-shell:not(.portal-shell) .admin-sidebar-foot,
.portal-shell.studio-shell .admin-sidebar-foot { border-color: rgba(255, 255, 255, .11); }
.admin-shell:not(.portal-shell) .admin-main { padding: 34px 38px 58px; }
.portal-shell.studio-shell .admin-main { padding: 34px 38px 58px; }
.admin-shell:not(.portal-shell) .admin-topbar,
.portal-shell.studio-shell .admin-topbar { margin-bottom: 24px; }
.admin-shell:not(.portal-shell) .admin-topbar h1,
.portal-shell.studio-shell .admin-topbar h1 { font-size: 30px; font-weight: 800; }
.admin-shell:not(.portal-shell) .admin-topbar p,
.portal-shell.studio-shell .admin-topbar p { color: var(--muted); font-size: 11px; }
.admin-shell:not(.portal-shell) .admin-content,
.portal-shell.studio-shell .admin-content { max-width: 1320px; }
.admin-shell:not(.portal-shell) .panel,
.portal-shell.studio-shell .panel { padding: 22px; }
.admin-shell:not(.portal-shell) .admin-toolbar,
.portal-shell.studio-shell .admin-toolbar {
  padding-bottom: 12px; margin-bottom: 17px; border-bottom: 1px solid var(--line);
}
.admin-shell:not(.portal-shell) .admin-toolbar-note,
.portal-shell.studio-shell .admin-toolbar-note { color: var(--muted); font-size: 10px; }
.admin-shell:not(.portal-shell) .admin-form,
.portal-shell.studio-shell .admin-form {
  padding: 22px; border-color: var(--line); border-radius: 15px; background: var(--surface);
}
.admin-shell:not(.portal-shell) .admin-form .form-grid,
.portal-shell.studio-shell .admin-form .form-grid { gap: 14px; }
.admin-shell:not(.portal-shell) .admin-form-actions,
.portal-shell.studio-shell .admin-form-actions { padding-top: 12px; }
.admin-shell:not(.portal-shell) .metric-grid { gap: 12px; }
.admin-shell:not(.portal-shell) .metric-card,
.portal-shell.studio-shell .metric-card {
  padding: 19px; border-radius: 14px; box-shadow: none;
}
.admin-shell:not(.portal-shell) .metric-card::after,
.portal-shell.studio-shell .metric-card::after { opacity: .55; }
.admin-shell:not(.portal-shell) .metric-label,
.portal-shell.studio-shell .metric-label { color: var(--muted); font-size: 10px; }
.admin-shell:not(.portal-shell) .metric-value,
.portal-shell.studio-shell .metric-value { margin-top: 12px; font-size: 34px; font-weight: 800; }
.admin-shell:not(.portal-shell) .metric-foot,
.portal-shell.studio-shell .metric-foot { color: var(--muted); font-size: 9px; }
.admin-shell:not(.portal-shell) .dashboard-grid { gap: 14px; }
.admin-shell:not(.portal-shell) .recent-row,
.portal-shell.studio-shell .recent-row { padding: 13px 0; }
.admin-shell:not(.portal-shell) .quick-link,
.portal-shell.studio-shell .quick-link { border-color: var(--line); background: var(--surface); }
.admin-shell:not(.portal-shell) .quick-link:hover,
.portal-shell.studio-shell .quick-link:hover { background: var(--surface-2); }

/* Admin lists and filters */
.admin-shell:not(.portal-shell) .status-select,
.portal-shell.studio-shell .status-select {
  height: 34px; padding-inline: 10px 26px; border-radius: 8px;
  border-color: var(--line); background: var(--surface); font-size: 10px;
}
.admin-shell:not(.portal-shell) .booking-filter,
.portal-shell.studio-shell .booking-filter { margin-bottom: 13px; }
.admin-shell:not(.portal-shell) .booking-admin-card,
.portal-shell.studio-shell .booking-admin-card {
  border-color: var(--line); border-radius: 13px; box-shadow: none;
}
.admin-shell:not(.portal-shell) .booking-admin-main,
.portal-shell.studio-shell .booking-admin-main { padding: 16px 18px; }
.admin-shell:not(.portal-shell) .booking-admin-info h3,
.portal-shell.studio-shell .booking-admin-info h3 { font-size: 14px; font-weight: 700; }
.admin-shell:not(.portal-shell) .booking-admin-details,
.portal-shell.studio-shell .booking-admin-details { border-color: var(--line); }
.admin-shell:not(.portal-shell) .booking-detail-grid,
.portal-shell.studio-shell .booking-detail-grid { border-color: var(--line); }
.admin-shell:not(.portal-shell) .booking-admin-details summary,
.portal-shell.studio-shell .booking-admin-details summary { color: var(--muted); }
.admin-shell:not(.portal-shell) .booking-admin-details summary::before,
.portal-shell.studio-shell .booking-admin-details summary::before { color: var(--accent); }
.admin-shell:not(.portal-shell) .admin-work-row,
.portal-shell.studio-shell .studio-work-row {
  padding: 13px; border-color: var(--line); border-radius: 13px;
  background: var(--surface);
}
.admin-shell:not(.portal-shell) .admin-work-main h3,
.portal-shell.studio-shell .studio-work-main h3 { font-weight: 700; }
.admin-shell:not(.portal-shell) .admin-package-row,
.portal-shell.studio-shell .admin-package-row {
  border-color: var(--line); border-radius: 12px; background: var(--surface);
}
.admin-shell:not(.portal-shell) .application-admin-card,
.admin-shell:not(.portal-shell) .verification-admin-row,
.admin-shell:not(.portal-shell) .comment-admin-card,
.admin-shell:not(.portal-shell) .rule-row,
.admin-shell:not(.portal-shell) .audit-row {
  border-color: var(--line); background: var(--surface);
}
.admin-shell:not(.portal-shell) .application-admin-card,
.admin-shell:not(.portal-shell) .comment-admin-card,
.admin-shell:not(.portal-shell) .rule-row { border-radius: 13px; }
.admin-shell:not(.portal-shell) .data-card { border-color: var(--line); background: var(--surface); }
.admin-shell:not(.portal-shell) .data-stats { gap: 8px; }
.admin-shell:not(.portal-shell) .data-stat { border-color: var(--line); background: var(--surface-2); }
.admin-shell:not(.portal-shell) .admin-empty,
.portal-shell.studio-shell .admin-empty {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--muted);
}
.admin-shell:not(.portal-shell) .empty-state,
.portal-shell.studio-shell .empty-state {
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.admin-shell:not(.portal-shell) .notice-box,
.portal-shell.studio-shell .notice-box { border-color: #ded9ff; background: #f6f4ff; }

/* Studio specifics */
.portal-shell.studio-shell .studio-metrics { gap: 10px; }
.portal-shell.studio-shell .studio-metrics .metric-card { padding: 17px; }
.portal-shell.studio-shell .studio-metrics .metric-value { font-size: 29px; }
.portal-shell.studio-shell .admin-content { max-width: 1200px; }
.portal-shell.studio-shell .studio-quick-actions { border-color: var(--line); }
.portal-shell.studio-shell .studio-work-list { gap: 9px; }
.portal-shell.studio-shell .studio-work-actions .btn { min-height: 31px; }
.portal-shell.studio-shell .account-profile-grid { grid-template-columns: 250px minmax(0, 1fr); }
.portal-shell.studio-shell .account-identity { border: 1px solid var(--line); background: var(--surface); }
.portal-shell.studio-shell .privacy-note { border-color: var(--line); background: #f6f4ff; }
.portal-shell.studio-shell .page-note { border-color: var(--line); background: var(--surface); }

@media (max-width: 1080px) {
  .admin-shell:not(.portal-shell) .admin-main { padding: 26px 24px 46px; }
  .portal-shell.studio-shell .admin-main { padding: 26px 24px 46px; }
  .portal-shell.studio-shell .admin-sidebar { width: 230px; }
}

@media (max-width: 900px) {
  .admin-shell:not(.portal-shell) .admin-sidebar,
  .portal-shell.studio-shell .admin-sidebar { width: auto; }
  .admin-shell:not(.portal-shell) .admin-nav,
  .portal-shell.studio-shell .admin-nav { gap: 4px; }
  .admin-shell:not(.portal-shell) .admin-main,
  .portal-shell.studio-shell .admin-main { padding: 24px 20px 42px; }
  .admin-shell:not(.portal-shell) .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-shell.studio-shell .studio-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-shell.studio-shell .account-profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .admin-shell:not(.portal-shell) .admin-topbar,
  .portal-shell.studio-shell .admin-topbar { gap: 10px; }
  .admin-shell:not(.portal-shell) .admin-topbar-actions,
  .portal-shell.studio-shell .admin-topbar-actions { flex-wrap: wrap; }
  .admin-shell:not(.portal-shell) .admin-topbar-actions .btn,
  .portal-shell.studio-shell .admin-topbar-actions .btn { min-height: 34px; }
  .admin-shell:not(.portal-shell) .metric-card,
  .portal-shell.studio-shell .metric-card { padding: 15px; }
  .admin-shell:not(.portal-shell) .metric-value,
  .portal-shell.studio-shell .metric-value { font-size: 27px; }
  .admin-shell:not(.portal-shell) .booking-admin-main,
  .portal-shell.studio-shell .booking-admin-main { flex-direction: column; align-items: flex-start; }
  .admin-shell:not(.portal-shell) .booking-admin-side,
  .portal-shell.studio-shell .booking-admin-side { width: 100%; justify-content: space-between; }
  .admin-shell:not(.portal-shell) .booking-detail-grid,
  .portal-shell.studio-shell .booking-detail-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell:not(.portal-shell) .panel,
  .portal-shell.studio-shell .panel { padding: 16px; }
  .admin-shell:not(.portal-shell) .admin-form,
  .portal-shell.studio-shell .admin-form { padding: 16px; }
  .portal-shell.studio-shell .studio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-shell.studio-shell .studio-metrics .metric-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .admin-shell:not(.portal-shell) .admin-main,
  .portal-shell.studio-shell .admin-main { padding: 16px 12px 36px; }
  .admin-shell:not(.portal-shell) .metric-grid { grid-template-columns: 1fr; }
  .portal-shell.studio-shell .studio-metrics { grid-template-columns: 1fr; }
  .portal-shell.studio-shell .studio-metrics .metric-card:last-child { grid-column: auto; }
  .admin-shell:not(.portal-shell) .booking-detail-grid,
  .portal-shell.studio-shell .booking-detail-grid { grid-template-columns: 1fr; }
  .admin-shell:not(.portal-shell) .admin-nav,
  .portal-shell.studio-shell .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shell:not(.portal-shell) .admin-topbar h1,
  .portal-shell.studio-shell .admin-topbar h1 { font-size: 24px; }
}

/* ==========================================================================
   Phase 4B — safety center
   ========================================================================== */

.safety-page { background: var(--bg); }
.safety-hero {
  position: relative; overflow: hidden;
  background: #101114; color: #fff;
}
.safety-hero::after {
  content: ""; position: absolute; width: 520px; height: 520px;
  right: -180px; top: -260px; border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%; box-shadow: 0 0 0 52px rgba(255, 255, 255, .025), 0 0 0 104px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.safety-hero-inner { position: relative; z-index: 1; max-width: 1120px; padding-block: 68px 58px; }
.safety-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 27px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .82); font-size: 10px; font-weight: 650;
}
.safety-kicker span { color: #9a88ff; }
.safety-hero h1 {
  max-width: 780px; margin-top: 20px;
  color: #fff; font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 820; line-height: 1.06; letter-spacing: -.065em;
}
.safety-hero p {
  max-width: 680px; margin-top: 18px;
  color: rgba(255, 255, 255, .64); font-size: 14px; line-height: 1.85;
}
.safety-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.safety-hero-tags span {
  padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; color: rgba(255, 255, 255, .72); font-size: 10px;
}
.safety-content { max-width: 1120px; padding-block: 48px 86px; }
.safety-intro { max-width: 850px; }
.safety-intro h2 { margin-top: 8px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.safety-intro > p { max-width: 760px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.safety-intro .notice-box { margin-top: 18px; }
.safety-section { margin-top: 52px; }
.safety-section-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 17px; }
.safety-section-head > span {
  flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; margin-top: 1px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 11px; font-weight: 800;
}
.safety-section-head h2 { margin-top: 4px; font-size: 24px; font-weight: 780; letter-spacing: -.03em; }
.safety-section-head p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.safety-card {
  padding: 20px; border: 1px solid var(--line); border-radius: 15px;
  background: var(--surface); box-shadow: 0 4px 18px rgba(15, 17, 21, .035);
}
.safety-card-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 24px; padding: 0 8px;
  border-radius: 7px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 9px; font-weight: 800;
}
.safety-card h3 { margin-top: 12px; font-size: 15px; font-weight: 750; }
.safety-card p { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.safety-dark {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px;
  margin-top: 52px; padding: 30px;
  border-radius: 18px; background: #101114; color: #fff;
}
.safety-dark .eyebrow { color: #b7aaff; }
.safety-dark h2 { margin-top: 9px; color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.safety-dark-copy p { margin-top: 8px; color: rgba(255, 255, 255, .56); font-size: 11px; line-height: 1.8; }
.safety-prohibited { display: grid; gap: 9px; list-style: none; }
.safety-prohibited li {
  display: flex; align-items: flex-start; gap: 9px;
  color: rgba(255, 255, 255, .76); font-size: 11px; line-height: 1.65;
}
.safety-prohibited li::before { content: "×"; flex: none; color: #ff8c82; font-size: 14px; line-height: 1.2; }
.safety-privacy {
  margin-top: 52px; padding: 26px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
}
.safety-privacy-head h2 { margin-top: 6px; font-size: 24px; font-weight: 780; }
.safety-privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 19px; }
.safety-privacy-grid > div { padding-top: 13px; border-top: 1px solid var(--line); }
.safety-privacy-grid strong { font-size: 12px; }
.safety-privacy-grid p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.safety-faq-list { display: grid; gap: 8px; }
.safety-faq {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.safety-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; color: var(--ink); font-size: 12px; font-weight: 650;
  cursor: pointer; list-style: none;
}
.safety-faq summary::-webkit-details-marker { display: none; }
.safety-faq summary span { color: var(--accent-dark); font-size: 17px; font-weight: 400; transition: transform .2s; }
.safety-faq[open] summary span { transform: rotate(45deg); }
.safety-faq > div { padding: 0 16px 15px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.safety-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 52px; padding: 24px; border: 1px solid #ded9ff;
  border-radius: 18px; background: #f6f4ff;
}
.safety-contact h2 { margin-top: 6px; font-size: 21px; font-weight: 780; }
.safety-contact p { max-width: 770px; margin-top: 6px; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.safety-contact .btn { flex: none; }

@media (max-width: 900px) {
  .safety-hero-inner { padding-block: 52px 46px; }
  .safety-grid { gap: 10px; }
  .safety-dark { grid-template-columns: 1fr; gap: 18px; }
  .safety-privacy-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .safety-hero-inner { padding-block: 40px 36px; }
  .safety-hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .safety-hero p { font-size: 12px; }
  .safety-content { padding-block: 34px 56px; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-section { margin-top: 36px; }
  .safety-section-head h2 { font-size: 21px; }
  .safety-section-head p { font-size: 10px; }
  .safety-dark { margin-top: 36px; padding: 20px; }
  .safety-dark h2 { font-size: 23px; }
  .safety-privacy { margin-top: 36px; padding: 18px; }
  .safety-privacy-grid { grid-template-columns: 1fr; gap: 10px; }
  .safety-contact { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 36px; padding: 18px; }
  .safety-contact .btn { width: 100%; }
  .safety-faq summary { padding: 13px; font-size: 11px; }
  .safety-faq > div { padding-inline: 13px; font-size: 10px; }
}

@media (max-width: 430px) {
  .safety-hero-inner { padding-block: 34px 30px; }
  .safety-hero h1 { font-size: 34px; }
  .safety-kicker { font-size: 9px; }
  .safety-content { padding-block: 28px 46px; }
  .safety-card { padding: 16px; }
  .safety-card h3 { font-size: 14px; }
  .safety-card p { font-size: 10px; }
  .safety-section-head { gap: 10px; }
  .safety-section-head > span { width: 29px; height: 29px; font-size: 10px; }
  .safety-section-head h2 { font-size: 20px; }
  .safety-intro h2 { font-size: 24px; }
}

/* ==========================================================================
   Phase 5A — avatar, style picker, title wrapping and CTA contrast
   ========================================================================== */

/* Hide initials only after the avatar blob has actually loaded. */
.avatar.has-media > span { display: none; }
.avatar img[hidden] { display: none; }

.field-label {
  display: flex; align-items: center; gap: 5px; margin-bottom: 7px;
  color: var(--ink-soft); font-size: 12px; font-weight: 600;
}
.field-label .optional { margin-left: 2px; color: var(--muted); font-size: 10px; font-weight: 400; }
.style-picker { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; align-items: center; }
.style-option {
  position: relative; display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink-soft);
  font-size: 11px; font-weight: 600; cursor: pointer; user-select: none;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.style-option:hover { border-color: var(--accent); color: var(--accent-dark); }
.style-option input {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.style-option:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(91, 61, 245, .08);
}
.style-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.style-option small {
  display: inline-block; margin-left: 5px; padding: 1px 4px;
  border-radius: 4px; background: rgba(15, 17, 21, .06);
  color: var(--muted); font-size: 8px; font-weight: 500;
}
.style-option.is-legacy { border-style: dashed; }
.style-picker .muted-text { font-size: 10px; line-height: 1.6; }

/* Long work titles wrap inside every card/detail surface. */
.work-caption,
.work-card-title-row h3,
.work-detail-info h1,
.studio-work-main h3,
.admin-work-main h3,
.recent-info strong,
.home-mosaic-caption strong,
.purchase-work strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.work-caption { right: 16px; max-width: calc(100% - 32px); line-height: 1.45; }
.work-detail-info { min-width: 0; }
.studio-work-main, .admin-work-main, .recent-info { min-width: 0; }
.home-mosaic-caption { min-width: 0; }

/* The home CTA secondary button sits on the dark panel and needs a transparent background. */
.cta-panel .btn-secondary {
  background: transparent;
  color: #f8f4ed;
  border-color: rgba(255, 255, 255, .32);
}
.cta-panel .btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}
.cta-panel .btn-secondary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .85);
  outline-offset: 3px;
}

.admin-section-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

@media (max-width: 720px) {
  .style-picker { gap: 6px; }
  .style-option { min-height: 32px; padding-inline: 10px; font-size: 10px; }
  .work-caption { left: 14px; right: 14px; max-width: none; }
  .admin-section-actions { width: 100%; justify-content: flex-start; }
  .admin-section-actions .btn { flex: 1; }
}

/* MOBILE-01: keep the commission ledger toolbar inside the mobile viewport. */
@media (max-width: 720px) {
  .commission-ledger-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .commission-ledger-toolbar > div:first-child {
    flex: 1 1 100%;
    min-width: 0;
  }
  .commission-ledger-toolbar .search-box {
    width: 100%;
    flex: 1 1 100%;
    order: 2;
  }
}

.auth-recovery {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface); overflow: hidden;
}
.auth-recovery summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 15px; color: var(--ink-soft); font-size: 11px;
  font-weight: 650; cursor: pointer; list-style: none;
}
.auth-recovery summary::-webkit-details-marker { display: none; }
.auth-recovery summary::after { content: "+"; color: var(--accent-dark); font-size: 17px; font-weight: 400; }
.auth-recovery[open] summary::after { content: "−"; }
.auth-recovery summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.auth-recovery-body { padding: 0 15px 15px; border-top: 1px solid var(--line); }
.auth-recovery-note { padding-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.auth-recovery .auth-form { margin-top: 12px; gap: 12px; }
.auth-recovery .auth-form .field label { font-size: 10px; }
.auth-recovery .btn { width: 100%; margin-top: 0; }
.auth-recovery .field-error { min-height: 0; }
@media (max-width: 430px) {
  .auth-recovery summary { padding: 12px; font-size: 10px; }
  .auth-recovery-body { padding: 0 12px 12px; }
}
