/* WI-VET-017-B2/B3 Employee Workspace. Mobile-first; scoped under .emp-root so the management workspace is untouched.
   Brand: Deep Green #173C32 · Brand Green #398C53 · Fresh Green #79BD79 · Warm White #F8F9F6 · Charcoal #26342E.
   Text on Brand Green is avoided (4.2:1); primary buttons use Deep Green (≥10:1) and Brand Green is used for accents/borders. */
.emp-mode{margin:0;background:#F8F9F6}
.emp-mode .app,.emp-mode .tip-pop,.emp-mode .flyout{display:none!important}
.emp-root{--deep:#003b35;--brand:#008f49;--fresh:#33c56d;--warm:#faf8f2;--ink:#263630;--line:#dfe8e1;--muted:#52615a;
  font-family:Inter,'Segoe UI',system-ui,Arial,sans-serif;font-size:16px;line-height:1.45;color:var(--ink);background:var(--warm);min-height:100vh;min-height:100dvh}
.emp-root *{box-sizing:border-box}
/* The management stylesheet has global p / nav button span rules; neutralise them inside the employee scope. */
.emp-root p{margin:0;color:var(--ink)}
.emp-root nav button span{display:inline}
.emp-root button{font:inherit;color:inherit;cursor:pointer}
.emp-root :focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:6px}
.emp-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.emp-col{display:flex;flex-direction:column;flex:1;min-width:0}

