/* Explicit device preference across public pages. Colors only: no geometry,
   content, image filters, authentication, payment or form behavior changes. */
html[data-account-theme=dark]{--public-bg:#151b23;--public-card:#202a36;--public-soft:#293645;--public-hover:#34485c;--public-ink:#edf2f8;--public-muted:#b8c6d5;--public-border:#52677c;--public-focus:#91b7d8;--public-error:#ffadbb;--public-success:#9be3bb;--public-yellow:#ffcc00;background:#151b23!important;color-scheme:dark;}
html[data-account-theme=dark] body.info-language-page,
html[data-account-theme=dark] body:has(>.services-page,>.service-detail-page,>.portfolio-page){--ink:#edf2f8;--muted:#b8c6d5;--soft:#293645;--card:#202a36;background:var(--public-bg);color:var(--public-ink);}
html[data-account-theme=dark] .info-language-page :is(.story-card,.value-card,.privacy-section,.info-card,.code-card,.guide-step,.support-search-panel,.faq-card){background:var(--public-card);border-color:var(--public-border);color:var(--public-ink);box-shadow:none;}
html[data-account-theme=dark] .info-language-page :is(.story-card,.value-card,.privacy-section,.info-card,.code-card,.guide-step) :is(h1,h2,h3,h4){color:var(--public-ink);}
html[data-account-theme=dark] .info-language-page :is(.story-card,.value-card,.privacy-section,.info-card,.guide-step) :is(p,li){color:var(--public-muted);}
/* Keep the featured middle card distinct, but never put pale text on a pale card. */
html[data-account-theme=dark] .about-page .value-card:nth-child(2){background:#293645;border-color:#61778e;}
html[data-account-theme=dark] .about-page .value-card:nth-child(2) p{color:#d4dfeb;}
html[data-account-theme=dark] .about-page .english-story{background:#293645;}
html[data-account-theme=dark] .about-page .english-story p{color:#d4dfeb;}
html[data-account-theme=dark] .info-language-page .guide-image-placeholder{background:var(--public-soft);color:var(--public-muted);border-color:#6f8297;}
html[data-account-theme=dark] .info-language-page :is(.page-language-switch,.home-link){background:var(--public-soft);border-color:var(--public-border);color:var(--public-muted);box-shadow:none;}
html[data-account-theme=dark] .info-language-page .page-language-switch button{color:var(--public-muted);}
html[data-account-theme=dark] .info-language-page .page-language-switch button.active{background:#40536a;color:var(--public-ink);box-shadow:none;}
html[data-account-theme=dark] .info-language-page .page-language-switch button:not(.active):hover,
html[data-account-theme=dark] .info-language-page .home-link:hover{background:var(--public-hover);color:var(--public-ink);}
html[data-account-theme=dark] .info-language-page :is(.location-hero,.contact-hero){background:var(--public-card);border-color:var(--public-border);box-shadow:none;}
html[data-account-theme=dark] .support-page :is(.support-search-label,.faq-question){color:var(--public-ink);}
html[data-account-theme=dark] .support-page :is(.faq-search-status,.faq-card p){color:var(--public-muted);}
html[data-account-theme=dark] .support-page :is(.faq-search-input,.faq-suggestions){background:var(--public-soft);border-color:var(--public-border);color:var(--public-ink);box-shadow:none;}
html[data-account-theme=dark] .support-page .faq-search-input::placeholder{color:#adbdce;}
html[data-account-theme=dark] .support-page .faq-search-input:focus{background:#243343;border-color:var(--public-focus);box-shadow:inset 0 0 0 1px var(--public-focus);}
html[data-account-theme=dark] .support-page .faq-suggestion{color:var(--public-ink);}
html[data-account-theme=dark] .support-page .faq-suggestion:is(:hover,:focus){background:#40536a;color:var(--public-ink);}
html[data-account-theme=dark] .support-page .faq-clear-btn{background:#40536a;color:var(--public-ink);box-shadow:none;}
html[data-account-theme=dark] .support-page .faq-clear-btn:hover{background:#4b637f;}
html[data-account-theme=dark] .support-page .faq-clear-btn::before,
html[data-account-theme=dark] .support-page .faq-clear-btn::after{background:var(--public-ink);}
html[data-account-theme=dark] .support-page .faq-card summary::after{background:linear-gradient(#d9e6f3 0 0) center/12px 2px no-repeat,linear-gradient(#d9e6f3 0 0) center/2px 12px no-repeat,#34485c;box-shadow:none;}
html[data-account-theme=dark] .support-page .faq-card[open] summary::after{background:linear-gradient(#172230 0 0) center/12px 2px no-repeat,#ffcc00;}
html[data-account-theme=dark] .support-page .faq-empty{background:var(--public-card);border-color:var(--public-border);color:var(--public-ink);}
html[data-account-theme=dark] .contact-page .contact-message-form :is(input,textarea){background:#19232f;border-color:#61768b;color:var(--public-ink);caret-color:var(--public-ink);box-shadow:none;}
html[data-account-theme=dark] .contact-page .contact-message-form :is(input,textarea)::placeholder{color:#b8c6d5;}
html[data-account-theme=dark] .contact-page .contact-message-form :is(input,textarea):focus{outline:0;outline-offset:0;border-color:var(--public-focus);box-shadow:inset 0 0 0 1px var(--public-focus);background:#19232f;}
html[data-account-theme=dark] .contact-page .contact-message-form :is(input,textarea)[aria-invalid=true]{border-color:var(--public-error);box-shadow:inset 0 0 0 1px var(--public-error);}
html[data-account-theme=dark] .contact-page .contact-message-form input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #19232f inset!important;-webkit-text-fill-color:#edf2f8!important;caret-color:#edf2f8;}
html[data-account-theme=dark] .contact-page .support-copy-feedback{background:#294936;color:#bcebd0;border-color:#527e64;}
html[data-account-theme=dark] .contact-page .whatsapp-card{background:#205a3e;border-color:#548469;}
html[data-account-theme=dark] .contact-page .whatsapp-card small{color:#cdebd9;}
/* Services overview and all four service-detail routes share this palette. */
html[data-account-theme=dark] :is(.services-page,.service-detail-page) :is(.back-link,.home-link,.language-switch){background:var(--public-soft);border-color:var(--public-border);color:var(--public-muted);box-shadow:none;}
html[data-account-theme=dark] :is(.services-page,.service-detail-page) :is(.back-link,.home-link):hover{background:var(--public-hover);color:var(--public-ink);}
html[data-account-theme=dark] :is(.services-page,.service-detail-page) .language-switch button{color:var(--public-muted);}
html[data-account-theme=dark] :is(.services-page,.service-detail-page) .language-switch button.active{background:#40536a;color:var(--public-ink);}
html[data-account-theme=dark] :is(.services-page,.service-detail-page) .language-switch button:not(.active):hover{background:var(--public-hover);color:var(--public-ink);}
html[data-account-theme=dark] .services-page :is(.service-card,.about-samer-section),
html[data-account-theme=dark] .service-detail-page :is(.detail-hero,.detail-section){background:var(--public-card);border-color:var(--public-border);color:var(--public-ink);box-shadow:none;}
html[data-account-theme=dark] .services-page .service-card:not(.is-disabled):hover{background:#273647;border-color:#c6ac52;}
html[data-account-theme=dark] .services-page .service-card.is-disabled{background:#202833;border-color:#435365;opacity:1;}
html[data-account-theme=dark] .services-page .service-card.is-disabled:hover{background:#202833;border-color:#435365;}
html[data-account-theme=dark] .services-page :is(.card-body h2,.about-samer-copy h2,.about-samer-copy .paragraph-stack p),
html[data-account-theme=dark] .service-detail-page .section-copy h2{color:var(--public-ink);}
html[data-account-theme=dark] .services-page :is(.card-subtitle,.card-summary p,.about-samer-copy .section-subtitle),
html[data-account-theme=dark] .service-detail-page :is(.section-subtitle,.paragraph-stack p,.detail-section li){color:var(--public-muted);}
html[data-account-theme=dark] :is(.services-page,.service-detail-page) :is(.card-brand,.section-eyebrow){color:#edd17d;}
html[data-account-theme=dark] .services-page .card-action:not(.disabled-action){background:#3c526b;color:var(--public-ink);}
html[data-account-theme=dark] .services-page .card-action.disabled-action{background:transparent;color:#adbdce;}
html[data-account-theme=dark] .service-detail-page :is(.hero-media,.section-media:not(.is-photo)){background:var(--public-soft);}
/* Portfolio cards and modal chrome, including tiles inserted after loading. */
html[data-account-theme=dark] .portfolio-page{color:var(--public-ink);}
html[data-account-theme=dark] .portfolio-page :is(.portfolio-lang,.portfolio-back,.detail-back,.portfolio-empty){background:var(--public-soft);border-color:var(--public-border);color:var(--public-muted);box-shadow:none;}
html[data-account-theme=dark] .portfolio-page .portfolio-lang button{color:var(--public-muted);}
html[data-account-theme=dark] .portfolio-page .portfolio-lang button.active{background:#40536a;color:var(--public-ink);}
html[data-account-theme=dark] .portfolio-page :is(.portfolio-back,.detail-back):hover,
html[data-account-theme=dark] .portfolio-page .portfolio-lang button:not(.active):hover{background:var(--public-hover);color:var(--public-ink);}
html[data-account-theme=dark] .portfolio-page :is(.portfolio-year-title,.detail-header h2){color:var(--public-ink);}
html[data-account-theme=dark] .portfolio-page .detail-header p{color:var(--public-muted);}
html[data-account-theme=dark] .portfolio-page :is(.portfolio-tile,.work-tile,.portfolio-stack-layer){background:var(--public-soft);}
html[data-account-theme=dark] .portfolio-page :is(.portfolio-tile,.work-tile) figcaption{background:#13202be6;color:var(--public-ink);}
html[data-account-theme=dark] .portfolio-page :is(.portfolio-tile,.work-tile) figcaption p{color:#c5d3e3;}
html[data-account-theme=dark] .portfolio-page :is(.portfolio-modal,.modal-media){background:#141e2a;}
html[data-account-theme=dark] .portfolio-page :is(.modal-close,.modal-nav){background:#2c3d50;color:var(--public-ink);box-shadow:none;}
html[data-account-theme=dark] .portfolio-page :is(.modal-close,.modal-nav):hover{background:#405971;}
html[data-account-theme=dark] .portfolio-page .modal-close::before,
html[data-account-theme=dark] .portfolio-page .modal-close::after{background:var(--public-ink);}
/* Shared secondary surfaces were previously still white outside the login page. */
html[data-account-theme=dark] #siteFooter .footer-map{background:#1e303b;}
html[data-account-theme=dark] #siteFooter :is(.footer-map-controls,.footer-map-credit,.footer-map-status){background:#202e3ded;border-color:var(--public-border);color:var(--public-muted);}
html[data-account-theme=dark] #siteFooter :is(.footer-map-fallback,.footer-map button){color:var(--public-muted);}
html[data-account-theme=dark] #siteFooter .footer-map button[aria-pressed=true]{background:#354f48;color:#f2f8f4;}
html[data-account-theme=dark] #siteFooter .footer-map button:hover:not([aria-pressed=true]){background:var(--public-hover);color:var(--public-ink);}
html[data-account-theme=dark] .customer-messages .messages-bubble[data-author=customer]{background:#284a3a;border-color:#4a8062;color:#eaf4ed;}
html[data-account-theme=dark] .customer-messages .messages-bubble[data-author=customer] time{color:#bbd9c7;}
html[data-account-theme=dark] body:not(:has(main))>a{color:#a8cbef;}
/* Standalone checkouts follow the same saved preference, not only the OS theme.
   QR codes, bank logos and their exact payment content are deliberately untouched. */
html[data-account-theme=dark]:has(.demo-layout){--bg:#151b23;--card:#202a36;--text:#edf2f8;--muted:#b8c6d5;--line:#52677c;--soft:#293645;--blue:#9cc5ff;--warn-bg:#383321;--warn:#f0db88;--green:#9be3bb;}
html[data-account-theme=light]:has(.demo-layout){--bg:#f7f8fa;--card:#fff;--text:#263444;--muted:#617085;--line:#e3e8ef;--soft:#f5f7fa;--blue:#2563cf;--warn-bg:#fff9df;--warn:#715b12;--green:#17815a;background:#f7f8fa!important;color-scheme:light;}
html[data-account-theme=dark]:has(.demo-layout) body{background:var(--bg);color:var(--text);}
html[data-account-theme=dark] .demo-layout .secondary{background:#346cbb;color:#fff;}
html[data-account-theme=light] .demo-layout .secondary{background:#2563cf;color:#fff;}
html[data-account-theme=dark] .demo-layout .currency-option:has(input:checked){background:#253b53;}
html[data-account-theme=dark] .demo-layout .payment-status[data-state=paid]{background:#244536;}
html[data-account-theme=dark] .demo-layout .checkout-error,
html[data-account-theme=dark]:has(.demo-layout) .noscript-message{color:var(--public-error);}
html[data-account-theme=dark]:has(.cliq-layout){--bg:#151b23;--panel:#202a36;--ink:#edf2f8;--muted:#b8c6d5;--line:#52677c;--field:#19232f;--soft:#3c3523;--warning:#f0d789;color-scheme:dark;}
html[data-account-theme=light]:has(.cliq-layout){--bg:#f4f6f8;--panel:#fff;--ink:#263440;--muted:#637589;--line:#dbe2e9;--field:#f8fafc;--soft:#fff7db;--warning:#72580d;background:#f4f6f8!important;color-scheme:light;}
html[data-account-theme=dark]:has(.cliq-layout) body{background:var(--bg);color:var(--ink);}
