:root {
  --pb-orange: #f37520;
  --pb-orange-dark: #d85d0b;
  --pb-orange-soft: #ffeadb;
  --pb-charcoal: #1a1a1a;
  --pb-charcoal-soft: #2a2928;
  --pb-cream: #faf6f0;
  --pb-sand: #f1eadf;
  --pb-paper: #ffffff;
  --pb-muted: #736c64;
  --pb-line: #e9ded2;
  --pb-success: #0d7b3f;
  --pb-success-soft: #e7f5ec;
  --pb-danger: #c33b37;
  --pb-danger-soft: #fce9e7;
  --pb-radius: 18px;
  --pb-shadow: 0 12px 34px rgba(50, 36, 24, .08);
  --pb-focus: 0 0 0 3px rgba(243, 117, 32, .26);
}

body.employee-page {
  min-width: 320px;
  background: var(--pb-cream);
  color: var(--pb-charcoal);
}

.employee-page button,
.employee-page input,
.employee-page select { font: inherit; }
.employee-page :focus-visible { outline: none; box-shadow: var(--pb-focus); }

.employee-loading,
.employee-error-view {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px 22px;
  text-align: center;
}
.employee-loading .loading-logo { width: 78px; height: 78px; object-fit: contain; }
.employee-loading p { margin: 14px 0 0; color: var(--pb-muted); font-size: .86rem; }
.employee-loader { display: flex; height: 25px; align-items: end; gap: 4px; margin-top: 16px; }
.employee-loader span { width: 5px; height: 12px; border-radius: 4px; background: var(--pb-orange); animation: employee-loader 1s infinite ease-in-out; }
.employee-loader span:nth-child(2) { height: 22px; animation-delay: .12s; }
.employee-loader span:nth-child(3) { height: 16px; animation-delay: .24s; }

