/* Shared appearance controls. Layout, spacing and navigation stay consistent. */
.header-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
button.theme-toggle{width:36px;height:36px;min-width:36px;display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;flex-shrink:0}
.theme-toggle svg,.appearance-options svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;display:block}
.appearance-options{display:flex;gap:8px}
.appearance-options button{display:flex;align-items:center;gap:8px;min-height:42px}
.appearance-options button[aria-pressed=true]{background:#17472e;color:#b0f6cb;border-color:#31df87}
.appearance-panel h2{margin:0 0 6px}.appearance-panel p{margin:0 0 12px}
.brand .theme-toggle{margin-left:auto}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #299b64;outline-offset:3px}
html[data-theme=light]{color-scheme:light;background:#fff;--bg:#fff;--panel:#fff;--line:#c4cfc3;--muted:#374151;--green:#166534;--gold:#8b5b05}
html[data-theme=light] body{background:var(--bg);color:#111827}
html[data-theme=light] button{background:#fff;color:#1f2937;border-color:#ccdacf}
html[data-theme=light] button:hover{border-color:#166534}
html[data-theme=light] button.primary,html[data-theme=light] .active{background:#37c77a!important;color:#07351e!important}
html[data-theme=light] button.link{background:transparent;color:#166534}
html[data-theme=light] aside{background:#fff;border-color:var(--line)}
html[data-theme=light] .panel{background:#fff;border-color:var(--line)}
html[data-theme=light] input,html[data-theme=light] select,html[data-theme=light] textarea{background:#fff;color:#111827;border-color:#c4d3c8}
html[data-theme=light] input::placeholder,html[data-theme=light] textarea::placeholder{color:#4b5563;opacity:1}
html[data-theme=light] label{color:#1f2937}
html[data-theme=light] .filters input,html[data-theme=light] .plot-filters input{background:#fff}
html[data-theme=light] .chips button{background:transparent;color:#1f2937;border-color:#c8d6cd}
html[data-theme=light] .estate-shortcuts button{background:#fff;color:#1f2937}
html[data-theme=light] .lead-list{background:transparent;border-color:transparent}
html[data-theme=light] .avatar{background:#d5f1df;color:#0b673b}
html[data-theme=light] .badge{background:#dcf2e4;color:#126438}
html[data-theme=light] .due{color:#8b5b05}
html[data-theme=light] .overdue{color:#9f1239}
html[data-theme=light] .row-staff,html[data-theme=light] .prototype{color:#374151}
html[data-theme=light] dialog{background:#fff;color:#111827;border-color:#bccdc2;box-shadow:0 16px 65px #153c2730}
html[data-theme=light] dialog::backdrop{background:#18352455}
html[data-theme=light] .notice{background:#e7f5ec;border-color:#a5cfb5}
html[data-theme=light] .timeline{border-color:#b3cebd}
html[data-theme=light] #syncStatus,html[data-theme=light] .account-signout{color:#374151}
html[data-theme=light] #syncStatus.sync-error{color:#8b5b05}
html[data-theme=light] #syncStatus a{color:#166534}
html[data-theme=light] #toast{background:#174e31;color:#fff;box-shadow:0 6px 25px #173e2422}
html[data-theme=light] #bottom{background:#fff;border-color:#bdcec1;box-shadow:inset 0 1px 1px #f0f3ed,0 6px 24px #1a432222}
html[data-theme=light] #bottom button{background:transparent;color:#1f2937}
html[data-theme=light] #bottom button.active{background:#35cb7a!important;color:#05351b!important}
html[data-theme=light] .appearance-options button[aria-pressed=true]{background:#daf4e4;color:#085f34;border-color:#168851}
html[data-theme=light] .page-cover,html[data-theme=light] .property-placeholder{background:#fff;border-color:#c2d8c9;color:#38744b}
html[data-theme=light] .draft{background:#fff0cd;color:#79570b}
html[data-theme=light] .upload-zone{border-color:#83ab90;color:#386d48}
html[data-theme=light] .media-missing{background:#fff;color:#374151}
html[data-theme=light] .property-preview{background:#fff;border-color:#ceddd3}
html[data-theme=light] .property-preview input{background:#fff}
html[data-theme=light] .cta{background:#37c77a;color:#07351e}
html[data-theme=light] .checkline{color:#1f2937}
html[data-theme=light] .estate-inventory-statuses span{color:#1f2937}
html[data-theme=light] .estate-inventory-statuses small{color:#374151}
html[data-theme=light] .auth-card{background:#fff;border-color:#ccdacf;box-shadow:0 10px 40px #26492d0c}
html[data-theme=light] .auth-card p{color:#374151}
html[data-theme=light] .auth-card a{color:#166534}
html[data-theme=light] .auth-card .password-wrap button{background:transparent}
html[data-theme=light] .auth-card:focus-within{border-color:#6fa783}
html[data-theme=light] .heading button.add-lead-icon{background:#fff!important;color:#102f1b!important;box-shadow:0 0 0 1px #c8d7cd}
@media(max-width:700px){.header-actions{gap:5px}button.theme-toggle{width:32px;height:32px;min-width:32px;padding:6px}}

/* Readable text on white surfaces, including the account forms. */
html[data-theme=light] a:not(.cta){color:#166534}html[data-theme=light] .hint,html[data-theme=light] small,html[data-theme=light] #authMessage{color:#374151}html[data-theme=light] .auth-card label{color:#1f2937}html[data-theme=light] .role-metrics p{color:#374151;opacity:1}html[data-theme=light] .password-wrap button{color:#1f2937}
