/* Daylight keeps the same cinematic room and readable, paper-light controls. */
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #20313e;
  --muted: #566b79;
  --dim: #627782;
  --panel: rgba(255, 253, 248, .94);
  --line: rgba(98, 124, 132, .38);
  --cyan: #08758d;
  --green: #16754f;
  --yellow: #986000;
  --red: #c3374b;
  --blue: #166eab;
  --purple: #7a4caf;
}
:root[data-theme="light"] body { background: #ece5d9; }
:root[data-theme="light"] .room-background { background-image: url('./assets/environments/bedroom-day.webp'); opacity: 1; }
:root[data-theme="light"] .brand-name { text-shadow: 0 2px 12px #fff9; }
:root[data-theme="light"] .brand p { color: #374b55; text-shadow: 0 1px 7px #fffc; }
:root[data-theme="light"] .glass-panel { box-shadow: 0 8px 26px #69543c1a,inset 0 1px 0 #fff; }
:root[data-theme="light"] .stats-panel,
:root[data-theme="light"] .story-panel { background: var(--panel); }
:root[data-theme="light"] .icon-button,
:root[data-theme="light"] .menu-button { background: #fffaf1eb; border-color: #8a9d9b85; }
:root[data-theme="light"] .icon-button:hover,
:root[data-theme="light"] .menu-button:hover { background: #fff; border-color: #08758d; }
:root[data-theme="light"] #theme-button[aria-pressed="true"] { color: #976018; background: #fff5d6; border-color: #b2965b; }
:root[data-theme="light"] .save-status,
:root[data-theme="light"] .system-whisper { color: #275a47; }
:root[data-theme="light"] .panel-eyebrow,
:root[data-theme="light"] .profile-copy h1,
:root[data-theme="light"] .emotion-value,
:root[data-theme="light"] .story-top,
:root[data-theme="light"] .card-heading strong { color: #233845; }
:root[data-theme="light"] .subject-id,
:root[data-theme="light"] .profile-copy p,
:root[data-theme="light"] .profile-copy blockquote,
:root[data-theme="light"] .situation-description,
:root[data-theme="light"] .situation-heading p,
:root[data-theme="light"] .emotion-label,
:root[data-theme="light"] .story-copy p,
:root[data-theme="light"] .story-top>span:nth-child(2),
:root[data-theme="light"] .card-heading small,
:root[data-theme="light"] .question-echo,
:root[data-theme="light"] .help-button { color: #526572; }
:root[data-theme="light"] .online-label { color: #23704e; border-color: #b1c3b6; }
:root[data-theme="light"] .presence-dot { border-color: #fffaf2; }
:root[data-theme="light"] .emotion-row:nth-child(1) { --meter-color: #20865d !important; }
:root[data-theme="light"] .emotion-row:nth-child(2) { --meter-color: #cc4357 !important; }
:root[data-theme="light"] .emotion-row:nth-child(3) { --meter-color: #2781b5 !important; }
:root[data-theme="light"] .emotion-row:nth-child(4) { --meter-color: #8b59b7 !important; }
:root[data-theme="light"] .emotion-track { background: #dce3df; box-shadow: inset 0 1px 2px #324d4212; }
:root[data-theme="light"] .mood-summary,
:root[data-theme="light"] .session-indicator,
:root[data-theme="light"] .session-indicator span:last-child,
:root[data-theme="light"] .story-footer,
:root[data-theme="light"] .scene-number { color: #5b7078; border-color: #758e8c30; }
:root[data-theme="light"] .situation-icon { color: #577180; }
:root[data-theme="light"] .story-arc { color: #936127; }
:root[data-theme="light"] .scene-art-wrap { border-color: #ab8c5d6b; }
:root[data-theme="light"] .field-note { color: #4d3e2c; text-shadow: 0 1px 7px #fff9; opacity: 1; }
:root[data-theme="light"] .field-note-heading { color: #6a5034; }
:root[data-theme="light"] .phone-screen { color: #243746; background: linear-gradient(145deg,#fffefb,#f0f3f1); border-color: #b8c3c5; }
:root[data-theme="light"] .chat-header { border-color: #849caa30; }
:root[data-theme="light"] .chat-person>span,
:root[data-theme="light"] .chat-chevron,
:root[data-theme="light"] .chat-sparkle,
:root[data-theme="light"] .chat-day,
:root[data-theme="light"] .message-meta,
:root[data-theme="light"] .message-system { color: #5d7382; }
:root[data-theme="light"] .message-group.human .message-bubble { color: #243746; background: linear-gradient(135deg,#e4eae9,#dde5e5); box-shadow: 0 2px 6px #29404c0a; }
:root[data-theme="light"] .message-group.ai .message-bubble { background: linear-gradient(135deg,#086fc4,#075ab1); }
:root[data-theme="light"] .typing-bubble { background: #dfe7e8; }
:root[data-theme="light"] .typing-bubble i { background: #718899; }
:root[data-theme="light"] .typing-row>span { color: #557181; }
:root[data-theme="light"] .phone-composer { background: #e5ebec; border-color: #819ba336; }
:root[data-theme="light"] .phone-composer>div { background: #f8faf8; border-color: #9eb1b8; color: #5f7382; }
:root[data-theme="light"] .composer-plus,
:root[data-theme="light"] .composer-spark { color: #607886; }
:root[data-theme="light"] .phone-home { background: #9cabb5; }
:root[data-theme="light"] .chat-log { scrollbar-color: #b1c0c5 transparent; }
:root[data-theme="light"] .connection-caption { color: #244f42; text-shadow: 0 1px 6px #fffb; }
:root[data-theme="light"] .ai-terminal { background: linear-gradient(120deg,#fffcf7f7,#f6f5eef7); border-color: #7b9f9e; box-shadow: 0 -3px 28px #634b321c,inset 0 1px 0 #fff; }
:root[data-theme="light"] .terminal-status,
:root[data-theme="light"] .model-label,
:root[data-theme="light"] .model-label b,
:root[data-theme="light"] .text-button { color: #516f7a; }
:root[data-theme="light"] .response-card { background: linear-gradient(135deg,#fffefb,#eff3ee); border-color: #9eafb0; box-shadow: 0 2px 8px #4c66580a; }
:root[data-theme="light"] .response-card:not(:disabled):hover { background: linear-gradient(135deg,#eef9f4,#e5f1ef); border-color: #08758d; box-shadow: 0 0 0 1px #08758d24,inset 0 0 20px #08758d08; }
:root[data-theme="light"] .response-card.selected { background: #e0f2eb; border-color: #08758d; }
:root[data-theme="light"] .choice-key { color: #456b84; border-color: #7a98a7; }
:root[data-theme="light"] .custom-card .card-heading strong,
:root[data-theme="light"] .custom-card .choice-key { color: #7b4e9f; }
:root[data-theme="light"] .custom-card .choice-text,
:root[data-theme="light"] .custom-count { color: #5f6d7a; }
:root[data-theme="light"] .custom-entry textarea,
:root[data-theme="light"] .share-fallback { color: #243746; background: #fff; border-color: #9aacb4; }
:root[data-theme="light"] .custom-entry textarea::placeholder { color: #637986; }
:root[data-theme="light"] .custom-send { background: #e2efeb; border-color: #799da1; }
:root[data-theme="light"] .page-footer,
:root[data-theme="light"] .page-footer button { color: #425f65; }
:root[data-theme="light"] .transition-card { background: linear-gradient(100deg,#e9f3eb,#f5f5ed); border-color: #8caaa1; }
:root[data-theme="light"] .transition-copy h3 { color: #243d40; }
:root[data-theme="light"] .transition-copy>span,
:root[data-theme="light"] .transition-copy p { color: #516c73; }
:root[data-theme="light"] .primary-button { background: #16744f; color: #fff; border-color: #146647; }
:root[data-theme="light"] .primary-button:hover { background: #0f6643; }
:root[data-theme="light"] .secondary-button { background: #edf2ee; color: #375660; border-color: #9aafb0; }
:root[data-theme="light"] .secondary-button:hover { background: #dcebe4; }
:root[data-theme="light"] .toast { color: #1c5a42; background: #f1fff6f5; border-color: #5d9d7e; box-shadow: 0 8px 30px #243d3826; }
:root[data-theme="light"] .game-dialog { background: linear-gradient(135deg,#fffdf8,#f0f3ee); border-color: #8da7aa; box-shadow: 0 20px 100px #263b4a4d; scrollbar-color: #a1b4b7 transparent; }
:root[data-theme="light"] .game-dialog::backdrop { background: #304b565c; }
:root[data-theme="light"] .dialog-close { background: #e4eee8; color: #3d626a; border-color: #9db1ad; }
:root[data-theme="light"] .dialog-description,
:root[data-theme="light"] .menu-caption,
:root[data-theme="light"] .settings-copy p,
:root[data-theme="light"] .help-list p,
:root[data-theme="light"] .emotion-guide p,
:root[data-theme="light"] .journal-summary p,
:root[data-theme="light"] .journal-notice,
:root[data-theme="light"] .journal-scene small,
:root[data-theme="light"] .report-human span,
:root[data-theme="light"] .report-rating small,
:root[data-theme="light"] .report-line span:first-child,
:root[data-theme="light"] .report-footnote { color: #526d79; }
:root[data-theme="light"] .settings-row select { background: #fff; color: #28434c; border-color: #8da7ad; }
:root[data-theme="light"] .toggle span { background: #d7e2dc; border-color: #839e94; }
:root[data-theme="light"] .emotion-guide>div,
:root[data-theme="light"] .journal-summary,
:root[data-theme="light"] .journal-scene,
:root[data-theme="light"] .report-verdict { background: #f5f8f2; border-color: #9eb7ac80; }
:root[data-theme="light"] .journal-scene:not(:disabled):hover { background: #e3f0e8; border-color: #428176; }
:root[data-theme="light"] .journal-arc,
:root[data-theme="light"] .report-verdict h3,
:root[data-theme="light"] .report-line span:last-child { color: #2e4f56; }
:root[data-theme="light"] .report-verdict>span,
:root[data-theme="light"] .report-verdict p,
:root[data-theme="light"] .report-final-message { color: #486774; }
:root[data-theme="light"] .report-quote { color: #7b592a; }
:root[data-theme="light"] .achievement-tag { color: #6b458c; background: #f1e9f5; border-color: #a58ab466; }
@media(max-width:760px) {
  :root[data-theme="light"] .brand-name { text-shadow: none; }
  :root[data-theme="light"] .phone-device { background: #f7faf6; border-color: #8ea8ad; box-shadow: 0 8px 25px #49665a16; }
}
