/* Shared controls. Existing dark surfaces are unchanged. */
.theme-choice { margin: 18px 0; font: 500 12px/1.5 "Montserrat",Arial,sans-serif; }
.theme-choice__label { display: block; margin: 0 0 10px; color: var(--muted,#9bb1c5); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.theme-choice__options { display: flex; padding: 4px; gap: 4px; border: 1px solid rgba(155,177,197,.25); border-radius: 8px; background: rgba(3,16,31,.36); }
.theme-choice button, .theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #b7c9d9; font: 500 12px/1.4 "Montserrat",Arial,sans-serif; cursor: pointer; }
.theme-choice button { flex: 1; }
.theme-choice svg, .theme-toggle svg { width: 17px; height: 17px; flex: 0 0 auto; }
.theme-choice button[aria-pressed="true"] { border-color: rgba(245,195,76,.5); background: rgba(245,195,76,.11); color: #f8dc91; }
.theme-choice button:hover, .theme-toggle:hover { border-color: #b99a55; }
.theme-choice button:focus-visible, .theme-toggle:focus-visible { outline: 3px solid #c99a39; outline-offset: 3px; }
.sidebar > .theme-choice { flex: 0 0 auto; margin: 0 16px 16px; }
.theme-toggle { border-color: rgba(155,177,197,.25); }
.profile-appearance { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px; margin: 0 0 24px; border: 1px solid var(--line); background: var(--navy-900); border-radius: 8px; }
.profile-appearance h2 { margin: 8px 0; font: 500 30px/1.1 var(--serif); }
.profile-appearance p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-appearance .theme-choice { min-width: 220px; }

/* Light edition — ivory, ink and antique gold. No image/canvas filtering. */
html[data-theme="light"] { color-scheme: light; background: #f6f3ed; }
html[data-theme="light"] body { background: #f6f3ed; color: #183247; }
html[data-theme="light"] body::before { background: radial-gradient(ellipse at 90% 0,rgba(201,170,108,.1),transparent 50%),radial-gradient(ellipse at 0 100%,rgba(36,72,94,.035),transparent 50%); background-size: auto; }
html[data-theme="light"] { --inerva-gold-gradient: linear-gradient(125deg,#c3a061,#e3cb95 60%,#efddb3); --gold-300: #80601f; --gold-500: #80601f; --gold-200: #80601f; --gold-700: #77571d; --ivory: #183247; --white: #102a40; --muted: #526475; --muted-2: #596b79; --danger: #a13935; --success: #256756; --blue-300: #285b73; --blue-500: #285b73; --line: #d9d4c9; --line-gold: #c7b27e; --shadow: 0 18px 55px rgba(26,49,68,.09); }
html[data-theme="light"] .theme-choice__options { border-color: #d3cbbd; background: #ede9e1; }
html[data-theme="light"] .theme-choice button, html[data-theme="light"] .theme-toggle { color: #526475; }
html[data-theme="light"] .theme-choice button[aria-pressed="true"] { background: #fffdf8; border-color: #b59a64; color: #183247; box-shadow: 0 2px 8px rgba(26,49,68,.06); }
html[data-theme="light"] .theme-toggle { background: #fffdf8; border-color: #d3cbbd; }
html[data-theme="light"] .sidebar { background: #fdfbf7; border-right-color: #ddd6c9; }
html[data-theme="light"] .topbar { background: rgba(253,251,247,.95); border-bottom-color: #ddd6c9; }
html[data-theme="light"] .mobile-tabs { background: rgba(253,251,247,.98); border-top-color: #d6cebe; }
html[data-theme="light"] .sidebar nav a.active, html[data-theme="light"] .mobile-tabs a.active { background: #ede6d7; color: #183247; border-color: #b89a5e; }
html[data-theme="light"] .brand__mark { background: #0d2a4a; border-color: #b89a5e; }
html[data-theme="light"] .button--gold { color: #183247; border-color: #b7995d; box-shadow: 0 8px 20px rgba(126,95,35,.09); }
html[data-theme="light"] .button--outline { color: #183247; border-color: #aaa99f; background: transparent; }
html[data-theme="light"] input, html[data-theme="light"] textarea, html[data-theme="light"] select { color-scheme: light; }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #62717d; opacity: 1; }
html[data-theme="light"] .event-admin-tile, html[data-theme="light"] .post-card, html[data-theme="light"] .course-card { box-shadow: 0 8px 28px rgba(26,49,68,.055); }
html[data-theme="light"] .event-create-panel { background: linear-gradient(120deg,#f5ecd9,#fffdf9 64%); border-color: #c5ae76; }
html[data-theme="light"] .event-form-section { background: #fffdf9; }
html[data-theme="light"] .event-tile-visual .status { background: #fffdf5; color: #285b49; border-color: #bfcec0; }
html[data-theme="light"] .profile-appearance { background: #fffdf9; }
html[data-theme="light"] .notice { color: #285b73; }
html[data-theme="light"] .notice--error { color: #a13935; }
html[data-theme="light"] .notice--success { color: #256756; }
/* Media remain faithful to the original: dark image viewer and photographic labels. */
html[data-theme="light"] .agora-image-viewer-backdrop { --ivory:#f0f4f8; --white:#fbfdff; --muted:#9bb1c5; --gold-300:#f5c34c; color:#f0f4f8; background:rgba(0,5,12,.95); }
html[data-theme="light"] .agora-image-viewer-backdrop .modal { background:#030c16; color:#f0f4f8; }
html[data-theme="light"] .content-media__zoom-hint { color:#f0f4f8; }
html[data-theme="light"] .facet-face-code, html[data-theme="light"] .facet-face-thinking { color:#f0f4f8; text-shadow:0 1px 5px #03101f; }
html[data-theme="light"] .facetlab-intro__portrait > span { background:rgba(3,16,31,.88); color:#f8dc91; }
html[data-theme="light"][data-inerva-surface="simlab"] .brand-symbol { background:#000; }
html[data-theme="light"][data-inerva-surface="simlab"] body::after { display:none; }
@media(max-width:620px) { .profile-appearance { flex-direction:column; align-items:stretch; } .profile-appearance .theme-choice { min-width:0; } .landing-nav__actions .theme-toggle { padding-inline:10px; } .landing-nav__actions .theme-toggle span { display:none; } }
@media(prefers-reduced-motion:reduce) { .theme-choice button, .theme-toggle { transition:none; } }

html[data-theme="light"] .agora-image-viewer-backdrop .modal > header { background:#061830; color:#f0f4f8; }
html[data-theme="light"] .member-world-map__canvas .leaflet-tile-pane { filter:none; }
html[data-theme="light"] .tr-identity__logo { mix-blend-mode:normal; border-radius:12px; }
html[data-theme="light"][data-inerva-surface="simlab"] .scenario-brief-card,
html[data-theme="light"][data-inerva-surface="simlab"] .scenario-card { --accent:#80601f !important; }
