/* STUDIO50VIP Experience System v1.6.13
   Canonical tokens and components. Raw palette values live only in this layer. */
:root {
  color-scheme: dark;
  --s50-black-950: #07080b;
  --s50-black-900: #0b0d12;
  --s50-graphite-900: #0e1117;
  --s50-graphite-850: #11141b;
  --s50-graphite-800: #171a22;
  --s50-graphite-750: #1d212b;
  --s50-graphite-700: #242833;
  --s50-neutral-600: #5f6673;
  --s50-neutral-500: #747b89;
  --s50-neutral-400: #9299a5;
  --s50-neutral-300: #b8bec8;
  --s50-neutral-200: #d4d8de;
  --s50-neutral-100: #eceff3;
  --s50-ivory-50: #f8f6f0;
  --s50-gold-700: #8d6820;
  --s50-gold-600: #a77c28;
  --s50-gold-500: #c79b3b;
  --s50-gold-400: #d9b85e;
  --s50-gold-300: #e8cd86;
  --s50-chrome-500: #aab2be;
  --s50-chrome-300: #d1d7de;
  --s50-chrome-100: #f0f3f6;
  --s50-success-500: #4fa978;
  --s50-warning-500: #d6a84b;
  --s50-danger-500: #c96868;
  --s50-info-500: #6598c7;

  --color-bg-primary: var(--s50-black-950);
  --color-bg-secondary: var(--s50-black-900);
  --color-surface-base: var(--s50-graphite-850);
  --color-surface-elevated: var(--s50-graphite-800);
  --color-surface-strong: var(--s50-graphite-750);
  --color-surface-muted: var(--s50-graphite-900);
  --color-surface-glass: rgba(17, 20, 27, .82);
  --color-text-primary: var(--s50-ivory-50);
  --color-text-secondary: var(--s50-neutral-300);
  --color-text-muted: var(--s50-neutral-500);
  --color-accent-primary: var(--s50-gold-400);
  --color-accent-soft: var(--s50-gold-300);
  --color-accent-strong: var(--s50-gold-500);
  --color-accent-ink: #1b1508;
  --color-border-subtle: rgba(255, 255, 255, .075);
  --color-border-default: rgba(255, 255, 255, .12);
  --color-border-strong: rgba(232, 205, 134, .28);
  --color-focus: var(--s50-gold-300);
  --color-overlay: rgba(3, 4, 7, .72);
  --color-success: var(--s50-success-500);
  --color-warning: var(--s50-warning-500);
  --color-danger: var(--s50-danger-500);
  --color-info: var(--s50-info-500);

  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-size-caption: .75rem;
  --font-size-label: .8125rem;
  --font-size-body-sm: .875rem;
  --font-size-body: 1rem;
  --font-size-body-lg: 1.125rem;
  --font-size-heading-sm: 1.125rem;
  --font-size-heading-md: 1.5rem;
  --font-size-heading-lg: clamp(2rem, 4vw, 3.35rem);
  --font-size-display: clamp(3.5rem, 8vw, 8rem);

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .18);
  --shadow-md: 0 22px 60px rgba(0, 0, 0, .28);
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, .42);
  --shadow-focus: 0 0 0 3px rgba(232, 205, 134, .26);
  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-normal: 220ms;
  --motion-medium: 340ms;
  --easing-standard: cubic-bezier(.2, .75, .2, 1);
  --sidebar-width: 304px;
  --content-width: 1360px;
  --topbar-height: 74px;
}

:root[data-studio-density="compact"] {
  --space-6: 1.1rem;
  --space-8: 1.5rem;
  --space-10: 2rem;
  --topbar-height: 66px;
}

:root[data-contrast="high"] {
  --color-text-secondary: var(--s50-neutral-100);
  --color-text-muted: var(--s50-neutral-300);
  --color-border-subtle: rgba(255, 255, 255, .16);
  --color-border-default: rgba(255, 255, 255, .24);
}

html { background: var(--color-bg-primary); }
body { font-family: var(--font-ui); background: var(--color-bg-primary); color: var(--color-text-primary); }
:where(a, button, input, select, textarea):focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* App atmosphere */
.studio-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: linear-gradient(145deg, var(--color-bg-primary), var(--color-bg-secondary) 55%, var(--s50-graphite-900)); }
.atmosphere-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .18; }
.atmosphere-glow-gold { width: 32rem; height: 32rem; right: -10rem; top: -14rem; background: var(--color-accent-primary); }
.atmosphere-glow-chrome { width: 26rem; height: 26rem; left: 16%; bottom: -18rem; background: var(--s50-chrome-500); opacity: .07; }
.atmosphere-grid { position: absolute; inset: 0; opacity: .022; background-image: linear-gradient(var(--s50-chrome-300) 1px, transparent 1px), linear-gradient(90deg, var(--s50-chrome-300) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, black 25%, black 70%, transparent); }

