/* The current layout stays intact; ui-theme avoids the legacy design-preview dark layout. */
.settings-page{max-width:980px;margin:0 auto;display:grid;gap:22px}.settings-page .panel-heading h1{font-size:29px}.settings-page .account-panel>.text-link{display:block;margin:18px 0}.settings-page .account-panel details{margin-top:24px}.settings-page .danger{margin-top:18px}.settings-page select{max-width:420px}
dialog.celebration-dialog{position:fixed;inset:110px 20px auto auto;margin:0;width:min(320px,calc(100vw - 32px));max-height:calc(100dvh - 140px);overflow:auto;padding:20px;border-radius:12px;box-shadow:0 12px 45px #10244240;text-align:center;z-index:150}dialog.celebration-dialog h2{font-size:22px;margin:12px 0}dialog.celebration-dialog img{width:96px;height:96px;margin:12px auto}dialog.celebration-dialog strong{font-size:20px;margin:10px 0}dialog.celebration-dialog .primary{margin-top:12px}.celebration-dialog .celebration-message{font-size:14px;line-height:1.65;margin:12px 0;color:var(--ink);overflow-wrap:anywhere}.celebration-dialog .celebration-close{min-height:30px;padding:5px 10px}
html[data-ui-theme=dark]{color-scheme:dark;--bg:#081624;--surface:#102338;--ink:#eff5ff;--muted:#aec0d7;--line:#233e59;--accent:#2b9dff;--on-accent:#fff;--gold:#e7b250;--card:#102236;--card-ink:#eff5ff;--map-empty:#3b516a;--map-visited:#2792ff}
html[data-ui-theme=dark] body{background:linear-gradient(120deg,#071523,#0d1e30);color:var(--ink)}
html[data-ui-theme=dark] :is(.header-shell,.new-header,.new-header .site-header,.account-dropdown,.language-menu,.language-options,.notification-dropdown,.celebration-dialog,.admin-sidebar){background:#0b1b2d;color:var(--ink);border-color:var(--line)}
html[data-ui-theme=dark] :is(.panel,.news-card,.city-card,.city-visit,.plan-card,.podium-card,.membership-card,.member-series-card,.profile-details,.home-profile-card,.home-profile-placeholder,.ranking-panel,.world-summary,.auth-form,.auth-single,.message-thread,.message-inbox,.messages-sidebar,.country-panel,.profile-panel,.about-page,.celebration-dialog){background:#102236;color:var(--ink);border-color:var(--line);--ink:#eff5ff;--muted:#aec0d7;--line:#233e59;--surface:#162e47;--card:#102236;--card-ink:#eff5ff}
html[data-ui-theme=dark] :is(input,textarea,select){background:#0c1e31;color:#eff5ff;border-color:#2b4662}html[data-ui-theme=dark] input::placeholder,html[data-ui-theme=dark] textarea::placeholder{color:#a3b6cf;opacity:1}
html[data-ui-theme=dark] :is(a,.text-link){color:#49adff}html[data-ui-theme=dark] :is(.brand,.main-nav a,.account-dropdown a,.site-footer .brand,.cover-copy a,.page-hero a){color:var(--ink)}html[data-ui-theme=dark] .page-hero a{color:white}
html[data-ui-theme=dark] :is(.button,.map-controls button,.map-zoom button,.language-switch summary,.notification-trigger,.message-icon){background:#132c46;color:#eff5ff;border-color:#2b4764;box-shadow:0 2px 6px #0002}
html[data-ui-theme=dark] :is(.button.primary,.button.primary:hover,.home-page .plan-premium .button){background:linear-gradient(120deg,#1398ff,#0677f6);color:white;border-color:#1c9cff}
html[data-ui-theme=dark] .button.danger{background:#622d39;border-color:#94515f;color:#fff}
html[data-ui-theme=dark] :is(.notice,.profile-conflict,.notification-preferences,.check-row,.ranking-controls,.journal-tabs,.profile-tabs,.classification-switch,.member-map-toolbar,.map-toolbar,.filter-row){background-color:#132b42;color:var(--ink);border-color:#294762}
html[data-ui-theme=dark] .notice.error{background:#402333;color:#ffd4dc;border-color:#79424f}
html[data-ui-theme=dark] :is(.local-banner,.preview-bar,.demo-session-bar){background:#122e48;color:#bfd6ed;border-color:#284660}
html[data-ui-theme=dark] :is(.quiet,small,.message-meta,.city-attribution,.field-save-status,.save-status){color:var(--muted)}
html[data-ui-theme=dark] :is(.country-option,.country-check,.classification-option,.ranking-table td,.journal-entry,.city-visit,.notification-item,.membership-card,.gift-history){border-color:var(--line)}
html[data-ui-theme=dark] :is(.country-option:hover,.city-card:hover,.city-search-results [role=option]:hover,.city-search-results [aria-selected=true],.messages-sidebar a.current,.messages-sidebar a:hover,.ranking-table tr.highlight,.ranking-table .is-you){background:#173651}
html[data-ui-theme=dark] :is(.city-search-results,.city-tag,.message-history,.map-stage,.member-map-stage,.profile-dashboard .member-map-stage,.home-profile-card .member-map-stage){background:#0d1f33;border-color:#294762}
html[data-ui-theme=dark] .message-bubble{background:#19314a;border-color:#2b4662;color:#eff5ff}html[data-ui-theme=dark] .message-bubble.mine{background:#0975d6;border-color:#178ced;color:#fff}html[data-ui-theme=dark] .message-bubble.mine .message-meta{color:#d1e6ff}
html[data-ui-theme=dark] :is(.map-outline,.map-neutral,.member-map-stage .profile-map-country){fill:#3c526b;stroke:#0e2134}html[data-ui-theme=dark] :is(.map-country.visited .map-outline,.member-map-stage .profile-map-country.visited){fill:#2792ff;stroke:#0e2134}html[data-ui-theme=dark] .map-country:hover .map-outline{fill:#80bcf9;stroke:#4cb4ff}html[data-ui-theme=dark] .map-country.visited:hover .map-outline{fill:#0b74da}html[data-ui-theme=dark] .map-country.selected .map-outline{stroke:#f6c96c}
html[data-ui-theme=dark] :is(.avatar-letter,.nav-avatar,.cover-avatar>span,.home-profile-card .home-profile-avatar){background:#1e4668;color:#cfeaff}
html[data-ui-theme=dark] :is(progress,.achievement-copy progress::-webkit-progress-bar){background:#233c55}html[data-ui-theme=dark] .achievement-copy progress::-webkit-progress-value{background:#229aff}
html[data-ui-theme=dark] .home-page :is(.builder-block,.builder-block.tone-ivory,.builder-block.tone-white){background:#091927;--ink:#eff5ff;--muted:#aec0d7;--line:#233e59;color:var(--ink)}
html[data-ui-theme=dark] .home-page :is(.builder-block.tone-deep,.builder-block.tone-mist,.builder-block.tone-forest){background:#0e2034;--ink:#eff5ff;--muted:#aec0d7;--line:#233e59;color:var(--ink)}
html[data-ui-theme=dark] .home-page :is(.builder-type-intro,.builder-type-achievements,.builder-type-community,.builder-type-closing){background-color:#0b1c2e}
html[data-ui-theme=dark] .home-page :is(.feature-lines>div,.future-plans article,.membership-showcase .plan-card){background:#102236;border-color:#233e59;color:#eff5ff;--ink:#eff5ff;--muted:#aec0d7;--line:#233e59}
html[data-ui-theme=dark] .home-page .plan-member .button{background:#193853;color:#b6dcff}html[data-ui-theme=dark] .plan-founding_premium{border-color:#b58b33}html[data-ui-theme=dark] .plan-vip{border-color:#7861d9}
html[data-ui-theme=dark] .tier-badge.tier-member{background:#234260;color:#b8d9ff}html[data-ui-theme=dark] .tier-badge.tier-vip{background:#392566;color:#dac6ff}html[data-ui-theme=dark] :is(.tier-badge.tier-premium,.tier-badge.tier-founding_premium){background:#533e16;color:#ffdb8b}
html[data-ui-theme=dark] :is(.social-pagination button,.rankings-filter,.admin-table thead,.ranking-table thead,.table-head,.chart-empty){background:#17324d;color:#d6e6ff;border-color:#2a4864}
html[data-ui-theme=dark] .admin-chart text{fill:#b3c8e2}html[data-ui-theme=dark] .demo-badge{background:#47391b;border-color:#a88436;color:#ffdf96}
@media(max-width:750px){dialog.celebration-dialog{inset:100px 16px auto auto}}
html[data-ui-theme=dark] .eyebrow{color:#adc5df}html[data-ui-theme=dark] .membership-identity strong{color:#e8f3ff}

/* Match the specific form selectors in redesign.css without changing their dimensions. */
html[data-ui-theme=dark] body:is(.club-app,.home-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),textarea,select){background:#0d2237;color:#eff5ff;border-color:#35536f;caret-color:#fff}
html[data-ui-theme=dark] body:is(.club-app,.home-page) :is(input,textarea)::placeholder{color:#a9bed6;opacity:1}
html[data-ui-theme=dark] body:is(.club-app,.home-page) input:-webkit-autofill,html[data-ui-theme=dark] body:is(.club-app,.home-page) textarea:-webkit-autofill,html[data-ui-theme=dark] body:is(.club-app,.home-page) select:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #0d2237 inset!important;-webkit-text-fill-color:#eff5ff!important;caret-color:#fff}
html[data-ui-theme=dark] body:is(.club-app,.home-page) :is(input,textarea,select):disabled{color:#b9c9dc;background:#152a40}

html[data-ui-theme=dark] .home-page .ranking-card{background:#102236;color:#eff5ff;border-color:#233e59;--ink:#eff5ff;--muted:#aec0d7;--line:#233e59;--surface:#173651}
html[data-ui-theme=dark] :is(.cover-avatar,.profile-avatar){background:#1e4668;color:#cfeaff}
html[data-ui-theme=dark] .home-page .ranking-card .ranking-avatar{background:#1e4668;color:#cfeaff}

/* Shared controls also used outside the main profile. */
html[data-ui-theme=dark] .notification-dropdown .notification-item{background:#173149;color:#eff5ff;border-left-color:#49adff}
html[data-ui-theme=dark] .notification-dropdown .notification-item.is-read{background:#10263b;color:#d6e4f4;border-left-color:transparent}
html[data-ui-theme=dark] .notification-dropdown .notification-item:is(:hover,:focus-visible){background:#23445f;color:#fff}
html[data-ui-theme=dark] .notification-dropdown .notification-item small{color:#b3c5dc}
html[data-ui-theme=dark] .social-tabs a{background:#10263b;color:#b9dcff;border-color:#35516b}
html[data-ui-theme=dark] .social-tabs a[aria-current=page]{background:#096dd0;color:#fff;border-color:#268ce9}
html[data-ui-theme=dark] .social-tabs a[aria-current=page] span{color:#fff;opacity:1}
html[data-ui-theme=dark] .social-tabs a:not([aria-current]):is(:hover,:focus-visible){background:#23445f;color:#fff}
html[data-ui-theme=dark] .social-pagination button:disabled{background:#152a40;color:#a1b1c5;border-color:#35516b;opacity:1}
html[data-ui-theme=dark] :is(.ranking-table,.admin-table) th{background:#17324d;color:#d6e6ff;border-color:#2a4864}
html[data-ui-theme=dark] .achievement-summary{background:#132b42;color:#eff5ff;border-color:#294762}
html[data-ui-theme=dark] .achievement-copy progress::-webkit-progress-bar{background:#233c55}
html[data-ui-theme=dark] :is(.classification-switch,.map-toolbar,.member-map-toolbar){background:transparent}
html[data-ui-theme=dark] .map-zoom-controls button{background:#173149;color:#eff5ff;border-color:#35516b}
html[data-ui-theme=dark] .map-zoom-controls button:not(:disabled):is(:hover,:focus-visible){background:#23445f;color:#fff}
html[data-ui-theme=dark] .map-zoom-controls button:disabled{background:#152a40;color:#a1b1c5;border-color:#35516b;opacity:1}
