.worker-shell > header {
  min-height: 72px;
  padding: 8px max(24px, calc((100vw - 1040px) / 2));
}
.worker-shell .brand { flex-basis: 134px; max-width: 134px; }
.worker-shell .brand span, .worker-shell main > .eyebrow { display: none; }
.worker-shell main {
  max-width: 1088px;
  padding: clamp(24px, 4vw, 46px) 24px 48px;
}
.worker-shell h1 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  line-height: 1.15;
}
.worker-shell #nav {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dbe3d8;
  border-radius: 12px;
  background: #e9eee6;
  margin-bottom: 20px;
}
.worker-shell #nav button {
  min-height: 44px;
  padding: 8px 18px;
  font-size: .9rem;
  border-radius: 8px;
  box-shadow: none;
}
.worker-shell #nav .secondary { background: transparent; }
.worker-shell #nav .active { background: #173e31; color: white; }
.worker-shell[data-employee-view="map"] .worker-home > .worker-shift { display: none; }
.worker-shell button:focus-visible, .worker-shell summary:focus-visible {
  outline: 3px solid #b35d20;
  outline-offset: 2px;
}
.worker-hours-period { max-width: 15rem; }
.worker-hours-mobile-heading { display: none; }
.worker-shell [data-hours-list], .worker-shell [data-previous-days] { min-width: 0; }
@media (min-width: 721px) {
  .worker-shell #nav button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .worker-shell .worker-tab-icon { display: flex; flex: none; }
  .worker-shell .worker-tab-icon svg { width: 20px; height: 20px; }
  .worker-shell[data-employee-view="arrival"] .worker-home {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  .worker-shell .worker-shift .worker-idle-time { display: block; margin-top: 22px; }
  .worker-shell .worker-shift [role="timer"] { font-size: clamp(2.6rem, 5.2vw, 4.2rem); }
  .worker-shell[data-employee-view="map"] .worker-location [data-worker-map-surface] {
    height: clamp(20rem, 53vh, 36rem);
  }
}
@media (max-width: 720px) {
  .worker-shell {
    --worker-header-height: calc(56px + env(safe-area-inset-top, 0px));
    --worker-nav-height: calc(58px + env(safe-area-inset-bottom, 0px));
    background: white;
  }
  .worker-shell > header {
    position: sticky;
    top: 0;
    z-index: 35;
    height: var(--worker-header-height);
    min-height: var(--worker-header-height);
    padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
    background: #173e32;
  }
  .worker-shell .brand { flex-basis: 98px; max-width: 98px; }
  .worker-shell .account-dropdown summary { min-height: 44px; }
  .worker-shell .account-name { display: none; }
  .worker-shell .account-avatar { width: 28px; height: 28px; }
  .worker-shell main {
    width: 100%;
    min-height: calc(100dvh - var(--worker-header-height));
    padding: 20px 14px calc(var(--worker-nav-height) + 18px);
  }
  .worker-shell:is([data-employee-view="arrival"],[data-employee-view="map"]) main {
    padding: 0 0 var(--worker-nav-height);
  }
  .worker-shell:is([data-employee-view="arrival"],[data-employee-view="map"]) main > h1,
  .worker-shell #nav .worker-tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .worker-shell[data-employee-view="map"] {
    --worker-map-height: calc(100dvh - var(--worker-header-height) - var(--worker-nav-height));
  }
  .worker-shell[data-employee-view="hours"] main {
    max-width: 36rem;
    padding: 10px clamp(14px, 5vw, 28px) calc(var(--worker-nav-height) + 20px);
  }
  .worker-shell[data-employee-view="hours"] main > h1 { display: none; }
  .worker-hours-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    max-width: none;
    margin-bottom: 8px;
  }
  .worker-hours-period .worker-hours-mobile-heading {
    display: block;
    font-size: clamp(1rem, 4.4vw, 1.25rem);
    line-height: 1.3;
    letter-spacing: -.025em;
    margin: 0;
  }
  .worker-hours-period label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .worker-hours-period input {
    width: 8.4rem;
    min-height: 44px;
    margin: 0;
    padding: 4px 7px;
    border-color: #dce3d9;
    border-radius: 7px;
    background: white;
    font-size: .83rem;
    font-weight: 500;
  }
  .worker-hours-page [data-previous-days] { margin-top: 12px; }
  .worker-hours-page [data-previous-days]:empty { margin: 0; }
  .worker-shell #nav {
    position: fixed;
    z-index: 34;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 70px));
    justify-content: center;
    gap: 0;
    height: var(--worker-nav-height);
    margin: 0;
    padding: 0 max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #173e32;
  }
  .worker-shell #nav button {
    display: grid;
    place-items: start center;
    min-width: 0;
    min-height: 48px;
    padding: 0;
    border-radius: 0;
    color: white;
    background: transparent;
  }
  .worker-shell #nav button:focus-visible { outline: 2px solid #f1be97; outline-offset: -3px; }
  .worker-shell .worker-tab-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 50px;
  }
  .worker-shell .worker-tab-icon svg { width: 28px; height: 28px; }
  .worker-shell #nav .active .worker-tab-icon {
    color: #173e32;
    background: white;
    border-radius: 0 0 24px 24px;
  }
  .worker-shell #nav .active .worker-tab-icon::before,
  .worker-shell #nav .active .worker-tab-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
  }
  .worker-shell #nav .active .worker-tab-icon::before {
    right: 100%;
    background: radial-gradient(circle at bottom left, transparent 9.5px, white 10px);
  }
  .worker-shell #nav .active .worker-tab-icon::after {
    left: 100%;
    background: radial-gradient(circle at bottom right, transparent 9.5px, white 10px);
  }
  .worker-shell #notice { bottom: calc(var(--worker-nav-height) + 12px); }
}
