:root {
  --bg-obsidian: #07080a;
  --surface-slate: #101216;
  --surface-elevated: #171a21;
  --surface-hover: #1e222b;
  --ink-ivory: #f4f1ea;
  --ink-secondary: #cbc8c0;
  --ink-muted: #9a9892;
  --accent-champagne: #d4b47c;
  --accent-champagne-soft: rgba(212, 180, 124, 0.14);
  --danger: #df655a;
  --success: #5cb88a;
  --border-hairline: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "SFMono-Regular", Menlo, "Microsoft YaHei", monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-dock: 0 24px 64px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-modal: 0 32px 80px rgba(0, 0, 0, 0.78);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
  overflow-x: hidden;
}

pre,
code,
kbd,
samp {
  font-family: var(--font-mono);
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-champagne);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* =========================================================
   BUTTONS & SHARED CONTROLS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-lg {
  min-height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-sm {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.modal-submit-btn {
  border-radius: 10px;
}

.btn-primary {
  background: var(--ink-ivory);
  color: var(--bg-obsidian);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: #ffffff;
}

.btn-glass {
  background: rgba(16, 18, 22, 0.64);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink-ivory);
  backdrop-filter: blur(12px);
}

.btn-glass:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.38);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink-ivory);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-ivory);
}

.btn-danger {
  background: rgba(223, 101, 90, 0.14);
  border-color: rgba(223, 101, 90, 0.42);
  color: #f39a91;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(223, 101, 90, 0.24);
  color: #fff;
}

.btn-icon-text {
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 12px;
  color: var(--ink-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-icon-text:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-ivory);
}

.link-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  color: var(--accent-champagne);
  font-size: 14px;
}

.link-btn:hover {
  text-decoration: underline;
}

.footer-link {
  color: var(--ink-secondary);
}

.footer-link:hover {
  color: var(--ink-ivory);
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-slate);
  border: 1px solid var(--border-hairline);
  gap: 2px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.seg-btn:hover {
  color: var(--ink-ivory);
}

.seg-btn.is-active {
  background: var(--surface-elevated);
  color: var(--ink-ivory);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.segmented-sm .seg-btn {
  padding: 5px 12px;
  font-size: 12px;
}

/* =========================================================
   PUBLIC LANDING HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 68px;
  background: rgba(7, 8, 10, 0.74);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.brand-seal {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink-ivory);
  color: var(--bg-obsidian);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-ivory);
}

.brand-text span {
  font-size: 11px;
  color: var(--ink-muted);
}

.brand-lockup-compact .brand-seal {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink-ivory);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================================================
   HERO SECTION (FULL-BLEED REAL ARTWORK SHOWCASE)
   ========================================================= */
.hero-section {
  position: relative;
  min-height: 750px;
  height: min(94vh, 860px);
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 42%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 88% at 18% 50%, rgba(7, 8, 10, 0.92) 0%, rgba(7, 8, 10, 0.78) 54%, rgba(7, 8, 10, 0.16) 100%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.88) 0%, rgba(7, 8, 10, 0.66) 40%, rgba(7, 8, 10, 0.12) 74%, rgba(7, 8, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.5) 0%, rgba(7, 8, 10, 0) 22%, rgba(7, 8, 10, 0) 76%, #07080a 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.hero-copy {
  max-width: 560px;
}

.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.55rem, 4.5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-ivory);
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink-secondary);
  max-width: 500px;
}

.inline-model-pill,
.inline-code {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--ink-ivory);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-facts {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-fact strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-ivory);
}

.hero-fact span {
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-fact-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-caption {
  position: absolute;
  right: 32px;
  bottom: 24px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(7, 8, 10, 0.68);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: var(--ink-secondary);
}

/* =========================================================
   LANDING SECTIONS
   ========================================================= */
.section-band {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-hairline);
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-ivory);
}

.section-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 560px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

/* =========================================================
   INTERACTIVE BEFORE / AFTER COMPARE STAGE
   ========================================================= */
