/* Shared visual direction: anime images first, clear actions, no floating preview. */
:root {
  color-scheme: dark;
  --bg: #101113;
  --paper: #191b1e;
  --surface: #17191c;
  --ink: #f5f6f7;
  --muted: #a6acb4;
  --line: #32363c;
  --teal: #c5f277;
  --teal-strong: #c5f277;
  --rose: #ffb1bd;
  --shadow: none;
  --font-hand: var(--font-ui);
  --font-heading-weight: 750;
}
body { background: var(--bg); }
h1, h2 { font-family: var(--font-ui); font-weight: 750; letter-spacing: -.035em; }
.brand { font: 800 25px var(--font-ui); letter-spacing: -.06em; }
.primary-button, .google-button { background: var(--teal); color: #17200f; border-color: transparent; box-shadow: none; }
.primary-button:hover:not(:disabled), .google-button:hover:not(:disabled) { background: #d7ff9d; }
.secondary-button, .ghost-button { border: 1px solid var(--line); background: #202328; }
.secondary-button:hover:not(:disabled), .ghost-button:hover:not(:disabled) { background: #30353b; }
.app-shell { width: min(1320px, calc(100% - 64px)); padding-top: 24px; }
.topbar { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.compose-panel, .result-panel, .history-panel { border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
.dashboard { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.section-heading h1 { font-size: clamp(28px, 2.7vw, 36px); text-wrap: balance; }
.section-heading h2 { font-size: 24px; }
textarea, input:not([type=radio]), select { color: var(--ink); border: 1px solid #444951; background: #101214; border-radius: 14px; }
textarea { padding: 17px; min-height: 155px; font-size: 16px; }
textarea::placeholder { color: #959da8; opacity: 1; }
textarea:focus, input:focus { outline: 2px solid var(--teal); outline-offset: 2px; }
.style-card { background: #1e2125; border: 1px solid #3d434b; border-radius: 14px; }
.style-card.is-selected { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.style-card-image, .style-large-image, .preview-image, .thumb { background: #22262c; }
.style-gallery { scrollbar-color: #606a75 transparent; }
.style-example-button { border-top: 1px solid var(--line); background: #24292f; color: #e5e8ec; }
.style-example-button:hover:not(:disabled) { background: #364137; }
.style-access-note { padding: 12px; background: #202920; border: 1px solid #384b2e; border-radius: 14px; }
.style-access-note .google-button { width: 100%; }
.dream-example-item { font-family: var(--font-ui); font-size: 14px; background: #22262c; border-color: #414852; color: #d9dfe5; border-radius: 11px; }
.dream-example-item:hover:not(:disabled) { background: #303a2a; border-color: var(--teal); }
.preview { border: 1px solid #363c44; border-radius: 16px; background: #101214; }
.preview-empty { color: var(--muted); min-height: 400px; background: radial-gradient(ellipse at 50% 35%, #252d21 0%, #141619 65%); }
.preview-caption { background: #1a1d21; }
.history-item { border-color: #3b424b; background: #1d2126; border-radius: 14px; }
.history-item.selected, .history-item:hover { background: #252e23; border-color: #95b564; }
.thumb-placeholder { color: #cbd3dd; background: #30353d; }
dialog { background: #191d22; color: var(--ink); border: 1px solid #4a515a; border-radius: 20px; }
dialog::backdrop { background: rgb(0 0 0 / 75%); }
:focus-visible { outline-color: var(--teal); }
.login-view { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 48px; padding: 38px; min-height: 0; background: #17191c; border: 1px solid var(--line); border-radius: 24px; box-shadow: none; }
.login-content { display: grid; justify-items: start; gap: 20px; min-width: 0; }
.login-view h1 { font-size: clamp(34px, 4.3vw, 58px); line-height: 1.15; }
.login-policy { color: var(--muted); font-size: 14px; line-height: 1.75; }
.login-art { margin: 0; min-width: 0; width: 100%; }
.login-art img { display: block; width: 100%; height: auto; border-radius: 20px; }
.login-art figcaption { color: var(--muted); font-size: 12px; margin-top: 12px; }
.studio-description { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.marketing-page .topbar { margin-bottom: 0; }
.marketing-page h1, .marketing-page h2 { font-family: var(--font-ui); font-weight: 750; letter-spacing: -.04em; }
.marketing-page a { color: var(--ink); }
.marketing-page a.primary-button { color: #17200f; }
.public-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: 14px; color: var(--muted); }
.public-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.public-nav a:hover { color: var(--teal); }
.landing-hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 58px; padding: 60px 0 68px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.landing-hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.13; max-width: 12em; }
.hero-intro { font-size: 17px; line-height: 1.8; margin-block: 24px; max-width: 36em; }
.landing-hero .actions a { min-height: 52px; padding: 13px 22px; border-radius: 13px; text-decoration: none; }
.landing-policy { color: #bec6b4; font-size: 13px; line-height: 1.7; }
.availability-note { font-size: 12px; color: var(--muted); }
.anime-showcase { position: relative; margin: 0; min-width: 0; border-radius: 26px; background: #202327; border: 1px solid #42473c; overflow: hidden; }
.anime-showcase > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.anime-showcase figcaption { padding: 16px 20px; display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.anime-showcase figcaption strong { color: var(--ink); font-size: 15px; }
.showcase-pill { position: absolute; top: 16px; left: 16px; padding: 7px 12px; color: #fff; background: rgb(14 17 14 / 82%); border-radius: 99px; font-size: 12px; border: 1px solid #ffffff38; }
.prompt-starter { border: 1px solid #42494f; background: #1c2025; border-radius: 17px; padding: 18px; margin: 22px 0; }
.prompt-starter p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.prompt-starter a { color: #ecf0e8; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; text-decoration: none; font-size: 15px; }
.prompt-starter a::after { content: '↗'; display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 10px; background: var(--teal); color: #17200f; font-size: 22px; }
.landing-section { padding-block: 54px; border-color: var(--line); }
.landing-section h2 { font-size: clamp(27px, 3vw, 38px); }
.public-example { background: #252a30; }
.public-example figcaption { background: #20252b; color: #b9c2ce; }
.public-style-card { border-color: #3b424b; background: #191d22; border-radius: 18px; }
.public-style-card:hover { border-color: #819363; }
.public-style-card > div > a { color: var(--teal); font-size: 14px; text-decoration: none; }
.public-style-grid { gap: 16px; scrollbar-color: #606a75 transparent; }
.how-to-grid li { background: #191d22; border-color: #363d45; border-radius: 18px; }
.step-number { color: var(--teal); font-size: 22px; }
.prompt-examples blockquote { background: #1d2228; border-color: var(--teal); font-family: var(--font-ui); font-size: 17px; }
.faq details { background: #191d22; border-color: #353c44; }
.landing-cta { background: #1e291c; border: 1px solid #405434; padding: 36px; }
.landing-footer { border-top: 1px solid var(--line); padding-block: 30px; margin-top: 40px; }
@media (max-width: 980px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .login-view { gap: 28px; padding: 28px; }
  .landing-hero { gap: 30px; }
  .public-nav { gap: 15px; }
}
@media (max-width: 800px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); padding-top: 38px; }
  .landing-hero h1 { max-width: 16em; font-size: clamp(36px, 6.2vw, 53px); }
  .anime-showcase { width: min(100%, 560px); justify-self: center; }
  .public-style-grid { gap: 14px; }
  .login-view { grid-template-columns: minmax(0, 1fr); }
  .login-art { max-width: 480px; justify-self: center; }
}
@media (max-width: 640px) {
  .app-shell { width: calc(100% - 32px); padding-top: 16px; }
  .topbar { gap: 12px; padding-bottom: 16px; }
  .brand { font-size: 23px; }
  .public-nav { display: none; }
  .marketing-page .topbar > .secondary-button { width: auto; margin-left: auto; font-size: 13px; min-height: 44px; padding: 10px 12px; }
  .landing-hero { padding: 32px 0 40px; gap: 25px; }
  .landing-hero h1 { font-size: clamp(32px, 8.6vw, 45px); }
  .hero-intro { font-size: 15px; margin-block: 20px; }
  .landing-hero .actions { gap: 10px; }
  .landing-hero .actions a { width: auto; flex: 1 1 130px; padding: 12px; font-size: 14px; }
  .anime-showcase { border-radius: 20px; }
  .anime-showcase figcaption { padding: 14px 16px; }
  .prompt-starter { padding: 14px; margin-block: 18px; }
  .prompt-starter a { font-size: 14px; }
  .landing-section { padding-block: 38px; }
  .landing-cta { padding: 24px 20px; }
  .login-view { padding: 22px; gap: 24px; }
  .login-view h1 { font-size: clamp(31px, 8vw, 42px); }
  .login-content { gap: 16px; }
  .studio-description { font-size: 14px; }
  .login-actions { width: 100%; }
  .login-actions button { width: 100%; }
  .preview-empty { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Keep the login headline and explanatory copy visually distinct. */
.login-content > div:first-child .studio-description { margin-top: 18px; }
