@import url('/styles.css') layer(legacy);
@import url('/appointment-change.css');

:root {
  --ink:#0a1b36; --muted:#526b82; --line:#d3e0ed; --surface:#fff;
  --nav:#071b38; --accent:#489fdf; --surface-soft:#eff7fc;
  --text-secondary:#304c68; --accent-hover:#176fae; --control-soft:#e5f1fb;
  --workspace-background:linear-gradient(145deg,#eef7fd 0%,#f8fbfe 48%,#e8f3fb 100%);
  --highlight-background:linear-gradient(135deg,#101f40,#123c5c);
  --portal-shadow:none; --portal-shadow-soft:none; --ap-shadow:none; --shadow:none;
}
* { box-sizing:border-box; letter-spacing:0; text-shadow:none; box-shadow:none; }
body { margin:0; background:var(--workspace-background); background-attachment:fixed; color:var(--ink); font-size:14px; line-height:1.5; }
body::before, body::after { content:none; }
#loginView .loginCard { display:grid; gap:20px; align-content:start; padding:24px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:8px; box-shadow:none; backdrop-filter:none; }
#loginView .loginCard.hidden { display:none; }
#loginView .loginCard::before,#loginView .loginCard::after { content:none; }
#loginView .loginCard .sectionLabel { margin:0; color:var(--ink); font-size:20px; font-weight:600; text-transform:none; }
#loginView .loginCard .fieldLabel { display:grid; gap:8px; margin:0; color:var(--text-secondary); font-size:14px; }
#loginView .loginCard .fieldLabel span { color:inherit; font-weight:500; }
#loginView .loginCard input { width:100%; min-width:0; min-height:48px; padding:12px 14px; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); color:var(--ink); font-size:16px; }
#loginView .loginCard input::placeholder { color:var(--muted); opacity:1; }
#loginView .loginCard .primaryButton { min-height:48px; margin:0; background:var(--nav); color:#fff; border-radius:6px; }
#loginView .loginCard .adminTextButton { min-height:44px; margin:0; padding:8px; color:var(--accent-hover); background:transparent; font-size:14px; font-weight:500; }
main { padding:0; overflow:visible; }
.view { padding:0; overflow:visible; }
button,input,select,textarea { font-size:14px; font-weight:500; }
p,li,span,a,label,small,dt,dd { font-weight:400; }
h1,h2,h3,h4,p { margin-top:0; }
h1,h2,h3,strong,b { font-weight:600; }
button,a,input,select { touch-action:manipulation; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.5; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #489fdf; outline-offset:3px; }
.lucide { width:20px; height:20px; stroke-width:1.8; flex-shrink:0; }
.workspaceSidebar { position:fixed; inset:0 auto 0 0; width:238px; padding:35px 20px 24px; background:var(--nav); color:#fff; display:flex; flex-direction:column; z-index:50; }
.sidebarBrand { display:block; padding:0 6px 36px; text-decoration:none; color:white; }
.sidebarBrand img { width:192px; height:51px; object-fit:contain; }
.sidebarBrand>span { display:block; color:#8eacc9; font-size:10px; font-weight:500; margin:12px 0 0 44px; }
.sidebarLabel { font-size:10px; color:#8ba5c2; margin:8px 14px 12px; text-transform:uppercase; }
.sidebarNavigation { display:grid; gap:7px; }
.sidebarNavigation button { display:flex; align-items:center; gap:13px; min-height:48px; padding:12px 14px; text-align:left; border:1px solid transparent; border-radius:8px; background:transparent; color:#b8cce0; font-size:13px; }
.sidebarNavigation button.active { color:#fff; background:#153d64; border-color:#275379; }
.sidebarNavigation button:hover { background:#163656; color:#fff; }
.sidebarBottom { margin-top:auto; padding:21px 4px 0; border-top:1px solid #243a55; display:flex; align-items:center; gap:10px; }
.sidebarAvatar { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#245d85; color:#dff1ff; font-size:12px; }
.sidebarBottom strong { font-size:12px; color:#fff; display:block; }
.sidebarBottom small { display:block; color:#94aec9; font-size:11px; margin-top:3px; }
.appShell { width:auto; max-width:1680px; min-height:100dvh; margin:0 0 0 238px; padding:0 38px 48px; background:transparent; }
.topBar, .topBar:has(#backButton.hidden) { display:flex; align-items:center; gap:16px; position:relative; top:auto; margin:0 0 22px; padding:20px 0; min-height:88px; border:0; border-bottom:1px solid #d4e3ee; border-radius:0; background:transparent; }
.homeLogoButton { margin-right:auto; width:auto; height:auto; padding:0; background:transparent; }
.topLogo,.topLogo.stampLogo { width:172px; height:42px; object-fit:contain; filter:none; }
.iconButton { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:8px; }
.syncPill { min-width:0; min-height:36px; padding:7px 12px; gap:7px; background:#fff; color:#176a43; border:1px solid #c9e2d8; border-radius:20px; font-size:12px; }
.syncPill span { color:inherit; font-size:12px; font-weight:500; }
.connectionDot { width:7px; height:7px; }
.languageSwitcher { display:flex; width:auto; height:40px; gap:5px; padding:3px; border:1px solid var(--line); border-radius:22px; background:#fff; }
.languageButton { width:36px; height:32px; min-width:36px; min-height:32px; padding:0; display:grid; place-items:center; font-size:20px; line-height:1; background:transparent; border:1px solid transparent; border-radius:18px; filter:none; opacity:1; }
.languageButton.active { border-color:#489fdf; background:#e4f2fc; }
.adminNotificationButton { background:#fff; color:var(--ink); border:1px solid var(--line); }
.previewNotice { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; color:#61758b; font-size:11px; }
.previewNotice>span { border-left:3px solid #b7cee0; padding-left:8px; }
.previewNotice select { width:auto; max-width:250px; min-height:32px; padding:5px 28px 5px 10px; border:1px solid var(--line); border-radius:6px; background:#f8fcff; color:#304c68; font-size:11px; }
.nextStorage { margin:0 0 20px; padding:0; color:#477b67; background:none; border:0; font-size:11px; min-height:18px; }
.nextStorage::before { content:''; display:inline-block; width:6px; height:6px; margin-right:7px; vertical-align:middle; background:#298663; border-radius:50%; }
.nextStorage.error { padding:10px; color:#9f2434; background:#fff0f0; border:1px solid #e9bfc6; border-radius:6px; }
.pageIntro { min-height:0; height:auto; padding:6px 0 27px; margin:0; border:0; border-radius:0; background:none; overflow:visible; color:var(--ink); }
.pageIntro::after,.pageIntro::before { content:none; display:none; }
.pageIntro h1 { max-width:none; margin:8px 0 7px; color:var(--ink); font-size:32px; font-weight:600; line-height:1.2; }
.pageIntro p { max-width:none; margin:0; font-size:14px; color:#526b82; font-weight:400; }
.pageIntro .eyebrow { max-width:none; color:#41779c; font-size:11px; font-weight:500; text-transform:uppercase; }
.nextWelcome { display:grid; grid-template-columns:minmax(0,1fr) 225px; gap:28px; margin-bottom:34px; }
.nextToday { min-width:0; }
.nextTodayHeader { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:15px; }
.nextTodayHeader h2,.nextTeam h2 { margin:0; color:var(--ink); font-size:15px; font-weight:600; }
.nextOfflineButton { display:flex; align-items:center; gap:6px; padding:5px 0; min-height:32px; background:transparent; color:#2975a6; border:0; font-size:11px; }
.nextOfflineButton .lucide { width:15px; height:15px; }
.nextTodayRow { position:relative; display:grid; grid-template-columns:106px minmax(0,1fr); align-items:center; gap:18px; margin-bottom:12px; padding:22px; border:1px solid #d4e1ed; border-top:3px solid #489fdf; border-radius:8px; background:#fff; overflow:hidden; }
.nextTodayRow img { width:106px; height:114px; object-fit:cover; border-radius:6px; grid-row:1/3; }
.nextTodayRow h3 { margin:5px 0 6px; font-size:23px; line-height:1.25; color:var(--ink); overflow-wrap:anywhere; }
.nextTodayRow p { margin:4px 0; color:#526b82; font-size:12px; font-weight:400; }
.nextTodayRow .primaryButton { justify-self:start; grid-column:2; min-height:36px; padding:8px 14px; font-size:12px; display:flex; align-items:center; gap:14px; }
.nextTodayRow .primaryButton .lucide { width:16px; height:16px; }
.nextTeam { padding:0 0 0 24px; border-left:1px solid #ccdeec; background:transparent; }
.nextTeam>p { color:#52758e; font-size:11px; margin:8px 0 20px; }
.nextTeam ul { list-style:none; margin:0; padding:0; display:grid; gap:15px; }
.nextTeam li { display:flex; gap:10px; align-items:center; color:#304c68; font-size:12px; font-weight:500; }
.memberAvatar { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:50%; background:#d7e8f5; color:#286491; font-size:10px; font-weight:600; }
.dashboardOverviewTools { display:grid; grid-template-columns:minmax(180px,1fr) 230px 200px; gap:12px; align-items:stretch; margin:0 0 18px; }
.overviewSearch { position:relative; width:100%; min-width:0; padding:0; background:transparent; border:0; }
.overviewSearch input { width:100%; min-height:54px; height:54px; margin:0; padding:0 42px 0 16px; border:1px solid #c8dce9; border-radius:8px; background:#fff; color:var(--ink); font-size:14px; font-weight:400; }
.overviewSearch input::placeholder { color:#5a7790; opacity:1; }
.overviewSearch input:focus { outline:2px solid #489fdf; outline-offset:1px; }
.overviewSearchClear { position:absolute; right:12px; top:50%; transform:translateY(-50%); width:24px; height:24px; min-height:0; padding:0; border:0; border-radius:50%; background:#e4edf4; color:#526b82; font-size:18px; line-height:1; }
.overviewSearchSuggestions { background:#fff; border:1px solid #c8dce9; border-radius:8px; padding:5px; z-index:30; }
.overviewSearchSuggestion { padding:10px; border-radius:5px; background:#fff; color:var(--ink); }
.overviewSearchSuggestion:hover { background:#eaf4fb; }
.overviewSearchSuggestion strong { color:var(--ink); font-size:14px; }
.overviewSearchSuggestion span { color:#526b82; font-size:12px; }
.statusStrip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:auto; height:54px; min-height:54px; padding:4px; gap:3px; margin:0; border:1px solid #c8dce9; border-radius:8px; background:#fff; }
.statusStripItem { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:1px; min-width:0; min-height:44px; height:44px; padding:0 4px; background:transparent; border:0; border-radius:5px; color:var(--ink); }
.statusStripItem strong { color:var(--ink); font-size:17px; font-weight:600; line-height:1.1; }
.statusStripItem span { display:block; color:#526b82; font-size:10px; line-height:1.4; font-weight:400; }
.statusStripItem.active { background:#e4f2fc; }
.overviewTradeFilterSlot { min-width:0; }
.overviewSearch,.statusStrip,.overviewTradeFilterSlot { order:0; }
.overviewFilterTabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; height:54px; min-height:54px; padding:4px; gap:2px; border:1px solid #c8dce9; border-radius:8px; background:#fff; }
.adminFilterButton { height:44px; min-height:44px; padding:0 10px; border:0; border-radius:5px; background:transparent; color:#526b82; font-size:12px; }
.adminFilterButton.active { background:#176fae; color:#fff; }
.dashboardOverviewTools:has(.overviewTradeFilterSlot.hidden) { grid-template-columns:minmax(0,1fr) 250px; }
.siteList { display:block; width:100%; margin:0; }
.overviewTeamFilters { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 20px; padding:0; width:100%; min-width:0; overflow:visible; border:0; border-radius:0; background:transparent; backdrop-filter:none; }
.overviewTeamFilterButton { border:1px solid #c8dce9; border-radius:6px; background:transparent; color:#48647d; padding:7px 12px; min-height:36px; font-size:12px; }
.overviewTeamFilterButton.active { background:#176fae; color:#fff; border-color:#176fae; }
.overviewTeamFilterButton:hover { background:#e5f1fb; color:#245d88; border-color:#93bfdc; }
.overviewTeamFilterButton.active:hover { background:#125d92; color:#fff; }
.overviewTeamFilterButton { opacity:1; filter:none; }
.overviewMonth { display:block; width:100%; border:0; background:none; margin:0 0 20px; }
.overviewMonthToggle { display:flex; align-items:center; gap:12px; width:100%; padding:13px 0; min-height:50px; border:0; border-bottom:1px solid #c8dce9; border-radius:0; background:transparent; color:var(--ink); }
.overviewMonthTitle { color:var(--ink); font-size:16px; font-weight:600; }
.overviewMonthCount { margin-left:auto; color:#5d7c94; font-size:11px; font-weight:400; }
.overviewMonthChevron { width:8px; height:8px; border-color:#5d7c94; margin:0 4px; }
.overviewMonthSites { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:16px; padding:0; }
.siteCard { display:flex; flex-direction:column; gap:12px; min-width:0; padding:22px; border:1px solid #d2e2ed; border-radius:8px; background:#fff; color:var(--ink); opacity:1; overflow:hidden; }
.siteCard:hover { border-color:#93bfdc; transform:none; }
.siteCardTopline,.siteIdentity,.adminCombinedIdentity { display:flex; flex-direction:column; align-items:stretch; gap:5px; width:auto; }
.customerNameButton { padding:0; margin:0; width:100%; text-align:left; font-size:20px; line-height:1.3; color:var(--ink); font-weight:600; background:none; overflow-wrap:anywhere; }
.overviewAddress { color:#41779c; font-size:12px; line-height:1.5; font-weight:400; text-decoration:none; }
.siteDateHero,.siteSystemLine,.progressWrap,.adminFollowAppointment { display:flex; flex-direction:column; gap:4px; min-height:0; height:auto; padding:10px 0; margin:0; border:0; border-radius:0; background:transparent; color:var(--ink); }
.siteDateHero span,.siteSystemLine span,.adminFollowAppointment span { color:#7890a3; font-size:10px; font-weight:500; }
.siteDateHero strong,.siteDateHero .siteDateText { color:#1d405e; font-size:17px; font-weight:600; line-height:1.4; }
.siteSystemLine { padding:12px 0; border-top:1px solid #e8eff5; }
.siteSystemLine strong,.adminFollowAppointment strong { color:#304c68; font-size:13px; font-weight:500; }
.badge { align-self:flex-start; width:fit-content; padding:4px 9px; min-height:0; font-size:10px; font-weight:500; background:#e7f1fa; color:#2d739f; border:0; border-radius:5px; }
.badge.warning { background:#fff2d6; color:#885b07; }
.badge.doneBadge { background:#e1f3ea; color:#176a43; }
.siteTeamBadge { display:inline-flex; align-self:flex-start; margin:0; background:#edf4f9; color:#436581; border:0; border-radius:4px; font-size:10px; padding:3px 8px; font-weight:500; }
.roofPreviewButton { align-self:flex-start; padding:6px 0; min-height:32px; background:none; color:#176fae; border:0; border-radius:0; font-size:12px; font-weight:500; }
.progressWrap { gap:7px; margin-top:auto; padding:8px 0; }
.progressTop,.progressTop span { color:#61798f; font-size:11px; font-weight:400; }
.progressTrack { height:4px; border-radius:2px; background:#e6eef4; }
.progressFill { height:100%; background:#489fdf; }
.siteActions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:2px; }
.primaryButton,.secondaryButton { min-height:42px; padding:10px 16px; border-radius:6px; font-size:13px; font-weight:500; }
.primaryButton { background:var(--nav); color:#fff; border:1px solid var(--nav); }
.primaryButton:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.secondaryButton { background:#f1f7fb; color:#28668f; border:1px solid #d2e2ed; }
.secondaryButton:hover { background:#e5f0f8; }
.adminTradeRows { border-top:1px solid #e6eef4; }
.adminTradeRow,.adminTradeButton { background:#f3f8fc; color:#304c68; border-color:#d8e6f0; border-radius:6px; }
.adminTradeRow strong,.adminTradeRow small,.adminTradeButton strong,.adminTradeButton small { color:#304c68; }
.dashboardFooterActions { margin-top:24px; }
.adminTextButton { color:#597990; font-size:12px; }
.bottomNav { display:none; }
.emptyText { color:#526b82; font-size:14px; }
/* Shared detail and protocol surfaces follow the same light workspace. */
.detailHero { margin:0 0 24px; min-height:0; height:auto; padding:28px; border:1px solid #285071; border-radius:8px; background:var(--highlight-background); color:#fff; }
.detailHero::before,.detailHero::after { content:none; display:none; background:none; }
.detailHeroContent { gap:24px; }
.detailHeroMain { gap:14px; }
.detailHero h1 { font-size:38px; line-height:1.15; font-weight:600; margin:0; color:#fff; max-width:100%; overflow-wrap:anywhere; }
.detailHeroKicker { color:#a8d6f4; font-weight:500; font-size:12px; }
.detailHeroBack { color:#d2e7f6; font-weight:500; font-size:13px; }
.detailHeroMeta strong { color:#e3f0fc; font-size:16px; font-weight:500; }
.detailHeroAddress strong { color:#a9dafb; }
.detailHeroStatus { background:#245575; border:1px solid #4a7898; color:#edf7ff; font-weight:500; padding:6px 10px; font-size:12px; }
.detailHeroStatus span { background:#77c5f8; }
.detailHeroAdditionalInfo { padding:0; background:transparent; border:0; }
.detailHeroAdditionalInfo strong { color:#fff; font-size:13px; font-weight:500; }
.detailHeroAdditionalInfo p { color:#d4e6f3; font-size:13px; font-weight:400; line-height:1.6; }
.detailHero .primaryButton { background:#489fdf; color:#071b38; border-color:#489fdf; font-weight:600; }
.detailHero .primaryButton:hover { background:#72b8ea; }
.detailPanel,.protocolCard,.adminPanel,.projectImagesPanel { background:#fff; color:var(--ink); border:1px solid #d2e2ed; border-radius:8px; padding:24px; }
.detailPanel h2,.protocolCard h2,.stepHeader h2 { color:var(--ink); font-size:22px; }
.detailList dt,.mutedSmall,.stepDescription,.fieldLabel { color:#526b82; font-weight:400; }
.detailList dd,.detailList a,.formBlock,.requirementBlock { color:var(--ink); }
.formBlock,.requirementBlock { border:0; border-bottom:1px solid #e5edf4; border-radius:0; background:transparent; }
.fieldLabel input,.fieldLabel textarea,.fieldLabel select { background:#f8fbfd; color:var(--ink); border:1px solid #ccdeeb; border-radius:6px; }
.stepListItem { background:#f2f7fb; color:#304c68; border-color:#d5e4ef; border-radius:6px; }
.stepListItem.active { background:#dceefa; border-color:#72b1db; color:#125f94; }
.photoPreviewButton,.uploadZone,.signaturePreview { background:#f0f6fa; color:#304c68; border-color:#c9deeb; border-radius:6px; }
.photoRequirement small,.projectImagesPanel .mutedSmall,.imageTabPanel .mutedSmall { color:#526b82; }
.imageTabButton { color:#526b82; background:#edf4f9; border-color:#d2e2ed; }
.imageTabButton.active { background:#176fae; color:white; }
.materialInfoCard,.materialTextLine,.materialModuleCard,.materialDeviceCard,.materialRoofTileCard,.materialEmergencyPowerCard,.materialMeterCabinetCard { background:#f3f8fc; border-color:#d8e6f0; color:#304c68; }
.materialInfoCard :is(span,strong),.materialModuleCard :is(span,strong),.materialDeviceCard :is(span,strong),.materialRoofTileCard :is(span,strong),.materialMeterCabinetCard :is(span,strong),.materialEmergencyPowerCard :is(span,strong) { color:#304c68; }
.toast { background:#071b38; color:white; border:1px solid #254666; z-index:10000; }
@media(min-width:1680px) { .appShell { margin-right:auto; } }
@media(max-width:1150px) { .workspaceSidebar { width:208px; padding:28px 16px; } .sidebarBrand img { width:176px; } .appShell { margin-left:208px; padding:0 24px 40px; } .nextWelcome { grid-template-columns:1fr; } .nextTeam { border-left:0; padding:0; } .nextTeam ul { display:flex; flex-wrap:wrap; gap:14px 24px; } .nextTeam>p { margin-bottom:10px; } .dashboardOverviewTools { grid-template-columns:minmax(0,1fr) 200px; } .overviewTradeFilterSlot { grid-column:1/-1; max-width:270px; } }
@media(max-width:760px) {
 .workspaceSidebar { display:none; }
 .appShell { width:100%; max-width:none; margin:0; padding:0 18px 100px; }
 .topBar,.topBar:has(#backButton.hidden) { min-height:74px; margin:0 -18px 16px; padding:14px 16px; gap:10px; background:#071b38; border:0; }
 .topLogo,.topLogo.stampLogo { width:138px; height:38px; }
 .homeLogoButton { min-width:0; }
 .topBar:has(#backButton:not(.hidden)) .syncPill { display:none; }
 .topBar .syncPill { background:#153650; border-color:#285069; color:#b7e4cf; min-height:30px; padding:6px 8px; }
 .syncPill span { font-size:10px; }
 .languageSwitcher { background:#132d49; border-color:#2a4560; gap:2px; padding:2px; height:34px; }
 .languageButton { width:29px; min-width:29px; height:28px; min-height:28px; font-size:19px; }
 .languageButton.active { background:#294d6e; }
 .previewNotice { gap:6px; flex-wrap:wrap; margin:0 0 9px; font-size:10px; }
 .previewNotice select { max-width:100%; width:auto; font-size:10px; min-height:30px; }
 .nextStorage { font-size:10px; margin-bottom:18px; }
 .pageIntro { padding:0 0 24px; }
 .pageIntro h1 { font-size:28px; margin:7px 0; }
 .pageIntro p { font-size:12px; }
 .pageIntro .eyebrow { font-size:10px; }
 .nextWelcome { grid-template-columns:minmax(0,1fr); gap:20px; margin-bottom:28px; }
 .nextTodayHeader { gap:8px; align-items:center; }
 .nextTodayHeader h2 { font-size:14px; }
 .nextOfflineButton { font-size:10px; max-width:145px; text-align:right; }
 .nextTodayRow { padding:17px; grid-template-columns:70px minmax(0,1fr); gap:12px; }
 .nextTodayRow img { width:70px; height:92px; }
 .nextTodayRow h3 { font-size:20px; }
 .nextTodayRow p { font-size:11px; }
 .nextTodayRow .primaryButton { grid-column:1/-1; justify-self:stretch; justify-content:space-between; margin-top:3px; min-height:42px; }
 .nextTeam h2 { font-size:13px; }
 .nextTeam li { font-size:11px; }
 .nextTeam>p { margin:4px 0 10px; }
 .dashboardOverviewTools,.dashboardOverviewTools:has(.overviewTradeFilterSlot.hidden) { grid-template-columns:1fr; gap:10px; }
 .overviewSearch { grid-row:1; }
 .statusStrip { width:100%; }
 .overviewTradeFilterSlot { grid-column:auto; width:100%; max-width:none; }
 .overviewMonthSites { grid-template-columns:minmax(0,1fr); gap:14px; }
 .overviewMonthTitle { font-size:15px; }
 .siteCard { padding:20px; gap:10px; }
 .siteDateHero .siteDateText { font-size:17px; }
 .bottomNav { position:fixed; display:grid; grid-template-columns:1fr 1fr; bottom:0; left:0; right:0; width:100%; max-width:none; transform:none; margin:0; gap:8px; padding:8px 18px calc(8px + env(safe-area-inset-bottom)); border:0; border-top:1px solid #d0e1ee; border-radius:0; background:#fff; z-index:80; }
 .navButton { min-height:48px; padding:5px; gap:2px; background:transparent; color:#688397; border:0; border-radius:6px; font-size:11px; }
 .navButton.active { background:#e9f4fc; color:#176fae; }
 .navButton span { color:inherit; font-size:11px; }
 .navButton span:first-child { font-size:19px; line-height:1; }
 .detailPanel,.protocolCard { padding:18px; }
 .detailHero { padding:22px 18px; margin:0 0 18px; }
 .detailHero h1 { font-size:32px; }
 .detailHeroMeta strong { font-size:15px; }
}
@media(max-width:360px) { .topBar { gap:6px; padding:12px; } .topLogo { width:116px; } .topBar .syncPill { padding:5px; } }
/* Card rhythm is explicit so legacy alignment cannot shift individual fields. */
.siteCard { gap:12px; padding:20px; border-color:#d7e3ed; }
.siteIdentity,.adminCombinedIdentity { padding:0; padding-inline:0; margin:0; text-align:left; align-items:flex-start; }
.overviewAppointment { display:block; width:100%; margin:0; padding:0; text-align:left; }
.overviewAppointment > span { display:block; font-size:10px; line-height:1.5; color:#6c8499; text-transform:uppercase; }
.overviewAppointment > strong { display:block; margin-top:3px; font-size:18px; line-height:1.4; color:var(--ink); text-align:left; }
.detailRoofSlides { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; }
.detailRoofSlide { flex:0 0 100%; min-width:0; aspect-ratio:4/3; padding:0; border:0; border-radius:6px; background:#f4f8fb; scroll-snap-align:start; display:flex; align-items:center; justify-content:center; cursor:zoom-in; }
.detailRoofSlide img { display:block; width:100%; height:100%; object-fit:contain; }
.detailRoofNavigation { display:flex; align-items:center; justify-content:center; gap:20px; margin-top:12px; font-size:12px; color:#526b82; }
.detailRoofNavigation button { display:grid; place-items:center; width:40px; height:40px; padding:0; background:#eef5fa; border:1px solid #d7e3ed; border-radius:6px; color:#176fae; }
.detailRoofNavigation button:disabled { opacity:.35; cursor:default; }
.teamAssignmentForm { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:16px; }
.teamAssignmentForm label { font-size:13px; }
.assignmentShortcut { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; min-height:40px; background:#edf6fd; border:1px solid #a7cce7; border-radius:6px; color:#176fae; font-size:13px; font-weight:600; }
.todayActions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.teamAssignmentPanel { scroll-margin-top:90px; border-color:#a7cce7; }
.teamAssignmentForm select { flex:1; min-width:140px; min-height:44px; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:6px; padding:8px; }
.teamAssignmentForm [role="status"] { flex-basis:100%; margin:0; font-size:13px; }
.acRequirements { margin:0; }
.acRequirements > div { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; }
.acRequirements dd { margin:0; text-align:right; }
.acRequirements dd[data-required="yes"] { color:#176fae; font-weight:700; }
.acRequirements dd[data-required="unknown"] { color:#926015; }
.acRequirements small { display:block; font-weight:400; color:var(--muted); }
.siteCardTopline { gap:16px; align-items:stretch; }
.siteCard .customerNameButton { font-size:20px; line-height:1.3; }
.siteCard .overviewAddress { font-size:12px; line-height:1.5; }
.siteCard .siteDateHero { padding:0; margin:0; gap:3px; align-items:flex-start; justify-content:flex-start; text-align:left; }
.siteCard .siteDateHero span,.siteCard .siteDateText { align-self:flex-start; justify-self:start; text-align:left; white-space:normal; }
.siteCard .siteDateHero span { font-size:10px; color:#6c8499; }
.siteCard .siteDateText { font-size:18px; line-height:1.4; }
.siteCardMeta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0; }
.siteCardMeta .badge,.siteCardMeta .siteTeamBadge { align-self:center; margin:0; padding:4px 8px; line-height:1.4; }
.siteCardMeta .roofPreviewButton { margin-left:auto; padding:5px 0 5px 8px; min-height:32px; font-size:11px; line-height:1.4; }
.siteCard .siteSystemLine { padding:12px 0 0; gap:3px; }
.siteCard .progressWrap { padding:3px 0 2px; gap:7px; }
.siteCard .siteActions { margin-top:4px; padding-top:12px; border-top:1px solid #e8eff5; }
.siteCard .siteActions button { min-height:42px; }
/* Quiet surfaces and native typography keep the daily workspace easy to scan. */
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:var(--workspace-background); color:var(--ink); -webkit-font-smoothing:antialiased; }
.topBar { border-bottom-color:#e4e8ed; }
.pageIntro { padding-bottom:32px; }
.pageIntro h1 { font-size:32px; font-weight:700; line-height:1.2; }
.pageIntro .eyebrow { color:var(--muted); font-size:11px; }
.pageIntro p { color:var(--muted); }
.nextTodayHeader { margin-bottom:16px; }
.nextTodayHeader h2,.nextTeam h2 { font-size:16px; }
.nextTodayRow { grid-template-columns:72px minmax(0,1fr); gap:16px; padding:22px; border:1px solid #e4e8ed; border-radius:8px; box-shadow:0 3px 14px rgb(17 35 57 / 4%); }
.todayCardHeading { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.todayTradeTag { font-size:11px; font-weight:600; color:#275b82; }
.todayCardDate { font-size:11px; color:#69798b; }
.nextTodayRow img { grid-column:1; grid-row:2; width:72px; height:72px; object-fit:cover; border-radius:6px; }
.todayCardIdentity { grid-column:2; min-width:0; }
.nextTodayRow h3 { font-size:22px; font-weight:650; line-height:1.25; margin:0 0 6px; }
.nextTodayRow p { color:var(--muted); font-size:13px; line-height:1.5; margin:0; }
.todayActions { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px 16px; border-top:1px solid #edf0f3; padding-top:16px; }
.nextTodayRow .primaryButton { flex:1; margin:0; min-height:44px; font-size:13px; padding:10px 14px; justify-content:space-between; }
.assignmentShortcut { border:0; background:transparent; color:#41617e; padding:8px 2px; min-height:44px; gap:7px; font-size:12px; }
.assignmentShortcut:hover { color:#176fae; background:#f0f5fa; }
.assignmentShortcut .lucide { width:16px; height:16px; }
.nextTeam { border-color:#e1e6ed; }
.nextTeam li { font-size:13px; color:#43546a; }
.memberAvatar { background:#e8edf3; color:#45627e; width:34px; height:34px; }
.overviewSearch input { background:var(--surface); border-color:var(--line); color:var(--ink); }
.overviewSearch input::placeholder { color:#788595; }
.statusStrip { border-color:transparent; background:transparent; }
.statusStripItem + .statusStripItem { border-left:1px solid #e0e5ec; border-radius:0; }
.statusStripItem.active { border-radius:5px; background:#e4edf6; }
.overviewFilterTabs { background:var(--control-soft); border-color:transparent; padding:4px; }
.adminFilterButton { color:#637185; font-size:13px; }
.adminFilterButton.active { background:#fff; color:#173c60; box-shadow:0 1px 4px rgb(19 39 63 / 10%); }
.overviewTeamFilters { gap:4px; padding:0 0 8px; border-bottom:1px solid #e0e5ec; }
.overviewTeamFilterButton { border:0; background:transparent; color:#647387; font-size:12px; padding:8px 10px; }
.overviewTeamFilterButton.active { background:#e5eef7; color:#175a8c; }
.overviewMonthToggle { border-bottom-color:#e1e6ed; padding:18px 0; }
.overviewMonthTitle { font-size:16px; }
.overviewMonthCount { color:#738092; font-size:12px; }
.siteCard { border-color:#e1e6ed; box-shadow:0 2px 10px rgb(17 35 57 / 3%); }
.siteCard .customerNameButton { font-weight:650; }
.siteCard .overviewAddress { color:var(--muted); font-size:13px; }
.siteCard:hover { border-color:#bfcfdf; }
.secondaryButton { background:var(--control-soft); border-color:var(--line); color:var(--ink); }
.detailPanel,.protocolCard,.adminPanel,.projectImagesPanel { border-color:#e2e7ed; }
.nextOfflineButton { color:#536f89; font-size:12px; }
.previewNotice { opacity:.85; }
.nextStorage { color:#487460; }
@media(max-width:760px) {
 .appShell { padding-inline:20px; }
 .topBar,.topBar:has(#backButton.hidden) { margin-inline:-20px; padding-inline:20px; }
 .pageIntro { padding:8px 0 28px; }
 .pageIntro h1 { font-size:30px; }
 .pageIntro p { font-size:14px; }
 .nextWelcome { gap:28px; margin-bottom:32px; }
 .nextTodayHeader h2 { font-size:15px; }
 .nextOfflineButton { font-size:11px; }
 .nextTodayRow { padding:18px; gap:14px; margin-bottom:14px; grid-template-columns:64px minmax(0,1fr); }
 .nextTodayRow img { width:64px; height:72px; }
 .nextTodayRow h3 { font-size:21px; }
 .nextTodayRow p { font-size:12px; }
 .todayActions { gap:10px; }
 .nextTodayRow .primaryButton { font-size:12px; padding:10px 12px; gap:8px; }
 .nextTeam { padding-top:4px; }
 .nextTeam ul { gap:14px 20px; }
 .nextTeam li { font-size:12px; }
 .dashboardOverviewTools { gap:12px; }
 .overviewTeamFilters { flex-wrap:nowrap; overflow-x:auto; }
 .overviewTeamFilterButton { flex:0 0 auto; white-space:nowrap; padding-inline:10px; }
}
/* The current assignment is the visual anchor; supporting controls stay quiet. */
.nextWelcome { grid-template-columns:minmax(0,1fr); gap:0; margin-bottom:24px; }
.nextTodayRow { grid-template-columns:180px minmax(0,1fr); column-gap:24px; row-gap:14px; padding:0 24px 0 0; border:0; background:var(--highlight-background); color:#fff; box-shadow:0 8px 24px rgb(13 34 58 / 10%); }
.todayVisual { grid-column:1; grid-row:1/4; align-self:stretch; position:relative; min-height:240px; overflow:hidden; }
.nextTodayRow .todayVisual img { width:100%; height:100%; position:absolute; inset:0; object-fit:cover; border-radius:0; }
.todayVisualLabel { position:absolute; left:14px; bottom:14px; background:#fff; color:#153654; padding:5px 9px; border-radius:4px; font-size:10px; font-weight:600; }
.todayCardHeading { grid-column:2; margin-top:22px; }
.todayTradeTag { color:#b9ddf6; font-size:12px; }
.todayCardDate { color:#c1d1df; font-size:12px; }
.todayCardIdentity { grid-column:2; }
.nextTodayRow h3 { color:#fff; font-size:26px; font-weight:650; line-height:1.2; }
.nextTodayRow p { color:#d0deea; font-size:13px; display:flex; gap:7px; align-items:flex-start; }
.todayCardIdentity .lucide { width:15px; height:18px; }
.todayActions { grid-column:2; border-top:1px solid #36516c; padding-top:14px; margin-bottom:22px; }
.nextTodayRow .primaryButton { background:#fff; border-color:#fff; color:#133b5e; font-weight:600; min-height:44px; }
.nextTodayRow .primaryButton:hover { background:#e9f3fa; }
.nextTodayRow .assignmentShortcut { color:#d2e4f2; }
.nextTodayRow .assignmentShortcut:hover { background:#254867; }
.nextTeam { padding:0; border:0; }
.teamDisclosure { border-bottom:1px solid #dde4eb; }
.teamDisclosure summary { display:flex; align-items:center; gap:14px; padding:20px 0; cursor:pointer; list-style:none; }
.teamDisclosure summary::-webkit-details-marker { display:none; }
.teamDisclosure summary:focus-visible { outline:2px solid #489fdf; outline-offset:3px; }
.teamDisclosure summary > .lucide { margin-left:auto; color:#78899b; width:16px; transition:transform .18s ease; }
.teamDisclosure[open] summary > .lucide { transform:rotate(180deg); }
.teamDisclosure h2 { font-size:13px; margin:0 0 3px; }
.teamDisclosure p { font-size:12px; color:#6b7b8d; margin:0; }
.teamAvatarStack { display:flex; padding-left:0; }
.teamAvatarStack .memberAvatar { width:36px; height:36px; border:3px solid var(--surface-soft); background:var(--control-soft); color:var(--text-secondary); }
.teamAvatarStack .memberAvatar + .memberAvatar { margin-left:-10px; }
.teamDisclosure ul { display:flex; flex-wrap:wrap; gap:14px 22px; padding:0 0 20px; }
.dashboardOverviewTools { margin-bottom:14px; }
.overviewSearch input { border-color:#dfe6ec; background:#fff; height:48px; min-height:48px; }
.overviewMonth { margin-bottom:6px; }
.dashboardFooterActions { padding-top:14px; margin-top:12px; }
@media(max-width:760px) {
 .appShell { padding-inline:22px; }
 .topBar,.topBar:has(#backButton.hidden) { width:calc(100% + 44px); max-width:none; height:auto; min-height:calc(74px + env(safe-area-inset-top,0px)); margin-inline:-22px; padding:calc(14px + env(safe-area-inset-top,0px)) calc(22px + env(safe-area-inset-right,0px)) 14px calc(22px + env(safe-area-inset-left,0px)); flex-wrap:nowrap; }
 .topBar .homeLogoButton { flex:1 1 138px; min-width:0; margin-right:auto; }
 .topBar .homeLogoButton picture { display:block; width:100%; min-width:0; }
 .topBar .topLogo { display:block; width:138px; max-width:100%; height:38px; object-fit:contain; object-position:left center; }
 .topBar #backButton,.topBar .syncPill,.topBar .adminNotificationWrap,.topBar .languageSwitcher { flex-shrink:0; }
 .pageIntro { padding:14px 0 28px; }
 .pageIntro h1 { font-size:32px; margin:9px 0; }
 .nextTodayHeader { margin-bottom:14px; }
 .nextTodayRow { display:grid; grid-template-columns:minmax(0,1fr); padding:0; row-gap:0; margin-bottom:4px; }
 .todayVisual { grid-column:1; grid-row:1; height:156px; min-height:156px; }
 .nextTodayRow .todayVisual img { object-position:center 42%; }
 .todayCardHeading { grid-column:1; margin:20px 20px 12px; }
 .todayCardIdentity { grid-column:1; margin:0 20px; }
 .nextTodayRow h3 { font-size:26px; margin-bottom:10px; }
 .nextTodayRow p { font-size:13px; line-height:1.5; }
 .todayActions { grid-column:1; margin:18px 20px 20px; padding-top:16px; }
 .nextTodayRow .primaryButton { min-height:46px; padding:12px 14px; font-size:13px; }
 .nextWelcome { gap:0; margin-bottom:20px; }
 .dashboardOverviewTools { gap:6px; }
 .statusStrip { height:58px; min-height:58px; align-items:center; }
 .statusStripItem strong { font-size:19px; }
 .statusStripItem span { font-size:11px; }
 .nextTodayHeader h2 { font-size:14px; }
 .nextOfflineButton { font-size:10px; }
 .overviewMonthToggle { min-height:60px; }
}
.pageIntro { border-bottom:1px solid #dce4ec; margin-bottom:26px; }
#siteView .detailHero { background:var(--highlight-background); border:0; padding:28px; margin:0; box-shadow:0 6px 22px rgb(13 34 58 / 8%); }
#siteView .detailHeroContent { gap:24px; }
#siteView .detailHeroMain { gap:16px; }
#siteView .detailHero h1 { font-size:32px; line-height:1.2; font-weight:650; }
#siteView .detailHeroBack { padding:0; min-height:32px; color:#c0d5e5; font-size:12px; }
#siteView .detailHeroKicker { font-size:11px; color:#a9cce5; margin:0; }
#siteView .detailHeroMeta { gap:10px; }
#siteView .detailHeroMeta strong { color:#e3edf5; font-size:14px; line-height:1.5; }
#siteView .detailHeroActions { gap:18px; }
#siteView .detailHeroAdditionalInfo { border-top:1px solid #36516c; padding-top:16px; }
#siteView .detailHeroAdditionalInfo strong { color:#abc6da; font-size:11px; }
#siteView .detailHeroAdditionalInfo p { margin:6px 0 0; color:#d7e5ef; font-size:13px; }
#siteView .detailHeroStartButton { background:var(--surface); color:var(--nav); border:0; min-height:46px; font-size:14px; }
#siteView .detailPanel { background:transparent; border:0; border-bottom:1px solid #dce4ec; border-radius:0; padding:26px 0; margin:0; }
#siteView .detailPanel h2 { font-size:18px; font-weight:650; margin:0 0 18px; }
#siteView .teamAssignmentPanel { padding:20px 0; }
.assignmentSummary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; }
.assignmentSummary span { display:block; color:#6b7d8f; font-size:11px; margin-bottom:4px; }
.assignmentSummary strong { font-size:16px; color:#173b5c; }
.assignmentSummary p { margin:0; color:#6b7d8f; font-size:12px; }
.assignmentEditor { margin-top:8px; }
.assignmentEditor summary { color:#176fae; font-size:12px; font-weight:600; cursor:pointer; padding:8px 0; width:fit-content; }
.teamAssignmentForm { margin-top:6px; }
#siteView .detailList { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:0; }
#siteView .detailList > div:last-child { grid-column:1/-1; }
#siteView .detailList dt { color:#738295; font-size:11px; margin-bottom:5px; }
#siteView .detailList dd { margin:0; font-size:15px; line-height:1.5; overflow-wrap:anywhere; }
#siteView .detailRoofSlide { background:#eaf0f5; }
#siteView .materialTradeGroup { padding:0; margin:0; border:0; background:transparent; }
#siteView .materialTradeGroup h3 { font-size:11px; text-transform:uppercase; color:#738295; margin:0 0 10px; }
#siteView :is(.materialInfoCard,.materialTextLine,.materialModuleCard,.materialDeviceCard,.materialRoofTileCard,.materialEmergencyPowerCard,.materialMeterCabinetCard) { background:transparent; border:0; border-bottom:1px solid #e1e7ed; border-radius:0; padding:16px 0; margin:0; }
#siteView .stepList { gap:0; }
#siteView .imageTabs { background:var(--control-soft); padding:4px; border:0; border-radius:6px; gap:4px; }
#siteView .imageTabButton { background:transparent; border:0; color:#63768a; font-size:13px; min-height:40px; }
#siteView .imageTabButton.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 4px rgb(19 39 63 / 8%); border-radius:4px; }
@media(max-width:760px) {
 #siteView .detailHero { padding:22px; }
 #siteView .detailHero h1 { font-size:28px; }
 #siteView .detailList { gap:18px 14px; }
 #siteView .detailList dd { font-size:14px; }
 .teamAssignmentForm { display:grid; grid-template-columns:minmax(0,1fr) auto; }
 .teamAssignmentForm label,.teamAssignmentForm [role="status"] { grid-column:1/-1; }
 .teamAssignmentForm select { min-width:0; width:100%; }
}
.todayRoofPreview { display:block; width:100%; margin:0; padding:0; border:0; border-radius:0; background:#edf3f8; color:#526b82; cursor:zoom-in; }
.todayRoofPreview:disabled { opacity:1; cursor:default; }
.nextTodayRow .todayRoofPreview img { object-fit:contain; object-position:center; padding:10px 10px 38px; }
.todayRoofPreview .todayVisualLabel { display:flex; align-items:center; gap:6px; left:12px; bottom:10px; padding:5px 8px; background:rgb(255 255 255 / 92%); color:#385b77; font-size:11px; font-weight:500; }
.todayVisualLabel .lucide { width:13px; height:13px; }
.todayRoofState { display:block; padding:24px 16px; font-size:12px; line-height:1.5; }
.todayRoofPreview:focus-visible { outline-offset:-4px; }
.nextTodayRow[data-today-card],.siteCard[data-card-details] { cursor:pointer; }
.nextTodayRow[data-today-card]:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.todayCardIdentity .todayRouteLink { display:inline-flex; align-items:center; gap:7px; max-width:100%; color:inherit; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.todayRouteLink .lucide { width:14px; height:14px; flex-shrink:0; }
.teamMemberGroups { display:grid; gap:20px; padding:0 0 20px; }
.teamMemberGroup { min-width:0; }
.teamMemberGroup + .teamMemberGroup { border-top:1px solid var(--line); padding-top:16px; }
.teamMemberGroup h3 { display:flex; align-items:center; gap:8px; margin:0 0 12px; color:var(--ink); font-size:13px; }
.teamMemberGroup h3 span { color:var(--muted); font-size:12px; }
.teamDisclosure .teamMemberGroup ul { margin:0; padding:0; }
.teamDisclosure .teamGroupEmpty { color:var(--muted); font-size:12px; }
.nextToday { min-width:0; overflow:hidden; }
.nextTodayRow { touch-action:auto; }
.homeCarouselNav { display:flex; justify-content:center; align-items:center; gap:20px; margin:16px 0 0; }
.homeCarouselNav span { min-width:64px; text-align:center; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }
.homeCarouselNav button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #dbe4ed; border-radius:50%; background:#fff; color:var(--ink); }
.homeCarouselNav button:disabled { opacity:.3; cursor:default; }
.homeCarouselNav button svg { width:20px; height:20px; }
.homeCarouselViewport { position:relative; height:344px; margin:0 -12px; padding:0 12px; overflow:hidden; --drag:0px; }
.homeCarouselViewport .nextTodayRow { position:absolute; inset:8px 12px 16px; height:auto; margin:0; padding:0; box-sizing:border-box; grid-template-columns:40% minmax(0,1fr); grid-template-rows:40px 52px minmax(0,1fr) 86px; gap:0; border:1px solid #dce4eb; background:#fff; color:#141b4d; box-shadow:0 5px 12px rgb(20 27 77 / 8%); transform:translateX(calc(var(--slide-position) * (100% + 16px) + var(--drag))); will-change:transform; }
.jobStatusBand { grid-column:1/-1; grid-row:1; align-self:stretch; display:flex; align-items:center; gap:8px; padding:0 18px; background:#f1f4f7; color:#617080; font-size:12px; font-weight:600; border-bottom:1px solid #e4ebf0; }
.jobStatusBand .lucide { width:16px; height:16px; }
.is-current-job .jobStatusBand { background:transparent; color:#fff; border-bottom:1px solid rgb(255 255 255 / 22%); }
.homeCarouselViewport .nextTodayRow h3 { color:#141b4d; font-size:23px; line-height:1.22; margin:0 0 10px; }
.homeCarouselViewport .nextTodayRow p { color:#53677b; font-size:13px; }
.homeCarouselViewport .todayTradeTag { color:#246b9d; font-size:11px; font-weight:600; }
.homeCarouselViewport .todayCardDate { color:#53677b; font-size:11px; }
.homeCarouselViewport .todayVisual { grid-column:1; grid-row:2/5; background:#f4f7f9; border-right:1px solid #e7edf2; }
.homeCarouselViewport .todayCardHeading { grid-column:2; grid-row:2; margin:0 18px; }
.homeCarouselViewport .todayCardIdentity { grid-column:2; grid-row:3; margin:0 18px; }
.homeCarouselViewport .todayActions { grid-column:2; grid-row:4; margin:0 18px 12px; border-top:1px solid #e7edf2; padding-top:10px; gap:5px; }
.homeCarouselViewport .nextTodayRow .primaryButton { background:#edf5fb; border:1px solid #d1e4f1; color:#164e76; min-height:40px; padding:9px 12px; }
.homeCarouselViewport .nextTodayRow.is-current-job .primaryButton { background:#fff; border-color:#fff; color:#163d69; box-shadow:0 4px 12px rgb(8 28 65 / 14%); }
.homeCarouselViewport .nextTodayRow .assignmentShortcut { color:#53677b; font-size:11px; }
.homeCarouselViewport .nextTodayRow .assignmentShortcut:hover { background:#edf5fb; }
.homeCarouselViewport.is-settling .nextTodayRow { transition:transform 280ms cubic-bezier(.22,.8,.25,1); }
.homeCarouselViewport .todayVisual { min-height:0; height:100%; min-width:0; }
.homeCarouselViewport .todayVisual img { box-sizing:border-box; max-width:100%; max-height:100%; }
.homeCarouselViewport .todayCardHeading { margin-top:0; min-width:0; }
.homeCarouselViewport .todayCardHeading { display:flex; flex-wrap:wrap; align-content:center; gap:5px 10px; }
.currentJobLabel { display:flex; align-items:center; gap:6px; flex-basis:100%; min-height:22px; color:#94d5ff; font-size:12px; font-weight:700; }
.currentJobLabel .lucide { width:15px; height:15px; }
.homeCarouselViewport .nextTodayRow.is-current-job { background:linear-gradient(125deg,#141b4d 0%,#173e73 48%,#247fb2 100%); border-color:#73c7ff; box-shadow:0 0 0 2px rgb(66 159 224 / 16%),0 8px 16px rgb(20 60 112 / 25%); }
.homeCarouselViewport .nextTodayRow:not(.is-current-job) { background:linear-gradient(125deg,rgb(28 112 209 / 24%) 0%,rgb(48 145 226 / 27%) 48%,rgb(66 159 224 / 18%) 100%); border-color:rgb(66 159 224 / 35%); box-shadow:0 4px 12px rgb(36 111 173 / 8%); }
.homeCarouselViewport .nextTodayRow:not(.is-current-job) .jobStatusBand { background:transparent; color:#243b58; border-bottom-color:rgb(255 255 255 / 25%); }
.homeCarouselViewport .nextTodayRow:not(.is-current-job) .todayVisual { background:rgb(240 249 255 / 55%); border-color:rgb(255 255 255 / 25%); }
.homeCarouselViewport .nextTodayRow:not(.is-current-job) .primaryButton { background:rgb(255 255 255 / 80%); border-color:rgb(255 255 255 / 60%); color:#163d69; }
.homeCarouselViewport .nextTodayRow:not(.is-current-job) :is(p,.todayCardDate,.assignmentShortcut) { color:#29445e; }
.homeCarouselViewport .nextTodayRow:not(.is-current-job) .todayTradeTag { color:#194e77; }
.homeCarouselViewport .is-current-job h3 { color:#fff; }
.homeCarouselViewport .is-current-job p,.homeCarouselViewport .is-current-job .todayCardDate { color:#d9eafb; }
.homeCarouselViewport .is-current-job .todayTradeTag { color:#a9dfff; }
.homeCarouselViewport .is-current-job .assignmentShortcut { color:#d9eafb; }
.homeCarouselViewport .is-current-job .todayActions { border-top-color:rgb(255 255 255 / 20%); }
.homeCarouselViewport .is-current-job .todayVisual { background:#e9f2f8; border-color:rgb(255 255 255 / 20%); }
.homeCarouselViewport .todayVisual { align-self:stretch; }
.homeCarouselViewport .todayRoofPreview img { padding:8px 8px 30px; }
.homeCarouselViewport .todayVisualLabel { background:rgb(255 255 255 / 94%); box-shadow:0 2px 8px rgb(20 27 77 / 8%); border:1px solid rgb(255 255 255 / 80%); }
.homeCarouselNav { margin-bottom:20px; scroll-margin-bottom:calc(110px + env(safe-area-inset-bottom,0px)); }
.homeCarouselViewport .todayCardIdentity { align-self:stretch; min-height:0; overflow:auto; scrollbar-width:thin; }
.homeCarouselViewport .todayActions { align-self:stretch; align-content:center; margin-top:0; margin-bottom:16px; }
@media(max-width:700px) {
 .homeCarouselViewport { height:492px; }
 .homeCarouselViewport .nextTodayRow { grid-template-columns:minmax(0,1fr); grid-template-rows:38px 162px 48px minmax(0,1fr) 88px; padding:0; gap:0; }
 .homeCarouselViewport .todayVisual { grid-row:2; grid-column:1; border-right:0; border-bottom:1px solid #e7edf2; }
 .homeCarouselViewport .todayCardHeading { grid-row:3; grid-column:1; margin:0 16px; }
 .homeCarouselViewport .todayCardIdentity { grid-row:4; grid-column:1; margin:0 16px; }
 .homeCarouselViewport .todayActions { grid-row:5; grid-column:1; margin:0 16px 12px; padding-top:10px; }
 .homeCarouselViewport .nextTodayRow h3 { font-size:21px; }
 .homeCarouselViewport .todayActions .primaryButton { flex-basis:100%; }
 .homeCarouselViewport .todayActions .assignmentShortcut { padding:2px 0; }
}
@media(display-mode:standalone) {
 body::after { content:""; position:fixed; top:0; left:0; right:0; height:env(safe-area-inset-top,0px); background:#eef6fb; z-index:90; pointer-events:none; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

/* Admin-only surveys are a separate planning section, never a trade filter. */
.adminInspections { margin:0 0 24px; border:1px solid #c8dce9; border-radius:16px; background:#f6faff; overflow:hidden; }
.adminInspections summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:16px; padding:20px 24px; }
.adminInspections summary::-webkit-details-marker { display:none; }
.adminInspections summary small { display:block; color:#367396; font-size:10px; font-weight:700; letter-spacing:1.5px; margin-bottom:6px; }
.adminInspections summary strong { display:block; color:#17294a; font-size:21px; }
.adminInspectionIcon { display:grid; place-items:center; width:48px; height:48px; border-radius:12px; background:#e1f0fa; color:#157ca6; font-size:32px; flex-shrink:0; }
.inspectionHint { display:block; margin-top:6px; color:#5d7285; font-size:13px; }
.inspectionCount { display:inline-block; vertical-align:middle; border-radius:20px; padding:3px 9px; background:#d9edf9; font-size:13px; }
.inspectionChevron { margin-left:auto; font-size:24px; color:#367396; }
.adminInspections[open] .inspectionChevron { transform:rotate(180deg); }
.adminInspectionList { padding:0 24px 8px; }
.adminInspectionRow { padding:20px 0; border-top:1px solid #dce6ee; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.adminInspectionRow h3 { margin:6px 0; font-size:18px; }.adminInspectionRow p { margin:0; color:#5d7285; font-size:14px; }.inspectionDate { font-weight:700; color:#157ca6; font-size:14px; }
@media(max-width:600px) { .adminInspections summary { padding:16px; gap:12px; }.adminInspectionList { padding:0 16px 4px; }.adminInspectionRow { flex-direction:column; align-items:flex-start; gap:12px; }.adminInspectionRow button { width:100%; }.adminInspections summary strong { font-size:18px; }.inspectionHint { font-size:12px; } }

/* Consistent native selects, including Safari, while retaining keyboard accessibility. */
#app select { -webkit-appearance:none; appearance:none; box-sizing:border-box; min-height:46px; padding:11px 44px 11px 14px; border:1px solid #bbcedf; border-radius:10px; background-color:#fff; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%232b6584' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; color:#17294a; font-family:inherit; font-size:16px; line-height:1.4; box-shadow:none; }
#app select:focus-visible { border-color:#288bc5; outline:3px solid #cce9fa; outline-offset:2px; }
#app select:disabled { opacity:.6; cursor:not-allowed; }
#app .teamAssignmentForm { display:grid; grid-template-columns:minmax(180px,1fr) auto; align-items:end; gap:10px 14px; max-width:700px; margin:18px 0; }
#app .teamAssignmentForm label { grid-column:1/-1; font-size:14px; font-weight:600; color:#304c68; }
#app .teamAssignmentForm select { min-width:0; width:100%; }
#app .teamAssignmentForm button { min-height:46px; width:auto; padding:10px 24px; border-radius:10px; }
#adminInspectionOverview #pendingInspections { margin:18px 0 12px; padding:20px 0 0; border:0; border-top:1px solid #dce6ee; background:transparent; }
#adminInspectionOverview .inspectionGrid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:12px; }
#adminInspectionOverview .inspectionCard { padding:18px; background:#fff; border:1px solid #dce6ee; border-radius:12px; }
#adminInspectionOverview #pendingInspections>h3 { margin:0 0 6px; font-size:17px; }
#adminInspectionOverview #pendingInspections>p { color:#5d7285; font-size:14px; }
@media(max-width:480px) { #app .teamAssignmentForm { grid-template-columns:minmax(0,1fr); } #app .teamAssignmentForm button { width:100%; } }