/* Canonical shell */
.studio-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.studio-sidebar { position: sticky; top: 0; z-index: 70; display: flex; flex-direction: column; height: 100vh; padding: var(--space-5); border-right: 1px solid var(--color-border-subtle); background: rgba(8, 10, 14, .92); backdrop-filter: blur(28px) saturate(115%); box-shadow: 18px 0 60px rgba(0, 0, 0, .16); }
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.brand-emblem { position: relative; display: grid; width: 42px; aspect-ratio: 1; place-items: center; overflow: hidden; border: 1px solid rgba(232, 205, 134, .38); border-radius: 50%; color: var(--color-accent-soft); background: radial-gradient(circle at 36% 30%, rgba(255,255,255,.24), transparent 15%), radial-gradient(circle, rgba(217,184,94,.14), transparent 72%), var(--color-surface-base); box-shadow: inset 0 0 0 5px rgba(255,255,255,.025), 0 10px 34px rgba(0,0,0,.24); }
.brand-emblem::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(232,205,134,.2); border-radius: inherit; }
.brand-emblem span { position: relative; z-index: 1; font-size: .84rem; font-weight: 950; letter-spacing: -.06em; }
.brand-wordmark, .brand-copy { display: grid; line-height: 1; }
.brand-wordmark strong, .brand-copy strong { font-size: .86rem; letter-spacing: .13em; }
.brand-wordmark small, .brand-copy small { margin-top: .3rem; color: var(--color-text-muted); font-size: .62rem; font-weight: 800; letter-spacing: .11em; }

