:root {
  color-scheme: dark;
  --bg: #080a0f;
  --sidebar: #0b0d12;
  --surface: #10131a;
  --surface-2: #151922;
  --surface-3: #1a1f2a;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f7f7f9;
  --text-soft: #c3c5cc;
  --muted: #92959f;
  --muted-2: #6f727d;
  --purple: #ad91ff;
  --purple-strong: #7d5bd8;
  --lime: #c7ff62;
  --lime-ink: #151a0d;
  --danger: #ff929d;
  --warning: #ffc477;
  --success: #bff176;
  --topbar: 68px;
  --sidebar-width: 228px;
  --inspector-width: 360px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; height: 100vh; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -90px; padding: 12px 16px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-weight: 850; text-decoration: none; }
.skip-link:focus { top: 12px; }
.ui-icon { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.brand { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand-mark { position: relative; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; box-shadow: 0 8px 24px rgba(105, 68, 225, .28); }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand > span:last-child { display: grid; gap: 3px; line-height: 1; }
.brand b { font-size: 17px; letter-spacing: -.6px; }
.brand small { color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: 1.4px; }

.app-topbar { position: relative; z-index: 50; height: var(--topbar); padding: 0 16px; display: grid; grid-template-columns: var(--sidebar-width) 260px 1fr auto; align-items: center; border-bottom: 1px solid var(--line); background: rgba(9, 11, 16, .96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.project-switch { min-width: 0; height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); color: var(--muted); }
.project-switch > .ui-icon { width: 19px; color: var(--purple); flex: none; }
.project-switch > span { min-width: 0; display: grid; flex: 1; gap: 3px; line-height: 1; }
.project-switch small { color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .9px; }
.project-switch b { overflow: hidden; color: var(--text-soft); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.topbar-center { display: flex; justify-content: center; }
.connection-state { min-height: 32px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; }
.connection-state i, .secure-dot i, .inspector-footer i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(199, 255, 98, .5); }
.connection-state.is-offline i { background: var(--danger); box-shadow: 0 0 10px rgba(255, 146, 157, .45); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.credit-pill, .account-button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.credit-pill:hover, .account-button:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .055); }
.credit-pill { padding: 0 12px; display: flex; align-items: center; gap: 7px; }
.credit-pill .ui-icon { width: 17px; color: var(--purple); }
.credit-pill b { font-size: 14px; }
.credit-pill small { color: var(--muted); font-size: 11px; }
.account-button { padding: 0 11px 0 5px; display: flex; align-items: center; gap: 9px; }
.account-button > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(145deg, #8068c9, #403465); color: white; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.account-copy { display: grid; min-width: 92px; gap: 3px; text-align: left; line-height: 1; }
.account-copy b { font-size: 12px; }
.account-copy small { color: var(--muted-2); font-size: 10px; }

.workspace-shell { height: calc(100vh - var(--topbar)); display: grid; grid-template-columns: var(--sidebar-width) minmax(520px, 1fr) var(--inspector-width); }
.app-sidebar { min-height: 0; padding: 18px 12px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--sidebar); }
.tool-nav { display: grid; gap: 4px; }
.tool-nav > p { margin: 18px 12px 8px; color: #5e616b; font-size: 10px; font-weight: 850; letter-spacing: 1.2px; }
.tool-nav > p:first-child { margin-top: 3px; }
.tool-nav button { width: 100%; min-height: 44px; padding: 0 11px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.tool-nav button:hover { background: rgba(255, 255, 255, .04); color: var(--text-soft); }
.tool-nav button.is-active { border-color: rgba(173, 145, 255, .23); background: rgba(173, 145, 255, .11); color: #e5ddff; }
.tool-nav button > .ui-icon { width: 19px; color: #8d909b; }
.tool-nav button.is-active > .ui-icon { color: var(--purple); }
.tool-nav b { font-size: 13px; font-weight: 720; }
.tool-nav small { color: var(--muted-2); font-size: 10px; }
.sidebar-upgrade { margin-top: auto; padding: 16px; border: 1px solid rgba(173, 145, 255, .22); border-radius: 15px; background: radial-gradient(160px 120px at 100% 0, rgba(173, 145, 255, .18), transparent 70%), var(--surface); }
.upgrade-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(173, 145, 255, .13); color: var(--purple); }
.upgrade-icon .ui-icon { width: 18px; }
.sidebar-upgrade b { display: block; margin-top: 12px; font-size: 14px; }
.sidebar-upgrade p { margin: 6px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sidebar-upgrade button { width: 100%; min-height: 44px; border: 1px solid rgba(199, 255, 98, .28); border-radius: 10px; background: rgba(199, 255, 98, .1); color: #d6ff8e; cursor: pointer; font-size: 12px; font-weight: 800; }

.catalog-pane { min-width: 0; min-height: 0; padding: 28px clamp(22px, 3vw, 46px) 54px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #2c303a transparent; scrollbar-width: thin; background: radial-gradient(700px 380px at 30% -10%, rgba(125, 91, 216, .12), transparent 70%), #0c0f15; }
.create-studio { max-width: 1040px; margin: 0 auto; }
.studio-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.studio-heading p, .catalog-eyebrow { margin: 0 0 8px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.35px; }
.studio-heading h1 { margin: 0; font-size: clamp(30px, 3vw, 44px); line-height: 1.02; letter-spacing: -.045em; }
.availability-badge { min-height: 28px; padding: 7px 9px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .65px; }
.availability-badge.is-ready { border-color: rgba(191, 241, 118, .25); background: rgba(191, 241, 118, .09); color: #d5fda1; }
.availability-badge.is-preview { border-color: rgba(173, 145, 255, .28); background: rgba(173, 145, 255, .11); color: #d7caff; }
.availability-badge.is-unavailable { border-color: rgba(255, 146, 157, .24); background: rgba(255, 146, 157, .08); color: #ffb4bc; }

.composer { margin-top: 20px; padding: 20px; border: 1px solid rgba(173, 145, 255, .28); border-radius: var(--radius-lg); background: radial-gradient(420px 180px at 100% 0, rgba(128, 91, 229, .14), transparent 70%), rgba(17, 20, 27, .97); box-shadow: 0 24px 65px rgba(0, 0, 0, .28); }
.composer-head { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.composer-head > div { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.composer-head > div > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1px; }
.composer-head h2 { margin: 0; overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.change-model-button { min-height: 44px; padding: 0 13px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .035); color: var(--text-soft); cursor: pointer; font-size: 12px; font-weight: 750; }
.prompt-field { position: relative; display: block; }
.prompt-field textarea { width: 100%; min-height: 118px; max-height: 260px; padding: 16px 16px 30px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; outline: none; background: #0b0e13; color: white; font-size: 15px; line-height: 1.55; }
.prompt-field textarea::placeholder { color: #626570; }
.prompt-field textarea:focus { border-color: rgba(173, 145, 255, .62); box-shadow: 0 0 0 4px rgba(173, 145, 255, .09); }
.prompt-field small { position: absolute; right: 13px; bottom: 10px; color: var(--muted-2); font-size: 10px; }
.parameter-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.parameter-control { min-width: 118px; min-height: 72px; padding: 7px 10px; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 11px; background: #11151c; }
.parameter-control > span { color: var(--muted-2); font-size: 9px; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; }
.parameter-control select, .parameter-control input { min-width: 0; height: 44px; padding: 0; border: 0; outline: none; background: transparent; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.parameter-control input[type="checkbox"] { width: 24px; accent-color: var(--purple); }
.asset-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.asset-chip { max-width: 280px; min-height: 44px; padding: 6px 6px 6px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(173, 145, 255, .28); border-radius: 11px; background: rgba(173, 145, 255, .08); color: #bbb0d8; }
.asset-chip b { overflow: hidden; font-size: 11px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.asset-chip small { color: #80798f; font-size: 9px; text-transform: uppercase; }
.asset-chip button { min-width: 44px; height: 32px; margin-left: auto; padding: 0 8px; flex: none; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--text-soft); cursor: pointer; font-size: 10px; font-weight: 750; }
.composer-actions { margin-top: 12px; display: flex; align-items: stretch; justify-content: space-between; gap: 10px; }
.asset-button, .quote-button { min-height: 48px; border-radius: 12px; font-size: 13px; font-weight: 800; }
.asset-button { min-width: 0; padding: 0 14px; display: flex; align-items: center; gap: 8px; border: 1px dashed var(--line-strong); background: transparent; color: var(--muted); }
.asset-button .ui-icon { width: 18px; }
.asset-button small { margin-left: 2px; color: var(--muted-2); font-size: 10px; }
.asset-button:not(:disabled) { border-color: rgba(173, 145, 255, .42); color: #c6b8e9; cursor: pointer; }
.asset-button:disabled { cursor: not-allowed; opacity: .7; }
.quote-button { min-width: 176px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(199, 255, 98, .4); background: var(--lime); color: var(--lime-ink); cursor: pointer; box-shadow: 0 12px 28px rgba(174, 230, 78, .1); }
.quote-button .ui-icon { width: 18px; }
.quote-button:disabled { border-color: var(--line); background: #252a33; color: #777b85; cursor: not-allowed; box-shadow: none; }
.quote-button > i { display: none; width: 18px; height: 18px; border: 2px solid rgba(20, 23, 13, .3); border-top-color: #171b0f; border-radius: 50%; animation: spin .7s linear infinite; }
.quote-button.is-loading span, .quote-button.is-loading .ui-icon { display: none; }
.quote-button.is-loading > i { display: block; }
.composer-message { min-height: 18px; margin: 10px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.composer-message.is-error { color: var(--danger); }

.mobile-categories { display: none; }
.catalog-content { max-width: 1040px; margin: 42px auto 0; }
.catalog-header { display: flex; align-items: end; justify-content: space-between; gap: 26px; }
.catalog-header h2 { margin: 0; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.catalog-header > div > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.model-search { position: relative; width: min(320px, 42%); height: 46px; display: flex; align-items: center; }
.model-search > .ui-icon { position: absolute; z-index: 1; left: 13px; width: 19px; color: var(--muted-2); pointer-events: none; }
.model-search input { width: 100%; height: 100%; padding: 0 40px 0 42px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: var(--surface); color: white; font-size: 13px; }
.model-search input::placeholder { color: var(--muted-2); }
.model-search input:focus { border-color: rgba(173, 145, 255, .55); box-shadow: 0 0 0 4px rgba(173, 145, 255, .08); }
.model-search kbd { position: absolute; right: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-2); background: rgba(255, 255, 255, .025); font: 10px var(--sans); }
.content-toolbar { margin: 20px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.content-toolbar > span { color: var(--muted-2); font-size: 11px; }
.availability-filters { display: flex; align-items: center; gap: 7px; }
.availability-filters button { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; }
.availability-filters button.is-active { border-color: rgba(173, 145, 255, .36); background: rgba(173, 145, 255, .11); color: #ded4fb; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.status-dot.is-ready { background: var(--success); }
.status-dot.is-preview { background: var(--purple); }
.app-model-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; }
.app-model-card { position: relative; min-width: 0; min-height: 276px; padding: 14px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: left; transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.app-model-card:hover { transform: translateY(-2px); border-color: var(--line-strong); background: #151a22; }
.app-model-card.is-selected { border-color: rgba(173, 145, 255, .62); box-shadow: 0 0 0 3px rgba(173, 145, 255, .09), 0 20px 42px rgba(0, 0, 0, .24); }
.app-model-card.is-selected::after { content: ""; position: absolute; z-index: 2; right: 11px; top: 11px; width: 12px; height: 12px; border: 5px solid var(--lime); border-radius: 50%; background: var(--lime-ink); box-shadow: 0 0 0 2px var(--lime-ink); }
.app-model-card[data-availability="preview"] { background: linear-gradient(155deg, rgba(173, 145, 255, .055), transparent 48%), var(--surface); }
.app-model-card[data-availability="unavailable"] { opacity: .72; }
.card-visual { position: relative; height: 132px; margin: -14px -14px 13px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 65% 28%, var(--accent), transparent 24%), radial-gradient(circle at 25% 80%, rgba(255, 255, 255, .1), transparent 35%), linear-gradient(145deg, #292d38, #10131a); }
.card-visual::before { content: ""; position: absolute; width: 86px; height: 145px; left: 53%; top: 1px; transform: translateX(-50%) rotate(25deg); border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: linear-gradient(160deg, rgba(255, 255, 255, .12), transparent); box-shadow: 0 0 34px var(--accent); }
.card-visual::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(transparent, rgba(8, 10, 15, .55)); }
.app-model-card[data-kind="image"] .card-visual::before { width: 92px; height: 92px; top: 21px; transform: translateX(-50%) rotate(45deg); border-radius: 21px; }
.app-model-card[data-kind="voice"] .card-visual::before, .app-model-card[data-kind="audio"] .card-visual::before { width: 126px; height: 54px; top: 40px; transform: translateX(-50%); border: 0; border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 7px, var(--accent) 8px 11px); filter: drop-shadow(0 0 14px var(--accent)); }
.card-tag { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.card-tag i { padding: 4px 6px; border: 1px solid rgba(173, 145, 255, .2); border-radius: 6px; background: rgba(173, 145, 255, .12); color: #d4c7f8; font-style: normal; font-size: 8px; letter-spacing: .45px; }
.card-tag i.is-ready { border-color: rgba(191, 241, 118, .22); background: rgba(191, 241, 118, .09); color: #d5fda1; }
.card-tag i.is-unavailable { border-color: rgba(255, 146, 157, .2); background: rgba(255, 146, 157, .08); color: #ffb4bc; }
.app-model-card h3 { margin: 9px 0 5px; overflow: hidden; font-size: 15px; letter-spacing: -.25px; white-space: nowrap; text-overflow: ellipsis; }
.app-model-card p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-footer { margin-top: auto; padding-top: 11px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.card-price { color: #b9abd9; font-size: 10px; font-weight: 750; line-height: 1.3; }
.card-action { color: var(--text-soft); font-size: 10px; font-weight: 800; white-space: nowrap; }
.app-card-skeleton { min-height: 276px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(100deg, #10131a 25%, #1b2029 38%, #10131a 54%); background-size: 300% 100%; animation: shimmer 1.5s linear infinite; }
.catalog-message { padding: 18px; border: 1px solid rgba(255, 146, 157, .24); border-radius: 13px; background: rgba(255, 146, 157, .06); color: #efabb2; font-size: 13px; line-height: 1.5; }

.quote-inspector { min-height: 0; padding: 18px 18px 14px; display: flex; flex-direction: column; overflow-y: auto; border-left: 1px solid var(--line); background: #0a0d12; }
.output-preview { position: relative; min-height: 210px; padding: 14px; overflow: hidden; flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at 65% 30%, rgba(173, 145, 255, .38), transparent 24%), linear-gradient(145deg, #1a1e28, #0e1117); }
.output-preview::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 35%, rgba(8, 10, 15, .86)); }
.output-preview header { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.output-preview header span { color: white; font-size: 10px; font-weight: 900; letter-spacing: 1.1px; }
.output-preview header i { padding: 5px 7px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 7px; background: rgba(8, 10, 15, .32); color: #c1c3ca; font-size: 9px; font-style: normal; }
.preview-art { position: absolute; inset: 38px 14px 38px; display: grid; place-items: center; }
.preview-art span { position: absolute; width: 94px; height: 120px; transform: rotate(28deg); border: 1px solid rgba(255, 255, 255, .17); border-radius: 48%; background: linear-gradient(150deg, rgba(255, 255, 255, .12), transparent); box-shadow: 0 0 35px rgba(173, 145, 255, .38); }
.preview-art span:nth-child(2) { width: 64px; height: 86px; transform: rotate(-28deg); }
.preview-art span:nth-child(3) { width: 28px; height: 28px; transform: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 26px rgba(199, 255, 98, .28); }
.output-preview[data-kind="image"] .preview-art span:first-child { width: 105px; height: 105px; transform: rotate(45deg); border-radius: 24px; }
.output-preview[data-kind="voice"] .preview-art span:first-child, .output-preview[data-kind="audio"] .preview-art span:first-child { width: 150px; height: 56px; transform: none; border: 0; border-radius: 0; background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(173, 145, 255, .8) 9px 12px); }
.output-preview[data-kind="voice"] .preview-art span:nth-child(2), .output-preview[data-kind="audio"] .preview-art span:nth-child(2), .output-preview[data-kind="voice"] .preview-art span:nth-child(3), .output-preview[data-kind="audio"] .preview-art span:nth-child(3) { display: none; }
.output-preview[data-availability="preview"] { border-color: rgba(173, 145, 255, .3); }
.output-preview[data-availability="unavailable"] { filter: saturate(.55); }
.preview-copy { position: absolute; z-index: 2; inset: auto 14px 14px; display: grid; gap: 4px; }
.preview-copy small { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.preview-copy b { overflow: hidden; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.preview-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.inspector-head { margin-top: 18px; padding-bottom: 14px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid var(--line); }
.inspector-head p { margin: 0 0 5px; color: var(--muted-2); font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.inspector-head h2 { margin: 0; font-size: 19px; letter-spacing: -.4px; }
.secure-dot { min-height: 30px; padding: 6px 8px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; }
.quote-empty { min-height: 176px; padding: 28px 18px; display: flex; align-items: center; flex-direction: column; justify-content: center; text-align: center; }
.quote-empty > .ui-icon { width: 42px; height: 42px; padding: 10px; border: 1px solid rgba(173, 145, 255, .28); border-radius: 13px; background: rgba(173, 145, 255, .09); color: var(--purple); }
.quote-empty b { margin-top: 13px; font-size: 14px; }
.quote-empty p { max-width: 270px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quote-result { padding-block: 15px; }
.quote-model { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quote-model span { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.quote-model b { max-width: 210px; overflow: hidden; color: var(--text-soft); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.quote-total { margin-top: 12px; padding: 16px; border: 1px solid rgba(173, 145, 255, .27); border-radius: 14px; background: radial-gradient(180px 120px at 100% 0, rgba(173, 145, 255, .14), transparent 70%), var(--surface); }
.quote-total > span { color: var(--muted); font-size: 11px; }
.quote-total strong { margin-top: 5px; display: block; font-size: 14px; }
.quote-total strong b { color: #ded4fb; font-size: 34px; letter-spacing: -1.5px; }
.quote-total small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.quote-result dl { margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.quote-result dl > div { min-height: 40px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.quote-result dl > div:first-child { border-top: 0; }
.quote-result dt { color: var(--muted); font-size: 11px; }
.quote-result dd { margin: 0; color: var(--text-soft); font-size: 12px; font-weight: 750; }
.quote-warning { margin-top: 10px; padding: 10px; border: 1px solid rgba(255, 196, 119, .24); border-radius: 10px; background: rgba(255, 196, 119, .06); color: #e2b881; font-size: 11px; line-height: 1.45; }
.generation-state { margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.generation-state > span { color: var(--muted-2); font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.generation-state > button { width: 100%; min-height: 46px; margin-top: 9px; border: 1px solid var(--line); border-radius: 11px; background: #181c24; color: #747782; cursor: not-allowed; font-size: 12px; font-weight: 850; }
.generation-state > button:not(:disabled) { border-color: rgba(199, 255, 98, .36); background: var(--lime); color: var(--lime-ink); cursor: pointer; box-shadow: 0 10px 24px rgba(174, 230, 78, .09); }
.generation-state > button.is-loading { background: #272c35; color: #9a9da5; cursor: wait; }
.generation-state > p { margin: 8px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.generation-results { margin-top: 10px; padding: 11px; display: grid; gap: 7px; border: 1px solid rgba(116, 220, 159, .24); border-radius: 11px; background: rgba(116, 220, 159, .06); }
.generation-results b { color: #b3dfc0; font-size: 12px; }
.generation-results span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.generation-results a { min-height: 38px; display: inline-flex; align-items: center; color: #ddd2ff; font-size: 12px; font-weight: 750; text-decoration: none; }
.generation-results a:hover { text-decoration: underline; }
.inspector-footer { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.inspector-footer span { display: flex; align-items: center; gap: 7px; }

.mobile-bottom-nav { display: none; }
dialog { color: var(--text); }
dialog::backdrop { background: rgba(2, 3, 6, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.auth-dialog, .plans-dialog { width: min(92vw, 520px); max-height: min(90vh, 760px); padding: 34px; overflow: auto; border: 1px solid rgba(173, 145, 255, .34); border-radius: 22px; background: radial-gradient(380px 280px at 100% 0, rgba(131, 91, 232, .2), transparent 70%), #11151c; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); }
.dialog-close-form { position: absolute; right: 13px; top: 13px; }
.dialog-close-form button, .sheet-close { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .035); color: var(--text-soft); cursor: pointer; }
.dialog-close-form .ui-icon, .sheet-close .ui-icon { width: 20px; }
.dialog-brand { display: flex; align-items: center; gap: 10px; }
.dialog-brand small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 1.3px; }
.dialog-eyebrow { margin: 28px 0 9px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.3px; }
.auth-dialog h2 { margin: 0; font-size: 34px; line-height: 1.04; letter-spacing: -1.25px; }
.auth-dialog [data-auth-form-view] > p:not(.dialog-eyebrow) { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-mode-switch { margin-top: 22px; padding: 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: #0a0d12; }
.auth-mode-switch button { min-height: 42px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 800; }
.auth-mode-switch button[aria-selected="true"] { background: var(--surface-3); color: white; box-shadow: 0 5px 18px rgba(0, 0, 0, .22); }
.auth-mode-switch small { margin-left: 4px; padding: 3px 5px; border-radius: 5px; background: rgba(173, 145, 255, .14); color: #d9cefa; font-size: 8px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; }
.auth-panel { padding-top: 1px; }
.auth-form { margin-top: 18px; display: grid; gap: 9px; }
.auth-form label { font-size: 12px; font-weight: 800; }
.auth-form input { min-height: 48px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 11px; outline: none; background: #0a0d12; color: white; font-size: 14px; }
.auth-form input:focus { border-color: rgba(173, 145, 255, .62); box-shadow: 0 0 0 4px rgba(173, 145, 255, .09); }
.auth-form input:disabled { opacity: .52; cursor: not-allowed; }
.auth-form > button[type="submit"] { min-height: 48px; display: grid; place-items: center; border: 1px solid rgba(199, 255, 98, .32); border-radius: 11px; background: var(--lime); color: var(--lime-ink); cursor: pointer; font-size: 13px; font-weight: 850; }
.auth-form > button[type="submit"]:disabled { border-color: var(--line); background: #252a33; color: #777b85; cursor: not-allowed; }
.auth-form > button[type="submit"] > i { display: none; width: 18px; height: 18px; border: 2px solid rgba(20, 23, 13, .3); border-top-color: #171b0f; border-radius: 50%; animation: spin .7s linear infinite; }
.auth-form.is-loading > button[type="submit"] span { display: none; }
.auth-form.is-loading > button[type="submit"] > i { display: block; }
.auth-form [data-login-message], .auth-form [data-register-message], .auth-form [data-magic-login-message] { min-height: 18px; margin: 0; color: var(--danger); font-size: 12px; line-height: 1.45; }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 54px; }
.password-field > button { position: absolute; right: 3px; top: 3px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.password-field > button:hover { background: rgba(255, 255, 255, .045); color: var(--text-soft); }
.password-field .ui-icon { width: 19px; }
.field-guidance { margin-top: -2px; color: var(--muted-2); font-size: 10px; line-height: 1.4; }
.magic-toggle { width: 100%; min-height: 44px; margin-top: 9px; border: 0; background: transparent; color: #cfc2f2; cursor: pointer; font-size: 12px; font-weight: 750; text-decoration: underline; text-decoration-color: rgba(173, 145, 255, .34); text-underline-offset: 4px; }
.magic-login-panel { margin-top: 5px; padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.auth-form-secondary { margin-top: 14px; }
.auth-form-secondary > button[type="submit"] { border-color: var(--line-strong); background: rgba(255, 255, 255, .055); color: var(--text-soft); }
.registration-closed { margin-top: 18px; padding: 14px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid rgba(173, 145, 255, .28); border-radius: 12px; background: rgba(173, 145, 255, .07); }
.registration-closed > .ui-icon { width: 23px; flex: none; color: var(--purple); }
.registration-closed b { font-size: 13px; }
.registration-closed p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-dialog ul { margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.auth-dialog li { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; }
.account-view > p:not(.dialog-eyebrow) { margin: 13px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.account-summary { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 13px; background: #0a0d12; }
.account-summary > div { min-height: 52px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.account-summary > div:first-child { border-top: 0; }
.account-summary dt { color: var(--muted); font-size: 11px; }
.account-summary dd { margin: 0; max-width: 68%; overflow-wrap: anywhere; color: var(--text-soft); font-size: 12px; font-weight: 800; text-align: right; }
.account-view form { margin-top: 14px; }
.account-view form > button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255, 146, 157, .27); border-radius: 11px; background: rgba(255, 146, 157, .07); color: #ffc0c6; cursor: pointer; font-size: 13px; font-weight: 800; }
.account-view form > button:disabled { opacity: .62; cursor: wait; }
.account-view form > button .ui-icon { width: 19px; }
.account-view form > button > i { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #ffc0c6; border-radius: 50%; animation: spin .7s linear infinite; }
.account-view form.is-loading > button span, .account-view form.is-loading > button .ui-icon { display: none; }
.account-view form.is-loading > button > i { display: block; }
.account-view [data-logout-message] { min-height: 18px; margin: 8px 0 0; color: var(--danger); font-size: 12px; }
.auth-success { padding: 36px 0 10px; text-align: center; }
.auth-success > span, .auth-magic-confirm > span { width: 52px; height: 52px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(199, 255, 98, .1); color: var(--lime); }
.auth-success > span .ui-icon, .auth-magic-confirm > span .ui-icon { width: 22px; height: 22px; }
.auth-success h2 { margin-top: 18px; }
.auth-success p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-success a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 7px; color: var(--lime); font-size: 13px; }
.auth-magic-confirm { padding: 18px 0 4px; text-align: center; }
.auth-magic-confirm > span { background: rgba(173, 145, 255, .13); color: var(--purple); }
.auth-magic-confirm h2 { margin-top: 5px; }
.auth-magic-confirm h2 strong { color: var(--lime); font: inherit; overflow-wrap: anywhere; }
.auth-magic-confirm > p:not(.dialog-eyebrow) { margin: 13px auto 18px; max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-magic-confirm button { width: 100%; min-height: 48px; border: 1px solid rgba(199, 255, 98, .32); border-radius: 11px; background: var(--lime); color: var(--lime-ink); cursor: pointer; font-size: 13px; font-weight: 850; }
.auth-magic-confirm button:disabled { opacity: .65; cursor: wait; }
.auth-magic-confirm .magic-cancel { margin-top: 8px; border-color: var(--line-strong); background: transparent; color: var(--text-soft); }
.auth-magic-confirm [data-magic-message] { min-height: 18px; margin: 9px 0 0; color: var(--danger); font-size: 12px; }
.plans-dialog { width: min(96vw, 1040px); max-width: none; padding: 38px; }
.plans-header p { margin: 0 0 7px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
.plans-header h2 { margin: 0; font-size: 34px; letter-spacing: -1px; }
.plans-header span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.dialog-pricing-grid { margin-top: 25px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dialog-plan { position: relative; min-height: 430px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: #0d1016; }
.dialog-plan.is-featured { border-color: rgba(173, 145, 255, .5); background: linear-gradient(145deg, rgba(127, 88, 231, .14), transparent 48%), #11151c; box-shadow: 0 18px 50px rgba(0, 0, 0, .22); }
.dialog-plan[data-pending="true"] { box-shadow: 0 0 0 3px rgba(199, 255, 98, .14); }
.dialog-plan-badge { position: absolute; right: 14px; top: 14px; padding: 5px 7px; border-radius: 7px; background: rgba(199, 255, 98, .12); color: var(--lime); font-size: 9px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase; }
.dialog-plan > small { color: var(--text-soft); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .8px; }
.dialog-plan-tagline { min-height: 38px; margin-top: 7px; padding-right: 58px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.dialog-credit-block { margin-top: 13px; padding: 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.dialog-credit-block > b { color: #e0dbef; font-size: 14px; }
.dialog-equivalents { margin-top: 9px; display: grid; gap: 5px; }
.dialog-equivalents p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.dialog-plan strong { margin-top: 18px; font-size: 31px; letter-spacing: -1.2px; }
.dialog-plan strong span { color: var(--muted-2); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.dialog-plan ul { margin: 18px 0; padding: 16px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 11px; line-height: 1.4; }
.dialog-plan li::before { content: ""; width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: var(--lime); }
.dialog-plan button { min-height: 46px; margin-top: auto; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(255, 255, 255, .045); color: var(--text-soft); cursor: pointer; font-size: 12px; font-weight: 850; }
.dialog-plan button:disabled { cursor: not-allowed; opacity: .5; }
.dialog-plan.is-featured button { border-color: rgba(199, 255, 98, .38); background: var(--lime); color: var(--lime-ink); }
.dialog-pricing-grid > article:empty { min-height: 390px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(100deg, #10131a 25%, #1b2029 38%, #10131a 54%); background-size: 300% 100%; animation: shimmer 1.5s linear infinite; }
.plans-footnote { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.plans-footnote > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.plans-guide-link { min-height: 44px; padding: 0 13px; display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text-soft); font-size: 11px; font-weight: 750; text-decoration: none; }
.plans-guide-link:hover { border-color: rgba(173, 145, 255, .38); color: #e3d9ff; }
.plans-guide-link .ui-icon { width: 17px; color: var(--lime); }
.plans-status { min-height: 18px; margin: 13px 0 0; color: #d1a2a8; font-size: 11px; }
.mobile-quote-sheet { display: none; }
.app-toast { position: fixed; z-index: 300; right: 18px; bottom: 18px; max-width: min(380px, calc(100vw - 36px)); padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 12px; background: #1a1f28; color: #ededf1; box-shadow: 0 18px 55px rgba(0, 0, 0, .48); font-size: 13px; line-height: 1.4; }
.noscript { position: fixed; z-index: 500; inset: auto 0 0; padding: 12px; background: #f0ca61; color: #201d14; text-align: center; font-size: 13px; font-weight: 750; }

@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1240px) {
  :root { --sidebar-width: 200px; --inspector-width: 320px; }
  .app-topbar { grid-template-columns: var(--sidebar-width) 230px 1fr auto; }
  .app-model-grid { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  .account-copy { display: none; }
}

@media (max-width: 1020px) {
  .app-topbar { grid-template-columns: 200px 230px 1fr auto; }
  .workspace-shell { grid-template-columns: minmax(450px, 1fr) var(--inspector-width); }
  .app-sidebar { display: none; }
  .mobile-categories { margin: 28px 0 0; padding-bottom: 6px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .mobile-categories::-webkit-scrollbar { display: none; }
  .mobile-categories button { min-height: 44px; padding: 0 15px; flex: none; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .025); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; }
  .mobile-categories button.is-active { border-color: rgba(173, 145, 255, .38); background: rgba(173, 145, 255, .11); color: #ded4fb; }
}

@media (max-width: 800px) {
  :root { --topbar: 62px; }
  body { height: auto; min-height: 100vh; overflow: auto; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .app-topbar { position: sticky; top: 0; grid-template-columns: 1fr auto; padding-inline: 12px; }
  .app-topbar .project-switch, .topbar-center { display: none; }
  .workspace-shell { height: auto; min-height: calc(100vh - var(--topbar)); display: block; }
  .quote-inspector { display: none; }
  .catalog-pane { height: auto; min-height: calc(100vh - var(--topbar)); padding: 24px 18px 42px; overflow: visible; }
  .studio-heading { align-items: start; flex-direction: column; gap: 13px; }
  .studio-heading h1 { font-size: 34px; }
  .mobile-categories { margin-inline: -18px; padding-inline: 18px; }
  .catalog-header { align-items: start; flex-direction: column; gap: 16px; }
  .model-search { width: 100%; }
  .app-model-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .mobile-bottom-nav { position: fixed; z-index: 70; inset: auto 0 0; height: calc(68px + env(safe-area-inset-bottom)); padding: 5px 10px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(10, 13, 18, .97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mobile-bottom-nav button { min-height: 56px; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); cursor: pointer; font-size: 10px; font-weight: 750; }
  .mobile-bottom-nav .ui-icon { width: 21px; height: 21px; }
  .mobile-bottom-nav button.is-active { color: #d7caff; }
  .mobile-quote-sheet { position: fixed; z-index: 120; inset: auto 0 0; max-height: 88vh; padding: 28px 18px calc(25px + env(safe-area-inset-bottom)); display: block; overflow-y: auto; border: 1px solid rgba(173, 145, 255, .3); border-radius: 22px 22px 0 0; background: #11151c; box-shadow: 0 -30px 90px rgba(0, 0, 0, .68); }
  .mobile-quote-sheet::before { content: ""; position: absolute; width: 44px; height: 4px; left: 50%; top: 10px; transform: translateX(-50%); border-radius: 4px; background: #3b404b; }
  .sheet-close { position: absolute; z-index: 2; right: 12px; top: 16px; }
  .mobile-quote-sheet .quote-inspector { display: flex; padding: 0; border: 0; background: transparent; overflow: visible; }
  .mobile-quote-sheet .output-preview { margin-right: 48px; }
  .plans-dialog { padding: 32px 22px; }
}

@media (max-width: 620px) {
  .brand b { font-size: 16px; }
  .brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .credit-pill { padding-inline: 10px; }
  .credit-pill small { display: none; }
  .account-button { padding-right: 5px; }
  .catalog-pane { padding-inline: 14px; }
  .studio-heading h1 { font-size: 29px; }
  .composer { padding: 15px; border-radius: 18px; }
  .composer-head { align-items: start; }
  .composer-head > div { min-width: 0; display: grid; gap: 4px; }
  .change-model-button { padding-inline: 10px; }
  .prompt-field textarea { min-height: 108px; padding: 14px 14px 28px; font-size: 14px; }
  .parameter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .parameter-row::-webkit-scrollbar { display: none; }
  .parameter-control { flex: 0 0 118px; }
  .composer-actions { align-items: stretch; }
  .asset-button { max-width: 49%; padding-inline: 11px; }
  .asset-button small { display: none; }
  .quote-button { min-width: 0; flex: 1; padding-inline: 11px; }
  .mobile-categories { margin-inline: -14px; padding-inline: 14px; }
  .catalog-content { margin-top: 34px; }
  .catalog-header h2 { font-size: 27px; }
  .content-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  .content-toolbar > span { order: -1; }
  .availability-filters { overflow-x: auto; scrollbar-width: none; }
  .availability-filters::-webkit-scrollbar { display: none; }
  .availability-filters button { min-height: 44px; flex: none; }
  .app-model-grid { grid-template-columns: repeat(2, minmax(135px, 1fr)); gap: 9px; }
  .app-model-card { min-height: 248px; padding: 12px; border-radius: 14px; }
  .card-visual { height: 112px; margin: -12px -12px 11px; }
  .app-model-card h3 { font-size: 14px; }
  .app-model-card p { font-size: 10px; }
  .card-footer { align-items: start; flex-direction: column; gap: 4px; }
  .card-action { display: none; }
  .auth-dialog { width: calc(100vw - 20px); padding: 29px 19px; }
  .auth-dialog h2 { font-size: 29px; }
  .plans-dialog { width: calc(100vw - 12px); max-height: 92vh; padding: 28px 15px; }
  .plans-header h2 { font-size: 29px; }
  .dialog-pricing-grid { grid-template-columns: 1fr; }
  .dialog-plan { min-height: 410px; }
  .plans-footnote { align-items: stretch; flex-direction: column; }
  .plans-guide-link { justify-content: center; }
}

@media (max-width: 380px) {
  .app-topbar { padding-inline: 9px; }
  .topbar-actions { gap: 5px; }
  .credit-pill { padding-inline: 8px; }
  .catalog-pane { padding-inline: 12px; }
  .composer { padding: 13px; }
  .change-model-button { font-size: 11px; }
  .asset-button > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mobile-categories { margin-inline: -12px; padding-inline: 12px; }
  .app-model-grid { gap: 7px; }
  .app-model-card { min-height: 242px; }
}

@media (orientation: landscape) and (max-height: 540px) and (max-width: 900px) {
  .mobile-quote-sheet { max-height: 96vh; }
  .output-preview { min-height: 170px; }
}

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