.theme-picker{display:inline-flex;align-items:center;gap:6px;margin:0;color:var(--muted);flex-shrink:0}
.theme-picker select{margin:0;min-height:34px;width:104px;padding:5px 8px;font-size:11px;border-radius:8px}
.theme-picker>span{font-size:10px}
.item-photo{object-fit:cover;border-radius:inherit;max-width:100%;max-height:100%}
.item-thumb .item-photo{width:60px;height:60px}
.item-visual .item-photo{width:100%;height:100%;object-fit:cover}
.detail-art .item-photo{width:100%;height:100%;object-fit:contain;background:var(--panel-2)}
.photo-upload{padding:16px;border:1px dashed var(--line);border-radius:10px;margin:14px 0 20px;background:var(--panel-2)}
.photo-upload label{margin-bottom:8px}.photo-upload .form-hint{margin:8px 0 12px}
.photo-upload input[type=file]{padding:9px;line-height:1.5}
.photo-upload input[type=file]::file-selector-button{border:0;border-radius:5px;margin-right:12px;padding:8px;background:var(--line);color:var(--text);cursor:pointer}
.photo-preview{display:block;width:100%;max-width:360px;max-height:240px;object-fit:contain;border-radius:10px;background:var(--panel-2);margin:12px 0}
.publish-photo{margin-bottom:20px}.photo-upload [data-photo-error]{color:var(--red)}
:root[data-theme=light]{--bg:#f5f2ed;--sidebar:#fffdf9;--panel:#fffdfb;--panel-2:#eee9e1;--line:#d6cddc;--text:#292332;--muted:#62596c;--accent:#79531c;--gold:#815a1d;--red:#a3342c;color-scheme:light}
[data-theme=light] body{background:var(--bg);color:var(--text)}
[data-theme=light] .auth-shell{background:radial-gradient(ellipse at 20% 38%,#e7d9ee70,transparent 48%),radial-gradient(ellipse at 81% 64%,#eddfcc60,transparent 42%),#f5f2ed}
[data-theme=light] .sidebar{background:var(--sidebar)}
[data-theme=light] .topbar{background:#fffdf9ed;border-color:var(--line)}
[data-theme=light] .topbar .breadcrumb,[data-theme=light] .auth-header-note,[data-theme=light] .brand small{color:var(--muted)}
[data-theme=light] nav a{color:#65586e}
[data-theme=light] nav a:hover,[data-theme=light] nav a[aria-current]{background:#eee5f2;border-color:#d8c8df;color:#50315f}
[data-theme=light] label,[data-theme=light] .prose p,[data-theme=light] .prose li,[data-theme=light] .detail-description{color:#504757}
[data-theme=light] input,[data-theme=light] select,[data-theme=light] textarea{background:#fffefa;color:var(--text);border-color:#b9acbf}
[data-theme=light] input::placeholder,[data-theme=light] textarea::placeholder{color:#796d80}
[data-theme=light] .button{background:linear-gradient(110deg,#f0d298,#e2bb75);color:#35250f;border-color:#be924b;box-shadow:inset 0 1px #fff8,0 2px 8px #43301b0d}
[data-theme=light] .button.secondary{background:linear-gradient(120deg,#efe5f4,#e7dced);border-color:#bda4cc;color:#4a3156}
[data-theme=light] .button.ghost{background:transparent;border-color:#c6b8ce;color:#60466f;box-shadow:none}
[data-theme=light] .button.danger{color:#a3342c;border-color:#d5a09b;background:#fff0eb}
[data-theme=light] .pill{background:#e8e2ee;border-color:#c6b4d0;color:#5d3e6d}
[data-theme=light] .pill.gold,[data-theme=light] .pill.gray{background:#eee7da;color:#6c4d24;border-color:#cebd9f}
[data-theme=light] .avatar,[data-theme=light] .seller-initial,[data-theme=light] .stat-icon,[data-theme=light] .empty-icon{background:#ebe3ed;color:#674476}
[data-theme=light] .premium-teaser,[data-theme=light] .premium-plan{background:linear-gradient(120deg,#f6ead4,#f0e8f0);border-color:#c9af7d;color:#6c4b19}
[data-theme=light] .premium-teaser>span,[data-theme=light] .feature-list li{color:#63536a}
[data-theme=light] .market-hero,[data-theme=light] .achievement-hero,[data-theme=light] .daily-banner,[data-theme=light] .wallet-hero{background:radial-gradient(ellipse at top right,#e9d9b955,transparent 65%),linear-gradient(120deg,#f3e7d3,#ece5f1);border-color:#c8b493}
[data-theme=light] .hero-copy h2,[data-theme=light] .daily-banner h3,[data-theme=light] .achievement-hero h2,[data-theme=light] .premium-hero h1{color:#473347}
[data-theme=light] .hero-copy p,[data-theme=light] .daily-banner p,[data-theme=light] .wallet-label,[data-theme=light] .wallet-equivalent,[data-theme=light] .wallet-totals span{color:#6b5b6f}
[data-theme=light] .item-visual,[data-theme=light] .detail-art,[data-theme=light] .item-thumb{background:#ebe5dd}
[data-theme=light] .item-meta,[data-theme=light] .listing-price-row small,[data-theme=light] .listing-price-row .instant strong,[data-theme=light] .listing-bottom{color:#6b6071}
[data-theme=light] .quest-emblem{background:#e8d8b5;color:#765019}
[data-theme=light] .badge-card.earned{background:linear-gradient(145deg,#edf2e7,var(--panel));border-color:#a7b48d}
[data-theme=light] .progress{background:#e4dce8}
[data-theme=light] .info-box{background:#f7eedc;color:#6b5228;border-color:#d9c594}
[data-theme=light] .info-box.green,[data-theme=light] .flash{background:#eaf3e7;color:#365631;border-color:#afc6a5}
[data-theme=light] .flash.error{background:#fff0e7;color:#8b3829;border-color:#ddbaaa}
[data-theme=light] .tip-strip{color:#6b596c;border-color:#bba9bb}
[data-theme=light] .tip-strip strong,[data-theme=light] .page-footer>span:first-child{color:#54425d}
[data-theme=light] .auth-orbit,[data-theme=light] .orbit-tag{background:#eee5db;color:#6c4b24;border-color:#cbb79a}
[data-theme=light] .trust-row,[data-theme=light] .auth-footer,[data-theme=light] .auth-demo{color:#6c5a73}
[data-theme=light] .tour-card{background:linear-gradient(145deg,#fffefa,#f1eaf4);border-color:#bda47d;color:#302538;box-shadow:0 24px 90px #24132e38}
[data-theme=light] .tour-story .tour-card{background:radial-gradient(ellipse at top right,#e8d6ad45,transparent 75%),linear-gradient(145deg,#fffefa,#f1eaf4)}
[data-theme=light] .tour-card p{color:#5d4d67}
[data-theme=light] .tour-count,[data-theme=light] .tour-reveal,[data-theme=light] .tour-emblem{color:#7b5420}
[data-theme=light] .tour-progress{background:#d8ccdf}
[data-theme=light] .tour-spot{border-color:#f3d293}
[data-theme=light] .tour-error{color:#a3342c!important}
@media(max-width:600px){.theme-picker>span{display:none}.theme-picker select{width:88px;font-size:10px;min-height:34px}.topbar-actions{gap:8px}.topbar-actions .environment{display:none}.auth-header{gap:10px}.auth-header .theme-picker{margin-left:auto}.photo-upload{padding:12px}}

[data-theme=light] .positive{color:#346b35!important}
[data-theme=light] .negative{color:#a3342c!important}
[data-theme=light] .auth-story h1,[data-theme=light] .auth-card h2{color:var(--text)}
[data-theme=light] .auth-card{background:var(--panel);box-shadow:0 20px 70px #46324f20;border-color:var(--line)}
[data-theme=light] .auth-story h1 em{color:var(--accent)}
[data-theme=light] .auth-story p,[data-theme=light] .auth-card label,[data-theme=light] .auth-intro,[data-theme=light] .auth-security,[data-theme=light] .auth-paths{color:var(--muted)}
[data-theme=light] .auth-card-eyebrow,[data-theme=light] .auth-tabs a{color:#695675}
[data-theme=light] .auth-tabs{border-color:var(--line)}
[data-theme=light] .auth-tabs a[aria-current]{color:var(--accent);border-color:var(--accent)}
[data-theme=light] .auth-card input{background:#fffefa;box-shadow:none}
[data-theme=light] :is(.panel,.feature-card,.stat,.listing-card,.quest-card,.badge-card){background:var(--panel);border-color:var(--line);box-shadow:0 6px 20px #46324f0a}
[data-theme=light] :is(.panel-heading h2,.empty-state h3,.stat strong){color:var(--text)}
[data-theme=light] :is(.inventory-info p,.inventory-count small,.quota-note,.sidebar-links,.page-footer,.detail-description,.item-category,.quest-reward,.badge-card .earned-mark){color:var(--muted)}
[data-theme=light] :is(.listing-price-row strong,.premium-price,.quota-note strong){color:var(--accent)}
[data-theme=light] :is(.stat .stat-icon,.pill.purple){background:#ebe3ed;color:#674476;border-color:#c6b4d0}
[data-theme=light] :is(.tabs a,.panel-heading>a){color:var(--muted)}
[data-theme=light] .tabs a.active{color:var(--accent);border-color:var(--accent)}
[data-theme=light] :is(.xp-track,.progress){background:#e4dce8}
[data-theme=light] :is(.item-visual.camera,.item-visual.tool,.item-visual.chair,.item-visual.coffee,.item-visual.lamp,.item-visual.game,.item-visual.headphones,.item-visual.plant){background:#ebe5dd}
[data-theme=light] :is(.listing-bottom,.item-thumb,.detail-art,.sidebar-links,.player-card,.page-footer){border-color:var(--line)}
[data-theme=light] .empty-state{border-color:#b9acbf}
[data-theme=light] :is(nav a small,.tabs a small){background:#eee7da;color:#6c4d24}