.event-switcher { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: .75rem; align-items: center; width: 100%; margin: var(--space-7) 0 var(--space-6); padding: .8rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); color: var(--color-text-primary); text-align: left; background: linear-gradient(145deg, rgba(217,184,94,.07), transparent 55%), var(--color-surface-muted); cursor: pointer; transition: border-color var(--motion-fast), transform var(--motion-fast), background var(--motion-fast); }
.event-switcher:hover { border-color: var(--color-border-strong); transform: translateY(-1px); background: linear-gradient(145deg, rgba(217,184,94,.11), transparent 58%), var(--color-surface-base); }
.event-switcher-art { position: relative; display: grid; width: 38px; aspect-ratio: 1; place-items: center; border-radius: 12px; background: radial-gradient(circle, var(--color-accent-soft) 0 1px, transparent 1.5px); background-size: 7px 7px; box-shadow: inset 0 0 20px rgba(232,205,134,.18); }
.event-switcher-art i { width: 15px; height: 15px; border-radius: 50%; background: var(--color-accent-primary); box-shadow: 0 0 18px rgba(217,184,94,.5); }
.event-switcher-copy { display: grid; min-width: 0; }
.event-switcher-copy small { color: var(--color-text-muted); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-switcher-copy strong { overflow: hidden; margin: .2rem 0; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.event-switcher-copy span { color: var(--color-text-secondary); font-size: .72rem; }

.sidebar-navigation { display: grid; gap: .35rem; }
.navigation-caption { padding: 0 .75rem .45rem; color: var(--color-text-muted); font-size: .64rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.navigation-item { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 3px; gap: .75rem; align-items: center; min-height: 58px; padding: .55rem .65rem; border: 1px solid transparent; border-radius: var(--radius-md); color: var(--color-text-secondary); text-decoration: none; transition: color var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast); }
.navigation-item:hover { color: var(--color-text-primary); background: rgba(255,255,255,.035); transform: translateX(2px); }
.navigation-item[aria-current="page"] { color: var(--color-text-primary); border-color: rgba(232,205,134,.12); background: linear-gradient(90deg, rgba(217,184,94,.10), rgba(217,184,94,.025)); }
.navigation-icon { display: grid; width: 38px; aspect-ratio: 1; place-items: center; border-radius: 12px; color: var(--color-text-muted); background: rgba(255,255,255,.025); }
.navigation-item[aria-current="page"] .navigation-icon { color: var(--color-accent-soft); background: rgba(217,184,94,.10); }
.navigation-copy { display: grid; gap: .18rem; min-width: 0; }
.navigation-copy strong { font-size: .9rem; }
.navigation-copy small { overflow: hidden; color: var(--color-text-muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.navigation-current { width: 3px; height: 22px; border-radius: var(--radius-pill); background: transparent; }
.navigation-item[aria-current="page"] .navigation-current { background: var(--color-accent-primary); box-shadow: 0 0 14px rgba(217,184,94,.45); }

.sidebar-utility { display: grid; gap: .55rem; margin-top: auto; padding-top: var(--space-5); }
.command-trigger, .utility-link { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: .7rem; align-items: center; width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); color: var(--color-text-secondary); text-decoration: none; background: rgba(255,255,255,.018); cursor: pointer; }
.command-trigger { grid-template-columns: 22px minmax(0, 1fr) auto; text-align: left; }
.command-trigger:hover, .utility-link:hover { border-color: var(--color-border-default); color: var(--color-text-primary); background: rgba(255,255,255,.035); }
.command-trigger span { font-size: .8rem; font-weight: 750; }
kbd { display: inline-flex; min-width: 1.55rem; min-height: 1.45rem; align-items: center; justify-content: center; padding: .15rem .4rem; border: 1px solid var(--color-border-default); border-bottom-color: rgba(255,255,255,.22); border-radius: 6px; color: var(--color-text-muted); font-family: var(--font-ui); font-size: .62rem; line-height: 1; background: var(--color-surface-muted); box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.utility-link span { display: grid; gap: .1rem; }
.utility-link strong { font-size: .78rem; }
.utility-link small { color: var(--color-text-muted); font-size: .66rem; }
.system-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 12px rgba(79,169,120,.5); }
.sidebar-account { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: .7rem; align-items: center; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border-subtle); }
.profile-avatar { display: grid; width: 38px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(232,205,134,.2); border-radius: 50%; color: var(--color-accent-soft); font-weight: 900; background: rgba(217,184,94,.08); }
.profile-copy { display: grid; min-width: 0; }
.profile-copy strong { overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { color: var(--color-text-muted); font-size: .68rem; }

.studio-workspace { min-width: 0; }
.studio-topbar { position: sticky; top: 0; z-index: 50; display: flex; min-height: var(--topbar-height); align-items: center; justify-content: space-between; padding: 0 clamp(1rem, 3vw, 2.6rem); border-bottom: 1px solid var(--color-border-subtle); background: rgba(7,8,11,.76); backdrop-filter: blur(24px) saturate(120%); }
.topbar-leading, .topbar-actions { display: flex; align-items: center; gap: .75rem; }
.topbar-context { display: grid; gap: .08rem; }
.topbar-context span { color: var(--color-text-muted); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.topbar-context strong { font-size: .94rem; }
.topbar-search, .public-preview-link { display: inline-flex; min-height: 40px; align-items: center; gap: .55rem; padding: 0 .8rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); color: var(--color-text-secondary); text-decoration: none; background: rgba(255,255,255,.018); }
.topbar-search { cursor: pointer; }
.topbar-search:hover, .public-preview-link:hover { color: var(--color-text-primary); border-color: var(--color-border-default); background: rgba(255,255,255,.04); }
.topbar-search span, .public-preview-link span { font-size: .78rem; font-weight: 750; }
.mobile-menu { display: none; }

.workspace-content { width: min(var(--content-width), calc(100% - clamp(2rem, 6vw, 5rem))); margin: 0 auto; padding: var(--space-5) 0 2rem; }
.breadcrumbs { display: flex; align-items: center; gap: .35rem; min-height: 28px; margin-bottom: var(--space-5); color: var(--color-text-muted); font-size: .72rem; }
.breadcrumbs a { color: var(--color-text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent-soft); }
.app-footer { border-top: 1px solid var(--color-border-subtle); color: var(--color-text-muted); }

/* Shared component refinement */
.page-header { align-items: end; margin-bottom: var(--space-8); }
.page-title { max-width: 18ch; font-family: var(--font-display); font-size: var(--font-size-heading-lg); font-weight: 500; line-height: .96; letter-spacing: -.045em; }
.page-subtitle { max-width: 68ch; color: var(--color-text-secondary); line-height: 1.7; }
.eyebrow { color: var(--color-accent-primary); font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.button { border-radius: 12px; background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent-primary)); color: var(--color-accent-ink); box-shadow: 0 10px 30px rgba(217,184,94,.13); }
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(217,184,94,.18); }
.button.secondary, .button.ghost { border: 1px solid var(--color-border-default); color: var(--color-text-primary); background: rgba(255,255,255,.025); box-shadow: none; }
.panel, .card { border-color: var(--color-border-subtle); background: linear-gradient(160deg, rgba(255,255,255,.03), transparent 42%), var(--color-surface-base); box-shadow: var(--shadow-sm); }
.flash, .errors { border-radius: var(--radius-md); }
.icon-button { border-color: var(--color-border-subtle); color: var(--color-text-secondary); background: rgba(255,255,255,.02); }
.icon-button:hover { color: var(--color-text-primary); border-color: var(--color-border-default); }

/* Theme Studio */
.theme-studio { padding-bottom: 7rem; }
.theme-studio-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.theme-controls { display: grid; gap: var(--space-8); }
.experience-section { padding: var(--space-6); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-lg); background: linear-gradient(155deg, rgba(255,255,255,.025), transparent 38%), rgba(14,17,23,.74); }
.compact-heading { margin-bottom: var(--space-5); }
.compact-heading h2 { margin: .3rem 0 0; font-size: 1.35rem; }
.section-note { color: var(--color-text-muted); font-size: .72rem; }
.theme-profile-grid { display: grid; gap: .75rem; }
.theme-profile-card { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr) 28px; gap: 1rem; align-items: center; min-height: 104px; padding: .85rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: rgba(255,255,255,.018); cursor: pointer; transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast); }
.theme-profile-card:hover { border-color: var(--color-border-default); transform: translateY(-1px); }
.theme-profile-card:has(input:checked) { border-color: var(--color-border-strong); background: linear-gradient(90deg, rgba(217,184,94,.08), rgba(255,255,255,.018)); }
.theme-profile-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-profile-card:has(input:focus-visible) { box-shadow: var(--shadow-focus); }
.theme-profile-visual { position: relative; display: grid; width: 86px; height: 72px; place-items: center; overflow: hidden; border: 1px solid var(--color-border-subtle); border-radius: 14px; background: var(--color-bg-primary); }
.theme-profile-visual::before { content: ""; position: absolute; width: 70px; height: 140px; top: -65px; right: -8px; transform: rotate(28deg); background: linear-gradient(to bottom, rgba(232,205,134,.38), transparent); filter: blur(8px); }
.theme-profile-visual i { position: absolute; right: 8px; bottom: 8px; width: 31px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--s50-chrome-100) 0 1px, var(--s50-graphite-700) 1.5px 3px); background-size: 6px 6px; box-shadow: 0 0 18px rgba(232,205,134,.18); }
.theme-profile-visual b { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; color: var(--color-accent-soft); }
.theme-profile-visual-quiet { opacity: .72; }
.theme-profile-visual-cinematic::before { opacity: 1; width: 95px; }
.theme-profile-visual-cinematic i { width: 38px; }
.theme-profile-copy { display: grid; gap: .35rem; }
.theme-profile-copy strong { font-size: .95rem; }
.theme-profile-copy small { color: var(--color-text-muted); font-size: .78rem; line-height: 1.55; }
.theme-profile-check { display: grid; width: 24px; aspect-ratio: 1; place-items: center; border: 1px solid var(--color-border-default); border-radius: 50%; color: transparent; }
.theme-profile-card:has(input:checked) .theme-profile-check { border-color: var(--color-accent-primary); color: var(--color-accent-ink); background: var(--color-accent-primary); }
.setting-list { display: grid; gap: .8rem; }
.segmented-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin: 0; padding: 1rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: rgba(255,255,255,.015); }
.segmented-setting legend { display: contents; }
.segmented-setting legend strong, .segmented-setting legend span { grid-column: 1; }
.segmented-setting legend strong { font-size: .88rem; }
.segmented-setting legend span { color: var(--color-text-muted); font-size: .74rem; line-height: 1.45; }
.segmented-control { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: .25rem; padding: .25rem; border: 1px solid var(--color-border-subtle); border-radius: 12px; background: var(--color-bg-primary); }
.segmented-control.segmented-three { grid-template-columns: repeat(3, minmax(78px, 1fr)); }
.segmented-control label { position: relative; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: grid; min-height: 36px; place-items: center; padding: .4rem .7rem; border-radius: 9px; color: var(--color-text-muted); font-size: .72rem; font-weight: 800; cursor: pointer; }
.segmented-control input:checked + span { color: var(--color-text-primary); background: var(--color-surface-strong); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.segmented-control input:focus-visible + span { box-shadow: var(--shadow-focus); }
.theme-preview-sticky { position: sticky; top: calc(var(--topbar-height) + 1.5rem); display: grid; gap: .75rem; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 .2rem; }
.preview-toolbar span { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 850; }
.preview-toolbar span i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 12px rgba(79,169,120,.45); }
.preview-toolbar small { color: var(--color-text-muted); font-size: .66rem; }
.theme-preview { position: relative; min-height: 580px; overflow: hidden; border: 1px solid var(--color-border-default); border-radius: 30px; background: linear-gradient(145deg, var(--color-bg-primary), var(--s50-graphite-850)); box-shadow: var(--shadow-lg); isolation: isolate; }
.preview-scene { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.preview-scene span { position: absolute; width: 280px; aspect-ratio: 1; right: -78px; top: 75px; border-radius: 50%; opacity: .38; background: radial-gradient(circle, var(--s50-chrome-100) 0 1px, rgba(36,40,51,.1) 1.5px 4px); background-size: 9px 9px; mask-image: radial-gradient(circle, black 0 60%, transparent 74%); }
.preview-scene i { position: absolute; width: 170px; height: 620px; top: -180px; left: 55%; transform: rotate(20deg); background: linear-gradient(to bottom, rgba(232,205,134,.28), transparent 74%); filter: blur(15px); }
.preview-header { display: flex; align-items: center; justify-content: space-between; padding: 1.35rem; border-bottom: 1px solid var(--color-border-subtle); }
.preview-brand { font-size: .72rem; font-weight: 950; letter-spacing: .13em; }
.preview-pill { padding: .3rem .5rem; border: 1px solid rgba(232,205,134,.25); border-radius: var(--radius-pill); color: var(--color-accent-soft); font-size: .6rem; font-weight: 900; }
.preview-content { display: flex; min-height: 430px; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem; }
.preview-kicker { color: var(--color-accent-primary); font-size: .64rem; font-weight: 900; letter-spacing: .14em; }
.preview-content h3 { margin: .4rem 0 1rem; font-family: var(--font-display); font-size: clamp(2.8rem, 5.3vw, 5rem); font-weight: 500; line-height: .82; letter-spacing: -.06em; }
.preview-content h3 em { color: var(--color-accent-soft); font-weight: 500; }
.preview-content p { max-width: 34ch; color: var(--color-text-secondary); font-size: .86rem; line-height: 1.65; }
.preview-button { display: inline-flex; margin-top: .7rem; padding: .8rem 1rem; border-radius: 11px; color: var(--color-accent-ink); font-size: .72rem; font-weight: 900; background: linear-gradient(135deg, var(--color-accent-soft), var(--color-accent-primary)); }
.preview-metrics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--color-border-subtle); background: rgba(255,255,255,.018); }
.preview-metrics span { display: grid; gap: .1rem; padding: 1rem 1.35rem; }
.preview-metrics span + span { border-left: 1px solid var(--color-border-subtle); }
.preview-metrics strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.preview-metrics small { color: var(--color-text-muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.theme-contract-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .7rem; align-items: center; padding: .85rem; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); color: var(--color-text-secondary); background: rgba(255,255,255,.018); }
.theme-contract-note > .icon { color: var(--color-accent-primary); }
.theme-contract-note span { display: grid; }
.theme-contract-note strong { font-size: .75rem; }
.theme-contract-note small { color: var(--color-text-muted); font-size: .68rem; line-height: 1.45; }
.sticky-save-bar { position: fixed; z-index: 45; right: clamp(1rem, 3vw, 2.6rem); bottom: 1.2rem; left: calc(var(--sidebar-width) + clamp(1rem, 3vw, 2.6rem)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .85rem .8rem 1.1rem; border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); background: rgba(14,17,23,.9); backdrop-filter: blur(24px) saturate(120%); box-shadow: var(--shadow-md); }
.sticky-save-bar > div { display: grid; }
.sticky-save-bar strong { font-size: .82rem; }
.sticky-save-bar span { color: var(--color-text-muted); font-size: .7rem; }

