/* Hidden navigation items stay hidden despite menu display styles. */
header.top [hidden],header.top .hidden{display:none!important}
html[data-theme="dark"]{color-scheme:dark;--navy:#b5d6ff;--blue:#73caff;--sky:#19374b;--ink:#e5edf7;--muted:#aabbd0;--line:#37465b;--bg:#101927;--white:#1b283a;--green:#6ad6a0;--red:#ffaaa2}
html[data-theme="dark"] body{background:var(--bg)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.top,.card,.current-profile,.request,.modal-box,.navlinks,.profile-nav nav,.work-nav nav,.mobile-photo-options,.hw-install-card,#hw-install-dialog,.hw-notification-panel,.review-card){background:var(--white)!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(input,select,textarea,.field){background:#132033!important;color:var(--ink)!important;border-color:var(--line)!important}
html[data-theme="dark"] :is(.secondary,.menu-toggle,.work-nav summary,.btn:not(.primary):not(.danger)){background:#25364c!important;color:var(--navy)!important;border-color:var(--line)!important}
html[data-theme="dark"] .primary{background:#174a7c!important;color:#fff!important}
html[data-theme="dark"] :is(h1,h2,h3,.profile-value,.request-title){color:var(--ink)}
html[data-theme="dark"] a{color:var(--blue)}
/* Preserve the Proposal Sent badge text color when it is a link. */
html .staff-dashboard .status-proposal_sent,
html[data-theme="dark"] .staff-dashboard .status-proposal_sent{color:#831843}
html[data-theme="dark"] :is(.muted,.meta,.lead,.profile-label,.upload-help,.footer){color:var(--muted)}
html[data-theme="dark"] .hero{background:linear-gradient(180deg,#142237,#101927)!important}
html[data-theme="dark"] .hero-card{background:#16385e!important}
html[data-theme="dark"] .notice{background:#203c4a;color:#b9e7ff}
html[data-theme="dark"] .profile-nav nav a:hover{background:#25364c}
html[data-theme="dark"] ::placeholder{color:#9bafc7;opacity:1}
html[data-theme="dark"] .staff-dashboard :is(.staff-nav nav,.staff-nav summary){background:var(--white)!important;color:var(--navy)!important;border-color:var(--line)!important}
html[data-theme="dark"] .staff-dashboard :is(h1,h2,h3,summary,.brand){color:var(--navy)!important}
html[data-theme="dark"] .staff-dashboard .brand span[style]{color:var(--green)!important}
html[data-theme="dark"] .staff-dashboard .welcome{color:var(--muted)}
html[data-theme="dark"] .staff-dashboard .user-account{border-color:var(--line)}
html[data-theme="dark"] .staff-dashboard .danger{background:#40272b;color:#ffbbb4;border-color:#a15b59}
html[data-theme="dark"] .staff-dashboard .request.submitted{border-left-color:#3b82f6!important}
html[data-theme="dark"] .staff-dashboard .request.reviewing{border-left-color:#8b5cf6!important}
html[data-theme="dark"] .staff-dashboard .request.scheduled{border-left-color:#f59e0b!important}
html[data-theme="dark"] .staff-dashboard .request.proposal_sent{border-left-color:#0ea5e9!important}
html[data-theme="dark"] .staff-dashboard .request.in_progress{border-left-color:#06b6d4!important}
html[data-theme="dark"] .staff-dashboard .request.completed{border-left-color:#22c55e!important}
html[data-theme="dark"] .staff-dashboard .request.cancelled{border-left-color:#ef4444!important}

.theme-setting{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.theme-setting label{display:flex;align-items:center;gap:10px;font-size:15px;margin:0;cursor:pointer}
.theme-setting input{width:22px;height:22px;accent-color:#198754}
@media print{html[data-theme="dark"]{color-scheme:light;--navy:#09265f;--blue:#1177b8;--ink:#17233b;--muted:#65738a;--line:#dce5ef;--bg:#fff;--white:#fff;--green:#198754}html[data-theme="dark"] body{background:#fff!important;color:#17233b!important}html[data-theme="dark"] :is(input,select,textarea,.field){background:#fff!important;color:#17233b!important}}
/* Shared app shapes: softly squared containers and text controls. */
:root{--hw-radius-panel:12px;--hw-radius-control:7px;--hw-radius-label:6px}
:is(.card,.hero-card,.current-profile,.request,.review-panel,.review-card,.modal-box,.closing,.hw-notification-panel,.hw-install-card,#hw-install-dialog){border-radius:var(--hw-radius-panel)!important}
:is(.navlinks,.profile-nav nav,.work-nav nav,.page-nav nav,.staff-nav nav,.mobile-photo-options){border-radius:10px!important}
:is(.btn,.field,.menu-toggle,.hw-bell,.work-nav summary,.page-nav summary,.staff-nav summary,.upload-link,.hw-activity,.notice,.error,.user-account,.photo-preview-item){border-radius:var(--hw-radius-control)!important}
:is(.pill,.badge,.completion-badge,.entry-permission,.hw-unread){border-radius:var(--hw-radius-label)!important}
:is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea){border-radius:var(--hw-radius-control)!important}
:is(#staff-order-controls,#staff-edit-details,#staff-edit-client){border-radius:10px!important}
/* Keep mobile navigation within the viewport, including wrapped headers. */
@media screen and (max-width:820px){
header.top :is(.navlinks,.profile-nav>nav,.work-nav>nav,.page-nav>nav,.staff-nav>nav){
position:fixed!important;left:16px!important;right:16px!important;top:var(--hw-menu-top,80px)!important;bottom:auto!important;
width:auto!important;min-width:0!important;max-width:none!important;transform:none!important;box-sizing:border-box;
max-height:calc(100vh - var(--hw-menu-top,80px) - 16px)!important;
max-height:calc(100dvh - var(--hw-menu-top,80px) - 16px)!important;
overflow-y:auto!important;overscroll-behavior:contain;padding:10px!important;z-index:150;
background:var(--white,#fff);color:var(--ink,#17233b);border:1px solid var(--line,#dce5ef);
}
header.top :is(.navlinks,.profile-nav>nav,.work-nav>nav,.page-nav>nav,.staff-nav>nav) :is(a,button){
box-sizing:border-box;min-height:44px;width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;text-decoration:none;
}
header.top .navlinks.open{display:flex;gap:6px}
header.top :is(.profile-nav,.work-nav,.page-nav,.staff-nav):not([open])>nav{display:none!important}
header.top :is(.profile-nav,.work-nav,.page-nav,.staff-nav)[open]>nav{display:flex!important;flex-direction:column;gap:6px}
}