@media screen{
:root{--app-card-title-size:1.125rem;--app-card-description-size:1rem}
:is(.office-task .office-task-title,.dashboard-card>h2,.setting-card>h2,.login-option h2){font-size:var(--app-card-title-size)}
:is(.office-task p,.dashboard-card>p,.setting-card>p){font-size:var(--app-card-description-size)}
}
@media screen{
html[data-theme]{background:var(--theme-bg);color:var(--theme-text)}html[data-theme] body{min-height:max(100dvh,var(--disclosure-viewport-floor,0px));background:var(--theme-bg);color:var(--theme-text)}
html[data-theme] :where(header,dialog,.panel,.card,.setup,.work,.totals>div,.submission-panel,.login,.table-wrap,.nav-menu>div,.dropdown-options,.time-picker-heading,.dialog-heading,.submit-dialog-actions,.saved-job,.submitted-sheet,.report-card,.tool-action,.board-card,.board-post,.auth-page main,.messaging-layout,.chat-pane,.chat-header,#conversation-sidebar,.profile-photo-form,.dashboard-card,.setting-card,.office-task,.login-option,.admin-login-card,.tech-profile-tile,#tech-profile-dialog){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme] :is(h1,h2,h3,h4,label,strong,.brand,.saved-location,.day-title,.check,.on-call,.apprentice-indicator){color:var(--theme-text)}
html[data-theme] :is(p,small,.muted,.storage,.date,.foot,.hint,.report-meta,.saved-date,.saved-times,.saved-invoice,.saved-payment,.submitted-date,.intro,.eyebrow,.subtitle,.conversation-preview,.conversation-time,.chat-peer-role,.bubble-time,.chat-placeholder,.cloud-backup-help,#saved,.totals span){color:var(--theme-muted)}
html[data-theme] :is(a,.auto){color:var(--theme-accent)}
html[data-theme] :is(button,.button){background:var(--theme-accent);color:var(--theme-accent-ink);border-color:var(--theme-accent)}
html[data-theme] :is(.secondary,.office-login,.time-trigger,.dropdown-trigger,.theme-choice,.tool-action,.delete){background:var(--theme-surface)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
html[data-theme] :is(input,select,textarea){background-color:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-theme] input::placeholder,html[data-theme] textarea::placeholder{color:var(--theme-muted);opacity:1}html[data-theme] input[type=checkbox]{accent-color:var(--theme-accent)}
html[data-theme] :is(.day-header,.day-group:nth-child(even),.hours-result,.notice,.tech-main-menu,.holiday-job,.chat-bubble,.message-bubble,.day-group>summary,.conversation-row:hover,.conversation-row.active,.conversation-row.selected,.nav-menu a:hover,.gap-item,.photo-review-row,.ot-block,.check,.shared-times-preview,.tool-account-summary){background:var(--theme-soft)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme] :is(.totals .ot-total,.logo,th,.chat-bubble.own,.message-bubble.mine,.bubble.own){background:var(--theme-accent)!important;color:var(--theme-accent-ink)!important}html[data-theme] .ot-total :is(span,strong,small){color:var(--theme-accent-ink)}
html[data-theme] .paper-table .paper-summary :is(span,small){color:var(--theme-accent-ink)}
html[data-theme] :is(.job,.employee-row,.tool-transaction,.note,.cloud-backup-row,.section-heading,.chat-header,td,.day-group){border-color:var(--theme-border)}
html[data-theme] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--theme-accent);outline-offset:3px}
html[data-mode=dark] :is(.danger,.error,.invalid,.tool-purchase){color:#ffada7!important}html[data-mode=dark] .error{background:#4b252b!important;color:#ffd0d0!important;border-color:#dc8585!important}html[data-mode=dark] :is(.tool-payment,.tool-balance,.submitted,.submitted-status.approved,.has-balance){color:#9de3b2!important;border-color:#66ac7e!important}
html[data-mode=dark] :is(.overdue,.testing-access-banner,.gap-warning,.overdue-alert){background:#44351a!important;color:#ffe1a3!important;border-color:#b5934b!important}html[data-mode=dark] :is(.is-on-call,.ot-check.selected,.split-check.selected,.board-card.urgent){background:#4b252b!important;color:#ffd0d0!important;border-color:#dc8585!important}
html[data-theme] .message-bubble.mine :is(small,p,.message-subject){color:var(--theme-accent-ink)}html[data-theme] :is(.dropdown-options button,#time-options button){background:var(--theme-surface)!important;color:var(--theme-text)!important}html[data-theme] :is(.dropdown-options button[aria-selected=true],#time-options button.selected){background:var(--theme-soft)!important;color:var(--theme-accent)!important}html[data-theme] .day-group:nth-child(even)>summary{background:var(--theme-soft)!important}html[data-mode=dark] .board-post[data-level=urgent]{background:#4b252b!important;color:#ffd0d0!important;border-color:#dc8585!important}html[data-mode=dark] .board-post[data-level=important]{background:#44351a!important;color:#ffe1a3!important;border-color:#b5934b!important}html[data-mode=dark] .board-post[data-level=info]{background:var(--theme-soft)!important;color:var(--theme-text)!important}html[data-theme] :is(.day-total,.day-with,.saved-hours){color:var(--theme-accent)}
.theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0 28px}.theme-choice{display:flex;flex-direction:column;align-items:stretch;gap:14px;padding:16px;min-height:120px;border:2px solid var(--theme-border);border-radius:12px;text-align:left}.theme-choice[aria-pressed=true]{border-color:var(--theme-accent)!important;box-shadow:0 0 0 2px var(--theme-accent)}.theme-swatches{display:flex;overflow:hidden;height:42px;border-radius:7px;border:1px solid var(--theme-border)}.theme-swatches>span{flex:1}.main-menu-link{white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--theme-border);border-radius:7px;text-decoration:none}
}
@media screen{
/* Color accents stay on the edges; entries remain on solid surfaces. */
html[data-theme=color-pop] body{background-image:linear-gradient(#fff3fc55,#fff3fc55),url('/patterns/color-pop.svg');background-size:auto,480px 320px;background-attachment:fixed}
html[data-theme=color-pop] header{border-image:linear-gradient(90deg,#03b8d0,#f14293,#ffca36,#7b47c9,#67c88a) 1;border-bottom-width:7px!important}
html[data-theme=color-pop] :is(.totals>div:nth-of-type(1),.day-group:nth-of-type(5n+1)){border-top:4px solid #0b9eb9!important}
html[data-theme=color-pop] :is(.totals>div:nth-of-type(2),.day-group:nth-of-type(5n+2)){border-top:4px solid #d32a7d!important}
html[data-theme=color-pop] :is(.totals>div:nth-of-type(3),.day-group:nth-of-type(5n+3)){border-top:4px solid #e1a400!important}
html[data-theme=color-pop] :is(.totals>div:nth-of-type(4),.day-group:nth-of-type(5n+4)){border-top:4px solid #7b47c9!important}
html[data-theme=color-pop] .day-group:nth-of-type(5n){border-top:4px solid #289859!important}
html[data-theme=retro-neon] body{background-image:linear-gradient(#110c25eb,#110c25eb),repeating-linear-gradient(0deg,transparent 0 43px,#45f4e0 44px 45px),repeating-linear-gradient(90deg,transparent 0 43px,#ff5ac8 44px 45px);background-attachment:fixed}
html[data-theme=retro-neon] header{border-bottom:2px solid #ff5ac8!important;box-shadow:0 3px 15px #ff5ac833}
html[data-theme=retro-neon] :is(.panel,.setup,.work,.submission-panel){box-shadow:0 0 0 1px #9675ff44,0 6px 24px #08031666}
html[data-theme=retro-neon] :is(h1,.brand){text-shadow:0 0 15px #ff5ac855}
html[data-theme=retro-neon] :is(.day-group:nth-of-type(odd),.totals>div:nth-of-type(odd)){border-left:3px solid #ff5ac8!important}
html[data-theme=retro-neon] :is(.day-group:nth-of-type(even),.totals>div:nth-of-type(even)){border-left:3px solid #45f4e0!important}
html[data-theme=memphis] body{background-image:linear-gradient(#10111bec,#10111bec),url('/patterns/memphis.svg');background-size:auto,420px 240px;background-attachment:fixed}
html[data-theme=memphis] header{border-bottom:8px solid transparent!important;border-image:linear-gradient(90deg,#04bbc9 0 25%,#f02b9b 25% 50%,#ffe438 50% 75%,#9c7ae3 75%) 1}
html[data-theme=memphis] :is(.panel,.setup,.work,.submission-panel){border-radius:4px!important;box-shadow:5px 5px 0 #04bbc93d}
html[data-theme=memphis] .day-group:nth-of-type(3n+1){border-left:5px solid #f02b9b!important}html[data-theme=memphis] .day-group:nth-of-type(3n+2){border-left:5px solid #ffe438!important}html[data-theme=memphis] .day-group:nth-of-type(3n){border-left:5px solid #9c7ae3!important}
html[data-theme=jazz-cup] body{background-image:linear-gradient(#edfafaad,#edfafaad),url('/patterns/jazz.svg');background-size:auto,500px 180px;background-attachment:fixed}
html[data-theme=jazz-cup] header{border-bottom:6px solid #12a8af!important;box-shadow:0 3px 0 #764383}
html[data-theme=jazz-cup] :is(.panel,.setup,.submission-panel){border-top:4px solid #12a8af!important}
html[data-theme=jazz-cup] .day-group:nth-of-type(odd){border-left:4px solid #12a8af!important}html[data-theme=jazz-cup] .day-group:nth-of-type(even){border-left:4px solid #764383!important}
.theme-choice[data-preview=memphis] .theme-swatches{background:#11121b url('/patterns/memphis.svg') center/210px 120px}.theme-choice[data-preview=jazz-cup] .theme-swatches{background:#fcfcf7 url('/patterns/jazz.svg') center/250px 90px}.theme-choice:is([data-preview=memphis],[data-preview=jazz-cup]) .theme-swatches>span{visibility:hidden}
.theme-choice[data-preview=retro-neon] .theme-swatches{box-shadow:0 0 10px #45f4e055}.theme-choice[data-preview=color-pop] .theme-swatches{transform:rotate(-2deg)}
}
@media screen{
/* Explicit child colors prevent legacy light-theme colors leaking into dark fields. */
html[data-theme] :is(.totals,.conversation-row,.person-avatar,.tech-alerts>section,#tool-account-summary){background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-theme] :is(.conversation-row.selected,.conversation-row:hover,.person-avatar,#tool-account-summary){background:var(--theme-soft)!important}
html[data-theme] :is(.conversation-name,.day-apprentices,.day-title,.panel-label,.employee-row>span,.submitted-status){color:var(--theme-text)!important}
html[data-theme] :is(.cell-label,.day-count,.conversation-tail,.saved-date span,.job-save span,.hours-result small,.day-title small){color:var(--theme-muted)!important}
html[data-theme] :is(.dropdown-trigger,.time-trigger,.nav-menu summary,.conversation-row) :is(span,strong,small){color:inherit!important}
/* Feedback group counts sit on the same accent background as their heading. */
html[data-theme] .feedback-group-title .feedback-group-count{color:inherit!important}
html[data-theme] label>span:not(.field-dropdown):not(.day-tech){color:inherit}
html[data-theme] :is(.dropdown-value,.dropdown-chevron,.time-trigger span){color:inherit!important}
html[data-theme] :is(.day-toggle,.day-tech-quick .dropdown-trigger,.person-avatar){background:var(--theme-soft)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
html[data-theme] :is(button,.button,th,.message-bubble.mine) :is(strong,b,p,small){color:inherit!important}
html[data-theme] :is(button,.button) :is(.comm-badge,.notification-badge,.conversation-unread){background:#b42323!important;color:white!important}
html[data-theme] .message-bubble small{opacity:1}
html[data-theme] :is(.message-bubble:not(.mine),.message-bubble:not(.mine) p){color:var(--theme-text)!important}
html[data-theme] .message-bubble:not(.mine) small{color:var(--theme-muted)!important}
html[data-theme] .auto{background:transparent!important;color:var(--theme-accent)!important}
html[data-theme] :is(.tool-balance strong,#tool-account-summary strong){color:var(--theme-text)!important}
html[data-mode=dark] :is(.comms-notification,.tech-alerts>section,#tech-local-notices>section,.crew-sync-status){background:var(--theme-soft)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}
html[data-mode=dark] :is(.is-on-call,.ot-check.selected,.split-check.selected) :is(span,strong){color:inherit!important}
html[data-theme] select:not([multiple]):not([size]){appearance:none;background-repeat:no-repeat;background-position:right .65rem center;background-size:16px 16px;padding-right:2.3rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23374758' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")}
html[data-theme][data-mode=dark] select:not([multiple]):not([size]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23e9efff' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")}
html[data-theme=jazz-cup] main{isolation:isolate}html[data-theme=jazz-cup] main>h1,html[data-theme=jazz-cup] #theme-status{width:max-content;max-width:100%;background:#fffefae6;padding:8px 12px;border-radius:8px}
html[data-theme=color-pop] header{background:linear-gradient(110deg,#a5eff9,#ffd8ed 36%,#fff0a5 68%,#cfb9ff)!important;border-bottom-width:10px!important}
html[data-theme=color-pop] :is(.panel,.setup,.work,.submission-panel,.tech-main-menu){border:2px solid #7434ad!important;box-shadow:6px 6px 0 #f1429370,-3px -3px 0 #03b8d070}
html[data-theme=color-pop] .day-group:nth-of-type(5n+1)>summary{background:#d9f8fb!important}html[data-theme=color-pop] .day-group:nth-of-type(5n+2)>summary{background:#ffe0f0!important}html[data-theme=color-pop] .day-group:nth-of-type(5n+3)>summary{background:#fff3ba!important}html[data-theme=color-pop] .day-group:nth-of-type(5n+4)>summary{background:#ebdfff!important}html[data-theme=color-pop] .day-group:nth-of-type(5n)>summary{background:#daf5df!important}
html[data-theme=color-pop] .totals>div:nth-of-type(1){background:#d9f8fb!important}html[data-theme=color-pop] .totals>div:nth-of-type(3){background:#fff3ba!important}html[data-theme=color-pop] .totals>div:nth-of-type(4){background:#ebdfff!important}
html[data-theme=color-pop] :is(h1,.brand){text-shadow:2px 2px 0 #ffffff}
html[data-theme=color-pop] .theme-choice{border-width:3px;box-shadow:3px 3px 0 #7434ad55}
}

@media screen{
html[data-theme=flame-pit] body{background-image:linear-gradient(#141414e8,#141414e8),repeating-conic-gradient(#353535 0 25%,#181818 0 50%);background-size:auto,44px 44px;background-attachment:fixed}
html[data-theme=flame-pit] header{position:relative;border-bottom:3px solid #ff9b37!important;padding-bottom:30px;min-height:100px;height:auto}
html[data-theme=flame-pit] header::after{content:"";position:absolute;inset:auto 0 0;height:26px;background:url('/patterns/flames.svg') repeat-x bottom/210px 60px;pointer-events:none}
html[data-theme=flame-pit] :is(h1,.brand){color:#fff0da;text-shadow:2px 2px 0 #831f16}
html[data-theme=flame-pit] :is(.panel,.setup,.work,.submission-panel){border-color:#9e9690!important;box-shadow:0 3px 0 #5c1b13,0 8px 22px #0006}
html[data-theme=flame-pit] .day-group{border-left:4px solid #f07926!important}html[data-theme=flame-pit] .day-group:nth-of-type(even){border-left-color:#e33e27!important}
html[data-theme=flame-pit] :is(.totals,.tech-main-menu){border-top:4px solid #ffb14c!important}
html[data-theme=flame-pit] .logo{box-shadow:2px 2px 0 #cf3224}
.theme-choice[data-preview=flame-pit] .theme-swatches{background:#141414 url('/patterns/flames.svg') bottom/170px 50px}.theme-choice[data-preview=flame-pit] .theme-swatches>span{visibility:hidden}
}

@media screen {
 html[data-mode=dark] .share-day-dialog .shared-times-preview,
 html[data-mode=dark] .share-day-dialog .shared-times-preview p,
 html[data-mode=dark] .share-preview-sheet tbody td {
  background:var(--theme-surface)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-border)!important;
 }
 html[data-mode=dark] .share-preview-sheet thead th,
 html[data-mode=dark] .share-preview-sheet tfoot :is(th,td) {
  background:var(--theme-soft)!important;
  color:var(--theme-text)!important;
  border-color:var(--theme-border)!important;
 }
}

/* Keep office review warnings readable inside every saved theme. */
html[data-theme] .discrepancy {
  background: var(--theme-soft) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] .discrepancy :is(h3, p, label, strong) {
  color: var(--theme-text) !important;
}


/* The Office task cards follow the selected theme instead of fixed light colors. */
html[data-theme] .office-task-timesheets {
  background: var(--theme-accent) !important;
  color: var(--theme-accent-ink) !important;
  border-color: var(--theme-accent) !important;
}
html[data-theme] .office-task-timesheets :is(.office-task-title, p) {
  color: var(--theme-accent-ink) !important;
}
html[data-theme] .office-task:not(.office-task-timesheets) {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] .office-task:not(.office-task-timesheets) :is(.office-task-title, p) {
  color: var(--theme-text) !important;
}

html[data-theme] #office-notifications {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}
html[data-theme] #office-notifications .notification-item :is(h3, p) {
  color: var(--theme-text) !important;
}
html[data-mode=dark] #office-notifications .notification-item[data-level] {
  background: var(--theme-soft) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

/* Compact, theme-aware confirmations used by receipt actions. */
dialog.app-confirm{box-sizing:border-box;width:min(420px,calc(100% - 32px));max-width:100%;padding:24px;border:1px solid var(--theme-border,#9aaba3);border-radius:14px;background:var(--theme-surface,#fff);color:var(--theme-text,#17283e);box-shadow:0 12px 40px #0004}
dialog.app-confirm::backdrop{background:#0009}
dialog.app-confirm h2{margin:0;font-size:1.25rem;line-height:1.3}
dialog.app-confirm p{margin:12px 0 0;color:var(--theme-muted,var(--theme-text,#17283e));line-height:1.45}
.app-confirm-note{display:block;margin-top:16px;font-weight:600}
.app-confirm-note textarea{box-sizing:border-box;width:100%;margin-top:6px;padding:10px;border:1px solid var(--theme-border,#9aaba3);border-radius:8px;font:inherit;font-size:1rem;font-weight:400;resize:vertical}
.app-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.app-confirm-actions button{min-width:0;min-height:44px}

@media screen{
  html[data-theme=rubber-duck] body{
    background-image:
      linear-gradient(#cceef46b,#cceef46b),
      url('/patterns/rubber-duck.png'),
      repeating-radial-gradient(ellipse at 50% 0%,transparent 0 24px,#95d5e180 25px 26px,transparent 27px 44px);
    background-size:auto,96px 72px,240px 100px;
  }
  html[data-theme=rubber-duck] header{
    background:var(--theme-soft)!important;
    border-bottom:4px solid #ec9c31!important;
  }
  html[data-theme=rubber-duck] .brand::after{
    content:"";
    display:inline-block;
    width:2.5em;
    height:1.875em;
    margin-inline-start:.35em;
    vertical-align:middle;
    background:url('/patterns/rubber-duck.png') center/contain no-repeat;
  }
  .theme-choice[data-preview=rubber-duck] .theme-swatches{
    background:#cceef4 url('/patterns/rubber-duck.png') center/54px 40.5px repeat-x;
  }
  .theme-choice[data-preview=rubber-duck] .theme-swatches>span{visibility:hidden}
}

.release-channel{
 display:inline-block;
 margin-inline-start:.3em;
 padding:.1em .55em;
 border:1px solid var(--theme-border,#52677e);
 border-radius:999px;
 background:var(--theme-soft,#eaf2fb);
 color:var(--theme-muted,#52677e);
 font-size:.875rem;
 font-weight:600;
 letter-spacing:normal;
 line-height:1.35;
 vertical-align:middle;
}

@media screen and (max-width: 600px){
 .theme-grid{gap:8px;margin:12px 0 20px}
 .theme-choice{min-height:82px;padding:10px 12px;gap:7px}
 .theme-swatches{height:30px}
}

/* Keep menu descriptions beside their headings, as on the Themes page. */
.menu-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.menu-title-row > h1 { margin: 0; }
.menu-title-row > p { margin: 0; font-size: 14px; line-height: 1.3; color: var(--theme-muted, #52677e); }

html.toggling-disclosure{overflow-anchor:none}
select[data-inline-select]+.office-select{position:relative}
select[data-inline-select]+.office-select .office-select-trigger{width:100%;min-height:44px;text-align:left}
select[data-inline-select]+.office-select .office-select-list{position:absolute;z-index:50;inset-inline:0;top:calc(100% + 4px);max-height:min(45dvh,20rem);overflow:auto;padding:4px;border:1px solid var(--theme-border,#bac9d9);border-radius:8px;background:var(--theme-surface,#fff)}
select[data-inline-select]+.office-select .office-select-list button{display:block;width:100%;min-height:44px;text-align:left;background:var(--theme-surface,#fff)!important;color:var(--theme-text,#17283e)!important}
select[data-inline-select]+.office-select .office-select-list button:is(:hover,:focus-visible){background:var(--theme-soft,#eaf2fb)!important}

@media screen and (min-width:900px), screen and (min-width:700px) and (min-height:700px){
 main.desktop-content{width:60%;max-width:none;margin-inline:auto}
}

@media screen{
/* Accent only the outer frames around menu groups, plus the marked Tech profile tile. */
html[data-hvac=true] :is(.login-option,.admin-login-card,.tech-profile-tile),
html[data-hvac=true] #tech-main-menu{
  border-color:var(--theme-menu-frame)!important;
}
html[data-hvac=true] :is(.tech-menu .foot,.office-task-group,.dashboard-grid){
  border-radius:12px;
  outline:1px solid var(--theme-menu-frame);
  outline-offset:4px;
}
/* Manifold and Hydronic use one copper token on structural frames across all roles.
   Do not recolor menu items, form fields, status badges, or table-row borders. */
html:is([data-theme=hvac-manifold],[data-theme=hvac-hydronic]) :is(
  .office-header .office-nav, header .nav-menu>div,
  main :is(section,article,details,div,fieldset):is(.panel,.card,.setting-card,.setup,.work,.totals,.submission-panel,.table-wrap,.notes-panel,.preview-wrap),
  #messaging-layout, dialog
):not(:is(button,a,[role=button])){
  border-color:var(--theme-menu-frame)!important;
}
html:is([data-theme=hvac-manifold],[data-theme=hvac-hydronic]) #board-feed:not(:empty){
  border-radius:12px;
  outline:1px solid var(--theme-menu-frame);
  outline-offset:4px;
}
html[data-hvac=true] body{background-attachment:fixed}
html[data-theme=hvac-manifold] body{
  background-image:radial-gradient(ellipse at top left,#23497055,transparent 42%),radial-gradient(ellipse at top right,#782e3550,transparent 42%);
}
html[data-theme=hvac-manifold] header{
  border-bottom:3px solid transparent!important;
  border-image:linear-gradient(90deg,#c98a5b 0 32%,#417eaf 32% 57%,#a54b51 57% 78%,#bb9b65 78% 91%,#aab8c1 91%) 1;
}
html[data-theme=hvac-hydronic] body{
  background-image:repeating-linear-gradient(135deg,transparent 0 18px,#a9633210 18px 19px,transparent 19px 38px),radial-gradient(ellipse at top right,#e7caaa,transparent 65%);
}
html[data-theme=hvac-hydronic] :is(button,.button):not(.theme-choice){border-color:var(--theme-border)}
html[data-theme=hvac-hydronic] header{border-bottom:3px solid #a86a40!important}
html[data-theme=hvac-galvanized] body{
  background-image:repeating-linear-gradient(90deg,transparent 0 39px,#46677e13 39px 40px),repeating-linear-gradient(0deg,transparent 0 39px,#46677e13 39px 40px);
}
html[data-theme=hvac-galvanized] header{border-bottom:3px solid #637e8e!important}
html[data-theme=hvac-sight-glass] body{
  background-image:radial-gradient(ellipse at top right,#5a773333,transparent 45%);
}
html[data-theme=hvac-sight-glass] header{
  border-bottom:3px solid transparent!important;
  border-image:linear-gradient(90deg,#4d745c,#8ca667 65%,#d2bd64) 1;
}
html[data-theme=hvac-burner] body{
  background-image:radial-gradient(ellipse at top left,#a243292f,transparent 43%),radial-gradient(ellipse at bottom right,#b66b2332,transparent 55%);
}
html[data-theme=hvac-burner] header{
  border-bottom:3px solid transparent!important;
  border-image:linear-gradient(90deg,#8d4636,#d98355,#e6ad66,#7e4030) 1;
}
.theme-choice[data-preview^=hvac-]{gap:10px}
.theme-choice-description{font-size:13px;line-height:1.4;color:var(--theme-muted)}
}

.app-confirm-actions.single-action{grid-template-columns:1fr}
.app-confirm-choices{margin:12px 0 0;padding:4px 8px;border:1px solid var(--theme-border,#9aaba3);border-radius:8px;min-inline-size:0}
.app-confirm-choices label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;padding:4px;overflow-wrap:anywhere}
.app-confirm-choices input[type="radio"]{width:auto;margin:0;flex:none}

/* The app designs carry the sign-in study's materials and colors across
   all roles. Print/PDF output and semantic alert colors remain independent. */
@media screen {
 html[data-app-layout="copper-manifold"] {
  --design-header:#192928;--design-header-ink:#f8f6f0;--design-header-muted:#bbc7c2;--design-frame:#d29a71;
 }
 html[data-app-layout="copper-manifold"][data-theme="copper-switchyard"] {
  --design-header:#392846;--design-header-ink:#fff7ff;--design-header-muted:#e2d1eb;--design-frame:#def584;
 }
 html[data-app-layout="copper-manifold"][data-theme="copper-manifold-light"] {
  --design-header:#e3ebe1;--design-header-ink:#23372f;--design-header-muted:#465d52;--design-frame:#9a542e;
 }
 html[data-app-layout="copper-manifold"][data-theme="copper-switchyard-light"] {
  --design-header:#e6d9ee;--design-header-ink:#31233a;--design-header-muted:#604c6a;--design-frame:#5b6b28;
 }
 html[data-app-layout="copper-manifold"][data-theme="copper-manifold-medium"] {
  --design-header:#40554b;--design-header-ink:#fffcf7;--design-header-muted:#eef7ef;--design-frame:#f3bf96;
 }
 html[data-app-layout="copper-manifold"][data-theme="copper-switchyard-medium"] {
  --design-header:#574461;--design-header-ink:#fff7ff;--design-header-muted:#f0e4f5;--design-frame:#dbed88;
 }
 html[data-app-layout="copper-manifold"][data-theme$="-medium"] :is(.danger,.invalid,.tool-purchase){color:var(--theme-danger)!important}
 html[data-palette-locked="true"] {--theme-accent-text:var(--theme-accent-ink)}
 html[data-palette-locked="true"] body > header{
  background:var(--design-header)!important;color:var(--design-header-ink)!important;
  border-bottom:2px solid var(--design-frame)!important;
 }
 html[data-palette-locked="true"] body > header :is(.brand,.office-nav-account,.office-nav-account > strong){color:var(--design-header-ink)!important}
 html[data-palette-locked="true"] body > header :is(.brand :is(small,p),.office-nav-account > span,#saved){color:var(--design-header-muted)!important}
 html[data-palette-locked="true"] body > header :is(.login,.office-login,.button,.nav-menu > summary){
  background:var(--theme-surface)!important;color:var(--theme-accent)!important;border-color:var(--theme-border)!important;
 }
 html[data-app-layout="copper-manifold"] body{
  background-image:linear-gradient(155deg,var(--design-header),var(--theme-bg) 45%);
 }
 html[data-palette-locked="true"] :is(.panel,.work,.setup,.dashboard-card,.office-task,.tech-main-menu,.setting-card,.login-option,.submission-panel){
  box-shadow:inset 0 1px color-mix(in srgb,var(--design-frame) 25%,transparent);
 }
 html[data-palette-locked="true"] :is(.nav-menu > summary,.user-picker-menu,.user-picker-list,.time-options,.review-actions,.day-week-heading,.receipt-list li,.office-notification-list,.day-with-box){
  background-color:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-border);
 }
 html[data-palette-locked="true"] :is(.panel,.report-card,.office-submissions,.employee-row,.feedback-form,.settings-grid) :is(summary,dt){
  color:var(--theme-text);
 }
 html[data-palette-locked="true"] :is(.office-submissions,.employee-row,.feedback-form) td{
  color:var(--theme-text);border-color:var(--theme-border);
 }
 html[data-palette-locked="true"] :is(.office-submissions,.feedback-form) th{color:var(--theme-accent-ink)!important}
 html[data-palette-locked="true"] :is(#roster-status,.ot-heading,.dashboard-card p,.menu-title-row > p,.office-review-meta){
  color:var(--theme-muted)!important;
 }
}

/* A compact, clearly separated destructive confirmation. */
dialog#delete-job-dialog.app-confirm{
 width:min(21rem,calc(100% - 32px));padding:16px;
 background:var(--theme-surface,#fff)!important;
 border:1px solid var(--theme-border,#8798a8);
 border-radius:12px;
 box-shadow:0 12px 42px rgba(0,0,0,.45);
}
html[data-mode="dark"] dialog#delete-job-dialog.app-confirm{
 background:color-mix(in srgb,var(--theme-surface,#182c42) 92%,white)!important;
}
dialog#delete-job-dialog::backdrop{background:rgba(6,12,20,.65)}
dialog#delete-job-dialog form{margin:0}
dialog#delete-job-dialog h2{font-size:1.125rem}
dialog#delete-job-dialog .app-confirm-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px;
}
dialog#delete-job-dialog .app-confirm-actions button{min-width:0;min-height:44px;padding:8px}
dialog#delete-job-dialog button.delete-job-confirm{
 background:#9d2431!important;color:#fff!important;border:1px solid #9d2431!important;
}
html[data-mode="dark"] dialog#delete-job-dialog button.delete-job-confirm{border-color:#fa8f9b!important}
dialog#delete-job-dialog button:focus-visible{outline:2px solid var(--theme-text,#17283e);outline-offset:2px}

/* Unfocused date fields use the same compact display as the rest of the app. */
@media screen {
 .compact-date-input{position:relative;display:block;min-width:0}
 .compact-date-label{position:absolute;inset:0 auto 0 11px;display:flex;align-items:center;max-width:calc(100% - 40px);pointer-events:none;white-space:nowrap;font-weight:400;font-variant-numeric:tabular-nums;color:var(--theme-text,#17283e)}
 .compact-date-label:empty,.compact-date-input:focus-within .compact-date-label{display:none}
 html .compact-date-input:has(.compact-date-label:not(:empty)):not(:focus-within)>input{color:transparent!important}
}


/* Navigation stays, but not the ornamental full-width header band.
   Keep sign-in branding and the Admin-only design preview notice intact. */
@media screen{
 html[data-app-layout] body:not([data-login-layout]) > header{
  background:transparent!important;border:0!important;box-shadow:none!important;
  min-height:0!important;height:auto!important;padding-block:8px!important;
 }
 html[data-app-layout] body:not([data-login-layout]) > header::before,
 html[data-app-layout] body:not([data-login-layout]) > header::after{content:none!important}
 html[data-app-layout] body:not([data-login-layout]) > header :is(.brand,.office-nav-account,.office-nav-account > span,.office-nav-account > strong){
  color:var(--theme-text,#17283e)!important;text-shadow:none;
 }
}