/* Command palette */
.command-palette { position: fixed; inset: 0; z-index: 180; display: grid; place-items: start center; padding-top: min(12vh, 110px); }
.command-palette[hidden] { display: none; }
.command-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: var(--color-overlay); backdrop-filter: blur(9px); }
.command-dialog { position: relative; width: min(680px, calc(100% - 2rem)); overflow: hidden; border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); background: rgba(14,17,23,.96); box-shadow: var(--shadow-lg); }
.command-search-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: .7rem; align-items: center; min-height: 66px; padding: 0 1rem; border-bottom: 1px solid var(--color-border-subtle); }
.command-search-row > .icon { color: var(--color-text-muted); }
.command-search-row input { width: 100%; border: 0; outline: 0; color: var(--color-text-primary); font-size: 1rem; background: transparent; box-shadow: none; }
.command-content { max-height: min(58vh, 520px); overflow: auto; padding: .75rem; }
.command-section-label { padding: .45rem .6rem .6rem; color: var(--color-text-muted); font-size: .65rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.command-results { display: grid; gap: .25rem; }
.command-results a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: .75rem; align-items: center; min-height: 58px; padding: .55rem .65rem; border: 1px solid transparent; border-radius: 12px; color: var(--color-text-secondary); text-decoration: none; }
.command-results a:hover, .command-results a.is-active { border-color: rgba(232,205,134,.12); color: var(--color-text-primary); background: rgba(217,184,94,.07); }
.command-result-icon { display: grid; width: 40px; aspect-ratio: 1; place-items: center; border-radius: 11px; color: var(--color-accent-soft); background: rgba(217,184,94,.08); }
.command-results a > span:nth-child(2) { display: grid; gap: .18rem; }
.command-results strong { font-size: .85rem; }
.command-results small { color: var(--color-text-muted); font-size: .72rem; }
.command-empty { display: grid; min-height: 150px; place-content: center; text-align: center; }
.command-empty span { color: var(--color-text-muted); font-size: .8rem; }
.command-footer { display: flex; gap: 1rem; padding: .65rem 1rem; border-top: 1px solid var(--color-border-subtle); color: var(--color-text-muted); font-size: .65rem; background: rgba(255,255,255,.012); }
.command-footer span { display: inline-flex; align-items: center; gap: .3rem; }

