/* Semantic surfaces shared by all layouts, including standalone screens. */
:root{--theme-bg:#f5f8f5;--theme-surface:#fff;--theme-soft:#edf3ee;--theme-ink:#183327;--theme-muted:#52675c;--theme-line:#cbd8cf;--theme-focus:#49723e}
:root.dark{--theme-bg:#0b1715;--theme-surface:#15271f;--theme-soft:#263c31;--theme-ink:#edf5f0;--theme-muted:#bacbc0;--theme-line:#354c40;--theme-focus:#e5c78c}
html[data-theme],html[data-theme] body{background-color:var(--theme-bg);color:var(--theme-ink);color-scheme:inherit}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-surface);color:var(--theme-ink);cursor:pointer;font-size:24px;line-height:1;box-shadow:0 2px 8px #0001}
.theme-toggle:hover{background:var(--theme-soft)}
.theme-toggle:focus-visible{outline:3px solid var(--theme-focus);outline-offset:3px}
.theme-toggle-floating{position:fixed;inset-inline-end:20px;bottom:24px;z-index:60}
html.theme-error .wrap,html.theme-error .container,html.theme-error code{background:var(--theme-surface);color:var(--theme-ink);border-color:var(--theme-line)}
html.theme-error h1{color:var(--theme-ink)}
html.theme-error .footer{color:var(--theme-muted);border-color:var(--theme-line)}
html.light{--fm-ink:#183327;--fm-muted:#52675c;--fm-surface:#fff;--fm-line:#cbd8cf;--fm-gold:#805919}
html.light .fm-store,html.light .fm-admin{background:var(--theme-bg);color:var(--theme-ink);color-scheme:light}
html.light .fm-store header,html.light .fm-store footer{background:var(--theme-surface);border-color:var(--theme-line)}
html.light .fm-hero-inner{background:#eaf2e8;border-color:var(--theme-line)}
html.light .fm-hero p,html.light .fm-assurances{color:var(--theme-muted)}
html.light .fm-secondary,html.light .fm-assurances strong{color:var(--theme-ink)}
html.light .fm-primary{background:#e5c78c;color:#183327}
html.light .fm-admin .admin-panel,html.light .admin-icon-button,html.light .admin-feedback{background:var(--theme-surface);border-color:var(--theme-line);color:var(--theme-ink)}
html.light .fm-admin input:not([type=checkbox]):not([type=radio]):not([type=hidden]),html.light .fm-admin select,html.light .fm-admin textarea{background:var(--theme-surface);border-color:var(--theme-line);color:var(--theme-ink);color-scheme:light}
html.light .fm-admin input::placeholder,html.light .fm-admin textarea::placeholder{color:var(--theme-muted)}
html.light .nav-home,html.light .nav-group summary,html.light .nav-children a,html.light .profile-details dt{color:var(--theme-muted)}
html.light .nav-home svg,html.light .nav-group summary svg{color:#49723e}
html.light .nav-home:hover,html.light .nav-group summary:hover,html.light .nav-children a:hover,html.light .admin-icon-button:hover{background:var(--theme-soft);color:var(--theme-ink)}
html.light .admin-navigation [aria-current=page],html.light .admin-badge{background:#e6f0df;color:#305b26;border-color:#a7bf9b}
html.light .nav-children,html.light .profile-details,html.light .admin-locale{border-color:var(--theme-line)}
html.light .admin-feedback[data-error=true]{background:#fff1f2;color:#9f1239;border-color:#fda4af}
html.light ::-webkit-scrollbar-track{background:#edf3ee}
html.light ::-webkit-scrollbar-thumb{background:#a0b5a7}
html.dark .theme-invoice,html.dark .theme-invoice body{background:#0b1715;color:#edf5f0}
@media print{.theme-toggle{display:none!important}.theme-invoice,.theme-invoice body,.theme-invoice body>div{background:white!important;color:black!important;color-scheme:light!important}.theme-invoice *{border-color:#ddd!important}}
