.appearance-control{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ink)}.appearance-control select{padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface,#fff);color:var(--ink);min-height:40px}.role-bar small{display:block;margin-top:5px}.role-bar #accountEntry{margin:0 0 0 auto}.identity-summary{border:1px solid var(--line);border-radius:10px;padding:4px 16px}.identity-summary>div{padding:14px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px;font-size:13px}.identity-summary>div:last-child{border:0}.identity-summary span{color:var(--muted);font-size:12px}.appearance-panel label{display:block;margin-bottom:8px;font-size:13px}#previewRole{display:none}
html[data-theme=dark]{color-scheme:dark;--green:#97d6b8;--ink:#e2ece6;--muted:#b1c0b5;--line:#3b5048;--surface:#1c2c27;--soft:#273b32;background:#111c18}
html[data-theme=dark] body,html[data-theme=dark] main{background:#111c18;color:var(--ink)}
html[data-theme=dark] :is(.sidebar,header,.role-bar,.listing,.panel,.feed-summary,.refine-filters,.search,.chat-layout,.chat-main,.inbox-row,dialog,.mobile-bottom-nav){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(input,select,textarea,.composer,.cp-handle){background:#14231d!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme=dark] :is(.secondary,.mobile-bottom-nav button,.inbox-tabs button:last-child){background:#20382e;color:#c5e4d3;border-color:var(--line)}
html[data-theme=dark] :is(.demo-note,.workspace,.distance-bar,.listing-review,.transaction-message,.chat-side,.embedded-listing,.pinned-rules,.community-tabs button,.inbox-tabs button,.filter-chips button,.detail-chips span,.access-tag,.listing-meta span:first-child,.coin-banner){background:var(--soft);color:#d0ded3;border-color:var(--line)}
html[data-theme=dark] :is(.primary,.community-tabs button.active,.inbox-tabs button.active,.mobile-bottom-nav button.active){background:#9ddbbb;color:#10291d}
html[data-theme=dark] :is(h1,h2,h3,.brand,.listing h3,.price,.stats b,.chat-header strong,.refine-filters label,.role-bar strong){color:#e4efe8}
html[data-theme=dark] :is(p,small,.listing-location,.seller,.listing-meta,.utility-row label,.utility-row>span,.role-bar,.filter-chips,.trust-row,.message p,.chat-side p,.panel details,.stats,.page-heading p,.empty,footer,.location-privacy){color:#b9c9be!important}
html[data-theme=dark] :is(.text-button,nav button,.channel-nav button,.demo-note button,.reply,.attach,.coin-banner button,.feed-summary button,.chat-side button){color:#adddbd}
html[data-theme=dark] nav button.active{background:#304c3d;color:#dcf0e2}
html[data-theme=dark] :is(.status-note,.away-banner){background:#2c3035;color:#c4c9cf!important}
html[data-theme=dark] :is(.listing-controls,.item-facts,.seller,.extra-nav,.chat-header,.composer,.audience-field,fieldset,footer,.trust-row){border-color:var(--line)}
html[data-theme=dark] :is(.categories button,.scope-switch button){color:#c0d5c6;border-color:#526859}
html[data-theme=dark] .categories button.active{background:#34543f;color:#e1f3e7}
html[data-theme=dark] :is(.inbox-row:hover,.panel .secondary:hover){background:#2a4235}
html[data-theme=dark] .save{background:#1c2c27;color:#d8eddf}
html[data-theme=dark] .save.saved{color:#ffc6ae}
html[data-theme=dark] .listing .tag{background:#1b332a;color:#dcecdf}
html[data-theme=dark] :is(#formError,#editError,#rangeError){color:#ffb7a0}
html[data-theme=dark] ::placeholder{color:#a0b1a6}
html[data-theme=dark] .hero :is(h1,p){color:#ecf4ec!important}
html[data-theme=dark] .hero-button{color:#234b3b}
@media(max-width:540px){.appearance-control>span{display:none}.header-actions{gap:8px}.appearance-control select{max-width:104px;font-size:13px!important}header{padding:0 12px}#breadcrumb{max-width:95px;line-height:1.5}.role-bar>div{flex:1;min-width:140px}.role-bar #accountEntry{font-size:12px}.header-actions .primary{font-size:12px;padding:8px}.identity-summary strong{font-size:13px}}

html[data-theme=dark] :is(#breadcrumb,#breadcrumb span,.preview-pill,.nav-label){color:#b7c8bc}html[data-theme=dark] .avatar{background:#375343;color:#e2f4e6}
/* Neutral alternatives share dark-mode contrast and component coverage. */
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]){--ink:#ededed;--muted:#bdbdbd;--line:#393939;--surface:#121212;--soft:#1d1d1d;--neutral-bg:#000;--neutral-input:#090909;background:var(--neutral-bg)}
html[data-resolved-appearance=charcoal]{--surface:#242424;--soft:#2e2e2e;--line:#484848;--neutral-bg:#181818;--neutral-input:#1b1b1b}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(body,main){background:var(--neutral-bg)}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(input,select,textarea,.composer,.cp-handle){background:var(--neutral-input)!important}
/* A field inside a framed box (the @ handle, the search bars) takes the frame's colour, so the two read as one box. */
html[data-theme=dark] :is(.cp-handle,.cm-hsearch,.cx-search,.search) input{background:transparent!important}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(.secondary,.mobile-bottom-nav button,.inbox-tabs button:last-child,.save,.listing .tag,.avatar){background:var(--soft);color:#e2e2e2}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(h1,h2,h3,.brand,.price,.stats b,.chat-header strong,.refine-filters label,.role-bar strong){color:#f2f2f2}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(p,small,.listing-location,.seller,.listing-meta,.utility-row label,.utility-row>span,.role-bar,.filter-chips,.trust-row,.message p,.chat-side p,.panel details,.stats,.page-heading p,.empty,footer,.location-privacy){color:#c2c2c2!important}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(#breadcrumb,#breadcrumb span,.preview-pill,.nav-label){color:#bdbdbd}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(.categories button,.scope-switch button){color:#d5d5d5;border-color:var(--line)}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) :is(nav button.active,.categories button.active,.inbox-row:hover,.panel .secondary:hover){background:#343434;color:#f4f4f4}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) .mobile-bottom-nav button.active{background:#9ddbbb;color:#10291d}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) .hero{background:#161616}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) .hero-art{background:radial-gradient(ellipse at 70% 40%,#7773,transparent 65%)}
html:is([data-resolved-appearance=black],[data-resolved-appearance=charcoal],[data-resolved-appearance=dark]) .floating-label{background:#222e;border-color:#555;color:#ddd}