.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.compare-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 26px 0 18px;
}

.compare-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: var(--radius-md);
  background: var(--surface-slate);
  border: 1px solid var(--border-hairline);
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.compare-tab:hover {
  background: var(--surface-elevated);
}

.compare-tab.is-active {
  background: var(--surface-elevated);
  border-color: var(--accent-champagne);
}

.compare-tab-thumb {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.compare-tab-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.compare-tab-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-ivory);
}

.compare-tab-style {
  font-size: 12px;
  color: var(--ink-muted);
}

.compare-tab.is-active .compare-tab-style {
  color: var(--accent-champagne);
}

.compare-caption {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.compare-drag-hint {
  margin: 0 0 22px;
  font-size: 12px;
  color: var(--ink-muted);
}

.compare-stage-outer {
  display: flex;
  justify-content: flex-end;
}

.compare-stage {
  position: relative;
  display: inline-grid;
  width: 100%;
  max-width: 590px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-slate);
  user-select: none;
  touch-action: none;
}

.compare-img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare-img-overlay {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: rgba(244, 241, 234, 0.92);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 3;
}

.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink-ivory);
  color: var(--bg-obsidian);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.compare-pill {
  position: absolute;
  top: 16px;
  z-index: 4;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-ivory);
  pointer-events: none;
}

.compare-pill-left {
  left: 16px;
}

.compare-pill-right {
  right: 16px;
}

.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

/* =========================================================
   TRUE ASYMMETRIC EDITORIAL COMMERCIAL GALLERY
   (Clean museum plate caption below artwork — zero muddy scrim)
   ========================================================= */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: var(--surface-slate);
  padding: 0;
  text-align: left;
  grid-column: span 4;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.gallery-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
}

.gallery-card.is-hero-wide {
  grid-column: span 7;
}

.gallery-card.is-hero-side {
  grid-column: span 5;
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.5;
  overflow: hidden;
  background: #12141a;
}

.gallery-card.is-hero-wide .gallery-media,
.gallery-card.is-hero-side .gallery-media {
  aspect-ratio: auto;
  height: 390px;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card.is-bright-paper .gallery-media img {
  filter: brightness(0.93) contrast(1.02);
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.025);
}

.gallery-plate {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-hairline);
}

.gallery-plate-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gallery-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-ivory);
}

.gallery-card-meta {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.gallery-card:hover .gallery-card-meta {
  color: var(--accent-champagne);
}

.gallery-card-prompt {
  font-size: 13px;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   16 MASTER STYLES GRID
   ========================================================= */
.masters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.master-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-slate);
  border: 1px solid var(--border-hairline);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.master-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-elevated);
}

.master-thumb-wrap {
  aspect-ratio: 4 / 3;
  background: #14161b;
  overflow: hidden;
}

.master-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.master-card:hover .master-thumb-wrap img {
  transform: scale(1.03);
}

.master-card-body {
  padding: 13px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.master-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.master-card-top strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-ivory);
  white-space: nowrap;
}

.master-card-era {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.master-card:hover .master-card-era {
  color: var(--accent-champagne);
}

.master-card-tagline {
  margin: 1px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* =========================================================
   ENTERPRISE ACCESS & CODE CARD
   ========================================================= */
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 56px;
  align-items: start;
}

.access-steps-col,
.access-code-col,
.code-card {
  min-width: 0;
  max-width: 100%;
}

.onboarding-steps {
  list-style: none;
  margin: 30px 0 34px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.onboarding-steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-index {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-champagne);
}

.onboarding-steps h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-ivory);
}

.onboarding-steps p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.access-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.code-card {
  border-radius: var(--radius-lg);
  background: var(--surface-slate);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.02);
}

.code-card-tabs {
  display: flex;
  gap: 6px;
}

.code-tab {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-muted);
}

.code-tab.is-active {
  background: var(--surface-elevated);
  color: var(--ink-ivory);
}

.code-block {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.68;
  color: #dcdad3;
}

