/* Mid-tone graphite: two close variants retain the existing theme switch. */
:root,[data-bs-theme=light]{color-scheme:dark;--canvas:#55595f;--surface:#62666d;--surface-soft:#585d64;--ink:#f5f6f7;--muted:#e2e4e8;--line:#787d85;--accent:#f0f2f5;--accent-soft:#747b86;--bs-primary:#767e8b;--bs-primary-rgb:118,126,139;--bs-body-color:#f5f6f7;--bs-body-bg:#62666d;--bs-secondary-color:#e2e4e8;--bs-border-color:#787d85;--fabric-base:#55595f;--fabric-shadow:22,25,31;--fabric-light:157,162,171;--fabric-fold-opacity:.62;--sheen-color:213,220,231;--shadow:0 4px 24px #17191c12;--block-hover-shadow:0 9px 25px #17191c24}
[data-bs-theme=dark]{color-scheme:dark;--canvas:#42464c;--surface:#4d5259;--surface-soft:#444a52;--ink:#f0f2f4;--muted:#cdd1d8;--line:#666e79;--accent:#edf0f5;--accent-soft:#626c7a;--bs-primary:#727e8f;--bs-primary-rgb:114,126,143;--bs-body-color:#f0f2f4;--bs-body-bg:#4d5259;--bs-secondary-color:#cdd1d8;--bs-border-color:#666e79;--fabric-base:#42464c;--fabric-shadow:12,16,22;--fabric-light:127,137,151;--fabric-fold-opacity:.64;--sheen-color:201,214,234;--shadow:0 4px 24px #10131819;--block-hover-shadow:0 9px 25px #10131830}
body{color:var(--ink)}
.brand-mark,[data-bs-theme=dark] .brand-mark{background:linear-gradient(145deg,#858b94,#50565f);box-shadow:0 4px 12px #22252a24}
.portfolio-dot,.connection-label>span{background:#c3cbd6;box-shadow:0 0 8px #d5dfef20}
.profile-avatar,.topbar-avatar,[data-bs-theme=dark] .profile-avatar,[data-bs-theme=dark] .topbar-avatar{background:#7b828d;border-color:#969da7;color:#fff}
.btn-primary,[data-bs-theme=dark] .btn-primary{--bs-btn-bg:#596575;--bs-btn-border-color:#8d96a3;--bs-btn-hover-bg:#667284;--bs-btn-hover-border-color:#a2adbb;--bs-btn-active-bg:#697585;--bs-btn-active-border-color:#8f9baa;--bs-btn-disabled-bg:#727b88;--bs-btn-disabled-border-color:#838d9b;--bs-btn-color:#fff;--bs-btn-hover-color:#fff;--bs-btn-active-color:#fff;color:#fff;box-shadow:0 3px 10px #25282e24}
.form-control,.form-select{color:var(--ink);background-color:var(--surface-soft)}
.form-control::placeholder,[data-bs-theme=dark] .form-control::placeholder{color:#c0c5ce}
.form-control:focus,.form-select:focus{border-color:#b2bfce;box-shadow:0 0 0 3px #d3dfef24}
.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e1e5eb' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}
.form-check-input:checked{background-color:#8d99aa;border-color:#b4bfcd}
.theme-toggle{background:var(--surface-soft);color:var(--ink)}
.icon-button:hover{background:var(--accent-soft);color:#fff}
.nav-item.active{background:var(--accent-soft);color:#fff}
.nav-item:hover,.object-title:hover{color:#fff}
.object-cover,[data-bs-theme=dark] .object-cover{background:linear-gradient(125deg,#767d87,#515963)}
.object-cover svg{color:#c5cedb}
.object-type,[data-bs-theme=dark] .object-type{background:#555c66ee;color:#f3f5f8}
.tag{background:var(--accent-soft);color:#fff}
.empty-symbol{color:#c4cdd9}
.empty{background:radial-gradient(ellipse at 50% 30%,#8a94a533,transparent 65%),var(--surface)}
.table th{color:var(--muted)}
.auth-story,[data-bs-theme=dark] .auth-story{background:radial-gradient(ellipse at 80% 40%,#737b8755,transparent 65%),linear-gradient(150deg,#4e545d,#353b44 65%,#464d57)}
.auth-brand .brand-mark{background:#ffffff10;border-color:#ffffff24}
.auth-brand small,.story-content>p,.story-footer{color:#cbd0d8}
.story-content h1 span{color:#c7ced8}
.auth-story .eyebrow{color:#ced5df}
.auth-input>.icon,[data-bs-theme=dark] .auth-input>.icon{color:#cbd1db}
.auth-note>.icon{color:#c6ced9}
.auth-input .form-control{background:var(--surface-soft)}
.auth-main{background:transparent}
.arch-building{background:linear-gradient(120deg,#858d99,#555f6c);border-color:#c4ccd78c}
.arch-building:after{background:linear-gradient(110deg,#454e5a,#667280);border-color:#aab8cb55}
.building-roof{background:linear-gradient(45deg,#99a3b1,#bbc4d0)}
.building-windows{filter:grayscale(1)}
.arch-pin{background:#5a6472e6;border-color:#9ca9bc88;color:#edf2f8}
.arch-pin .icon{color:#e4ecf7}
.auth-footer,.app-footer{color:var(--muted)}
button:focus-visible,a:focus-visible{outline-color:#dce6f4}

:root,[data-bs-theme=dark]{--bs-link-color:#e2e9f4;--bs-link-hover-color:#fff;--bs-link-color-rgb:226,233,244;--bs-link-hover-color-rgb:255,255,255}