.mobile-bottom-navigation { display: none; }

/* Public intensity profiles */
:root[data-public-intensity="quiet"] .guest-mirrorball,
:root[data-public-intensity="quiet"] .guest-light { opacity: .08; }
:root[data-public-intensity="quiet"] .landing-hero::after { opacity: .35; }
:root[data-public-intensity="cinematic"] .guest-mirrorball { opacity: .42; transform: scale(1.08); }
:root[data-public-intensity="cinematic"] .guest-light { opacity: .16; }
:root[data-public-intensity="cinematic"] .landing-hero h1 { text-shadow: 0 24px 90px rgba(0,0,0,.38); }
:root[data-motion="reduced"] .guest-mirrorball,
:root[data-motion="reduced"] .ambient-beam,
:root[data-motion="reduced"] .ambient-orb { animation: none !important; }

@media (max-width: 1120px) {
  :root { --sidebar-width: 276px; }
  .theme-studio-layout { grid-template-columns: 1fr; }
  .theme-preview-sticky { position: relative; top: auto; }
  .theme-preview { min-height: 500px; }
}

@media (max-width: 860px) {
  :root { --topbar-height: 66px; }
  .studio-shell { display: block; }
  .studio-sidebar { position: fixed; inset: 0 auto 0 0; width: min(330px, calc(100% - 42px)); height: 100dvh; transform: translateX(-105%); transition: transform var(--motion-normal) var(--easing-standard); box-shadow: var(--shadow-lg); }
  .studio-shell.sidebar-open .studio-sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 65; display: block; border: 0; background: var(--color-overlay); opacity: 0; pointer-events: none; transition: opacity var(--motion-normal); }
  .studio-shell.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .sidebar-close, .mobile-menu { display: inline-grid; }
  .workspace-content { width: min(100% - 1.5rem, var(--content-width)); padding-bottom: 7rem; }
  .topbar-search { width: 40px; justify-content: center; padding: 0; }
  .topbar-search span, .topbar-search kbd, .public-preview-link span { display: none; }
  .public-preview-link { width: 40px; justify-content: center; padding: 0; }
  .breadcrumbs { margin-bottom: 1rem; }
  .mobile-bottom-navigation { position: fixed; right: .6rem; bottom: max(.6rem, env(safe-area-inset-bottom)); left: .6rem; z-index: 55; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 64px; padding: .35rem; border: 1px solid var(--color-border-default); border-radius: 20px; background: rgba(11,13,18,.92); backdrop-filter: blur(24px) saturate(130%); box-shadow: var(--shadow-md); }
  .mobile-bottom-navigation a, .mobile-bottom-navigation button { display: grid; place-items: center; gap: .15rem; border: 0; border-radius: 14px; color: var(--color-text-muted); text-decoration: none; background: transparent; }
  .mobile-bottom-navigation a[aria-current="page"] { color: var(--color-accent-soft); background: rgba(217,184,94,.08); }
  .mobile-bottom-navigation span { font-size: .59rem; font-weight: 780; }
  .mobile-bottom-navigation .icon { width: 19px; height: 19px; }
  .sticky-save-bar { right: .7rem; bottom: 5.4rem; left: .7rem; }
}