.code-block code {
  font-family: var(--font-mono);
}

.tok-cmt {
  color: #7c7e86;
}

.tok-str {
  color: #dfc08c;
}

.tok-key {
  color: #f4f1ea;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-brand strong {
  font-size: 14px;
  color: var(--ink-ivory);
}

.footer-brand span {
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* =========================================================
   AUTHENTICATED WORKSPACE SHELL
   ========================================================= */
.workspace-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-obsidian);
}

.ws-header {
  background: var(--surface-slate);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 35;
}

.ws-header-row-top {
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ws-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ws-tabs-desktop {
  margin-left: 12px;
  margin-right: auto;
}

.ws-tabs-mobile {
  display: none;
}

.ws-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ws-tab:hover {
  color: var(--ink-ivory);
}

.ws-tab.is-active {
  background: var(--surface-elevated);
  color: var(--ink-ivory);
  box-shadow: inset 0 0 0 1px var(--border-hairline);
}

.badge-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-champagne);
  color: var(--bg-obsidian);
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}

.quota-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--ink-secondary);
}

.quota-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-champagne);
}

.user-label-text {
  font-size: 13px;
  color: var(--ink-muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-banner {
  padding: 7px 24px;
  background: rgba(212, 180, 124, 0.09);
  border-bottom: 1px solid rgba(212, 180, 124, 0.22);
  font-size: 12px;
  color: #e4cfa7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.demo-banner-close {
  border: none;
  background: transparent;
  color: #e4cfa7;
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  opacity: 0.75;
}

.demo-banner-close:hover {
  opacity: 1;
}

.ws-panel {
  flex: 1;
}

/* =========================================================
   DIRECT PHOTO-TO-PAINTING & T2I STUDIO
   ========================================================= */
.ws-panel-studio {
  display: flex;
  flex: 1 1 auto;
  height: calc(100vh - 58px);
  min-height: 600px;
  overflow: hidden;
}

.studio-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  width: 100%;
  height: 100%;
}

.studio-stage-area {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.025), transparent 62%), var(--bg-obsidian);
}

.studio-stage-area.is-popover-open .canvas-viewport,
.studio-stage-area.is-popover-open .studio-mode-bar {
  opacity: 0.1;
  filter: blur(2px);
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.studio-mode-bar {
  padding: 16px 24px 0;
  display: flex;
  justify-content: center;
  z-index: 5;
}

.canvas-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px 186px;
  overflow-y: auto;
  transition: opacity 0.16s ease;
}

.canvas-empty {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.upload-dropzone {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(16, 18, 22, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.upload-dropzone.is-dragover {
  border-color: var(--accent-champagne);
  background: rgba(212, 180, 124, 0.08);
}

.dropzone-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--ink-ivory);
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.canvas-empty h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  font-weight: 600;
  color: var(--ink-ivory);
}

.canvas-empty p {
  margin: 4px 0 18px;
  font-size: 14px;
  color: var(--ink-muted);
}

.dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dropzone-preview-card {
  margin-top: 14px;
  width: 100%;
  max-width: 440px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--accent-champagne);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.dropzone-preview-card img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.dropzone-preview-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropzone-preview-meta strong {
  font-size: 13px;
  color: var(--ink-ivory);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-preview-meta span {
  font-size: 12px;
  color: var(--ink-muted);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.prompt-chip {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--surface-slate);
  font-size: 13px;
  color: var(--ink-secondary);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.prompt-chip:hover {
  border-color: var(--accent-champagne);
  background: var(--surface-elevated);
  color: var(--ink-ivory);
}

.canvas-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--ink-secondary);
}

.spinner-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--ink-ivory);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.canvas-result {
  width: 100%;
  display: flex;
  justify-content: center;
}

.result-frame-box {
  width: 100%;
  max-width: min(500px, calc(100vh - 330px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-frame-box.is-single-wide {
  max-width: min(600px, calc(100vh - 330px));
}

.result-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-style-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-champagne-soft);
  color: var(--accent-champagne);
  font-size: 13px;
  font-weight: 500;
}

.result-dim-text {
  font-size: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

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

.result-single-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface-slate);
  display: flex;
  justify-content: center;
}

