:root[data-theme="day"]{--bg:#f6f3ed;--panel:#fff;--panel2:#efede7;--text:#171a1d;--muted:#626b70;--line:#c9c5bd;--accent:#e3ad22;--accent2:#8a6500;--danger:#b4232d;color-scheme:light}
:root[data-theme="dark"]{--bg:#15181c;--panel:#101419;--panel2:#1a2026;--line:#303840;color-scheme:dark}
[data-theme="day"] body{background:var(--bg);color:var(--text)}
[data-theme="day"] .topbar{background:rgba(255,255,255,.96);border-color:var(--line)}
[data-theme="day"] .brand{padding:5px 10px!important;border-radius:12px;background:#171a1d!important;color:#fff}
[data-theme="day"] .topbar nav button,[data-theme="day"] .section-head button,[data-theme="day"] .details-toolbar>div button{color:var(--text)}
[data-theme="day"] .topbar nav button:not(.primary){color:#20262a;font-weight:600}
[data-theme="day"] input,[data-theme="day"] select,[data-theme="day"] textarea{background:#fff;color:#171a1d;border-color:#bdb8ae}
[data-theme="day"] input::placeholder,[data-theme="day"] textarea::placeholder{color:#737c81}
[data-theme="day"] .card,[data-theme="day"] .listing,[data-theme="day"] .form-card,[data-theme="day"] .feature-strip div{background:#fff;color:#171a1d;border-color:var(--line)}
[data-theme="day"] .hero,[data-theme="day"] .marketplace-hero{background:radial-gradient(circle at 85% 10%,#f3df9d 0,transparent 36%),linear-gradient(145deg,#fff,#eef1ed);color:#171a1d}
[data-theme="day"] .hero-card,[data-theme="day"] .home-quick-search,[data-theme="day"] .mobile-location-panel{background:#fff;color:#171a1d}
[data-theme="day"] .mobile-nav{background:#fff;border-color:var(--line);box-shadow:0 -5px 20px #17201818}
[data-theme="day"] .mobile-nav button{color:#273137;font-weight:600}
[data-theme="day"] .form-card label,[data-theme="day"] .listing-place strong,[data-theme="day"] .photo-empty strong{color:#252b2f}
[data-theme="day"] .tag{background:#edf0ec;color:#384147}
[data-theme="day"] .listing-image,[data-theme="day"] .details-main-photo,[data-theme="day"] .details-no-photo,[data-theme="day"] .details-thumb,[data-theme="day"] .home-listing-photo,[data-theme="day"] .view-all-listing-photo{background:#171b1e;color:#d8dddf}
[data-theme="day"] .photo-thumb,[data-theme="day"] .photo-preview,[data-theme="day"] .inventory-photo-thumb{background:#e8ece8}
[data-theme="day"] .photo-actions button,[data-theme="day"] .manage-listing button,[data-theme="day"] .secondary-action,[data-theme="day"] .save-action,[data-theme="day"] .secondary-button{background:#fff;color:#20262a;border-color:#b9c2bd}
[data-theme="day"] .seller-name-link,[data-theme="day"] .listing-seller-link,[data-theme="day"] .seller-profile-actions button{color:#1d2428}
[data-theme="day"] .seller-profile-head,[data-theme="day"] .seller-profile-actions button,[data-theme="day"] .account-business-inventory-link{background:#fff;color:#171a1d}
[data-theme="day"] .account-business-inventory-link{background:linear-gradient(100deg,#fff8dc,#fff);border-color:#c9a734}
[data-theme="day"] .appearance-settings{background:#f6f1df;border-color:#d5bd68}
[data-theme="day"] dialog,[data-theme="day"] .business-dialog,[data-theme="day"] .sold-choice,[data-theme="day"] .seller-reviews-panel,[data-theme="day"] .duplicate-review-panel,[data-theme="day"] .review-dialog{background:#fff;color:#171a1d;border-color:#bcc5c0}
[data-theme="day"] dialog::backdrop,[data-theme="day"] .business-dialog::backdrop{background:#17201866}
[data-theme="day"] .business-dialog header button,[data-theme="day"] .review-close{color:#3d474c}
[data-theme="day"] .inventory-tabs,[data-theme="day"] .quick-photo-section,[data-theme="day"] .inventory-ai-upload,[data-theme="day"] .inventory-more[open]>div{background:#f3f5f2;color:#171a1d}
[data-theme="day"] .inventory-tabs button,[data-theme="day"] .inventory-search-row button,[data-theme="day"] .business-row-actions button,[data-theme="day"] .inventory-more summary{background:#fff;color:#283035;border-color:#bac3be}
[data-theme="day"] .inventory-summary-grid strong,[data-theme="day"] .analytics-grid strong,[data-theme="day"] .business-row-meta strong,[data-theme="day"] .business-form-grid label{color:#20262a}
[data-theme="day"] .chat-list,[data-theme="day"] .chat-panel,[data-theme="day"] .chat-list-item,[data-theme="day"] .chat-compose,[data-theme="day"] .chat-toolbar{background:#fff;color:#171a1d}
[data-theme="day"] .chat-list-item.selected,[data-theme="day"] .chat-message{background:#edf1ed;color:#171a1d}
[data-theme="day"] .fitment-modal,[data-theme="day"] .tire-compare-modal{background:#dfe3dfdd!important;color:#171a1d}
[data-theme="day"] .fitment-modal-shell,[data-theme="day"] .tire-compare-modal-shell,[data-theme="day"] .fitment-panel,[data-theme="day"] .tire-compare-panel{background:#fff!important;color:#171a1d!important;border-color:#b9c2bd!important;box-shadow:0 28px 80px #19211b33!important}
[data-theme="day"] .fitment-modal-brand{padding:.5rem 3rem .5rem .6rem;border-radius:11px;background:#171a1d;border-bottom:0}
[data-theme="day"] .fitment-modal-brand strong{color:#fff}[data-theme="day"] .fitment-modal-brand small{color:#c6cccf}
[data-theme="day"] .fitment-modal .fitment-form,[data-theme="day"] .tire-compare-modal .tire-compare-form,[data-theme="day"] .tire-size-entry,[data-theme="day"] .comparison-result,[data-theme="day"] .comparison-table,[data-theme="day"] .tire-compare-result{background:#f5f7f4!important;color:#171a1d!important;border-color:#c5cdc8!important}
[data-theme="day"] .fitment-modal .fitment-form select,[data-theme="day"] .tire-compare-modal .tire-size-boxes input{background:#fff!important;color:#171a1d!important;border-color:#aeb8b2!important}
[data-theme="day"] .fitment-modal .fitment-form label,[data-theme="day"] .fitment-modal .fitment-result-card>strong{color:#64439a}
[data-theme="day"] .fitment-modal .fitment-result,[data-theme="day"] .fitment-modal .fitment-result-card dl div{background:#fff;color:#171a1d;border-color:#c4ccc7}
[data-theme="day"] .fitment-modal .fitment-result-card dd,[data-theme="day"] .tire-compare-modal strong,[data-theme="day"] .tire-comparison-table{color:#171a1d}
[data-theme="day"] .tire-compare-modal .tire-compare-intro{background:linear-gradient(#fff 78%,transparent)}
[data-theme="day"] .tire-compare-modal .tire-comparison-table th,[data-theme="day"] .tire-compare-modal .tire-comparison-table td,[data-theme="day"] .tire-compare-modal .tire-compare-result>p,[data-theme="day"] .tire-compare-credit{color:#384147!important}
[data-theme="day"] .tire-compare-close,[data-theme="day"] .fitment-modal-close{background:#fff;color:#171a1d;border-color:#aeb8b2}
[data-theme="day"] .buyer-aware,[data-theme="day"] .account-listing-notice{background:#f2f5ed;color:#26312a}
[data-theme="day"] .quick-validation-errors,[data-theme="day"] .form-error{background:#fff0f1;color:#8f1822;border-color:#cf6670}
[data-theme="day"] .success{color:#176c37}
[data-theme="day"] .wheel-interest,[data-theme="day"] .three-d-card{background:#fff;color:#171a1d}
[data-theme="day"] .wheel-vote-actions button,[data-theme="day"] .view-tabs,[data-theme="day"] .view-tabs button{background:#f0f2ef;color:#20262a}
[data-theme="day"] img{color-scheme:normal}
[data-theme="day"] .hero-card,[data-theme="day"] .home-quick-search,[data-theme="day"] .mobile-location-panel,[data-theme="day"] .seller-profile-head,[data-theme="day"] .account-settings,[data-theme="day"] .listing-information,[data-theme="day"] .tire-details-card,[data-theme="day"] .inventory-tools,[data-theme="day"] .business-row,[data-theme="day"] .analytics-details-grid section,[data-theme="day"] .wheel-interest,[data-theme="day"] .three-d-card{background:#fff;color:var(--text);border-color:var(--line)}
.appearance-settings{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 18px;padding:16px;border:1px solid var(--line);border-radius:13px;background:var(--panel2)}
.topbar nav button:not(.primary){font-weight:600}.account-nav-link>span:last-child{display:flex;flex-direction:column;align-items:center;line-height:1.05}.account-nav-link small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:600;letter-spacing:.02em}.mobile-nav .account-nav-link{gap:1px}.mobile-nav .account-nav-link>span:last-child{font-size:12px}.mobile-nav .account-nav-link small{margin-top:1px;font-size:8px;line-height:1}
.account-settings-link{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:7px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font-size:12px;font-weight:800}.account-settings-link[hidden]{display:none!important}.account-settings-link:hover,.account-settings-link:focus-visible{border-color:var(--accent);color:var(--accent2);outline:none}.account-settings{scroll-margin-top:90px}.account-settings:focus{outline:2px solid var(--accent);outline-offset:4px}
.appearance-settings strong{display:flex;align-items:center;gap:8px}.appearance-settings p{margin:4px 0 0;color:var(--muted);font-size:12px}.appearance-settings label{display:grid;gap:5px;min-width:150px;font-size:11px;font-weight:800}.appearance-settings select{padding:10px}
@media(max-width:560px){.appearance-settings{align-items:stretch;flex-direction:column}.appearance-settings label{width:100%}}

/* Light-only homepage finish. This final theme layer intentionally leaves Dark untouched. */
[data-theme="day"] .home-marketplace-head h2,
[data-theme="day"] .marketplace-feature-grid h2,
[data-theme="day"] .how-tirenest-works h2,
[data-theme="day"] .how-tirenest-works h3{color:#20252a}
[data-theme="day"] .home-listing-tile{border-color:#d8dde1;background:#fff;box-shadow:0 7px 20px #25313b14}
[data-theme="day"] .home-listing-tile:hover,[data-theme="day"] .home-listing-tile:focus-visible{border-color:#d7a711;box-shadow:0 11px 26px #25313b20}
[data-theme="day"] .home-listing-photo{background:#f3f5f6;color:#68737a}
[data-theme="day"] .home-listing-photo:before{display:none}
[data-theme="day"] .home-listing-photo>.listing-photo-foreground,[data-theme="day"] .home-listing-photo>img{object-fit:contain;background:#f3f5f6}
[data-theme="day"] .marketplace-feature-grid article,[data-theme="day"] .marketplace-feature-grid article[data-home-tool]{border-color:#d9dee2;background:#fff;color:#20252a;box-shadow:0 7px 20px #25313b12}
[data-theme="day"] .marketplace-feature-grid p,[data-theme="day"] .marketplace-feature-grid article[data-home-tool] p{color:#626d74}
[data-theme="day"] .marketplace-feature-grid .feature-icon{background:#fff9e5;border-color:currentColor}
[data-theme="day"] .marketplace-feature-grid .fitment-icon{color:#7560dc}
[data-theme="day"] .marketplace-feature-grid .compare-icon{color:#237fc9}
[data-theme="day"] .marketplace-feature-grid .preview-icon{color:#a97900}
[data-theme="day"] .marketplace-feature-grid .message-icon{color:#168f81}
[data-theme="day"] .how-tirenest-works{border-color:#d9dee2;background:#fff;color:#20252a;box-shadow:0 8px 24px #25313b12}
[data-theme="day"] .how-tirenest-works article{border-color:#e2e6e9;background:#f7f8f8}
[data-theme="day"] .how-tirenest-works article>span{border-color:#d5a30c;background:#fff8dd;color:#9a7100}
@media(min-width:561px){[data-theme="day"] .marketplace-feature-grid article[data-home-tool]:hover{border-color:#d7a711;background:#fffdf7;box-shadow:0 11px 26px #25313b1c}}