@media (max-width: 680px) {
  .workspace-content { width: min(100% - 1rem, var(--content-width)); }
  .studio-topbar { padding: 0 .75rem; }
  .topbar-context span { display: none; }
  .page-header { align-items: stretch; }
  .page-actions { width: 100%; }
  .page-actions .button { width: 100%; }
  .experience-section { padding: 1rem; border-radius: 18px; }
  .theme-profile-card { grid-template-columns: 68px minmax(0,1fr) 24px; gap: .75rem; min-height: 92px; }
  .theme-profile-visual { width: 68px; height: 60px; }
  .segmented-setting { grid-template-columns: 1fr; }
  .segmented-control { width: 100%; }
  .preview-toolbar small { display: none; }
  .theme-preview { min-height: 470px; }
  .preview-content { min-height: 360px; padding: 1.4rem; }
  .preview-content h3 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .sticky-save-bar > div { display: none; }
  .sticky-save-bar .button { width: 100%; }
  .command-palette { padding-top: 1rem; align-items: start; }
  .command-dialog { width: calc(100% - 1rem); }
  .command-footer { display: none; }
}

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

/* Native progress components replace dynamic inline styles. */
.response-orbit, .readiness-ring { position: relative; display: grid; place-items: center; }
.response-orbit progress, .readiness-ring progress { position: absolute; inset: 0; width: 100%; height: 100%; appearance: none; border: 0; border-radius: 50%; background: transparent; }
.response-orbit progress::-webkit-progress-bar, .readiness-ring progress::-webkit-progress-bar { border-radius: 50%; background: radial-gradient(circle, transparent 55%, rgba(255,255,255,.06) 57% 62%, transparent 64%); }
.response-orbit progress::-webkit-progress-value, .readiness-ring progress::-webkit-progress-value { background: transparent; }
.response-orbit::before, .readiness-ring::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--color-border-strong); border-radius: 50%; box-shadow: inset 0 0 35px rgba(217,184,94,.08), 0 0 40px rgba(0,0,0,.2); }
.mini-progress, .progress-track { display: block; width: 100%; height: 5px; overflow: hidden; appearance: none; border: 0; border-radius: var(--radius-pill); background: rgba(255,255,255,.06); }
.mini-progress::-webkit-progress-bar, .progress-track::-webkit-progress-bar { background: rgba(255,255,255,.06); border-radius: inherit; }
.mini-progress::-webkit-progress-value, .progress-track::-webkit-progress-value { border-radius: inherit; background: linear-gradient(90deg, var(--color-accent-strong), var(--color-accent-soft)); }
.mini-progress::-moz-progress-bar, .progress-track::-moz-progress-bar { border-radius: inherit; background: linear-gradient(90deg, var(--color-accent-strong), var(--color-accent-soft)); }