.result-single-wrap img {
  max-height: calc(100vh - 360px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.compare-stage-studio {
  max-width: 100%;
}

/* Floating Bottom Prompt Dock */
.composer-anchor {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.composer-dock {
  pointer-events: auto;
  width: 100%;
  max-width: 820px;
  background: rgba(16, 18, 22, 0.94);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 12px 14px 14px;
  box-shadow: var(--shadow-dock);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.composer-controls-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--surface-elevated);
  font-size: 13px;
  color: var(--ink-ivory);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dock-pill:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.dock-style-trigger {
  padding: 3px 12px 3px 4px;
}

.dock-style-trigger img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.dock-style-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dock-style-info strong {
  font-size: 13px;
  font-weight: 600;
}

.dock-style-info span {
  font-size: 11px;
  color: var(--ink-muted);
}

.dock-photo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 3px 10px 3px 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-champagne-soft);
  border: 1px solid rgba(212, 180, 124, 0.45);
  font-size: 12px;
  color: var(--ink-ivory);
}

.dock-photo-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.chip-remove-btn {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink-ivory);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.dock-ratio-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 2px;
  margin-left: auto;
}

.ratio-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-family: var(--font-mono);
}

.ratio-btn.is-active {
  background: var(--surface-hover);
  color: var(--ink-ivory);
}

.dock-auto-ratio {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 0 8px;
}

.composer-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.composer-input-row textarea {
  width: 100%;
  resize: none;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  background: rgba(7, 8, 10, 0.65);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-ivory);
  min-height: 54px;
  max-height: 128px;
}

.composer-input-row textarea::placeholder {
  color: var(--ink-muted);
}

.composer-input-row textarea:focus {
  outline: none;
  border-color: var(--accent-champagne);
}

.composer-submit-btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
}

/* Style Popover above floating dock */
.style-popover {
  pointer-events: auto;
  width: 100%;
  max-width: 820px;
  margin-bottom: 10px;
  background: rgba(16, 18, 22, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-modal);
  max-height: min(420px, 54vh);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.style-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.style-popover-head strong {
  font-size: 14px;
}

.style-popover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  overflow-y: auto;
  padding: 0 4px 6px 0;
}

.popover-style-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-elevated);
  text-align: left;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.popover-style-item:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.popover-style-item.is-selected {
  border-color: var(--accent-champagne);
  background: var(--accent-champagne-soft);
}

.popover-style-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.popover-style-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.popover-style-meta strong {
  font-size: 13px;
  color: var(--ink-ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popover-style-meta span {
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Studio Right Filmstrip */
.studio-filmstrip {
  border-left: 1px solid var(--border-hairline);
  background: var(--surface-slate);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.filmstrip-head {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

.filmstrip-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filmstrip-empty {
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 20px 4px;
}

.filmstrip-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-elevated);
}

.filmstrip-item.is-active {
  border-color: var(--accent-champagne);
}

.filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   DEVELOPER CONSOLE & ADMIN CONSOLE PAGES
   ========================================================= */
.ws-panel-scroll {
  overflow-y: auto;
  padding: 36px 24px 64px;
}

.console-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.console-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.console-page-head h1 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.console-page-head p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

/* Architectural Single-Bar Hairline KPI Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  background: var(--surface-slate);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.kpi-cell {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border-hairline);
}

.kpi-cell:last-child {
  border-right: none;
}

.kpi-label {
  font-size: 13px;
  color: var(--ink-muted);
}

.kpi-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-ivory);
  font-variant-numeric: tabular-nums;
}

.panel-card {
  border-radius: var(--radius-lg);
  background: var(--surface-slate);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.panel-card-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-card-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
}

.panel-card-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.inline-mint-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-mint-form input {
  width: 260px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-obsidian);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.data-table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.015);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.col-right {
  text-align: right !important;
}

.table-empty {
  text-align: center !important;
  padding: 36px 20px !important;
  color: var(--ink-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
}

.status-active,
.status-approved {
  background: rgba(92, 184, 138, 0.14);
  color: #79d4a5;
}

.status-pending {
  background: var(--accent-champagne-soft);
  color: var(--accent-champagne);
}

.status-suspended,
.status-rejected,
.status-revoked {
  background: rgba(223, 101, 90, 0.14);
  color: #f0958d;
}

.doc-code-wrap {
  background: #0a0b0e;
}

.doc-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-champagne);
}

/* Admin Application Queue */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.applications-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.empty-box {
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  color: var(--ink-muted);
  font-size: 14px;
}

.app-review-card {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-slate);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-card-title strong {
  font-size: 17px;
  color: var(--ink-ivory);
}

.app-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.app-desc-text {
  margin: 0;
  padding: 6px 0 6px 14px;
  border-left: 2px solid rgba(212, 180, 124, 0.45);
  font-size: 13px;
  color: var(--ink-secondary);
}

.app-review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
}

.approve-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mini-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}

.mini-field input {
  width: 96px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   NATIVE <dialog> MODALS
   ========================================================= */
.modal-dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink-ivory);
  max-width: 94vw;
  max-height: 92vh;
  margin: auto;
  overflow: visible;
}

