:root{--ui-ink:#17243c;--ui-muted:#718097;--ui-border:#e2e8f1;--ui-accent:#2563eb}body{background:#f4f6fa;color:var(--ui-ink)}.layout{display:block;background:#f4f6fa;min-height:100vh}.main{max-width:1600px;padding:0 40px 48px;margin:auto}.workspace-topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:88px;margin:0 -40px 24px;padding:14px 40px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--ui-border);position:sticky;top:0;z-index:1001;backdrop-filter:blur(16px)}.workspace-topbar-left,.workspace-topbar-right{display:flex;align-items:center;gap:24px}#workspace-menu-toggle{display:flex;align-items:center;gap:12px;background:#f2f5fa;color:#263955;border:1px solid #e0e7f1;border-radius:12px;padding:11px 15px;font-size:13px;font-weight:650}#workspace-menu-toggle:hover,#workspace-menu-toggle[aria-expanded=true]{background:#eaf0ff;color:#1d56d8;transform:none;border-color:#bbcdf6}.menu-chevron{font-size:17px;margin-left:4px}.workspace-brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:#142c51}.workspace-brand img{height:42px;width:42px;object-fit:contain}.workspace-brand>span{font-size:15px;font-weight:800;letter-spacing:2px}.workspace-brand small{display:block;font-size:8px;font-weight:650;letter-spacing:2px;color:#7b8aa1;margin-top:4px}.workspace-current-page{font-size:12px;color:#7b8aa1}.workspace-user{display:grid;place-items:center;width:38px;height:38px;background:#e9effc;border:1px solid #d9e4fa;border-radius:50%;color:#3868bd;font-size:12px;font-weight:750}.topline{border:0;padding:0;margin:0 0 22px}.breadcrumb{font-size:9px;letter-spacing:1.3px;color:#91a0b4}.sync{background:#e7f6f0;color:#38816a;border-radius:20px;padding:6px 10px;font-size:10px}.page-head{margin-bottom:25px}.page-head h1{font-size:32px;letter-spacing:-1.2px;font-weight:750}.page-head p{color:var(--ui-muted);font-size:13px}.page-head button{border-radius:11px;box-shadow:0 4px 10px #2563eb1a}.project-card,.person-card,.team-card,.task-card,.panel,.calendar-panel{border:1px solid var(--ui-border);box-shadow:0 3px 16px #20345304;border-radius:17px}.toolbar{background:transparent;border:0;padding:0;margin-bottom:20px}.field input,.field select,.field textarea{border-radius:10px;border-color:#dce4ef}.nms-summary{border:1px solid #244f8c;background:linear-gradient(115deg,#112a50,#18457b);box-shadow:0 12px 35px #18365a0d;border-radius:20px;padding:26px 30px}.nms-stats{gap:22px}.nms-stats>div{border-right:1px solid #ffffff1a}.nms-stats>div:last-child{border:0}.nms-stats strong{font-size:32px;font-weight:650}.nms-tabs{gap:6px;padding:5px;background:#e9edf4;display:inline-flex;border-radius:12px}.nms-tabs button{border-radius:8px;box-shadow:none;background:transparent;color:#5b6b83;font-size:12px;padding:9px 16px}.nms-tabs button:hover{background:#fff;color:#205ccb;transform:none}.note{border-radius:11px;border-left:3px solid #82a7ed;background:#ebf1fc;font-size:12px}.calendar-nav button{border-radius:9px}button:focus-visible,a:focus-visible{outline:3px solid #78a3f1;outline-offset:3px}
#workspace-menu.sidebar{position:fixed;top:78px;left:max(20px,calc((100vw - 1600px)/2 + 20px));height:auto;max-height:calc(100dvh - 98px);width:360px;display:flex;flex-direction:column;padding:18px;border:1px solid #263c5c;border-radius:18px;background:#101f35;color:#d8e4f6;box-shadow:0 24px 65px #0b19283d;overflow-y:auto;z-index:1100;animation:menu-pop .15s ease-out}#workspace-menu[hidden],#workspace-menu-backdrop[hidden]{display:none!important}#workspace-menu:before{display:none}#workspace-menu>.logo-wrap,#workspace-menu>.wordmark,#workspace-menu>.eyebrow{display:none}.menu-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 5px 15px;border-bottom:1px solid #ffffff13}.menu-heading strong{font-size:15px}.menu-heading span{display:block;font-size:11px;color:#8ba0bd;margin-top:4px}.menu-close{background:#ffffff0a;color:#a5b8d4;border:1px solid #ffffff0c;border-radius:9px;font-size:22px;padding:1px 10px;line-height:30px}#workspace-menu .nav{display:flex;flex-direction:column;gap:12px;margin-top:13px}#workspace-menu .menu-group{display:grid;grid-template-columns:1fr 1fr;gap:4px}#workspace-menu .menu-group h2{grid-column:1/-1;font-size:9px;letter-spacing:1.2px;text-transform:uppercase;color:#7791b1;font-weight:650;margin:4px 7px 5px}#workspace-menu .nav button{display:flex;align-items:center;justify-content:flex-start;gap:8px;text-align:left;font-size:12px;padding:11px 9px;white-space:normal;color:#b4c5dc;border-radius:9px}#workspace-menu .nav button:hover{background:#ffffff0b;transform:none}#workspace-menu .nav button.active{background:#254f90;box-shadow:none;color:#fff}#workspace-menu .navicon{display:inline-block;width:19px;font-size:14px}#workspace-menu .account{display:block;border-top:1px solid #ffffff13;margin-top:17px;padding:15px 6px 0}#workspace-menu .account-name{font-size:12px}#workspace-menu .account-role{margin:5px 0 10px;font-size:10px}#workspace-menu .account select{width:100%;margin-top:8px;background:#1a2d48;color:#d8e6f9;border-color:#304867;border-radius:8px;font-size:11px}#workspace-menu .account button{width:100%}#workspace-menu-backdrop{position:fixed;inset:78px 0 0;z-index:1050;background:#0b1b3020;border:0;border-radius:0;cursor:default;backdrop-filter:blur(2px)}#workspace-menu-backdrop:hover{transform:none;filter:none}@keyframes menu-pop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@media(max-width:760px){.main{padding:0 18px 32px}.workspace-topbar{min-height:76px;padding:12px 18px;margin:0 -18px 20px;gap:8px}.workspace-topbar-left{gap:14px}.workspace-topbar-right{gap:8px}.workspace-current-page{display:none}.workspace-brand img{width:32px;height:32px}.workspace-brand>span{font-size:12px;letter-spacing:1px}.workspace-brand small{font-size:7px;letter-spacing:1px}#workspace-menu-toggle{padding:9px 11px;gap:7px}#workspace-menu-toggle .menu-chevron{display:none}#workspace-menu.sidebar{left:12px;top:68px;width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 84px)}#workspace-menu-backdrop{inset:68px 0 0}.nms-summary{padding:22px}.page-head h1{font-size:28px}.topline{flex-wrap:wrap;gap:8px}.nms-stats>div{border:0}.nms-stats{gap:16px}.breadcrumb{font-size:8px}}@media(max-width:380px){.workspace-brand small{display:none}.workspace-user{width:31px;height:31px}.workspace-brand img{width:27px;height:27px}.workspace-topbar-left{gap:9px}.workspace-brand{gap:6px}}@media(prefers-reduced-motion:reduce){#workspace-menu.sidebar{animation:none}}@media print{.workspace-topbar,#workspace-menu,#workspace-menu-backdrop{display:none!important}}
.workspace-theme-toggle{border:1px solid #dae3f0;background:#f2f5fa;color:#39516f;border-radius:10px;font-size:12px;white-space:nowrap;padding:9px 12px}.workspace-theme-toggle:hover{transform:none;background:#e8eef8}
@media screen{
html[data-theme=dark]{color-scheme:dark;--ui-ink:#e6edf8;--ui-muted:#92a2ba;--ui-border:#29374b;--line:#29374b;--muted:#93a5bf;--navy:#101d30;background:#0c1422}
html[data-theme=dark] body,html[data-theme=dark] .layout{background:#0c1422;color:#e6edf8}
html[data-theme=dark] .workspace-topbar{background:rgba(14,24,40,.96);border-color:#26364e}
html[data-theme=dark] .workspace-brand{color:#edf4ff}html[data-theme=dark] .workspace-brand small,html[data-theme=dark] .workspace-current-page{color:#8fa1bb}
html[data-theme=dark] #workspace-menu-toggle,html[data-theme=dark] .workspace-theme-toggle{background:#1a2a41;color:#d9e6fb;border-color:#30425e}html[data-theme=dark] #workspace-menu-toggle:hover,html[data-theme=dark] #workspace-menu-toggle[aria-expanded=true],html[data-theme=dark] .workspace-theme-toggle:hover{background:#263c5e;color:#fff}
html[data-theme=dark] .workspace-user{background:#233a5b;border-color:#344f76;color:#a9caff}html[data-theme=dark] .breadcrumb{color:#768ba8}html[data-theme=dark] .sync{background:#14362f;color:#85d1b5}
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] h4,html[data-theme=dark] .project-title{color:#edf3ff}
html[data-theme=dark] .page-head p,html[data-theme=dark] .muted,html[data-theme=dark] small,html[data-theme=dark] label,html[data-theme=dark] .stat-label,html[data-theme=dark] .stat-note,html[data-theme=dark] .project-context,html[data-theme=dark] .task-author,html[data-theme=dark] .budget-note{color:#91a4bf}
html[data-theme=dark] .panel,html[data-theme=dark] .project-card,html[data-theme=dark] .person-card,html[data-theme=dark] .team-card,html[data-theme=dark] .task-card,html[data-theme=dark] .calendar-panel,html[data-theme=dark] .nms-row,html[data-theme=dark] .table-wrap,html[data-theme=dark] .empty{background:#142136;border-color:#28384f;box-shadow:0 4px 20px #00000010}
html[data-theme=dark] .stat{background:linear-gradient(125deg,#16263e,#122035);border-right-color:#28384f;border-bottom-color:#28384f;border-left-color:#28384f;box-shadow:none}html[data-theme=dark] .stat-value,html[data-theme=dark] .budget-grid strong,html[data-theme=dark] .profile-details dd{color:#eaf2ff}html[data-theme=dark] .stat-value.green{color:#57d9ae}
html[data-theme=dark] .project-footer,html[data-theme=dark] .budget-grid,html[data-theme=dark] .section-head,html[data-theme=dark] .report-summary,html[data-theme=dark] .nms-row{border-color:#2b3b51}html[data-theme=dark] .task-details{color:#bdcbe0}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#0e1b2d;color:#e1ebfc;border-color:#344863}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#7286a3}html[data-theme=dark] input:focus,html[data-theme=dark] select:focus,html[data-theme=dark] textarea:focus{border-color:#5b91eb;box-shadow:0 0 0 3px #3973ce22}
html[data-theme=dark] button.secondary,html[data-theme=dark] .button.secondary{background:#213653;color:#c2d9ff;border-color:#345071}html[data-theme=dark] button.ghost{background:transparent;color:#97b9eb}html[data-theme=dark] button.danger{background:#452332;color:#ffadb7;border-color:#653441}html[data-theme=dark] a{color:#91bcff}html[data-theme=dark] a.workspace-brand{color:#edf4ff}
html[data-theme=dark] .note{background:#182d4c;color:#b4cbed;border-color:#4b79be}html[data-theme=dark] .error{background:#3a2030;color:#ffb1bd;border-color:#693746}html[data-theme=dark] .badge{background:#193f39;color:#80ddc0}html[data-theme=dark] .badge.closed{background:#293950;color:#b5c9e7}html[data-theme=dark] .badge.hold{background:#453c24;color:#ead58c}html[data-theme=dark] .count{background:#253b59;color:#a9c7f1}html[data-theme=dark] .team-chips span{background:#233b5d;color:#a9ccff}
html[data-theme=dark] .nms-tabs{background:#17263b}html[data-theme=dark] .nms-tabs button{color:#93a8c4}html[data-theme=dark] .nms-tabs button:hover{background:#283f60;color:#e8f1ff}
html[data-theme=dark] table,html[data-theme=dark] tbody,html[data-theme=dark] td{background:#142136;color:#d9e5f7;border-color:#293b54}html[data-theme=dark] thead th{background:#1b2e48;color:#a9bfde;border-color:#30435d}html[data-theme=dark] tr:hover td{background:#1c2d46}
html[data-theme=dark] .calendar-day{background:#17263b;color:#c5d5ed;border-color:#2b3c55}html[data-theme=dark] .calendar-day:hover{background:#233d5e;color:#fff}html[data-theme=dark] .calendar-day.is-selected{background:#244b7b;outline-color:#6aa1f5;color:#fff}html[data-theme=dark] .calendar-day.is-today{border-color:#5c9bf6}html[data-theme=dark] .weekday{color:#91aaca}html[data-theme=dark] .calendar-blank{background:transparent}
html[data-theme=dark] dialog{background:#142136;color:#e7effc;border:1px solid #34465e;box-shadow:0 35px 100px #0008}html[data-theme=dark] .modal-head,html[data-theme=dark] .modal-footer{border-color:#2d3d54}html[data-theme=dark] .close{background:#243851;color:#c0d3f0}html[data-theme=dark] dialog::backdrop{background:#020914b8}
html[data-theme=dark] .toolbar,html[data-theme=dark] .report-summary{background:transparent;color:#cfddf1}html[data-theme=dark] .total,html[data-theme=dark] .scope,html[data-theme=dark] .profile-details dt{color:#afc4e1}html[data-theme=dark] #toast{background:#29476c;color:#edf5ff;border:1px solid #4b6d98}html[data-theme=dark] progress{background:#23364f}html[data-theme=dark] progress::-webkit-progress-bar{background:#23364f}
html[data-theme=dark] #workspace-menu-backdrop{background:#02081270}html[data-theme=dark] ::-webkit-scrollbar{width:9px;height:9px}html[data-theme=dark] ::-webkit-scrollbar-track{background:#0f1b2c}html[data-theme=dark] ::-webkit-scrollbar-thumb{background:#354a65;border-radius:10px;border:2px solid #0f1b2c}
@media(max-width:760px){.workspace-topbar-right{gap:8px}.workspace-theme-toggle{padding:8px;font-size:11px}html[data-theme=dark] td::before{color:#9db4d4}}
@media(max-width:400px){.workspace-brand small{display:none}.workspace-topbar-left{gap:8px}.workspace-brand>span{font-size:10px}.workspace-brand img{width:27px;height:27px}.workspace-theme-toggle{font-size:10px;padding:8px 6px}.workspace-user{display:none}}
}

.nap-port-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(82px,1fr));gap:8px;margin:16px 0}.nap-port{min-height:68px;padding:8px;white-space:normal;text-align:left;border:1px solid #356cba}.nap-port strong,.nap-port small{display:block}.nap-port.available{background:#103e3c;color:#b3f7d3;border-color:#2b806c}.nap-port.occupied{background:#273751;color:#d3e4ff;border-color:#647da6}.nap-port:disabled{opacity:.85;cursor:default}.nap-port small{font-size:10px;overflow-wrap:anywhere}#printer-sample-wrap{overflow:auto;padding:24px;background:#e0e4e9;border-radius:12px;margin-top:18px}.printer-format-preview{background:white;color:#111;padding:8px;box-sizing:content-box;line-height:1.4}.printer-format-preview header img{width:40px;margin:auto}.printer-format-preview h1{font-size:16px}.printer-format-preview .thermal-total{display:flex;justify-content:space-between}.printer-format-preview p{white-space:pre-wrap}.printer-format-preview hr{border:0;border-top:1px dashed #333}

@media print{.dict-site-document .site-report-photo{break-inside:avoid;margin:10mm 0}.dict-site-document .site-report-photo img{display:block!important;max-width:100%!important;width:auto!important;max-height:150mm!important;object-fit:contain}.dict-site-document .site-signatures{break-inside:avoid;margin-top:12mm}.dict-site-document p{white-space:pre-wrap}.dict-site-document table{width:100%}}

.equipment-geophoto{border:1px solid var(--border,#3a4c64);border-radius:10px;padding:12px;margin-top:10px}.equipment-geophoto small{display:block;margin-top:6px}.equipment-geophoto .form-grid{grid-template-columns:1fr 1fr;gap:8px}.equipment-geophoto input[type=file]{max-width:100%}

.site-edit-section{border:1px solid var(--border,#52627b);border-radius:12px;padding:18px;margin:12px 0;min-width:0}.site-edit-section legend{font-weight:700;padding:0 8px}.site-edit-section .equipment-geophoto{margin-top:12px}.site-signatures{break-inside:avoid;margin-top:28px}

/* Team artwork remains behind opaque reading surfaces. */
@media screen {
 html[data-theme=dark] body{background:#081321 url("philtech-team-background.png") center center/cover fixed no-repeat;}
 html[data-theme=dark] .layout{background:linear-gradient(110deg,rgba(5,14,27,.90),rgba(7,19,35,.82));min-height:100vh;}
 html[data-theme=dark] .main{background:transparent;}
 html[data-theme=dark] .page-head h1{color:#f4f8ff;text-shadow:0 2px 12px #0009;}
 html[data-theme=dark] .page-head p{color:#c3d4e9;}
 html[data-theme=dark] .workspace-topbar{background:rgba(9,20,35,.96);}
 html[data-theme=dark] .auth{background:linear-gradient(110deg,rgba(5,14,27,.92),rgba(7,19,35,.80));}
}
@media print{body,.layout,.main{background:#fff!important;background-image:none!important;}}

.workspace-topbar-right{position:relative}.profile-account-menu{position:absolute;right:0;top:48px;min-width:205px;padding:8px;background:#142136;border:1px solid #344863;border-radius:12px;box-shadow:0 14px 40px #0008;z-index:1100}.profile-account-menu button{display:block;width:100%;text-align:left;background:transparent;color:#e1ebfc;padding:12px}.profile-account-menu button:hover{background:#263c5e}.profile-account-menu[hidden]{display:none}

.govnet-create-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px}.govnet-create-actions button{white-space:nowrap}@media(max-width:760px){.govnet-create-actions{justify-content:flex-start}}

.govnet-generator-frame{display:block;width:100%;height:calc(100vh - 235px);min-height:650px;border:0;border-radius:14px;background:transparent}@media(max-width:760px){.govnet-generator-frame{height:calc(100vh - 180px);min-height:550px}}
