@charset "UTF-8";

:root {
    --bg: #f4f4f0;
    --surface: #ffffff;
    --surface-2: #eeeeea;
    --surface-3: #e3e3dd;
    --text: #171816;
    --muted: #6b6d68;
    --muted-2: #92958f;
    --border: #dedfd9;
    --border-strong: #c7c9c2;
    --ink: #141512;
    --accent: #c8f36b;
    --accent-strong: #9fda20;
    --accent-soft: #edffd0;
    --success: #247a45;
    --success-soft: #e8f7ed;
    --error: #b43632;
    --error-soft: #fff0ed;
    --warning: #9a6111;
    --warning-soft: #fff6dc;
    --shadow-sm: 0 1px 2px rgba(15, 17, 14, .04), 0 8px 28px rgba(15, 17, 14, .035);
    --shadow-lg: 0 32px 100px rgba(12, 14, 11, .22);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --sidebar-width: 256px;
    --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg: #10110f;
    --surface: #171816;
    --surface-2: #1d1f1c;
    --surface-3: #252723;
    --text: #f3f4ef;
    --muted: #a2a59e;
    --muted-2: #777a74;
    --border: #2a2d28;
    --border-strong: #3d403a;
    --ink: #f1f2ed;
    --accent: #c8f36b;
    --accent-soft: #26321a;
    --success: #78d897;
    --success-soft: #17281d;
    --error: #ff918a;
    --error-soft: #311d1b;
    --warning: #f1c467;
    --warning-soft: #302817;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.18), 0 12px 36px rgba(0,0,0,.16);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { color: inherit; }
::selection { background: var(--accent); color: #111; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent-strong) 70%, transparent); outline-offset: 2px; }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; border-right: 1px solid var(--border); background: var(--surface); padding: 24px 16px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--surface); font-size: 14px; font-weight: 800; letter-spacing: -.05em; }
.brand-name { font-size: 20px; font-weight: 760; letter-spacing: -.05em; }
.brand-name span { color: var(--accent-strong); }
.side-nav { margin-top: 42px; }
.nav-label { margin: 0 10px 9px; color: var(--muted-2); font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.nav-label-spaced { margin-top: 30px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 43px; margin: 3px 0; padding: 0 11px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 570; transition: .18s ease; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--ink); color: var(--surface); }
.nav-item.active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--accent-strong); }
.nav-icon { display: grid; place-items: center; width: 20px; font-size: 17px; font-weight: 400; }
.nav-kbd { margin-left: auto; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; font-size: 9px; opacity: .5; }
.sidebar-bottom { display: grid; gap: 14px; margin-top: auto; }
.credit-card-mini { display: block; overflow: hidden; position: relative; border-radius: 13px; background: var(--ink); color: var(--surface); padding: 15px; }
.credit-card-mini::after { content: ""; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; border: 16px solid var(--accent); border-radius: 50%; opacity: .14; }
.credit-card-label { display: block; color: color-mix(in srgb, var(--surface) 60%, transparent); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.credit-card-mini strong { display: block; margin: 4px 0 13px; font-size: 27px; font-weight: 640; letter-spacing: -.04em; }
.credit-card-action { display: flex; justify-content: space-between; color: var(--accent); font-size: 11px; font-weight: 650; }
.profile-chip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 5px 4px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 12px; font-weight: 750; }
.avatar.large { width: 44px; height: 44px; font-size: 15px; }
.avatar.small { width: 31px; height: 31px; font-size: 11px; }
.profile-meta { min-width: 0; }
.profile-meta strong, .profile-meta small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-meta strong { font-size: 11px; }
.profile-meta small { color: var(--muted); font-size: 9px; }
.profile-more { color: var(--muted-2); font-size: 10px; letter-spacing: 1px; }

.main-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 68px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 86%, transparent); padding: 0 34px; backdrop-filter: blur(18px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 11px; }
.breadcrumb i { color: var(--border-strong); font-style: normal; }
.breadcrumb strong { color: var(--text); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-logout { margin: 0; }
.topbar-logout-button { width: auto; min-height: 34px; padding: 0 12px; white-space: nowrap; }
.system-status { display: flex; align-items: center; gap: 7px; margin-right: 8px; color: var(--muted); font-size: 10px; }
.system-status i, .eyebrow i, .live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); cursor: pointer; transition: .18s ease; }
.icon-button:hover { border-color: var(--border-strong); background: var(--surface-2); }
.mobile-menu { display: none; }
.page-wrap { width: min(100%, 1500px); margin: 0 auto; padding: 35px 38px 64px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 30px; }
.page-heading h1 { margin: 8px 0 5px; font-size: clamp(29px, 3vw, 43px); line-height: 1.04; letter-spacing: -.055em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.heading-credit { min-width: 145px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); padding: 11px 15px; text-align: right; box-shadow: var(--shadow-sm); }
.heading-credit span, .heading-credit strong { display: block; }
.heading-credit span { color: var(--muted); font-size: 10px; }
.heading-credit strong { font-size: 22px; letter-spacing: -.04em; }
.section-label { color: var(--muted-2); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; border: 1px solid transparent; border-radius: 9px; padding: 0 16px; font-size: 12px; font-weight: 680; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: var(--surface); }
.button-primary:hover { background: color-mix(in srgb, var(--ink) 88%, var(--accent)); }
.button-secondary { border-color: var(--border); background: var(--surface); color: var(--text); }
.button-secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }
.button-inverse { background: var(--surface); color: var(--text); }
.button-block { width: 100%; }
.button-lg { min-height: 49px; padding: 0 21px; border-radius: 11px; font-size: 13px; }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 0; font-size: 11px; font-weight: 650; cursor: pointer; }
.text-button:hover { color: var(--text); }
.text-button.danger { color: var(--error); }