.modal-dialog::backdrop {
  background: rgba(3, 4, 6, 0.78);
  backdrop-filter: blur(8px);
}

.modal-box {
  background: var(--surface-slate);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-sm {
  width: min(440px, 92vw);
}

.modal-md {
  width: min(580px, 92vw);
}

.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink-ivory);
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-tab {
  border: none;
  background: transparent;
  padding: 12px;
  font-size: 14px;
  color: var(--ink-muted);
  border-bottom: 2px solid transparent;
}

.modal-tab.is-active {
  color: var(--ink-ivory);
  border-bottom-color: var(--accent-champagne);
}

.modal-form,
.modal-body-stack {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  color: var(--ink-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-obsidian);
  color: var(--ink-ivory);
  font-size: 14px;
}

.form-field textarea {
  resize: none;
}

.form-field select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239a9892' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-champagne);
}

.input-with-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(223, 101, 90, 0.12);
  border: 1px solid rgba(223, 101, 90, 0.35);
  color: #f4a49c;
  font-size: 13px;
}

.form-success,
.status-result-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(92, 184, 138, 0.1);
  border: 1px solid rgba(92, 184, 138, 0.32);
  color: #bce8cf;
  font-size: 13px;
  line-height: 1.6;
}

.contact-info-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.contact-info-box > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-info-box span {
  color: var(--ink-muted);
  flex-shrink: 0;
}

.modal-foot-links {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
  text-align: center;
}

.secret-display-box {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-obsidian);
  border: 1px solid var(--accent-champagne);
  word-break: break-all;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-ivory);
}

.muted-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.modal-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Lightbox Modal */
.lightbox-box {
  position: relative;
  width: min(920px, 92vw);
  background: var(--surface-slate);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  box-shadow: var(--shadow-modal);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
}

.lightbox-media {
  background: #050608;
  display: grid;
  place-items: center;
}

.lightbox-media img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: cover;
}

.lightbox-info {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-scene {
  font-size: 12px;
  color: var(--accent-champagne);
}

.lightbox-info h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
}

