/* Appearance is independent of language/market. Dark keeps the original palette. */
.theme-panel{flex-shrink:0;border-bottom:0}
.theme-panel>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:8px 11px;border:1px solid #556078;border-radius:10px;background:#191f2c;color:var(--text);font-size:12px;font-weight:750;list-style:none}
.theme-panel>summary::-webkit-details-marker{display:none}
.theme-panel>summary svg{width:21px;height:21px;flex-shrink:0}
.theme-panel[open]>summary{border-color:var(--green);color:var(--green)}
.theme-popover{position:absolute;z-index:61;right:0;top:calc(100% + 12px);width:310px;max-width:calc(100vw - 32px);padding:18px;border:1px solid #65718a;border-radius:15px;background:#171e2b;box-shadow:0 16px 42px #0008}
.theme-heading{margin:0 0 14px;font-size:16px;font-weight:750}
.theme-options{display:grid;grid-template-columns:1fr 1fr;gap:9px;min-width:0;margin:0;padding:0;border:0}
.theme-options legend{font-size:12px;color:var(--muted);margin-bottom:10px}
.theme-option{position:relative;display:flex;flex-direction:column;gap:9px;cursor:pointer;min-width:0;padding:10px;border:1px solid #515f76;border-radius:11px;background:#101722}
.theme-option:has(:checked){border-color:var(--green);box-shadow:0 0 0 1px var(--green);background:#182e26}
.theme-option:focus-within{outline:3px solid var(--blue);outline-offset:3px}
.theme-option input{position:absolute;top:13px;right:13px;width:17px;height:17px;margin:0;accent-color:var(--green);z-index:1}
.theme-option strong{display:block;font-size:13px;color:var(--text)}
.theme-option small{display:block;font-size:11px;line-height:1.4;color:var(--muted);margin-top:2px}
.theme-swatch{display:block;position:relative;width:100%;height:62px;border:1px solid #6a7587;border-radius:7px;overflow:hidden}
.theme-swatch::before{content:'';position:absolute;left:9px;top:12px;width:40%;height:5px;border-radius:2px;background:currentColor;box-shadow:0 12px 0 currentColor;opacity:.85}
.theme-swatch::after{content:'';position:absolute;left:9px;bottom:9px;width:calc(100% - 18px);height:12px;border:1px solid currentColor;border-radius:3px;opacity:.35}
.theme-swatch-dark{background:#151b28;color:#dfe8f3}
.theme-swatch-light{background:#fff;color:#243345}
.theme-note{font-size:11px;line-height:1.55;color:var(--muted);margin:13px 0 0}

/* A white reading surface with restrained green, blue and amber accents. */
html[data-theme="light"]{color-scheme:light;--bg:#fafbfc;--card:#fff;--line:#cad2dc;--muted:#526174;--text:#192435;--red:#bf3541;--green:#176c48;--purple:#6844a0;--blue:#235d9b}
html[data-theme="light"] body{background:var(--bg);color:var(--text)}
html[data-theme="light"] input::placeholder,html[data-theme="light"] textarea::placeholder{color:#687588;opacity:1}
html[data-theme="light"] :is(.filter,.list-description,.entry-note,.availability-note,.detail-body,.provider-note,.provider-verified,.artwork-caption,.status-control,.number,.episode-details .small,.countdown-caption,.calendar-weekday,.calendar-panel .small,.history-panel .small,.information-page p,.information-page li){color:var(--muted)}
html[data-theme="light"] :is(.save-line.error,.plan-warning,.release-caveat){color:#89551b}
html[data-theme="light"] :is(.text-button,.synopsis-source,.credits-info a){color:var(--blue)}
html[data-theme="light"] :is(.disney-link,.hero .disney-text,.related-title-link,.availability-check,.sync-account-link){color:#116c69}
html[data-theme="light"] .trailer-link{color:#674899}
html[data-theme="light"] .title-link:hover{color:#126961}
html[data-theme="light"] .secondary{border-color:#a9b7c8;background:#fff;color:var(--text)}
html[data-theme="light"] .secondary:hover{background:#f0f4f8}
html[data-theme="light"] .primary{background:var(--green);color:#fff;border-color:var(--green)}
html[data-theme="light"] .primary:hover{background:#105b3c;color:#fff}
html[data-theme="light"] :is(select,.plan-inputs input,.plan-assumptions input,.voice-input input,.install-link-box input,.viewing-controls select,.calendar-form input,.calendar-form select,.restart-panel input,.personal-details select,.personal-details textarea,.community-comment-label textarea){background:#fff;color:var(--text);border-color:#9cabbc}
html[data-theme="light"] :is(.plan-inputs label,.plan-assumptions label,.viewing-controls label,.calendar-form label,.restart-panel label,.personal-details label,.locale-languages legend,.locale-country-label,.format-picker legend){color:#415367}
html[data-theme="light"] :is(.theme-panel>summary,.locale-panel>summary){background:#fff;border-color:#a9b7c8;color:var(--text)}
html[data-theme="light"] :is(.theme-panel[open]>summary,.locale-panel[open]>summary){border-color:var(--green);color:var(--green);background:#f2faf5}
html[data-theme="light"] :is(.theme-popover,.locale-popover){background:#fff;border-color:#b3becb;box-shadow:0 16px 42px #182c4526}
html[data-theme="light"] :is(.theme-option,.locale-languages label){background:#f6f8fb;border-color:#bdc8d5;color:var(--text)}
html[data-theme="light"] :is(.theme-option:has(:checked),.locale-languages label:has(:checked)){background:#edf7f0;border-color:var(--green);color:var(--green)}
html[data-theme="light"] .country-flag{box-shadow:0 0 0 1px #75859a66}
html[data-theme="light"] .locale-unavailable{color:#637184}
html[data-theme="light"] .next-card{border-color:#b1ccbe;background:linear-gradient(105deg,#eaf5ee,#f4f7fa)}
html[data-theme="light"] :is(.next-card .eyebrow,.next-arrow,.sync-notice-copy strong){color:#226b4e}
html[data-theme="light"] .next-jump:hover{background:#186b4809}
html[data-theme="light"] .sync-notice{color:#415367}
html[data-theme="light"] :is(.planner,.filter-fold){background:#f3f6fa;border-color:#bdc9d7}
html[data-theme="light"] .plan-result{background:#e8eef5;color:#314258}
html[data-theme="light"] .plan-result.on-track{background:#e6f4eb;color:#21643f}
html[data-theme="light"] .plan-result.behind{background:#fff2d9;color:#805013}
html[data-theme="light"] .format-options label{background:#fff;border-color:#b4c1d0;color:#344457}
html[data-theme="light"] .format-options label:has(input:checked){background:#e8f4ed;border-color:#48886a;color:#1a5f3e}
/* Keep the artwork vivid; protect the reading area without washing out the whole card. */
html[data-theme="light"] :is(.entry,.entry.has-art){--art-wash:255 255 255;background:#fff;border-color:#879bb1;box-shadow:0 3px 12px #23384e12,inset 0 0 0 1px #ffffff60}
html[data-theme="light"] .entry-art{opacity:.9;filter:saturate(1.16) contrast(1.06)}
html[data-theme="light"] .entry.has-art::before{background:linear-gradient(90deg,rgb(var(--art-wash)/.86),rgb(var(--art-wash)/.65) 55%,rgb(var(--art-wash)/.48))}
html[data-theme="light"] .entry.has-art .title-link{text-shadow:0 1px 2px #ffffffd9,0 0 8px #ffffff70}
html[data-theme="light"] :is(.entry.has-art .entry-note,.entry.has-art .entry-meta,.entry.has-art .availability-note,.entry.has-art .number,.entry.has-art .countdown-caption){color:#2d3d52}
html[data-theme="light"] .check{background:#fff;border-color:#728298}
html[data-theme="light"] .check:checked{background:var(--green);border-color:var(--green)}
html[data-theme="light"] .check:checked::after{color:#fff}
html[data-theme="light"] :is(.entry.checked,.entry.has-art.checked){--art-wash:234 246 238;background:#eef8f1;border-color:#478464}
html[data-theme="light"] .entry.checked h3{color:#165e3d}
html[data-theme="light"] .status-control select{background:#ffffffed;color:#344457;border-color:#9baabd}
html[data-theme="light"] .entry.checked .status-control select{background:#eaf6eed9;color:#165e3d;border-color:#478464}
html[data-theme="light"] .entry.status-paused{--art-wash:237 241 246;background:#f0f2f6;border-color:#72849e}
html[data-theme="light"] .entry.status-paused h3{color:#35465e}
html[data-theme="light"] .entry.status-paused .check::after{color:#526174}
html[data-theme="light"] .entry.status-skipped{--art-wash:255 246 225;background:#fff7e6;border-color:#ac8136}
html[data-theme="light"] .entry.status-skipped h3{color:#82560f}
html[data-theme="light"] .entry.status-skipped .status-control select{color:#70470b;background:#fff7e6d9;border-color:#ac8136}
html[data-theme="light"] .entry.status-skipped .check::after{color:#82560f}
html[data-theme="light"] .tag{background:#e5eef9;color:#28598c}
html[data-theme="light"] .tag.serial{background:#eee7f7;color:#62468d}
html[data-theme="light"] .tag.short{background:#fff0d4;color:#805314}
html[data-theme="light"] .tag.animation{background:#e3f1e8;color:#2e684b}
html[data-theme="light"] .tag.future{background:#ece9f5;color:#62517f}
html[data-theme="light"] :is(.tag.extra,.entry.has-art .tag.extra){background:#f5f7fa;border-color:#b2c0cf;color:#4b5c70}
html[data-theme="light"] .runtime{background:#ffffffdf;border-color:#aebdce;color:#35465e}
html[data-theme="light"] .entry.future{background:linear-gradient(135deg,#f5f1fa,#fff);border-color:#c2b5d4}
html[data-theme="light"] :is(.future-icon,.entry.future .future-icon){background:#eee7f7;color:#6844a0}
html[data-theme="light"] :is(.premiere,.entry.has-art .premiere,.entry-details,.episode-details,.provider-details,.personal-details,.credits-info){border-color:#61788f66}
html[data-theme="light"] :is(.release-channel,.entry.has-art .release-channel){color:#67458d}
html[data-theme="light"] .release-source{color:#235d9b}
html[data-theme="light"] :is(.countdown-cell,.entry.has-art .countdown-cell){background:linear-gradient(155deg,#f1ebf8f5,#f9fafff5);border-color:#c2b5d4}
html[data-theme="light"] .countdown-cell strong{color:#5c3f83}
html[data-theme="light"] .countdown-cell:last-child strong{color:#9d3f54}
html[data-theme="light"] .countdown-cell span{color:#625771}
html[data-theme="light"] :is(.entry-details>summary,.episode-details>summary,.provider-details>summary){color:#203e52}
html[data-theme="light"] .entry.has-art :is(.watch-actions,.entry-meta,.entry-details>summary,.episode-details>summary,.provider-details>summary){text-shadow:0 1px 2px #ffffffe6,0 0 6px #ffffffb3}
html[data-theme="light"] .entry.has-art :is(.entry-details,.episode-details,.provider-details,.personal-details)[open]{background:rgb(var(--art-wash)/.88);border-radius:8px;padding:0 10px 8px;box-shadow:0 2px 7px #23384e0d}
html[data-theme="light"] .entry.has-art .disney-link{color:#075451}
html[data-theme="light"] .entry.has-art .trailer-link{color:#53317d}
html[data-theme="light"] .entry-details .entry-synopsis{color:#243448}
html[data-theme="light"] .entry-details:has(.entry-synopsis) .entry-note{color:#4d5e72;border-left-color:#a9b9cd}
html[data-theme="light"] .provider-group h4{color:#42566c}
html[data-theme="light"] .provider-link{background:#ffffffed;border-color:#b1bfd0;color:#25384f}
html[data-theme="light"] .provider-link:hover{background:#ebf5f4;border-color:#4c948f}
html[data-theme="light"] .provider-link:active{background:#dfefed}
html[data-theme="light"] .provider-link small{color:#50637b}
html[data-theme="light"] .provider-link .provider-edition{color:#855a15}
html[data-theme="light"] .provider-details .provider-note{color:#4d5e72}
html[data-theme="light"] .episode-grid input{background:#fff;border-color:#94a6bc}
html[data-theme="light"] .episode-grid span{color:#354b64}
html[data-theme="light"] .episode-grid input:checked{background:var(--green);border-color:var(--green)}
html[data-theme="light"] .episode-grid input:checked+span{color:#fff}
html[data-theme="light"] .doomsday-banner{background:#f1f6ed;border-color:#a6b993}
html[data-theme="light"] .doomsday-banner::before{background:linear-gradient(95deg,#f1f7ecef,#f1f7ecc7)}
html[data-theme="light"] .doomsday-intro .eyebrow{color:#536e3e}
html[data-theme="light"] .doomsday-intro a{color:#45613d}
html[data-theme="light"] .doomsday-timer strong{color:#344f24}
html[data-theme="light"] .doomsday-timer small{color:#526747}
html[data-theme="light"] .doomsday-caption{color:#53624c}
html[data-theme="light"] .doomsday-context{background:#edf5e9;border-color:#83a661;color:#344b2c}
html[data-theme="light"] :is(.doomsday-context a,.doomsday-reason){color:#426926}
html[data-theme="light"] .credits-info h4{color:#76602c}
html[data-theme="light"] .credits-info .small{color:#5b6d83}
html[data-theme="light"] .credits-warning{color:#835719!important}
html[data-theme="light"] :is(.calendar-panel,.history-panel,.history-run,.auto-plan){border-color:#b7c5d6}
html[data-theme="light"] :is(.calendar-panel>summary span,.history-panel>summary span){color:#52667f}
html[data-theme="light"] .calendar-day{background:#fff;border-color:#b3c1d2;color:#344a66}
html[data-theme="light"] .calendar-day.today{border-color:#377b5d;box-shadow:inset 0 0 0 1px #377b5d}
html[data-theme="light"] .calendar-day.selected{background:#ddedd6;color:#29471e;border-color:#6c9254}
html[data-theme="light"] .calendar-event{background:#fff;border-color:#b2c0d1}
html[data-theme="light"] .calendar-event-actions a{color:#116c69}
html[data-theme="light"] .weekday-picker label{background:#fff;border-color:#9dafc5;color:#344a66}
html[data-theme="light"] .weekday-picker input{accent-color:var(--green)}
html[data-theme="light"] #notebookStatus{color:var(--muted)}
html[data-theme="light"] :is(.install-status,#voiceTarget){background:#edf2f7;color:#33475e}
html[data-theme="light"] .install-platforms [aria-pressed=true]{background:#e7f4eb;color:#226641;border-color:#5f9475}

/* Public scores and private notes remain visually separate in both themes. */
html[data-theme="light"] .community-badge button{background:#fff6e5c7;color:#68450f;box-shadow:inset 0 0 0 1px #a78c5733}
html[data-theme="light"] .community-badge .community-opinions-button{background:transparent;color:#4f6178}
html[data-theme="light"] .entry.has-art .community-badge .community-opinions-button{color:#293f56;text-shadow:0 1px 2px #ffffffe6,0 0 6px #ffffffb3;box-shadow:none}
html[data-theme="light"] .community-badge.has-own-rating .community-rating-button{box-shadow:inset 0 -2px #a67b2b}
html[data-theme="light"] .community-stars{color:#887757}
html[data-theme="light"] .community-stars-fill{color:#98630c}
html[data-theme="light"] .community-dialog{background:#fff;color:var(--text);border-color:#aab9cd;box-shadow:0 20px 90px #10274240}
html[data-theme="light"] .community-dialog::backdrop{background:#14243b77}
html[data-theme="light"] :is(.community-eyebrow,.community-summary,.community-my-average,.community-feedback){color:#865816}
html[data-theme="light"] .community-close{background:#eef2f7;border-color:#aabbd0;color:#354c68}
html[data-theme="light"] .community-tabs{border-color:#c5d0dd}
html[data-theme="light"] .community-tabs button{background:#f2f5f9;color:#465e7a;border-color:#a9bcd3}
html[data-theme="light"] .community-tabs button[aria-pressed=true]{background:#e6f4ec;border-color:#6d9e82;color:#225f3e}
html[data-theme="light"] .community-category{border-color:#d2dbe5}
html[data-theme="light"] .community-star{color:#8794a7}
html[data-theme="light"] .community-star.selected{color:#99650e}
html[data-theme="light"] :is(.community-star:hover,.community-star:focus-visible){background:#f8eedb}
html[data-theme="light"] :is(.community-dialog button:focus-visible,.community-dialog a:focus-visible,.community-badge button:focus-visible){outline-color:var(--green)}
html[data-theme="light"] :is(.community-category-value,.community-clear,.community-comment-label,.community-help){color:#4b607c}
html[data-theme="light"] .community-signin{background:#eaf6ef;color:#1c6542;border-color:#7aad90}
html[data-theme="light"] .community-opinion{background:#f6f8fb;border-color:#c4d0df}
html[data-theme="light"] .community-opinion-heading{color:#725522}
html[data-theme="light"] .community-opinion-heading small{color:#526782}
html[data-theme="light"] .community-opinion-text{color:#2f415a}
html[data-theme="light"] :is(.community-breakdown summary,.community-report summary){color:#4a6080}

@media(max-width:550px){
 html[data-theme="light"] .entry.has-art::before{background:linear-gradient(90deg,rgb(var(--art-wash)/.82),rgb(var(--art-wash)/.64) 55%,rgb(var(--art-wash)/.58))}
 .topbar{position:relative}
 .topbar-actions{position:static}
 .theme-popover,.locale-popover{right:10px;width:min(310px,calc(100% - 20px));max-width:calc(100% - 20px)}
 .theme-control-label{display:none}
 .theme-panel>summary{width:44px;padding:8px}
 .topbar-actions{gap:6px}
}
@media(max-width:390px){
 .topbar{padding-left:10px;padding-right:10px;gap:6px}
 .topbar .wordmark{font-size:18px;white-space:nowrap}
 .topbar-actions{gap:5px}
 .topbar-actions #installApp{padding:8px 7px;font-size:11px;white-space:nowrap}
 .locale-panel>summary{padding:8px 6px;gap:4px}
 .locale-chevron{display:none}
 .theme-popover,.locale-popover{max-width:calc(100% - 20px)}
}

/* Consent, standalone email account and public guide pages share the choice. */
html[data-theme="light"]{--panel:#fff;--mint:#176c48}
html[data-theme="light"] :is(.analytics-banner,.analytics-dialog){background:#fff;color:var(--text);border-color:#aab9cd;box-shadow:0 12px 40px #182c4526}
html[data-theme="light"] .analytics-actions button{background:#edf2f7;color:#2f435d;border-color:#9eb0c8}
html[data-theme="light"] .analytics-dialog a{color:#116c69}
html[data-theme="light"] .account section{background:#fff;border-color:#bdc9d7}
html[data-theme="light"] .account input{background:#fff;border-color:#9cabbc;color:var(--text)}
html[data-theme="light"] .account a{color:#116c69}
html[data-theme="light"] .account .muted{color:var(--muted)}
html[data-theme="light"] .intro{color:#415367}
html[data-theme="light"] :is(.button,.skip){background:var(--green);color:#fff}
html[data-theme="light"] .guide-nav [aria-current=page]{background:#e7f4ec;color:#225f3e;border-color:#6d9e82}
html[data-theme="light"] li.card{background:linear-gradient(120deg,#fff,#f2f5f9)}
html[data-theme="light"] :is(.extra,.notice){color:#805314}
