/* Shared color roles. Dark uses each component's existing fallback verbatim. */
:root[data-theme="light"], :root[data-theme-default="true"] .ciravo-landing {
  --theme-canvas:#f6f4f0;
  --theme-surface:#fbf9f6;
  --theme-raised:#eeebe7;
  --theme-field:#f0ede9;
  --theme-text:#29252f;
  --theme-muted:#67616e;
  --theme-subtle:#756c7c;
  --theme-line:#dcd5df;
  --theme-link:#80348c;
  --theme-tint:#f0e4f1;
  --theme-action:#e9bfeb;
  --theme-action-ink:#35163c;
  --theme-error:#a42e4a;
  --theme-error-bg:#fae8eb;
  --theme-success:#28644c;
  --theme-shadow:none;
  --theme-scrim:#20182b59;
  --theme-photo-ink:#fff8ff;
  --theme-photo-scrim:#17111ab3;
  --theme-photo-clear:#17111a00;
  --theme-avatar:#74527f;
  --theme-color-scheme:light;
  --segment-track:#eeebe7;
  --segment-selection:#fffdfb;
  --canvas:var(--theme-canvas);--surface:var(--theme-surface);--surface-raised:var(--theme-raised);
  --hairline:var(--theme-line);--text-primary:var(--theme-text);--text-secondary:var(--theme-muted);--text-tertiary:var(--theme-subtle);
  --accent:var(--theme-action);--accent-text:var(--theme-link);--accent-tint:var(--theme-tint);--accent-ink:var(--theme-action-ink);
  --red:var(--theme-link);--muted:var(--theme-muted);--panel:var(--theme-surface);--line:var(--theme-line);
  --ui-surface:var(--theme-surface);--ui-field:var(--theme-field);--ui-border:var(--theme-line);--ui-muted:var(--theme-muted);--ui-accent:var(--theme-action);
}
/* Color is the only theme-dependent dimension; controls keep the existing geometry. */
.appearance-settings{margin:16px 0 24px;padding:16px;border-radius:14px;background:var(--theme-surface,#1b1b20);color:var(--theme-text,#f6f4f2)}
.appearance-settings label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;font:inherit}
.appearance-settings label>span{min-width:0}
.appearance-settings strong,.appearance-settings small{display:block}
.appearance-settings strong{font-size:.875rem;font-weight:600}
.appearance-settings small{font-size:.75rem;color:var(--theme-muted,#b3b1bb);margin-top:4px;line-height:1.5}
.appearance-settings select{flex:none;width:auto;min-height:44px;max-width:45%;padding:10px 12px;border:1px solid var(--theme-line,#45404c);border-radius:10px;color:inherit;background:var(--theme-field,#25252c);font:inherit;font-size:16px;color-scheme:var(--theme-color-scheme,dark)}
.appearance-settings select:focus-visible{outline:2px solid var(--theme-link,#e983ec);outline-offset:3px}
:root[data-theme="light"]{--theme-decoration:none}
/* Photo content keeps its own contrast; surrounding app surfaces use warm light tokens. */
:root[data-theme="light"] :is(.night-card,.night-detail-heading,.night-detail-toolbar){--night-muted:#e3dae9;--night-pink:#e9b5ed;--accent-text:#efb6f2}
:root[data-theme="light"] :is(.night-detail-heading,.night-detail-toolbar){color:var(--theme-photo-ink)}
:root[data-theme="light"] .creator-header{color:var(--theme-photo-ink);--party-bg:#f6f4f0;--party-muted:#e7dfed}
:root[data-theme="light"] .creator-header::before{background:linear-gradient(0deg,var(--theme-canvas),#20152545 30%,#20152580),url('../assets/create-party-hero.webp') 70% 45%/cover}
:root[data-theme="light"] :is(.circle-primary,.circle-editor-actions .circle-primary,.messages-social .chat-primary,.messages-social .chat-new,.chat-own,.chat-bubble.chat-own){background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme="light"] :is(.chat-avatar,.chat-message-avatar,.chat-header-avatar){color:var(--theme-photo-ink);background:var(--theme-avatar)}
:root[data-theme="light"] :is(#realMap,#deskMap,[data-location-map]) .leaflet-tile-pane{filter:none}
:root[data-theme="light"] :is(#realMap,#deskMap,[data-location-map]){background:var(--theme-raised)}
:root[data-theme="light"] :is(.map-tile-status,.leaflet-control-attribution){background:var(--theme-surface)!important;color:var(--theme-muted)!important}
:root[data-theme="light"] :is(.photo-map-label,.map-location-tag){color:var(--theme-photo-ink)}
:root[data-theme="light"] .lp-primary{background:var(--theme-action);color:var(--theme-action-ink)}
:root[data-theme="light"] :is(.lp-outline,.lp-ghost){color:var(--theme-link)}
:root[data-theme="light"] .night-detail-art::after{background:linear-gradient(180deg,#18101a15,#18101a55 55%,var(--theme-canvas))}
@media(prefers-contrast:more){:root[data-theme="light"]{--theme-line:#8e8195;--theme-muted:#514958}}
@media(prefers-reduced-transparency:reduce){:root[data-theme="light"]{--theme-scrim:#20182b99}}
:root[data-theme="light"] .creator-progress{color:var(--theme-text)}
:root[data-theme="light"] .creator-progress>i.active{background:var(--theme-link)}
:root[data-theme="light"] .circle-step-progress i{background:var(--theme-link)}
:root[data-theme="light"] :is(#onboarding,.desktop,.party-dialog,.circle-dialog,.messages-social) :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--theme-link);outline-offset:3px}
:root[data-theme="light"] :is(.photo-map-pin,.photo-map-pin.selected,.photo-map-pin i){box-shadow:none}
:root[data-theme="light"] .photo-map-pin{border-color:var(--theme-link)}
:root[data-theme="light"] :is(input[type=checkbox],input[type=radio],progress){accent-color:var(--theme-link)}

:root[data-theme="light"] .night-detail-heading{background:linear-gradient(180deg,var(--theme-photo-clear),var(--theme-photo-scrim) 22px,var(--theme-photo-scrim) calc(100% - 10px),var(--theme-photo-clear))}

[data-location-map]{background:var(--theme-raised,#1a1a1a)}
[data-location-map] .leaflet-bar a{background:var(--theme-surface,#1a1a1a);color:var(--theme-text,#f4f1ef);border-color:var(--theme-line,#363636)}
