/* Shared Enoma design tokens: company palette and personal light/dark view. */
html{
 --brand-primary:#193c34;--brand-strong:#112d27;--brand-accent:#d6c6a5;
 --app-bg:#f8f7f2;--app-surface:#ffffff;--app-text:#253c34;
 --app-muted:#68736c;--app-line:#e0e3da;--app-soft:#e9f1eb;
 color-scheme:light;
}
html[data-theme-preset=ocean]{--brand-primary:#194c75;--brand-strong:#113854;--brand-accent:#c4dceb}
html[data-theme-preset=royal]{--brand-primary:#57365d;--brand-strong:#3f2545;--brand-accent:#e6cce3}
html[data-theme-preset=terracotta]{--brand-primary:#814332;--brand-strong:#663225;--brand-accent:#f1d1b3}
html[data-theme-preset=charcoal]{--brand-primary:#343a40;--brand-strong:#23272c;--brand-accent:#dfc989}
html[data-mode=dark]{
 --app-bg:#111a19;--app-surface:#1c2927;--app-text:#edf3ef;
 --app-muted:#b7c7bc;--app-line:#344640;--app-soft:#243a34;
 --brand-primary:#a4cfb9;--brand-strong:#8ec1a6;
 color-scheme:dark;
}
html[data-mode=dark][data-theme-preset=ocean]{--brand-primary:#a6d1f4;--brand-strong:#86bee9}
html[data-mode=dark][data-theme-preset=royal]{--brand-primary:#dec5e9;--brand-strong:#cba9db}
html[data-mode=dark][data-theme-preset=terracotta]{--brand-primary:#e5ad94;--brand-strong:#da9278}
html[data-mode=dark][data-theme-preset=charcoal]{--brand-primary:#e4d0a8;--brand-strong:#d7ba85}
html[data-mode=dark] body{color:var(--app-text)}
/* Existing public page tokens */
html{--green:var(--brand-primary);--green-deep:var(--brand-strong);--ink:var(--app-text);--muted:var(--app-muted);--cream:var(--app-bg);--line:var(--app-line);--gold:var(--brand-accent);--white:var(--app-surface)}
/* Existing admin tokens */
html{--green-dark:var(--brand-strong);--green-soft:var(--app-soft);--ivory:var(--app-bg);--text:var(--app-text);--border:var(--app-line)}
html body{background:var(--app-bg);color:var(--app-text)}
html .header,html .login-area,html .sidebar,html .topbar,html .card,html .empty,html .management-panel,html .staff-card,html .role-card,html .quick-action,html .info-card,html .property-card,html .property-search{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
html .logo,html .brand-symbol,html .primary,html .button-green{background:var(--brand-primary);color:#fff}
html[data-mode=dark] .logo,html[data-mode=dark] .brand-symbol,html[data-mode=dark] .primary,html[data-mode=dark] .button-green{background:var(--brand-accent);color:#17241d}
html[data-mode=dark] .hero,html[data-mode=dark] .login-visual{background:#182d27;color:#f0f5f0}
html[data-mode=dark] .hero p,html[data-mode=dark] .login-visual p{color:#c9ddd0}
html[data-mode=dark] .nav-active,html[data-mode=dark] .side-note,html[data-mode=dark] .profile-icon,html[data-mode=dark] .phase,html[data-mode=dark] .card-icon,html[data-mode=dark] .pill{background:var(--app-soft);color:var(--app-text)}
html[data-mode=dark] .form-area input,html[data-mode=dark] .management-form input:not([type=checkbox]),html[data-mode=dark] .management-form select,html[data-mode=dark] .staff-actions select,html[data-mode=dark] .outline,html[data-mode=dark] .property-search select,html[data-mode=dark] .palette-tile{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
html[data-mode=dark] .mobile-bottom{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
html[data-mode=dark] .property-search,html[data-mode=dark] .property-search select{color:var(--app-text)}
html[data-mode=dark] .service-card,html[data-mode=dark] .property-card,html[data-mode=dark] .faq-list,html[data-mode=dark] .footer{color:var(--app-text);border-color:var(--app-line)}
html[data-mode=dark] .preview-button,html[data-mode=dark] .filter-buttons button,html[data-mode=dark] .contact-link{color:var(--app-text)}
html[data-mode=dark] p,html[data-mode=dark] .section-description{color:var(--app-muted)}
html[data-mode=dark] .auth-foot,html[data-mode=dark] .back,html[data-mode=dark] .help{color:var(--app-muted)}
html[data-mode=dark] .success-notice{background:#1f4235;color:#d9f4e3;border-color:#3d8060}
html[data-mode=dark] .alert{background:#472b2b;color:#ffe4de;border-color:#8c5050}
html .mode-switch{min-height:44px;border:1px solid var(--app-line);background:var(--app-surface);color:var(--app-text);border-radius:10px;padding:8px 12px;font-weight:700;white-space:nowrap}
html .mode-switch:focus-visible{outline:3px solid var(--brand-accent);outline-offset:3px}
.toast-container{position:fixed;z-index:1000;top:18px;right:18px;left:18px;display:flex;flex-direction:column;gap:9px;align-items:flex-end;pointer-events:none}
.enoma-toast{pointer-events:auto;width:min(100%,380px);background:var(--app-surface);color:var(--app-text);border:1px solid var(--app-line);border-left:5px solid var(--brand-primary);border-radius:14px;box-shadow:0 14px 40px #0003;padding:14px;display:flex;align-items:flex-start;gap:12px;animation:toast-enter .24s ease-out}
.enoma-toast[data-kind=error]{border-left-color:#bd5a51}
.enoma-toast strong,.enoma-toast small{display:block}.enoma-toast strong{font-size:14px}.enoma-toast small{font-size:12px;color:var(--app-muted);margin-top:3px;line-height:1.4}
.enoma-toast button{flex-shrink:0;background:none;border:0;color:inherit;font-size:22px;min-height:44px;min-width:44px;margin:-8px -8px -8px auto}
@keyframes toast-enter{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.enoma-loading[hidden]{display:none!important}
.enoma-loading{position:fixed;inset:0;z-index:1050;background:var(--app-bg);display:grid;place-items:center;text-align:center}
.loading-content{padding:28px;color:var(--app-text)}.loading-house{width:116px;height:95px;margin:auto;position:relative}
.loading-house:before{content:"";position:absolute;left:27px;top:0;width:60px;height:60px;border-left:9px solid var(--brand-primary);border-top:9px solid var(--brand-primary);transform:rotate(45deg);border-radius:4px;animation:roof-arrive .8s ease-out both}
.loading-house:after{content:"";position:absolute;left:30px;bottom:0;width:56px;height:47px;border:9px solid var(--brand-primary);border-top:0;border-radius:0 0 7px 7px;animation:walls-arrive .8s .15s ease-out both}
.loading-door{position:absolute;width:16px;height:29px;bottom:0;left:50px;background:var(--brand-accent);border-radius:4px 4px 0 0;z-index:1;animation:door-arrive .6s .4s ease-out both}
.loading-content h2{font-size:23px;letter-spacing:-.04em;margin:20px 0 4px}.loading-content p{font-size:13px}
@keyframes roof-arrive{from{opacity:0;transform:translateY(-25px) rotate(45deg)}to{opacity:1;transform:rotate(45deg)}}@keyframes walls-arrive{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}@keyframes door-arrive{from{opacity:0;transform:scaleY(0);transform-origin:bottom}to{opacity:1;transform:scaleY(1)}}
.branding-panel h2{margin-top:0;font-size:21px}.branding-panel p{color:var(--app-muted);font-size:13px}
.branding-panel .field-grid{display:grid;grid-template-columns:1fr;gap:15px;margin:16px 0 24px}
.branding-panel label{font-size:13px;font-weight:700}.branding-panel input:not([type=radio]):not([type=hidden]):not([type=file]){width:100%;min-height:48px;border:1px solid var(--app-line);background:var(--app-surface);color:var(--app-text);padding:10px 13px;border-radius:11px;margin-top:6px}
.brand-upload{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin:20px 0}
.brand-upload p{margin:4px 0 9px}.logo-preview{width:90px;height:90px;flex-shrink:0;background:var(--app-soft);border:1px solid var(--app-line);border-radius:17px;display:grid;place-items:center;overflow:hidden}
.logo-preview img{width:100%;height:100%;object-fit:contain}.logo-preview span{font:600 49px Georgia,serif;color:var(--brand-primary)}
.branding-panel .appearance-section{margin-top:35px}
.palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.palette-option{cursor:pointer;min-width:0}.palette-option input{position:absolute;opacity:0;width:1px;height:1px}
.palette-tile{display:block;padding:14px;border:2px solid var(--app-line);border-radius:14px;background:var(--app-surface);transition:border-color .15s}
.palette-option input:checked+.palette-tile{border-color:var(--brand-primary);box-shadow:0 0 0 2px var(--brand-accent)}
.palette-option input:focus-visible+.palette-tile{outline:3px solid var(--brand-accent);outline-offset:3px}
.palette-swatches{display:flex;gap:6px;margin-bottom:12px}.palette-swatches i{width:28px;height:28px;border-radius:9px;border:1px solid #0002}.palette-tile strong{font-size:12px}
.mode-choices{display:flex;gap:20px;flex-wrap:wrap}.mode-choices label{padding:10px 0;display:flex;gap:9px;align-items:center;min-height:44px}.mode-choices input{accent-color:var(--brand-primary)}
.appearance-preview{background:var(--app-bg);border:1px solid var(--app-line);border-radius:15px;padding:27px;margin:26px 0}.appearance-preview>span:first-child{font-size:10px;letter-spacing:2px;font-weight:800;color:var(--brand-primary)}.appearance-preview h3{font-size:25px;margin:13px 0 7px}.appearance-preview p{font-size:13px}.preview-action{display:inline-block;background:var(--brand-primary);color:#fff;border-radius:9px;padding:11px;font-weight:750;font-size:12px}
html[data-mode=dark] .preview-action{background:var(--brand-accent);color:#17241d}
.appearance-actions{display:flex;flex-wrap:wrap;gap:10px}.appearance-actions button{min-height:48px}
@media(min-width:650px){.branding-panel .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.palette-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.loading-house:before,.loading-house:after,.loading-door,.enoma-toast{animation:none!important}}

/* Logo image and consistent page controls */
.logo img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.auth-page .form-area>.mode-switch{display:block;margin:18px auto 0;max-width:180px}
html[data-mode=dark] .property-card .property-body,html[data-mode=dark] .property-search,html[data-mode=dark] .service-strip,html[data-mode=dark] .filter-buttons,html[data-mode=dark] .dialog-content,html[data-mode=dark] .dialog-body,html[data-mode=dark] dialog{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
html[data-mode=dark] .property-grid h3,html[data-mode=dark] .property-card .price,html[data-mode=dark] .faq h3,html[data-mode=dark] .footer a{color:var(--app-text)}
html[data-mode=dark] .side-note{background:var(--app-soft)}
html[data-mode=dark] .palette-tile{background:var(--app-surface);color:var(--app-text)}

/* CSP-safe preset swatches and confirmation dialog */
.swatch-primary.swatch-forest{background:#193c34}.swatch-accent.swatch-forest{background:#d6c6a5}
.swatch-primary.swatch-ocean{background:#194c75}.swatch-accent.swatch-ocean{background:#c4dceb}
.swatch-primary.swatch-royal{background:#57365d}.swatch-accent.swatch-royal{background:#e6cce3}
.swatch-primary.swatch-terracotta{background:#814332}.swatch-accent.swatch-terracotta{background:#f1d1b3}
.swatch-primary.swatch-charcoal{background:#343a40}.swatch-accent.swatch-charcoal{background:#dfc989}
.swatch-neutral{background:#f8f7f2}
.enoma-toast>span:first-child{font-size:21px}
.enoma-confirm{width:min(440px,calc(100% - 32px));max-height:90vh;padding:27px;border-radius:19px;border:1px solid var(--app-line);background:var(--app-surface);color:var(--app-text);box-shadow:0 24px 80px #0004}
.enoma-confirm::backdrop{background:#081b17a8;backdrop-filter:blur(3px)}
.enoma-confirm h2{font-size:23px;line-height:1.25}.enoma-confirm p{font-size:13px;color:var(--app-muted)}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:25px}
.confirm-actions button{min-height:44px}
@media(max-width:400px){.confirm-actions button{width:100%}}


/* Theme engine v2: root-level aliases override the original :root declarations.
   All light and dark site colours flow from three harmonised palette swatches. */
:root {
 --brand-primary:#193c34;--brand-secondary:#315c50;--brand-accent:#d6c6a5;
 --brand-strong:#112d27;--brand-caption:#193c34a6;
 --app-bg:#f8f7f2;--app-surface:#fff;--app-text:#253c34;--app-muted:#68736c;
 --app-line:#e0e3da;--app-soft:#e9f1eb;--section-bg:#eef0e8;
 --brand-on-primary:#fff;--brand-secondary-text:#315c50;
 --green:var(--brand-primary);--green-deep:var(--brand-strong);
 --green-dark:var(--brand-strong);--green-soft:var(--app-soft);
 --ink:var(--app-text);--text:var(--app-text);--muted:var(--app-muted);
 --cream:var(--app-bg);--ivory:var(--app-bg);--white:var(--app-surface);
 --line:var(--app-line);--border:var(--app-line);--gold:var(--brand-accent);
}
:root[data-theme-preset="forest"]{--brand-primary:#193c34;--brand-secondary:#315c50;--brand-accent:#d6c6a5;--brand-strong:#15312c;--app-bg:#f9fafa;--app-surface:#fff;--app-text:#182d28;--app-muted:#596862;--app-line:#dae2e0;--app-soft:#eaefee;--section-bg:#eff2f1;--brand-caption:#193c34b8;--brand-secondary-text:#27483f;}
:root[data-theme-preset="forest"][data-mode="dark"]{--brand-primary:#193c34;--brand-secondary:#315c50;--brand-accent:#d6c6a5;--brand-strong:#15302b;--app-bg:#17352f;--app-surface:#1b3732;--app-soft:#1e3a34;--section-bg:#18342f;--app-line:#36574e;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#a8bbb5;--brand-caption:#193c34b8;}
:root[data-theme-preset="ocean"]{--brand-primary:#194c75;--brand-secondary:#317c9d;--brand-accent:#e8c989;--brand-strong:#153e5e;--app-bg:#f9fbfc;--app-surface:#fff;--app-text:#183548;--app-muted:#596862;--app-line:#dae7ed;--app-soft:#eaf2f5;--section-bg:#eff5f7;--brand-caption:#194c75b8;--brand-secondary-text:#275f75;}
:root[data-theme-preset="ocean"][data-mode="dark"]{--brand-primary:#194c75;--brand-secondary:#317c9d;--brand-accent:#e8c989;--brand-strong:#153c5c;--app-bg:#174366;--app-surface:#1b4465;--app-soft:#1e4562;--section-bg:#184060;--app-line:#366c82;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#a8c8d6;--brand-caption:#194c75b8;}
:root[data-theme-preset="royal"]{--brand-primary:#57365d;--brand-secondary:#855b88;--brand-accent:#e8c5b3;--brand-strong:#452d4c;--app-bg:#fbfafb;--app-surface:#fff;--app-text:#372a3c;--app-muted:#596862;--app-line:#e9e1ea;--app-soft:#f3eff3;--section-bg:#f5f2f5;--brand-caption:#57365db8;--brand-secondary-text:#624866;}
:root[data-theme-preset="royal"][data-mode="dark"]{--brand-primary:#57365d;--brand-secondary:#855b88;--brand-accent:#e8c5b3;--brand-strong:#432c4a;--app-bg:#4b3052;--app-surface:#4b3352;--app-soft:#4a3651;--section-bg:#47304e;--app-line:#6f5674;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#ccbacd;--brand-caption:#57365db8;}
:root[data-theme-preset="terracotta"]{--brand-primary:#814332;--brand-secondary:#b16850;--brand-accent:#ead0a5;--brand-strong:#65372b;--app-bg:#fdfafa;--app-surface:#fff;--app-text:#4c3027;--app-muted:#596862;--app-line:#f1e4e0;--app-soft:#f7f0ee;--section-bg:#f9f3f1;--brand-caption:#814332b8;--brand-secondary-text:#81513f;}
:root[data-theme-preset="terracotta"][data-mode="dark"]{--brand-primary:#814332;--brand-secondary:#b16850;--brand-accent:#ead0a5;--brand-strong:#63362a;--app-bg:#6f3b2e;--app-surface:#6c3d30;--app-soft:#673f33;--section-bg:#663a2e;--app-line:#8d5f4e;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#dec0b5;--brand-caption:#814332b8;}
:root[data-theme-preset="charcoal"]{--brand-primary:#343a40;--brand-secondary:#5e6570;--brand-accent:#dfc989;--brand-strong:#2a3035;--app-bg:#fafafb;--app-surface:#fff;--app-text:#252c2e;--app-muted:#596862;--app-line:#e2e3e5;--app-soft:#eff0f1;--section-bg:#f2f3f4;--brand-caption:#343a40b8;--brand-secondary-text:#474f56;}
:root[data-theme-preset="charcoal"][data-mode="dark"]{--brand-primary:#343a40;--brand-secondary:#5e6570;--brand-accent:#dfc989;--brand-strong:#292f34;--app-bg:#2e3439;--app-surface:#30363b;--app-soft:#31383d;--section-bg:#2c3338;--app-line:#555d64;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#bbbec3;--brand-caption:#343a40b8;}
:root[data-theme-preset="navy"]{--brand-primary:#1d3151;--brand-secondary:#42658c;--brand-accent:#e4cba3;--brand-strong:#182943;--app-bg:#f9fafc;--app-surface:#fff;--app-text:#1a2736;--app-muted:#596862;--app-line:#dde3ea;--app-soft:#ecf0f4;--section-bg:#f0f3f6;--brand-caption:#1d3151b8;--brand-secondary-text:#334f69;}
:root[data-theme-preset="navy"][data-mode="dark"]{--brand-primary:#1d3151;--brand-secondary:#42658c;--brand-accent:#e4cba3;--brand-strong:#182841;--app-bg:#1b2c48;--app-surface:#1e2f48;--app-soft:#213249;--section-bg:#1b2c45;--app-line:#425d77;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#b0becf;--brand-caption:#1d3151b8;}
:root[data-theme-preset="teal"]{--brand-primary:#11565a;--brand-secondary:#328a87;--brand-accent:#f0c88a;--brand-strong:#0f4549;--app-bg:#f9fbfb;--app-surface:#fff;--app-text:#143a3b;--app-muted:#596862;--app-line:#daeae9;--app-soft:#ebf3f3;--section-bg:#eff6f5;--brand-caption:#11565ab8;--brand-secondary-text:#286966;}
:root[data-theme-preset="teal"][data-mode="dark"]{--brand-primary:#11565a;--brand-secondary:#328a87;--brand-accent:#f0c88a;--brand-strong:#0f4448;--app-bg:#114b4f;--app-surface:#144c4f;--app-soft:#194c4f;--section-bg:#12484c;--app-line:#377673;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#a9cecd;--brand-caption:#11565ab8;}
:root[data-theme-preset="burgundy"]{--brand-primary:#6b283e;--brand-secondary:#a45068;--brand-accent:#eac9bb;--brand-strong:#542234;--app-bg:#fcfafa;--app-surface:#fff;--app-text:#41232d;--app-muted:#596862;--app-line:#efe0e4;--app-soft:#f6eef0;--section-bg:#f8f1f3;--brand-caption:#6b283eb8;--brand-secondary-text:#784050;}
:root[data-theme-preset="burgundy"][data-mode="dark"]{--brand-primary:#6b283e;--brand-secondary:#a45068;--brand-accent:#eac9bb;--brand-strong:#522133;--app-bg:#5c2538;--app-surface:#5b283a;--app-soft:#572c3b;--section-bg:#562537;--app-line:#844e5e;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#d9b5c0;--brand-caption:#6b283eb8;}
:root[data-theme-preset="olive"]{--brand-primary:#46523a;--brand-secondary:#7a8963;--brand-accent:#dec69c;--brand-strong:#384231;--app-bg:#fbfbfa;--app-surface:#fff;--app-text:#2e382b;--app-muted:#596862;--app-line:#e7eae3;--app-soft:#f2f3ef;--section-bg:#f4f6f3;--brand-caption:#46523ab8;--brand-secondary-text:#5a684d;}
:root[data-theme-preset="olive"][data-mode="dark"]{--brand-primary:#46523a;--brand-secondary:#7a8963;--brand-accent:#dec69c;--brand-strong:#374130;--app-bg:#3d4834;--app-surface:#3e4936;--app-soft:#3e4938;--section-bg:#3a4534;--app-line:#68755b;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#c7cdbd;--brand-caption:#46523ab8;}
:root[data-theme-preset="indigo"]{--brand-primary:#343f78;--brand-secondary:#6477b6;--brand-accent:#d8c7eb;--brand-strong:#2a3461;--app-bg:#fafbfd;--app-surface:#fff;--app-text:#252e4a;--app-muted:#596862;--app-line:#e3e7f2;--app-soft:#f0f1f8;--section-bg:#f3f4f9;--brand-caption:#343f78b8;--brand-secondary-text:#4b5b87;}
:root[data-theme-preset="indigo"][data-mode="dark"]{--brand-primary:#343f78;--brand-secondary:#6477b6;--brand-accent:#d8c7eb;--brand-strong:#29335e;--app-bg:#2e3868;--app-surface:#303a67;--app-soft:#313c64;--section-bg:#2c3762;--app-line:#596993;--app-text:#f0f4f1;--app-muted:#b8c6c0;--brand-secondary-text:#bec6e0;--brand-caption:#343f78b8;}

/* Apply colors to existing page sections, never only the buttons */
:root .header,:root .topbar,:root .sidebar,:root .login-area{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
:root .services-section,:root .empty-state,:root .service-strip,:root .side-note{background:var(--section-bg);border-color:var(--app-line)}
:root .property-card,:root .property-search,:root .property-body,:root .management-panel,:root .staff-card,:root .role-card,:root .card,:root .empty,:root .quick-action,:root .dialog-content,:root dialog{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
:root .property-search select,:root .form-area input:not([type=hidden]),:root .management-form input:not([type=checkbox]),:root .management-form select,:root .staff-actions select{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
:root .main-nav a:hover,:root .text-link:hover,:root .brand-mark,:root .search-heading-icon,:root .service-card>svg,:root .check-list li:before,:root .image-tag em{color:var(--brand-primary);stroke:var(--brand-primary)}
:root .main-nav .nav-contact,:root .menu-toggle,:root .property-bottom,:root .steps-grid article,:root .footer-bottom,:root .service-card+article{border-color:var(--app-line)}
:root .hero-intro em,:root .about-copy>p:first-child,:root .steps-grid span,:root .service-number,:root .service-strip i,:root .service-strip span:before{color:var(--brand-secondary-text)}
:root .eyebrow>span{background:var(--brand-secondary)}
:root .contact,:root .workspace .hero,:root .login-visual{background:var(--brand-primary);color:var(--brand-on-primary)}
:root .contact h2,:root .contact h3,:root .contact-link,:root .workspace .hero h2,:root .login-visual h2{color:#fff}
:root .contact h2 em,:root .contact-symbol{color:var(--brand-accent)}
:root .contact .eyebrow,:root .contact>div>p:last-child,:root .contact-pending p,:root .workspace .hero p,:root .login-visual p{color:#e2eae5}
:root .filter-buttons button[aria-pressed=true],:root .button-green,:root .primary,:root .logo,:root .preview-action{background:var(--brand-primary);color:var(--brand-on-primary)}
:root .button-green:hover,:root .primary:hover{background:var(--brand-strong);color:#fff}
:root .image-caption{background:var(--brand-caption);color:#fff}
:root .service-strip{color:var(--app-muted)}
:root .image-tag{background:var(--app-surface);color:var(--app-text)}
:root .side-note,:root .phase,:root .card-icon,:root .profile-icon,:root .nav-active,:root .pill{background:var(--app-soft);color:var(--app-text)}
:root .nav-active{border-left:3px solid var(--brand-secondary)}
:root .mobile-bottom{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
:root .mobile-bottom svg{stroke:var(--brand-primary)}
:root .mode-switch,:root .outline,:root .palette-tile{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
:root .logo-preview{background:var(--app-soft)}
:root .appearance-preview{background:var(--app-bg);color:var(--app-text)}
:root .property-badge{background:#ffffffee;color:#22342f}
:root .photo-corner{background:#fff;color:var(--brand-primary)}
:root .preview-button{color:var(--brand-primary)}
:root .empty-card{background:var(--app-surface);color:var(--app-text)}
:root .palette-option input:checked+.palette-tile{border-color:var(--brand-secondary);box-shadow:0 0 0 2px var(--brand-accent)}
/* Dark mode keeps the selected company palette; it does not switch back to forest green. */
:root[data-mode=dark]{color-scheme:dark}
:root[data-mode=dark] body{background:var(--app-bg);color:var(--app-text)}
:root[data-mode=dark] body:not(.workspace):not(.auth-page) .hero{background:transparent;color:var(--app-text)}
:root[data-mode=dark] .property-card .property-body,:root[data-mode=dark] .property-search,:root[data-mode=dark] .service-strip,:root[data-mode=dark] .dialog-content,:root[data-mode=dark] .dialog-body,:root[data-mode=dark] dialog{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
:root[data-mode=dark] .property-grid h3,:root[data-mode=dark] .property-card .price,:root[data-mode=dark] .footer a,:root[data-mode=dark] .faq h3,:root[data-mode=dark] .image-tag,:root[data-mode=dark] .brand{color:var(--app-text)}
:root[data-mode=dark] .logo,:root[data-mode=dark] .brand-symbol,:root[data-mode=dark] .primary,:root[data-mode=dark] .button-green,:root[data-mode=dark] .preview-action{background:var(--brand-primary);color:#fff}
:root[data-mode=dark] .nav-active,:root[data-mode=dark] .side-note,:root[data-mode=dark] .profile-icon,:root[data-mode=dark] .phase,:root[data-mode=dark] .card-icon,:root[data-mode=dark] .pill{background:var(--app-soft);color:var(--app-text)}
:root[data-mode=dark] .contact,:root[data-mode=dark] .workspace .hero,:root[data-mode=dark] .login-visual{background:var(--brand-primary);color:#fff}
:root[data-mode=dark] .eyebrow,:root[data-mode=dark] .service-number,:root[data-mode=dark] .hero-intro em,:root[data-mode=dark] .steps-grid span,:root[data-mode=dark] .about-copy>p:first-child{color:var(--brand-secondary-text)}
:root[data-mode=dark] .management-copy p,:root[data-mode=dark] .property-search label>span,:root[data-mode=dark] .faq-list summary,:root[data-mode=dark] .filter-buttons button{color:var(--app-text)}
:root[data-mode=dark] .property-search select,:root[data-mode=dark] .form-area input,:root[data-mode=dark] .management-form input:not([type=checkbox]),:root[data-mode=dark] .management-form select,:root[data-mode=dark] .staff-actions select,:root[data-mode=dark] .outline,:root[data-mode=dark] .palette-tile{background:var(--app-surface);color:var(--app-text);border-color:var(--app-line)}
:root[data-mode=dark] .service-card>svg{stroke:var(--brand-secondary-text)}
:root[data-mode=dark] .filter-buttons button[aria-pressed=true]{background:var(--brand-primary);color:#fff}
:root[data-mode=dark] .services-section,:root[data-mode=dark] .empty-state,:root[data-mode=dark] .service-strip{background:var(--section-bg)}
/* Mobile and laptop share the same themed surfaces */
@media(max-width:640px){:root .mobile-bottom{background:var(--app-surface);box-shadow:0 -4px 22px #0001}}
.swatch-primary.swatch-forest{background:#193c34}.swatch-secondary.swatch-forest{background:#315c50}.swatch-accent.swatch-forest{background:#d6c6a5}
.swatch-primary.swatch-ocean{background:#194c75}.swatch-secondary.swatch-ocean{background:#317c9d}.swatch-accent.swatch-ocean{background:#e8c989}
.swatch-primary.swatch-royal{background:#57365d}.swatch-secondary.swatch-royal{background:#855b88}.swatch-accent.swatch-royal{background:#e8c5b3}
.swatch-primary.swatch-terracotta{background:#814332}.swatch-secondary.swatch-terracotta{background:#b16850}.swatch-accent.swatch-terracotta{background:#ead0a5}
.swatch-primary.swatch-charcoal{background:#343a40}.swatch-secondary.swatch-charcoal{background:#5e6570}.swatch-accent.swatch-charcoal{background:#dfc989}
.swatch-primary.swatch-navy{background:#1d3151}.swatch-secondary.swatch-navy{background:#42658c}.swatch-accent.swatch-navy{background:#e4cba3}
.swatch-primary.swatch-teal{background:#11565a}.swatch-secondary.swatch-teal{background:#328a87}.swatch-accent.swatch-teal{background:#f0c88a}
.swatch-primary.swatch-burgundy{background:#6b283e}.swatch-secondary.swatch-burgundy{background:#a45068}.swatch-accent.swatch-burgundy{background:#eac9bb}
.swatch-primary.swatch-olive{background:#46523a}.swatch-secondary.swatch-olive{background:#7a8963}.swatch-accent.swatch-olive{background:#dec69c}
.swatch-primary.swatch-indigo{background:#343f78}.swatch-secondary.swatch-indigo{background:#6477b6}.swatch-accent.swatch-indigo{background:#d8c7eb}


/* Three-colour theme preview shows the same surfaces used by the website */
.palette-tile small{display:block;color:var(--app-muted);font-size:10px;font-weight:500;margin-top:5px}
.palette-swatches i{flex:1;min-width:0;height:30px;max-width:43px}
.appearance-preview{overflow:hidden;padding:0}
.appearance-preview>span:first-child{display:block;padding:17px 21px;border-bottom:1px solid var(--app-line)}
.preview-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 21px;background:var(--app-surface);border-bottom:1px solid var(--app-line)}
.preview-top strong{font:600 19px Georgia,serif;color:var(--app-text)}
.preview-top>span{font-size:10px;color:var(--app-muted)}
.preview-hero{background:var(--brand-primary);color:#fff;padding:24px 22px}
.preview-hero h3{font:400 clamp(25px,4vw,37px)/1.15 Georgia,serif;margin:0 0 8px;color:#fff}
.preview-hero p{font-size:12px;color:#e5eee8;margin:0 0 18px}
.preview-hero .preview-action{background:var(--brand-accent);color:#1a2822;display:inline-flex;min-height:40px;align-items:center;font-weight:800}
.preview-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px;background:var(--section-bg)}
.preview-bottom>div{background:var(--app-surface);border:1px solid var(--app-line);border-radius:12px;padding:17px;min-width:0}
.preview-bottom strong,.preview-bottom small{display:block}.preview-bottom strong{font-size:12px;color:var(--app-text)}.preview-bottom small{font-size:10px;color:var(--app-muted);margin-top:7px}
.preview-symbol{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--brand-secondary);color:#fff;margin-bottom:12px;font-size:20px}
@media(max-width:380px){.preview-top>span{display:none}.preview-bottom{grid-template-columns:1fr}}


/* ENOMA SIGNATURE — bright logo red, blue and clean white.
   Extra gradient hues echo the magenta-to-purple-to-blue roofline in the logo.
   All changes are scoped to this optional saved admin preset. */
:root[data-theme-preset="enoma_signature"] {
 --brand-primary:#2b79cb;
 --brand-secondary:#f34f56;
 --brand-accent:#ffffff;
 --brand-strong:#194d91;
 --brand-on-primary:#ffffff;
 --brand-secondary-text:#ad293e;
 --brand-caption:#164a83dd;
 --brand-gradient-magenta:#d42196;
 --brand-gradient-purple:#6845c4;
 --brand-gradient-blue:#2b79cb;
 --app-bg:#f6f9ff;
 --app-surface:#ffffff;
 --app-text:#192d49;
 --app-muted:#53667e;
 --app-line:#dce6f2;
 --app-soft:#edf4fd;
 --section-bg:#eef4fc;
}
:root[data-theme-preset="enoma_signature"][data-mode="dark"] {
 --brand-primary:#347cc7;
 --brand-secondary:#fa666c;
 --brand-accent:#ffffff;
 --brand-strong:#205895;
 --brand-on-primary:#ffffff;
 --brand-secondary-text:#ff9fa4;
 --brand-caption:#234c7de0;
 --brand-gradient-magenta:#b81b89;
 --brand-gradient-purple:#6845c4;
 --brand-gradient-blue:#347cc7;
 --app-bg:#0e1a2d;
 --app-surface:#192b44;
 --app-text:#f3f7ff;
 --app-muted:#c5d4e6;
 --app-line:#38516f;
 --app-soft:#223953;
 --section-bg:#172940;
}
:root[data-theme-preset="enoma_signature"] .preview-action {
 background:var(--brand-secondary);
 color:#172b46;
}
:root[data-theme-preset="enoma_signature"] .preview-hero {
 background:var(--app-surface);
 color:var(--app-text);
}
:root[data-theme-preset="enoma_signature"] .preview-hero h3 {
 background:linear-gradient(95deg,var(--brand-gradient-magenta) 0%,var(--brand-gradient-purple) 48%,var(--brand-gradient-blue) 100%);
 -webkit-background-clip:text;
 background-clip:text;
 -webkit-text-fill-color:transparent;
 color:var(--brand-gradient-purple);
}
:root[data-theme-preset="enoma_signature"] .preview-hero p {color:var(--app-muted)}
:root[data-theme-preset="enoma_signature"] .preview-symbol{background:var(--brand-secondary);color:#172b46}
:root[data-theme-preset="enoma_signature"] .palette-option input:checked+.palette-tile{
 border-color:#2b79cb;box-shadow:0 0 0 2px #f34f56;
}
.swatch-primary.swatch-enoma_signature{background:#2b79cb}
.swatch-secondary.swatch-enoma_signature{background:#f34f56}
.swatch-accent.swatch-enoma_signature{background:#ffffff;border:1px solid #b5c5d9!important}
:root[data-theme-preset="enoma_signature"] .palette-swatches i.swatch-enoma_signature.swatch-accent{border:1px solid #b5c5d9}
