:root{color-scheme:light;--pine:#460874;--green:#460874;--paper:#f8fafc;--ink:#202c40;--line:#e5eaf2;--muted:#64748b}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 Inter,"Segoe UI",sans-serif}
[hidden]{display:none!important}
.travel-trip-editor{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;min-width:0;grid-column:1/-1}
.travel-trip-editor legend{padding:0 6px;font-weight:650}
.travel-trip-wide{grid-column:1/-1}
.topbar{position:relative;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:56px;padding:8px 20px;background:var(--pine);color:white;font-size:14px}
#primary-search{flex:0 0 auto}
#primary-search form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
#primary-search label:first-child{flex:1;min-width:220px}
#primary-search label{color:white;font-size:.85rem}
#primary-search input,#primary-search select{background:white;color:#183c32}
.profile-search-menu{position:static}
.topbar .profile-search-panel{width:min(640px,calc(100vw - 32px));right:16px;top:calc(100% + 4px);background:white;color:var(--ink);padding:16px;border:1px solid var(--line)}
#primary-search .profile-search-panel label{color:var(--ink)}
#primary-search .profile-search-panel button{background:var(--green);color:white}
.brand{display:inline-flex;align-items:center;gap:4px;margin-right:auto;color:white;font-size:1.55rem;font-weight:700;letter-spacing:-.06em;text-decoration:none;line-height:1}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px 10px 10px 3px;background:#bde7ca;color:var(--pine);font-size:26px;font-weight:850;letter-spacing:-.08em;padding:0 2px 3px 0}
.brand-name strong{color:#bde7ca;font-weight:830}
.brand-wordmark{width:136px;height:34px;overflow:hidden;justify-content:center;background:#fff;border-radius:5px;padding:0 4px;flex:0 0 136px}
.brand-wordmark img{display:block;width:128px;max-width:none;height:auto;flex:0 0 128px}
.topbar:has(#shift-clock:not([hidden])) .brand{margin-right:0}
.topbar:has(#shift-clock:not([hidden])) #training-link{margin-left:auto}
.topbar-section{padding:8px 11px;border-radius:7px;color:white;font-weight:650;text-decoration:none}
.topbar-section:hover,.topbar-section[aria-current="page"]{background:color-mix(in srgb,var(--pine) 80%,white 20%)}
.topbar-section:focus-visible{outline-color:color-mix(in srgb,var(--green) 70%,white 30%)}
.topbar button{color:white;background:transparent;border-color:#7fa196;padding:6px 9px}
.topbar button:hover{background:color-mix(in srgb,var(--pine) 80%,white 20%)}
.topbar #shift-clock{background:#d9f1e5;color:#124c38;border-color:#91c4ae;white-space:nowrap}
.topbar #shift-clock[data-active="true"]{background:#fff0ed;color:#762d20;border-color:#e3afa5}
.topbar #duress-button,.topbar #duress-indicator{background:#fff0ed;color:#762d20;border-color:#e3afa5;white-space:nowrap}
main{width:100%;margin:auto;padding:22px 20px 48px}
.gateway{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start;max-width:940px}
.surface{min-width:0;background:white;border:1px solid var(--line);padding:clamp(15px,3vw,26px);border-radius:14px}
.surface + .surface{margin-top:14px}
.gateway .surface{margin-top:0}
.welcome h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(1.9rem,4vw,3rem);letter-spacing:-.045em;line-height:1.1;margin-bottom:10px}
h2{font-size:1.25rem;letter-spacing:-.018em;margin-bottom:8px}
h3{font-size:1.04rem}
p:last-child{margin-bottom:0}
a{color:var(--green)}
.route-estimate{margin-top:1rem;padding:.7rem 1rem;border:1px solid var(--line);border-radius:7px}
.route-estimate p{margin:0}
.google-route-attribution{font:400 .875rem Roboto,Inter,sans-serif;white-space:nowrap;color:#5e5e5e}
label{display:grid;gap:4px;font-weight:600}
form{display:grid;gap:12px}
form button{justify-self:start}
input,button,select,textarea{font:inherit;border:1px solid #b9c9bd;padding:8px 11px;border-radius:7px;color:inherit;background:white;min-width:0}
input[type=checkbox]{width:auto;margin:0}
button{cursor:pointer;font-weight:650}
button:hover,button[aria-pressed="true"]{background:color-mix(in srgb,var(--green) 10%,white 90%)}
button:disabled{cursor:wait;opacity:.55}
button.primary{background:var(--green);color:white;border-color:var(--green)}
button.primary:hover{background:var(--pine)}
:focus-visible{outline:3px solid var(--green);outline-offset:3px}
textarea{min-height:6rem;resize:vertical}
.note,.secondary,small{color:var(--muted);font-size:.88rem}
.note{margin:0}
.actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#workspace{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:16px}
#workspace.sidebar-open{grid-template-columns:64px minmax(0,1fr)}
#view{min-width:0}
#navigation{display:grid;gap:4px;justify-items:center;align-content:start;padding:0 0 16px;background:transparent;border:0;border-radius:0;position:sticky;top:76px;max-height:calc(100dvh - 90px);overflow-y:auto}
#navigation button{display:grid;place-items:center;width:48px;min-height:44px;border:0;background:transparent;padding:10px;border-radius:8px;color:var(--ink)}
#navigation button:hover{background:var(--site-sidebar-highlight,#e5eff8)}
#navigation button[aria-pressed="true"]{background:var(--site-sidebar-highlight,#e5eff8);color:var(--green);box-shadow:inset 3px 0 var(--green)}
#navigation svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sidebar-group{display:none}
.sidebar-group+button{margin-top:8px}
.workspace-menus{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#account{display:none}
.account-menu-identity{margin:0;padding:8px;color:#d7ebe1;font-size:.88rem;overflow-wrap:anywhere}
.workspace-menu{position:relative}
.workspace-menu summary{padding:7px 10px;cursor:pointer;border-radius:6px;font-weight:650}
.workspace-menu summary{list-style:none;border:1px solid #54796d;font-size:.88rem;white-space:nowrap}
.workspace-menu summary::after{content:'⌄';margin-left:7px}
.workspace-menu summary::-webkit-details-marker{display:none}
.workspace-menu[open] summary{background:color-mix(in srgb,var(--pine) 80%,white 20%)}
.workspace-menu-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:220px;max-height:calc(100dvh - 100px);overflow:auto;padding:8px;background:var(--pine);border-radius:10px;display:grid;gap:5px;box-shadow:0 6px 20px #0003}
.workspace-menu-panel button{text-align:left}
.topbar summary.workspace-category-summary{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:60px;min-height:48px;padding:5px 12px;border-color:color-mix(in srgb,currentColor 65%,transparent);line-height:1}
.topbar summary.workspace-category-summary::after{position:absolute;right:4px;top:5px;margin:0;font-size:10px;line-height:1}
.workspace-category-summary>svg{display:block;flex:0 0 20px;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.workspace-category-caption{display:block;font-size:12px;line-height:14px;font-weight:650;text-align:center;white-space:nowrap}
.topbar summary.workspace-category-summary:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.topbar .workspace-category-summary+.workspace-menu-panel{min-width:min(220px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.topbar .workspace-category-summary+.workspace-menu-panel>button{white-space:normal;overflow-wrap:anywhere}
.topbar .workspace-category-summary+.workspace-menu-panel>button[aria-pressed="true"]{background:var(--paper);color:var(--ink)}
.topbar .workspace-category-summary+.workspace-menu-panel>button:focus-visible{outline:3px solid var(--paper);outline-offset:2px;box-shadow:0 0 0 5px var(--ink)}
@media(max-width:680px){.topbar .mobile-workspace-tools-panel .workspace-category-summary+.workspace-menu-panel{min-width:0;max-width:100%}}
.daily-quote{border-left:3px solid #83ad97;margin:0;padding-left:12px}
.timesheet-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));align-items:end;gap:10px;margin-block:14px}
.form-designer-field{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px}
.form-designer-field label:first-of-type{flex:1;min-width:min(240px,100%)}
.clock-off-dialog{max-width:min(420px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:22px;color:var(--ink)}
.clock-off-dialog::backdrop{background:#102d27aa}
.released-agreement{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f3f5f0;padding:16px;border-radius:8px}
.signature-capture canvas,.recorded-signature canvas{display:block;width:100%;max-width:760px;height:180px;background:#fff;border:1px solid var(--line);border-radius:8px}
.signature-capture canvas{touch-action:none;cursor:crosshair}
.recorded-signature{margin:12px 0}
@media(max-width:680px){
  .topbar{flex-wrap:wrap}
  .workspace-menus{flex-basis:100%;order:1}
  .workspace-menu-panel{position:static;min-width:0;max-width:100%;box-shadow:none}
  #workspace.sidebar-open{grid-template-columns:minmax(0,1fr)}
  #navigation{grid-template-columns:repeat(auto-fit,minmax(48px,1fr));position:static;max-height:none;overflow:visible;gap:4px}
  .sidebar-group+button{margin-top:0}
}
.profile-icon-navigation{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
.profile-icon-navigation>.profile-icon-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 104px;width:104px;min-height:80px;gap:5px;padding:8px 6px;border:1px solid var(--line);background:transparent;color:inherit}
.profile-icon-tab>svg{display:block;flex:0 0 24px;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.profile-icon-tab__caption{display:block;max-width:100%;font-size:11.5px;font-weight:600;line-height:1.2;text-align:center;white-space:normal;overflow-wrap:anywhere}
.profile-icon-navigation>.profile-icon-tab[aria-pressed="true"]{border-color:var(--green);box-shadow:inset 0 -3px var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}
.profile-icon-navigation>.profile-icon-tab:focus-visible{outline:3px solid var(--green);outline-offset:3px}
.profile-icon-navigation>.profile-submenu{flex:0 0 100%;min-width:0}
@media(max-width:680px){.profile-icon-navigation>.profile-icon-tab{flex-basis:96px;width:96px}}
#global-status:not(:empty){margin-bottom:12px;padding:10px 14px;background:#e4f2e8;border-radius:8px}
#global-status.error{background:#fae9e5;color:#8b3027}
.flow{display:grid;gap:14px;margin-bottom:18px}
.scroll{overflow:auto}
.roster-shift{border-inline-start:6px solid transparent}
.roster-colours-standard .roster-type-daily{border-inline-start-color:#247c62;background:#eef8f2}
.roster-colours-standard .roster-type-community{border-inline-start-color:#306ea8;background:#edf5fc}
.roster-colours-standard .roster-type-group{border-inline-start-color:#925196;background:#f8eff9}
.roster-colours-standard .roster-type-coordination{border-inline-start-color:#b77b17;background:#fff8e7}
.roster-colours-standard .roster-type-other{border-inline-start-color:#6a7580;background:#f2f4f6}
.roster-colours-standard .roster-leave{border-inline-start-color:#ba642c;background:#fff0dc}
.roster-colours-standard .roster-cancelled{border-inline-start-color:#ab4141;background:#fceeee}
.roster-colours-strong .roster-shift{border-inline-start-width:10px;background:#fff;color:#10251d}
.roster-colours-strong .roster-type-daily{border-inline-start-color:#005a33}
.roster-colours-strong .roster-type-community{border-inline-start-color:#003e9c}
.roster-colours-strong .roster-type-group{border-inline-start-color:#6c1685}
.roster-colours-strong .roster-type-coordination{border-inline-start-color:#7a4f00}
.roster-colours-strong .roster-type-other{border-inline-start-color:#333}
.roster-colours-strong .roster-leave{border-inline-start-color:#a14600}
.roster-colours-strong .roster-cancelled{border-inline-start-color:#a00000}
.roster-colours-plain .roster-shift{border-inline-start-color:var(--line)}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{border-bottom:1px solid var(--line);padding:8px 10px;vertical-align:top}
th{color:var(--muted);font-size:.85rem}
td{overflow-wrap:anywhere}
dl{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,3fr);gap:7px 12px}
dt{font-weight:650}
dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.request-response-text{overflow-wrap:anywhere;white-space:pre-wrap}
.check{display:flex;align-items:center;gap:8px}
.timeline{padding-left:22px}
.timeline li{margin-bottom:12px}
.tutorial-video{display:block;max-width:100%;width:min(100%,960px);background:#152d27;border-radius:8px;margin:10px 0}
.course-mark{display:inline-grid;place-items:center;width:2.8rem;height:2.8rem;border-radius:.85rem;background:var(--pine);color:#bde7ca;font-size:1.15rem;font-weight:800;letter-spacing:-.06em}
.training-topic-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:12px;margin:12px 0 22px}
.training-topic{display:grid;gap:5px;align-content:start;padding:14px 17px;border:1px solid var(--line);border-radius:10px;text-decoration:none}
.training-topic:hover{background:#e8f3eb;border-color:#a0b9aa}
.training-topic span{color:var(--muted);font-size:.86rem}
.lesson-page main{max-width:1640px}
.lesson-content{display:grid;gap:16px}
.lesson-top,.lesson-controls{display:flex;gap:12px;align-items:center}
.lesson-intro>.course-mark,.surface>.course-mark{margin-bottom:12px}
.lesson-intro p,.lesson-step>p{max-width:76ch}
.lesson-step h2{font-size:clamp(1.45rem,2.5vw,2.1rem)}
.lesson-step figure{margin:16px 0 0}
.lesson-image-link{display:block}
.lesson-step img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:9px}
.lesson-step figcaption{margin-top:8px;color:var(--muted);font-size:.9rem}
.lesson-watch summary{font-weight:650;cursor:pointer;padding:14px 0}
.lesson-watch .tutorial-video{width:min(100%,1280px)}
@media(max-width:660px){
  .gateway{grid-template-columns:1fr}
  .topbar{font-size:.86rem;gap:8px}
  dl{grid-template-columns:1fr}
  dd{margin-bottom:5px}
}

/* Site branding only. Semantic status, duress and shift-type rules stay intact. */
@media (forced-colors: none) {
 :root .topbar{color:var(--site-on-primary,var(--ink))}
 :root .topbar .brand,:root .topbar .topbar-section,:root .topbar .workspace-menu-panel{color:var(--site-on-primary,var(--ink))}
 :root .topbar button{color:inherit;border-color:currentColor}
 :root #primary-search label{color:inherit}
 :root #primary-search input,:root #primary-search select{color:#202c40}
 :root .topbar .profile-search-panel,:root #primary-search .profile-search-panel label{color:var(--site-on-surface,#202c40)}
 :root .account-menu-identity{color:inherit}
 :root .workspace-menu summary{border-color:currentColor}
 :root .brand-mark{background:#eff5ff;color:#202c40}
 :root .brand-name strong{color:var(--green)}
 :root .surface{color:var(--site-on-surface,var(--ink))}
 :root input,:root select,:root textarea{color:var(--site-on-surface,var(--ink))}
 :root button.primary{color:var(--site-on-action,#ffffff)}
 :root button.primary:hover{background:var(--green);box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 25%,transparent)}
 :root .dashboard-hero{background:var(--pine);color:var(--site-on-primary,var(--ink))}
 :root .dashboard-hero-welcome,:root .dashboard-hero h1,:root .dashboard-hero time,:root .dashboard-hero .dashboard-shift-summary{color:inherit}
 :root .dashboard-hero-welcome button{color:inherit;border-color:currentColor}
 :root .dashboard-hero-welcome button:hover{background:color-mix(in srgb,var(--pine) 80%,white 20%)}
 :root .dashboard-hero-quote{color:var(--site-on-surface,var(--ink))}
 :root .dashboard-hero-quote h2{color:var(--site-link-on-surface,var(--green))}
 :root .daily-quote{border-left-color:var(--green)}
 :root .topbar :focus-visible{outline-color:var(--site-on-primary,#ffffff)}
 :root .topbar .profile-search-panel :focus-visible,:root #navigation button:focus-visible{outline-color:var(--green)}
}

/* App button/card geometry; compact navigation/profile rules keep their scope. */
button{min-height:44px;padding:10px 16px;border-radius:6px;font-weight:400;line-height:1.5}
.surface{padding:22px;border-radius:10px}
.topbar button,.workspace-menu summary{min-height:44px}
@media(max-width:600px){.surface{padding:16px}}
@media (forced-colors: none) {
 button{background:var(--green);color:var(--site-on-action,#ffffff);border-color:var(--site-on-action,#ffffff)}
 button:hover{background:var(--green);color:var(--site-on-action,#ffffff);box-shadow:0 0 0 2px color-mix(in srgb,var(--green) 25%,transparent)}
 button.primary:not([aria-pressed]):not([aria-selected]){border-color:var(--site-on-action,#ffffff)}
 button[aria-pressed="true"]{background:var(--site-sidebar-highlight,#eff5ff);color:var(--ink);border-color:var(--green)}
 :root .topbar button:hover,:root .topbar .topbar-section:hover,:root .topbar .workspace-menu[open] summary{background:var(--pine)}
}

/* Keep the roster submit touch target and fit the existing shared logo asset. */
:root .roster-controls button{min-height:44px}
.brand-wordmark img{width:auto;max-width:100%;height:auto;max-height:100%;object-fit:contain;flex:0 1 auto}

@media (forced-colors: none) {
 :root .chat-room:not([aria-pressed="true"]){color:var(--site-on-surface,var(--ink))}
 :root .dashboard-hero-welcome button:hover{background:var(--pine)}
 :root .topbar .topbar-section[aria-current="page"]{background:var(--pine)}
}

/* Existing website Home Screen instructions only. */
.get-app-dialog{width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;overflow-wrap:anywhere;border:1px solid var(--line);border-radius:10px;padding:22px}
.get-app-dialog .actions{margin-bottom:16px}
@media (forced-colors: none) {
 .get-app-dialog{background:var(--site-surface,#ffffff);color:var(--site-on-surface,var(--ink))}
}

/* Captured service items keep readable columns in the existing scroll surface. */
.captured-service-items{min-width:0;max-width:100%}
.captured-service-items>.scroll{max-width:100%;overflow-x:auto}
.captured-service-items>.scroll>table{min-width:1000px}
.captured-service-items>.scroll>table td{overflow-wrap:normal;word-break:normal}
.captured-service-items>.scroll>table th:nth-child(2),.captured-service-items>.scroll>table td:nth-child(2){white-space:nowrap}

/* Phone Staff directory: preserve all columns in the existing local scroller. */
@media(max-width:680px){
 .staff-directory>.scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .staff-directory>.scroll>table{min-width:45rem}
 .staff-directory>.scroll th,.staff-directory>.scroll td{font-size:.875rem;padding:8px;overflow-wrap:normal;word-break:normal}
 .staff-directory>.scroll th:first-child,.staff-directory>.scroll td:first-child{min-width:11.25rem}
 .staff-directory>.scroll td:first-child>button{font-size:.875rem;line-height:1.4;min-height:44px;padding:6px 10px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .staff-directory>.scroll th:nth-child(4),.staff-directory>.scroll td:nth-child(4){min-width:7.5rem;white-space:nowrap}
}
/* Saved theme colours still own the palette; only restrained surface finish. */
@media(forced-colors:none){
 :root{--site-surface:var(--paper);--site-menu-surface:color-mix(in srgb,var(--paper) 80%,#d8cfb8 20%)}
 :root .topbar{background:linear-gradient(180deg,color-mix(in srgb,var(--pine) 97%,white 3%),var(--pine) 50%,color-mix(in srgb,var(--pine) 98%,var(--ink) 2%));box-shadow:inset 0 1px 0 #ffffff66,0 2px 6px #0000000a}
 :root .surface,:root .dashboard-hero{background:linear-gradient(180deg,color-mix(in srgb,var(--site-surface) 98%,white 2%),var(--site-surface) 48%,color-mix(in srgb,var(--site-surface) 98%,var(--ink) 2%));box-shadow:inset 0 1px 0 #ffffff66,0 2px 7px #0000000a}
 :root .dashboard-hero{color:var(--site-on-surface,var(--ink))}
 :root .dashboard-hero-welcome button,:root .dashboard-hero-welcome button:hover{background:var(--green);color:var(--site-on-action,#ffffff);border-color:currentColor}
 :root .topbar .workspace-menu-panel{background:var(--site-menu-surface);background-image:none;color:var(--site-on-surface,var(--ink))}
 :root .topbar .workspace-menu-panel summary,:root .topbar .workspace-menu-panel .topbar-section{color:inherit}
 :root .topbar .workspace-menu-panel.mobile-workspace-tools-panel summary{background:transparent;color:inherit}
 :root .topbar .workspace-menu-panel button:hover,:root .topbar .workspace-menu-panel .workspace-menu[open]>summary{background:color-mix(in srgb,var(--site-menu-surface) 88%,var(--green) 12%);color:inherit}
}
