/* Browser appearance only. Email templates retain their own palette. */
:root { color-scheme: light; }
html[data-theme="dark"] {
 color-scheme: dark;
 --neutral-fff: #242320;
 --neutral-ffffff: #242320;
 --neutral-111: #f3efe8;
 --neutral-111111: #f3efe8;
 --neutral-333: #e4ded5;
 --neutral-555: #c9c2b9;
 --neutral-666: #c1bab1;
 --neutral-706a63: #bdb5ab;
 --neutral-f5f3f0: #1b1a18;
 --neutral-faf8f5: #211f1c;
 --neutral-e6e2dd: #4b4640;
 --neutral-ded9d1: #4b4640;
 --neutral-cfcfcf: #655f57;
 --text-primary: #f3efe8;
 --text-muted: #bdb5ab;
 --text-secondary: #bdb5ab;
 --bg-primary: #242320;
 --border-color: #4b4640;
 --field-bg: #242320;
 --field-focus-bg: #242320;
 --field-text: #f3efe8;
 --field-border: #655f57;
 --focus-ring: #d6bd95;
 --modal-panel-bg: #242320;
 --modal-panel-border: 1px solid #4b4640;
 --modal-title-color: #f3efe8;
 --modal-text-color: #c9c2b9;
 --modal-divider-color: #4b4640;
 --modal-close-bg: #242320;
 --modal-close-color: #f3efe8;
 --modal-close-border: 1px solid #4b4640;
 --error-text: #ffb4ab;
 --error-surface: #3b2523;
 --error-border: #a45f58;
}
html[data-theme="dark"] body { background: #1b1a18; color: #f3efe8; }
.tc-appearance { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:24px; }
.tc-appearance select { font:inherit; min-height:44px; padding:8px 32px 8px 12px; border:1px solid var(--field-border); border-radius:999px; background:var(--field-bg); color:var(--field-text); }

html[data-theme="dark"] {
 --neutral-444: #d2ccc3;
 --neutral-999: #aaa298;
 --neutral-3b3834: #e4ded5;
 --neutral-f8f6f3: #211f1c;
 --neutral-f0f0f0: #292723;
 --neutral-ddd: #514c45;
 --neutral-e2ddd6: #4b4640;
 --neutral-d8d2ca: #514c45;
 --neutral-f7f4f0: #211f1c;
 --neutral-f2f2f2: #292723;
 --neutral-efefef: #292723;
 --neutral-e4ded7: #514c45;
 --neutral-fefefe: #242320;
 --neutral-fafafa: #211f1c;
 --neutral-f8f8f8: #211f1c;
 --neutral-f7f7f7: #211f1c;
 --neutral-f5f2ed: #292723;
 --btn-danger-text: #fff;
}
html[data-theme="dark"] .site-footer { background: #211f1c; }
html[data-theme="dark"] select:not([multiple]):not(.tc-select--native) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f3efe8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}
html[data-theme="dark"] .tc-copy-list--checked > li::before { background-color: #555047; }

/* Legacy account and hosting surfaces use the same neutral palette. */
html[data-theme="dark"] {
 --neutral-faf9f7: #211f1c;
 --neutral-f1ebe6: #292723;
 --neutral-ebe2da: #34312c;
 --glass-surface: #292723;
 --glass-surface-strong: #34312c;
 --glass-surface-soft: #242320;
 --glass-border: #514c45;
 --glass-border-strong: #655f57;
 --glass-shadow: none;
 --glass-shadow-soft: none;
}
html[data-theme="dark"] .tag-success { color: #b7ddc5; }
html[data-theme="dark"] .tag-warning { color: #e5c99f; }
html[data-theme="dark"] .tag-danger { color: #f1b8b8; }
html[data-theme="dark"] .booking-relationship-tag--family,
html[data-theme="dark"] .booking-relationship-tag--available { background: #25342a; color: #b7ddc5; }
html[data-theme="dark"] .booking-relationship-tag--nonfamily { background: #373024; color: #e5c99f; }
html[data-theme="dark"] .booking-relationship-tag--blackout { background: #34312c; color: #d2ccc3; }
html[data-theme="dark"] .tc-list-row.active { background: #292723 !important; }
html[data-theme="dark"] .tc-list-row .tag { color: #d2ccc3 !important; border-color: #655f57 !important; }
html[data-theme="dark"] .tag-info { color: #a9c9ef; }
html[data-theme="dark"] .tag-status,
html[data-theme="dark"] .tag-highlight { color: #e5c99f; }
html[data-tc-input-method="keyboard"] .tc-appearance select:focus {
 outline: 2px solid var(--focus-ring, #9a8874) !important;
 outline-offset: 2px !important;
}

/* Route colors must remain legible on dark listing cards. */
html[data-theme="dark"] .transit-route--red { --transit-route-text: #e9aaaa; }
html[data-theme="dark"] .transit-route--green { --transit-route-text: #9fc9af; }
html[data-theme="dark"] .transit-route--blue { --transit-route-text: #adcbea; }
html[data-theme="dark"] .transit-route--light-blue { --transit-route-text: #a8cadc; }
html[data-theme="dark"] .transit-route--purple { --transit-route-text: #d0b6df; }
html[data-theme="dark"] .transit-route--orange { --transit-route-text: #ddb38f; }
html[data-theme="dark"] .transit-route--lime { --transit-route-text: #bdc89b; }
html[data-theme="dark"] .transit-route--brown { --transit-route-text: #d0b8ac; }
html[data-theme="dark"] .transit-route--gray { --transit-route-text: #d2ccc3; }
html[data-theme="dark"] .transit-route--dark-gray { --transit-route-text: #d2ccc3; }
html[data-theme="dark"] .transit-route--black { --transit-route-text: #d2ccc3; }
html[data-theme="dark"] .transit-route--pink { --transit-route-text: #e5b6ca; }
html[data-theme="dark"] .transit-route--magenta { --transit-route-text: #dbb2c7; }
html[data-theme="dark"] .transit-route--teal { --transit-route-text: #9bc4c5; }
html[data-theme="dark"] .transit-route--yellow { --transit-route-text: #d8c375; }

.preferences-page { max-width:var(--content-form-max); margin:var(--space-xl) auto; width:100%; }
.preferences-page .settings-row { flex-wrap:wrap; }
.preferences-page .settings-row__content { flex:1 1 220px; min-width:0; }
.preferences-page .tc-appearance { margin:0; flex:none; }
