@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:ital,wght@0,400;1,500;1,600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root,
body.theme-dark {
  --ink: #f7f7f7;
  --ink-2: #f1f1f1;
  --muted: #aeaeae;
  --soft: #e7e7e7;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --paper: #0b0b0b;
  --panel: rgba(18, 18, 18, .88);
  --panel-deep: #141414;
  --panel-deep-2: #191919;
  --panel-strong: #1c1c1c;
  --lime: #e5e5e5;
  --lime-strong: #dddddd;
  --lime-soft: rgba(229, 229, 229, .16);
  --orange: #a1a1a1;
  --orange-strong: #8a8a8a;
  --indigo: #a2a2a2;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'DM Mono', monospace;
  --shadow: 0 24px 60px rgba(0, 0, 0, .38);
  --shadow-soft: 0 18px 38px rgba(0, 0, 0, .28);
  --glow: 0 0 0 1px rgba(229, 229, 229, .18), 0 12px 30px rgba(214, 214, 214, .18);
}
body.theme-light {
  --ink: #111111;
  --ink-2: #1a1a1a;
  --muted: #636363;
  --soft: #313131;
  --line: rgba(17, 17, 17, .09);
  --line-strong: rgba(17, 17, 17, .14);
  --paper: #f3f3f3;
  --panel: rgba(255, 255, 255, .9);
  --panel-deep: #f2f2f2;
  --panel-deep-2: #e9e9e9;
  --panel-strong: #e7e7e7;
  --lime: #b7b7b7;
  --lime-strong: #9d9d9d;
  --lime-soft: rgba(183, 183, 183, .12);
  --orange: #828282;
  --orange-strong: #747474;
  --indigo: #595959;
  --shadow: 0 24px 60px rgba(17, 17, 17, .12);
  --shadow-soft: 0 18px 38px rgba(17, 17, 17, .08);
  --glow: 0 0 0 1px rgba(183, 183, 183, .18), 0 12px 30px rgba(183, 183, 183, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 83%, #111111 17%) 100%); color: var(--ink); font-family: var(--sans); }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .8; background: radial-gradient(circle at 82% 8%, rgba(231, 231, 231, .14), transparent 22%), radial-gradient(circle at 14% 78%, rgba(163, 163, 163, .09), transparent 18%), linear-gradient(135deg, rgba(255, 255, 255, .18), transparent 55%); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: linear-gradient(180deg, rgba(251, 251, 251, 0.97) 0%, rgba(242, 242, 242, 0.95) 100%); }
.sidebar { position: sticky; top: 0; z-index: 2; min-height: 100vh; height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 24px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(19, 19, 19, .96), rgba(15, 15, 15, .96)); backdrop-filter: blur(18px); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .05); }
.brand, .mobile-brand { display: flex; align-items: center; gap: 10px; color: #f8f8f8; text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing: -.05em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(231, 231, 231, .8); background: rgba(231, 231, 231, .08); border-radius: 10px; color: var(--lime); font-family: var(--serif); font-style: italic; font-size: 20px; box-shadow: var(--glow); }
.nav-list { display: grid; gap: 5px; margin-top: 78px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-left: 2px solid transparent; color: rgba(231, 231, 231, .78); text-decoration: none; font-size: 13px; transition: .2s ease; }
.nav-link:hover, .nav-link.active { border-left-color: var(--lime); color: #f7f7f7; background: linear-gradient(90deg, rgba(231, 231, 231, .08), rgba(231, 231, 231, .02)); }
.nav-link.active { padding-left: 8px; }
.nav-icon { width: 16px; color: var(--lime); font-family: var(--mono); font-size: 12px; }
.sidebar-note { display: grid; gap: 9px; margin-top: auto; padding-top: 21px; border-top: 1px solid rgba(255, 255, 255, .08); color: rgba(231, 231, 231, .72); font-size: 12px; line-height: 1.55; }
.sidebar-note strong { max-width: 175px; color: #f7f7f7; font-size: 14px; line-height: 1.35; font-weight: 600; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: rgba(231, 231, 231, .72); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.main-content { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 3; height: 86px; display: flex; justify-content: flex-end; align-items: center; padding: 0 clamp(22px, 5vw, 72px); border-bottom: 1px solid var(--line); background: rgba(249, 249, 249, .8); backdrop-filter: blur(12px); }
.mobile-brand { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 12px; transition: .2s ease; box-shadow: var(--shadow-soft); }
.theme-toggle:hover { border-color: rgba(231, 231, 231, .8); transform: translateY(-1px); }
.theme-toggle .theme-mode-icon { display: grid; place-items: center; }
.theme-toggle .theme-mode-icon svg { width: 16px; height: 16px; display: block; }
.chat-button, .credit-pill { border: 1px solid var(--line); background: rgba(255, 255, 255, .5); color: var(--soft); padding: 10px 13px; font-size: 11px; transition: .2s ease; border-radius: 12px; }
.chat-button:hover, .credit-pill:hover { border-color: rgba(231, 231, 231, .8); color: var(--ink); box-shadow: 0 10px 20px rgba(26, 26, 26, .04); }
.chat-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--orange); }
.coin { margin-right: 6px; color: var(--lime); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(28, 28, 28, .08); background: linear-gradient(135deg, var(--lime) 0%, #f6f6f6 100%); color: #1e1e1e; font-family: var(--serif); font-style: italic; font-size: 18px; box-shadow: var(--shadow-soft); }
.view { display: none; max-width: 1160px; margin: 0 auto; padding: 70px clamp(22px, 5vw, 72px) 110px; animation: reveal .38s ease both; }
.view.active { display: block; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--lime); font: 500 10px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 720px; font-size: clamp(47px, 7vw, 88px); line-height: .94; letter-spacing: -.075em; font-weight: 700; }
h2 { font-size: clamp(27px, 3vw, 39px); line-height: .98; letter-spacing: -.065em; font-weight: 600; }
h3 { letter-spacing: -.04em; }
h1 em, h2 em { color: var(--lime); font-family: var(--serif); font-weight: 400; letter-spacing: -.07em; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .55fr); gap: 50px; align-items: end; margin-bottom: 58px; }
.home-hero p, .page-heading > p { max-width: 295px; padding-bottom: 5px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.studio-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.metric-card { display: grid; gap: 14px; padding: 18px 18px 16px; border: 1px solid rgba(28, 28, 28, .08); border-radius: 22px; background: rgba(255, 255, 255, .62); backdrop-filter: blur(10px); box-shadow: var(--shadow-soft); }
.metric-tag { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; background: rgba(231, 231, 231, .18); color: #2c2c2c; font: 600 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.metric-card strong { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.1; letter-spacing: -.05em; }
.metric-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.quick-create { position: relative; padding: 25px; border: 1px solid rgba(28, 28, 28, .08); border-radius: 28px; background: linear-gradient(155deg, rgba(30, 30, 30, .98), rgba(21, 21, 21, .97)); box-shadow: 0 30px 60px rgba(19, 19, 19, .18); }
.quick-create::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 100% 0%, rgba(231, 231, 231, .14), transparent 30%); pointer-events: none; }
.quick-create::after { content: ''; position: absolute; right: 0; top: 0; width: 116px; height: 116px; border-top: 1px solid rgba(230, 230, 230, .8); border-right: 1px solid rgba(230, 230, 230, .8); opacity: .7; border-radius: 0 26px 0 0; }
.create-head, .section-bar, .tool-workspace-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.tool-link, .text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.tool-link:hover, .text-button:hover { color: var(--lime); }
.mode-switch { display: flex; gap: 5px; margin: 29px 0 2px; border-bottom: 1px solid var(--line); }
.mode-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 12px 15px; font-size: 12px; border-radius: 10px 10px 0 0; }
.mode-tab:hover, .mode-tab.active { border-bottom-color: var(--lime); color: var(--ink); background: rgba(231, 231, 231, .06); }
textarea { display: block; width: 100%; min-height: 148px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 23px 0 15px; font-size: 22px; line-height: 1.4; letter-spacing: -.035em; }
textarea::placeholder { color: #6e6e6e; }
.prompt-bottom { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.char-count, .reference-state { color: var(--muted); font: 11px var(--mono); }
.generate-button { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-width: 164px; margin-left: auto; padding: 14px 17px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--lime) 0%, var(--lime-strong) 100%); color: #1e1e1e; font-size: 12px; font-weight: 800; transition: .2s ease; box-shadow: var(--glow); }
.generate-button:hover { background: linear-gradient(135deg, #f4f4f4 0%, var(--lime) 100%); transform: translateY(-1px); }
.button-arrow { font-family: var(--mono); }
.settings-row, .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 17px; }
.settings-row:empty, .settings-grid:empty { display: none; }
.field-label { display: grid; gap: 8px; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
select, input { min-width: 0; width: 100%; border: 1px solid var(--line); outline: 0; background: var(--panel-deep); color: var(--ink); padding: 11px 12px; }
select:focus, input:focus { border-color: var(--lime); }
.composer-status { min-height: 19px; padding-top: 14px; color: var(--muted); font: 11px var(--mono); }
.composer-status.error, .form-error { color: var(--orange); }
.section-block { margin-top: 82px; }
.section-bar { align-items: end; margin-bottom: 21px; }
.gallery, .inspiration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.library-load-more { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }
.gallery-card { min-width: 0; border: 1px solid rgba(32, 32, 32, .08); border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: 0 18px 34px rgba(22, 22, 22, .05); overflow: hidden; animation: reveal .45s ease both; }
.gallery-card img, .gallery-card video { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #292929; }
.gallery-card audio { display: block; width: calc(100% - 24px); margin: 12px; }
.prompt-history-item { display: grid; gap: 9px; align-content: start; min-height: 96px; padding: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-align: left; }
.prompt-history-item:hover { border-color: var(--lime); }
.prompt-history-item > span { line-height: 1.5; }
.prompt-history-item > small { color: var(--muted); font: 10px var(--mono); }
#popular-tools-section, #all-models-section, #catalog-list { scroll-margin-top: 110px; }
.gallery-meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px; color: var(--muted); font: 10px var(--mono); }
.gallery-meta span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inspiration-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid rgba(32, 32, 32, .08); border-radius: 18px; background: linear-gradient(150deg, #212121, #181818); cursor: pointer; transition: .22s ease; box-shadow: 0 14px 30px rgba(17, 17, 17, .12); }
.inspiration-card:hover { transform: translateY(-4px) scale(1.005); border-color: rgba(160, 160, 160, .7); box-shadow: 0 22px 45px rgba(0, 0, 0, .18); }
.inspiration-card h3 { margin-top: 16px; font-size: 18px; font-weight: 600; }
.inspiration-card p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.inspiration-card small, .tool-badge { color: var(--orange); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.empty-state { grid-column: 1 / -1; min-height: 210px; display: grid; place-items: center; align-content: center; gap: 9px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; font-size: 12px; }
.empty-symbol { color: var(--lime); font-size: 28px; }
.page-heading { margin-bottom: 48px; }
.page-heading h2 { font-size: clamp(42px, 6vw, 70px); }
.page-heading > p { margin-top: 24px; }
.inline-heading { display: flex; justify-content: space-between; align-items: end; }
.filter-row { display: flex; gap: 7px; margin-bottom: 22px; }
.filter { padding: 9px 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11px; }
.filter:hover, .filter.active { border-color: var(--lime); color: var(--ink); }
.tool-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
.tool-menu { display: grid; align-content: start; gap: 6px; }
.tool-menu-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; }
.tool-menu-item:hover, .tool-menu-item.active { border-color: var(--lime); background: rgba(229, 229, 229, .07); color: var(--ink); }
.tool-menu-item b, .tool-menu-item small { display: block; }
.tool-menu-item b { font-size: 12px; font-weight: 600; }
.tool-menu-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.tool-symbol { color: var(--lime); font: 10px var(--mono); }
.tool-workspace { padding: 25px; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: var(--shadow); }
.tool-workspace-top { align-items: center; }
.tool-workspace-top h3 { font-size: 25px; font-weight: 600; }
.tool-badge { padding: 6px 8px; border: 1px solid rgba(158, 158, 158, .4); }
.studio-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr); gap: 15px; align-items: end; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.studio-controls .reference-state { align-self: center; }
.studio-controls .field-label:last-of-type { grid-column: 1 / -1; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.account-card { min-height: 190px; display: flex; flex-direction: column; gap: 13px; padding: 23px; border: 1px solid var(--line); background: var(--panel); }
.profile-card { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.profile-card #profile-settings { grid-column: 1 / -1; width: 100%; }
.account-display-name, .account-visibility { display: block; }
.account-display-name:empty, .account-visibility:empty { display: none; }
.account-display-name { margin-top: 5px; color: var(--ink); font-size: 14px; font-weight: 600; }
.account-visibility { margin-top: 3px; color: var(--muted); font-size: 11px; }
#edit-profile { justify-self: start; padding: 5px 0; }
#edit-profile:disabled { opacity: .55; cursor: not-allowed; }
#profile-settings[hidden] { display: none; }
.avatar.large { width: 52px; height: 52px; font-size: 25px; }
.account-card h3 { font-size: 20px; }
.account-card p, .account-copy { color: var(--muted); font-size: 12px; line-height: 1.55; }
.outline-button { align-self: center; padding: 10px 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 11px; }
.outline-button:hover { border-color: var(--lime); }
.balance-card strong { color: var(--lime); font: 500 46px var(--serif); }
.balance-card > span:not(.eyebrow) { color: var(--muted); font: 11px var(--mono); }
.balance-card .generate-button { margin-top: auto; margin-left: 0; }
.account-links { display: grid; gap: 7px; margin-top: auto; }
.account-links button { display: flex; justify-content: space-between; padding: 10px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--soft); text-align: left; font-size: 12px; }
.account-links button:hover { color: var(--lime); }
.settings-pane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profile-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.profile-settings .profile-lookup { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.help-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.help-topic-grid .premium-panel { min-height: 190px; }
.premium-panel { display: grid; gap: 14px; min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--panel) 0%, var(--panel-deep) 100%); box-shadow: var(--shadow-soft); }
.premium-panel h3 { font-size: 24px; letter-spacing: -.05em; }
.premium-panel p, .settings-list { color: var(--muted); font-size: 13px; line-height: 1.7; }
.settings-list { margin: 0; padding-left: 18px; }
.theme-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.theme-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); }
.theme-option.active { border-color: var(--lime); background: var(--lime-soft); }
.theme-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.theme-swatch.dark { background: linear-gradient(135deg, #111111, #2d2d2d); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.theme-swatch.light { background: linear-gradient(135deg, #ffffff, #e8e8e8); box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08); }
.catalog-card { grid-column: 1 / -1; }
.catalog-list { display: grid; gap: 8px; margin-top: 8px; }
.catalog-row { display: flex; justify-content: space-between; gap: 20px; width: 100%; padding: 14px; border: 1px solid var(--line); background: var(--panel-deep); color: var(--ink); text-align: left; }
.catalog-row:hover { border-color: var(--lime); }
.catalog-row span { display: grid; gap: 5px; }
.catalog-row b { font-size: 13px; font-weight: 600; }
.catalog-row small, .catalog-row strong, .loading-line { color: var(--muted); font: 11px var(--mono); }
.support-card { grid-column: 1 / -1; }
.support-card h3 { margin-top: 6px; }
.support-form { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr) auto; gap: 12px; align-items: end; }
.support-form textarea, .ticket-reply-form textarea { min-height: 72px; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel-deep); font-size: 13px; letter-spacing: 0; }
.support-form .generate-button { min-width: 145px; margin: 0; }
.ticket-layout { display: grid; grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr); gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ticket-list { display: grid; gap: 7px; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 11px; border: 1px solid var(--line); background: var(--panel-deep); color: var(--muted); text-align: left; }
.ticket-row.active, .ticket-row:hover { border-color: var(--lime); color: var(--ink); }
.ticket-row span:first-child { display: grid; min-width: 0; gap: 5px; }
.ticket-row b { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ticket-row small, .ticket-date { color: var(--muted); font: 10px var(--mono); text-transform: capitalize; }
.ticket-detail { min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--panel-deep); }
.ticket-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.ticket-detail-head .eyebrow { margin-bottom: 7px; }
.ticket-detail-head h4 { margin: 0; font-size: 15px; }
.ticket-thread { overflow-wrap: anywhere; white-space: pre-wrap; color: var(--soft); font: 12px/1.65 var(--sans); }
.ticket-reply-form { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ticket-reply-form .text-button { justify-self: end; }
.ticket-rating-form { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ticket-rating-confirmation { color: var(--muted); font-size: 13px; }
.support-card [hidden] { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(8, 8, 8, .82); backdrop-filter: blur(8px); }
.modal-backdrop[hidden], .chat-drawer[hidden] { display: none; }
.auth-modal { position: relative; width: min(100%, 430px); padding: 36px; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: var(--shadow); }
.auth-modal h2 { margin-bottom: 29px; font-size: 40px; }
.auth-modal form { display: grid; gap: 17px; }
.auth-alternatives { display: grid; justify-items: center; gap: 10px; margin-top: 18px; }
.auth-alternatives .feature-status { margin: 0; text-align: center; }
.auth-alternatives [hidden] { display: none; }
.auth-modal .generate-button { width: 100%; margin: 7px 0 0; }
.close-button { position: absolute; top: 14px; right: 15px; border: 0; background: transparent; color: var(--muted); font-size: 15px; }
.close-button:hover { color: var(--ink); }
.auth-switch { margin-top: 19px; color: var(--muted); font-size: 12px; }
.auth-switch button { padding: 0; border: 0; background: transparent; color: var(--lime); }
.form-error { min-height: 17px; margin-top: 12px; font-size: 12px; }
.chat-drawer { position: fixed; z-index: 9; right: 24px; bottom: 24px; width: min(400px, calc(100vw - 40px)); border: 1px solid var(--line-strong); background: #1b1b1b; box-shadow: var(--shadow); }
.chat-head { position: relative; padding: 21px 22px; border-bottom: 1px solid var(--line); }
.chat-head h3 { font-size: 19px; }
.chat-messages { display: grid; gap: 10px; max-height: 340px; overflow-y: auto; padding: 18px 22px; }
.message { max-width: 87%; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.message.assistant { border: 1px solid var(--line); color: var(--soft); }
.message.user { justify-self: end; background: var(--lime); color: #1e1e1e; }
.chat-form { display: flex; gap: 8px; padding: 13px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.chat-form button { width: 42px; border: 0; background: var(--lime); color: #1e1e1e; }
.gallery-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 12px 12px; }
.gallery-actions button, .gallery-actions a, .notification-item { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 7px 9px; font: 10px var(--mono); text-decoration: none; }
.gallery-actions button:hover, .gallery-actions a:hover, .notification-item:hover { border-color: var(--lime); color: var(--ink); }
.notification-list { grid-column: 1 / -1; display: grid; gap: 7px; margin-top: 5px; }
.notification-item { display: grid; gap: 4px; width: 100%; text-align: left; }
.notification-item b { color: var(--ink); font: 11px var(--sans); }
.notification-item span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.mobile-nav { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 72px; justify-content: space-between; padding: 0 20px; }
  .mobile-brand { display: flex; }
  .view { padding: 50px 20px 105px; }
  .home-hero { grid-template-columns: 1fr; gap: 22px; margin-bottom: 37px; }
  .home-hero p { max-width: 360px; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-menu { grid-template-columns: repeat(4, 1fr); }
  .tool-menu-item { display: block; padding: 12px 10px; }
  .tool-menu-item > span:nth-child(2) { display: block; margin-top: 9px; }
  .tool-menu-item > span:last-child { display: none; }
  .tool-menu-item small { display: none; }
  .mobile-nav { position: fixed; z-index: 4; right: 10px; bottom: 10px; left: 10px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px; border: 1px solid var(--line-strong); background: rgba(22, 22, 22, .94); box-shadow: 0 15px 40px rgba(0, 0, 0, .32); backdrop-filter: blur(18px); }
  .mobile-nav a { display: grid; gap: 4px; place-items: center; padding: 7px 2px; color: var(--muted); text-decoration: none; font-size: 9px; }
  .mobile-nav a.active { color: var(--ink); }
  .mobile-nav a span { color: var(--lime); font: 11px var(--mono); }
}
@media (max-width: 560px) {
  .topbar-actions { gap: 7px; }
  .chat-button { padding: 9px; font-size: 0; }
  .chat-dot { margin: 0; }
  .credit-pill { padding: 9px 8px; }
  .quick-create, .tool-workspace { padding: 17px; }
  .create-head, .section-bar, .tool-workspace-top, .inline-heading { display: block; }
  .tool-link, .section-bar .text-button, .inline-heading .text-button { display: block; margin-top: 15px; }
  .mode-switch { overflow-x: auto; }
  .mode-tab { white-space: nowrap; padding-inline: 11px; }
  textarea { min-height: 125px; font-size: 18px; }
  .prompt-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .generate-button { width: 100%; margin-left: 0; }
  .settings-row, .settings-grid, .studio-controls { grid-template-columns: 1fr; }
  .studio-controls .field-label:last-of-type { grid-column: auto; }
  .gallery, .inspiration-grid, .account-grid { grid-template-columns: 1fr; }
  .support-form, .ticket-layout { grid-template-columns: 1fr; }
  .profile-card, .catalog-card { grid-column: auto; }
  .profile-card { grid-template-columns: auto 1fr; }
  .profile-card .outline-button { grid-column: 1 / -1; width: 100%; }
  .auth-modal { padding: 29px 22px; }
}

.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 10px 14px; transform: translateY(-150%); border: 1px solid var(--lime); background: var(--panel-deep); color: var(--ink); font: 11px var(--mono); text-decoration: none; transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: #1e1e1e; }
.main-content:focus { outline: 0; }
.topbar-context { display: flex; align-items: center; gap: 18px; margin-right: auto; color: var(--muted); font: 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); }
.live-indicator .status-dot { width: 5px; height: 5px; }
.topbar-caption { color: #797979; }
.prompt-hints { display: flex; justify-content: space-between; gap: 18px; padding: 0 0 12px; color: #7e7e7e; font: 10px var(--mono); }
.prompt-hint-key { color: #656565; }
.auth-help { margin-bottom: 4px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-help strong { color: var(--ink); font-weight: 600; }
#verify-form .text-button { justify-self: start; padding: 0; }
input[type="file"] { padding: 9px; color: var(--muted); }
button, a, input, textarea, select { transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease; }
.nav-link:focus-visible, .mobile-nav a:focus-visible { outline-offset: -2px; }
.empty-state { background: linear-gradient(135deg, rgba(229, 229, 229, .025), transparent 55%); }
@media (max-width: 820px) {
  .topbar-context { display: none; }
  .topbar-actions { margin-left: auto; }
  .prompt-hints { display: block; line-height: 1.5; }
  .prompt-hint-key { display: block; margin-top: 4px; }
  .studio-metrics { 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; }
}

* { letter-spacing: 0 !important; }
body { background-color: var(--paper); color: var(--ink); }
body::before { opacity: .28; background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(64, 64, 64, .025) 11px 12px); }
.sidebar { border-color: var(--line); background: rgba(245, 245, 245, .96); }
.brand, .mobile-brand { color: var(--ink); }
.brand-mark { border-color: var(--blue); background: var(--blue); color: #ffffff; border-radius: 8px; font-family: var(--sans); font-style: normal; font-weight: 700; }
.nav-link { border-radius: 7px; }
.nav-link:hover, .nav-link.active { border-left-color: var(--blue); background: rgba(89, 89, 89, .08); color: var(--blue); }
.nav-icon, .eyebrow, .coin { color: var(--blue); }
.status-dot { background: #929292; box-shadow: 0 0 10px rgba(146, 146, 146, .35); }
.topbar { border-color: var(--line); background: rgba(245, 245, 245, .72); }
.chat-button, .credit-pill { border-color: var(--line-strong); color: var(--soft); border-radius: 7px; }
.chat-button:hover, .credit-pill:hover { border-color: var(--blue); color: var(--blue); }
.avatar { border-color: var(--orange); background: var(--orange); color: #ffffff; border-radius: 50%; font-family: var(--sans); font-style: normal; font-weight: 700; }
.view { padding-top: 58px; }
h1 { max-width: 680px; font-size: 76px; line-height: .98; }
h2 { font-size: 36px; line-height: 1.05; }
h1 em, h2 em { color: var(--blue); }
.home-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); grid-template-areas: "copy art" "desc art"; gap: 18px 44px; align-items: stretch; margin-bottom: 46px; }
.home-hero > div { grid-area: copy; align-self: end; }
.home-hero p { grid-area: desc; align-self: start; max-width: 370px; padding: 0; color: var(--muted); font-size: 15px; }
.home-hero::after { content: 'FIELD NOTES  /  001'; grid-area: art; display: flex; align-items: end; min-height: 350px; padding: 18px; border: 1px solid rgba(32, 32, 32, .14); border-radius: 12px; background: linear-gradient(0deg, rgba(25, 25, 25, .68), transparent 48%), url('https://images.unsplash.com/photo-1531058020387-3be344556be6?auto=format&fit=crop&w=1200&q=85') center 48% / cover; box-shadow: var(--shadow); color: #ffffff; font: 11px var(--mono); }
.quick-create { border: 1px solid var(--line-strong); border-top: 4px solid var(--blue); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.quick-create::after { border-color: var(--orange); border-radius: 0 8px 0 0; }
.mode-switch { gap: 5px; border-color: var(--line); }
.mode-tab { border-radius: 6px 6px 0 0; color: var(--muted); }
.mode-tab:hover, .mode-tab.active { border-bottom-color: var(--blue); color: var(--blue); }
textarea { color: var(--ink); }
textarea::placeholder { color: #9b9b9b; }
.prompt-bottom, .studio-controls { border-color: var(--line); }
.generate-button { border-radius: 7px; background: var(--blue); color: #ffffff; }
.generate-button:hover { background: #4a4a4a; }
.field-label { color: var(--muted); }
select, input { border-color: var(--line-strong); border-radius: 6px; background: #f9f9f9; color: var(--ink); }
select:focus, input:focus { border-color: var(--blue); }
.composer-status.error, .form-error { color: #656565; }
.gallery-card { overflow: hidden; border-color: var(--line); border-radius: 9px; background: var(--panel); }
.gallery-card img, .gallery-card video { background: #e5e5e5; }
.gallery-meta { color: var(--muted); }
.inspiration-card { border-color: transparent; border-radius: 9px; background: #ededed; color: var(--ink); }
.inspiration-card:nth-child(3n + 2) { background: #f0f0f0; }
.inspiration-card:nth-child(3n) { background: #f3f3f3; }
.inspiration-card:hover { border-color: var(--blue); box-shadow: 0 14px 30px rgba(44, 44, 44, .1); }
.inspiration-card p { color: #5e5e5e; }
.inspiration-card small, .tool-badge { color: #656565; }
.empty-state { border-color: var(--line-strong); border-radius: 9px; color: var(--muted); background: #f0f0f0; }
.empty-symbol { color: var(--blue); }
.filter { border-color: var(--line-strong); border-radius: 6px; color: var(--muted); }
.filter:hover, .filter.active { border-color: var(--blue); background: var(--blue); color: #ffffff; }
.tool-menu-item { border-color: var(--line); border-radius: 8px; color: var(--soft); }
.tool-menu-item:hover, .tool-menu-item.active { border-color: var(--blue); background: rgba(89, 89, 89, .07); color: var(--blue); }
.tool-symbol { color: var(--blue); }
.tool-workspace { border-color: var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.tool-badge { border-color: rgba(135, 135, 135, .35); border-radius: 5px; }
.account-card { border-color: var(--line); border-radius: 9px; background: var(--panel); }
.balance-card strong { color: var(--blue); }
.outline-button { border-color: var(--line-strong); border-radius: 6px; color: var(--ink); }
.outline-button:hover, .catalog-row:hover { border-color: var(--blue); }
.account-links button { border-color: var(--line); color: var(--soft); }
.account-links button:hover { color: var(--blue); }
.catalog-row { border-color: var(--line); border-radius: 6px; background: #f8f8f8; color: var(--ink); }
.auth-modal, .chat-drawer { border-color: var(--line-strong); border-radius: 12px; background: #ffffff; }
.modal-backdrop { background: rgba(27, 27, 27, .55); }
.close-button { color: var(--muted); }
.auth-switch button { color: var(--blue); }
.message.assistant { border-color: var(--line); color: var(--soft); }
.message.user { background: var(--blue); color: #ffffff; }
.chat-form { border-color: var(--line); }
.chat-form button { border-radius: 6px; background: var(--blue); color: #ffffff; }
.gallery-actions button, .gallery-actions a, .notification-item { border-color: var(--line); border-radius: 5px; color: var(--muted); }
.gallery-actions button:hover, .gallery-actions a:hover, .notification-item:hover { border-color: var(--blue); color: var(--blue); }
.mobile-nav { border-color: var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 32px rgba(44, 44, 44, .16); }
.mobile-nav a { color: var(--muted); }
.mobile-nav a.active, .mobile-nav a span { color: var(--blue); }
.skip-link { border-color: var(--blue); border-radius: 6px; background: #ffffff; color: var(--ink); }
:focus-visible { outline-color: var(--blue); }
::selection { background: var(--lime); color: var(--ink); }
@media (max-width: 820px) {
  .view { padding-top: 38px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "desc"; gap: 20px; }
  .home-hero::after { min-height: 260px; }
  h1 { font-size: 58px; }
  .mobile-nav { bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .view { padding-top: 30px; }
  h1 { font-size: 46px; }
  h2 { font-size: 30px; }
  .home-hero::after { min-height: 220px; }
}

:root {
  --ink: #f3f3f3;
  --muted: #acacac;
  --soft: #d8d8d8;
  --line: rgba(182, 182, 182, 0.14);
  --line-strong: rgba(195, 195, 195, 0.2);
  --paper: #0a0a0a;
  --panel: rgba(18, 18, 18, 0.9);
  --panel-deep: #161616;
  --bg-strong: #0d0d0d;
  --brand-1: #878787;
  --brand-2: #c0c0c0;
  --brand-3: #989898;
  --brand-4: #d5d5d5;
  --success: #c9c9c9;
  --shadow: 0 24px 60px rgba(8, 8, 8, 0.5);
}

html { background: var(--paper); }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(135, 135, 135, 0.2), transparent 23%),
    radial-gradient(circle at bottom left, rgba(192, 192, 192, 0.12), transparent 20%),
    linear-gradient(140deg, #0a0a0a 0%, #101010 46%, #090909 100%);
  color: var(--ink);
}
body::before {
  z-index: -1;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    radial-gradient(circle at 12% 18%, rgba(135, 135, 135, 0.18), transparent 18%),
    radial-gradient(circle at 70% 36%, rgba(192, 192, 192, 0.1), transparent 18%);
}
.app-shell { grid-template-columns: 238px minmax(0, 1fr); }
.sidebar {
  padding: 24px 15px 18px;
  border-color: var(--line);
  background: rgba(11, 11, 11, 0.8);
  backdrop-filter: blur(22px);
}
.brand, .mobile-brand {
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-1) 52%, var(--brand-2));
  color: #ffffff;
  font: 700 20px var(--sans);
  box-shadow: 0 12px 24px rgba(135, 135, 135, 0.28);
}
.nav-list { gap: 4px; margin-top: 38px; }
.nav-link {
  min-height: 38px;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
  padding-left: 10px;
  border-color: rgba(135, 135, 135, 0.24);
  background: rgba(135, 135, 135, 0.08);
  color: #ececec;
  transform: translateX(1px);
}
.nav-link.active { box-shadow: inset 2px 0 0 var(--brand-1); }
.nav-icon { flex: 0 0 17px; color: #bababa; font: 13px var(--sans); text-align: center; }
.nav-divider { height: 1px; margin: 11px 5px; background: var(--line); }
.credit-nav { align-items: flex-start; }
.credit-nav small {
  display: block;
  margin-top: 3px;
  color: #909090;
  font-size: 10px;
}
.sidebar-note {
  gap: 8px;
  border-color: var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 12px;
  padding: 12px 10px 0;
}
.sidebar-note strong { color: var(--ink); }
.sidebar-footer { color: #a6a6a6; }
.status-dot {
  background: var(--success);
  box-shadow: 0 0 14px rgba(201, 201, 201, 0.6);
}
.main-content { min-width: 0; }
.topbar {
  position: relative;
  z-index: 3;
  height: 76px;
  justify-content: flex-end;
  gap: 22px;
  padding: 0 clamp(22px, 4vw, 54px);
  border-color: var(--line);
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(18px);
}
.mobile-brand { display: none; }
.topbar-context { margin-right: 0; color: #919191; }
.topbar-caption { color: #828282; }
.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, 38vw);
  height: 39px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  color: var(--muted);
}
.global-search > span { font: 23px var(--sans); line-height: 1; }
.global-search input {
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.global-search input::placeholder { color: #838383; }
.global-search input:focus { border: 0; }
.global-search { position: relative; }
.global-search-results {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.global-search-results[hidden] { display: none; }
.search-result:hover { background: rgba(255, 255, 255, .06); }
.search-save-button { width: calc(100% - 20px); cursor: pointer; }
.search-save-button:disabled { cursor: not-allowed; }
.topbar-actions { gap: 9px; }
.upgrade-button, .chat-button, .credit-pill {
  min-height: 37px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: #e3e3e3;
  font-size: 11px;
}
.upgrade-button {
  border-color: transparent;
  background: linear-gradient(100deg, var(--brand-1), var(--brand-3));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(135, 135, 135, 0.25);
}
.upgrade-button:hover { filter: brightness(1.08); }
.chat-button:hover, .credit-pill:hover { border-color: rgba(135, 135, 135, 0.45); color: #eaeaea; }
.chat-dot { background: var(--brand-2); }
.coin { color: var(--brand-4); }
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(186, 186, 186, 0.4);
  background: linear-gradient(145deg, #1e1e1e, #3a3a3a);
  color: #efefef;
  font: 600 14px var(--sans);
}
.search-toggle { display: none; }
.view {
  width: min(100%, 1620px);
  max-width: none;
  margin: 0 auto;
  padding: 42px clamp(22px, 4vw, 58px) 90px;
}
.home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  grid-template-areas: "copy art" "desc art";
  gap: 14px 42px;
  align-items: stretch;
  margin-bottom: 24px;
}
.home-hero > div { grid-area: copy; align-self: end; }
.home-hero p {
  grid-area: desc;
  align-self: start;
  max-width: 390px;
  padding: 0;
  color: #aaaaaa;
  font-size: 13px;
  line-height: 1.7;
}
.home-hero::after {
  grid-area: art;
  display: flex;
  align-items: end;
  min-height: 304px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(201, 201, 201, 0.18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.1), rgba(9, 9, 9, 0.7)), url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=1200&q=88') center 42% / cover;
  box-shadow: var(--shadow);
  color: #ffffff;
  content: 'Your Ideas, Our AI.';
  font: italic 29px var(--serif);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.72);
}
.eyebrow {
  margin-bottom: 11px;
  color: #b7b7b7;
  font-size: 9px;
  letter-spacing: 0.14em;
}
h1 {
  max-width: 690px;
  color: #fbfbfb;
  font-size: clamp(50px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}
h1 em, h2 em {
  background: linear-gradient(100deg, #9e9e9e, #8f8f8f 62%, #c7c7c7);
  background-clip: text;
  color: transparent;
}
h2 {
  color: #f3f3f3;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.page-heading h2 { font-size: clamp(40px, 5vw, 66px); }
.quick-create, .tool-workspace, .account-card {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.96), rgba(15, 15, 15, 0.94));
  box-shadow: var(--shadow);
}
.quick-create {
  padding: 21px 23px;
  border-top: 2px solid rgba(135, 135, 135, 0.55);
}
.quick-create::after {
  width: 56px;
  height: 56px;
  border-color: rgba(185, 185, 185, 0.4);
  border-radius: 0 12px 0 0;
}
.create-head { align-items: center; }
.create-head h2 { font-size: 21px; }
.tool-link, .text-button {
  color: #c1c1c1;
  font-size: 11px;
}
.tool-link:hover, .text-button:hover { color: #c6c6c6; }
.mode-switch { margin-top: 17px; border-color: var(--line); }
.mode-tab {
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  color: #9c9c9c;
}
.mode-tab:hover, .mode-tab.active {
  border-bottom-color: #a7a7a7;
  color: #e7e7e7;
}
textarea {
  color: var(--ink);
  font-size: 19px;
}
textarea::placeholder { color: #848484; }
.prompt-hints, .prompt-hint-key, .char-count, .reference-state { color: #8d8d8d; }
.prompt-bottom, .studio-controls { border-color: var(--line); }
.generate-button {
  min-height: 44px;
  border-radius: 10px;
  background: linear-gradient(105deg, var(--brand-1), var(--brand-3));
  color: white;
  box-shadow: 0 12px 24px rgba(135, 135, 135, 0.24);
}
.generate-button:hover {
  background: linear-gradient(105deg, #979797, #a5a5a5);
  transform: translateY(-1px);
}
.settings-row, .settings-grid { gap: 9px; }
.field-label { color: #a4a4a4; }
select, input {
  border-color: var(--line-strong);
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.9);
  color: var(--ink);
}
select:focus, input:focus { border-color: #a7a7a7; }
.composer-status { color: #a4a4a4; }
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.category-chips button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #b7b7b7;
  font-size: 10px;
}
.category-chips button:hover {
  border-color: rgba(159, 159, 159, 0.5);
  background: rgba(135, 135, 135, 0.1);
  color: #eeeeee;
}
.section-block { margin-top: 48px; }
.section-bar { align-items: end; margin-bottom: 16px; }
.section-bar h2 { font-size: 25px; }
.section-subtitle {
  margin-top: 6px;
  color: #9c9c9c;
  font-size: 11px;
  line-height: 1.5;
}
.tool-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-feature {
  position: relative;
  min-width: 0;
  min-height: 185px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #161616;
  color: var(--ink);
  text-align: left;
  isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.tool-feature::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.2), rgba(9, 9, 9, 0.85));
  content: '';
  transition: opacity 0.25s ease;
}
.tool-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(186, 186, 186, 0.5);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}
.tool-feature:hover .feature-art { transform: scale(1.04); }
.feature-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 0.4s ease;
}
.image-feature .feature-art { background-image: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=680&q=80'); }
.video-feature .feature-art { background-image: url('https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=680&q=80'); }
.voice-feature .feature-art { background-image: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?auto=format&fit=crop&w=680&q=80'); }
.music-feature .feature-art { background-image: url('https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=680&q=80'); }
.feature-copy { display: grid; gap: 5px; max-width: calc(100% - 25px); }
.feature-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(135, 135, 135, 0.26);
  color: #ffffff;
  font-size: 15px;
}
.video-feature .feature-icon { background: rgba(192, 192, 192, 0.24); }
.voice-feature .feature-icon { background: rgba(152, 152, 152, 0.3); }
.music-feature .feature-icon { background: rgba(213, 213, 213, 0.28); }
.feature-copy b { font-size: 14px; }
.feature-copy small { color: #d1d1d1; font-size: 10px; line-height: 1.45; }
.feature-arrow {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.32);
  color: white;
}
.mini-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mini-tool-grid button {
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(22, 22, 22, 0.7);
  color: var(--ink);
  text-align: left;
}
.mini-tool-grid button:hover {
  border-color: rgba(153, 153, 153, 0.5);
  background: rgba(29, 29, 29, 0.88);
}
.mini-tool-grid button > span {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(152, 152, 152, 0.22), rgba(135, 135, 135, 0.28));
  color: #dedede;
  font-size: 16px;
}
.mini-tool-grid button b { font-size: 11px; }
.mini-tool-grid button small {
  margin-top: 4px;
  color: #9e9e9e;
  font-size: 9px;
  line-height: 1.35;
}
.model-rail {
  display: grid;
  grid-auto-columns: minmax(185px, 1fr);
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 6px;
  scrollbar-color: #4e4e4e transparent;
}
.model-card {
  position: relative;
  min-width: 0;
  height: 154px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #181818;
  isolation: isolate;
}
.model-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15), rgba(10, 10, 10, 0.88));
  content: '';
}
.model-card:hover {
  border-color: rgba(151, 151, 151, 0.5);
  transform: translateY(-2px);
}
.model-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-position: center;
  background-size: cover;
}
.model-flux .model-art { background-image: url('https://images.unsplash.com/photo-1534447677768-be436bb09401?auto=format&fit=crop&w=500&q=75'); }
.model-klein .model-art { background-image: url('https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=500&q=75'); }
.model-sd .model-art { background-image: url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=500&q=75'); }
.model-veo .model-art { background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=500&q=75'); }
.model-voice .model-art { background-image: url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?auto=format&fit=crop&w=500&q=75'); }
.model-suno .model-art { background-image: url('https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=500&q=75'); }
.model-info { display: grid; gap: 4px; min-width: 0; }
.model-info b {
  overflow: hidden;
  color: #ffffff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-info small { color: #d1d1d1; font-size: 9px; }
.model-arrow {
  position: absolute;
  top: 9px;
  right: 10px;
  color: rgba(255, 255, 255, .8);
}
.community-mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 9px; }
.community-art {
  position: relative;
  min-width: 0;
  min-height: 175px;
  display: flex;
  align-items: end;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: #181818;
  background-position: center;
  background-size: cover;
  color: white;
  text-align: left;
  isolation: isolate;
}
.community-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.1), rgba(8, 8, 8, 0.82));
  content: '';
}
.community-art:hover { transform: translateY(-2px); }
.community-art span { font-size: 10px; font-weight: 600; }
.art-portrait { background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=600&q=80'); }
.art-city { background-image: url('https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=500&q=80'); }
.art-castle { background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=500&q=80'); }
.art-fashion { background-image: url('https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=500&q=80'); }
.art-nature { background-image: url('https://images.unsplash.com/photo-1470252649378-9c29740c9fa8?auto=format&fit=crop&w=500&q=80'); }
.gallery, .inspiration-grid { gap: 12px; }
.gallery-card, .inspiration-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(19, 19, 19, 0.9);
  color: var(--ink);
}
.gallery-card img, .gallery-card video { background: #191919; }
.gallery-meta { color: #a9a9a9; }
.inspiration-card {
  min-height: 170px;
  padding: 17px;
  background: linear-gradient(145deg, rgba(23, 23, 23, 0.92), rgba(14, 14, 14, 0.9));
}
.inspiration-card:nth-child(3n + 2), .inspiration-card:nth-child(3n) {
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.92), rgba(14, 14, 14, 0.9));
}
.inspiration-card:hover { border-color: rgba(160, 160, 160, 0.5); }
.inspiration-card h3 { color: #f0f0f0; }
.inspiration-card p { color: #a8a8a8; }
.inspiration-card small, .tool-badge { color: #b4b4b4; }
.empty-state {
  border-color: var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}
.empty-symbol { color: var(--brand-2); }
.filter {
  border-color: var(--line);
  border-radius: 7px;
  color: var(--muted);
}
.filter:hover, .filter.active {
  border-color: rgba(153, 153, 153, 0.5);
  background: rgba(153, 153, 153, 0.15);
  color: #e4e4e4;
}
.tool-layout { grid-template-columns: 210px minmax(0, 1fr); }
.tool-menu-item {
  border-color: var(--line);
  border-radius: 9px;
  color: var(--soft);
}
.tool-menu-item:hover, .tool-menu-item.active {
  border-color: rgba(151, 151, 151, 0.52);
  background: rgba(136, 136, 136, 0.1);
  color: #dfdfdf;
}
.tool-symbol { color: #b7b7b7; }
.tool-workspace { background: linear-gradient(145deg, rgba(25, 25, 25, 0.96), rgba(18, 18, 18, 0.94)); }
.tool-badge { border-color: rgba(160, 160, 160, 0.34); }
.account-card { background: rgba(21, 21, 21, 0.84); }
.balance-card strong { color: #c2c2c2; }
.outline-button, .catalog-row {
  border-color: var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}
.outline-button:hover, .catalog-row:hover { border-color: #a9a9a9; }
.account-links button { border-color: var(--line); color: var(--soft); }
.catalog-row { background: rgba(255, 255, 255, 0.03); }
.auth-modal, .chat-drawer {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #141414;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.modal-backdrop { background: rgba(5, 5, 5, 0.78); }
.close-button { color: #ababab; }
.auth-switch button { color: #b7b7b7; }
.message.assistant { border-color: var(--line); color: var(--soft); }
.message.user { background: linear-gradient(105deg, #878787, #989898); color: #ffffff; }
.chat-form { border-color: var(--line); }
.chat-form button {
  border-radius: 8px;
  background: linear-gradient(105deg, var(--brand-1), var(--brand-3));
  color: #ffffff;
}
.gallery-actions button, .gallery-actions a, .notification-item {
  border-color: var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.gallery-actions button:hover, .gallery-actions a:hover, .notification-item:hover {
  border-color: rgba(153, 153, 153, 0.5);
  color: #eeeeee;
}
.home-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin-top: 62px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.footer-highlights div { display: grid; gap: 5px; }
.footer-highlights b { color: #ebebeb; font-size: 10px; }
.footer-highlights span { color: #969696; font-size: 9px; line-height: 1.45; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: #969696; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--ink); }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.footer-brand > span:last-child { display: grid; gap: 3px; }
.footer-brand b { font-size: 13px; }
.footer-brand small { color: #939393; font-size: 8px; white-space: nowrap; }
.mobile-nav {
  border-color: rgba(224, 224, 224, 0.15);
  border-radius: 15px;
  background: rgba(17, 17, 17, 0.9);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.46);
}

@media (max-width: 820px) {
  .view { padding-top: 38px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "desc"; gap: 20px; }
  .home-hero::after { min-height: 260px; }
  h1 { font-size: 58px; }
  .mobile-nav { bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .view { padding-top: 30px; }
  h1 { font-size: 46px; }
  h2 { font-size: 30px; }
  .home-hero::after { min-height: 220px; }
}

@media (max-width: 1100px) {
  .topbar { gap: 13px; padding-inline: 24px; }
  .topbar-context { display: none; }
  .tool-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .community-art { min-height: 150px; }
  .community-art:nth-child(n + 4) { display: none; }
  .footer-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 67px; justify-content: space-between; gap: 12px; padding: 0 16px; }
  .mobile-brand { display: flex; gap: 8px; font-size: 17px; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 18px; }
  .topbar-actions { gap: 6px; margin-left: auto; }
  .global-search { display: none; }
  .search-toggle { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: #e0e0e0; font-size: 21px; }
  .topbar.search-open .global-search { position: absolute; top: 58px; right: 12px; left: 12px; z-index: 5; width: auto; display: flex; background: #161616; box-shadow: var(--shadow); }
  .upgrade-button, .chat-button { display: none; }
  .credit-pill { min-height: 34px; padding: 7px 8px; font-size: 10px; }
  .view { width: 100%; padding: 28px 17px 100px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "desc"; gap: 16px; margin-bottom: 20px; }
  .home-hero::after { min-height: 245px; padding: 17px; font-size: 24px; }
  h1 { font-size: clamp(43px, 9vw, 62px); }
  .home-hero p { max-width: 440px; font-size: 12px; }
  .quick-create { padding: 17px; }
  .tool-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-feature { min-height: 166px; padding: 12px; }
  .mini-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-rail { grid-auto-columns: 190px; }
  .community-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-art { min-height: 165px; }
  .community-art:nth-child(n + 4) { display: flex; }
  .mobile-nav { position: fixed; z-index: 7; right: 12px; bottom: max(9px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 5px 3px; }
  .mobile-nav a { padding: 5px 2px; }
  .home-footer { grid-template-columns: 1fr; }
  .footer-brand { justify-self: end; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-menu-item { padding: 10px 8px; }
  .tool-menu-item small { display: none; }
}
@media (max-width: 560px) {
  .topbar { padding-inline: 11px; }
  .credit-pill { padding: 7px; }
  .credit-pill .coin { margin-right: 3px; }
  .view { padding: 24px 13px 98px; }
  .home-hero::after { min-height: 220px; }
  .quick-create, .tool-workspace { padding: 15px; }
  .create-head, .section-bar, .tool-workspace-top, .inline-heading { display: flex; align-items: end; }
  .section-bar { gap: 10px; }
  .section-bar .text-button { flex: 0 0 auto; margin-top: 0; }
  .mode-switch { overflow-x: auto; }
  .tool-feature-grid, .mini-tool-grid { gap: 7px; }
  .tool-feature { min-height: 150px; padding: 10px; }
  .feature-copy b { font-size: 12px; }
  .feature-copy small { font-size: 9px; }
  .mini-tool-grid button { min-height: 76px; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 9px 7px; }
  .mini-tool-grid button > span { width: 27px; height: 27px; }
  .mini-tool-grid button b { font-size: 10px; }
  .mini-tool-grid button small { font-size: 8px; }
  .community-mosaic { gap: 7px; }
  .community-art { min-height: 135px; padding: 9px; }
  .section-block { margin-top: 37px; }
  .section-bar h2 { font-size: 22px; }
  .footer-highlights { gap: 13px; }
  .footer-highlights b { font-size: 9px; }
  .footer-highlights span { font-size: 8px; }
  .tool-menu-item { font-size: 10px; }
  .tool-menu-item > span:nth-child(2) { margin-top: 6px; }
  .tool-menu-item b { font-size: 10px; }
}

.view[data-view-panel="home"].active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, .62fr);
  align-items: start;
  column-gap: 15px;
}
.home-hero, .category-chips, .section-block, .home-footer { grid-column: 1 / -1; }
.quick-create { grid-column: 1; }
.home-spotlight {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(21, 21, 21, 0.98), rgba(14, 14, 14, 0.95));
  box-shadow: var(--shadow);
}
.spotlight-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.spotlight-heading .eyebrow { margin-bottom: 7px; }
.spotlight-heading h2 { font-size: 20px; }
.spotlight-heading .text-button { flex: 0 0 auto; font-size: 10px; }
.spotlight-tabs {
  display: flex;
  gap: 5px;
  margin: 14px 0 9px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}
.spotlight-tabs button {
  flex: 1;
  padding: 7px 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a4a4a4;
  font-size: 9px;
}
.spotlight-tabs button.active {
  background: rgba(135, 135, 135, 0.14);
  color: #ebebeb;
}
.spotlight-list { display: grid; gap: 6px; }
.spotlight-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 49px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.spotlight-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.spotlight-thumb {
  width: 49px;
  height: 43px;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
}
.spotlight-one .spotlight-thumb { background-image: url('https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=180&q=75'); }
.spotlight-two .spotlight-thumb { background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=180&q=75'); }
.spotlight-three .spotlight-thumb { background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=180&q=75'); }
.spotlight-item > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.spotlight-item b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spotlight-item small { color: #969696; font-size: 8px; }
.spotlight-item i { color: #b7b7b7; font-size: 12px; font-style: normal; }
.community-cta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 12px 11px 7px;
  border-top: 1px solid var(--line);
}
.community-cta b { color: #eeeeee; font-size: 11px; }
.community-cta p { color: #a4a4a4; font-size: 9px; line-height: 1.5; }
.community-cta .text-button { justify-self: start; padding: 2px 0; font-size: 10px; }
.model-card { cursor: pointer; }
.model-card:focus-visible { outline: 2px solid #aeaeae; outline-offset: 2px; }

@media (max-width: 820px) {
  .view[data-view-panel="home"].active { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .quick-create, .home-spotlight { grid-column: 1; }
  .home-spotlight { grid-row: auto; margin-top: 21px; }
  .home-hero, .category-chips, .section-block, .home-footer { grid-column: 1; }
}

:root {
  --ink: #f3f3f3;
  --muted: #ababab;
  --soft: #d8d8d8;
  --line: rgba(220, 220, 220, .13);
  --line-strong: rgba(220, 220, 220, .23);
  --paper: #151515;
  --panel: #1d1d1d;
  --panel-deep: #242424;
  --brand-1: #e3e3e3;
  --brand-2: #c0c0c0;
  --brand-3: #a7a7a7;
  --brand-4: #cccccc;
  --success: #c9c9c9;
  --shadow: 0 22px 54px rgba(0, 0, 0, .32);
}

html { background: var(--paper); }
body {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(135deg, transparent 0 17px, rgba(227, 227, 227, .018) 17px 18px);
  color: var(--ink);
}
body::before {
  z-index: -1;
  opacity: 0;
  background: none;
}
.brand-mark {
  border: 0;
  border-radius: 8px;
  background: var(--brand-1);
  color: #1d1d1d;
  box-shadow: 0 8px 20px rgba(227, 227, 227, .15);
}
.nav-link:hover, .nav-link.active {
  border-color: rgba(227, 227, 227, .22);
  background: rgba(227, 227, 227, .08);
  color: var(--brand-1);
}
.nav-link.active { box-shadow: inset 2px 0 0 var(--brand-1); }
.nav-icon, .eyebrow, .coin, .tool-symbol { color: var(--brand-1); }
.topbar { background: rgba(21, 21, 21, .9); }
.upgrade-button, .generate-button {
  border-color: transparent;
  background: var(--brand-1);
  color: #1d1d1d;
  box-shadow: 0 8px 20px rgba(227, 227, 227, .13);
}
.upgrade-button:hover, .generate-button:hover { background: #f0f0f0; }
.chat-button:hover, .credit-pill:hover, .outline-button:hover, .catalog-row:hover { border-color: var(--brand-1); }
.avatar {
  border-color: rgba(167, 167, 167, .55);
  background: #303030;
  color: #dedede;
}
h1, h2, h3 { color: var(--ink); }
h1 em, h2 em {
  background: none;
  color: var(--brand-1);
}
.home-hero p, .section-subtitle, .page-heading > p { color: var(--muted); }
.home-hero::after {
  border-color: var(--line-strong);
  border-radius: 8px;
}
.quick-create, .tool-workspace, .account-card {
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.quick-create { border-top: 2px solid var(--brand-1); }
.quick-create::after { border-color: rgba(167, 167, 167, .5); }
.mode-tab:hover, .mode-tab.active {
  border-bottom-color: var(--brand-1);
  color: var(--brand-1);
}
.generate-button:hover { transform: translateY(-1px); }
select, input {
  border-color: var(--line-strong);
  border-radius: 6px;
  background: #181818;
}
select:focus, input:focus { border-color: var(--brand-1); }
.category-chips button:hover {
  border-color: rgba(227, 227, 227, .48);
  background: rgba(227, 227, 227, .09);
  color: var(--ink);
}
.tool-feature, .mini-tool-grid button, .catalog-model-card, .workflow-card,
.home-spotlight, .gallery-card, .inspiration-card, .account-card,
.model-card, .empty-state, .auth-modal, .chat-drawer {
  border-radius: 8px;
}
.tool-feature:hover, .gallery-card:hover, .mini-tool-grid button:hover,
.workflow-card:hover, .workflow-card.active, .catalog-model-card:hover {
  border-color: rgba(227, 227, 227, .42);
}
.feature-icon, .mini-tool-grid button > span {
  border-radius: 6px;
  background: rgba(227, 227, 227, .14);
  color: var(--brand-1);
}
.video-feature .feature-icon, .voice-feature .feature-icon, .music-feature .feature-icon { background: rgba(192, 192, 192, .16); }
.spotlight-tabs button.active, .filter:hover, .filter.active {
  border-color: var(--brand-1);
  background: rgba(227, 227, 227, .13);
  color: var(--brand-1);
}
.inspiration-card { border-color: var(--line); background: #282828; }
.inspiration-card:nth-child(3n + 2) { background: #282828; }
.inspiration-card:nth-child(3n) { background: #272727; }
.inspiration-card p, .spotlight-item small { color: var(--muted); }
.inspiration-card small, .tool-badge { color: var(--brand-3); }
.balance-card strong { color: var(--brand-1); }
.chat-form button { background: var(--brand-1); color: #1d1d1d; }
.message.user { background: var(--brand-1); color: #1d1d1d; }
.mobile-nav {
  border-radius: 8px;
  background: rgba(26, 26, 26, .97);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.mobile-nav a.active, .mobile-nav a span { color: var(--brand-1); }
.mobile-nav a.mobile-create span {
  border-color: #1a1a1a;
  background: var(--brand-1);
  color: #1d1d1d;
  box-shadow: 0 4px 16px rgba(227, 227, 227, .2);
}
.mobile-nav a.mobile-create small { color: var(--brand-1); }
.workflow-guidance { border-color: rgba(227, 227, 227, .2); background: rgba(227, 227, 227, .06); }
.skip-link { border-color: var(--brand-1); background: var(--panel); }
:focus-visible { outline-color: var(--brand-1); }
::selection { background: var(--brand-1); color: #1d1d1d; }

@media (max-width: 820px) {
  .view { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .mobile-nav { bottom: calc(8px + env(safe-area-inset-bottom)); }
}

@media (max-width: 820px) {
.app-shell {
  display: block;
  width: min(100%, 560px);
  min-height: 100vh;
  margin-inline: auto;
}
.sidebar { display: none; }
.mobile-brand { display: flex; gap: 8px; font-size: 17px; }
.mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 8px; font-size: 18px; }
.topbar { height: 67px; justify-content: space-between; gap: 12px; padding: 0 11px; }
.topbar-context { display: none; }
.topbar-actions { gap: 6px; margin-left: auto; }
.global-search { display: none; }
.topbar.search-open .global-search { position: absolute; top: 58px; right: 12px; left: 12px; z-index: 5; width: auto; display: flex; background: var(--panel); box-shadow: var(--shadow); }
.search-toggle { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--brand-1); font-size: 21px; }
.upgrade-button, .chat-button { display: none; }
.credit-pill { min-height: 34px; padding: 7px; font-size: 10px; }
.credit-pill .coin { margin-right: 3px; }
.view { width: 100%; padding: 24px 13px calc(98px + env(safe-area-inset-bottom)); }
.view h1 { font-size: 46px; }
.view h2, .page-heading h2 { font-size: 30px; }
.view textarea { min-height: 125px; font-size: 18px; }
.view[data-view-panel="home"].active { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.home-hero { grid-column: 1; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "desc"; gap: 16px; margin-bottom: 20px; }
.home-hero::after { min-height: 220px; padding: 17px; font-size: 24px; }
.home-hero p { max-width: 440px; font-size: 12px; }
.quick-create, .home-spotlight { grid-column: 1; }
.home-spotlight { grid-row: auto; margin-top: 21px; }
.home-hero, .category-chips, .section-block, .home-footer { grid-column: 1; }
.tool-layout { grid-template-columns: 1fr; }
.tool-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-menu-item { padding: 10px 8px; font-size: 10px; }
.tool-menu-item small, .tool-menu-item > span:last-child { display: none; }
.tool-menu-item > span:nth-child(2) { display: block; margin-top: 6px; }
.tool-feature-grid, .mini-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.tool-feature { min-height: 150px; padding: 10px; }
.feature-copy b, .mini-tool-grid button b { font-size: 12px; }
.feature-copy small, .mini-tool-grid button small { font-size: 9px; }
.mini-tool-grid button { min-height: 76px; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 9px 7px; }
.mini-tool-grid button > span { width: 27px; height: 27px; }
.model-rail { grid-auto-columns: 190px; }
.community-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.community-art { min-height: 135px; padding: 9px; }
.community-art:nth-child(n + 4) { display: flex; }
.gallery, .inspiration-grid, .account-grid { grid-template-columns: 1fr; }
.support-form, .ticket-layout { grid-template-columns: 1fr; }
.profile-card, .catalog-card { grid-column: auto; }
.profile-card { grid-template-columns: auto 1fr; }
.profile-card .outline-button { grid-column: 1 / -1; width: 100%; }
.create-head, .section-bar, .tool-workspace-top, .inline-heading { display: flex; align-items: end; }
.section-bar { gap: 10px; }
.section-bar .text-button { flex: 0 0 auto; margin-top: 0; }
.section-bar h2 { font-size: 22px; }
.quick-create, .tool-workspace { padding: 15px; }
.prompt-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
.generate-button { width: 100%; margin-left: 0; }
.settings-row, .settings-grid, .studio-controls { grid-template-columns: 1fr; }
.studio-controls .field-label:last-of-type { grid-column: auto; }
.popular-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.popular-tool-grid button { min-height: 108px; grid-template-columns: 30px minmax(0, 1fr); gap: 5px 8px; padding: 11px 9px; }
.popular-tool-grid button > span { width: 30px; height: 30px; }
.popular-tool-grid button b { font-size: 10px; }
.popular-tool-grid button small { font-size: 8px; }
.catalog-model-grid, .workflow-grid { grid-template-columns: 1fr; }
.catalog-model-card { min-height: 112px; }
.workflow-card { min-height: 100px; grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
.workflow-icon { width: 34px; height: 34px; }
.home-footer { grid-template-columns: 1fr; }
.footer-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.footer-highlights b { font-size: 9px; }
.footer-highlights span { font-size: 8px; }
.footer-brand { justify-self: end; }
.mobile-nav {
  position: fixed;
  z-index: 7;
  right: auto;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100vw - 24px), 536px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 5px 5px 3px;
  transform: translateX(-50%);
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.mobile-nav a { min-height: 46px; gap: 3px; padding: 5px 2px; color: var(--muted); font-size: 9px; }
.mobile-nav a span { color: var(--brand-1); }
.mobile-nav a.active { color: var(--brand-1); }
.mobile-nav a.mobile-create { position: relative; top: -15px; align-self: start; gap: 1px; }
.mobile-nav a.mobile-create span { width: 48px; height: 48px; display: grid; place-items: center; border: 3px solid var(--paper); border-radius: 50%; background: var(--brand-1); color: var(--paper); box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-1) 24%, transparent); }
.mobile-nav a.mobile-create small { color: var(--brand-1); font-size: 9px; }
.chat-drawer { right: max(12px, calc((100vw - 560px) / 2 + 12px)); bottom: calc(82px + env(safe-area-inset-bottom)); }
}

.account-feature-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.account-feature-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.account-feature-card:first-child, .account-feature-card:nth-child(2), .account-feature-card:nth-child(3) { grid-column: span 1; }
.account-feature-disclosure { min-width: 0; align-self: start; overflow: clip; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.account-feature-disclosure > summary { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.account-feature-disclosure > summary:focus-visible { outline: 2px solid var(--text-secondary); outline-offset: -3px; }
.account-feature-disclosure > summary::-webkit-details-marker { display: none; }
.account-feature-disclosure > summary::after { flex: 0 0 auto; content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.account-feature-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.account-feature-disclosure[open] > summary::after { content: "−"; }
.account-feature-disclosure > summary .section-bar { min-width: 0; margin: 0; }
.account-feature-disclosure > summary h3 { margin: 0 0 4px; font-size: 16px; }
.account-feature-disclosure > summary p { margin: 0; font-size: 12px; }
.account-feature-content { min-width: 0; padding: 4px 16px 16px; }
.account-feature-content > .account-feature-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-feature-content > .account-feature-card > .section-bar { display: none; }
.account-feature-content > .account-feature-card h3 { display: none; }
.account-feature-content > .account-feature-card[data-account-section] { scroll-margin-top: 96px; }
.account-form[hidden] { display: none; }
.account-form .field-label[hidden] { display: none; }
.account-feature-card h3 { margin: 4px 0 6px; font-size: 19px; }
.account-feature-card h4 { margin: 20px 0 8px; color: var(--ink); font-size: 14px; }
.account-feature-card p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.account-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 14px 0; }
.account-form .field-label:only-child, .account-form button, .account-form .preference-option { grid-column: 1 / -1; }
.account-form .field-label { min-width: 0; }
.account-form .field-hint { grid-column: 1 / -1; margin-top: -6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.account-form input, .account-form textarea, .account-form select, .prompt-preset-select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.account-form input, .account-form select, .prompt-preset-select { min-height: 42px; padding: 9px 11px; }
.account-form textarea { min-height: 88px; padding: 10px 11px; resize: vertical; }
.account-detail-list { display: grid; gap: 8px; margin-top: 12px; }
.account-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.account-detail-row > span:first-child { display: grid; gap: 4px; min-width: 0; }
.account-detail-row b, .account-detail-row small { overflow-wrap: anywhere; }
.account-detail-row small { color: var(--muted); font-size: 11px; }
.account-detail-row button, .account-row-actions button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.team-card { display: grid; gap: 6px; }
.team-members-list { display: grid; gap: 6px; margin: 0 0 6px 12px; }
.team-member-row { padding-block: 8px; }
.account-row-actions { display: flex; gap: 6px; }
.account-inline-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0; }
.feature-status { min-height: 1.3em; overflow-wrap: anywhere; }
.notification-list { display: grid; gap: 7px; margin-top: 14px; }
.notification-item { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); text-align: left; cursor: pointer; }
.notification-item span { color: var(--muted); font-size: 12px; }
.notification-item.read { opacity: .62; }
.prompt-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.prompt-toolbar > span { color: var(--muted); font-size: 11px; }
.prompt-preset-select { width: auto; max-width: min(240px, 100%); min-height: 34px; padding: 5px 8px; font-size: 12px; }
.community-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; }
.community-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.community-card img, .community-card video { display: block; width: 100%; max-height: 360px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.community-card-copy { display: grid; gap: 9px; padding: 13px; }
.community-card-copy h3, .community-card-copy p { margin: 0; }
.community-card-meta, .community-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.community-card-actions button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; }
.community-card-byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 11px; }
.community-uploader-link { padding: 0; border: 0; background: transparent; color: var(--brand-1); text-decoration: underline; cursor: pointer; }
.community-card-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.community-card-details > div { display: grid; gap: 4px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.community-card-details small { color: var(--muted); font-size: 10px; }
.community-card-details span { overflow-wrap: anywhere; font-size: 12px; }
.community-card-prompt { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--glass); }
.community-card-prompt h4 { margin: 0 0 6px; font-size: 11px; }
.community-card-prompt p { overflow-wrap: anywhere; white-space: pre-wrap; color: var(--muted); font-size: 12px; line-height: 1.5; }
.community-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.community-card-tags span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.community-comments { display: grid; gap: 8px; }
.community-comment { padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.community-comment p { margin: 0 0 6px; }
.community-comment-form { display: flex; gap: 7px; }
.community-comment-form input { flex: 1; min-width: 0; }
.community-controls .field-label { flex: 1 1 180px; }
.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.community-load-more { grid-column: 1 / -1; justify-self: center; }
.search-result { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.search-result > span:last-child { display: grid; gap: 3px; }
.search-result small, .search-result-type { color: var(--muted); font-size: 11px; }
.search-save-button { margin: 10px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); }
.catalog-row-group { display: grid; gap: 7px; }
.catalog-auto-renew { justify-self: start; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); color: var(--ink); font-size: 12px; cursor: pointer; }
.catalog-region-note { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
  .account-feature-panels { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .account-feature-card { padding: 15px; }
  .account-feature-disclosure > summary { min-height: 72px; padding: 12px; }
  .account-feature-content { padding: 4px 12px 12px; }
  .account-form { grid-template-columns: minmax(0, 1fr); }
  .account-form .field-label, .account-form button, .account-form .preference-option { grid-column: 1; }
  .account-detail-row { align-items: flex-start; }
  .community-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .topbar { padding-inline: 11px; }
  .view { padding-inline: 13px; }
}

@media (max-width: 820px) {
.app-shell {
  display: block;
  width: min(100%, 560px);
  min-height: 100vh;
  margin-inline: auto;
}
.sidebar { display: none; }
.mobile-brand { display: flex; gap: 8px; font-size: 17px; }
.mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 8px; font-size: 18px; }
.topbar { height: 67px; justify-content: space-between; gap: 12px; padding: 0 11px; }
.topbar-context { display: none; }
.topbar-actions { gap: 6px; margin-left: auto; }
.global-search { display: none; }
.topbar.search-open .global-search { position: absolute; top: 58px; right: 12px; left: 12px; z-index: 5; width: auto; display: flex; background: var(--panel); box-shadow: var(--shadow); }
.search-toggle { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: var(--brand-1); font-size: 21px; }
.upgrade-button, .chat-button { display: none; }
.credit-pill { min-height: 34px; padding: 7px; font-size: 10px; }
.credit-pill .coin { margin-right: 3px; }
.view { width: 100%; padding: 24px 13px calc(98px + env(safe-area-inset-bottom)); }
.view h1 { font-size: 46px; }
.view h2, .page-heading h2 { font-size: 30px; }
.view textarea { min-height: 125px; font-size: 18px; }
.view[data-view-panel="home"].active { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.home-hero { grid-column: 1; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "desc"; gap: 16px; margin-bottom: 20px; }
.home-hero::after { min-height: 220px; padding: 17px; font-size: 24px; }
.home-hero p { max-width: 440px; font-size: 12px; }
.quick-create, .home-spotlight { grid-column: 1; }
.home-spotlight { grid-row: auto; margin-top: 21px; }
.category-chips, .section-block, .home-footer { grid-column: 1; }
.tool-layout { grid-template-columns: 1fr; }
.tool-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-menu-item { padding: 10px 8px; font-size: 10px; }
.tool-menu-item small, .tool-menu-item > span:last-child { display: none; }
.tool-menu-item > span:nth-child(2) { display: block; margin-top: 6px; }
.tool-feature-grid, .mini-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.tool-feature { min-height: 150px; padding: 10px; }
.feature-copy b, .mini-tool-grid button b { font-size: 12px; }
.feature-copy small, .mini-tool-grid button small { font-size: 9px; }
.mini-tool-grid button { min-height: 76px; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; padding: 9px 7px; }
.mini-tool-grid button > span { width: 27px; height: 27px; }
.model-rail { grid-auto-columns: 190px; }
.community-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.community-art { min-height: 135px; padding: 9px; }
.community-art:nth-child(n + 4) { display: flex; }
.gallery, .inspiration-grid, .account-grid { grid-template-columns: 1fr; }
.support-form, .ticket-layout { grid-template-columns: 1fr; }
.profile-card, .catalog-card { grid-column: auto; }
.profile-card { grid-template-columns: auto 1fr; }
.profile-card .outline-button { grid-column: 1 / -1; width: 100%; }
.create-head, .section-bar, .tool-workspace-top, .inline-heading { display: flex; align-items: end; }
.section-bar { gap: 10px; }
.section-bar .text-button { flex: 0 0 auto; margin-top: 0; }
.section-bar h2 { font-size: 22px; }
.page-heading h2 { font-size: 30px; }
.quick-create, .tool-workspace { padding: 15px; }
.prompt-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
.generate-button { width: 100%; margin-left: 0; }
.settings-row, .settings-grid, .studio-controls { grid-template-columns: 1fr; }
.studio-controls .field-label:last-of-type { grid-column: auto; }
.popular-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.popular-tool-grid button { min-height: 108px; grid-template-columns: 30px minmax(0, 1fr); gap: 5px 8px; padding: 11px 9px; }
.popular-tool-grid button > span { width: 30px; height: 30px; }
.popular-tool-grid button b { font-size: 10px; }
.popular-tool-grid button small { font-size: 8px; }
.catalog-model-grid, .workflow-grid { grid-template-columns: 1fr; }
.catalog-model-card { min-height: 112px; }
.workflow-card { min-height: 100px; grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
.workflow-icon { width: 34px; height: 34px; }
.mobile-nav {
  position: fixed;
  z-index: 7;
  right: auto;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100vw - 24px), 536px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 5px 5px 3px;
  transform: translateX(-50%);
}
.mobile-nav a { min-height: 46px; gap: 3px; padding: 5px 2px; font-size: 9px; }
.mobile-nav a.mobile-create { position: relative; top: -15px; align-self: start; gap: 1px; }
.mobile-nav a.mobile-create span { width: 48px; height: 48px; display: grid; place-items: center; }
.home-footer { grid-template-columns: 1fr; }
.footer-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.footer-highlights b { font-size: 9px; }
.footer-highlights span { font-size: 8px; }
.footer-brand { justify-self: end; }
.chat-drawer { right: max(12px, calc((100vw - 560px) / 2 + 12px)); bottom: calc(82px + env(safe-area-inset-bottom)); }
}

:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #666666;
  --soft: #333333;
  --line: rgba(0, 0, 0, .12);
  --line-strong: rgba(0, 0, 0, .22);
  --paper: #ffffff;
  --panel: #ffffff;
  --panel-deep: #f3f3f3;
  --bg-strong: #f7f7f7;
  --brand-1: #111111;
  --brand-2: #444444;
  --brand-3: #555555;
  --brand-4: #777777;
  --success: #333333;
  --shadow: 0 18px 46px rgba(0, 0, 0, .08);
  accent-color: #111111;
}

html, body { background: #ffffff; color: #111111; }
body { background-image: none; }
body::before {
  opacity: .35;
  background-image: repeating-linear-gradient(135deg, transparent 0 15px, rgba(0, 0, 0, .018) 15px 16px);
}
body * { color: #111111; }
.sidebar { background: #f7f7f7; }
.topbar { background: rgba(255, 255, 255, .96); }
.brand-mark, .upgrade-button, .generate-button, .chat-form button,
.message.user, .mobile-nav a.mobile-create span {
  border-color: #111111;
  background: #111111;
  background-image: none;
  color: #ffffff;
  box-shadow: none;
}
.brand-mark { color: #ffffff; }
.upgrade-button:hover, .generate-button:hover, .chat-form button:hover {
  border-color: #333333;
  background: #333333;
  color: #ffffff;
}
.avatar { border-color: #111111; background: #111111; color: #ffffff; }
.nav-link:hover, .nav-link.active, .tool-menu-item:hover, .tool-menu-item.active,
.mode-tab:hover, .mode-tab.active, .filter:hover, .filter.active,
.model-filter-row button:hover, .model-filter-row button.active,
.popular-tool-grid button:hover, .popular-tool-grid button.active,
.catalog-model-card:hover, .workflow-card:hover, .workflow-card.active,
.spotlight-tabs button.active {
  border-color: #111111;
  background: #eeeeee;
  color: #111111;
}
.nav-link.active { box-shadow: inset 2px 0 0 #111111; }
.nav-icon, .eyebrow, .coin, .tool-symbol, .tool-link, .text-button,
.tool-link:hover, .text-button:hover, .account-links button:hover,
.spotlight-item i, .catalog-model-type, .workflow-model,
.balance-card strong, .empty-symbol, .search-toggle,
.mobile-nav a.active, .mobile-nav a span, .mobile-nav a.mobile-create small {
  color: #111111;
}
h1, h2, h3, h4, p, small { color: #111111; }
h1 em, h2 em { background: none; color: #111111; }
.topbar-context, .topbar-caption, .prompt-hints, .prompt-hint-key,
.char-count, .reference-state, .section-subtitle, .home-hero p,
.page-heading > p, .gallery-meta, .spotlight-item small,
.community-cta p, .model-count, .account-detail-row small,
.search-result small, .search-result-type, .feature-copy small {
  color: #666666;
}
.quick-create, .tool-workspace, .account-card, .home-spotlight,
.gallery-card, .auth-modal, .chat-drawer, .account-feature-card,
.community-card, .empty-state, .notification-item, .ticket-detail {
  border-color: #dddddd;
  background: #ffffff;
}
.quick-create { border-top-color: #111111; }
.quick-create::after { border-color: #888888; }
.inspiration-card, .inspiration-card:nth-child(3n + 2),
.inspiration-card:nth-child(3n), .mini-tool-grid button,
.popular-tool-grid button, .catalog-model-card, .workflow-card,
.catalog-row, .ticket-row, .community-comment {
  border-color: #dddddd;
  background: #f7f7f7;
  color: #111111;
}
.tool-feature, .model-card, .community-art { background-color: #eeeeee; }
.feature-icon, .mini-tool-grid button > span,
.popular-tool-grid button > span, .workflow-icon,
.video-feature .feature-icon, .voice-feature .feature-icon,
.music-feature .feature-icon {
  border-color: #dddddd;
  background: #eeeeee;
  color: #111111;
}
.mode-tab:hover, .mode-tab.active, .filter:hover, .filter.active,
.model-filter-row button:hover, .model-filter-row button.active {
  border-color: #111111;
  background: #eeeeee;
  color: #111111;
}
select, input, textarea, .support-form textarea, .ticket-reply-form textarea,
.account-form input, .account-form textarea, .account-form select,
.prompt-preset-select {
  border-color: #cccccc;
  background: #ffffff;
  color: #111111;
}
select:focus, input:focus, textarea:focus { border-color: #111111; }
textarea::placeholder, input::placeholder, .global-search input::placeholder {
  color: #777777;
}
.global-search, .category-chips button {
  border-color: #dddddd;
  background: #f7f7f7;
  color: #111111;
}
.composer-status.error, .form-error, .inspiration-card small, .tool-badge {
  color: #555555;
}
.workflow-guidance { border-color: #dddddd; background: #f7f7f7; color: #333333; }
.mobile-nav { border-color: #dddddd; background: rgba(255, 255, 255, .97); }
.mobile-nav a.mobile-create span { border-color: #ffffff; }
.skip-link { border-color: #111111; background: #ffffff; color: #111111; }
:focus-visible { outline-color: #111111; }
::selection { background: #111111; color: #ffffff; }
.home-hero::after, .feature-art, .spotlight-thumb, .community-art,
.model-art, .gallery-card img, .gallery-card video,
.inspiration-card img, .community-card img, .community-card video {
  filter: grayscale(1);
}

:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #aaaaaa;
  --soft: #dddddd;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --paper: #080808;
  --panel: #111111;
  --panel-deep: #1b1b1b;
  --bg-strong: #050505;
  --brand-1: #ffffff;
  --brand-2: #dddddd;
  --brand-3: #bbbbbb;
  --brand-4: #eeeeee;
  --success: #dddddd;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  accent-color: #ffffff;
}

html, body { background-color: var(--paper); color: var(--ink); }
body { background-image: linear-gradient(145deg, #050505, #111111 55%, #080808); }
body::before {
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
}
.sidebar { background: rgba(8, 8, 8, .96); }
.topbar { background: rgba(8, 8, 8, .92); }
.brand-mark, .upgrade-button, .generate-button, .chat-form button,
.message.user, .mobile-nav a.mobile-create span {
  border-color: #ffffff;
  background: #ffffff;
  background-image: none;
  color: #080808;
  box-shadow: 0 8px 22px rgba(255, 255, 255, .08);
}
.upgrade-button:hover, .generate-button:hover, .chat-form button:hover {
  border-color: #ffffff;
  background: #dddddd;
  background-image: none;
  color: #000000;
}
.brand-mark { color: #080808; }
.avatar { border-color: #aaaaaa; background: #222222; color: #ffffff; }
.nav-link:hover, .nav-link.active, .tool-menu-item:hover, .tool-menu-item.active,
.mode-tab:hover, .mode-tab.active, .filter:hover, .filter.active,
.model-filter-row button:hover, .model-filter-row button.active,
.popular-tool-grid button:hover, .popular-tool-grid button.active,
.catalog-model-card:hover, .workflow-card:hover, .workflow-card.active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}
.nav-link.active { box-shadow: inset 2px 0 0 #ffffff; }
.nav-icon, .eyebrow, .coin, .tool-symbol, .tool-link, .text-button,
.tool-link:hover, .text-button:hover, .account-links button:hover,
.spotlight-item i, .catalog-model-type, .workflow-model,
.balance-card strong, .empty-symbol, .search-toggle,
.mobile-nav a.active, .mobile-nav a span, .mobile-nav a.mobile-create small {
  color: #ffffff;
}
h1 em, h2 em { background: none; color: #ffffff; }
.quick-create, .tool-workspace, .account-card, .home-spotlight,
.gallery-card, .auth-modal, .chat-drawer {
  border-color: var(--line-strong);
  background: #111111;
}
.quick-create { border-top-color: #ffffff; }
.quick-create::after { border-color: rgba(255, 255, 255, .4); }
.mode-tab:hover, .mode-tab.active, .filter:hover, .filter.active,
.model-filter-row button:hover, .model-filter-row button.active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
}
textarea::placeholder, input::placeholder, .global-search input::placeholder { color: #888888; }
select, input, .support-form textarea, .ticket-reply-form textarea {
  border-color: var(--line-strong);
  background: #090909;
  color: #ffffff;
}
select:focus, input:focus, textarea:focus { border-color: #ffffff; }
.category-chips button, .global-search, .catalog-row, .ticket-row, .ticket-detail {
  border-color: var(--line);
  background-color: #101010;
  color: #dddddd;
}
.tool-feature, .model-card, .community-art { background-color: #111111; }
.tool-feature:hover, .gallery-card:hover, .mini-tool-grid button:hover,
.workflow-card:hover, .workflow-card.active, .catalog-model-card:hover,
.inspiration-card:hover { border-color: rgba(255, 255, 255, .45); }
.mini-tool-grid button, .popular-tool-grid button, .catalog-model-card,
.workflow-card, .inspiration-card {
  border-color: var(--line);
  background: #111111;
}
.mini-tool-grid button:hover, .popular-tool-grid button:hover,
.catalog-model-card:hover, .workflow-card:hover, .workflow-card.active {
  background: #1b1b1b;
}
.feature-icon, .mini-tool-grid button > span, .popular-tool-grid button > span,
.workflow-icon, .video-feature .feature-icon, .voice-feature .feature-icon,
.music-feature .feature-icon {
  border-color: var(--line-strong);
  background: #222222;
  color: #ffffff;
}
.spotlight-tabs button.active { border-color: #ffffff; background: #222222; color: #ffffff; }
.model-card.model-image .model-art, .model-card.model-video .model-art,
.model-card.model-audio .model-art, .model-card.model-music .model-art {
  background-image: linear-gradient(145deg, #333333, #111111 65%, #222222);
}
.inspiration-card:nth-child(3n + 2), .inspiration-card:nth-child(3n) {
  border-color: var(--line);
  background: #171717;
}
.inspiration-card small, .tool-badge, .composer-status.error, .form-error { color: #cccccc; }
.workflow-guidance { border-color: var(--line-strong); background: #151515; color: #dddddd; }
.mobile-nav { border-color: var(--line-strong); background: rgba(12, 12, 12, .98); }
.mobile-nav a.mobile-create span { border-color: #080808; }
.skip-link { border-color: #ffffff; background: #111111; color: #ffffff; }
:focus-visible { outline-color: #ffffff; }
::selection { background: #ffffff; color: #000000; }
.home-hero::after, .feature-art, .spotlight-thumb, .community-art,
.model-art, .gallery-card img, .gallery-card video,
.inspiration-card img, .community-card img, .community-card video {
  filter: grayscale(1);
}
@media (max-width: 560px) {
  .topbar { padding-inline: 11px; }
  .view { padding-inline: 13px; }
}

.tools-popular, .all-models { margin-top: 34px; }
.popular-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.popular-tool-grid button {
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-content: center;
  align-items: center;
  gap: 5px 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.88), rgba(15, 15, 15, 0.86));
  color: var(--ink);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.popular-tool-grid button:hover, .popular-tool-grid button.active {
  transform: translateY(-2px);
  border-color: rgba(172, 172, 172, 0.48);
  background: linear-gradient(145deg, rgba(39, 39, 39, 0.82), rgba(20, 20, 20, 0.92));
}
.popular-tool-grid button > span {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(174, 174, 174, 0.2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(135, 135, 135, 0.24), rgba(192, 192, 192, 0.1));
  color: #dadada;
  font-size: 17px;
}
.popular-tool-grid button b { align-self: end; font-size: 12px; }
.popular-tool-grid button small { align-self: start; color: var(--muted); font-size: 9px; line-height: 1.45; }
.model-count { color: var(--muted); font: 10px var(--mono); white-space: nowrap; }
.model-filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 12px; }
.model-filter-row button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}
.model-filter-row button:hover, .model-filter-row button.active {
  border-color: rgba(172, 172, 172, 0.42);
  background: rgba(135, 135, 135, 0.12);
  color: #eaeaea;
}
.catalog-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.catalog-model-card {
  position: relative;
  min-width: 0;
  min-height: 125px;
  display: grid;
  align-content: start;
  gap: 7px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(25, 25, 25, 0.9), rgba(14, 14, 14, 0.95));
  color: var(--ink);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-model-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  border-top: 1px solid rgba(164, 164, 164, 0.32);
  border-right: 1px solid rgba(164, 164, 164, 0.32);
  border-radius: 0 11px 0 0;
  content: '';
  pointer-events: none;
}
.catalog-model-card:hover {
  transform: translateY(-2px);
  border-color: rgba(172, 172, 172, 0.5);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.23);
}
.catalog-model-card b { max-width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-model-type { color: #b9b9b9; font: 9px var(--mono); text-transform: uppercase; }
.catalog-model-card small { overflow: hidden; color: var(--muted); font: 9px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.catalog-model-cost { align-self: end; margin-top: 2px; color: #dedede; font-size: 10px; font-weight: 600; }
.catalog-model-cost i { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 400; }
.model-card { width: 100%; padding: 11px; color: var(--ink); text-align: left; }
.model-card.model-image .model-art { background-image: radial-gradient(ellipse at 70% 20%, rgba(152, 152, 152, 0.44), transparent 32%), linear-gradient(145deg, #242424, #1a1a1a 62%, #252525); }
.model-card.model-video .model-art { background-image: radial-gradient(ellipse at 30% 22%, rgba(192, 192, 192, 0.4), transparent 34%), linear-gradient(145deg, #292929, #1a1a1a 65%, #2f2f2f); }
.model-card.model-audio .model-art { background-image: radial-gradient(ellipse at 70% 20%, rgba(152, 152, 152, 0.38), transparent 34%), linear-gradient(145deg, #262626, #1a1a1a 66%, #232323); }
.model-card.model-music .model-art { background-image: radial-gradient(ellipse at 30% 18%, rgba(213, 213, 213, 0.34), transparent 34%), linear-gradient(145deg, #313131, #1a1a1a 65%, #242424); }
@media (max-width: 1000px) {
  .popular-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tools-popular, .all-models { margin-top: 27px; }
  .popular-tool-grid { gap: 7px; }
  .popular-tool-grid button { min-height: 108px; grid-template-columns: 30px 1fr; gap: 5px 8px; padding: 11px 9px; }
  .popular-tool-grid button > span { width: 30px; height: 30px; }
  .popular-tool-grid button b { font-size: 10px; }
  .popular-tool-grid button small { font-size: 8px; }
  .catalog-model-grid { grid-template-columns: 1fr; }
  .catalog-model-card { min-height: 112px; }
}

.tools-popular { margin-top: 25px; }
.popular-tool-grid button > span svg { width: 18px; height: 18px; }
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.workflow-card {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 9px 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(23, 23, 23, 0.94), rgba(14, 14, 14, 0.94));
  color: var(--ink);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.workflow-card:hover, .workflow-card.active {
  transform: translateY(-2px);
  border-color: rgba(170, 170, 170, 0.52);
  background: linear-gradient(145deg, rgba(31, 31, 31, 0.96), rgba(17, 17, 17, 0.96));
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.2);
}
.workflow-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(176, 176, 176, 0.22);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(135, 135, 135, 0.16), rgba(192, 192, 192, 0.08));
  color: #d0d0d0;
}
.workflow-icon svg, .tool-symbol svg, .feature-icon svg { width: 18px; height: 18px; }
.nav-icon svg, .mobile-nav a:not(.mobile-create) span svg, .search-toggle svg { width: 16px; height: 16px; display: block; }
.coin svg, .upgrade-button [data-icon] svg, .chat-button [data-icon] svg,
.install-button > span[aria-hidden] svg, .close-button svg, .chat-form button svg,
.feature-arrow svg, .model-arrow svg, .button-arrow svg, .mini-tool-grid button > span svg,
.avatar svg { width: 18px; height: 18px; display: block; }
.coin { display: inline-flex; align-items: center; }
.credit-pill { display: inline-flex; align-items: center; gap: 5px; }
.upgrade-button, .chat-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.upgrade-button [data-icon], .chat-button [data-icon] { display: inline-grid; place-items: center; }
.chat-form button { display: grid; place-items: center; }
.global-search > span svg { width: 17px; height: 17px; display: block; }
.mobile-create span svg { width: 22px; height: 22px; display: block; }
.workflow-copy { min-width: 0; display: grid; gap: 5px; }
.workflow-copy b { color: #f1f1f1; font-size: 12px; font-weight: 600; }
.workflow-copy small { color: #a8a8a8; font-size: 9px; line-height: 1.45; }
.workflow-model {
  grid-column: 2;
  overflow: hidden;
  color: #bababa;
  font: 9px var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workflow-guidance {
  margin: -3px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(135, 135, 135, 0.19);
  border-radius: 8px;
  background: rgba(135, 135, 135, 0.06);
  color: #c4c4c4;
  font-size: 10px;
  line-height: 1.5;
}
.workflow-guidance[hidden] { display: none; }
.tool-symbol { width: 22px; height: 22px; display: grid; place-items: center; }
.tool-symbol svg { width: 17px; height: 17px; }
.feature-icon { display: grid; place-items: center; }
.clear-references { justify-self: start; align-self: center; padding: 6px 0; font-size: 10px; }
.clear-references:disabled { cursor: default; opacity: 0.4; }
@media (max-width: 1000px) {
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { min-height: 100px; grid-template-columns: 34px minmax(0, 1fr); padding: 12px; }
  .workflow-icon { width: 34px; height: 34px; }
}
.mobile-nav a { gap: 3px; min-height: 46px; color: #979797; font-size: 9px; }
.mobile-nav a.active { color: #ededed; }
.mobile-nav a span { color: #a8a8a8; font-size: 15px; }
.mobile-nav a.mobile-create { position: relative; top: -15px; align-self: start; gap: 1px; }
.mobile-nav a.mobile-create span { width: 48px; height: 48px; display: grid; place-items: center; border: 3px solid #131313; border-radius: 50%; background: linear-gradient(145deg, #9b9b9b, #7b7b7b 65%, #b2b2b2); color: white; font-size: 21px; box-shadow: 0 4px 18px rgba(128, 128, 128, .46); }
.mobile-nav a.mobile-create small { color: #cfcfcf; font-size: 9px; }
.skip-link { border-color: #a2a2a2; border-radius: 6px; background: #161616; color: white; }
:focus-visible { outline-color: #acacac; }
::selection { background: #8a8a8a; color: #ffffff; }
input::placeholder { color: #797979; }
[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .topbar { gap: 13px; padding-inline: 24px; }
  .topbar-context { display: none; }
  .tool-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .community-art { min-height: 150px; }
  .community-art:nth-child(n + 4) { display: none; }
  .footer-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 67px; justify-content: space-between; gap: 12px; padding: 0 16px; }
  .mobile-brand { display: flex; gap: 8px; font-size: 17px; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 18px; }
  .topbar-actions { gap: 6px; margin-left: auto; }
  .global-search { display: none; }
  .search-toggle { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .04); color: #e0e0e0; font-size: 21px; }
  .topbar.search-open .global-search { position: absolute; top: 58px; right: 12px; left: 12px; z-index: 5; width: auto; display: flex; background: #161616; box-shadow: var(--shadow); }
  .upgrade-button, .chat-button { display: none; }
  .credit-pill { min-height: 34px; padding: 7px 8px; font-size: 10px; }
  .view { width: 100%; padding: 28px 17px 100px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "desc"; gap: 16px; margin-bottom: 20px; }
  .home-hero::after { min-height: 245px; padding: 17px; font-size: 24px; }
  h1 { font-size: clamp(43px, 9vw, 62px); }
  .home-hero p { max-width: 440px; font-size: 12px; }
  .quick-create { padding: 17px; }
  .tool-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-feature { min-height: 166px; padding: 12px; }
  .mini-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-rail { grid-auto-columns: 190px; }
  .community-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-art { min-height: 165px; }
  .community-art:nth-child(n + 4) { display: flex; }
  .mobile-nav { position: fixed; z-index: 7; right: 12px; bottom: max(9px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 5px 3px; }
  .mobile-nav a { padding: 5px 2px; }
  .home-footer { grid-template-columns: 1fr; }
  .footer-brand { justify-self: end; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool-menu-item { padding: 10px 8px; }
  .tool-menu-item small { display: none; }
}
@media (max-width: 560px) {
  .topbar { padding-inline: 11px; }
  .credit-pill { padding: 7px; }
  .credit-pill .coin { margin-right: 3px; }
  .view { padding: 24px 13px 98px; }
  .home-hero::after { min-height: 220px; }
  .quick-create, .tool-workspace { padding: 15px; }
  .create-head, .section-bar, .tool-workspace-top, .inline-heading { display: flex; align-items: end; }
  .section-bar { gap: 10px; }
  .section-bar .text-button { flex: 0 0 auto; margin-top: 0; }
  .mode-switch { overflow-x: auto; }
  .tool-feature-grid, .mini-tool-grid { gap: 7px; }
  .tool-feature { min-height: 150px; padding: 10px; }
  .feature-copy b { font-size: 12px; }
  .feature-copy small { font-size: 9px; }
  .mini-tool-grid button { min-height: 76px; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 9px 7px; }
  .mini-tool-grid button > span { width: 27px; height: 27px; }
  .mini-tool-grid button b { font-size: 10px; }
  .mini-tool-grid button small { font-size: 8px; }
  .community-mosaic { gap: 7px; }
  .community-art { min-height: 135px; padding: 9px; }
  .section-block { margin-top: 37px; }
  .section-bar h2 { font-size: 22px; }
  .footer-highlights { gap: 13px; }
  .footer-highlights b { font-size: 9px; }
  .footer-highlights span { font-size: 8px; }
  .tool-menu-item { font-size: 10px; }
  .tool-menu-item > span:nth-child(2) { margin-top: 6px; }
  .tool-menu-item b { font-size: 10px; }
}

.view[data-view-panel="home"].active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, .62fr); align-items: start; column-gap: 15px; }
.home-hero, .category-chips, .section-block, .home-footer { grid-column: 1 / -1; }
.quick-create { grid-column: 1; }
.home-spotlight { grid-column: 2; grid-row: 2; min-width: 0; padding: 18px; border: 1px solid var(--line-strong); border-radius: 10px; background: linear-gradient(150deg, rgba(24, 24, 24, .96), rgba(17, 17, 17, .94)); box-shadow: var(--shadow); }
.spotlight-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.spotlight-heading .eyebrow { margin-bottom: 7px; }
.spotlight-heading h2 { font-size: 20px; }
.spotlight-heading .text-button { flex: 0 0 auto; font-size: 10px; }
.spotlight-tabs { display: flex; gap: 5px; margin: 14px 0 9px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0, 0, 0, .14); }
.spotlight-tabs button { flex: 1; padding: 7px 4px; border: 0; border-radius: 5px; background: transparent; color: #959595; font-size: 9px; }
.spotlight-tabs button.active { background: rgba(151, 151, 151, .18); color: #dedede; }
.spotlight-list { display: grid; gap: 6px; }
.spotlight-item { min-width: 0; display: grid; grid-template-columns: 49px minmax(0, 1fr) 15px; align-items: center; gap: 9px; padding: 5px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; }
.spotlight-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .035); }
.spotlight-thumb { width: 49px; height: 43px; border-radius: 5px; background-position: center; background-size: cover; }
.spotlight-one .spotlight-thumb { background-image: url('https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=180&q=75'); }
.spotlight-two .spotlight-thumb { background-image: url('https://images.unsplash.com/photo-1518709268805-4e9042af9f23?auto=format&fit=crop&w=180&q=75'); }
.spotlight-three .spotlight-thumb { background-image: url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=180&q=75'); }
.spotlight-item > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.spotlight-item b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.spotlight-item small { color: #939393; font-size: 8px; }
.spotlight-item i { color: #999999; font-size: 12px; font-style: normal; }
.community-cta { display: grid; gap: 6px; margin-top: 10px; padding: 12px 11px 7px; border-top: 1px solid var(--line); }
.community-cta b { color: #ebebeb; font-size: 11px; }
.community-cta p { color: #9c9c9c; font-size: 9px; line-height: 1.5; }
.community-cta .text-button { justify-self: start; padding: 2px 0; font-size: 10px; }
.model-card { cursor: pointer; }
.model-card:focus-visible { outline: 2px solid #acacac; outline-offset: 2px; }
.tool-menu-item { border-radius: 8px; }
.tool-menu-item:hover, .tool-menu-item.active { border-color: rgba(227, 227, 227, .42); background: rgba(227, 227, 227, .08); color: var(--brand-1); }
.popular-tool-grid button, .catalog-model-card { border-radius: 8px; background: var(--panel); }
.popular-tool-grid button:hover, .popular-tool-grid button.active, .catalog-model-card:hover { border-color: rgba(227, 227, 227, .42); background: var(--panel-deep); }
.popular-tool-grid button > span { border-color: rgba(227, 227, 227, .2); border-radius: 8px; background: rgba(227, 227, 227, .12); color: var(--brand-1); }
.model-filter-row button:hover, .model-filter-row button.active { border-color: rgba(227, 227, 227, .42); background: rgba(227, 227, 227, .1); color: var(--brand-1); }
.catalog-model-card::after { border-color: rgba(227, 227, 227, .28); border-radius: 0 8px 0 0; }
.catalog-model-type { color: var(--brand-2); }
.catalog-model-cost { color: var(--brand-1); }
.workflow-card { border-radius: 8px; background: var(--panel); }
.workflow-guidance { border-color: rgba(227, 227, 227, .2); background: rgba(227, 227, 227, .06); }
@media (min-width: 821px) and (max-width: 1100px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "art" "desc";
    gap: 16px;
  }
  .home-hero h1 {
    max-width: 100%;
    font-size: clamp(44px, 6vw, 64px);
  }
  .home-hero::after { min-height: 280px; }
}
@media (max-width: 820px) {
  .view[data-view-panel="home"].active { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .quick-create, .home-spotlight { grid-column: 1; }
  .home-spotlight { grid-row: auto; margin-top: 21px; }
  .home-hero, .category-chips, .section-block, .home-footer { grid-column: 1; }
}

.home-spotlight { border-radius: 8px; background: var(--panel); }
.spotlight-tabs button.active { background: rgba(227, 227, 227, .13); color: var(--brand-1); }
.spotlight-item i { color: var(--brand-2); }
.community-cta b { color: var(--ink); }
.community-cta p { color: var(--muted); }
.workflow-card:hover, .workflow-card.active { border-color: rgba(227, 227, 227, .42); background: var(--panel-deep); }
.workflow-icon { border-color: rgba(192, 192, 192, .24); background: rgba(192, 192, 192, .1); color: var(--brand-2); }
.workflow-model { color: var(--brand-2); }
.search-toggle { color: var(--brand-1); }

:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --muted: #acacac;
  --soft: #d5d5d5;
  --line: rgba(173, 173, 173, .14);
  --line-strong: rgba(185, 185, 185, .25);
  --paper: #0a0a0a;
  --panel: #141414;
  --panel-deep: #1d1d1d;
  --bg-strong: #101010;
  --brand-1: #c2c2c2;
  --brand-2: #d1d1d1;
  --brand-3: #aaaaaa;
  --brand-4: #cccccc;
  --success: #d1d1d1;
  --shadow: 0 24px 60px rgba(3, 3, 3, .48);
}

html, body { background-color: var(--paper); }
body {
  background-image: linear-gradient(145deg, #0a0a0a 0%, #141414 55%, #0a0a0a 100%);
}
body::before {
  z-index: -1;
  opacity: .3;
  background-image: linear-gradient(rgba(194, 194, 194, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(194, 194, 194, .035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.sidebar { background: rgba(10, 10, 10, .94); }
.topbar { background: rgba(16, 16, 16, .88); }
.brand-mark {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #101010;
  box-shadow: 0 8px 20px rgba(194, 194, 194, .16);
}
.nav-link:hover, .nav-link.active {
  border-color: rgba(194, 194, 194, .24);
  background: rgba(194, 194, 194, .08);
  color: var(--ink);
}
.nav-link.active { box-shadow: inset 2px 0 0 var(--brand-1); }
.nav-icon, .eyebrow, .coin, .tool-symbol { color: var(--brand-1); }
.status-dot { background: var(--success); box-shadow: 0 0 14px rgba(209, 209, 209, .55); }
.topbar-context, .topbar-caption, .prompt-hints, .prompt-hint-key, .char-count, .reference-state { color: var(--muted); }
.topbar-actions button, .chat-button, .credit-pill { color: var(--soft); }
.upgrade-button, .generate-button, .chat-form button {
  background: linear-gradient(110deg, var(--brand-1), var(--brand-2));
  color: #101010;
  box-shadow: 0 8px 22px rgba(194, 194, 194, .15);
}
.upgrade-button:hover, .generate-button:hover, .chat-form button:hover { background: #dfdfdf; }
.avatar {
  border-color: rgba(194, 194, 194, .5);
  background: #252525;
  color: var(--brand-1);
}
h1 em, h2 em {
  background: linear-gradient(105deg, var(--brand-1), var(--brand-2) 72%, var(--brand-3));
  background-clip: text;
  color: transparent;
}
.quick-create, .tool-workspace, .account-card, .home-spotlight, .gallery-card, .auth-modal, .chat-drawer {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, #171717, #121212);
}
.quick-create { border-top-color: var(--brand-1); }
.quick-create::after { border-color: rgba(194, 194, 194, .42); }
.tool-link, .text-button { color: #d5d5d5; }
.tool-link:hover, .text-button:hover, .account-links button:hover { color: var(--brand-1); }
.mode-tab:hover, .mode-tab.active, .filter:hover, .filter.active,
.model-filter-row button:hover, .model-filter-row button.active {
  border-color: var(--brand-1);
  background: rgba(194, 194, 194, .1);
  color: var(--brand-1);
}
textarea::placeholder, input::placeholder, .global-search input::placeholder { color: #868686; }
select, input, .support-form textarea, .ticket-reply-form textarea {
  border-color: var(--line-strong);
  background: #141414;
  color: var(--ink);
}
select:focus, input:focus, textarea:focus { border-color: var(--brand-1); }
.category-chips button, .global-search, .catalog-row, .ticket-row, .ticket-detail {
  border-color: var(--line);
  background-color: rgba(23, 23, 23, .82);
  color: var(--soft);
}
.category-chips button:hover, .catalog-row:hover, .outline-button:hover { border-color: var(--brand-1); }
.tool-feature, .model-card, .community-art { background-color: #191919; }
.tool-feature:hover, .gallery-card:hover, .mini-tool-grid button:hover,
.workflow-card:hover, .workflow-card.active, .catalog-model-card:hover {
  border-color: rgba(194, 194, 194, .42);
}
.mini-tool-grid button, .popular-tool-grid button, .catalog-model-card,
.workflow-card, .inspiration-card {
  border-color: var(--line);
  background: linear-gradient(145deg, #191919, #131313);
}
.mini-tool-grid button:hover, .popular-tool-grid button:hover, .catalog-model-card:hover,
.workflow-card:hover, .workflow-card.active {
  background: linear-gradient(145deg, #232323, #171717);
}
.feature-icon, .mini-tool-grid button > span, .popular-tool-grid button > span, .workflow-icon {
  border-color: rgba(194, 194, 194, .24);
  background: rgba(194, 194, 194, .12);
  color: var(--brand-1);
}
.video-feature .feature-icon, .voice-feature .feature-icon, .music-feature .feature-icon {
  background: rgba(209, 209, 209, .14);
}
.spotlight-tabs button.active, .spotlight-item i, .catalog-model-type, .workflow-model { color: var(--brand-2); }
.spotlight-tabs button.active { background: rgba(209, 209, 209, .12); }
.tool-menu-item:hover, .tool-menu-item.active {
  border-color: rgba(194, 194, 194, .38);
  background: rgba(194, 194, 194, .08);
  color: var(--brand-1);
}
.popular-tool-grid button:hover, .popular-tool-grid button.active, .catalog-model-card:hover,
.model-filter-row button:hover, .model-filter-row button.active {
  border-color: rgba(194, 194, 194, .36);
  background-color: #232323;
  color: var(--brand-1);
}
.model-card.model-image .model-art { background-image: linear-gradient(135deg, #2e2e2e, #141414 62%, #252525); }
.model-card.model-video .model-art { background-image: linear-gradient(135deg, #272727, #121212 58%, #2d2d2d); }
.model-card.model-audio .model-art { background-image: linear-gradient(135deg, #282828, #141414 62%, #222222); }
.model-card.model-music .model-art { background-image: linear-gradient(135deg, rgba(204, 204, 204, .16), transparent 50%), linear-gradient(145deg, #202020, #101010 70%, #212121); }
.inspiration-card:nth-child(3n + 2) { background: linear-gradient(145deg, #202020, #131313); }
.inspiration-card:nth-child(3n) { background: linear-gradient(145deg, #212121, #171717); }
.inspiration-card:hover { border-color: rgba(170, 170, 170, .48); }
.inspiration-card small, .tool-badge, .composer-status.error, .form-error { color: var(--brand-3); }
.balance-card strong, .empty-symbol { color: var(--brand-1); }
.workflow-guidance { border-color: rgba(194, 194, 194, .2); background: rgba(194, 194, 194, .06); color: var(--soft); }
.message.user { background: linear-gradient(110deg, var(--brand-1), var(--brand-2)); color: #101010; }
.mobile-nav { border-color: var(--line-strong); background: rgba(12, 12, 12, .96); }
.mobile-nav a, .mobile-nav a span, .mobile-nav a.mobile-create small { color: var(--muted); }
.mobile-nav a.active, .mobile-nav a span { color: var(--brand-1); }
.mobile-nav a.mobile-create span { border-color: #101010; background: var(--brand-1); color: #101010; box-shadow: 0 4px 16px rgba(194, 194, 194, .2); }
.search-toggle { color: var(--brand-1); }
.skip-link { border-color: var(--brand-1); background: var(--panel); color: var(--ink); }
:focus-visible { outline-color: var(--brand-1); }
::selection { background: var(--brand-1); color: #101010; }
.model-card.model-image .model-art { background-image: radial-gradient(ellipse at 70% 20%, rgba(227, 227, 227, .3), transparent 32%), linear-gradient(145deg, #2e2e2e, #1d1d1d 62%, #333333); }
.model-card.model-video .model-art { background-image: radial-gradient(ellipse at 30% 22%, rgba(192, 192, 192, .32), transparent 34%), linear-gradient(145deg, #2b2b2b, #1d1d1d 65%, #323232); }
.model-card.model-audio .model-art { background-image: radial-gradient(ellipse at 70% 20%, rgba(167, 167, 167, .3), transparent 34%), linear-gradient(145deg, #282828, #1d1d1d 66%, #252525); }
.model-card.model-music .model-art { background-image: radial-gradient(ellipse at 30% 18%, rgba(204, 204, 204, .3), transparent 34%), linear-gradient(145deg, #303030, #1d1d1d 65%, #272727); }
.mobile-nav { border-radius: 8px; background: rgba(26, 26, 26, .97); }
.mobile-nav a.active, .mobile-nav a span { color: var(--brand-1); }
.mobile-nav a.mobile-create span { border-color: #1a1a1a; border-radius: 50%; background: var(--brand-1); color: #1d1d1d; box-shadow: 0 4px 16px rgba(227, 227, 227, .2); }
.mobile-nav a.mobile-create small { color: var(--brand-1); }
.mobile-brand .brand-mark { border-radius: 8px; }
.skip-link { border-color: var(--brand-1); background: var(--panel); }
:focus-visible, .model-card:focus-visible { outline-color: var(--brand-1); }
::selection { background: var(--brand-1); color: #1d1d1d; }

@media (max-width: 820px) {
  .view { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .mobile-nav { bottom: calc(8px + env(safe-area-inset-bottom)); }
}

@media (max-width: 820px) {
.app-shell { display: block; width: min(100%, 560px); min-height: 100vh; margin-inline: auto; }
.sidebar { display: none; }
.mobile-brand { display: flex; gap: 8px; font-size: 17px; }
.topbar { height: 67px; justify-content: space-between; gap: 12px; padding: 0 11px; }
.topbar-context, .global-search { display: none; }
.topbar-actions { gap: 6px; margin-left: auto; }
.topbar.search-open .global-search { position: absolute; top: 58px; right: 12px; left: 12px; z-index: 5; width: auto; display: flex; background: var(--panel); box-shadow: var(--shadow); }
.search-toggle { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--brand-1); font-size: 21px; }
.upgrade-button, .chat-button { display: none; }
.credit-pill { min-height: 34px; padding: 7px; font-size: 10px; }
.view { width: 100%; padding: 24px 13px calc(98px + env(safe-area-inset-bottom)); }
.view h1 { font-size: 46px; }
.view h2, .page-heading h2 { font-size: 30px; }
.view[data-view-panel="home"].active { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.home-hero { grid-column: 1; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "desc"; gap: 16px; margin-bottom: 20px; }
.home-hero::after { min-height: 220px; padding: 17px; font-size: 24px; }
.home-hero p { max-width: 440px; font-size: 12px; }
.quick-create, .home-spotlight { grid-column: 1; }
.home-spotlight { grid-row: auto; margin-top: 21px; }
.home-hero, .category-chips, .section-block, .home-footer { grid-column: 1; }
.tool-layout, .support-form, .ticket-layout { grid-template-columns: 1fr; }
.tool-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tool-menu-item { padding: 10px 8px; font-size: 10px; }
.tool-menu-item small, .tool-menu-item > span:last-child { display: none; }
.tool-menu-item > span:nth-child(2) { display: block; margin-top: 6px; }
.tool-feature-grid, .mini-tool-grid, .popular-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.gallery, .inspiration-grid, .account-grid, .catalog-model-grid, .workflow-grid { grid-template-columns: 1fr; }
.profile-card, .catalog-card { grid-column: auto; }
.profile-card { grid-template-columns: auto 1fr; }
.profile-card .outline-button { grid-column: 1 / -1; width: 100%; }
.create-head, .section-bar, .tool-workspace-top, .inline-heading { display: flex; align-items: end; }
.section-bar { gap: 10px; }
.section-bar h2 { font-size: 22px; }
.quick-create, .tool-workspace { padding: 15px; }
.prompt-bottom { display: grid; grid-template-columns: 1fr; gap: 12px; }
.generate-button { width: 100%; margin-left: 0; }
.settings-row, .settings-grid, .studio-controls { grid-template-columns: 1fr; }
.studio-controls .field-label:last-of-type { grid-column: auto; }
.home-footer { grid-template-columns: 1fr; }
.footer-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.footer-highlights b { font-size: 9px; }
.footer-highlights span { font-size: 8px; }
.footer-brand { justify-self: end; }
.mobile-nav { position: fixed; z-index: 7; right: auto; bottom: calc(8px + env(safe-area-inset-bottom)); left: 50%; width: min(calc(100vw - 24px), 536px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 5px 5px 3px; transform: translateX(-50%); border-color: var(--line-strong); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); }
.mobile-nav a { min-height: 46px; gap: 3px; padding: 5px 2px; color: var(--muted); font-size: 9px; }
.mobile-nav a span, .mobile-nav a.active { color: var(--brand-1); }
.mobile-nav a.mobile-create { position: relative; top: -15px; align-self: start; gap: 1px; }
.mobile-nav a.mobile-create span { width: 48px; height: 48px; display: grid; place-items: center; border: 3px solid var(--paper); border-radius: 50%; background: var(--brand-1); color: var(--paper); }
.mobile-nav a.mobile-create small { color: var(--brand-1); font-size: 9px; }
.chat-drawer { right: max(12px, calc((100vw - 560px) / 2 + 12px)); bottom: calc(82px + env(safe-area-inset-bottom)); }
}
:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #666666;
  --soft: #333333;
  --line: rgba(0, 0, 0, .12);
  --line-strong: rgba(0, 0, 0, .22);
  --paper: #ffffff;
  --panel: #ffffff;
  --panel-deep: #f3f3f3;
  --bg-strong: #f7f7f7;
  --brand-1: #111111;
  --brand-2: #444444;
  --brand-3: #555555;
  --brand-4: #777777;
  --success: #333333;
  --shadow: 0 18px 46px rgba(0, 0, 0, .08);
  accent-color: #111111;
}

html, body { min-height: 100%; background: #ffffff; color: #111111; }
body { background-image: none; }
body::before {
  opacity: .35;
  background-image: repeating-linear-gradient(135deg, transparent 0 15px, rgba(0, 0, 0, .018) 15px 16px);
}
.sidebar { background: #f7f7f7; }
.topbar { background: rgba(255, 255, 255, .96); }
body :is(.quick-create, .tool-workspace, .account-card, .home-spotlight,
  .gallery-card, .auth-modal, .chat-drawer, .account-feature-card,
  .community-card, .empty-state, .notification-item, .ticket-detail,
  .inspiration-card, .mini-tool-grid button, .popular-tool-grid button,
  .catalog-model-card, .workflow-card, .catalog-row, .ticket-row,
  .community-comment, .tool-feature, .model-card, .community-art,
  .mobile-nav, .global-search, .category-chips button, .tool-menu-item,
  .filter, .model-filter-row button, .outline-button, .account-detail-row,
  .spotlight-tabs, .spotlight-item, .chat-button, .credit-pill, .search-result) {
  border-color: #dddddd;
  background: #ffffff;
}
body :is(.brand-mark, .upgrade-button, .generate-button, .chat-form button,
  .message.user, .mobile-nav a.mobile-create span) {
  border-color: #111111;
  background: #111111;
  background-image: none;
  color: #ffffff;
  box-shadow: none;
}
body .app-shell :is(.upgrade-button, .generate-button, .chat-form button,
  .message.user, .mobile-nav a.mobile-create) * { color: #ffffff; }
body :is(.upgrade-button:hover, .generate-button:hover, .chat-form button:hover) {
  border-color: #333333;
  background: #333333;
  color: #ffffff;
}
.brand-mark { color: #ffffff; }
.avatar { border-color: #111111; background: #111111; color: #ffffff; }
body :is(.nav-link:hover, .nav-link.active, .tool-menu-item:hover,
  .tool-menu-item.active, .mode-tab:hover, .mode-tab.active, .filter:hover,
  .filter.active, .model-filter-row button:hover, .model-filter-row button.active,
  .popular-tool-grid button:hover, .popular-tool-grid button.active,
  .catalog-model-card:hover, .workflow-card:hover, .workflow-card.active,
  .spotlight-tabs button.active) {
  border-color: #111111;
  background: #eeeeee;
  color: #111111;
}
.nav-link.active { box-shadow: inset 2px 0 0 #111111; }
.nav-icon, .eyebrow, .coin, .tool-symbol, .tool-link, .text-button,
.account-links button:hover, .spotlight-item i, .catalog-model-type,
.workflow-model, .balance-card strong, .empty-symbol, .search-toggle {
  color: #111111;
}
body .app-shell :is(.topbar-context, .topbar-caption, .prompt-hints, .prompt-hint-key,
  .char-count, .reference-state, .section-subtitle, .home-hero p,
  .page-heading > p, .gallery-meta, .spotlight-item small, .community-cta p,
  .model-count, .account-detail-row small, .search-result small,
  .search-result-type, .feature-copy small) { color: #666666; }
h1 em, h2 em { background: none; color: #111111; }
body :is(.quick-create, .account-card, .home-spotlight) { background: #ffffff; }
.quick-create { border-top-color: #111111; }
.quick-create::after { border-color: #888888; }
body :is(.inspiration-card:nth-child(3n + 2), .inspiration-card:nth-child(3n),
  .mini-tool-grid button, .popular-tool-grid button, .catalog-model-card,
  .workflow-card, .catalog-row, .ticket-row, .community-comment,
  .tool-feature, .model-card, .community-art, .category-chips button,
  .global-search) { background: #f7f7f7; }
body :is(.feature-icon, .mini-tool-grid button > span,
  .popular-tool-grid button > span, .workflow-icon) {
  border-color: #dddddd;
  background: #eeeeee;
  color: #111111;
}
select, input, textarea, .support-form textarea, .ticket-reply-form textarea,
.account-form input, .account-form textarea, .account-form select,
.prompt-preset-select {
  border-color: #cccccc;
  background: #ffffff;
  color: #111111;
}
select:focus, input:focus, textarea:focus { border-color: #111111; }
textarea::placeholder, input::placeholder, .global-search input::placeholder { color: #777777; }
body .app-shell :is(.composer-status.error, .form-error, .inspiration-card small, .tool-badge) {
  color: #555555;
}
.workflow-guidance { border-color: #dddddd; background: #f7f7f7; color: #333333; }
.mobile-nav { background: rgba(255, 255, 255, .97); }
.mobile-nav a.mobile-create span { border-color: #ffffff; }
.skip-link { border-color: #111111; background: #ffffff; color: #111111; }
:focus-visible { outline-color: #111111; }
::selection { background: #111111; color: #ffffff; }
body .app-shell :is(.home-hero::after, .feature-art, .spotlight-thumb, .community-art,
  .model-art, .gallery-card img, .gallery-card video, .inspiration-card img,
  .community-card img, .community-card video) { filter: grayscale(1); }

/* Final Aurora polish: keep the studio expressive instead of falling back to the
   legacy monochrome overrides above. */
:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --muted: #acacac;
  --soft: #d5d5d5;
  --line: rgba(173, 173, 173, .14);
  --line-strong: rgba(185, 185, 185, .25);
  --paper: #0a0a0a;
  --panel: #141414;
  --panel-deep: #1d1d1d;
  --brand-1: #c2c2c2;
  --brand-2: #d1d1d1;
  --brand-3: #aaaaaa;
  --shadow: 0 24px 60px rgba(3, 3, 3, .48);
  accent-color: var(--brand-1);
}

html, body { background: var(--paper); color: var(--ink); }
body {
  background:
    radial-gradient(circle at 78% 0, rgba(118, 118, 118, .18), transparent 32rem),
    radial-gradient(circle at 10% 70%, rgba(135, 135, 135, .11), transparent 30rem),
    linear-gradient(145deg, #0a0a0a, #141414 55%, #0a0a0a);
}
body::before {
  opacity: .32;
  background-image: linear-gradient(rgba(194, 194, 194, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(194, 194, 194, .035) 1px, transparent 1px);
  background-size: 36px 36px;
}
body * { color: inherit; }
.sidebar { background: rgba(10, 10, 10, .9); border-color: var(--line); }
.topbar { background: rgba(16, 16, 16, .84); border-color: var(--line); }
.brand-mark {
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #101010;
  box-shadow: 0 8px 20px rgba(194, 194, 194, .16);
}
.nav-link:hover, .nav-link.active {
  border-color: rgba(194, 194, 194, .24);
  background: rgba(194, 194, 194, .08);
  color: var(--ink);
}
.nav-link.active { box-shadow: inset 2px 0 0 var(--brand-1); }
.nav-icon, .eyebrow, .coin, .tool-symbol { color: var(--brand-1); }
.status-dot { background: var(--brand-2); box-shadow: 0 0 14px rgba(209, 209, 209, .55); }
.topbar-context, .topbar-caption, .prompt-hints, .prompt-hint-key,
.char-count, .reference-state, .section-subtitle, .home-hero p { color: var(--muted); }
.upgrade-button, .generate-button, .chat-form button {
  border: 0;
  background: linear-gradient(110deg, var(--brand-1), var(--brand-2));
  color: #101010;
  box-shadow: 0 8px 22px rgba(194, 194, 194, .15);
}
.upgrade-button:hover, .generate-button:hover, .chat-form button:hover { background: #dfdfdf; }
.avatar { border-color: rgba(194, 194, 194, .5); background: #252525; color: var(--brand-1); }
h1 em, h2 em {
  background: linear-gradient(105deg, var(--brand-1), var(--brand-2) 72%, var(--brand-3));
  background-clip: text;
  color: transparent;
}
.quick-create, .tool-workspace, .account-card, .home-spotlight, .gallery-card,
.auth-modal, .chat-drawer, .account-feature-card, .community-card, .empty-state {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(23, 23, 23, .94), rgba(18, 18, 18, .94));
}
.quick-create { border-top-color: var(--brand-1); }
.tool-link, .text-button { color: #d5d5d5; }
.tool-link:hover, .text-button:hover { color: var(--brand-1); }
.mode-tab:hover, .mode-tab.active, .filter:hover, .filter.active,
.model-filter-row button:hover, .model-filter-row button.active {
  border-color: var(--brand-1);
  background: rgba(194, 194, 194, .1);
  color: var(--brand-1);
}
textarea::placeholder, input::placeholder, .global-search input::placeholder { color: #868686; }
select, input, textarea, .support-form textarea, .ticket-reply-form textarea {
  border-color: var(--line-strong);
  background: #141414;
  color: var(--ink);
}
select:focus, input:focus, textarea:focus { border-color: var(--brand-1); }
.category-chips button, .global-search, .catalog-row, .ticket-row, .ticket-detail {
  border-color: var(--line);
  background: rgba(23, 23, 23, .82);
  color: var(--soft);
}
.tool-feature, .model-card, .community-art { background-color: #191919; }
.tool-feature:hover, .gallery-card:hover, .mini-tool-grid button:hover,
.workflow-card:hover, .workflow-card.active, .catalog-model-card:hover {
  border-color: rgba(194, 194, 194, .42);
}
.mini-tool-grid button, .popular-tool-grid button, .catalog-model-card,
.workflow-card, .inspiration-card {
  border-color: var(--line);
  background: linear-gradient(145deg, #191919, #131313);
}
.mini-tool-grid button:hover, .popular-tool-grid button:hover,
.catalog-model-card:hover, .workflow-card:hover, .workflow-card.active {
  background: linear-gradient(145deg, #232323, #171717);
}
.feature-icon, .mini-tool-grid button > span, .popular-tool-grid button > span, .workflow-icon {
  border-color: rgba(194, 194, 194, .24);
  background: rgba(194, 194, 194, .12);
  color: var(--brand-1);
}
.inspiration-card small, .tool-badge, .composer-status.error, .form-error { color: var(--brand-3); }
.workflow-guidance { border-color: rgba(194, 194, 194, .2); background: rgba(194, 194, 194, .06); color: var(--soft); }
.mobile-nav { border-color: var(--line-strong); background: rgba(12, 12, 12, .96); }
.mobile-nav a.active, .mobile-nav a span { color: var(--brand-1); }
.mobile-nav a.mobile-create span { border-color: #101010; background: var(--brand-1); color: #101010; }
.skip-link { border-color: var(--brand-1); background: var(--panel); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; }
::selection { background: var(--brand-1); color: #101010; }
body .app-shell :is(.home-hero::after, .feature-art, .spotlight-thumb, .community-art,
  .model-art, .gallery-card img, .gallery-card video, .inspiration-card img,
  .community-card img, .community-card video) { filter: none; }
.search-toggle { color: var(--brand-1); }
.search-toggle svg { width: 17px; height: 17px; }

@media (max-width: 820px) {
  .app-shell { width: 100%; margin-inline: 0; }
  .topbar { background: rgba(16, 16, 16, .96); }
  .topbar.search-open .global-search { background: var(--panel); border-color: var(--line-strong); }
  .view { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .home-hero::after { min-height: 235px; }
}
