/* R93: readable theme tokens and measured category exceptions. No layout changes. */
html[data-theme="middle-dark"]{--text-muted:#d4e2ef;--text-soft:#e0eaf4;--muted:#d4e2ef}
html[data-theme="light"]{--text-muted:#4a5b70;--text-soft:#40546b;--muted:#4a5b70}
html[data-theme] .phonePicker__menu{width:min(320px,calc(100vw - 44px));right:auto;border-radius:16px;padding:8px;background:var(--surface);color:var(--text)}
html[data-theme] .phonePicker__option{min-height:42px;line-height:1.35;border-radius:10px}
html[data-theme="light"] .phonePicker__menu{background:#fff}
html[data-theme] .leaflet-control-attribution{background:#f8fafc!important;color:#25364b!important}
html[data-theme] .leaflet-control-attribution a{color:#075880!important}
html[data-theme="middle-dark"] .footer__brand{color:#f4dfb1!important}
html[data-theme="light"] .footer__brand{color:#655029!important}
html[data-theme] .vml-viewBtn.is-active{color:#07111d!important}
html[data-theme] .vml-finance{color:#9cafc9!important}
html[data-theme] .services-app-dock__item.is-active{background:#0c6c61!important;color:#fff!important}
html[data-theme] .barterAppDock__item--create{background:#6d38cc!important;color:#fff!important}
html[data-theme]:not([data-theme="light"]) :is(.kidsButton--primary,.sportButton--energy,.artButton--primary){color:#07111d!important}
html[data-theme]:not([data-theme="light"]) :is(.sportButton--energy,.artButton--primary) *{color:inherit!important}
html[data-theme="dark"] :is(.sportWorld,.hobbyWorld) .categoryHeader__link--primary{color:#07111d!important}
html[data-theme="middle-dark"] :is(.vehicle-market-liveStrip__seller,.vehicle-market-hero__segment small,.vml-pagination__jump span,.boat-map-legend span,.aircraftSpotlightTile span,.realestateField label,.realestateListingCard__facts span,.realestateFooter__links a,.realestateFooter__category,.jobs-field label,.jobs-eyebrow,.jobs-count,.jobs-card__kicker,.jobs-tag,.jobs-category-card em,.services-eyebrow,.services-hero__trustline span,.barterMetric span,.barterForm label>span,.barterCheck span,.restMiniTitle,.restMuted,.crowdStat span,.crowdMeta__amount span,.fashionEyebrow,.fashionMetricCard span,.fashionSection__head span,.sportAltitude span,.hobbyAltitude span,.animalsEyebrow,.dmResultCount,.authLogin__intro,.authLogin__divider span,.authAccess__fieldHelp,.authLogin__signup,.authLogin__signup a,.authAccess__footnote,.machineMapStatus,.motoMapToolbar__summary strong,.motoMapEmpty strong,.autoPartsOffer dt,.autoPartsOffer__tag,.autoPartsDealer li,.foodField>span,.foodMapStatus,.human-impact-tile span,.human-hero__trustline span,.human-passport-grid span,.gratisField span,.gratisHeroAssurance span){color:#e1ecf6!important}
html[data-theme="middle-dark"] :is(.restKicker,.crowdKicker,.kidsEyebrow,.kidsProductCard__foot a,.artEyebrow,.artSection__head a,.foodEyebrow,.humanitarian-kicker,.section-kicker,.gratisEyebrow,.gratisHeroModeLink,.gratisLink,.dmEyebrow){color:#f4dfb1!important}
html[data-theme="middle-dark"] :is(.btn--ghost,.elecBadge,.hgBadge,.fashionButton--soft,.animalsEmpty p,.animalsStory strong,.animalsStory p){color:#fff!important}
html[data-theme="middle-dark"] .catalogEntry{background:#26384b!important}
html[data-theme="light"] :is(.vml-price,.vehicle-market-liveStrip__price){color:#176437!important}
html[data-theme="light"] :is(.vml-specLabel,.vml-factKey,.vml-oldPrice,.vml-pagination__jump span,.boat-signal-card span,.fashionEyebrow,.crowdStat span,.dmResultCount){color:#46566a!important}
html[data-theme="light"] :is(.restKicker,.artEyebrow,.artSection__head a,.artJourneyCard>span,.machineKicker,.agriKicker,.realestateFooter__category){color:#755016!important}
html[data-theme="light"] :is(.crowdKicker,.foodEyebrow,.humanitarian-kicker,.human-hero__trustline strong,.section-kicker){color:#076047!important}
html[data-theme="light"] .human-live-badge{color:#9d174d!important}
html[data-theme="light"] :is(.services-eyebrow,.services-category-card em,.kidsEyebrow,.kidsSection__head a,.kidsProductCard__foot a,.gratisEyebrow,.gratisHeroModeLink,.gratisLink){color:#075880!important}
html[data-theme="light"] .kidsButton--primary{background:#075880!important;color:#fff!important}
html[data-theme="light"] .services-btn--primary{background:#164ca8!important;color:#fff!important}
html[data-theme="light"] .fashionButton--soft{color:#713e23!important}
html[data-theme="light"] :is(.homeV2ShortCard__caption small,.crowdChannelShort__content small,.sportGearCard__score small){color:#e7f1ff!important}
html[data-theme="light"] .crowdChips .tag{background:#e8f0f9!important;color:#203148!important}
/* Legacy vertical surfaces were permanently dark while their text switched to light. */
html[data-theme="light"] :is(.motoHero,.motoCard,.motoFilterPanel,.motoFilterAccordion,.motoFilterHeader,.rawCard,.rawGroup,.rawField,.animalsAdvanced,.animalsHero__stats,.animalsCount,.dmCategoryWorlds){background:#f2f6fb!important;color:#16253a!important}
html[data-theme="light"] :is(.motoEyebrow,.motoCard__meta,.motoMuted,.motoFilterAccordion small,.rawMuted,.rawGroup small,.rawField span,.animalsField span,.animalsHero__stats span){color:#40546b!important}
html[data-theme="light"] .motoHero h1,html[data-theme="light"] .motoFilterHeader h2{color:#16253a!important}
html[data-theme="light"] .motoTypeChip.is-active{color:#132943!important}
html[data-theme="light"] .categoryLiveStrip__eyebrow{color:#a61b32!important}
html[data-theme="middle-dark"] .categoryLiveStrip__eyebrow{color:#ffb7c4!important}
html[data-theme="light"] :is(.gratisPrimary,.categoryHeader--free .categoryHeader__link--primary){background:#075880!important;color:#fff!important}
html[data-theme="light"] .gratisHeroAssurance span{color:#40546b!important}
html[data-theme="light"] :is(.vml-finance,.crowdMeta__amount span,.agriMapPanel summary span){color:#40546b!important}
html[data-theme="dark"] .categoryHeader__link--primary{color:#07111d!important}
html[data-theme="light"] .boat-badge{background:#e2edf5!important;color:#243e50!important}
html[data-theme="light"] .realestatePortal__actions .btn--accent{background:#164ca8!important;color:#fff!important}
html[data-theme="light"] .animalsEyebrow{color:#235b35!important}
html[data-theme="light"] .dmPage :is(.dmEyebrow,.dmSectionHead span,.dmPromise>div>span){color:#075880!important}
html[data-theme="light"] .dmHero__trust>div{background:#e7eef8!important}
html[data-theme="light"] :is(.motoPanel,.motoFilterGroup,.motoAdvancedFilters,.motoAdvancedSearch){background:#f2f6fb!important}
html[data-theme="light"] :is(.motoCard h3 a,.motoCard__price,.motoFilterGroup h3){color:#16253a!important}
html[data-theme="light"] :is(.motoMapEmpty p,.motoAdvancedFilters small,.motoFilterHeader__actions a){color:#40546b!important}
html[data-theme="light"] .artTrustRail article>span{color:#755016!important}
html[data-theme="light"] .human-network-card>div>span{color:#076047!important}
html[data-theme="light"] body[data-category="free"] :is(.categoryHeader__link--primary,.categoryHeader__searchSubmit){background:#075880!important;color:#fff!important}
html[data-theme="middle-dark"] :is(.catalogEntry__guide summary,.services-stat span,.sportMetric span,.hobbyMetric span,.hobbySignal,.dmSectionHead span,.authLogin__panel .field label,.artHero__trust>span,.artLinkGrid a,.motoMapToolbar__summary span){color:#f5f9ff!important}
html[data-theme="middle-dark"] :is(.btn--ghost,.barterCheck,.elecBadge,.hgBadge,.animalsCount,.animalsAdvanced,.animalsStory,.agriCategoryCard){background-color:#30475d!important;color:#f5f9ff!important}
html[data-theme="middle-dark"] :is(.animalsField span,.animalsHero__stats span,.agriMapPanel summary span,.autoPartsOffer dt,.autoPartsDealer li,.human-help-strip__copy span,.human-passport-grid span,.foodField span){color:#f5f9ff!important}
html[data-theme="middle-dark"] :is(.human-network-card span,.section-kicker,.categoryLiveStrip__eyebrow){color:#fff1d3!important}
html[data-theme="middle-dark"] .crowdChips .tag{background:#31465a!important;color:#f5f9ff!important}
html[data-theme="middle-dark"] .categoryHeader .categoryHeader__link.categoryHeader__link--primary{color:#07111d!important}
html[data-theme="middle-dark"] body .btn.btn--ghost{background:#30475d!important;color:#fff!important}
html[data-theme="middle-dark"] .vehicle-market-hero__segment small{background:#30475d!important;color:#fff!important}
html[data-theme="middle-dark"] :is(.services-hero__stats span,.fashionStoreTile span,.hobbySectionHead span,.artCategoryGrid li a,.motoFilterHeader__actions a){color:#f5f9ff!important}
html[data-theme="middle-dark"] .catalogEntry__guide strong{color:#f5f9ff!important}
html[data-theme="middle-dark"] :is(.animalsHero__stats>div,.animalsCompliance__grid>div,.agriDiscoveryGrid>a){background:#30475d!important}
html[data-theme="middle-dark"] :is(.animalsHero__stats span,.animalsCompliance__grid p,.animalsCompliance__grid strong,.agriDiscoveryGrid small,.agriDiscoveryGrid strong){color:#f5f9ff!important}
html[data-theme="middle-dark"] .autoPartsSearchPanel>div>span{color:#f5f9ff!important}
html[data-theme="middle-dark"] :is(.fashionPromoCard span,.autoPartsSectionHead span){color:#f5f9ff!important}
html[data-theme="light"] :is(.dmHero__trust strong,.motoMapEmpty strong,.motoAdvancedFilters>summary>span,.motoRange strong,.motoCheck span){color:#16253a!important}
html[data-theme="light"] :is(.dmHero__trust span,.motoField>span,.motoMapToolbar__summary strong,.motoMapToolbar__summary span,.agriMapBox summary span){color:#40546b!important}
html[data-theme="light"] .dmPromise>article>span{color:#075880!important}
html[data-theme="light"] :is(.motoRange,.motoCheck){background:#f2f6fb!important}
html[data-theme="light"] .human-region-grid a span{color:#076047!important}
html[data-theme="light"] .motoRangeGrid>strong{color:#16253a!important}
html[data-theme] .notifyBubble{background:#6332b5!important;color:#fff!important}
/* Bound the page glow so middle-theme text remains readable over its brightest area. */
html[data-theme="middle-dark"] body.cone-theme-middle-dark{background:radial-gradient(circle at 72% -10%,rgba(170,199,226,.18),transparent 38%),linear-gradient(180deg,#33465a 0%,#2b3d50 46%,#243548 100%)!important}
html[data-theme="middle-dark"] :is(.vml-favBtn,.jobs-btn--ghost,.jobs-tag,.foodCategoryChips b){background:#30475d!important;color:#fff!important}
html[data-theme="middle-dark"] :is(.boat-tag--price,.restCardOpenCta,.communityBtn--primary,.dmMobileDiscoveryBar .dmButton>span,.agriMobileDiscovery button b){color:#07111d!important}
html[data-theme="middle-dark"] :is(.jobs-insight-grid span,.jobs-link,.jobs-worker-mini span,.services-category-card em,.fashionLookItem__copy span,.kidsEyebrow,.hobbyKicker,.animalsEyebrow,.animalsHero__copy>p,.communityEyebrow,.communityHero__copy>p,.communityIntelligenceDigest__head span,.communityPills a,.communityCardHead a,.agriKicker,.agriMobileDiscovery span,.agriDynamic>p,.autoPartsEyebrow,.autoPartsHero p,.autoPartsSectionHead a,.autoPartsSupplierPitch span,.autoPartsSupplierPitch li,.foodBrowseRail a,.human-action small,.human-entry-card small,.human-region-grid a span){color:#f5f9ff!important}
html[data-theme="middle-dark"] .jobs-mobile-filter-count{background:#30475d!important;color:#fff!important}
html[data-theme="middle-dark"] .communitySuggestion__avatar{background:#30475d!important;color:#fff!important}
html[data-theme="middle-dark"] .communitySuggestion__avatar span{color:#fff!important}
html[data-theme] .leaflet-control-zoom a{background:#f8fafc!important;color:#25364b!important}
html[data-theme] .leaflet-control-zoom a span{color:inherit!important}
html[data-theme="light"] :is(.jobs-eyebrow,.jobs-count,.restMiniTitle,.dmTypeCard small,.motoPanel--filters>strong,.agriMobileDiscovery span,.autoPartsEyebrow){color:#40546b!important}
html[data-theme="light"] :is(.realestateWordmark--footer .realestateWordmark__title,.artEyebrow){color:#655029!important}
html[data-theme="light"] .vml-favBtn.is-saved{color:#9d174d!important}
html[data-theme="light"] :is(.barterCategoryRail__track a>span,.sportDisciplineCard>b,.kidsSafetySteps strong,.artCategoryIcon,.foodCategoryChips b){color:#25364b!important}
html[data-theme="light"] :is(.communityEyebrow,.communityCard a,.communityCardHead a,.communityComposer__quickAction>span,.communityComposerMediaMenu__option>span){color:#075880!important}
html[data-theme="light"] .communityHero__trust strong{color:#40546b!important}
html[data-theme="light"] .communityPills a.is-active{background:#075880!important;color:#fff!important}
html[data-theme="dark"] :is(.vml-favBtn,.fashionButton--soft,.fashionStoreTile__logo,.communitySuggestion__avatar,.jobs-tag,.foodCategoryChips b){background:#30475d!important;color:#fff!important}
html[data-theme="dark"] :is(.boat-tag--price,.communityBtn--primary,.dmMobileDiscoveryBar .dmButton>span,.agriMobileDiscovery button b){color:#07111d!important}
html[data-theme="dark"] :is(.jobs-count,.jobs-eyebrow,.jobs-card__kicker,.jobs-worker-mini span,.crowdKicker,.autoPartsOffer dt,.foodField span,.human-help-strip__copy span,.human-region-grid a span,.fashionStoreTile__logo span,.communitySuggestion__avatar span){color:#f5f9ff!important}
html[data-theme] .dmMobileDiscoveryBar [data-digital-filter-count]{background:#30475d!important;color:#fff!important;border-radius:999px;padding:2px 6px}
html[data-theme] .dmMobileDiscoveryBar [data-digital-filter-count][hidden]{display:none!important}
html[data-theme="middle-dark"] body[data-category="jobs"] .jobs-btn.jobs-btn--ghost{background:#30475d!important;color:#fff!important}
html[data-theme="middle-dark"] body .btn.btn--primary.restCardOpenCta{background:#2f43a5!important;color:#fff!important}
html[data-theme="light"] body .vml-favBtn.is-saved{background:#fff!important;color:#9d174d!important}
html[data-theme="light"] .kidsSafetySteps strong{background:#25364b!important;color:#fff!important}
html[data-theme="light"] body .dmTypeCard{background:#f2f6fb!important;color:#16253a!important}
html[data-theme="light"] body .dmTypeCard strong{color:#16253a!important}
html[data-theme="light"] body .dmTypeCard small{color:#40546b!important}
html[data-theme="light"] .communityCard a.communitySuggestion__avatar{background:#30475d!important;color:#fff!important}
html[data-theme="light"] .communitySuggestion__avatar span{color:#fff!important}
html[data-theme="light"] body[data-category="kids-baby"] .kidsSafetySteps article>strong{background:#25364b!important;color:#fff!important}
html[data-theme="light"] body[data-category="digital"] .dmTypeCard .dmTypeCard__icon{background:#25364b!important;color:#fff!important}
html[data-theme="light"] .authAccess .req{color:#076047!important}
html[data-theme] .phonePicker__trigger .phonePicker__chevron{opacity:1!important;color:var(--text)!important}
html[data-theme="middle-dark"] .authAccess .authAccess__help{background:#30475d!important}
html[data-theme="middle-dark"] .authAccess__help :is(h3,p,a){color:#f5f9ff!important}
html[data-theme] body .homeV2MobileHeroActions__primary{background:#164ca8!important;color:#fff!important}
html[data-theme="light"] .homeV2MobileSectionKicker{color:#075880!important}
html[data-theme="light"] .coneSearchGroup__head span{color:#40546b!important}
html[data-theme="middle-dark"] :is(.homeV2MobileSectionKicker,.homeV2Empty){color:#f5f9ff!important}
html[data-theme] body[data-category="home"] .homeV2.homeV2--realisticV5 .homeV2MobileHeroActions__primary{background:#164ca8!important;color:#fff!important}
html[data-theme="light"] body[data-category="home"] .homeV2.homeV2--realisticV5 .homeV2MobileSectionKicker{color:#075880!important}
html[data-theme="middle-dark"] body[data-category="home"] .homeV2.homeV2--realisticV5 :is(.homeV2MobileSectionKicker,.homeV2Empty){color:#f5f9ff!important}
html[data-theme] body[data-category="home"] .homeV2ShortCard__caption{background:rgba(5,15,28,.9)!important}
html[data-theme] body[data-category="home"] .homeV2ShortCard__caption :is(small,span,strong){color:#f5f9ff!important}