.employee-identify {
  width: min(100%, 520px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(38px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}
.identify-brand { text-align: center; }
.identify-brand > img { width: 104px; height: 104px; margin: 0 auto 17px; object-fit: contain; }
.employee-eyebrow { margin: 0 0 7px; color: var(--pb-orange-dark); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.identify-brand h1 { margin: 0; font-size: clamp(2.3rem, 10vw, 3.35rem); font-weight: 600; letter-spacing: -.055em; }
.identify-brand > p:last-child { max-width: 390px; margin: 9px auto 0; color: var(--pb-muted); font-size: .9rem; line-height: 1.6; }
.employee-card { border: 1px solid var(--pb-line); border-radius: var(--pb-radius); background: var(--pb-paper); box-shadow: var(--pb-shadow); }
.employee-pin-card { margin-top: 28px; padding: 22px; }
.employee-pin-card label,
.employee-field label { display: block; margin-bottom: 7px; color: #5f5952; font-size: .68rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.employee-pin-card input,
.employee-field input,
.employee-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--pb-line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 13px;
}
.employee-pin-card input { font-size: 1.3rem; letter-spacing: .35em; text-align: center; }
.employee-pin-card .field-help { margin: 8px 0 0; color: var(--pb-muted); font-size: .7rem; }
.employee-pin-card .form-error { min-height: 18px; margin: 7px 0 3px; color: var(--pb-danger); font-size: .72rem; }
.employee-privacy-note { display: flex; gap: 11px; margin-top: 18px; padding: 14px 15px; border-radius: 14px; background: var(--pb-orange-soft); }
.privacy-check { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 50%; background: var(--pb-charcoal); color: var(--pb-orange); font-weight: 900; }
.employee-privacy-note strong { font-size: .75rem; }
.employee-privacy-note p { margin: 3px 0 0; color: var(--pb-muted); font-size: .67rem; line-height: 1.45; }

.employee-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 16px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 760; line-height: 1.2; transition: transform .15s ease, opacity .15s ease, background .15s ease; }
.employee-button:not(:disabled):active { transform: translateY(1px); }
.employee-button:disabled { cursor: wait; opacity: .58; }
.employee-button-full { width: 100%; }
.employee-button-primary { background: var(--pb-orange); color: #111; }
.employee-button-primary:hover:not(:disabled) { background: #fa8435; }
.employee-button-dark { background: var(--pb-charcoal); color: #fff; }
.employee-button-dark:hover:not(:disabled) { background: #2b2a29; }
.employee-button-soft { border-color: #eddccf; background: #fff; }
.employee-button-danger { border-color: #f0c8c4; background: var(--pb-danger-soft); color: var(--pb-danger); }
.employee-button-quiet { background: transparent; color: var(--pb-muted); }

.employee-shell { min-height: 100svh; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.employee-topbar {
  display: flex;
  width: min(100%, 620px);
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 18px 10px;
}
.employee-brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; text-decoration: none; }
.employee-brand img { width: 50px; height: 50px; flex: none; object-fit: contain; }
.employee-brand > span { display: flex; min-width: 0; flex-direction: column; }
.employee-brand strong { font-size: .86rem; line-height: 1.1; }
.employee-brand strong span { color: var(--pb-charcoal); }
.employee-brand strong { color: var(--pb-orange); }
.employee-brand small { margin-top: 4px; color: var(--pb-muted); font-size: .61rem; }
.employee-header-actions { display: flex; align-items: center; gap: 7px; }
.employee-online { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--pb-line); border-radius: 999px; background: rgba(255,255,255,.72); color: var(--pb-muted); font-size: .63rem; }
.employee-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--pb-success); }
.is-offline .employee-online i { background: var(--pb-danger); }
.is-offline .employee-online span { font-size: 0; }
.is-offline .employee-online span::after { font-size: .63rem; content: "Offline"; }
.employee-text-button { min-height: 40px; padding: 6px 5px; border: 0; background: transparent; color: var(--pb-orange-dark); cursor: pointer; font-size: .7rem; font-weight: 750; }

.employee-main { width: min(100%, 580px); margin: 0 auto; padding: 17px 18px 32px; }
.employee-screen { animation: employee-screen-in .2s ease both; }
.employee-greeting { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.employee-greeting h1,
.employee-page-heading h1 { margin: 0; font-size: clamp(1.75rem, 8vw, 2.35rem); font-weight: 580; letter-spacing: -.045em; }
.employee-greeting > div > p:last-child,
.employee-page-heading > p:last-child { margin: 5px 0 0; color: var(--pb-muted); font-size: .78rem; line-height: 1.45; }
.employee-avatar { display: grid; width: 43px; height: 43px; flex: none; place-items: center; border-radius: 13px; background: var(--pb-charcoal); color: var(--pb-orange); font-size: .72rem; font-weight: 800; }

.employee-clock-card { position: relative; overflow: hidden; padding: 20px; border-radius: 22px; background: var(--pb-charcoal); color: #fff; box-shadow: 0 14px 34px rgba(26,26,26,.13); }
.employee-clock-card::after { position: absolute; width: 150px; height: 150px; top: -47px; right: -50px; border: 22px solid rgba(243,117,32,.11); border-radius: 50%; content: ""; pointer-events: none; }
.clock-card-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.employee-status-pill { display: inline-flex; min-height: 27px; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(243,117,32,.17); color: #fff; font-size: .66rem; font-weight: 750; }
.employee-status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--pb-orange); }
.employee-status-pill.status-off { background: rgba(255,255,255,.1); color: rgba(255,255,255,.78); }
.employee-status-pill.status-off i { background: #a9a39c; }
.employee-status-pill.status-break { background: rgba(255,255,255,.12); }
.employee-status-pill.status-break i { background: #ffd16f; }
.employee-icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.employee-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.employee-icon-button.is-spinning svg { animation: employee-spin .65s linear infinite; }
.employee-icon-button.light { border: 1px solid var(--pb-line); background: var(--pb-sand); color: var(--pb-orange-dark); font-size: 1.2rem; }
.employee-current-time { position: relative; z-index: 1; margin-top: 12px; font-size: clamp(2.55rem, 13vw, 4.05rem); font-weight: 390; letter-spacing: -.055em; line-height: 1; }
.employee-current-date { position: relative; z-index: 1; margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: .68rem; }
.today-shift { position: relative; z-index: 1; display: flex; flex-direction: column; margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.today-shift span { color: rgba(255,255,255,.56); font-size: .58rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.today-shift strong { margin-top: 5px; font-size: 1.15rem; font-weight: 570; }
.today-shift small { margin-top: 5px; color: rgba(255,255,255,.7); font-size: .63rem; }
.employee-clock-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 17px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.11); }
.employee-clock-metrics div { min-width: 0; }
.employee-clock-metrics span { display: block; margin-bottom: 5px; color: rgba(255,255,255,.51); font-size: .55rem; font-weight: 700; text-transform: uppercase; }
.employee-clock-metrics strong { overflow: hidden; font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }

.employee-clock-actions { display: grid; gap: 9px; margin-top: 13px; }
.employee-button-clock { min-height: 61px; justify-content: flex-start; padding: 11px 18px; }
.employee-button-clock .action-icon { display: grid; width: 25px; height: auto; flex: none; place-items: center; border-radius: 0; background: transparent; color: inherit; font-size: 1.15rem; }
.employee-button-clock .action-copy { display: flex; flex: 1; align-items: flex-start; flex-direction: column; text-align: left; }
.employee-button-clock .action-copy strong { font-size: .81rem; }
.employee-button-clock .action-copy small { margin-top: 3px; color: inherit; font-size: .61rem; font-weight: 500; opacity: .65; }
.employee-button-clock .action-arrow { font-size: 1.3rem; }
.employee-event-note { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--pb-success-soft); color: var(--pb-success); }
.employee-event-note > span { font-weight: 900; }
.employee-event-note p { display: flex; margin: 0; flex-direction: column; }
.employee-event-note strong { font-size: .68rem; }
.employee-event-note small { margin-top: 2px; color: var(--pb-muted); font-size: .59rem; }

.home-section { margin-top: 24px; }
.home-section-heading { display: flex; min-height: 37px; align-items: center; justify-content: space-between; }
.home-section-heading h2 { margin: 0; color: var(--pb-orange-dark); font-size: .71rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; padding: 13px; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); background: #fff; }
.week-day { min-width: 0; text-align: center; }
.week-day span { display: block; color: var(--pb-muted); font-size: .56rem; font-weight: 750; text-transform: uppercase; }
.week-day strong { display: grid; min-height: 39px; margin-top: 7px; place-items: center; border-radius: 10px; background: var(--pb-sand); color: #756f68; font-size: .63rem; font-weight: 650; }
.week-day.has-shift strong { background: var(--pb-orange-soft); color: var(--pb-orange-dark); }
.week-day.is-today strong { background: var(--pb-charcoal); color: var(--pb-orange); box-shadow: inset 0 0 0 2px var(--pb-orange); }
.week-day.is-today::after { display: block; width: 5px; height: 5px; margin: 5px auto 0; border-radius: 50%; background: var(--pb-success); content: ""; }
.quick-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.quick-action,
.request-action { display: flex; min-height: 72px; min-width: 0; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--pb-line); border-radius: 15px; background: #fff; cursor: pointer; text-align: left; }
.quick-action > span:last-child,
.request-action > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.quick-action strong,
.request-action strong { font-size: .68rem; }
.quick-action small,
.request-action small { margin-top: 4px; overflow: hidden; color: var(--pb-muted); font-size: .58rem; line-height: 1.35; text-overflow: ellipsis; }
.quick-icon { display: grid; width: 36px; height: 36px; flex: none; place-items: center; border-radius: 10px; background: var(--pb-orange-soft); color: var(--pb-orange-dark); font-size: 1rem; font-weight: 800; }
.quick-icon.success { background: var(--pb-success-soft); color: var(--pb-success); }

.employee-page-heading { margin-bottom: 15px; }
.employee-page-heading.compact { margin-top: 15px; }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.employee-status-badge { display: inline-flex; min-height: 27px; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .58rem; font-weight: 750; text-transform: uppercase; }
.employee-status-badge.success { background: var(--pb-success-soft); color: var(--pb-success); }
.employee-status-badge.orange { background: rgba(243,117,32,.18); color: var(--pb-orange); }
.week-picker { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--pb-line); border-radius: 16px; background: #fff; }
.week-picker > div { min-width: 0; text-align: center; }
.week-picker strong { display: block; font-size: .75rem; }
.week-picker small { display: block; margin-top: 4px; color: var(--pb-muted); font-size: .59rem; }
.schedule-list { display: grid; gap: 9px; margin-top: 15px; }
.schedule-day-card { display: grid; min-height: 75px; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 0 14px 0 0; overflow: hidden; border: 1px solid var(--pb-line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; }
.schedule-day-card:disabled { cursor: default; opacity: 1; }
.schedule-day-date { display: flex; height: 100%; min-height: 75px; align-items: center; justify-content: center; flex-direction: column; background: var(--pb-sand); color: var(--pb-muted); }
.schedule-day-date span { font-size: .55rem; font-weight: 750; text-transform: uppercase; }
.schedule-day-date strong { margin-top: 5px; font-size: 1rem; font-weight: 540; }
.schedule-day-card.is-today { border-color: var(--pb-charcoal); background: var(--pb-charcoal); color: #fff; }
.schedule-day-card.is-today .schedule-day-date { background: var(--pb-orange); color: #151515; }
.schedule-day-card.is-empty { border-style: dashed; background: transparent; }
.schedule-day-card.is-today.is-empty { background: var(--pb-charcoal); }
.schedule-day-copy { display: flex; min-width: 0; flex-direction: column; }
.schedule-day-copy strong { font-size: .78rem; font-weight: 580; }
.schedule-day-copy small { margin-top: 5px; overflow: hidden; color: var(--pb-muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.schedule-day-card.is-today .schedule-day-copy small { color: rgba(255,255,255,.65); }
.schedule-day-state { display: flex; align-items: center; gap: 7px; color: var(--pb-orange-dark); font-size: .56rem; font-weight: 750; text-transform: uppercase; }
.schedule-day-card.is-today .schedule-day-state { color: var(--pb-orange); }
.employee-empty-state { padding: 28px 18px; border: 1px dashed var(--pb-line); border-radius: 16px; color: var(--pb-muted); font-size: .75rem; text-align: center; }

.employee-back-button { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; padding: 7px 0; border: 0; background: transparent; color: var(--pb-orange-dark); cursor: pointer; font-size: .73rem; font-weight: 750; }
.shift-detail-card { padding: 20px; border-radius: 21px; background: var(--pb-charcoal); color: #fff; }
.shift-detail-card > strong { display: block; margin-top: 18px; font-size: clamp(1.75rem, 8vw, 2.35rem); font-weight: 480; letter-spacing: -.045em; }
.shift-detail-card > p { margin: 7px 0 0; color: rgba(255,255,255,.75); font-size: .72rem; }
.shift-detail-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.13); }
.shift-detail-card dl div { display: flex; flex-direction: column; }
.shift-detail-card dt { color: rgba(255,255,255,.52); font-size: .55rem; text-transform: uppercase; }
.shift-detail-card dd { margin: 5px 0 0; font-size: .68rem; }
.shift-change-section { margin-top: 24px; }
.shift-change-section h2 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.shift-change-section > p:nth-of-type(2) { margin: 6px 0 14px; color: var(--pb-muted); font-size: .72rem; }
.employee-list-action { display: grid; width: 100%; min-height: 66px; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; margin-top: 9px; padding: 11px; border: 1px solid var(--pb-line); border-radius: 15px; background: #fff; cursor: pointer; text-align: left; }
.employee-list-action > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.employee-list-action:disabled { cursor: not-allowed; opacity: .52; }
.employee-list-action strong { font-size: .7rem; }
.employee-list-action small { margin-top: 4px; color: var(--pb-muted); font-size: .59rem; line-height: 1.35; }
.pending-change-card,
.availability-used,
.availability-pending { margin-top: 10px; padding: 13px; border-radius: 14px; background: var(--pb-orange-soft); color: var(--pb-muted); font-size: .65rem; line-height: 1.5; }
.pending-change-card strong,
.availability-used strong,
.availability-pending strong { display: block; margin-bottom: 3px; color: var(--pb-charcoal); font-size: .7rem; }

.request-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.request-action { min-height: 82px; }
.request-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 10px; }
.request-list-heading h2 { margin: 0; font-size: .86rem; }
.request-list-heading span { color: var(--pb-orange-dark); font-size: .64rem; font-weight: 750; }
.employee-request-list { display: grid; gap: 9px; }
.employee-request-card { padding: 14px; border: 1px solid var(--pb-line); border-radius: 15px; background: #fff; }
.request-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.request-card-heading > div { display: flex; min-width: 0; align-items: center; gap: 10px; }
.request-card-heading h3 { margin: 0; font-size: .72rem; }
.request-card-heading p { margin: 4px 0 0; overflow: hidden; color: var(--pb-muted); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.request-status { min-width: 0; flex: none; padding: 5px 9px; border-radius: 999px; background: var(--pb-orange-soft); color: var(--pb-orange-dark); font-size: .54rem; font-weight: 750; text-transform: uppercase; }
.request-status.approved { background: var(--pb-success-soft); color: var(--pb-success); }
.request-status.denied,
.request-status.cancelled { background: var(--pb-danger-soft); color: var(--pb-danger); }
.request-card-detail { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--pb-line); color: var(--pb-muted); font-size: .62rem; line-height: 1.5; }
.request-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.request-card-footer time { color: var(--pb-muted); font-size: .56rem; }
.request-card-footer button { min-height: 36px; padding: 5px 0; border: 0; background: transparent; color: var(--pb-danger); cursor: pointer; font-size: .59rem; font-weight: 750; }

.availability-current-banner { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; padding: 13px; border-radius: 14px; background: var(--pb-success-soft); }
.availability-current-banner i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--pb-success); }
.availability-current-banner span { display: flex; flex-direction: column; }
.availability-current-banner strong { font-size: .69rem; }
.availability-current-banner small { margin-top: 3px; color: var(--pb-muted); font-size: .58rem; }
.availability-grid { overflow: hidden; border: 1px solid var(--pb-line); border-radius: 17px; background: #fff; }
.availability-row { display: grid; min-height: 64px; grid-template-columns: minmax(73px,.8fr) minmax(0,1.45fr) 43px; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--pb-line); }
.availability-row:last-child { border-bottom: 0; }
.availability-row > span { font-size: .7rem; }
.availability-times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.availability-times input { width: 100%; min-width: 0; min-height: 39px; padding: 6px; border: 0; border-radius: 9px; background: var(--pb-sand); font-size: .61rem; text-align: center; }
.availability-times span { color: var(--pb-muted); font-size: .58rem; }
.availability-row:not(.is-available) .availability-times { grid-template-columns: 1fr; }
.availability-row:not(.is-available) .availability-times::before { display: grid; min-height: 39px; place-items: center; border-radius: 9px; background: var(--pb-danger-soft); color: var(--pb-danger); content: "Not available"; font-size: .6rem; }
.availability-row:not(.is-available) .availability-times > * { display: none; }
.availability-toggle { position: relative; width: 39px; height: 23px; padding: 0; border: 0; border-radius: 999px; background: #dfd5ca; cursor: pointer; }
.availability-toggle::after { position: absolute; width: 17px; height: 17px; top: 3px; left: 3px; border-radius: 50%; background: #fff; content: ""; transition: transform .16s ease; }
.availability-row.is-available .availability-toggle { background: var(--pb-charcoal); }
.availability-row.is-available .availability-toggle::after { background: var(--pb-orange); transform: translateX(16px); }
.employee-form-note { margin: 12px 0; color: var(--pb-muted); font-size: .65rem; line-height: 1.45; }
.employee-data-note { display: flex; gap: 11px; margin-top: 18px; padding: 14px; border-radius: 15px; background: var(--pb-orange-soft); }
.employee-data-note > span { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: var(--pb-charcoal); color: var(--pb-orange); font-weight: 850; }
.employee-data-note strong { font-size: .7rem; }
.employee-data-note p { margin: 4px 0 0; color: var(--pb-muted); font-size: .6rem; line-height: 1.45; }
.manager-link { display: block; min-height: 42px; margin-top: 13px; padding: 12px; color: var(--pb-muted); font-size: .65rem; text-align: center; }

.employee-bottom-nav { position: fixed; z-index: 70; display: grid; height: calc(69px + env(safe-area-inset-bottom)); inset: auto 0 0; grid-template-columns: repeat(4,1fr); padding: 7px max(8px, env(safe-area-inset-left)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-right)); border-top: 1px solid var(--pb-line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.employee-bottom-nav button { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 3px; padding: 4px; border: 0; background: transparent; color: var(--pb-muted); cursor: pointer; flex-direction: column; }
.employee-bottom-nav button > span { position: relative; min-height: 18px; font-size: .9rem; line-height: 1; }
.employee-bottom-nav button strong { font-size: .56rem; font-weight: 650; }
.employee-bottom-nav button.is-active { color: var(--pb-orange-dark); }
.employee-bottom-nav button.is-active > span { color: var(--pb-charcoal); }
.nav-icon-wrap i { position: absolute; width: 7px; height: 7px; top: -2px; right: -6px; border: 2px solid #fff; border-radius: 50%; background: var(--pb-orange); }

.employee-dialog,
.employee-confirm-dialog { width: min(calc(100% - 24px), 500px); max-height: calc(100svh - 24px); overflow: auto; border: 0; border-radius: 22px; background: var(--pb-cream); color: var(--pb-charcoal); box-shadow: 0 25px 80px rgba(26,26,26,.25); }
.employee-dialog::backdrop,
.employee-confirm-dialog::backdrop { background: rgba(26,26,26,.56); backdrop-filter: blur(2px); }
.employee-dialog > form,
.employee-confirm-dialog > form { padding: 22px; }
.employee-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.employee-dialog-heading h2 { margin: 0; font-size: 1.5rem; font-weight: 580; letter-spacing: -.035em; }
.employee-dialog-heading div > p:last-child { margin: 6px 0 0; color: var(--pb-muted); font-size: .7rem; }
.employee-dialog-close { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border: 0; border-radius: 11px; background: var(--pb-sand); cursor: pointer; font-size: 1.2rem; }
.employee-field { margin-bottom: 13px; }
.employee-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.employee-info-box { display: flex; gap: 10px; margin: 14px 0; padding: 13px; border-radius: 14px; background: var(--pb-orange-soft); }
.employee-info-box > span { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: var(--pb-orange); color: #151515; font-weight: 800; }
.employee-info-box p { display: flex; margin: 0; flex-direction: column; }
.employee-info-box strong { font-size: .67rem; }
.employee-info-box small { margin-top: 4px; color: var(--pb-muted); font-size: .59rem; line-height: 1.45; }
.employee-dialog .form-error,
#availability-error { min-height: 17px; margin: 8px 0; color: var(--pb-danger); font-size: .66rem; }
.employee-dialog .employee-button + .employee-button { margin-top: 7px; }
.schedule-change-summary { margin-bottom: 14px; padding: 14px; border: 1px solid var(--pb-line); border-radius: 14px; background: #fff; font-size: .71rem; line-height: 1.5; }
.employee-confirm-dialog { width: min(calc(100% - 24px), 390px); text-align: center; }
.employee-confirm-icon { display: grid; width: 45px; height: 45px; margin: 0 auto 13px; place-items: center; border-radius: 50%; background: var(--pb-orange-soft); color: var(--pb-orange-dark); font-size: 1.2rem; }
.employee-confirm-dialog h2 { margin-bottom: 7px; }
.employee-confirm-dialog p { color: var(--pb-muted); font-size: .75rem; }
.employee-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.employee-toast { position: fixed; z-index: 150; width: min(calc(100% - 28px), 460px); max-width: none; inset: auto 14px calc(82px + env(safe-area-inset-bottom)); margin: auto; padding: 13px 15px; border-radius: 13px; background: var(--pb-charcoal); color: #fff; box-shadow: 0 15px 35px rgba(26,26,26,.2); font-size: .72rem; text-align: center; transform: none; }
.employee-toast.is-error { background: var(--pb-danger); }
.employee-error-view img { width: 88px; height: 88px; object-fit: contain; }
.employee-error-icon { display: grid; width: 45px; height: 45px; margin: 14px auto; place-items: center; border-radius: 50%; background: var(--pb-danger-soft); color: var(--pb-danger); font-weight: 850; }
.employee-error-view h1 { margin-bottom: 8px; font-size: 1.7rem; }
.employee-error-view p { max-width: 380px; margin-bottom: 18px; color: var(--pb-muted); font-size: .78rem; line-height: 1.5; }

@media (min-width: 700px) {
  body.employee-page { background: radial-gradient(circle at 12% 0, rgba(243,117,32,.16), transparent 25rem), var(--pb-cream); }
  .employee-shell { width: 620px; min-height: calc(100svh - 30px); margin: 15px auto; padding-bottom: 85px; border: 1px solid rgba(225,211,199,.8); border-radius: 28px; background: rgba(250,246,240,.92); box-shadow: 0 24px 70px rgba(50,36,24,.11); }
  .employee-topbar { padding-right: 25px; padding-left: 25px; }
  .employee-main { padding-right: 28px; padding-left: 28px; }
  .employee-bottom-nav { width: 618px; height: 69px; right: auto; bottom: 15px; left: 50%; border: 1px solid var(--pb-line); border-radius: 0 0 27px 27px; transform: translateX(-50%); }
  .employee-toast { right: auto; bottom: 98px; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 480px) {
  .employee-main { padding-top: 10px; }
  .employee-topbar { min-height: 69px; padding-right: 13px; padding-left: 13px; }
  .employee-brand img { width: 45px; height: 45px; }
  .employee-online span { display: none; }
  .employee-clock-card { padding: 18px; }
  .employee-current-time { font-size: 3.25rem; }
  .quick-action-grid,
  .request-action-grid { gap: 8px; }
  .quick-action,
  .request-action { min-height: 74px; padding: 10px; }
  .quick-icon { width: 32px; height: 32px; }
  .employee-field-row { grid-template-columns: 1fr; gap: 0; }
  .employee-dialog { width: 100%; max-height: calc(100svh - 6px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .employee-dialog > form { padding: 21px 17px max(20px, env(safe-area-inset-bottom)); }
  .availability-row { grid-template-columns: 75px minmax(0,1fr) 39px; padding-right: 9px; padding-left: 9px; }
  .availability-times { gap: 3px; }
  .availability-times input { padding: 3px; font-size: .57rem; }
}

@media (prefers-reduced-motion: reduce) {
  .employee-page *, .employee-page *::before, .employee-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes employee-loader { 0%, 100% { opacity: .4; transform: scaleY(.7); } 50% { opacity: 1; transform: none; } }
@keyframes employee-screen-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes employee-spin { to { transform: rotate(360deg); } }