/* brand + header */
.emp-brand{display:flex;align-items:center;gap:10px;color:#fff}
.emp-brand b{display:block;font-size:17px;line-height:1.1}.emp-brand small{display:block;color:#bfd8c9;font-size:12px}
.emp-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--brand);color:#fff;font-weight:700}
.emp-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:var(--deep);color:#fff}
.emp-top .emp-brand.compact{flex:0 0 auto}
.emp-top-info{flex:1;min-width:0;text-align:right;color:#cfe3d6;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.emp-bell,.emp-avatar{flex:0 0 44px;width:44px;height:44px;border-radius:50%;border:1px solid #ffffff40;background:transparent;color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}
/* the bell is a status indicator only: no function behind it yet, so it is not a control (no focus, no click, no dot or count) */

.emp-avatar{background:var(--fresh);color:var(--deep);border-color:transparent}
.emp-env{display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline;padding:8px 16px;background:#fff6dc;border-bottom:1px solid #ecd9a0;color:#4a3a05;font-size:13px}.emp-env b{font-weight:750}
.emp-ic{width:22px;height:22px;flex:0 0 22px}

/* navigation: bottom tabs on touch widths, side rail on wide screens */
.emp-rail{display:none}
.emp-tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}
.emp-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;padding:6px 2px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:600}
.emp-tabs button{border-radius:0}
.emp-tabs button[aria-current=page]{color:var(--deep);box-shadow:inset 0 3px 0 var(--brand)}
.emp-tabs button[aria-current=page] .emp-ic{color:var(--brand)}
.emp-main{flex:1;width:100%;max-width:1180px;margin:0 auto;padding:18px 16px 96px;min-width:0}
.emp-main:focus{outline:none}

/* typography and shared parts */
.emp-h1{margin:4px 0 2px;font-size:24px;line-height:1.2;color:var(--deep)}.emp-h1:focus{outline:none}
.emp-root .emp-sub{margin:0 0 16px;color:var(--muted);font-size:14px}
.emp-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:12px;min-width:0}
.emp-card.soon{background:#f1f3ef;border-style:dashed}
.emp-card-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.emp-card h2,.emp-group h2{margin:0;font-size:15px;color:var(--deep)}
.emp-cards{display:grid;grid-template-columns:1fr;gap:0 14px}
.emp-badge{display:inline-flex;align-items:center;flex:0 0 auto;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.emp-badge.pub{background:#e1f1e5;color:var(--deep)}
.emp-badge.soon{background:#e9ece7;color:var(--ink);border:1px dashed #9aa79f}
.emp-root .emp-help{margin:6px 0 0;color:var(--muted);font-size:14px}.emp-empty{margin:4px 0;font-weight:600}
.emp-figure{font-size:30px;font-weight:750;color:var(--deep);line-height:1.1;margin:2px 0}.emp-figure small{font-size:15px;font-weight:600;color:var(--muted)}
.emp-stats{display:flex;gap:0;margin:12px 0 0;padding:0}.emp-stats div{flex:1;min-width:0;padding:8px 10px;border-left:1px solid var(--line)}.emp-stats div:first-child{border-left:0;padding-left:0}
.emp-stats dt{font-size:12px;color:var(--muted)}.emp-stats dd{margin:0;font-size:17px;font-weight:750;color:var(--deep);font-variant-numeric:tabular-nums}
.emp-glance{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:6px}
.emp-glance li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;min-width:0}
.emp-glance li.today{border-color:var(--brand);box-shadow:0 0 0 2px #398c5333}.emp-glance li.off{background:#fafbf9}
.emp-glance .g-day{flex:0 0 auto;font-size:13px;color:var(--muted)}.emp-glance .g-day b{color:var(--deep);text-transform:uppercase;letter-spacing:.04em;margin-right:2px}
.emp-glance em{font-style:normal}.emp-glance .g-day em{margin-left:4px;padding:1px 7px;border-radius:999px;background:var(--deep);color:#fff;font-size:11px;font-weight:700}
.emp-glance .g-shift{display:flex;flex-direction:column;align-items:flex-end;min-width:0;text-align:right}.emp-glance .g-time{font-weight:750;color:var(--deep);font-variant-numeric:tabular-nums}.emp-glance .g-sub{font-size:12px;color:var(--muted)}
.emp-glance .g-off{font-size:13px;color:var(--muted)}

.emp-root .emp-next-day{margin:0 0 8px;color:var(--muted);font-size:14px}
.emp-link{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin-top:6px;padding:0 2px;border:0;background:transparent;color:var(--deep);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.emp-link .emp-ic{width:18px;height:18px;flex-basis:18px}
.emp-list{list-style:none;margin:4px 0 0;padding:0}.emp-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line)}.emp-list .l-r{display:flex;flex-direction:column;align-items:flex-end;text-align:right}.emp-list small{font-size:12px;color:var(--muted)}.emp-list li:first-child{border-top:0}
.emp-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:44px;padding:0 16px;border:1px solid #b9c6bd;border-radius:10px;background:#fff;font-weight:650;color:var(--deep)}
.emp-btn.icon{padding:0}.emp-btn.primary{background:var(--deep);border-color:var(--deep);color:#fff}.emp-btn.wide{width:100%;margin-top:6px}
.emp-btn:hover{border-color:var(--brand)}.emp-btn.primary:hover{background:#0f2a22}

/* shifts */
.emp-shift{background:#f3f8f3;border:1px solid #d3e4d6;border-left:5px solid var(--brand);border-radius:10px;padding:10px 12px;margin-top:8px;min-width:0}
.emp-shift.big{padding:14px 16px}.emp-shift.big .emp-shift-time{font-size:22px}
.emp-shift-time{font-size:17px;font-weight:750;color:var(--deep);font-variant-numeric:tabular-nums}.emp-shift-time .t-s,.emp-shift-time .t-e{white-space:nowrap}
.emp-shift-meta{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:3px;font-size:13px;color:var(--muted)}.emp-shift-meta b{color:var(--ink)}
.emp-weeknav{display:flex;gap:8px;align-items:center;margin-bottom:14px}.emp-weeknav .emp-btn:nth-child(2){flex:1;max-width:260px}
.emp-total{margin:0 0 14px;display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;font-size:14px;color:var(--muted)}.emp-total b{font-size:20px;color:var(--deep);font-variant-numeric:tabular-nums}.emp-total .emp-badge{margin-left:auto}
.emp-root .emp-foot{margin:12px 2px 0;font-size:13px;color:var(--muted)}
.emp-week{display:grid;grid-template-columns:1fr;gap:10px}
.emp-day{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.emp-day h3{display:flex;align-items:baseline;gap:8px;margin:0;font-size:14px;color:var(--deep)}.emp-day h3 span{font-weight:700;text-transform:uppercase;letter-spacing:.04em;min-width:34px}.emp-day h3 b{font-weight:600}
.emp-day h3 em,.emp-group h2 em{font-style:normal;margin-left:auto;padding:1px 8px;border-radius:999px;background:var(--deep);color:#fff;font-size:11px;font-weight:700}
.emp-day.today{border-color:var(--brand);box-shadow:0 0 0 2px #398c5333}
.emp-day.off{background:#fbfcfa;display:flex;align-items:baseline;gap:12px;padding:8px 12px}.emp-day.off h3{flex:0 0 auto}.emp-root .emp-off{margin:0;color:var(--muted);font-size:14px}
.emp-group{margin-bottom:16px}.emp-group h2{display:flex;align-items:center;gap:8px;font-size:15px}.emp-group h2 em{margin-left:0}

/* notices, profile, loading */
.emp-notice{padding:16px;border-radius:12px;background:#fff;border:1px solid var(--line);border-left:5px solid var(--fresh)}
.emp-notice.warn{border-left-color:#c58a12;background:#fffaf0}.emp-notice.error{border-left-color:#b3382c;background:#fff6f4}
.emp-notice.warn p{font-size:11pt}
.emp-unlinked{max-width:620px;margin:8px auto 0}.emp-unlinked .emp-h1{font-size:20px;margin:0 0 6px}.emp-unlinked h2{margin:12px 0 4px;font-size:15px;color:var(--deep)}
.emp-root .emp-unlinked p{margin:6px 0}.emp-steps{margin:4px 0 12px;padding-left:22px;font-size:11pt}.emp-steps li{margin:4px 0}
.emp-actions{display:flex;flex-wrap:wrap;gap:8px}.emp-actions .emp-btn{flex:1 1 150px}
.emp-rail-out{display:none} /* the "not linked to a staff record" message: 12pt (16px) reduced by 1pt */
.emp-notice strong{display:block;color:var(--deep);font-size:16px}.emp-notice p{margin:6px 0 12px;color:var(--ink)}.emp-notice .emp-btn{margin-top:2px}
.emp-dl{margin:0}.emp-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 16px;padding:11px 0;border-top:1px solid var(--line)}.emp-row:first-child{border-top:0;padding-top:0}
.emp-row dt{color:var(--muted);font-size:14px}.emp-row dd{margin:0;font-weight:650;overflow-wrap:anywhere;text-align:right}
.emp-loading{display:flex;align-items:center;gap:12px;padding:30px 4px;color:var(--muted)}
.emp-spin{width:20px;height:20px;border:3px solid #d5e2d8;border-top-color:var(--brand);border-radius:50%;animation:emp-rot .9s linear infinite}
@keyframes emp-rot{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.emp-spin{animation:none}}

/* tablet */
@media(min-width:640px){.emp-main{padding:24px 24px 96px}.emp-h1{font-size:28px}.emp-cards{grid-template-columns:1fr 1fr}.emp-week{gap:12px}
  .emp-glance{grid-template-columns:repeat(2,1fr)}
  .emp-glance li{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px}.emp-glance .g-shift{align-items:flex-start;text-align:left}
  .emp-day,.emp-day.off{display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:14px;align-items:start}.emp-day h3{display:block}.emp-day h3 span{display:block}.emp-day h3 em{display:inline-block;margin:6px 0 0}
  .emp-day-b .emp-shift:first-child{margin-top:0}.emp-root .emp-day .emp-off{margin:0;align-self:center}
  .emp-day.off{padding:8px 12px;align-items:center}}
/* orientation: short landscape phones — keep the tab bar slim and content visible */
@media(max-height:480px) and (orientation:landscape){.emp-tabs button{min-height:48px;flex-direction:row;gap:6px;font-size:13px}.emp-main{padding-bottom:72px}.emp-top{position:static}}
/* desktop */
@media(min-width:960px){
  .emp-shell{flex-direction:row}
  .emp-rail{display:flex;flex-direction:column;gap:22px;position:sticky;top:0;align-self:flex-start;height:100vh;width:236px;flex:0 0 236px;padding:22px 14px;background:var(--deep)}
  .emp-side{display:flex;flex-direction:column;gap:4px}
  .emp-side button{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 14px;border:0;border-radius:10px;background:transparent;color:#d8e8de;font-weight:600;text-align:left}
  .emp-side button:hover{background:#ffffff14}.emp-side button[aria-current=page]{background:#ffffff1f;color:#fff;box-shadow:inset 3px 0 0 var(--fresh)}
  .emp-side button[aria-current=page] .emp-ic{color:var(--fresh)}
  .emp-rail .emp-rail-out{margin-top:auto;display:flex;align-items:center;gap:12px;min-height:46px;padding:0 14px;border:1px solid #ffffff30;border-radius:10px;background:transparent;color:#d8e8de;font-weight:600}.emp-rail-out:hover{background:#ffffff14}
  .emp-tabs,.emp-top .emp-brand.compact{display:none}
  .emp-top{position:static;background:var(--warm);color:var(--ink);border-bottom:1px solid var(--line);justify-content:flex-end;padding:12px 28px}
  .emp-top-info{flex:1;text-align:left;color:var(--muted)}
  .emp-bell{color:var(--muted);border-color:#9aa79f}
  .emp-main{padding:26px 28px 40px}.emp-env{padding:8px 28px}
  .emp-cards{grid-template-columns:repeat(2,1fr)}.emp-glance{grid-template-columns:repeat(3,1fr)}
}
/* 7-day grid only once each column can hold a readable responsibilities block (WI-VET-020); below this day rows are used */
@media(min-width:1600px){
  .emp-week{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
  .emp-day,.emp-day.off{display:block;padding:10px}.emp-day h3{display:block}.emp-day h3 span{display:block;min-width:0}.emp-day h3 b{display:block;font-size:13px}.emp-day h3 em{display:inline-block;margin:4px 0 0}
  .emp-day .emp-shift{padding:8px 9px}.emp-day .emp-shift-time{font-size:15px}.emp-day .emp-shift-time{font-size:14px}.emp-day .emp-shift-time .t-s,.emp-day .emp-shift-time .t-e{display:block}.emp-day .emp-shift .emp-shift-meta{flex-direction:column}
  .emp-day .emp-shift:first-of-type,.emp-root .emp-day .emp-off{margin-top:8px}.emp-day.off{background:#f4f6f2}
  .emp-glance{grid-template-columns:repeat(4,1fr)}
}
/* wide columns: the time range fits on one line */
@media(min-width:1600px){.emp-day .emp-shift-time{font-size:15px}.emp-day .emp-shift-time .t-s,.emp-day .emp-shift-time .t-e{display:inline}.emp-day .emp-shift .emp-shift-meta{flex-direction:column}}

/* WI-VET-018 shift tasks: one pattern across card, glance and list; wraps long words, never truncates */
.emp-tasks{margin-top:10px;padding:10px 12px;border-left:3px solid var(--brand);background:#f1f6ef;border-radius:0 8px 8px 0}
.emp-tasks-h{display:block;font-size:12px;font-weight:700;color:var(--deep);text-transform:none;letter-spacing:.01em}
.emp-root .emp-tasks p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.emp-tasks .t-short{display:none}
.g-tasks,.l-tasks{display:block;margin-top:4px;font-size:13px;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}
.emp-list li{flex-wrap:wrap}.l-tasks{flex:1 0 100%}

/* WI-VET-020 Employee standardisation: Manager header hierarchy, tokens, panels and navigation treatment */
.emp-mode{background:#faf8f2}
.emp-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#6b7b73}.emp-eyebrow span,.emp-eyebrow b{color:var(--brand);font-weight:700}
.emp-h1{font-size:24px;margin:6px 0 4px}
.emp-card,.emp-day,.emp-total,.emp-notice{border-color:#e3eae5;box-shadow:0 4px 18px #0d35200c;border-radius:12px}
.emp-card h2,.emp-group h2{font-size:16px}
.emp-badge.pub{background:#e6f4ea}
.emp-side button[aria-current=page]{background:#195e48;color:#fff;box-shadow:inset 3px 0 0 var(--fresh)}
.emp-tabs button[aria-current=page]{box-shadow:inset 0 3px 0 var(--fresh)}
.emp-rail{background:#003b35}
/* tasks: more legible, never cramped */
.emp-tasks{padding:10px 14px;background:#f1f6ef}
.emp-tasks-h{font-size:13px;letter-spacing:.01em;text-transform:none}
.emp-root .emp-tasks p{font-size:15px;line-height:1.5;max-width:75ch}
.g-tasks,.l-tasks{font-size:14px;line-height:1.45;color:var(--ink)}
@media(min-width:640px){.emp-h1{font-size:26px}}
/* desktop width: use the available space instead of a narrow centred column */
@media(min-width:960px){.emp-main{max-width:1560px}}
@media(min-width:1280px){.emp-cards{grid-template-columns:repeat(3,1fr)}}
/* day rows and upcoming groups: time and break details beside the responsibilities rather than stacked above them */
@media(min-width:900px) and (max-width:1599px){
  .emp-day .emp-shift,.emp-group .emp-shift{display:grid;grid-template-columns:minmax(190px,280px) 1fr;grid-template-areas:"time tasks" "meta tasks";column-gap:22px;align-items:start}
  .emp-day .emp-shift-time,.emp-group .emp-shift-time{grid-area:time}.emp-day .emp-shift-meta,.emp-group .emp-shift-meta{grid-area:meta;flex-direction:column}
  .emp-day .emp-shift .emp-tasks,.emp-group .emp-shift .emp-tasks{grid-area:tasks;margin-top:0}
}
@media(min-width:640px) and (max-width:1599px){.emp-day h3 b{display:block}.emp-day h3 em{display:inline-block;margin:6px 0 0}}


/* WI-VET-021 UX refinement + WI-VET-022 rota views: content-driven panels, sensible maximum widths, compact rows.
   Heights come from content (no min-height, no stretched grid rows); spacing, colours and tokens are unchanged. */
.emp-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Home: priority order is Next shift, This week, Coming up, Leave; cards size to their content */
.emp-cards{gap:12px;align-items:start;grid-template-areas:"next" "week" "up" "leave"}
.emp-cards>.emp-card{margin-bottom:0}
.h-next{grid-area:next}.h-week{grid-area:week}.h-up{grid-area:up}.h-leave{grid-area:leave}
.emp-wk-sum{display:flex;flex-wrap:wrap;align-items:center;gap:6px 28px;margin-bottom:12px}
.emp-wk-sum .emp-figure{margin:0}.emp-wk-sum .emp-stats{margin:0}
.emp-glance li.off{padding:6px 10px}
.emp-kv{list-style:none;margin:10px 0 0;padding:0}
.emp-kv li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;padding:7px 0;border-top:1px solid var(--line);font-size:14px}
.emp-kv li span{color:var(--muted)}.emp-kv li b{color:var(--ink);text-align:right;overflow-wrap:anywhere}
.emp-root .emp-update{margin:10px 0 0;padding:8px 10px;border-radius:8px;background:#f1f6ef;font-size:14px;overflow-wrap:anywhere}
@media(min-width:640px){
  .emp-cards{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"next leave" "week week" "up up"}
  .emp-glance{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));align-items:start}
}
@media(min-width:900px){.h-up .emp-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}}
@media(min-width:1280px){.emp-cards{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"next next leave" "week week up"}.h-up .emp-list{display:block}}

/* My rota: view selector + navigation */
.emp-rv-bar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin-bottom:14px}
.emp-rv-bar .emp-weeknav{margin:0}
.emp-seg{display:inline-flex;border:1px solid #b9c6bd;border-radius:10px;overflow:hidden;background:#fff}
.emp-seg button{min-height:44px;min-width:68px;padding:0 14px;border:0;background:#fff;color:var(--deep);font-weight:650}
.emp-seg button+button{border-left:1px solid #b9c6bd}
.emp-seg button:hover{background:#f1f6ef}
.emp-seg button[aria-pressed=true]{background:var(--deep);color:#fff}
.emp-root .emp-seg button:focus-visible{outline-offset:-4px;border-radius:0}
.emp-rv-day{max-width:780px}.emp-rv-agenda,.emp-rv-month{max-width:980px}
@media(max-width:1599px){.emp-rv-week{max-width:1040px}}
.emp-chip,.emp-ag-day h3 em{font-style:normal;margin-left:8px;padding:1px 8px;border-radius:999px;background:var(--deep);color:#fff;font-size:11px;font-weight:700;vertical-align:middle}
.emp-ag-day h3 em{margin-left:0}

/* compact day rows (Week): the day label beside its shifts, off days as slim one-liners */
.emp-week{gap:8px}
.emp-day-b{min-width:0}
.emp-day .emp-shift,.emp-ag-day .emp-shift{padding:8px 12px;margin-top:6px}
.emp-day-b .emp-shift:first-child,.ag-body .emp-shift:first-child{margin-top:0}

/* Day */
.emp-dayview .emp-card-h{flex-wrap:wrap}.emp-dayview h2{font-size:18px}
.emp-root .dv-sum{margin:0 0 8px}.emp-root .dv-sum b{color:var(--deep)}
.emp-dayview .emp-shift.big{margin-top:10px}.emp-dayview .emp-shift.big:first-of-type{margin-top:4px}
@media(min-width:900px){
  .emp-dayview .emp-shift,.emp-ag-day .emp-shift{display:grid;grid-template-columns:minmax(190px,260px) 1fr;grid-template-areas:"time tasks" "meta tasks";column-gap:22px;align-items:start}
  .emp-dayview .emp-shift-time,.emp-ag-day .emp-shift-time{grid-area:time}
  .emp-dayview .emp-shift-meta,.emp-ag-day .emp-shift-meta{grid-area:meta;flex-direction:column}
  .emp-dayview .emp-shift .emp-tasks,.emp-ag-day .emp-shift .emp-tasks{grid-area:tasks;margin-top:0}
}

/* Agenda */
.emp-agenda{display:grid;gap:8px}
.emp-ag-day{background:#fff;border:1px solid #e3eae5;border-radius:12px;padding:10px 12px;box-shadow:0 4px 18px #0d35200c;min-width:0}
.emp-ag-day.today{border-color:var(--brand);box-shadow:0 0 0 2px #398c5333}
.emp-ag-day h3{margin:0 0 6px;font-size:14px;color:var(--deep);display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 8px}
.ag-body{min-width:0}
@media(min-width:640px){.emp-ag-day{display:grid;grid-template-columns:130px minmax(0,1fr);column-gap:14px;align-items:start}.emp-ag-day h3{display:block;margin:0}.emp-ag-day h3 em{display:inline-block;margin-top:6px}}

/* Month */
.emp-cal-wrap{min-width:0}
.emp-cal{width:100%;border-collapse:separate;border-spacing:3px;table-layout:fixed}
.emp-cal th{padding:4px 0;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);text-align:center}
.emp-cal td{padding:0;vertical-align:top}
.emp-cell{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:56px;padding:5px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:left;overflow:hidden}
.emp-cell:hover{border-color:var(--brand)}
.emp-cell .c-d{font-size:14px;font-weight:700;color:var(--deep);line-height:1.1}
.emp-cell .c-t{font-size:12px;font-weight:700;color:var(--deep);font-variant-numeric:tabular-nums}
.emp-cell .c-s{display:none;font-size:11px;color:var(--muted);white-space:nowrap}
.emp-cell.work{background:#eaf4ec;border-color:#c5dccb;box-shadow:inset 0 3px 0 var(--brand)}
.emp-cell.unpublished,.emp-cell.unknown{background:#fafbf9;border-style:dashed}.emp-cell .c-n{color:var(--muted)}
.emp-cal td.out .emp-cell{opacity:.6}
.emp-cell.today{border-color:var(--deep);box-shadow:0 0 0 2px #00694f55}.emp-cell.today.work{box-shadow:inset 0 3px 0 var(--brand),0 0 0 2px #00694f55}
.emp-cell.today .c-d{text-decoration:underline;text-underline-offset:3px}
.emp-key{display:inline-block;width:12px;height:12px;border:1px solid var(--line);border-radius:3px;background:#fff;vertical-align:-1px}.emp-key.work{background:#eaf4ec;border-color:var(--brand)}
@media(min-width:768px){.emp-cal{border-spacing:5px}.emp-cell{min-height:78px;padding:7px 8px}.emp-cell .c-s{display:block}}

/* Upcoming: the same compact width as the other lists */
.emp-group{max-width:980px}
@media(max-width:639px){.emp-seg{display:flex;width:100%}.emp-seg button{flex:1 1 0;min-width:0;padding:0 4px}.emp-rv-bar .emp-weeknav{width:100%}}

/* WI-VET-022 long responsibilities: clamp to a few lines with a Show more toggle; text stays plain, wrapped and complete in the DOM */
.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.emp-more{display:inline-flex;align-items:center;min-height:44px;margin-top:2px;padding:0 4px;border:0;background:none;color:var(--deep);font:inherit;font-size:13px;font-weight:700;text-decoration:underline;cursor:pointer}
.emp-more:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:6px}
.g-tasks+.emp-more,.l-tasks+.emp-more{display:flex}
.emp-tasks,.g-shift,.emp-list li{min-width:0}

/* SW-FINAL: employee Help button (reopens the employee guide); 44px touch target, light variant once the top bar turns light (>=960px) */
.emp-helpbtn{flex:0 0 auto;position:relative;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #ffffff40;background:transparent;color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.emp-helpbtn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.emp-helpbtn.has-dot::after{content:"";position:absolute;top:6px;right:8px;width:8px;height:8px;border-radius:50%;background:#2ed47a;box-shadow:0 0 0 2px var(--deep)}
@media(min-width:960px){.emp-helpbtn{color:var(--ink);border-color:#9aa79f}.emp-helpbtn:focus-visible{outline-color:var(--brand)}.emp-helpbtn.has-dot::after{background:#008f49;box-shadow:0 0 0 2px var(--warm)}}
