/* Admin navigation and theme controls. */
.admin-icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex-shrink:0}.sidebar-menu .nav-icon{width:21px;height:21px;font-size:inherit}.admin-sidebar{padding-bottom:24px}.topbar-icon-button{display:inline-flex!important;align-items:center;justify-content:center;width:39px;height:39px;border:1px solid #e4e9e5;border-radius:9px;background:#fff;color:#64766a;cursor:pointer;padding:8px;font-size:inherit}.topbar-icon-button:hover{background:#eef4ef}.theme-sun{display:none}html[data-theme=dark] .theme-sun{display:block}html[data-theme=dark] .theme-moon{display:none}.profile-menu{position:relative}.profile-menu summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:5px 0}.profile-menu summary::-webkit-details-marker{display:none}.profile-menu summary>.admin-icon{width:15px;height:15px}.topbar-user-name{font-size:14px;font-weight:600;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-dropdown{position:absolute;right:0;top:calc(100% + 12px);z-index:80;min-width:240px;padding:8px;border:1px solid #e4e9e5;border-radius:12px;background:white;box-shadow:0 15px 50px #192f241a}.profile-dropdown-heading{padding:12px 14px;border-bottom:1px solid #e9ede9;margin-bottom:6px}.profile-dropdown-heading strong,.profile-dropdown-heading small{display:block}.profile-dropdown-heading strong{font-size:14px}.profile-dropdown-heading small{font-size:12px;color:#869389}.profile-dropdown a,.profile-dropdown button{display:flex;align-items:center;gap:12px;padding:12px 14px;width:100%;border:0;border-radius:7px;background:transparent;text-align:left;font:inherit;font-size:14px;color:inherit;cursor:pointer}.profile-dropdown a:hover,.profile-dropdown button:hover{background:#f2f6f2}.profile-dropdown .profile-logout{color:#b45d51}.profile-dropdown .admin-icon{width:19px;height:19px}.logout-dialog{max-width:420px;width:calc(100% - 36px);padding:30px;border:1px solid #e1e8e2;border-radius:16px;color:#2b4936;background:white;box-shadow:0 20px 80px #101b2633}.logout-dialog::backdrop{background:#0c1e1aa6;backdrop-filter:blur(3px)}.logout-dialog h2{font-size:24px;letter-spacing:-.6px;margin:18px 0 12px}.logout-dialog p{font-size:15px;color:#7d8b82;line-height:1.7}.logout-dialog-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:#f8ebe7;color:#ae6454}.logout-dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:25px}.dialog-cancel{font:inherit;font-size:14px;background:transparent;border:1px solid #dce4df;border-radius:6px;color:inherit;padding:10px 19px;cursor:pointer}.logout-dialog .button{font-size:14px}.admin-workspace{transition:margin-left .2s}.admin-sidebar{transition:transform .2s}.sidebar-close .admin-icon{width:22px;height:22px}
@media(min-width:761px){html[data-sidebar-hidden=true] .admin-sidebar{transform:translateX(-100%)}html[data-sidebar-hidden=true] .admin-workspace{margin-left:0}}
@media(max-width:760px){.topbar-user-name{display:none}.topbar-right{gap:12px}.profile-dropdown{min-width:220px}.topbar-left{min-width:0}.topbar-left strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-close{background:transparent}.profile-menu summary{gap:5px}}

/* All overrides stay scoped to admin documents; the public site is unaffected. */
html[data-theme=dark]{color-scheme:dark}
html[data-theme=dark] .admin-body{--admin-bg:#141d23;--admin-border:#2b3942;--admin-ink:#dce7e0;--border:#33433c;--ink:#d8e6dd;--muted:#a0afa7;--paper:#1c2830;background:#141d23;color:#dce7e0}
html[data-theme=dark] .admin-sidebar,html[data-theme=dark] .admin-topbar,html[data-theme=dark] .admin-app .panel,html[data-theme=dark] .metric,html[data-theme=dark] .login-header,html[data-theme=dark] .login-card,html[data-theme=dark] .profile-dropdown{background:#1c2830;border-color:#2b3942;color:#dce7e0}
html[data-theme=dark] .sidebar-menu a{color:#a8b8b0}html[data-theme=dark] .sidebar-menu a:hover{background:#263b32;color:#d4ecdc}html[data-theme=dark] .sidebar-menu a[aria-current=page]{background:#294d3a;color:#bdedc9}html[data-theme=dark] .sidebar-label,html[data-theme=dark] .sidebar-brand small{color:#9aaca1}html[data-theme=dark] .sidebar-logo{background:#35694c}html[data-theme=dark] .brand strong{color:#dce7e0}
html[data-theme=dark] .admin-app .panel-heading p,html[data-theme=dark] .admin-app .section-head p,html[data-theme=dark] .admin-app .panel>p,html[data-theme=dark] .metric>div>span,html[data-theme=dark] .metric small,html[data-theme=dark] .admin-app .eyebrow,html[data-theme=dark] .breadcrumb-home,html[data-theme=dark] .admin-footer{color:#a5b6ad}
html[data-theme=dark] .dashboard-banner,html[data-theme=dark] .faq-sync-banner{background:#253a30;border-color:#35503e}html[data-theme=dark] .dashboard-banner strong,html[data-theme=dark] .faq-sync-banner strong{color:#c4dec8}html[data-theme=dark] .dashboard-banner p,html[data-theme=dark] .faq-sync-banner p{color:#a7bea9}
html[data-theme=dark] .admin-app input,html[data-theme=dark] .admin-app textarea,html[data-theme=dark] .dt-container .dt-input{background:#152229!important;color:#dce7e0!important;border-color:#3b5047!important}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#889e92}html[data-theme=dark] .admin-app .button{background:#347b55;color:#fff}html[data-theme=dark] .admin-app .button:hover{background:#419466}html[data-theme=dark] .admin-app .ai-off-button{background:#995344}
html[data-theme=dark] .admin-table th{background:#23323a;color:#afc0b5!important;border-color:#34463c!important}html[data-theme=dark] .admin-table td{color:#c0d0c5;border-color:#30413a!important}html[data-theme=dark] .admin-table td:first-child{color:#d0e8d7}html[data-theme=dark] .admin-table tbody tr:hover td{background:#243a30!important}html[data-theme=dark] .table-detail summary{color:#b7cbbd}html[data-theme=dark] .table-detail p{color:#d0dfd5}html[data-theme=dark] .table-edit{color:#87c59b}html[data-theme=dark] .table-badge.positive{background:#294f39;color:#a3d7b2}html[data-theme=dark] .table-badge.neutral{background:#35404a;color:#b7c5ce}html[data-theme=dark] .dt-container label,html[data-theme=dark] .dt-container .dt-info{color:#a6b9ad!important}html[data-theme=dark] .dt-container .dt-paging .dt-paging-button{background:#22332a!important;border-color:#3a4a41!important;color:#bcd0c2!important}html[data-theme=dark] .dt-container .dt-paging .dt-paging-button.current{background:#3e7954!important;color:#fff!important}
html[data-theme=dark] .topbar-icon-button{background:#26352d;border-color:#3a4b41;color:#c0d5c6}html[data-theme=dark] .user-avatar{background:#30513d;color:#c1e6ca}html[data-theme=dark] .profile-dropdown a:hover,html[data-theme=dark] .profile-dropdown button:hover{background:#2b3f32}html[data-theme=dark] .profile-dropdown-heading{border-color:#3a4a41}html[data-theme=dark] .profile-dropdown .profile-logout{color:#ecaa9d}html[data-theme=dark] .logout-dialog{background:#1c2830;border-color:#3c4d42;color:#dce7e0}html[data-theme=dark] .logout-dialog p{color:#a6b9ad}html[data-theme=dark] .logout-dialog-icon{background:#503830;color:#efb7a4}html[data-theme=dark] .dialog-cancel{border-color:#506054}html[data-theme=dark] .alert.success{background:#294b32;color:#c3e6c7}html[data-theme=dark] .alert.error{background:#51342e;color:#f0c1b4}html[data-theme=dark] .branding-preview{background:#25352b;border-color:#435548}html[data-theme=dark] .ai-mode-description{color:#b8d9c3!important}
@media(prefers-reduced-motion:reduce){.admin-workspace,.admin-sidebar{transition:none}}
html[data-theme=dark] .admin-login input{background:#152229;color:#dce7e0;border-color:#3b5047}html[data-theme=dark] .admin-login .text-link{color:#bcd5c4}html[data-theme=dark] .admin-login .login-card p{color:#a5b6ad}