.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-head h3 { margin: 3px 0 0; font-size: 17px; letter-spacing: -.03em; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-head > a { color: var(--muted); font-size: 11px; font-weight: 650; }

.studio-hero { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 370px; overflow: hidden; border-radius: var(--radius-lg); background: #181a16; color: #f6f7f1; box-shadow: 0 24px 70px rgba(12,15,10,.15); }
.studio-hero-copy { position: relative; z-index: 2; padding: 46px 20px 42px 48px; }
.studio-hero-copy .section-label { color: rgba(255,255,255,.45); }
.studio-hero-copy h2 { margin: 26px 0 18px; font-size: clamp(39px, 4vw, 62px); font-weight: 590; line-height: .94; letter-spacing: -.065em; }
.studio-hero-copy h2 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.studio-hero-copy > p { max-width: 450px; margin: 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.hero-cost { display: flex; flex-direction: column; padding-left: 21px; border-left: 1px solid rgba(255,255,255,.16); }
.hero-cost b { font-size: 12px; }
.hero-cost small { color: rgba(255,255,255,.4); font-size: 9px; }
.studio-hero-art { position: relative; min-height: 370px; background: radial-gradient(circle at 52% 45%, rgba(200,243,107,.16), transparent 35%), linear-gradient(135deg, transparent 20%, rgba(255,255,255,.025)); }
.studio-hero-art::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to left, #000, transparent); }
.hero-orbit { position: absolute; top: 50%; left: 52%; border: 1px solid rgba(200,243,107,.25); border-radius: 50%; transform: translate(-50%,-50%) rotate(-12deg); }
.hero-orbit.one { width: 340px; height: 340px; }
.hero-orbit.two { width: 470px; height: 245px; }
.hero-model { position: absolute; bottom: 0; left: 52%; width: 165px; height: 330px; transform: translateX(-50%); }
.hero-head { position: absolute; top: 0; left: 57px; width: 53px; height: 67px; border-radius: 49% 49% 45% 45%; background: #956b51; box-shadow: inset -9px 0 rgba(60,37,26,.24); }
.hero-head::before { content: ""; position: absolute; inset: -10px -5px 36px; border-radius: 52% 52% 35% 35%; background: #211914; }
.hero-body { position: absolute; top: 60px; left: 31px; width: 105px; height: 168px; border-radius: 25px 25px 9px 9px; background: linear-gradient(100deg,#35403b,#151b18 65%); clip-path: polygon(20% 0,80% 0,100% 100%,0 100%); }
.hero-body::after { content: ""; position: absolute; top: 28px; left: 18px; width: 70px; height: 1px; background: rgba(255,255,255,.28); box-shadow: 0 45px rgba(255,255,255,.11), 0 90px rgba(255,255,255,.11); }
.hero-arm { position: absolute; top: 70px; width: 34px; height: 174px; border-radius: 20px; background: #29332f; transform-origin: top; }
.hero-arm.left { left: 18px; transform: rotate(10deg); }
.hero-arm.right { right: 15px; transform: rotate(-17deg); }
.hero-leg { position: absolute; top: 218px; width: 47px; height: 126px; background: linear-gradient(#1a211e,#2b332f); border-radius: 4px 4px 15px 15px; }
.hero-leg.left { left: 32px; transform: rotate(2deg); }
.hero-leg.right { right: 31px; transform: rotate(-4deg); }
.hero-format-tag { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(19,22,18,.74); padding: 9px 12px; backdrop-filter: blur(8px); }
.hero-format-tag b { color: var(--accent); font-size: 9px; }
.hero-format-tag span, .hero-format-tag small { display: block; }
.hero-format-tag span { font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.hero-format-tag small { color: rgba(255,255,255,.42); font-size: 7px; font-weight: 500; }
.tag-one { top: 74px; left: 7%; }
.tag-two { right: 5%; bottom: 72px; }
.hero-grid-label { position: absolute; right: 28px; top: 28px; color: rgba(255,255,255,.25); font-size: 8px; letter-spacing: .16em; writing-mode: vertical-rl; }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.stat-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 19px; box-shadow: var(--shadow-sm); }
.stat-card.emphasis { background: var(--accent-soft); border-color: color-mix(in srgb,var(--accent-strong) 30%,var(--border)); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 600; }
.stat-top i { font-size: 16px; font-style: normal; }
.stat-card > strong { display: block; margin: 14px 0 2px; font-size: 29px; font-weight: 620; letter-spacing: -.055em; }
.stat-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.stat-card a { color: var(--text); font-weight: 650; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(290px,.7fr); gap: 18px; }
.dashboard-lower .panel { min-height: 280px; padding: 22px; }
.mini-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.mini-gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: var(--surface-2); }
.mini-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mini-gallery-item:hover img { transform: scale(1.03); }
.mini-gallery-item span { position: absolute; inset: auto 7px 7px; overflow: hidden; border-radius: 5px; background: rgba(15,16,14,.72); color: #fff; padding: 5px 7px; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; backdrop-filter: blur(5px); }
.inline-empty { display: flex; align-items: center; gap: 14px; margin-top: 24px; min-height: 155px; border: 1px dashed var(--border-strong); border-radius: 12px; padding: 20px; }
.inline-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); font-size: 16px; }
.inline-empty strong, .inline-empty p { display: block; margin: 0; }
.inline-empty p { color: var(--muted); font-size: 10px; }
.inline-empty .button { margin-left: auto; }
.inline-empty.compact { min-height: 80px; margin: 0; border: 0; }
.activity-list { margin-top: 12px; }
.activity-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--surface-2); font-size: 12px; }
.activity-dot.positive { background: var(--success-soft); color: var(--success); }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.activity-item small { color: var(--muted); font-size: 8px; }
.activity-item > b { font-size: 10px; }
.positive-text { color: var(--success); }
.negative-text { color: var(--error); }
.muted { color: var(--muted); }

.form-alert { display: flex; align-items: flex-start; gap: 12px; border: 1px solid color-mix(in srgb,var(--error) 25%,var(--border)); border-radius: 10px; background: var(--error-soft); padding: 12px 14px; color: var(--error); }
.form-alert > span { display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--error); color: var(--error-soft); font-weight: 800; }
.form-alert strong, .form-alert p { display: block; margin: 0; }
.form-alert strong { font-size: 11px; }
.form-alert p { font-size: 10px; opacity: .85; }
.page-alert { margin: -12px 0 22px; }
.field { display: grid; gap: 7px; min-width: 0; color: var(--text); font-size: 11px; font-weight: 620; }
.field > span:first-child, .field-label-row { min-height: 16px; }
.field small { color: var(--muted-2); font-size: 9px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--border); border-radius: 9px; outline: 0; background: var(--surface); color: var(--text); padding: 0 12px; transition: border .15s, box-shadow .15s; }
.field input, .field select { height: 42px; }
.field textarea { resize: vertical; padding-top: 11px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent); }
.form-grid { display: grid; gap: 13px; }
.form-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.generation-form { position: relative; }
.generator-layout { display: grid; grid-template-columns: minmax(310px,.78fr) minmax(480px,1.22fr); gap: 18px; align-items: stretch; }
.upload-panel, .settings-panel, .outputs-panel { padding: 24px; }
.step-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 22px; }
.step-heading > span { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 9px; font-weight: 750; }
.step-heading h2, .step-heading p { margin: 0; }
.step-heading h2 { font-size: 16px; letter-spacing: -.025em; }
.step-heading p { color: var(--muted); font-size: 10px; }
.step-heading-row { align-items: center; }
.step-heading-row .text-button { margin-left: auto; }
.dropzone { position: relative; display: flex; min-height: 275px; align-items: center; justify-content: center; flex-direction: column; overflow: hidden; border: 1px dashed var(--border-strong); border-radius: 13px; background: var(--bg); cursor: pointer; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent-strong); background: var(--accent-soft); }
.dropzone.has-error { border-color: var(--error); }
.dropzone > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 13px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 20px; }
.dropzone > strong { font-size: 12px; }
.dropzone > p { margin: 3px 0 13px; color: var(--muted); font-size: 10px; }
.dropzone > p u { color: var(--text); font-weight: 650; }
.dropzone > small { color: var(--muted-2); font-size: 8px; }
.file-preview { position: absolute; inset: 0; display: none; background: var(--surface-2); }
.file-preview.visible { display: block; }
.file-preview img { width: 100%; height: 100%; object-fit: contain; }
.file-preview b { position: absolute; left: 10px; right: 42px; bottom: 10px; overflow: hidden; border-radius: 7px; background: rgba(15,17,14,.78); color: #fff; padding: 8px 10px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-preview button { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(15,17,14,.8); color: #fff; cursor: pointer; }
.upload-tips { display: flex; gap: 25px; margin-top: 16px; }
.upload-tips > span { color: var(--muted-2); font-size: 8px; font-weight: 750; letter-spacing: .11em; }
.upload-tips ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 9px; }
.upload-tips li::before { content: "·"; margin-right: 6px; color: var(--accent-strong); }
.settings-panel { display: grid; align-content: start; gap: 17px; }
.settings-panel .step-heading { margin-bottom: 3px; }
.choice-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.choice-fieldset legend { margin-bottom: 7px; font-size: 11px; font-weight: 620; }
.segmented { display: grid; gap: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 3px; }
.choices-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choices-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.segmented input, .option-cards input, .variant-card > input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label span { display: grid; place-items: center; height: 34px; border-radius: 7px; color: var(--muted); font-size: 10px; cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 700; }
.option-cards { display: grid; gap: 8px; }
.option-cards label > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 0 9px; min-height: 58px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.option-cards i { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 38px; background: var(--surface-2); color: var(--muted); font-size: 16px; font-style: normal; }
.option-cards b { align-self: end; font-size: 9px; }
.option-cards small { align-self: start; color: var(--muted); font-size: 7px; }
.option-cards input:checked + span { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.option-cards input:checked + span i { background: var(--accent-soft); color: var(--text); }
.outputs-panel { margin-top: 18px; }
.variant-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.variant-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; border: 1px solid var(--border); border-radius: 11px; padding: 9px; cursor: pointer; transition: .18s ease; }
.variant-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.variant-card:has(input:checked) { border-color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--text); }
.variant-visual { position: relative; grid-row: 1 / 3; width: 52px; height: 58px; overflow: hidden; border-radius: 6px; background: linear-gradient(145deg,#d9d5cc,#a7aca5); }
.variant-visual.slider { width: 68px; }
.variant-visual i { position: absolute; left: 50%; bottom: 0; width: 18px; height: 43px; border-radius: 10px 10px 2px 2px; background: #303934; transform: translateX(-50%); }
.variant-visual i::before { content: ""; position: absolute; top: -9px; left: 5px; width: 9px; height: 11px; border-radius: 50%; background: #8f6a55; }
.variant-visual.three_quarter i { transform: translateX(-50%) rotate(-5deg); }
.variant-visual.side i { transform: translateX(-50%) scaleX(.7); }
.variant-visual.instagram { background: linear-gradient(145deg,#e8d1bc,#b99b82); }
.variant-visual.slider { background: linear-gradient(145deg,#bfcac9,#747f7d); }
.variant-visual b { position: absolute; right: 3px; bottom: 3px; border-radius: 3px; background: rgba(0,0,0,.5); color: white; padding: 1px 3px; font-size: 6px; }
.variant-info { align-self: center; min-width: 0; }
.variant-info strong, .variant-info small { display: block; }
.variant-info strong { font-size: 9px; }
.variant-info small { color: var(--muted); font-size: 7px; }
.variant-check { position: absolute; right: 6px; top: 6px; display: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--surface); place-items: center; font-size: 8px; }
.variant-card input:checked ~ .variant-check { display: grid; }
.generator-submit-bar { position: sticky; bottom: 14px; z-index: 15; display: flex; align-items: center; justify-content: space-between; margin-top: 18px; border: 1px solid var(--border-strong); border-radius: 14px; background: color-mix(in srgb,var(--surface) 91%,transparent); padding: 11px 13px 11px 20px; box-shadow: 0 16px 48px rgba(10,12,9,.13); backdrop-filter: blur(15px); }
.generator-submit-bar > div { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: baseline; }
.generator-submit-bar span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.generator-submit-bar strong { font-size: 16px; }
.generator-submit-bar small { grid-column: 1 / 3; color: var(--muted-2); font-size: 8px; }
.generation-overlay { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(10,11,9,.74); padding: 20px; backdrop-filter: blur(12px); }
.generation-overlay.visible { display: grid; }
.generation-progress-card { width: min(520px,100%); border-radius: 20px; background: #f5f5f0; color: #171816; padding: 42px; text-align: center; box-shadow: var(--shadow-lg); }
.generation-progress-card h2 { margin: 10px 0 5px; font-size: 28px; letter-spacing: -.045em; }
.generation-progress-card p { margin: 0; color: #6b6d68; font-size: 11px; }
.generation-eta { display: inline-flex; align-items: baseline; gap: 7px; margin-top: 13px; border: 1px solid #dedfd9; border-radius: 999px; background: #fff; padding: 7px 12px; }
.generation-eta span { color: #858780; font-size: 8px; }
.generation-eta strong { color: #171816; font-size: 11px; font-variant-numeric: tabular-nums; }
.generation-progress-card > small { display: block; margin-top: 18px; color: #8b8d87; font-size: 8px; }
.ai-loader { position: relative; width: 92px; height: 92px; margin: 0 auto 24px; }
.ai-loader span { position: absolute; inset: 0; border: 1px solid #a1a39d; border-radius: 50%; animation: aiOrbit 2.4s linear infinite; }
.ai-loader span:nth-child(2) { transform: rotate(60deg) scaleY(.6); animation-direction: reverse; }
.ai-loader span:nth-child(3) { transform: rotate(-60deg) scaleY(.6); animation-duration: 1.7s; }
.ai-loader i { position: absolute; inset: 0; display: grid; place-items: center; color: #7ab600; font-size: 21px; font-style: normal; }
@keyframes aiOrbit { to { rotate: 360deg; } }
.progress-track { height: 4px; overflow: hidden; margin: 24px 0 11px; border-radius: 8px; background: #dedfd9; }
.progress-track i { display: block; width: 8%; height: 100%; border-radius: inherit; background: #9fda20; transition: width 2s ease; }
.progress-steps { display: flex; justify-content: space-between; color: #a0a29d; font-size: 8px; }
.progress-steps .active { color: #171816; font-weight: 700; }

.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.filter-tabs { display: inline-flex; gap: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); padding: 3px; }
.filter-tabs a { border-radius: 6px; padding: 7px 12px; color: var(--muted); font-size: 9px; font-weight: 650; }
.filter-tabs a.active { background: var(--ink); color: var(--surface); }
.toolbar-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.gallery-grid.compact { grid-template-columns: repeat(5,minmax(0,1fr)); }
.gallery-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-card:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(13,15,12,.1); }
.gallery-card.highlight { animation: highlightCard 1.6s ease 2; }
@keyframes highlightCard { 50% { box-shadow: 0 0 0 3px var(--accent), 0 15px 40px rgba(13,15,12,.1); } }
.gallery-image { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border: 0; background: var(--surface-2); padding: 0; cursor: zoom-in; }
.gallery-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover .gallery-image img { transform: scale(1.02); }
.image-resolution { position: absolute; top: 9px; left: 9px; border-radius: 4px; background: rgba(15,16,14,.7); color: #fff; padding: 3px 6px; font-size: 7px; font-weight: 750; backdrop-filter: blur(4px); }
.image-hover { position: absolute; inset: auto 9px 9px; display: flex; justify-content: space-between; border-radius: 6px; background: rgba(15,16,14,.74); color: #fff; padding: 7px 9px; font-size: 8px; opacity: 0; transform: translateY(5px); transition: .2s ease; backdrop-filter: blur(6px); }
.gallery-card:hover .image-hover { opacity: 1; transform: translateY(0); }
.error-image { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--error); cursor: default; }
.error-image > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--error-soft); font-weight: 800; }
.error-image strong { margin-top: 10px; font-size: 10px; }
.error-image small { max-width: 80%; color: var(--muted); font-size: 7px; text-align: center; }
.gallery-card-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; }
.gallery-card-info > div { min-width: 0; }
.gallery-card-info strong, .gallery-card-info span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gallery-card-info strong { font-size: 10px; }
.gallery-card-info span { color: var(--muted); font-size: 7px; }
.download-button { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 13px; }
.download-button:hover { background: var(--ink); color: var(--surface); }
.refund-pill { border-radius: 5px; background: var(--success-soft); color: var(--success)!important; padding: 4px 6px; font-size: 7px!important; }
.empty-state { display: flex; min-height: 420px; align-items: center; justify-content: center; flex-direction: column; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); padding: 40px; text-align: center; }
.empty-state h1, .empty-state h2 { margin: 14px 0 5px; letter-spacing: -.04em; }
.empty-state p { max-width: 450px; margin: 0 0 20px; color: var(--muted); }
.empty-visual { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 24px; }
.empty-code { color: var(--accent-strong); font-family: Georgia,serif; font-size: 80px; font-style: italic; line-height: 1; }
.page-error { border: 0; background: transparent; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 10px; }
.pagination a { border: 1px solid var(--border); border-radius: 7px; background: var(--surface); padding: 7px 10px; }
.lightbox, .checkout-dialog, .manage-dialog { width: min(94vw,620px); max-height: 92vh; overflow: auto; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: var(--surface); color: var(--text); padding: 0; box-shadow: var(--shadow-lg); }
.lightbox { width: min(94vw,900px); overflow: visible; background: #111; color: white; }
dialog::backdrop { background: rgba(8,9,8,.72); backdrop-filter: blur(8px); }
.lightbox-frame { max-height: 78vh; border-radius: 18px 18px 0 0; overflow: hidden; }
.lightbox-frame img { width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: white; font-size: 20px; cursor: pointer; }
.lightbox-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 15px; }
.lightbox-caption strong { font-size: 11px; }

.pricing-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.price-card { position: relative; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); padding: 20px 17px 17px; box-shadow: var(--shadow-sm); }
.price-card.featured { border-color: var(--ink); background: var(--ink); color: var(--surface); transform: translateY(-6px); box-shadow: 0 18px 55px rgba(10,12,9,.18); }
.price-badge { position: absolute; top: -10px; right: 14px; border-radius: 20px; background: var(--accent); color: #111; padding: 4px 9px; font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.price-card-top h2 { margin: 17px 0 0; font-size: 42px; font-weight: 580; line-height: 1; letter-spacing: -.07em; }
.price-card-top p { margin: 2px 0 0; color: var(--muted); font-size: 9px; }
.featured .section-label, .featured .price-card-top p, .featured .price span, .featured .unit-price, .featured ul { color: rgba(255,255,255,.55); }
.price { margin: 23px 0 12px; }
.price strong, .price span { display: block; }
.price strong { font-size: 25px; letter-spacing: -.045em; }
.price span { color: var(--muted); font-size: 8px; }
.unit-price { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--muted); padding: 9px 0; font-size: 8px; }
.featured .unit-price { border-color: rgba(255,255,255,.12); }
.unit-price b { color: var(--text); }
.featured .unit-price b { color: var(--accent); }
.price-card ul { display: grid; gap: 8px; margin: 16px 0 22px; padding: 0; list-style: none; color: var(--muted); font-size: 8px; }
.price-card li i { margin-right: 5px; color: var(--accent-strong); font-style: normal; }
.price-card .button { margin-top: auto; }
.featured .button-primary { background: var(--accent); color: #111; }
.package-note { display: flex; align-items: center; gap: 12px; margin: 21px 0; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 13px 17px; }
.package-note > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-weight: 750; }
.package-note strong, .package-note p { display: block; margin: 0; }
.package-note strong { font-size: 10px; }
.package-note p { color: var(--muted); font-size: 9px; }
.history-panel, .api-key-panel, .users-panel, .logs-panel { margin-top: 18px; padding: 22px; }
.secure-label { color: var(--muted-2); font-size: 8px; }
.table-wrap { overflow-x: auto; margin-top: 15px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.data-table th { color: var(--muted-2); padding: 9px 11px; border-bottom: 1px solid var(--border); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px 11px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { color: var(--muted); font-size: 7px; }
.status-pill { display: inline-flex!important; width: max-content; align-items: center; border-radius: 20px; padding: 3px 7px; font-size: 7px!important; font-weight: 650; text-transform: capitalize; }
.status-pill.success { background: var(--success-soft); color: var(--success); }
.status-pill.error { background: var(--error-soft); color: var(--error); }
.status-pill.neutral { background: var(--surface-2); color: var(--muted); }
.checkout-dialog, .manage-dialog { padding: 25px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 19px; }
.dialog-head h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.04em; }
.dialog-head > button { border: 0; background: transparent; color: var(--muted); font-size: 25px; cursor: pointer; }
.checkout-summary { display: flex; align-items: center; justify-content: space-between; border-radius: 11px; background: var(--ink); color: var(--surface); padding: 15px 16px; }
.checkout-summary span, .checkout-summary small { display: block; }
.checkout-summary span { font-size: 12px; font-weight: 650; }
.checkout-summary small { color: color-mix(in srgb,var(--surface) 55%,transparent); font-size: 8px; }
.checkout-summary > strong { color: var(--accent); font-size: 23px; }
.simulation-banner { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0 18px; border: 1px solid color-mix(in srgb,var(--warning) 24%,var(--border)); border-radius: 9px; background: var(--warning-soft); color: var(--warning); padding: 10px 11px; }
.simulation-banner > span { display: grid; place-items: center; flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; font-size: 8px; }
.simulation-banner p { margin: 0; font-size: 8px; }
.checkout-dialog form { display: grid; gap: 13px; }
.checkout-dialog .dialog-head, .checkout-dialog .checkout-summary, .checkout-dialog .simulation-banner { margin-bottom: 0; }
.card-input, .password-input { position: relative; display: block; }
.card-input input, .password-input input { padding-right: 62px; }
.card-input i, .password-input button { position: absolute; top: 50%; right: 10px; border: 0; background: transparent; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 800; transform: translateY(-50%); cursor: pointer; }
.checkout-foot { margin: 0; color: var(--muted-2); font-size: 7px; text-align: center; }

.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.account-panel { padding: 22px; }
.stack-form { display: grid; gap: 13px; margin-top: 20px; }
.stack-form .button { justify-self: start; }
.panel-symbol { color: var(--muted); font-size: 24px; }
.new-key-banner { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 14px; margin-bottom: 18px; border-radius: 13px; background: var(--ink); color: var(--surface); padding: 15px; }
.new-key-banner > div { display: flex; align-items: center; gap: 10px; }
.new-key-banner > div > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--accent); color: #111; }
.new-key-banner strong, .new-key-banner p { display: block; margin: 0; }
.new-key-banner strong { font-size: 10px; }
.new-key-banner p { color: rgba(255,255,255,.5); font-size: 8px; }
.new-key-banner code { overflow: hidden; max-width: 370px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; padding: 8px 10px; color: var(--accent); font-size: 9px; text-overflow: ellipsis; }
.inline-create-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; margin-top: 17px; border-radius: 10px; background: var(--bg); padding: 12px; }
.key-list { margin-top: 17px; }
.key-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); }
.key-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--surface-2); }
.key-row > div strong, .key-row > div code { display: block; }
.key-row > div strong { font-size: 10px; }
.key-row > div code { color: var(--muted); font-size: 8px; }
.key-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; }
.key-meta small { color: var(--muted); font-size: 7px; }
.balance-total { font-size: 17px; letter-spacing: -.03em; }

.live-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 7px 11px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(320px,.65fr); gap: 18px; }
.chart-panel, .api-health-card { min-height: 330px; padding: 22px; }
.chart-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent-strong); }
.bar-chart { display: flex; height: 225px; align-items: end; gap: 8px; padding-top: 25px; }
.bar-column { display: flex; flex: 1; height: 100%; align-items: center; justify-content: end; flex-direction: column; gap: 7px; }
.bar-column span { width: 100%; max-width: 30px; min-height: 5px; border-radius: 4px 4px 1px 1px; background: var(--accent-strong); transition: height .4s ease; }
.bar-column small { color: var(--muted-2); font-size: 6px; white-space: nowrap; }
.chart-empty { width: 100%; align-self: center; color: var(--muted); text-align: center; }
.api-gauge { display: grid; place-items: center; margin: 25px 0 20px; }
.api-gauge > div { --value: 0; display: grid; place-items: center; width: 146px; height: 146px; border-radius: 50%; background: conic-gradient(var(--accent-strong) calc(var(--value) * 1%), var(--surface-2) 0); }
.api-gauge > div::before { content: ""; width: 112px; height: 112px; border-radius: 50%; background: var(--surface); }
.api-gauge span { position: absolute; text-align: center; }
.api-gauge strong, .api-gauge small { display: block; }
.api-gauge strong { font-size: 25px; letter-spacing: -.05em; }
.api-gauge small { color: var(--muted); font-size: 8px; }
.health-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--border); padding-top: 15px; }
.health-metrics span { border-right: 1px solid var(--border); text-align: center; }
.health-metrics span:last-child { border: 0; }
.health-metrics small, .health-metrics strong { display: block; }
.health-metrics small { color: var(--muted); font-size: 7px; }
.health-metrics strong { font-size: 11px; }
.table-user { display: flex; align-items: center; gap: 9px; }
.table-action { border: 1px solid var(--border); border-radius: 6px; background: var(--surface); padding: 5px 8px; font-size: 8px; cursor: pointer; }
.search-form { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); padding: 4px 5px 4px 10px; }
.search-form input { width: 190px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 10px; }
.search-form button { border: 0; border-radius: 6px; background: var(--ink); color: var(--surface); padding: 6px 9px; font-size: 8px; cursor: pointer; }
.manage-dialog { width: min(94vw,480px); }
.dialog-divider { height: 1px; margin: 20px 0; background: var(--border); }
.http-status { display: inline-grid; min-width: 35px; place-items: center; border-radius: 5px; padding: 4px 6px; font-weight: 750; }
.http-status.ok { background: var(--success-soft); color: var(--success); }
.http-status.bad { background: var(--error-soft); color: var(--error); }
.latency-bar { display: flex; width: 100px; align-items: center; gap: 7px; }
.latency-bar::before { content: ""; flex: 1; height: 4px; border-radius: 4px; background: var(--surface-2); }
.latency-bar i { position: absolute; width: calc(var(--latency) * .55); max-width: 55px; height: 4px; border-radius: 4px; background: var(--accent-strong); }
.latency-bar b { flex: 0 0 auto; color: var(--muted); font-size: 7px; }
.log-error { display: block; overflow: hidden; max-width: 180px; color: var(--error); font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }
.logs-table code { display: block; max-width: 150px; overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; }

.price-card .distributor-info { border: 1px solid var(--border); background: var(--surface-2); box-shadow: none; color: var(--muted); cursor: default; user-select: text; }
.mannequin-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.mannequin-choice { position: relative; min-width: 0; cursor: pointer; }
.mannequin-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.mannequin-choice-card { display: flex; min-height: 142px; align-items: center; flex-direction: column; justify-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 9px; text-align: center; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.mannequin-choice:hover .mannequin-choice-card { border-color: var(--muted-2); transform: translateY(-1px); }
.mannequin-choice > input:checked + .mannequin-choice-card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mannequin-choice > input:focus-visible + .mannequin-choice-card { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.mannequin-choice-photo { display: grid; overflow: hidden; width: 62px; height: 74px; place-items: center; margin-bottom: 4px; border-radius: 9px; background: var(--surface-2); color: var(--muted); font-size: 23px; }
.mannequin-choice-photo img { width: 100%; height: 100%; object-fit: cover; }
.mannequin-choice-photo b { position: absolute; right: 7px; bottom: 7px; border-radius: 20px; background: rgba(12,14,12,.78); padding: 4px 7px; color: #fff; font-size: 7px; backdrop-filter: blur(7px); }
.mannequin-choice-photo.is-reference { border: 1px dashed var(--border-strong); }
.mannequin-choice-card.has-model { min-height: 205px; justify-content: flex-start; padding: 7px 7px 10px; }
.mannequin-choice-card.has-model .mannequin-choice-photo { position: relative; width: 100%; height: 125px; margin-bottom: 0; border-radius: 8px; }
.model-angle-thumbs { display: flex; height: 28px; justify-content: center; gap: 4px; margin-top: -18px; z-index: 2; }
.model-angle-thumbs img { width: 28px; height: 28px; border: 2px solid var(--surface); border-radius: 50%; background: var(--surface-2); object-fit: cover; box-shadow: var(--shadow-sm); }
.dropzone small.is-warning { color: var(--error); font-weight: 700; }
.mannequin-choice-card strong { overflow: hidden; max-width: 100%; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mannequin-choice-card small { color: var(--muted); font-size: 7px; }
.mannequin-picker-help, .mannequin-picker-empty { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.mannequin-picker-empty { border-radius: 8px; background: var(--surface-2); padding: 9px 11px; }
.subject-config-panel { display: grid; gap: 13px; border: 1px solid color-mix(in srgb,var(--accent-strong) 45%,var(--border)); border-radius: 12px; background: color-mix(in srgb,var(--accent) 7%,var(--surface)); padding: 14px; }
.subject-config-panel[hidden] { display: none; }
.subject-config-head strong, .subject-config-head small { display: block; }
.subject-config-head strong { font-size: 10px; }
.subject-config-head small { margin-top: 2px; color: var(--muted); font-size: 7px; }

.mannequin-admin-layout { display: grid; grid-template-columns: minmax(300px,.65fr) minmax(0,1.35fr); align-items: start; gap: 18px; }
.identity-guide { display: grid; grid-template-columns: minmax(240px,.72fr) minmax(0,1.28fr); gap: 18px 28px; margin-bottom: 18px; padding: 22px; }
.identity-guide-copy h2 { margin: 7px 0 8px; font-size: 20px; letter-spacing: -.04em; }
.identity-guide-copy p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.identity-angle-guide { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.identity-angle-guide article { display: flex; min-width: 0; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); padding: 11px; }
.identity-angle-guide article > span { display: grid; flex: 0 0 auto; width: 28px; height: 34px; place-items: center; border-radius: 7px; background: var(--surface); color: var(--accent-strong); font-size: 8px; font-weight: 800; box-shadow: var(--shadow-sm); }
.identity-angle-guide strong, .identity-angle-guide small { display: block; }
.identity-angle-guide strong { font-size: 9px; }
.identity-angle-guide small { margin-top: 2px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.identity-rules { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.identity-rules span { border-radius: 8px; background: var(--bg); padding: 9px 10px; color: var(--muted); font-size: 7px; }
.identity-caveat { grid-column: 1 / -1; margin: -5px 0 0; border-left: 2px solid var(--accent-strong); background: var(--accent-soft); padding: 8px 10px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.identity-caveat strong { color: var(--text); }
.mannequin-create-panel, .mannequin-library-panel { padding: 22px; }
.mannequin-create-panel { position: sticky; top: 86px; }
.angle-upload-grid { display: grid; gap: 8px; }
.angle-upload { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 2px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 10px; cursor: pointer; }
.angle-upload.required { border-color: color-mix(in srgb,var(--accent-strong) 48%,var(--border)); }
.angle-upload-number { grid-row: 1 / 3; display: grid; width: 31px; height: 38px; place-items: center; border-radius: 7px; background: var(--surface); color: var(--accent-strong); font-size: 8px; font-weight: 800; }
.angle-upload strong { font-size: 9px; }
.angle-upload small { color: var(--muted); font-size: 7px; }
.angle-upload input { grid-column: 1 / -1; width: 100%; margin-top: 7px; color: var(--muted); font-size: 8px; }
.upload-field-note { margin: -7px 0 0; color: var(--muted); font-size: 7px; }
.identity-confirm { display: flex; align-items: flex-start; gap: 9px; border-radius: 9px; background: var(--surface-2); padding: 10px; color: var(--muted); font-size: 8px; line-height: 1.5; cursor: pointer; }
.identity-confirm input { flex: 0 0 auto; width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--ink); }
.mannequin-admin-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.mannequin-admin-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.mannequin-admin-card.is-inactive { opacity: .58; }
.mannequin-admin-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.mannequin-admin-photo img { width: 100%; height: 100%; object-fit: cover; }
.mannequin-admin-photo .status-pill { position: absolute; top: 9px; right: 9px; backdrop-filter: blur(8px); }
.reference-count-pill { position: absolute; right: 9px; bottom: 9px; border-radius: 20px; background: rgba(12,14,12,.78); padding: 5px 8px; color: #fff; font-size: 7px; font-weight: 750; backdrop-filter: blur(7px); }
.mannequin-reference-strip { display: flex; gap: 5px; padding: 8px 10px 0; }
.mannequin-reference-strip figure { position: relative; flex: 1; overflow: hidden; aspect-ratio: 1; margin: 0; border-radius: 6px; background: var(--surface-2); }
.mannequin-reference-strip img { width: 100%; height: 100%; object-fit: cover; }
.mannequin-reference-strip figcaption { position: absolute; right: 3px; bottom: 3px; border-radius: 4px; background: rgba(12,14,12,.72); padding: 2px 4px; color: #fff; font-size: 6px; }
.mannequin-admin-info { min-height: 91px; padding: 12px 12px 8px; }
.mannequin-admin-info strong, .mannequin-admin-info small { display: block; }
.mannequin-admin-info strong { font-size: 11px; }
.mannequin-admin-info small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.mannequin-admin-info p { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: var(--muted); font-size: 8px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mannequin-admin-card form { padding: 0 12px 12px; }
.mannequin-admin-card .button { min-height: 34px; padding: 0 8px; font-size: 8px; }
.reference-editor { margin: 0 12px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.reference-editor summary { padding: 9px 10px; font-size: 8px; font-weight: 700; cursor: pointer; }
.reference-editor form { display: grid; gap: 8px; padding: 0 9px 9px; }
.reference-editor label span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 7px; }
.reference-editor input { width: 100%; font-size: 7px; }
.reference-editor form > small { color: var(--muted); font-size: 7px; line-height: 1.4; }
.reference-editor .reference-confirm { display: flex; align-items: flex-start; gap: 7px; border-radius: 6px; background: var(--surface); padding: 7px; }
.reference-editor .reference-confirm input { flex: 0 0 auto; width: 12px; height: 12px; margin: 1px 0 0; accent-color: var(--ink); }
.reference-editor .reference-confirm span { margin: 0; line-height: 1.4; }
.mannequin-status-form { padding-top: 0!important; }
.mannequin-library-empty { display: flex; min-height: 300px; align-items: center; flex-direction: column; justify-content: center; padding: 30px; color: var(--muted); text-align: center; }
.mannequin-library-empty > span { font-size: 30px; }
.mannequin-library-empty strong { margin-top: 9px; color: var(--text); font-size: 12px; }
.mannequin-library-empty p { max-width: 330px; font-size: 9px; line-height: 1.6; }

.auth-body { overflow-x: hidden; background: var(--surface); }
.auth-shell { display: grid; grid-template-columns: minmax(520px,1.12fr) minmax(430px,.88fr); min-height: 100vh; }
.auth-showcase { position: relative; display: flex; overflow: hidden; flex-direction: column; background: #181a16; color: #f7f8f3; padding: 34px 42px; }
.auth-showcase::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 55px 55px; mask-image: linear-gradient(135deg,#000,transparent 65%); }
.brand-light { position: relative; z-index: 2; }
.brand-light .brand-mark { background: #f4f5ef; color: #171816; }
.brand-light .brand-name span { color: var(--accent); }
.showcase-copy { position: relative; z-index: 3; max-width: 600px; margin: 10vh 0 0 4vw; }
.eyebrow-dark { color: rgba(255,255,255,.55); }
.showcase-copy h1 { margin: 22px 0 18px; font-size: clamp(47px,5.4vw,82px); font-weight: 570; line-height: .93; letter-spacing: -.07em; }
.showcase-copy h1 em { color: var(--accent); font-family: Georgia,serif; font-weight: 400; }
.showcase-copy > p { max-width: 500px; color: rgba(255,255,255,.54); font-size: 13px; line-height: 1.75; }
.showcase-proof { display: flex; gap: 27px; margin-top: 28px; }
.showcase-proof span { display: flex; flex-direction: column; color: rgba(255,255,255,.38); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.showcase-proof b { color: #fff; font-size: 15px; letter-spacing: -.02em; }
.fashion-stack { position: absolute; z-index: 2; right: -20px; bottom: -24px; width: 48%; height: 56%; }
.fashion-card { position: absolute; overflow: hidden; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.fashion-card > span { position: absolute; z-index: 3; top: 13px; left: 13px; color: rgba(255,255,255,.65); font-size: 7px; letter-spacing: .13em; }
.fashion-card-back { right: -30px; bottom: 45px; width: 85%; height: 58%; background: linear-gradient(145deg,#8f9690,#353b37); transform: rotate(-7deg); }
.fashion-card-front { left: 10%; bottom: -30px; width: 62%; height: 93%; background: linear-gradient(150deg,#d2c4b1,#858479); transform: rotate(5deg); }
.fashion-card-front small { position: absolute; bottom: 18px; left: 15px; color: rgba(255,255,255,.7); font-size: 6px; letter-spacing: .18em; }
.model-shape { position: absolute; left: 50%; bottom: -5%; width: 35%; height: 85%; border-radius: 35% 35% 3% 3%; background: linear-gradient(100deg,#222925,#546058 40%,#17201c); clip-path: polygon(32% 0,68% 0,86% 13%,100% 58%,82% 61%,78% 100%,22% 100%,18% 61%,0 58%,14% 13%); transform: translateX(-50%); }
.model-shape::before { content: ""; position: absolute; top: -9%; left: 36%; width: 28%; height: 13%; border-radius: 48%; background: #765240; }
.model-shape.second { width: 43%; height: 82%; background: linear-gradient(100deg,#695f53,#2d312e 60%); }
.floating-tag { position: absolute; z-index: 5; top: 23%; left: 0; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(18,20,17,.74); padding: 10px 13px; backdrop-filter: blur(10px); }
.floating-tag i { color: var(--accent); font-style: normal; }
.floating-tag b, .floating-tag small { display: block; }
.floating-tag b { font-size: 9px; }
.floating-tag small { color: rgba(255,255,255,.42); font-size: 7px; }
.showcase-foot { position: relative; z-index: 3; margin-top: auto; color: rgba(255,255,255,.28); font-size: 8px; }
.auth-form-panel { position: relative; display: grid; place-items: center; background: var(--surface); padding: 50px; }
.auth-mobile-head { position: absolute; top: 25px; left: 25px; right: 25px; display: none; align-items: center; justify-content: space-between; }
.auth-form-wrap { width: min(100%,410px); }
.auth-heading { margin-bottom: 28px; }
.auth-kicker { color: var(--accent-strong); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.auth-heading h2 { margin: 9px 0 6px; font-size: 32px; letter-spacing: -.055em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-form { display: grid; gap: 15px; margin-top: 20px; }
.field-label-row { display: flex; justify-content: space-between; }
.check-row { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 9px; }
.check-row input { width: 14px; height: 14px; margin: 0; accent-color: var(--ink); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--muted-2); font-size: 8px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { margin: 0; color: var(--muted); font-size: 10px; text-align: center; }
.auth-switch a { color: var(--text); font-weight: 700; }
.auth-legal { margin: 28px auto 0; max-width: 330px; color: var(--muted-2); font-size: 7px; text-align: center; }
.auth-legal a { text-decoration: underline; }

.toast-stack { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(390px,calc(100vw - 30px)); }
.toast { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 11px 12px; box-shadow: 0 18px 55px rgba(10,12,9,.18); animation: toastIn .3s ease; }
.toast-symbol { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--surface-2); font-weight: 750; }
.toast-success .toast-symbol { background: var(--success-soft); color: var(--success); }
.toast-error .toast-symbol { background: var(--error-soft); color: var(--error); }
.toast span:nth-child(2) { font-size: 9px; }
.toast button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.toast.hiding { opacity: 0; transform: translateY(8px); transition: .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.sidebar-scrim { display: none; }

@media (max-width: 1180px) {
    :root { --sidebar-width: 224px; }
    .page-wrap { padding-inline: 25px; }
    .pricing-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .variant-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .auth-shell { grid-template-columns: 1fr 1fr; }
    .fashion-stack { opacity: .7; }
}

@media (max-width: 920px) {
    .app-shell { display: block; }
    .sidebar { width: 268px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 25px 0 60px rgba(0,0,0,.2); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.4); }
    body.sidebar-open .sidebar-scrim { display: block; }
    .main-area { width: 100%; }
    .mobile-menu { display: grid; }
    .breadcrumb { margin-right: auto; margin-left: 12px; }
    .system-status { display: none; }
    .studio-hero { grid-template-columns: 1fr 1fr; }
    .studio-hero-copy { padding-left: 30px; }
    .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .content-grid, .admin-overview-grid { grid-template-columns: 1fr; }
    .identity-guide { grid-template-columns: 1fr; }
    .identity-rules { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .auth-showcase { display: none; }
    .auth-form-panel { min-height: 100vh; padding: 95px 28px 40px; }
    .auth-mobile-head { display: flex; }
}

@media (max-width: 640px) {
    .topbar { height: 60px; padding: 0 14px; }
    .account-button { display: none; }
    .page-wrap { padding: 24px 14px 50px; }
    .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
    .page-heading .button { width: 100%; }
    .heading-credit { align-self: stretch; text-align: left; }
    .studio-hero { grid-template-columns: 1fr; min-height: 580px; }
    .studio-hero-copy { padding: 32px 25px; }
    .studio-hero-art { min-height: 285px; }
    .hero-model { height: 290px; transform: translateX(-50%) scale(.88); transform-origin: bottom; }
    .stats-grid { gap: 9px; }
    .stat-card { padding: 15px; }
    .stat-card > strong { font-size: 24px; }
    .mini-gallery { grid-template-columns: repeat(2,1fr); }
    .generator-layout { gap: 12px; }
    .upload-panel, .settings-panel, .outputs-panel { padding: 17px; }
    .dropzone { min-height: 220px; }
    .form-grid.two, .account-grid { grid-template-columns: 1fr; }
    .option-cards.choices-three { grid-template-columns: 1fr; }
    .option-cards.choices-two { grid-template-columns: 1fr; }
    .mannequin-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .variant-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .generator-submit-bar { bottom: 7px; padding-left: 13px; }
    .generator-submit-bar small { display: none; }
    .generator-submit-bar .button { padding: 0 13px; }
    .generation-progress-card { padding: 32px 20px; }
    .gallery-grid, .gallery-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
    .gallery-card-info { padding: 9px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .package-note { align-items: flex-start; }
    .new-key-banner { grid-template-columns: 1fr; }
    .new-key-banner code { max-width: 100%; }
    .key-row { grid-template-columns: auto 1fr auto; }
    .key-row form { grid-column: 2 / 4; }
    .admin-overview-grid { gap: 12px; }
    .identity-angle-guide, .identity-rules { grid-template-columns: 1fr; }
    .mannequin-admin-grid { grid-template-columns: 1fr; }
    .search-form { width: 100%; }
    .search-form input { width: 100%; }
    .filter-tabs { width: 100%; }
    .filter-tabs a { flex: 1; text-align: center; }
    .toolbar-meta { display: none; }
    .lightbox-caption { flex-direction: column; align-items: stretch; }
    .lightbox-caption .button { width: 100%; }
}

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