:root {
  --bg: #f3f5f7;
  --bg-warm: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef1f4;
  --ink: #0b0d12;
  --ink-2: #20242c;
  --muted: #737a87;
  --muted-2: #9ca2ad;
  --line: #e1e5ea;
  --line-strong: #cfd5dd;
  --primary: #255cff;
  --primary-strong: #1647dc;
  --primary-soft: #e9efff;
  --mint: #55efa5;
  --mint-soft: #e7fff2;
  --success: #157e55;
  --success-soft: #e9fbf3;
  --warning: #a75c00;
  --warning-soft: #fff4df;
  --danger: #b02a32;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 8px 24px rgba(18, 27, 44, .06);
  --shadow-md: 0 20px 60px rgba(18, 27, 44, .10);
  --shadow-lg: 0 35px 100px rgba(18, 27, 44, .14);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --sidebar: 238px;
  --ease: cubic-bezier(.2,.75,.25,1);
  font-family: Vazirmatn, IRANSansX, "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

/* Shared brand + primitives */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; box-shadow: 0 10px 25px rgba(11,13,18,.12); }
.brand-logo.small { width: 36px; height: 36px; border-radius: 12px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-copy strong { font-size: 14px; letter-spacing: -.015em; }
.brand-copy small { color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; }
.compact-brand { gap: 9px; }

.button { appearance: none; border: 1px solid transparent; border-radius: 13px; min-height: 44px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-weight: 800; transition: transform .18s var(--ease), background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none !important; }
.button-primary { color: #fff; background: var(--primary); box-shadow: 0 10px 24px rgba(37,92,255,.22); }
.button-primary img { filter: brightness(0) invert(1); }
.button-primary:hover:not(:disabled) { background: var(--primary-strong); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37,92,255,.28); }
.button-ink { color: #fff; background: var(--ink); }
.button-ink:hover { background: #1d222c; transform: translateY(-1px); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.button-secondary:hover:not(:disabled), .button-ghost:hover:not(:disabled) { border-color: var(--line-strong); background: #f6f7f9; }
.button-soft { color: var(--ink); background: #fff; border-color: rgba(11,13,18,.09); box-shadow: 0 7px 22px rgba(18,27,44,.05); }
.button-ghost { color: #515867; background: transparent; border-color: transparent; }
.button-light-on-dark { color: #0b0d12; background: #fff; border-color: rgba(255,255,255,.15); }
.button-light-on-dark:hover { background: var(--mint); }
.button-lg { min-height: 52px; padding-inline: 24px; }
.button-xl { min-height: 56px; border-radius: 16px; padding-inline: 23px; }
.button-full { width: 100%; }
.text-link { color: var(--primary); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; text-decoration: none; font-size: 13px; }
.text-link-arrow img { width: 15px; height: 15px; transition: transform .18s ease; }
.text-link-arrow:hover img { transform: translateX(-3px); }
.eyebrow { display: block; color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .04em; margin-bottom: 5px; text-transform: uppercase; }
.signal-pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; border: 1px solid rgba(11,13,18,.09); border-radius: 999px; background: rgba(255,255,255,.78); padding: 7px 12px; color: #4b5260; font-size: 11px; font-weight: 800; backdrop-filter: blur(10px); }
.signal-pill.dark { color: #d8dce3; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(85,239,165,.12); }

/* Marketing / landing */
.marketing-body { background: var(--bg-warm); overflow-x: hidden; }
.marketing-header { min-height: 86px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid rgba(11,13,18,.07); }
.marketing-header > .button { justify-self: end; }
.marketing-nav { display: flex; align-items: center; gap: 30px; }
.marketing-nav a { color: #616875; text-decoration: none; font-size: 12px; font-weight: 750; }
.marketing-nav a:hover { color: var(--ink); }
.hero-v2 { min-height: 720px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: 70px; padding-block: 70px 85px; position: relative; }
.hero-v2::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(37,92,255,.10), rgba(37,92,255,0) 68%); inset: 0 auto auto 43%; pointer-events: none; }
.hero-v2-copy { position: relative; z-index: 1; }
.hero-v2-copy h1 { font-size: clamp(46px, 6vw, 78px); line-height: 1.04; letter-spacing: -.065em; margin: 18px 0 26px; max-width: 640px; font-weight: 900; }
.hero-v2-copy h1 span { color: var(--primary); }
.hero-v2-copy > p { color: #5d6572; font-size: 17px; max-width: 620px; margin: 0; }
.hero-v2-actions { display: flex; align-items: center; gap: 11px; margin-top: 34px; }
.hero-proof { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(11,13,18,.08); max-width: 620px; }
.hero-proof span { display: grid; gap: 1px; }
.hero-proof b { font-size: 13px; }
.hero-proof small { color: var(--muted); font-size: 10px; }
.hero-workspace { min-height: 570px; border-radius: 32px; padding: 22px; position: relative; overflow: hidden; color: #f5f7fb; background: #0b0d12; box-shadow: 0 45px 100px rgba(15,22,37,.24); isolation: isolate; }
.workspace-ambient { position: absolute; width: 420px; height: 420px; border-radius: 50%; inset: -180px -100px auto auto; background: radial-gradient(circle, rgba(37,92,255,.45), rgba(37,92,255,0) 70%); z-index: -1; }
.hero-workspace::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset: auto auto -140px -70px; background: radial-gradient(circle, rgba(85,239,165,.16), rgba(85,239,165,0) 72%); z-index: -1; }
.workspace-topline { display: flex; justify-content: space-between; align-items: center; color: #9ca4b3; font-size: 10px; }
.workspace-brand-mini { display: flex; align-items: center; gap: 8px; }
.workspace-brand-mini span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.workspace-brand-mini strong { color: #fff; font-size: 11px; }
.workspace-credit { border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 5px 9px; background: rgba(255,255,255,.05); }
.workspace-heading { display: grid; gap: 1px; margin-top: 40px; }
.workspace-heading span { color: #8e96a6; font-size: 11px; }
.workspace-heading strong { font-size: 19px; }
.composer-demo { margin-top: 15px; border: 1px solid rgba(255,255,255,.10); border-radius: 20px; padding: 17px; background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.composer-demo p { min-height: 62px; margin: 0; color: #d9dde5; font-size: 13px; }
.composer-demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; }
.demo-modes { display: flex; gap: 6px; }
.demo-modes a { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 5px 9px; color: #8f98a8; border-radius: 9px; text-decoration: none; font-size: 9px; font-weight: 800; }
.demo-modes a.active { color: #fff; background: rgba(255,255,255,.10); }
.demo-modes img { width: 14px; height: 14px; filter: brightness(0) invert(.75); }
.demo-modes a.active img { filter: brightness(0) invert(1); }
.demo-send { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); }
.demo-send img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.workspace-preview-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 12px; margin-top: 15px; }
.preview-tile { min-height: 190px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); overflow: hidden; }
.preview-tile footer { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; color: #8f98a8; font-size: 9px; }
.preview-tile footer b { color: var(--mint); font-size: 9px; }
.preview-art { height: 150px; position: relative; overflow: hidden; background: linear-gradient(145deg, #2e5bff 0%, #873eff 45%, #ff7e5f 100%); }
.preview-art::before { content: ""; position: absolute; width: 125px; height: 125px; border-radius: 50%; background: #ffe39a; top: 24px; right: 30px; filter: blur(.2px); }
.preview-art span:nth-child(1) { position: absolute; width: 125px; height: 95px; border-radius: 60px 60px 18px 18px; background: #101419; bottom: -18px; left: 22px; transform: rotate(-7deg); }
.preview-art span:nth-child(2) { position: absolute; width: 80px; height: 80px; border-radius: 24px; border: 2px solid rgba(255,255,255,.55); top: 20px; left: 22px; transform: rotate(10deg); }
.preview-art i { position: absolute; width: 45px; height: 45px; border-radius: 50%; background: var(--mint); bottom: 25px; right: 55px; box-shadow: 0 0 40px rgba(85,239,165,.55); }
.preview-copy { padding: 15px 14px 0; }
.preview-kicker { color: #7f8797; font-size: 9px; }
.copy-lines { display: grid; gap: 8px; margin-top: 17px; }
.copy-lines i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.11); }
.copy-lines i:nth-child(2) { width: 82%; }
.copy-lines i:nth-child(3) { width: 91%; }
.copy-lines i:nth-child(4) { width: 64%; }
.preview-copy footer { padding-inline: 0; margin-top: 22px; }
.model-marquee { border-block: 1px solid rgba(11,13,18,.08); background: rgba(255,255,255,.48); }
.model-marquee-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; color: #707785; font-size: 12px; font-weight: 800; white-space: nowrap; }
.model-marquee-inner i { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #c8cdd4; }
.capabilities-section { padding-block: 120px; }
.section-intro { display: grid; grid-template-columns: .6fr 1.35fr 1fr; align-items: start; gap: 32px; margin-bottom: 50px; }
.section-index { color: #8a919c; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.section-intro h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -.04em; margin: 0; }
.section-intro p { color: var(--muted); margin: 7px 0 0; font-size: 14px; }
.capability-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.capability-card { min-height: 330px; border-radius: 26px; padding: 28px; border: 1px solid rgba(11,13,18,.08); background: #fff; position: relative; overflow: hidden; }
.capability-card-wide { grid-column: span 2; min-height: 400px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.dark-card { color: #fff; background: #0b0d12; border-color: transparent; }
.capability-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.08); margin-bottom: 40px; }
.capability-icon.light { background: #f1f3f6; }
.capability-icon img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
.capability-icon.light img { filter: none; }
.cap-label { color: #8b93a2; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.capability-card h3 { font-size: 27px; line-height: 1.25; letter-spacing: -.025em; margin: 8px 0 11px; }
.capability-card p { color: #747c89; max-width: 540px; margin: 0; font-size: 13px; }
.dark-card p { color: #9ba3b2; }
.mini-studio-visual { border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.05); padding: 25px; min-height: 210px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mini-line { height: 11px; width: 70%; border-radius: 99px; background: rgba(255,255,255,.10); }
.mini-line.long { width: 92%; }
.mini-studio-visual div { display: flex; gap: 8px; margin-top: 18px; }
.mini-studio-visual b { font-size: 9px; color: #7f8795; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; padding: 7px 10px; }
.mini-studio-visual b.on { color: #10141a; background: var(--mint); border-color: var(--mint); }
.metric-chip { position: absolute; bottom: 25px; left: 28px; right: 28px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: baseline; justify-content: space-between; }
.metric-chip strong { font-size: 22px; }
.metric-chip span { color: var(--muted); font-size: 10px; }
.library-stack { position: absolute; bottom: 24px; left: 28px; right: 28px; height: 90px; }
.library-stack i { position: absolute; inset-inline: 0; height: 52px; border-radius: 15px; border: 1px solid var(--line); background: #fbfbfc; }
.library-stack i:nth-child(1) { top: 34px; transform: scale(.92); opacity: .65; }
.library-stack i:nth-child(2) { top: 18px; transform: scale(.96); opacity: .8; }
.library-stack i:nth-child(3) { top: 0; box-shadow: 0 10px 30px rgba(18,27,44,.08); }
.workflow-section { background: #0b0d12; color: #fff; padding-block: 110px; }
.workflow-shell { display: grid; grid-template-columns: .9fr 1.6fr; gap: 70px; }
.compact-intro { display: block; margin: 0; }
.compact-intro .section-index { color: #747c89; }
.compact-intro h2 { margin-top: 18px; font-size: 46px; }
.workflow-steps { border-top: 1px solid rgba(255,255,255,.10); }
.workflow-steps article { display: grid; grid-template-columns: 45px 48px 1fr; align-items: center; column-gap: 18px; padding: 27px 0; border-bottom: 1px solid rgba(255,255,255,.10); }
.workflow-steps article > span { color: #657080; font-size: 10px; }
.workflow-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.07); }
.workflow-icon img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.workflow-steps h3 { grid-column: 3; margin: 0; font-size: 17px; }
.workflow-steps p { grid-column: 3; margin: 3px 0 0; color: #858e9d; font-size: 11px; }
.clarity-section { padding-block: 110px; }
.clarity-card { min-height: 500px; border-radius: 30px; background: #fff; border: 1px solid rgba(11,13,18,.08); display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; }
.clarity-copy { padding: 55px; }
.clarity-copy h2 { font-size: 52px; line-height: 1.05; letter-spacing: -.04em; margin: 15px 0 20px; }
.clarity-copy p { color: var(--muted); font-size: 14px; max-width: 460px; }
.clarity-copy .text-link-arrow { margin-top: 25px; }
.clarity-visual { height: 100%; min-height: 500px; background: #eef2ff; position: relative; display: grid; place-items: center; overflow: hidden; }
.clarity-visual::before, .clarity-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(37,92,255,.15); }
.clarity-visual::before { width: 380px; height: 380px; }
.clarity-visual::after { width: 250px; height: 250px; }
.credit-orbit { width: 205px; height: 205px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-md); display: grid; place-items: center; align-content: center; gap: 1px; z-index: 1; }
.credit-orbit span, .credit-orbit small { color: var(--muted); font-size: 10px; }
.credit-orbit strong { font-size: 25px; }
.quote-ticket { position: absolute; bottom: 55px; right: 45px; z-index: 2; min-width: 210px; border-radius: 18px; color: #fff; background: #0b0d12; padding: 16px 18px; box-shadow: var(--shadow-md); }
.quote-ticket span, .quote-ticket small { display: block; color: #8f98a8; font-size: 9px; }
.quote-ticket strong { display: block; margin: 3px 0; font-size: 17px; }
.final-cta { margin-bottom: 90px; min-height: 360px; border-radius: 32px; color: #fff; background: #0b0d12; padding: 55px; display: flex; align-items: end; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.final-cta::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(37,92,255,.38), rgba(37,92,255,0) 70%); left: -70px; top: -130px; }
.final-cta h2 { font-size: 52px; line-height: 1.05; letter-spacing: -.04em; margin: 18px 0 0; }
.final-cta > * { position: relative; z-index: 1; }
.marketing-footer-v2 { min-height: 120px; border-top: 1px solid rgba(11,13,18,.08); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: 11px; }

/* Authentication */
.auth-screen-v2 { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #0b0d12; }
.auth-experience { min-height: 100vh; color: #fff; padding: 42px 52px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.auth-experience::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; top: -280px; left: -220px; background: radial-gradient(circle, rgba(37,92,255,.42), rgba(37,92,255,0) 70%); }
.auth-brand { position: relative; z-index: 1; color: #fff; }
.auth-brand .brand-copy small { color: #858d9b; }
.auth-experience-copy { margin: auto 0 30px; position: relative; z-index: 1; }
.auth-experience-copy h1 { font-size: clamp(48px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -.055em; margin: 20px 0 20px; }
.auth-experience-copy p { color: #9098a7; max-width: 520px; font-size: 14px; }
.auth-demo-stack { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; position: relative; z-index: 1; }
.auth-demo-card { border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.055); min-height: 88px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.auth-demo-card.main b { margin-inline-start: auto; color: var(--mint); font-size: 9px; }
.auth-demo-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(255,255,255,.08); }
.auth-demo-icon img { width: 19px; filter: brightness(0) invert(1); }
.auth-demo-card small { color: #7f8795; font-size: 9px; }
.auth-demo-card strong { display: block; font-size: 11px; }
.auth-demo-thumb { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg,#2f6bff,#ff7b63); }
.auth-card-v2 { min-height: 100vh; padding: 11vh max(7vw,45px); background: #fff; display: flex; flex-direction: column; justify-content: center; border: 0; border-radius: 0; box-shadow: none; width: auto; }
.auth-mobile-brand { display: none; }
.auth-card-v2 .section-heading h1 { font-size: 33px; letter-spacing: -.03em; margin: 5px 0 10px; }
.auth-card-v2 .section-heading p { max-width: 430px; }
.auth-footnote { color: var(--muted); text-align: center; font-size: 10px; margin: 16px 0 0; }
.section-heading h1, .section-heading h2 { margin: 4px 0 9px; line-height: 1.3; }
.section-heading p { color: var(--muted); margin: 0; font-size: 13px; }
.section-heading.compact { margin-bottom: 26px; }
.stack-form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; font-weight: 800; color: #343a45; font-size: 12px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #dce1e7; border-radius: 13px; background: #fff; color: var(--ink); padding: 12px 13px; outline: none; transition: .15s ease; }
.field-lg input { min-height: 54px; padding-inline: 16px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7191ff; box-shadow: 0 0 0 4px rgba(37,92,255,.08); }
.field textarea { resize: vertical; min-height: 120px; }
.otp-field input { direction: ltr; text-align: center; font-size: 22px; letter-spacing: .18em; }
.form-error { border: 1px solid #f3c9cd; background: var(--danger-soft); color: var(--danger); border-radius: 12px; padding: 10px 12px; margin: 0; font-size: 11px; }
.global-status { position: fixed; z-index: 1000; inset: 18px auto auto 18px; max-width: min(440px, calc(100vw - 36px)); border-radius: 14px; padding: 12px 16px; color: #fff; background: #11151c; box-shadow: var(--shadow-md); font-size: 12px; }
.global-status.error { background: #841f27; }

/* App shell */
.app-body { min-height: 100vh; background: #f4f6f8; }
.app-shell-v2 { min-height: 100vh; }
.sidebar-v2 { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--sidebar); z-index: 30; display: flex; flex-direction: column; padding: 20px 14px; background: #0b0d12; color: #fff; }
.sidebar-brand { padding: 2px 7px 20px; }
.sidebar-v2 .brand-copy small { color: #6f7785; }
.new-creation-button { min-height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #0a0d11; background: var(--mint); text-decoration: none; font-size: 12px; font-weight: 900; margin-bottom: 24px; transition: transform .18s var(--ease), filter .18s ease; }
.new-creation-button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.new-creation-button img { width: 17px; height: 17px; }
.side-nav-v2 { display: grid; gap: 4px; }
.nav-section-label { color: #596170; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; padding: 0 11px 6px; }
.nav-section-gap { margin-top: 18px; }
.side-nav-v2 a { display: flex; align-items: center; gap: 11px; min-height: 42px; border-radius: 11px; padding: 9px 10px; color: #8f98a7; text-decoration: none; font-size: 12px; font-weight: 800; transition: background .15s ease, color .15s ease; }
.side-nav-v2 a:hover { color: #fff; background: rgba(255,255,255,.055); }
.side-nav-v2 a.active { color: #fff; background: rgba(255,255,255,.09); box-shadow: inset 2px 0 0 var(--mint); }
.nav-icon-svg { width: 19px; height: 19px; filter: brightness(0) invert(.63); }
.side-nav-v2 a.active .nav-icon-svg, .side-nav-v2 a:hover .nav-icon-svg { filter: brightness(0) invert(1); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 10px; }
.mini-wallet-v2 { display: grid; grid-template-columns: 8px 1fr 14px; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 11px; background: rgba(255,255,255,.045); text-decoration: none; }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(85,239,165,.09); }
.mini-wallet-v2 div { min-width: 0; }
.mini-wallet-v2 span:not(.wallet-dot) { display: block; color: #6e7685; font-size: 8px; }
.mini-wallet-v2 strong { display: block; color: #fff; font-size: 10px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-wallet-v2 > img { filter: brightness(0) invert(.45); }
.sidebar-logout { border: 0; background: transparent; color: #626a78; min-height: 35px; text-align: right; font-size: 10px; padding: 6px 9px; border-radius: 9px; }
.sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.04); }
.app-main-v2 { margin-inline-start: var(--sidebar); min-height: 100vh; padding: 0 34px 55px; }
.topbar-v2 { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.topbar-v2 h1 { font-size: 23px; margin: 0; letter-spacing: -.025em; }
.page-identity .eyebrow { color: #8a919c; margin-bottom: 0; }
.topbar-actions { display: flex; gap: 9px; align-items: center; }
.wallet-pill-v2, .user-chip-v2 { min-height: 43px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.86); border-radius: 13px; padding: 7px 10px; text-decoration: none; }
.wallet-pill-v2 div, .user-chip-v2 div { display: grid; line-height: 1.25; }
.wallet-pill-v2 small, .user-chip-v2 small { color: var(--muted); font-size: 8px; }
.wallet-pill-v2 strong { color: var(--ink); font-size: 10px; }
.user-chip-v2 span:not(.avatar) { font-size: 10px; }
.avatar { width: 29px; height: 29px; border-radius: 10px; background: #11151c; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 10px; }
.mobile-header-v2, .mobile-dock { display: none; }
.page-section { max-width: 1480px; margin-inline: auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.panel-flat { box-shadow: none; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header h2 { font-size: 17px; margin: 0; letter-spacing: -.02em; }

/* Dashboard */
.command-center { min-height: 285px; border-radius: 27px; padding: 34px; color: #fff; background: #0b0d12; display: grid; grid-template-columns: .78fr 1.22fr; gap: 45px; align-items: center; position: relative; overflow: hidden; margin-bottom: 38px; }
.command-center::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; inset: -170px auto auto -80px; background: radial-gradient(circle, rgba(37,92,255,.45), rgba(37,92,255,0) 70%); }
.command-center-copy, .quick-composer { position: relative; z-index: 1; }
.command-kicker { color: var(--mint); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.command-center h2 { font-size: 31px; line-height: 1.14; letter-spacing: -.035em; margin: 8px 0 10px; }
.command-center p { color: #858e9d; margin: 0; font-size: 11px; max-width: 410px; }
.quick-composer { min-height: 165px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.055); border-radius: 20px; padding: 14px; }
.quick-composer textarea { width: 100%; min-height: 96px; resize: none; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; padding: 4px; }
.quick-composer textarea::placeholder { color: #667080; }
.quick-composer-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 10px; }
.quick-composer-footer > span { color: #687181; font-size: 9px; }
.quick-category-actions { display: flex; gap: 5px; }
.quick-category-actions button { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 9px; color: #a2a9b5; background: rgba(255,255,255,.07); min-height: 30px; padding: 5px 8px; font-size: 9px; font-weight: 800; }
.quick-category-actions button:hover { color: #0b0d12; background: var(--mint); }
.quick-category-actions img { width: 13px; height: 13px; filter: brightness(0) invert(.7); }
.quick-category-actions button:hover img { filter: none; }
.section-row-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-row-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.category-grid-v2 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 30px; }
.category-card { min-height: 154px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 17px; border: 1px solid var(--line); background: #fff; border-radius: 18px; text-decoration: none; transition: transform .18s var(--ease), border-color .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,27,44,.07); border-color: #ccd4df; }
.category-card-top { display: flex; align-items: center; justify-content: space-between; }
.category-icon { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; background: #f0f3f6; color: var(--ink); }
.category-icon img { width: 19px; height: 19px; }
.category-arrow { width: 18px; height: 18px; opacity: .35; }
.category-card:hover .category-arrow { opacity: 1; transform: translateX(-2px); }
.category-card h3 { margin: 0; font-size: 14px; }
.category-card p { margin: 3px 0 0; font-size: 9px; color: var(--muted); }
.dashboard-grid-v2 { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(270px,.72fr); gap: 14px; }
.recent-panel { min-height: 330px; }
.wallet-glance { min-height: 330px; border-radius: 22px; padding: 24px; color: #fff; background: linear-gradient(145deg,#10141a,#1c2430); position: relative; overflow: hidden; }
.wallet-glance::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(37,92,255,.35), transparent 70%); bottom: -100px; left: -70px; }
.wallet-glance > * { position: relative; z-index: 1; }
.wallet-glance-top { display: flex; justify-content: space-between; color: #929aa8; font-size: 9px; }
.wallet-live-dot { display: inline-flex; align-items: center; gap: 5px; color: #79e7ad; font-size: 8px; }
.wallet-live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.wallet-glance > strong { display: block; font-size: 27px; margin-top: 20px; }
.wallet-glance > small { color: #767f8e; font-size: 9px; }
.wallet-glance-line { height: 4px; margin: 23px 0 18px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.wallet-glance-line span { display: block; width: 72%; height: 100%; background: var(--mint); border-radius: inherit; }
.wallet-glance p { color: #808998; font-size: 10px; line-height: 1.8; margin: 0 0 22px; }

/* History / library */
.history-list-v2 { display: grid; gap: 8px; }
.history-item { display: grid; grid-template-columns: 58px minmax(180px,1.35fr) minmax(90px,.42fr) minmax(100px,.48fr) auto; align-items: center; gap: 13px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: border-color .15s ease, background .15s ease; }
.history-item:hover { border-color: #cfd5dd; background: #fcfcfd; }
.history-preview { width: 58px; height: 58px; border-radius: 13px; background: #eef1f5; display: grid; place-items: center; overflow: hidden; position: relative; }
.history-preview img { width: 21px; height: 21px; opacity: .78; }
.history-preview.image { background: linear-gradient(135deg,#dfe9ff,#f6e4ff); }
.history-preview.video { background: linear-gradient(135deg,#e5fff1,#dfeeff); }
.history-preview.chat { background: #f0f2f5; }
.history-item-title { min-width: 0; }
.history-item-title strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.history-item-title small, .history-cell small { color: var(--muted); display: block; font-size: 8px; margin-top: 2px; }
.history-cell strong { font-size: 10px; }
.history-actions { display: flex; gap: 7px; }
.history-actions .button { min-height: 34px; padding: 6px 11px; font-size: 9px; }
.library-header, .wallet-page-header, .studio-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.library-header h2, .wallet-page-header h2, .studio-intro h2 { font-size: 30px; letter-spacing: -.035em; margin: 4px 0 5px; }
.library-header p, .wallet-page-header p, .studio-intro p { color: var(--muted); margin: 0; font-size: 11px; }
.library-panel { padding: 18px; }
.library-toolbar { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; color: var(--muted); font-size: 9px; }
.library-toolbar > div { display: flex; gap: 5px; }
.filter-pill { border-radius: 999px; padding: 5px 9px; background: #f1f3f5; color: #737a87; }
.filter-pill.active { color: #fff; background: #12161d; }
.pagination-v2 { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 20px; color: var(--muted); font-size: 10px; }
.pagination-v2 button { border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 40px; min-height: 36px; font-size: 10px; }
.empty-row { text-align: center; padding: 45px 20px; color: var(--muted); font-size: 11px; }

/* Studio */
.studio-balance { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 9px 12px; min-width: 150px; }
.studio-balance span { color: var(--muted); display: block; font-size: 8px; }
.studio-balance strong { display: block; margin-top: 1px; font-size: 10px; }
.studio-layout-v2 { display: grid; grid-template-columns: minmax(390px,.86fr) minmax(470px,1.14fr); gap: 14px; align-items: start; }
.studio-builder { min-width: 0; }
.category-tabs-v2 { display: flex; gap: 5px; padding: 4px; border-radius: 14px; background: #e9edf1; margin-bottom: 13px; overflow-x: auto; }
.category-tabs-v2 button { min-width: 92px; flex: 1; border: 0; min-height: 39px; padding: 7px 10px; border-radius: 10px; background: transparent; color: #717987; font-weight: 800; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.category-tabs-v2 button img { width: 15px; height: 15px; opacity: .65; }
.category-tabs-v2 button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(18,27,44,.07); }
.category-tabs-v2 button.active img { opacity: 1; }
.model-picker-block { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 15px; margin-bottom: 12px; }
.inline-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.inline-heading span { font-size: 11px; font-weight: 900; }
.inline-heading small { color: var(--muted); font-size: 8px; }
.model-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.model-option { appearance: none; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; min-height: 76px; padding: 10px; text-align: right; display: grid; gap: 5px; transition: .15s ease; }
.model-option:hover { border-color: #bfc7d2; background: #fff; }
.model-option.active { border-color: #7897ff; background: #eef3ff; box-shadow: inset 0 0 0 1px #7897ff; }
.model-option-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.model-option strong { font-size: 10px; }
.model-option small { color: var(--muted); font-size: 8px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-category-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.native-model-field { margin-top: 9px; }
@media (min-width: 761px) { .native-model-field { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; } }
.model-note-v2 { color: var(--muted); font-size: 9px; padding: 9px 2px 0; }
.studio-form-v2 { display: grid; gap: 11px; }
.prompt-composer { display: block; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
.prompt-composer:focus-within { border-color: #9bb0ff; box-shadow: 0 0 0 4px rgba(37,92,255,.06); }
.prompt-label { display: block; color: #3d4450; font-size: 10px; font-weight: 900; margin-bottom: 8px; }
.prompt-composer textarea { width: 100%; min-height: 145px; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); font: inherit; font-size: 12px; line-height: 1.9; padding: 0; }
.prompt-composer textarea::placeholder { color: #a5abb5; }
.prompt-hint { display: block; color: #9aa1ad; font-size: 8px; border-top: 1px solid #eef0f3; padding-top: 8px; }
.advanced-settings { border: 1px solid var(--line); border-radius: 15px; background: #fff; overflow: hidden; }
.advanced-settings summary { list-style: none; min-height: 48px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.advanced-settings summary::-webkit-details-marker { display: none; }
.advanced-settings summary span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 900; }
.advanced-settings summary img { width: 15px; height: 15px; }
.advanced-settings summary small { color: var(--muted); font-size: 8px; }
.dynamic-fields-v2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 13px 13px; }
.dynamic-fields-v2:empty { display: none; }
.upload-drop-v2 { min-height: 120px; border: 1px dashed #bfc6d0; border-radius: 16px; display: grid; place-items: center; align-content: center; text-align: center; padding: 17px; background: #fafbfc; cursor: pointer; }
.upload-drop-v2:hover { border-color: #7897ff; background: #f5f7ff; }
.upload-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #eef1f5; margin-bottom: 6px; }
.upload-icon img { width: 17px; }
.upload-drop-v2 strong { font-size: 10px; }
.upload-drop-v2 > span:last-child { color: var(--muted); font-size: 8px; margin-top: 3px; }
.uploaded-asset { margin-top: 8px; padding: 9px 11px; background: var(--success-soft); color: var(--success); border-radius: 11px; font-size: 9px; word-break: break-word; }
.studio-submit-bar { display: grid; grid-template-columns: 1fr 170px; gap: 9px; align-items: stretch; }
.quote-box-v2 { border: 1px solid var(--line); border-radius: 15px; background: #fff; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.quote-box-v2 > span { color: var(--muted); font-size: 8px; }
.quote-box-v2 strong { grid-row: 2; font-size: 15px; }
.quote-refresh { grid-column: 2; grid-row: 1 / span 2; border: 0; background: #f0f2f5; color: #737a87; border-radius: 9px; min-height: 31px; padding: 5px 8px; font-size: 8px; }
.button-generate { min-height: 64px; border-radius: 15px; }
.result-stage { min-height: 650px; border-radius: 22px; color: #fff; background: #0b0d12; padding: 20px; position: sticky; top: 16px; overflow: hidden; }
.result-stage::before { content: ""; position: absolute; width: 310px; height: 310px; border-radius: 50%; top: -180px; left: -90px; background: radial-gradient(circle, rgba(37,92,255,.28), transparent 70%); }
.result-stage > * { position: relative; z-index: 1; }
.result-stage-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,.08); }
.result-stage-header .eyebrow { color: #687181; margin: 0; }
.result-stage-header h2 { margin: 1px 0 0; font-size: 17px; }
.status-badge { display: inline-flex; min-height: 26px; align-items: center; border-radius: 999px; padding: 4px 9px; font-size: 8px; font-weight: 900; }
.status-badge.neutral { background: #eef0f3; color: #686f7b; }
.result-stage .status-badge.neutral { color: #a6aebb; background: rgba(255,255,255,.08); }
.status-badge.processing { background: #eaf0ff; color: #315be1; }
.status-badge.success { background: var(--success-soft); color: var(--success); }
.status-badge.warning { background: var(--warning-soft); color: var(--warning); }
.status-badge.danger { background: var(--danger-soft); color: var(--danger); }
.empty-state-v2 { min-height: 540px; display: grid; place-items: center; align-content: center; text-align: center; color: #7f8795; padding: 40px; }
.empty-state-v2 h3 { color: #f2f4f7; margin: 17px 0 4px; font-size: 15px; }
.empty-state-v2 p { margin: 0; font-size: 9px; }
.empty-canvas { width: 130px; height: 130px; border: 1px solid rgba(255,255,255,.08); border-radius: 27px; position: relative; background: rgba(255,255,255,.035); transform: rotate(-4deg); }
.empty-canvas::before { content: ""; position: absolute; inset: 17px; border: 1px dashed rgba(255,255,255,.10); border-radius: 18px; }
.empty-canvas span { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); top: 29px; right: 30px; box-shadow: 0 0 32px rgba(37,92,255,.45); }
.empty-canvas i { position: absolute; width: 54px; height: 22px; border-radius: 99px; background: rgba(255,255,255,.09); bottom: 31px; left: 29px; }
.empty-canvas b { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); bottom: 34px; right: 29px; }
.generation-progress-v2 { min-height: 540px; display: grid; place-items: center; align-content: center; text-align: center; }
.generation-progress-v2 h3 { margin: 20px 0 4px; font-size: 15px; }
.generation-progress-v2 p { color: #788190; margin: 0; font-size: 9px; }
.progress-orbit-v2 { width: 62px; height: 62px; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--mint); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.generation-result-v2 { min-height: 535px; padding-top: 16px; }
.chat-result { padding: 19px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: rgba(255,255,255,.05); color: #e4e7ec; white-space: pre-wrap; word-break: break-word; font-size: 11px; line-height: 1.95; }
.asset-result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.asset-result-card { border: 1px solid rgba(255,255,255,.09); border-radius: 15px; padding: 14px; display: grid; gap: 9px; background: rgba(255,255,255,.045); }
.asset-result-card small { color: #7f8795; font-size: 8px; }
.asset-result-card .button { background: #fff; border: 0; color: #10141a; min-height: 36px; font-size: 9px; }

/* Wallet */
.wallet-grid-v2 { display: grid; grid-template-columns: minmax(300px,.78fr) minmax(390px,1.22fr); gap: 14px; margin-bottom: 14px; }
.wallet-balance-card-v2 { min-height: 390px; border-radius: 24px; padding: 25px; color: #fff; background: #0b0d12; position: relative; overflow: hidden; }
.wallet-balance-card-v2::after { content: ""; position: absolute; width: 270px; height: 270px; border-radius: 50%; bottom: -130px; left: -90px; background: radial-gradient(circle, rgba(37,92,255,.4), transparent 70%); }
.wallet-balance-card-v2 > * { position: relative; z-index: 1; }
.wallet-balance-head { display: flex; justify-content: space-between; align-items: center; color: #8992a1; font-size: 9px; }
.wallet-metric { padding: 54px 0 36px; }
.wallet-metric strong { display: block; font-size: 34px; letter-spacing: -.03em; }
.wallet-metric small { color: #6f7887; font-size: 9px; }
.wallet-mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.wallet-mini-grid div { padding: 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; }
.wallet-mini-grid span { display: block; color: #737c8b; font-size: 8px; }
.wallet-mini-grid strong { display: block; margin-top: 3px; font-size: 10px; }
.wallet-pattern { position: absolute; inset: auto 25px 18px auto; display: flex; gap: 5px; opacity: .25; }
.wallet-pattern i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.topup-card { padding: 24px; }
.topup-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.topup-presets button { border: 1px solid var(--line); border-radius: 10px; background: #fff; min-height: 35px; color: #676e7b; font-size: 9px; font-weight: 800; }
.topup-presets button:hover { color: var(--primary); border-color: #aabdff; background: #f4f7ff; }
.gateway-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.gateway-heading span { font-size: 10px; font-weight: 900; }
.gateway-heading small { color: var(--muted); font-size: 8px; }
.gateway-list-v2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.gateway-option { position: relative; }
.gateway-option input { position: absolute; opacity: 0; pointer-events: none; }
.gateway-option label { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 10px; cursor: pointer; background: #fff; }
.gateway-option input:checked + label { border-color: #6f90ff; background: #eef3ff; color: #123cba; box-shadow: inset 0 0 0 1px #6f90ff; }
.gateway-option strong { font-size: 10px; }
.gateway-option small { display: block; color: var(--muted); font-size: 8px; margin-top: 2px; }
.wallet-history-panel { margin-top: 0; }
.topup-history-v2 { display: grid; }
.topup-row { display: grid; grid-template-columns: minmax(140px,1fr) minmax(110px,.6fr) minmax(100px,.5fr) minmax(90px,.5fr); gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 5px; }
.topup-row:last-child { border-bottom: 0; }
.topup-row small { color: var(--muted); display: block; font-size: 8px; }
.topup-row strong { font-size: 10px; }

/* Responsive */
@media (max-width: 1180px) {
  .hero-v2 { grid-template-columns: 1fr 1fr; gap: 35px; }
  .category-grid-v2 { grid-template-columns: repeat(2,1fr); }
  .studio-layout-v2 { grid-template-columns: 1fr; }
  .result-stage { position: static; min-height: 540px; }
  .empty-state-v2, .generation-progress-v2 { min-height: 430px; }
}

@media (max-width: 980px) {
  .marketing-header { grid-template-columns: 1fr auto; }
  .marketing-nav { display: none; }
  .hero-v2 { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-v2-copy { text-align: center; }
  .hero-v2-copy .signal-pill { margin-inline: auto; }
  .hero-v2-copy > p, .hero-proof { margin-inline: auto; }
  .hero-v2-actions { justify-content: center; }
  .hero-workspace { max-width: 720px; margin-inline: auto; width: 100%; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; }
  .section-intro h2 { max-width: 680px; }
  .section-intro p { max-width: 650px; }
  .workflow-shell { grid-template-columns: 1fr; gap: 45px; }
  .clarity-card { grid-template-columns: 1fr; }
  .clarity-visual { min-height: 430px; }
  .auth-screen-v2 { grid-template-columns: 1fr; background: #fff; }
  .auth-experience { display: none; }
  .auth-card-v2 { width: min(520px,100%); min-height: 100vh; margin-inline: auto; padding: 9vh 30px; }
  .auth-mobile-brand { display: block; margin-bottom: 80px; }
  :root { --sidebar: 0px; }
  .sidebar-v2 { transform: translateX(110%); width: 244px; transition: transform .22s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar-v2.open { transform: translateX(0); }
  .app-main-v2 { margin-inline-start: 0; padding: 0 18px 95px; }
  .mobile-header-v2 { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: rgba(244,246,248,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
  .icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: #fff; display: grid; place-items: center; align-content: center; gap: 5px; }
  .icon-button span { display: block; width: 16px; height: 1.5px; background: #141820; }
  .mobile-dock { position: fixed; z-index: 25; bottom: 10px; left: 12px; right: 12px; min-height: 62px; border: 1px solid rgba(255,255,255,.09); border-radius: 19px; background: rgba(11,13,18,.94); box-shadow: 0 20px 50px rgba(11,13,18,.22); backdrop-filter: blur(16px); display: grid; grid-template-columns: repeat(4,1fr); padding: 6px; }
  .mobile-dock a { display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 13px; color: #78818f; text-decoration: none; font-size: 8px; font-weight: 800; }
  .mobile-dock a img { width: 18px; height: 18px; filter: brightness(0) invert(.55); }
  .mobile-dock a.active { color: #fff; background: rgba(255,255,255,.08); }
  .mobile-dock a.active img { filter: brightness(0) invert(1); }
  .topbar-v2 { min-height: 78px; margin-bottom: 25px; }
  .user-chip-v2 { display: none; }
  .command-center { grid-template-columns: 1fr; gap: 25px; }
  .dashboard-grid-v2 { grid-template-columns: 1fr; }
  .wallet-glance { min-height: 300px; }
  .wallet-grid-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px,1240px); }
  .marketing-header { min-height: 74px; }
  .marketing-header .brand-copy small { display: none; }
  .marketing-header .button { min-height: 39px; padding: 8px 11px; font-size: 10px; }
  .hero-v2 { min-height: auto; padding-block: 45px 60px; }
  .hero-v2-copy h1 { font-size: 45px; }
  .hero-v2-copy > p { font-size: 14px; }
  .hero-v2-actions { flex-direction: column; align-items: stretch; }
  .hero-proof { grid-template-columns: 1fr; text-align: right; gap: 12px; }
  .hero-workspace { min-height: 490px; padding: 15px; border-radius: 24px; }
  .workspace-preview-grid { grid-template-columns: 1fr; }
  .preview-copy { display: none; }
  .model-marquee-inner { justify-content: flex-start; overflow: hidden; }
  .capabilities-section { padding-block: 80px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card-wide { grid-column: auto; grid-template-columns: 1fr; min-height: 520px; }
  .section-intro h2, .compact-intro h2 { font-size: 38px; }
  .workflow-section { padding-block: 80px; }
  .workflow-steps article { grid-template-columns: 34px 42px 1fr; gap: 10px; }
  .clarity-section { padding-block: 80px; }
  .clarity-copy { padding: 30px 22px; }
  .clarity-copy h2 { font-size: 40px; }
  .clarity-visual { min-height: 370px; }
  .quote-ticket { right: 20px; bottom: 30px; }
  .final-cta { min-height: 390px; padding: 30px 22px; flex-direction: column; align-items: stretch; justify-content: end; }
  .final-cta h2 { font-size: 40px; }
  .marketing-footer-v2 { align-items: flex-start; flex-direction: column; justify-content: center; }
  .app-main-v2 { padding-inline: 12px; }
  .topbar-v2 { align-items: center; }
  .topbar-actions { margin-inline-start: auto; }
  .page-identity h1 { font-size: 20px; }
  .wallet-pill-v2 { max-width: 140px; }
  .command-center { padding: 22px 17px; border-radius: 21px; }
  .command-center h2 { font-size: 27px; }
  .quick-composer-footer { align-items: flex-start; flex-direction: column; }
  .quick-category-actions { width: 100%; }
  .quick-category-actions button { flex: 1; justify-content: center; }
  .category-grid-v2 { grid-template-columns: 1fr 1fr; }
  .category-card { min-height: 135px; }
  .library-header, .wallet-page-header, .studio-intro { align-items: flex-start; flex-direction: column; }
  .library-header h2, .wallet-page-header h2, .studio-intro h2 { font-size: 25px; }
  .studio-balance { width: 100%; }
  .model-picker { grid-template-columns: 1fr; }
  .native-model-field { position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal; }
  .model-picker { display: none; }
  .dynamic-fields-v2 { grid-template-columns: 1fr; }
  .studio-submit-bar { grid-template-columns: 1fr; }
  .button-generate { min-height: 54px; }
  .result-stage { min-height: 460px; padding: 15px; border-radius: 19px; }
  .empty-state-v2, .generation-progress-v2 { min-height: 350px; }
  .history-item { grid-template-columns: 50px minmax(0,1fr) auto; }
  .history-preview { width: 50px; height: 50px; }
  .history-item .history-cell { display: none; }
  .history-actions .button { min-width: 65px; }
  .library-toolbar { align-items: flex-start; flex-direction: column; }
  .filter-pill:not(.active) { display: none; }
  .topup-presets, .gateway-list-v2 { grid-template-columns: 1fr; }
  .topup-row { grid-template-columns: 1fr 1fr; }
  .topup-row > *:nth-child(4) { text-align: end; }
  .asset-result-grid { grid-template-columns: 1fr; }
}

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

/* P10-R2 — Studio Experience */
.studio-page-r2 { --studio-dark: #0a0c11; --studio-panel: #ffffff; }
.studio-r2-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 18px; }
.studio-r2-heading-copy h2 { margin: 3px 0 5px; font-size: clamp(26px,3vw,38px); line-height: 1.22; letter-spacing: -.045em; }
.studio-r2-heading-copy p { margin: 0; max-width: 680px; color: var(--muted); font-size: 11px; }
.studio-head-meta { display: flex; align-items: stretch; gap: 8px; flex: 0 0 auto; }
.studio-live-chip { min-width: 154px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: #0b0d12; color: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(11,13,18,.11); }
.studio-live-chip small, .studio-live-chip strong { display: block; }
.studio-live-chip small { color: #687181; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.studio-live-chip strong { margin-top: 1px; font-size: 9px; }
.studio-live-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(85,239,165,.10); }
.studio-head-meta .studio-balance { min-width: 145px; margin: 0; display: grid; align-content: center; }

.studio-workbench { display: grid; grid-template-columns: minmax(420px,.92fr) minmax(500px,1.08fr); gap: 12px; align-items: start; }
.studio-control-panel { min-width: 0; display: grid; gap: 10px; }
.studio-task-switcher, .model-picker-r2, .prompt-workspace, .advanced-settings-r2, .upload-section-r2, .studio-action-dock { box-shadow: 0 8px 28px rgba(18,27,44,.035); }
.studio-task-switcher { border: 1px solid var(--line); border-radius: 19px; padding: 13px; background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.studio-block-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.studio-block-heading > div > span { display: block; font-size: 10px; font-weight: 900; color: var(--ink); }
.studio-block-heading > div > small { display: block; margin-top: 1px; color: var(--muted); font-size: 7.5px; }
.studio-block-heading > b { max-width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 8px; border-radius: 999px; background: #f1f3f6; color: #5e6674; font-size: 7.5px; font-weight: 850; }
.category-tabs-r2 { margin: 0; padding: 4px; border-radius: 14px; background: #f1f3f6; grid-template-columns: repeat(4,minmax(0,1fr)); }
.category-tabs-r2 button { min-height: 55px; padding: 8px 7px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.category-tabs-r2 button > div { min-width: 0; text-align: right; }
.category-tabs-r2 button span { display: block; font-size: 9px; }
.category-tabs-r2 button small { display: block; color: #969da8; font-size: 6.5px; font-weight: 700; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-tabs-r2 button.active { box-shadow: 0 5px 15px rgba(18,27,44,.07); }
.category-tabs-r2 button.active small { color: #747b87; }

.model-picker-r2 { margin: 0; border-radius: 19px; padding: 13px; background: rgba(255,255,255,.95); }
.model-picker-r2-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.model-option-r2 { min-height: 112px; position: relative; overflow: hidden; padding: 11px; border-radius: 14px; background: #fafbfc; align-content: space-between; }
.model-option-r2::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; inset: auto -50px -66px auto; background: radial-gradient(circle, rgba(37,92,255,.10), transparent 70%); pointer-events: none; }
.model-option-r2.active { border-color: #7897ff; background: linear-gradient(145deg,#f5f7ff,#eef3ff); box-shadow: inset 0 0 0 1px #7897ff, 0 8px 20px rgba(37,92,255,.08); }
.model-option-top-r2 strong { display: block; font-size: 10px; line-height: 1.5; }
.model-option-state { flex: 0 0 auto; color: #818895; background: #eef0f3; border-radius: 999px; padding: 3px 6px; font-size: 6.5px; font-weight: 900; }
.model-option-r2.active .model-option-state { background: var(--primary); color: #fff; }
.model-option-description { color: var(--muted); font-size: 7.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.model-option-badges { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 3px; }
.model-option-badges span { color: #69717f; background: #f0f2f5; border: 1px solid #e8ebef; border-radius: 999px; padding: 2px 5px; font-size: 6.3px; font-weight: 800; }
.model-option-r2.active .model-option-badges span { background: rgba(255,255,255,.75); border-color: rgba(37,92,255,.10); color: #52607e; }
.model-description-r2 { display: flex; align-items: flex-start; gap: 7px; min-height: 34px; padding: 9px 10px 0; line-height: 1.65; }
.model-description-r2::before { content: "i"; width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; border-radius: 50%; background: #eef1f5; color: #737b88; font-size: 7px; font-weight: 900; }

.studio-form-r2 { gap: 10px; }
.prompt-workspace { border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.prompt-workspace:focus-within { border-color: #9bb0ff; box-shadow: 0 0 0 4px rgba(37,92,255,.055), 0 14px 35px rgba(18,27,44,.045); }
.prompt-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 7px; }
.prompt-toolbar > div > span { display: block; color: var(--primary); font-size: 7px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.prompt-toolbar > div > strong { display: block; margin-top: 1px; font-size: 10px; }
.prompt-count { color: #9ca2ad; background: #f5f6f8; border-radius: 999px; padding: 4px 7px; font-size: 7px; font-variant-numeric: tabular-nums; }
.prompt-workspace textarea { display: block; width: 100%; min-height: 154px; border: 0; outline: 0; resize: vertical; background: transparent; color: var(--ink); font: inherit; font-size: 12px; line-height: 2; padding: 2px 0 7px; }
.prompt-workspace textarea::placeholder { color: #a5abb5; }
.prompt-starters { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 9px; border-top: 1px solid #eef0f3; }
.prompt-starter { border: 1px solid #e5e8ed; background: #f8f9fb; color: #697180; border-radius: 999px; padding: 5px 8px; font-size: 7.2px; font-weight: 800; transition: .14s ease; }
.prompt-starter:hover { border-color: #bfc9ef; color: #244fd1; background: #f2f5ff; transform: translateY(-1px); }
.prompt-workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 9px; color: #9aa1ad; font-size: 7px; }
.prompt-workspace-footer kbd { direction: ltr; border: 1px solid #e0e4e9; border-bottom-width: 2px; background: #fafbfc; color: #7d8490; border-radius: 6px; padding: 2px 6px; font-family: inherit; font-size: 6.5px; }

.advanced-settings-r2 { border-radius: 17px; }
.advanced-settings-r2 summary { min-height: 54px; padding-inline: 14px; }
.advanced-settings-r2[open] summary { border-bottom: 1px solid #edf0f3; }
.advanced-settings-r2 .dynamic-fields-v2 { padding-top: 12px; }
.upload-section-r2 { border-radius: 18px; }
.upload-drop-r2 { min-height: 128px; border-radius: 18px; background: linear-gradient(145deg,#fafbfc,#f7f8fa); transition: .15s ease; }
.upload-drop-r2.dragging { border-color: var(--primary); background: #f1f5ff; box-shadow: 0 0 0 4px rgba(37,92,255,.06); transform: scale(.995); }
.upload-drop-r2 small { color: #a2a8b2; font-size: 6.5px; margin-top: 4px; }
.uploaded-asset-r2 { border: 1px solid #cbf2df; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-error-r2 { border-radius: 12px; padding: 9px 11px; background: var(--danger-soft); border: 1px solid #ffd8dc; }

.studio-action-dock { display: grid; grid-template-columns: minmax(0,1fr) 184px; gap: 8px; position: sticky; bottom: 10px; z-index: 6; padding: 7px; border: 1px solid rgba(207,213,221,.92); border-radius: 19px; background: rgba(246,248,250,.88); backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(18,27,44,.11); }
.quote-box-r2 { min-height: 72px; border: 0; border-radius: 13px; background: #fff; padding: 9px 11px; grid-template-columns: auto 1fr auto; grid-template-rows: 1fr; gap: 10px; }
.quote-main { min-width: 124px; }
.quote-main span { display: block; color: var(--muted); font-size: 7px; }
.quote-main strong { display: block; margin-top: 1px; font-size: 16px; line-height: 1.4; }
.quote-context { min-width: 0; padding-right: 10px; border-right: 1px solid #edf0f3; align-self: stretch; display: grid; align-content: center; }
.quote-context span, .quote-context small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-context span { color: #69717e; font-size: 7px; font-weight: 800; }
.quote-context span.good { color: var(--success); }
.quote-context span.bad { color: var(--danger); }
.quote-context span.loading { color: var(--primary); }
.quote-context small { margin-top: 2px; color: #9ba1ab; font-size: 6.5px; }
.quote-box-r2 .quote-refresh { grid-column: auto; grid-row: auto; min-width: 82px; align-self: center; }
.button-generate-r2 { min-height: 72px; border-radius: 13px; display: flex; flex-direction: row; }
.button-generate-r2 span { font-size: 11px; }

.result-stage-r2 { min-height: 720px; border-radius: 24px; padding: 18px; top: 12px; background:
  radial-gradient(circle at 12% 7%, rgba(37,92,255,.20), transparent 27%),
  radial-gradient(circle at 83% 86%, rgba(85,239,165,.08), transparent 24%),
  #090b10; border: 1px solid rgba(255,255,255,.035); box-shadow: 0 22px 55px rgba(11,13,18,.14); }
.result-stage-r2::before { display: none; }
.result-stage-header-r2 { min-height: 52px; padding-bottom: 12px; }
.result-stage-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 1px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.result-stage-context > div { display: flex; align-items: center; min-width: 0; gap: 7px; }
.result-stage-context span { color: #9ea6b4; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06); border-radius: 999px; padding: 4px 7px; font-size: 6.5px; font-weight: 900; }
.result-stage-context strong { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e7eaf0; font-size: 8px; }
.result-stage-context small { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #626c7c; font-size: 6.5px; direction: ltr; text-align: left; }
.empty-state-r2 { min-height: 535px; padding-inline: 30px; }
.empty-canvas-r2 { width: 154px; height: 154px; border-radius: 34px; background: linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.025)); transform: rotate(-3deg); }
.empty-canvas-r2 img { position: absolute; width: 30px; height: 30px; inset: 61px auto auto 61px; filter: brightness(0) invert(1); opacity: .84; z-index: 2; transform: rotate(3deg); }
.empty-canvas-r2 span { width: 46px; height: 46px; top: 54px; right: 53px; background: rgba(37,92,255,.82); }
.empty-canvas-r2 i { width: 73px; height: 1px; bottom: 35px; left: 40px; background: rgba(255,255,255,.09); }
.empty-canvas-r2 b { background: var(--mint); bottom: 31px; right: 31px; }
.empty-state-r2 h3 { font-size: 16px; }
.empty-state-r2 > p { max-width: 360px; line-height: 1.8; }
.result-empty-points { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.result-empty-points span { border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.035); color: #687180; border-radius: 999px; padding: 4px 7px; font-size: 6.5px; }
.generation-progress-r2 { min-height: 535px; }
.progress-steps { width: min(360px,88%); display: grid; grid-template-columns: repeat(3,1fr); margin-top: 27px; position: relative; }
.progress-steps::before { content: ""; position: absolute; height: 1px; top: 5px; right: 16%; left: 16%; background: rgba(255,255,255,.09); }
.progress-steps span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; color: #515a69; font-size: 6.5px; }
.progress-steps i { width: 11px; height: 11px; border: 3px solid #11151d; border-radius: 50%; background: #303744; box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.progress-steps span.active { color: #d7dce4; }
.progress-steps span.active i { background: var(--primary); box-shadow: 0 0 0 4px rgba(37,92,255,.10); }
.progress-steps span.done { color: #6f7c77; }
.progress-steps span.done i { background: var(--mint); box-shadow: 0 0 0 4px rgba(85,239,165,.08); }
.generation-result-r2 { min-height: 510px; padding-top: 13px; }
.chat-output-card { overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.045); }
.chat-output-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.07); }
.chat-output-head > div span { display: block; color: #747e8d; font-size: 6.5px; }
.chat-output-head > div strong { display: block; margin-top: 1px; color: #dfe3e9; font-size: 8px; }
.result-copy-button { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.05); color: #b5bdc9; border-radius: 9px; min-height: 30px; padding: 5px 8px; font-size: 7px; font-weight: 800; }
.result-copy-button:hover { color: #fff; background: rgba(255,255,255,.09); }
.chat-output-card .chat-result { border: 0; border-radius: 0; background: transparent; padding: 16px 14px 18px; font-size: 10.5px; line-height: 2; max-height: 560px; overflow: auto; }
.asset-result-grid-r2 { grid-template-columns: 1fr; }
.asset-result-card-r2 { grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 11px; border-radius: 14px; }
.asset-result-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.07); }
.asset-result-icon img { width: 20px; height: 20px; filter: brightness(0) invert(1); opacity: .82; }
.asset-result-copy strong, .asset-result-copy small { display: block; }
.asset-result-copy strong { font-size: 8px; color: #e2e6ec; }
.asset-result-copy small { margin-top: 2px; color: #6e7786; }
.asset-result-card-r2 .button { min-width: 94px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.result-actions button { border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.045); color: #9ca5b3; border-radius: 10px; min-height: 34px; padding: 6px 10px; font-size: 7px; font-weight: 850; }
.result-actions button:hover { color: #fff; background: rgba(255,255,255,.08); }

@media (max-width: 1120px) {
  .studio-workbench { grid-template-columns: minmax(360px,.9fr) minmax(420px,1.1fr); }
  .studio-action-dock { grid-template-columns: 1fr 165px; }
  .quote-context { display: none; }
  .quote-box-r2 { grid-template-columns: 1fr auto; }
}

@media (max-width: 930px) {
  .studio-r2-heading { align-items: flex-start; flex-direction: column; }
  .studio-head-meta { width: 100%; }
  .studio-head-meta > * { flex: 1 1 0; }
  .studio-workbench { grid-template-columns: 1fr; }
  .result-stage-r2 { position: static; min-height: 600px; }
  .quote-context { display: grid; }
  .quote-box-r2 { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 640px) {
  .studio-r2-heading-copy h2 { font-size: 27px; }
  .studio-head-meta { flex-direction: column; }
  .studio-live-chip, .studio-head-meta .studio-balance { width: 100%; min-width: 0; }
  .studio-task-switcher, .model-picker-r2, .prompt-workspace { border-radius: 17px; }
  .category-tabs-r2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-tabs-r2 button { min-height: 51px; }
  .model-picker-r2-grid { display: none; }
  .model-description-r2 { padding-right: 0; padding-left: 0; }
  .prompt-workspace { padding: 12px; }
  .prompt-workspace textarea { min-height: 165px; font-size: 13px; }
  .prompt-workspace-footer { align-items: flex-start; flex-direction: column; }
  .dynamic-fields-v2 { grid-template-columns: 1fr; }
  .studio-action-dock { position: static; grid-template-columns: 1fr; padding: 0; border: 0; background: transparent; backdrop-filter: none; box-shadow: none; }
  .quote-box-r2 { min-height: 78px; grid-template-columns: 1fr auto; border: 1px solid var(--line); box-shadow: none; }
  .quote-context { grid-column: 1 / -1; grid-row: 2; border-right: 0; border-top: 1px solid #edf0f3; padding: 6px 0 0; }
  .quote-box-r2 .quote-refresh { grid-column: 2; grid-row: 1; }
  .button-generate-r2 { min-height: 56px; }
  .result-stage-r2 { min-height: 520px; border-radius: 20px; padding: 14px; }
  .result-stage-context { align-items: flex-start; flex-direction: column; }
  .result-stage-context strong, .result-stage-context small { max-width: 100%; }
  .empty-state-r2, .generation-progress-r2 { min-height: 390px; }
  .result-empty-points { display: none; }
  .asset-result-card-r2 { grid-template-columns: 40px 1fr; }
  .asset-result-card-r2 .button { grid-column: 1 / -1; width: 100%; }
}



/* P10-R3 — Dashboard + Library */
.dashboard-page-r3 { --dash-ink: #090c12; }
.command-center-r3 { min-height: 330px; grid-template-columns: minmax(300px,.8fr) minmax(430px,1.2fr); gap: 56px; padding: 38px; margin-bottom: 14px; background:
  radial-gradient(circle at 12% 0%, rgba(62,99,255,.30), transparent 34%),
  radial-gradient(circle at 90% 105%, rgba(85,239,165,.10), transparent 30%),
  #090c12; }
.command-center-r3::before { width: 1px; height: 70%; top: 15%; left: 50%; border-radius: 0; background: rgba(255,255,255,.055); }
.dashboard-command-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.command-center-r3 .command-kicker { display: inline-flex; align-items: center; gap: 7px; width: max-content; color: #8d96a5; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
.command-center-r3 .command-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(85,239,165,.08); }
.command-center-r3 h2 { max-width: 470px; font-size: clamp(31px,3.3vw,46px); line-height: 1.08; margin: 14px 0 14px; }
.command-center-r3 p { max-width: 500px; font-size: 11px; line-height: 1.9; }
.dashboard-starters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.dashboard-starters button { border: 1px solid rgba(255,255,255,.09); border-radius: 999px; min-height: 31px; padding: 5px 10px; background: rgba(255,255,255,.045); color: #98a1b0; font-size: 7.5px; font-weight: 850; transition: .16s ease; }
.dashboard-starters button:hover { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); transform: translateY(-1px); }
.quick-composer-r3 { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.065); box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.quick-composer-head { min-height: 24px; display: flex; justify-content: space-between; align-items: center; padding: 0 2px 8px; color: #cbd1db; font-size: 8px; font-weight: 900; }
.quick-composer-head small { color: #687180; font-size: 7px; font-weight: 800; }
.quick-composer-r3 textarea { min-height: 126px; font-size: 13px; line-height: 1.85; background: rgba(6,8,12,.72); border-color: rgba(255,255,255,.09); }
.quick-composer-r3 textarea::placeholder { color: #525b69; }

.dashboard-pulse { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 0 0 32px; }
.dashboard-pulse article { min-height: 94px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.78); padding: 13px 15px; box-shadow: 0 7px 24px rgba(18,27,44,.025); }
.dashboard-pulse span, .dashboard-pulse small { display: block; color: var(--muted); font-size: 7.5px; }
.dashboard-pulse strong { display: block; margin: 4px 0 1px; font-size: 20px; letter-spacing: -.04em; }
.dashboard-pulse article:last-child strong { color: var(--primary); }
.section-row-heading-r3 { margin-bottom: 12px; }
.category-grid-r3 { margin-bottom: 34px; }
.category-grid-r3 .category-card { min-height: 145px; background: rgba(255,255,255,.88); }
.category-grid-r3 .category-card:hover { transform: translateY(-2px); }

.dashboard-grid-r3 { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,.68fr); gap: 12px; align-items: start; }
.recent-panel-r3 { min-height: 520px; padding: 18px; }
.panel-header-r3 { align-items: end; margin-bottom: 14px; }
.panel-header-r3 h2 { margin-bottom: 2px; }
.panel-header-r3 small { color: var(--muted); font-size: 7.5px; }
.dashboard-work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.dashboard-work-card { min-width: 0; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; transition: transform .16s var(--ease), box-shadow .16s ease, border-color .16s ease; }
.dashboard-work-card:hover { transform: translateY(-2px); border-color: #cbd3de; box-shadow: 0 12px 30px rgba(18,27,44,.06); }
.work-card-visual { height: 92px; padding: 13px; display: flex; align-items: flex-start; justify-content: space-between; position: relative; overflow: hidden; background: #eef2f6; }
.work-card-visual::before, .work-card-visual::after { content: ""; position: absolute; border-radius: 50%; }
.work-card-visual::before { width: 105px; height: 105px; left: -27px; top: -46px; background: rgba(37,92,255,.16); }
.work-card-visual::after { width: 72px; height: 72px; right: 20px; bottom: -44px; border: 1px solid rgba(11,13,18,.08); }
.work-image .work-card-visual { background: linear-gradient(135deg,#eef3ff,#f8ecff); }
.work-video .work-card-visual { background: linear-gradient(135deg,#eafbf2,#e9f1ff); }
.work-audio .work-card-visual { background: linear-gradient(135deg,#fff3e8,#f0edff); }
.work-card-visual img { width: 24px; height: 24px; position: relative; z-index: 1; }
.work-card-visual span { position: relative; z-index: 1; padding: 4px 7px; border: 1px solid rgba(11,13,18,.07); border-radius: 999px; background: rgba(255,255,255,.60); color: #59616d; font-size: 6.5px; font-weight: 900; }
.work-card-copy { padding: 12px 13px 9px; }
.work-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.work-card-meta small { color: var(--muted-2); font-size: 6.5px; }
.work-card-copy > strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 33px; font-size: 10px; line-height: 1.65; }
.work-card-model { display: block; margin-top: 4px; color: var(--muted); font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 47px; padding: 8px 13px 10px; border-top: 1px solid #edf0f3; }
.work-card-footer > span { color: #6d7480; font-size: 7px; font-weight: 800; }
.work-card-footer > div { display: flex; gap: 5px; }
.work-card-open, .work-card-reuse { min-height: 28px; border-radius: 8px; padding: 4px 8px; font-size: 6.5px; font-weight: 850; text-decoration: none; display: inline-flex; align-items: center; }
.work-card-open { color: #fff; background: #11151c; }
.work-card-reuse { color: #606875; background: #fff; border: 1px solid var(--line); }
.work-card-reuse:hover { color: var(--primary); border-color: #aec0ff; }
.dashboard-empty-r3 { grid-column: 1 / -1; min-height: 330px; display: grid; justify-items: center; align-content: center; text-align: center; border: 1px dashed #d9dee5; border-radius: 18px; background: #fafbfc; padding: 30px; }
.dashboard-empty-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #eef2f7; margin-bottom: 12px; }
.dashboard-empty-icon img { width: 23px; height: 23px; }
.dashboard-empty-r3 strong { font-size: 12px; }
.dashboard-empty-r3 small { color: var(--muted); font-size: 8px; margin: 4px 0 15px; }
.dashboard-empty-r3 .button { min-height: 36px; font-size: 8px; }
.dashboard-rail-r3 { display: grid; gap: 12px; }
.wallet-glance-r3 { min-height: 275px; }
.model-shelf-r3 { padding: 15px; }
.model-shelf-head { margin-bottom: 7px; }
.model-shelf-head h2 { font-size: 14px; }
.tiny-link { color: var(--primary); font-size: 7px; font-weight: 900; text-decoration: none; }
.dashboard-model-list { display: grid; }
.dashboard-model-item { min-width: 0; display: grid; grid-template-columns: 37px minmax(0,1fr) 14px; gap: 9px; align-items: center; min-height: 56px; padding: 8px 2px; border-bottom: 1px solid #edf0f3; text-decoration: none; }
.dashboard-model-item:last-child { border-bottom: 0; }
.dashboard-model-icon { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; background: #f0f2f5; }
.dashboard-model-icon.image { background: #edf2ff; }
.dashboard-model-icon.video { background: #ebfbf2; }
.dashboard-model-icon.audio { background: #fff3e8; }
.dashboard-model-icon img { width: 17px; height: 17px; }
.dashboard-model-item strong { display: block; font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-model-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 6.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-model-arrow { width: 13px; height: 13px; opacity: .25; transition: .15s ease; }
.dashboard-model-item:hover .dashboard-model-arrow { opacity: .8; transform: translateX(-2px); }
.compact-empty { padding: 22px 8px; }

.library-page-r3 { padding-bottom: 30px; }
.library-header-r3 { margin-bottom: 18px; }
.library-control-panel { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.90); padding: 10px; box-shadow: 0 10px 35px rgba(18,27,44,.035); margin-bottom: 12px; }
.library-search { min-height: 56px; display: grid; grid-template-columns: 21px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 0 12px; border: 1px solid transparent; border-radius: 14px; background: #f5f7f9; transition: .15s ease; }
.library-search:focus-within { border-color: #aabdff; background: #fff; box-shadow: 0 0 0 4px rgba(37,92,255,.06); }
.library-search > img { width: 18px; height: 18px; opacity: .45; }
.library-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.library-search input::placeholder { color: #9299a4; }
.library-search kbd { min-width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #d9dee4; border-radius: 7px; background: #fff; color: #8a919d; font-size: 9px; box-shadow: 0 1px 0 rgba(11,13,18,.04); }
.library-filter-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 3px 1px; }
.library-filter-group { display: flex; flex-wrap: wrap; gap: 5px; }
.library-filter-group .filter-pill { appearance: none; border: 1px solid transparent; min-height: 30px; padding: 4px 10px; font-size: 7.5px; font-weight: 850; cursor: pointer; }
.library-filter-group .filter-pill:hover { color: #303743; background: #e9edf1; }
.library-filter-group .filter-pill.active { background: #11151c; color: #fff; }
.library-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.compact-select { min-height: 34px; display: flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.compact-select > span { color: var(--muted); font-size: 6.5px; }
.compact-select select { border: 0; outline: 0; background: transparent; color: #454c58; font-size: 7.5px; font-weight: 800; }
.view-toggle { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f4f6f8; }
.view-toggle button { width: 29px; height: 27px; border: 0; border-radius: 7px; background: transparent; display: grid; place-items: center; color: #7d8591; }
.view-toggle button.active { background: #fff; box-shadow: 0 2px 8px rgba(18,27,44,.08); color: var(--ink); }
.view-icon-grid { width: 12px; height: 12px; display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; }
.view-icon-grid::before, .view-icon-grid::after { content: ""; box-shadow: 7px 0 0 currentColor; background: currentColor; border-radius: 1px; }
.view-icon-list { width: 13px; height: 2px; display: block; background: currentColor; border-radius: 2px; box-shadow: 0 4px 0 currentColor, 0 -4px 0 currentColor; }
.library-summary-r3 { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 8px; }
.library-summary-r3 strong { color: #343a45; font-size: 8px; }
.history-library-r3.grid-view { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.library-card { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; transition: transform .16s var(--ease), box-shadow .16s ease, border-color .16s ease; }
.library-card:hover { transform: translateY(-2px); border-color: #cbd3dd; box-shadow: 0 14px 34px rgba(18,27,44,.07); }
.library-card-preview { height: 145px; position: relative; overflow: hidden; background: #edf1f5; }
.library-card-preview::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; left: -45px; top: -80px; background: rgba(37,92,255,.14); }
.library-card-preview::after { content: ""; position: absolute; width: 95px; height: 95px; border: 1px solid rgba(11,13,18,.08); border-radius: 28px; right: 24px; bottom: -50px; transform: rotate(16deg); }
.library-image .library-card-preview { background: linear-gradient(135deg,#e8efff,#f5e9ff); }
.library-video .library-card-preview { background: linear-gradient(135deg,#e7fbf0,#e7efff); }
.library-audio .library-card-preview { background: linear-gradient(135deg,#fff1e4,#f2ebff); }
.library-card-preview i, .library-card-preview b, .library-card-preview em { position: absolute; display: block; border-radius: 99px; background: rgba(11,13,18,.08); }
.library-card-preview i { width: 42%; height: 7px; right: 18px; bottom: 31px; }
.library-card-preview b { width: 29%; height: 7px; right: 18px; bottom: 18px; }
.library-card-preview em { width: 7px; height: 7px; left: 20px; bottom: 20px; background: var(--primary); }
.library-card-type { position: absolute; z-index: 1; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; background: rgba(255,255,255,.62); backdrop-filter: blur(9px); color: #4a5260; font-size: 6.5px; font-style: normal; font-weight: 900; }
.library-card-type img { width: 13px; height: 13px; }
.library-card-body { padding: 12px 13px 13px; }
.library-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.library-card-topline > small { color: var(--muted-2); font-size: 6.5px; }
.library-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 38px; margin: 10px 0 3px; font-size: 10.5px; line-height: 1.75; }
.library-card-body > p { margin: 0; color: var(--muted); font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #edf0f3; }
.library-card-footer > span small, .library-card-footer > span strong { display: block; }
.library-card-footer > span small { color: var(--muted); font-size: 6px; }
.library-card-footer > span strong { margin-top: 1px; font-size: 7.5px; }
.library-card-actions { display: flex; gap: 4px; }
.library-reuse-button, .library-open-button { min-height: 29px; padding: 4px 7px; border-radius: 8px; font-size: 6.5px; font-weight: 850; display: inline-flex; align-items: center; text-decoration: none; }
.library-reuse-button { border: 1px solid var(--line); background: #fff; color: #636b77; }
.library-open-button { color: #fff; background: #11151c; }
.library-reuse-button:hover { color: var(--primary); border-color: #a9bcff; }
.history-library-r3.list-view { display: grid; gap: 7px; }
.history-library-r3.list-view .library-card { display: grid; grid-template-columns: 110px minmax(0,1fr); }
.history-library-r3.list-view .library-card-preview { height: 100%; min-height: 118px; }
.history-library-r3.list-view .library-card-body { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto 1fr; gap: 1px 16px; align-items: center; }
.history-library-r3.list-view .library-card-topline { grid-column: 1 / -1; }
.history-library-r3.list-view .library-card h3 { min-height: 0; -webkit-line-clamp: 1; margin: 8px 0 0; }
.history-library-r3.list-view .library-card-body > p { grid-column: 1; }
.history-library-r3.list-view .library-card-footer { grid-column: 2; grid-row: 2 / span 2; border-top: 0; margin: 0; padding: 0; align-items: center; }
.history-library-r3.list-view .library-card-footer > span { display: none; }
.library-empty-r3 { grid-column: 1 / -1; min-height: 360px; display: grid; justify-items: center; align-content: center; text-align: center; border: 1px dashed #d9dee5; border-radius: 20px; background: #fafbfc; padding: 35px; }
.library-empty-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 17px; background: #edf1f5; margin-bottom: 12px; }
.library-empty-icon img { width: 23px; height: 23px; opacity: .7; }
.library-empty-r3 strong { font-size: 12px; }
.library-empty-r3 small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.library-loading-r3 { grid-column: 1 / -1; min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.library-loading-r3 span { width: 7px; height: 7px; border-radius: 50%; background: #b9c0ca; animation: libraryPulse .9s ease-in-out infinite alternate; }
.library-loading-r3 span:nth-child(2) { animation-delay: .15s; }
.library-loading-r3 span:nth-child(3) { animation-delay: .3s; }
@keyframes libraryPulse { to { transform: translateY(-7px); background: var(--primary); } }

@media (max-width: 1180px) {
  .dashboard-work-grid { grid-template-columns: 1fr; }
  .history-library-r3.grid-view { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .command-center-r3 { grid-template-columns: 1fr; gap: 28px; }
  .command-center-r3::before { display: none; }
  .dashboard-pulse { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid-r3 { grid-template-columns: 1fr; }
  .dashboard-rail-r3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wallet-glance-r3 { min-height: 300px; }
}
@media (max-width: 720px) {
  .command-center-r3 { padding: 24px 18px; border-radius: 22px; }
  .command-center-r3 h2 { font-size: 31px; }
  .dashboard-starters { display: grid; grid-template-columns: repeat(3,1fr); }
  .dashboard-starters button { padding-inline: 5px; }
  .dashboard-pulse { gap: 6px; }
  .dashboard-pulse article { min-height: 84px; padding: 11px; }
  .dashboard-pulse strong { font-size: 18px; }
  .dashboard-rail-r3 { grid-template-columns: 1fr; }
  .history-library-r3.grid-view { grid-template-columns: 1fr; }
  .library-filter-row { align-items: stretch; flex-direction: column; }
  .library-toolbar-actions { justify-content: space-between; }
  .library-filter-group { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .library-filter-group .filter-pill { flex: 0 0 auto; }
  .history-library-r3.list-view .library-card { grid-template-columns: 84px minmax(0,1fr); }
  .history-library-r3.list-view .library-card-body { display: block; }
  .history-library-r3.list-view .library-card-footer { display: flex; margin-top: 9px; padding-top: 8px; border-top: 1px solid #edf0f3; }
  .history-library-r3.list-view .library-card-footer > span { display: block; }
  .library-card-preview { height: 126px; }
}
@media (max-width: 480px) {
  .dashboard-starters { grid-template-columns: 1fr; }
  .dashboard-pulse { grid-template-columns: 1fr 1fr; }
  .dashboard-work-grid { grid-template-columns: 1fr; }
  .library-control-panel { padding: 8px; border-radius: 17px; }
  .library-search { min-height: 50px; }
  .compact-select > span { display: none; }
  .library-card-actions { flex-direction: column; }
  .library-reuse-button, .library-open-button { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-starter, .upload-drop-r2, .dashboard-work-card, .library-card, .dashboard-starters button { transition: none; }
  .library-loading-r3 span { animation: none; }
}