/* 1.6.15 — Velvet Premiere Theme Studio */
.theme-studio-premiere .theme-controls{display:grid;gap:18px}.theme-studio-premiere .experience-section{background:linear-gradient(145deg,rgba(128,9,24,.11),transparent 38%),var(--surface)}
.theme-studio-premiere .theme-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-studio-premiere .theme-profile-card-velvet-premiere{grid-column:1/-1;min-height:180px;border-color:rgba(232,185,79,.48);background:radial-gradient(circle at 50% 15%,rgba(239,186,70,.16),transparent 32%),linear-gradient(115deg,rgba(114,7,20,.42),rgba(4,4,4,.92) 35% 65%,rgba(114,7,20,.42))}.theme-studio-premiere .theme-profile-card-velvet-premiere .theme-profile-visual{width:150px;height:116px;background:linear-gradient(90deg,#6f0712 0 20%,#0a0806 35% 65%,#6f0712 80%);border-color:#b67d26}.theme-studio-premiere .theme-profile-card-velvet-premiere .theme-profile-visual:before,.theme-studio-premiere .theme-profile-card-velvet-premiere .theme-profile-visual:after{content:"";position:absolute;inset:0 auto 0 0;width:35%;background:repeating-linear-gradient(90deg,#370108 0 7px,#8d1020 12px,#360107 23px);clip-path:polygon(0 0,100% 0,58% 100%,0 100%)}.theme-studio-premiere .theme-profile-card-velvet-premiere .theme-profile-visual:after{left:auto;right:0;transform:scaleX(-1)}.theme-studio-premiere .theme-profile-card-velvet-premiere .theme-profile-visual b{font-size:2.8rem;color:transparent;-webkit-text-stroke:1px #e7b94f;z-index:2}.theme-studio-premiere .theme-profile-card-velvet-premiere .theme-profile-visual i{position:absolute;width:48px;aspect-ratio:1;border-radius:50%;top:-10px;left:19px;background:repeating-linear-gradient(0deg,#d59b32 0 3px,#ffe493 3px 6px);box-shadow:0 0 20px rgba(237,181,61,.55);z-index:3}.theme-system-contract .contract-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.contract-grid article{display:grid;gap:8px;padding:18px;border:1px solid var(--border-soft);border-radius:16px;background:var(--surface-soft)}.contract-grid svg{color:var(--accent)}.contract-grid span{color:var(--muted);font-size:.78rem;line-height:1.5}
.velvet-preview{position:relative;overflow:hidden;min-height:620px;padding:20px;background:radial-gradient(circle at 50% 15%,rgba(255,194,69,.2),transparent 27%),#050302;color:#f7e9c4;border-color:rgba(231,185,79,.45)}.velvet-preview .preview-curtain{position:absolute;z-index:1;top:0;bottom:0;width:23%;background:repeating-linear-gradient(90deg,#350108 0 8px,#8c0d20 15px,#310106 29px)}.velvet-preview .preview-curtain.left{left:0;clip-path:polygon(0 0,100% 0,54% 100%,0 100%)}.velvet-preview .preview-curtain.right{right:0;clip-path:polygon(0 0,100% 0,100% 100%,46% 100%)}.velvet-preview .preview-ball{position:absolute;z-index:2;top:-28px;left:15%;width:92px;aspect-ratio:1;border-radius:50%;background:repeating-linear-gradient(0deg,#bc811f 0 4px,#f9dd82 5px 8px);box-shadow:0 0 25px rgba(249,195,67,.5)}.velvet-preview .preview-beads{position:absolute;inset:70px 16% 35%;opacity:.25;background:repeating-linear-gradient(90deg,transparent 0 12px,#e1b047 13px 14px,transparent 15px 19px)}.velvet-preview header,.velvet-preview main,.velvet-preview footer{position:relative;z-index:4}.velvet-preview header{display:flex;justify-content:space-between;padding-bottom:14px;border-bottom:1px solid rgba(231,185,79,.28);font-family:Georgia}.velvet-preview header b{color:#e7b94f}.velvet-preview header small{font:600 .47rem system-ui;letter-spacing:.14em;color:#c6a25d}.velvet-preview main{text-align:center;padding:75px 20px 35px}.velvet-preview main>p{margin:0;color:#decda9}.velvet-preview h3{margin:8px 0 12px;font:400 clamp(3rem,7vw,5.5rem)/.82 Arial;color:transparent;-webkit-text-stroke:1px #e7b94f;letter-spacing:-.06em}.velvet-preview h3 span{background:repeating-linear-gradient(90deg,#e7b94f 0 2px,transparent 2px 6px);-webkit-background-clip:text;background-clip:text;-webkit-text-stroke:0}.velvet-preview main>small{text-transform:uppercase;letter-spacing:.15em;color:#c99d41}.velvet-preview h4{margin:13px 0 0;font:500 1.8rem Georgia;text-transform:uppercase;color:#e4bd67}.velvet-preview em{display:block;margin-top:4px;font:italic 1.1rem Georgia;color:#e9b73a}.preview-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:30px auto 17px;max-width:420px}.preview-facts span{padding:9px 4px;border-block:1px solid rgba(231,185,79,.26);font-size:.54rem}.preview-actions{display:flex;justify-content:center;gap:7px}.preview-actions>*{padding:10px 15px;border:1px solid rgba(231,185,79,.65);border-radius:10px;font-size:.52rem}.preview-actions b{background:linear-gradient(#85510b,#3c1801);box-shadow:0 0 15px rgba(231,185,79,.25)}.velvet-preview footer{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:18px}.velvet-preview footer span{padding:16px 5px;border:1px solid rgba(231,185,79,.25);border-radius:10px;text-align:center;font-size:.52rem;color:#d2ac5e;background:rgba(0,0,0,.55)}
html[data-public-intensity="quiet"] .velvet-preview .preview-beads{opacity:.09}html[data-motion="expressive"] .velvet-preview .preview-ball{animation:preview-glow 3.5s ease-in-out infinite}@keyframes preview-glow{50%{filter:brightness(1.25);box-shadow:0 0 42px rgba(249,195,67,.72)}}
@media(max-width:800px){.theme-studio-premiere .theme-profile-grid{grid-template-columns:1fr}.theme-studio-premiere .theme-profile-card-velvet-premiere{grid-column:auto}.theme-system-contract .contract-grid{grid-template-columns:1fr}.velvet-preview{min-height:540px}.velvet-preview main{padding-top:60px}.preview-facts{grid-template-columns:1fr}.preview-actions{flex-direction:column}}
