/* Elian V10 skin — the Flutter v10 visual system (HomeVisualSystem /
   StudioVisualSystem) carried to the web. Light mode: canvas = backgroundLight
   tinted 7.5% with primary, radial glow top-right (18%), navy ink, AA accent,
   borderless 26px groups, open icons, pill actions. Loaded last. */

body.light-mode {
  --v10-canvas: #E5ECF4;
  --v10-glow: #C9D8E9;
  --v10-accent: #355C8F;
  --v10-ink: #102447;
  --v10-muted: #65738A;
  --v10-faint: #9B9E98;
  --v10-surface: #FFFFFF;
  --v10-hairline: rgba(16, 36, 71, 0.07);
  --bg: var(--v10-canvas);
  --surface: var(--v10-surface);
  --surface-hover: color-mix(in srgb, var(--primary) 5%, #fff);
  --text: var(--v10-ink);
  --text-main: var(--v10-ink);
  --text-muted: var(--v10-muted);
  --text-light: var(--v10-faint);
  --border: transparent;
  --border-strong: var(--v10-hairline);
  --shadow: none;
  --shadow-sm: none;
  --radius: 26px;
  --radius-sm: 14px;
}
body.light-mode.palette-ocean   { --v10-canvas: #E5EEF8; --v10-glow: #C9DDF2; --v10-accent: #33669F; }
body.light-mode.palette-verdant { --v10-canvas: #E3F3EC; --v10-glow: #C5EADB; --v10-accent: #227656; }
body.light-mode.palette-amber   { --v10-canvas: #F9F2E3; --v10-glow: #F4E7C8; --v10-accent: #8A6322; }
body.light-mode.palette-crimson { --v10-canvas: #F9E9E9; --v10-glow: #F4D2D2; --v10-accent: #B83C3C; }
body.light-mode.palette-rose    { --v10-canvas: #F8E8F0; --v10-glow: #F2D1E2; --v10-accent: #A34273; }
body.light-mode.palette-violet  { --v10-canvas: #EEE6FB; --v10-glow: #E1D0FC; --v10-accent: #6D40D8; }
body.light-mode.palette-studio  { --v10-canvas: #E4EFF9; --v10-glow: #C6E5FA; --v10-accent: #4B2B6D; }

/* Canvas with the app's soft radial glow from the top-right corner. */
body.light-mode,
body.light-mode #app {
  background: radial-gradient(145% 120% at 105% -5%, var(--v10-glow) 0%, var(--v10-canvas) 55%) fixed, var(--v10-canvas);
  color: var(--v10-ink);
}
body.light-mode #main-content,
body.light-mode .main-content,
body.light-mode main { background: transparent; }

/* Sidebar: same canvas, no border, accent for the active item. */
body.light-mode #sidebar {
  background: color-mix(in srgb, var(--v10-surface) 55%, transparent);
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}
body.light-mode .sidebar-logo-text {
  color: var(--v10-accent);
  font-weight: 800;
  letter-spacing: -0.6px;
}
body.light-mode .sidebar-logo img { border-radius: 10px; }
body.light-mode .nav-item { color: var(--v10-muted); border: 0 !important; }
body.light-mode .nav-item:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); color: var(--v10-ink); }
body.light-mode .nav-item.active {
  background: color-mix(in srgb, var(--primary) 12%, transparent) !important;
  color: var(--v10-accent) !important;
  box-shadow: none !important;
}
body.light-mode .nav-icon,
body.light-mode .home-quick-item-icon,
body.light-mode .icon-btn { background: none !important; border: 0 !important; box-shadow: none !important; }
body.light-mode .nav-icon svg, body.light-mode .icon-btn { color: currentColor; }

/* Typography: Manrope with the app's display scale. */
body.light-mode { font-family: Manrope, -apple-system, system-ui, sans-serif; }
body.light-mode .home-hero-title,
body.light-mode .section-title,
body.light-mode .section-header h1,
body.light-mode .v10-cong-hero h1 {
  color: var(--v10-ink);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.13;
}
body.light-mode .home-hero-title span,
body.light-mode .accent-text { color: var(--v10-accent); }

/* Groups: white, 26px, no border, no shadow. */
body.light-mode .card,
body.light-mode .quick-card,
body.light-mode .v10-upcoming button,
body.light-mode .v10-tools-widget,
body.light-mode .chat-input-container,
body.light-mode .studio-input-wrap {
  background: var(--v10-surface) !important;
  border: 0 !important;
  border-radius: 26px;
  box-shadow: none !important;
}

/* Actions: pill buttons in the accent, text actions in the accent. */
body.light-mode .btn-primary {
  background: var(--v10-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-weight: 700;
}
body.light-mode .btn-primary:hover { filter: brightness(1.08); }
body.light-mode .btn-outline {
  background: transparent !important;
  color: var(--v10-accent) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600;
}
body.light-mode .btn-outline:hover { background: color-mix(in srgb, var(--primary) 8%, transparent) !important; }
body.light-mode .link, body.light-mode .v10-plans-link { color: var(--v10-accent); }

/* Inputs: quiet white fields, no outline until focus. */
body.light-mode input:not([type=checkbox]):not([type=radio]),
body.light-mode textarea,
body.light-mode select {
  background: var(--v10-surface);
  border: 0 !important;
  border-radius: 16px;
  color: var(--v10-ink);
  box-shadow: none !important;
}
body.light-mode input:focus-visible,
body.light-mode textarea:focus-visible,
body.light-mode select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--v10-accent) 55%, transparent);
  outline-offset: 1px;
}

/* Model picker and plan accents follow the AA accent. */
body.light-mode .v10-model-trigger svg,
body.light-mode .v10-model-cost,
body.light-mode .v10-model-mark,
body.light-mode .v10-model-panel header p,
body.light-mode .v10-model-content h3 { color: var(--v10-accent); }

/* Mobile bottom navigation: frosted canvas, accent active item. */
body.light-mode #mobile-bottom-nav {
  background: color-mix(in srgb, var(--v10-surface) 82%, transparent);
  border: 0 !important;
  box-shadow: 0 -1px 0 var(--v10-hairline);
  backdrop-filter: blur(18px);
}
body.light-mode .mob-nav-item { color: var(--v10-muted); }
body.light-mode .mob-nav-item.active { color: var(--v10-accent); }

/* Auth screen: canvas glow, white panel, v10 mark. */
body.light-mode #auth-screen { background: radial-gradient(145% 120% at 105% -5%, var(--v10-glow) 0%, var(--v10-canvas) 55%), var(--v10-canvas); }
body.light-mode .auth-glow { display: none; }
body.light-mode .auth-card,
body.light-mode .auth-panel { background: var(--v10-surface); border: 0 !important; box-shadow: none !important; border-radius: 28px; }

/* Hero art never clips at the edge. */
.home-robot, .v10-hero-art, .v10-studio-art { max-width: 100%; }
.home-hero { overflow: visible; }
@media (max-width: 640px) {
  body.light-mode .home-hero-title { font-size: clamp(26px, 7.5vw, 30px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.light-mode #sidebar, body.light-mode #mobile-bottom-nav { backdrop-filter: none; }
}

/* Studio feedback (👍/👎): open icons, accent when chosen. */
.studio-fb { display: inline-flex; gap: 2px; margin-left: auto; }
.studio-fb-btn { background: none !important; border: 0 !important; box-shadow: none !important; opacity: .7; }
.studio-fb-btn:hover { opacity: 1; }
.studio-fb-btn.active { opacity: 1; color: var(--v10-accent, var(--primary)) !important; }
.studio-fb-btn.active svg { fill: color-mix(in srgb, currentColor 18%, transparent); }
.studio-fb-note { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-width: 520px; }
.studio-fb-note textarea { width: 100%; resize: vertical; padding: 10px 12px; border-radius: 14px; border: 0; background: var(--v10-surface, var(--surface)); color: inherit; font: inherit; font-size: 13px; }
.studio-fb-note > div { display: flex; gap: 6px; }