.lightbox-style {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

.lightbox-prompt {
  margin: 8px 0 auto;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* =========================================================
   TOAST NOTIFICATIONS (Centered Top Pill — Zero Collision)
   ========================================================= */
.toast-region {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  max-width: min(440px, 92vw);
}

.toast {
  pointer-events: auto;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(23, 26, 33, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.56);
  font-size: 13px;
  color: var(--ink-ivory);
  white-space: nowrap;
}

.toast.is-error {
  border-color: rgba(223, 101, 90, 0.6);
  color: #f6b2ab;
}

.toast.is-success {
  border-color: rgba(92, 184, 138, 0.55);
  color: #b7ebd0;
}

/* =========================================================
   RESPONSIVE: TABLET & MOBILE (<= 980px / 640px)
   ========================================================= */
@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .compare-layout,
  .access-layout,
  .lightbox-box {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .compare-stage-outer {
    justify-content: center;
  }

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

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

  .kpi-cell {
    border-bottom: 1px solid var(--border-hairline);
  }

  .gallery-card,
  .gallery-card.is-hero-wide,
  .gallery-card.is-hero-side {
    grid-column: span 6;
  }

  .gallery-card.is-hero-wide .gallery-media,
  .gallery-card.is-hero-side .gallery-media {
    height: auto;
    aspect-ratio: 4 / 3.5;
  }

  .studio-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .studio-filmstrip {
    border-left: none;
    border-top: 1px solid var(--border-hairline);
  }

  .filmstrip-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .filmstrip-item {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .container,
  .site-header-inner,
  .hero-content {
    padding: 0 16px;
  }

  .site-header {
    height: 58px;
  }

  .brand-text span {
    display: none;
  }

  .site-actions .btn {
    padding: 0 14px;
    min-height: 36px;
    font-size: 13px;
  }

  .hero-section {
    height: auto;
    min-height: 0;
    padding: 58px 0 42px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-backdrop {
    position: relative;
    height: 240px;
    margin-bottom: -14px;
  }

  .hero-backdrop img {
    width: 100%;
    height: 100%;
    object-position: center 42%;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(7, 8, 10, 0.14) 0%,
      rgba(7, 8, 10, 0.56) 56%,
      #07080a 88%,
      #07080a 100%
    );
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 22px;
  }

  .hero-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 26px;
  }

  .hero-cta-row .btn-lg {
    padding: 0 12px;
    min-height: 44px;
    font-size: 14px;
  }

  .hero-facts {
    gap: 10px;
    padding-top: 18px;
  }

  .hero-fact strong {
    font-size: 14px;
  }

  .hero-fact span {
    font-size: 11px;
  }

  .hero-caption {
    display: none;
  }

  .section-band {
    padding: 58px 0;
  }

  .gallery-card,
  .gallery-card.is-hero-wide,
  .gallery-card.is-hero-side {
    grid-column: span 12;
  }

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

  .master-card-body {
    padding: 10px 12px 12px;
  }

  .master-card-top {
    flex-direction: column;
    gap: 2px;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Compact 2-Row Mobile Workspace Header (~90px total) */
  .ws-header-row-top {
    height: 48px;
    padding: 0 12px;
  }

  .ws-tabs-desktop,
  .user-label-text {
    display: none;
  }

  .ws-tabs-mobile {
    display: flex;
    padding: 0 12px 8px;
    gap: 6px;
    overflow-x: auto;
  }

  .ws-tabs-mobile .ws-tab {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
    font-size: 13px;
  }

  .demo-banner {
    padding: 6px 12px;
    font-size: 11.5px;
    justify-content: space-between;
  }

  .ws-panel-studio {
    flex: 1 0 auto;
    height: auto;
    min-height: calc(100vh - 96px);
    overflow: visible;
  }

  .studio-mode-bar {
    padding: 12px 12px 0;
  }

  .canvas-viewport {
    padding: 16px 14px 12px;
    min-height: 240px;
  }

  .upload-dropzone {
    padding: 24px 16px;
  }

  .composer-anchor {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 8px 10px 14px;
  }

  .dock-style-info span {
    display: none;
  }

  .dock-ratio-group {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

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

  .composer-input-row textarea {
    min-height: 76px;
  }

  .composer-submit-btn {
    min-height: 44px;
    width: 100%;
  }

  .inline-mint-form {
    width: 100%;
  }

  .inline-mint-form input {
    flex: 1;
    width: auto;
  }

  .toast-region {
    top: 102px;
  }

  .toast {
    white-space: normal;
    text-align: center;
  }
}

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