/* Occluna - Kingfisher Row Dental.
   Tokens carried from the website (site/assets/css/main.css): flat purples, teal for state,
   gold only for the one primary action per screen, radius 10/14/6, near-flat shadows. */

:root {
  --purple: #1f3550;
  --purple-deep: #152638;
  --purple-soft: #f5f7fa;
  --teal: #7a9e86;
  --teal-deep: #557a62;
  --teal-soft: #e9f1ec;
  --gold: #e48a7a;
  --gold-deep: #c0604f;
  --ink: #252c35;
  --muted: #646b75;
  --line: #e9ecef;
  --white: #fff;
  --cream: #f6f8fa;
  --blush: #edf1f6;
  --lilac: #dbe3ee;
  --red: #b8434f;
  --red-soft: #fbecee;
  --amber: #a8741a;
  --amber-soft: #fbf3e2;

  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(31, 53, 80, 0.08);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--purple);
  line-height: 1.15;
  margin: 0 0 .5rem;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 40;
}
h1 { font-size: 1.65rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 .75rem; }
a { color: var(--purple); text-decoration-color: var(--teal); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
.num, td, .stat b { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

.boot { min-height: 100vh; display: grid; place-items: center; }

/* --- Layout -------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 12px;
}
.top .logo { height: 34px; width: auto; display: block; }
.top .app-name { font-size: .78rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; line-height: 1.2; }
.top .spacer { flex: 1; }
.top .who { font-size: .85rem; color: var(--muted); }
.bell { position: relative; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--purple); }
.bell .dot { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--white); border-top: 1px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom);
}
.nav a {
  flex: 1; text-align: center; text-decoration: none; color: var(--muted);
  font-size: .72rem; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.nav a svg { width: 22px; height: 22px; }
.nav a.on { color: var(--purple); font-weight: 600; }
.nav a.on svg { color: var(--teal-deep); }

main { max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + 28px); }

@media (min-width: 900px) {
  .nav { position: sticky; top: 55px; bottom: auto; border-top: 0; border-bottom: 1px solid var(--line); justify-content: center; gap: 4px; padding: 0 16px; flex-wrap: wrap; overflow: visible; }   /* a second row rather than items hidden off the edge */
  .nav a { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: .9rem; padding: 12px 16px; border-bottom: 2px solid transparent; }
  .nav a.on { border-bottom-color: var(--teal); }
  .nav a svg { width: 18px; height: 18px; }
  main { padding-bottom: 48px; }
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.grid { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.home { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .grid.home > .span-all { grid-column: 1 / -1; }   /* Who's in today across the page (Helena, 6 Nov 2026) */
}

.card {
  background: var(--white); border: 1px solid #e1e5e9; border-radius: var(--radius);
  padding: 16px 18px;
}
.card > h2:first-child { margin-bottom: 10px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.card h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; color: var(--purple); letter-spacing: 0; }

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--purple); background: var(--purple); color: #fff;
  border-radius: var(--radius); padding: 10px 16px; font-weight: 500; cursor: pointer;
  text-decoration: none; line-height: 1.2; min-height: 42px;
}
.btn:hover { background: var(--purple-deep); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--purple-deep); font-weight: 600; }
.btn.gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn.line { background: var(--white); color: var(--purple); border-color: var(--line); }
.btn.line:hover { border-color: var(--purple); background: var(--white); }
.btn.teal { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn.danger { background: var(--white); color: var(--red); border-color: #efcdd1; }
.btn.small { min-height: 32px; padding: 5px 10px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--purple); text-decoration: underline; text-decoration-color: var(--teal); cursor: pointer; }

/* --- Clock card ----------------------------------------------------------- */
.clock { text-align: center; padding: 22px 16px; }
.clock .now { font-family: var(--font-serif); font-size: 2.6rem; color: var(--purple); line-height: 1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.clock .date { color: var(--muted); margin-bottom: 14px; }
.clock .state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--purple-soft); font-size: .9rem; margin-bottom: 16px; }
.clock .state.in { background: var(--teal-soft); color: var(--teal-deep); }
.clock .state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.clock .btn { min-height: 56px; font-size: 1.1rem; width: 100%; max-width: 360px; }
.clock .shift-line { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.clock .where { margin-top: 10px; font-size: .82rem; color: var(--muted); }

/* --- Stats ----------------------------------------------------------------- */
.stats { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 2px 0 4px; }
.stat { padding: 0 18px 0 0; margin-right: 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat b { display: block; font-size: 1.35rem; color: var(--purple); line-height: 1.15; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat:first-child b { font-size: 1.9rem; }
.stat span { font-size: .78rem; color: var(--muted); }
.stat.warn b { color: var(--red); }
.stat.warn b { color: var(--red); }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; display: flex; margin: 10px 0 4px; }
.bar i { display: block; height: 100%; }

/* --- Lists ------------------------------------------------------------------ */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 500; }
.list .sub { font-size: .82rem; color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 600; color: #fff; background: var(--purple); flex: none; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: var(--purple-soft); color: var(--purple); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip.in { background: var(--teal-soft); color: var(--teal-deep); }
.chip.due { background: var(--amber-soft); color: var(--amber); }
.chip.away { background: var(--blush); color: var(--muted); }
.chip.pending { background: var(--amber-soft); color: var(--amber); }
.chip.approved { background: var(--teal-soft); color: var(--teal-deep); }
.chip.declined, .chip.cancelled { background: var(--red-soft); color: var(--red); }
.chip.flag { background: var(--red-soft); color: var(--red); }
.chip.ok { background: var(--teal-soft); color: var(--teal-deep); }

.whos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.whos .p { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.whos .p .n { font-weight: 500; font-size: .9rem; line-height: 1.2; }
.whos .p .t { font-size: .75rem; color: var(--muted); }
.team-label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 6px; }

/* --- Tables ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; font-size: .78rem; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--white); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--purple-soft); }
td.r, th.r { text-align: right; }
.neg { color: var(--red); font-weight: 500; }
.pos { color: var(--teal-deep); font-weight: 500; }
tr.weekend td { background: #fbfcfd; }
tr.bh td { background: var(--blush); }
tr.flagged td:first-child { box-shadow: inset 3px 0 0 var(--red); }

/* --- Rota ------------------------------------------------------------------------ */
.rota-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rota-nav .label { font-weight: 600; color: var(--purple); min-width: 170px; text-align: center; }
.day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.day-tabs button { flex: none; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); padding: 6px 12px; cursor: pointer; text-align: center; line-height: 1.2; }
.day-tabs button b { display: block; font-size: .95rem; color: var(--purple); }
.day-tabs button span { font-size: .72rem; color: var(--muted); }
.day-tabs button.on { background: var(--purple); border-color: var(--purple); }
.day-tabs button.on b, .day-tabs button.on span { color: #fff; }
.day-tabs button.today:not(.on) { border-color: var(--teal); }

.rota-day { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.room { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 12px; }
.room-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.room-h b { font-family: var(--font-serif); color: var(--purple); font-size: 1.02rem; }
.room-h span { font-size: .72rem; color: var(--muted); }
.slot { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-sm); background: var(--purple-soft); margin-top: 5px; min-height: 40px; }
.slot .role { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); width: 44px; flex: none; }
.slot .nm { font-weight: 500; flex: 1; min-width: 0; line-height: 1.25; }
.slot .nm small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); }
.slot.empty { background: var(--white); border: 1px dashed var(--line); }
.slot.empty .nm { color: var(--muted); font-weight: 400; }
.slot.away { background: var(--red-soft); }
.slot.away .nm { text-decoration: line-through; text-decoration-color: rgba(184, 67, 79, .5); }
.slot.me { box-shadow: inset 0 0 0 2px var(--teal); }
.slot.editable { cursor: pointer; }
.slot.editable:hover { box-shadow: inset 0 0 0 1px var(--purple); }
.slot .ovr { font-size: .65rem; color: var(--gold-deep); font-weight: 600; }
.gap-warn { font-size: .74rem; color: var(--red); margin-top: 4px; }
.unplaced { margin-top: 14px; }

/* week table on wide screens */
.rota-week { display: none; }
@media (min-width: 1100px) {
  .rota-week { display: block; }
  .rota-mobile { display: none; }
}
.rota-week table { table-layout: fixed; }
.rota-week th:first-child, .rota-week td:first-child { width: 96px; }
.rota-week td { padding: 6px; }
.rota-week .slot { margin-top: 3px; min-height: 34px; padding: 4px 6px; font-size: .84rem; }
.rota-week .slot .role { display: none; }
.rota-week td.loc b { font-family: var(--font-serif); color: var(--purple); display: block; }
.rota-week td.loc span { font-size: .72rem; color: var(--muted); }
.rota-week th.today { color: var(--teal-deep); }

/* --- Forms ----------------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field > label, .field > .lbl { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 5px; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=month], select, textarea {
  width: 100%; border: 1px solid #d6dce3; border-radius: var(--radius); padding: 10px 12px; background: var(--white); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(88, 182, 175, .2); }
input.bad { border-color: var(--red); }
textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.inline { display: flex; align-items: center; gap: 8px; }
.inline .to { color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.switch label { font-weight: 600; font-size: .9rem; }
.toggle { position: relative; width: 46px; height: 26px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: #d3d9df; border-radius: 13px; cursor: pointer; transition: background .15s; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--teal-deep); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 6px 0; }
.total-band { background: var(--purple-soft); border-radius: var(--radius); padding: 12px 14px; display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 14px; }
.total-band .v { color: var(--purple); }
.msg { border-radius: var(--radius); padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }
.msg.err { background: var(--red-soft); color: var(--red); }
.msg.info { background: var(--teal-soft); color: var(--teal-deep); }
.msg.warn { background: var(--amber-soft); color: var(--amber); }

/* pattern editor */
.pattern-row { display: grid; grid-template-columns: 56px 1fr 1fr 80px 100px; gap: 6px; align-items: center; margin-bottom: 6px; }
.pattern-row .d { font-weight: 600; color: var(--purple); }
.pattern-row input, .pattern-row select { min-height: 38px; padding: 6px 8px; }

/* --- Sheet (slide-over panel, like the "Add time off" drawer) --------------------------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(37, 44, 53, .4); z-index: 50; display: flex; justify-content: flex-end; }
.sheet {
  background: var(--white); width: 100%; max-width: 440px; height: 100%; overflow-y: auto;
  padding: 0 18px 24px; box-shadow: -4px 0 24px rgba(37, 44, 53, .15);
  animation: slidein .18s ease-out;
}
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-h { position: sticky; top: 0; background: var(--white); display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; z-index: 1; }
.sheet-h h2 { margin: 0; flex: 1; font-size: 1.1rem; }
.x { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
@media (max-width: 600px) {
  .sheet-bg { align-items: flex-end; }
  .sheet { max-width: none; height: auto; max-height: 92vh; border-radius: 16px 16px 0 0; animation: slideup .18s ease-out; }
  @keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* --- Login ------------------------------------------------------------------------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 400px; padding: 28px 24px; }
.login .logo { width: 230px; max-width: 80%; display: block; margin: 0 auto 6px; }
.login .app-title { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.login .rule { width: 40px; height: 2px; background: var(--gold); margin: 0 auto 22px; }
.code-input { letter-spacing: .5em; text-align: center; font-size: 1.4rem !important; font-variant-numeric: tabular-nums; }

/* --- Toast ----------------------------------------------------------------------------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px); transform: translateX(-50%); background: var(--purple-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 60; font-size: .9rem; max-width: calc(100% - 32px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.toast.err { background: var(--red); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

.empty-state { text-align: center; color: var(--muted); padding: 24px 8px; font-size: .9rem; }
.tabs { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 3px; gap: 2px; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: .88rem; color: var(--muted); }
.tabs button.on { background: var(--purple); color: #fff; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

@media print {
  .top, .nav, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: 0; padding: 0; }
}

/* --- Nav badges, More menu ----------------------------------------------------------------- */
.nav a { position: relative; }
.nav .badge { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10.5px; line-height: 17px; padding: 0 4px; font-weight: 600; }
.nav .mob-only { display: flex; }
.nav .desk-only { display: none; }
@media (min-width: 900px) {
  .nav .mob-only { display: none; }
  .nav .desk-only { display: flex; }
  .nav .badge { position: static; margin-left: 2px; }
}
.more-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.more-list a svg { color: var(--teal-deep); }
.more-list a .badge { margin-left: auto; background: var(--red); color: #fff; border-radius: 9px; font-size: 11px; padding: 1px 7px; }

/* --- Events ------------------------------------------------------------------------------------ */
.event { display: flex; gap: 14px; align-items: flex-start; }
.event .when { flex: none; width: 58px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 0; background: var(--white); }
.event .when b { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--purple); line-height: 1.05; }
.event .when span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.event .body { flex: 1; min-width: 0; }
.event h3 { margin: 0 0 2px; font-size: 1.02rem; }
.event.cancelled h3 { text-decoration: line-through; color: var(--muted); }
.rsvp { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.rsvp button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .88rem; }
.rsvp button.on.going { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.rsvp button.on.maybe { background: var(--gold); border-color: var(--gold); color: var(--purple-deep); }
.rsvp button.on.no { background: var(--muted); border-color: var(--muted); color: #fff; }

/* --- Chat -------------------------------------------------------------------------------------- */
.chat-list li { cursor: pointer; }
.chat-list .unread { background: var(--teal-deep); color: #fff; border-radius: 999px; font-size: .74rem; padding: 1px 8px; font-weight: 600; }
.chat-list .preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 360px; }
@media (min-width: 900px) { .thread { height: calc(100vh - 230px); } }
.thread-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.thread-h h2 { margin: 0; flex: 1; font-size: 1.05rem; }
.msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #fcfdfe; }
.msg-b { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg-b.mine { align-self: flex-end; background: var(--purple); color: #fff; border-color: var(--purple); }
.msg-b .meta { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.msg-b.mine .meta { color: rgba(255,255,255,.7); text-align: right; }
.msg-b .from { font-size: .74rem; font-weight: 600; color: var(--teal-deep); margin-bottom: 2px; }
.msg-b a.file { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: rgba(31,53,80,.06); color: inherit; text-decoration: none; font-size: .86rem; }
.msg-b.mine a.file { background: rgba(255,255,255,.14); }
.day-sep { align-self: center; font-size: .72rem; color: var(--muted); margin: 8px 0 2px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--white); }
.composer textarea { min-height: 42px; max-height: 140px; resize: none; padding: 9px 12px; }
.composer .attach { flex: none; width: 42px; height: 42px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--purple); background: var(--white); }
.composer .attach input { display: none; }
.pending-files { font-size: .8rem; color: var(--muted); padding: 0 12px 6px; }
.member-picks { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 0; background: var(--white); }
.member-picks .pick { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.member-picks .pick:last-child { border-bottom: 0; }
.member-picks .pick:hover { background: var(--purple-soft); }
.member-picks .pick .grow { display: flex; flex-direction: column; line-height: 1.25; }
.member-picks .pick input { width: 20px; height: 20px; accent-color: var(--purple); }
.member-picks .pick[hidden] { display: none; }
.team-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--purple); }
.chip-btn.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }

/* --- Shift-based rota ------------------------------------------------------------------- */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-right: 6px; vertical-align: 1px; }
.room-h { justify-content: flex-start; gap: 0; align-items: center; }
.room-h span:not(.dot) { margin-left: auto; }
.shift { display: block; padding: 5px 8px; border-radius: var(--radius-sm); background: var(--purple-soft); margin-top: 5px; line-height: 1.25; font-size: .86rem; }
.shift b { font-weight: 600; font-size: .78rem; color: var(--purple); }
.shift span { display: block; }
.shift small { display: block; font-size: .72rem; color: var(--muted); }
.shift.me { box-shadow: inset 0 0 0 2px var(--teal); }
.shift.free { background: var(--white); border: 1px dashed #d0d7df; }
.shift.away { background: var(--red-soft); }
.shift.away span { text-decoration: line-through; text-decoration-color: rgba(184, 67, 79, .5); }
.shift.off { background: var(--white); border: 1px solid var(--line); }
.shift.editable { cursor: pointer; }
.shift.editable:hover { box-shadow: inset 0 0 0 1px var(--purple); }
.shift .chip { display: inline-flex; font-size: .65rem; padding: 0 6px; }
.add-shift { display: block; width: 100%; margin-top: 5px; border: 1px dashed #d0d7df; background: none; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; line-height: 1.6; font-size: .9rem; }
.add-shift:hover { border-color: var(--purple); color: var(--purple); }
.rota-week td.loc { white-space: nowrap; }
.rota-week td.loc b { display: inline; }
.rota-week td.loc span:not(.dot) { display: block; padding-left: 16px; }
table.master td { min-width: 130px; vertical-align: top; padding: 6px; }
table.master td.loc { white-space: nowrap; }
table.master td.loc span:not(.dot) { display: block; font-size: .72rem; color: var(--muted); padding-left: 16px; }
.viewas-bar { background: var(--gold); color: var(--purple-deep); text-align: center; padding: 6px 12px; font-size: .88rem; font-weight: 500; }
.viewas-bar button { margin-left: 8px; }
@media print { .add-shift, .viewas-bar { display: none !important; } .rota-week { display: block !important; } .rota-mobile { display: none !important; } }
.shift[draggable="true"] { cursor: grab; }
.shift.dragging { opacity: .45; }
.drop-on { outline: 2px dashed var(--teal); outline-offset: -2px; background: var(--teal-soft) !important; }

.avatar.photo { object-fit: cover; padding: 0; background: var(--lilac); }

/* rota week grid: room/row labels wrap inside a wider first column (were spilling into Monday) */
.rota-week th:first-child, .rota-week td:first-child { width: 150px; }
.rota-week td.loc { white-space: normal; line-height: 1.25; padding-left: 12px; }
.rota-week td.loc b { display: inline; font-size: .95rem; }
.rota-week td.loc .dot { margin-right: 5px; }
/* "+" add-shift buttons only show when you point at a cell (computers); always there on touch screens */
@media (hover: hover) {
  .rota-week .add-shift { opacity: 0; transition: opacity .12s; }
  .rota-week td:hover .add-shift, .rota-week .add-shift:focus { opacity: 1; }
}
/* policies */
.doc-list li { gap: 12px; }
.doc-ic { width: 38px; height: 38px; border-radius: var(--radius); background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; flex: none; }
.click-row { cursor: pointer; }
.click-row:hover { background: var(--purple-soft); }

/* --- Phones: nothing may be wider than the screen ------------------------------------------ */
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }   /* clip: same look, but lets sticky rows (Not on the rota) stick */
.whos .p { min-width: 0; }
.whos .p > div { min-width: 0; }
.whos .chip, .list .chip, .sub .chip { white-space: normal; text-align: left; }
.grid > * { min-width: 0; }
img, table { max-width: 100%; }

/* Home order on phones: clock, things to do, then my info, then the team */
@media (max-width: 899px) {
  .grid.home { display: flex; flex-direction: column; gap: 14px; }
  .grid.home > .grid { display: contents; }
  .o1 { order: 1; } .o2 { order: 2; } .o3 { order: 3; } .o4 { order: 4; }
  .o5 { order: 5; } .o6 { order: 6; } .o7 { order: 7; } .o8 { order: 8; }
  main { padding-left: 12px; padding-right: 12px; }
  .page-head h1 { font-size: 1.45rem; }
  .card { padding: 14px; }
  .top { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .top .logo { height: 28px; }
  .top .who { display: none; }
  /* holiday numbers: one compact row of four */
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .stat { padding: 8px 6px; text-align: center; }
  .stat b { font-size: 1.2rem; }
  .stat span { font-size: .68rem; line-height: 1.2; display: block; }
  .card-head { flex-wrap: wrap; }
  .card-head h2 { font-size: 1.1rem; }
  .clock { padding: 18px 12px; }
  .clock .now { font-size: 2.2rem; }
}
.whos .p { align-items: flex-start; }
.whos .p .t { font-size: .72rem; color: var(--muted); line-height: 1.3; margin: 1px 0 3px; }
.whos .p.is-away .n { color: var(--muted); }
.whos .chip { font-size: .7rem; }

/* ---------------------------------------------------------------- polish: headings, clock ring, nav, toasts, skeletons */
.h-ic { display: flex; align-items: center; gap: 8px; }
.h-ic svg { color: var(--teal-deep); flex: none; }
.card > .h-ic { margin-top: 0; }
.btn svg { vertical-align: -3px; }
.btn.small svg { width: 15px; height: 15px; }

.ring-wrap { position: relative; width: 168px; height: 168px; margin: 2px auto 10px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in .now { margin: 0 0 4px; }
.ring-sub { font-size: .78rem; color: var(--muted); }
.clock .btn svg { margin-right: 4px; }

@media (max-width: 899px) {
  .nav a svg { padding: 3px 14px; width: 50px; height: 28px; border-radius: 999px; box-sizing: border-box; transition: background .15s; }
  .nav a.on svg { background: var(--teal-soft); }
}

.toast { display: flex; align-items: center; gap: 10px; }
.toast .t-ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.18); }

.skel { display: grid; gap: 14px; }
.sk { border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--line) 25%, var(--purple-soft) 50%, var(--line) 75%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.sk-h { height: 30px; width: 40%; }
.sk-card { height: 120px; }
.sk-card.short { height: 70px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .ring-fg { transition: none; } }

/* ---------------------------------------------------------------- team profiles */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 18px; }
.tm { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); font: inherit; color: inherit; cursor: pointer; text-align: center; min-width: 0; }
.tm:hover { border-color: var(--teal); }
.tm:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tm .avatar { width: 72px; height: 72px; font-size: 1.3rem; margin-bottom: 6px; }
.tm-n { font-weight: 600; color: var(--purple); }
.tm-j { font-size: .78rem; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.tm-f { font-size: .72rem; color: var(--teal-deep); margin-top: 2px; }
.tm-big { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tm-big .avatar { width: 84px; height: 84px; font-size: 1.5rem; }
.favs { margin: 0 0 16px; display: grid; gap: 2px; }
.favs dt { font-size: .75rem; color: var(--muted); margin-top: 10px; }
.favs dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.photo-edit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.photo-edit label.btn { cursor: pointer; }
.row2 > * { min-width: 0; }
.row2 input[type=date], .row2 input[type=time] { min-width: 0; width: 100%; }
.pattern-row { grid-template-columns: 74px 1fr 1fr 80px 100px 62px; }
.pattern-row .hrs { font-size: .82rem; color: var(--teal-deep); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.pattern-row.small .hrs { color: var(--muted); font-weight: 400; }
.pattern-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; margin: 4px 0 8px; border-radius: var(--radius); background: var(--teal-soft); }
.pattern-total b { color: var(--teal-deep); }
.pattern-total .pt-days { font-size: .82rem; }

/* pattern rows: lay out by the width of the panel they're in (the Add person panel is narrow even on a PC) */
.sheet { container-type: inline-size; }
@container (max-width: 620px) {
  .pattern-row { grid-template-columns: 66px 1fr 1fr 56px; grid-template-areas: "d st fi hrs" ". lu fq fq"; row-gap: 4px; margin-bottom: 10px; }
  .pattern-row > .d { grid-area: d; }
  .pattern-row > .st { grid-area: st; }
  .pattern-row > .fi { grid-area: fi; }
  .pattern-row > .lu-w { grid-area: lu; }
  .pattern-row .lu-w span { display: inline; }
  .pattern-row > .fq { grid-area: fq; }
  .pattern-row > .hrs { grid-area: hrs; text-align: right; }
  .pattern-row.small { grid-template-areas: "d st fi hrs"; margin-bottom: 2px; }
  .pattern-row.small .lunch, .pattern-row.small .freq { display: none; }
  .pattern-row.small .hrs { display: block; }
  .pattern-row .lu::placeholder { color: var(--muted); }
}
.pattern-row .lu { min-width: 0; }
.extra-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; max-width: 320px; }
.allow-out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px; border-radius: var(--radius); background: var(--purple-soft); margin: 4px 0 6px; }
.allow-out b { color: var(--purple); font-size: 1.1rem; }
.allow-out .small { flex-basis: 100%; }
.lu-w { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-weight: 400; }
.lu-w input { min-width: 0; width: 100%; }
.lu-w span { display: none; font-size: .78rem; color: var(--muted); white-space: nowrap; }
/* shifts take their room's colour: a soft tint with a solid edge, so each room reads at a glance */
.shift.tinted { background: color-mix(in srgb, var(--c) 14%, var(--white)); border-left: 3px solid var(--c); }
.shift.tinted.away { background: var(--red-soft); border-left-color: var(--red); }
.shift.tinted.free { background: var(--white); border: 1px dashed color-mix(in srgb, var(--c) 45%, var(--white)); border-left: 3px solid color-mix(in srgb, var(--c) 45%, var(--white)); }

.note-line { font-size: .8rem; color: var(--ink); margin-top: 3px; overflow-wrap: anywhere; }
.note-line span { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: 4px; }
.note-line.mgr span { color: var(--teal-deep); }

.clock-opts { text-align: left; max-width: 360px; margin: 0 auto 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.clock-opts .check { font-size: .9rem; }
.clock-opts .field { margin: 8px 0 2px; }
.chip.swap { background: var(--lilac); color: var(--purple); }

.ts-table { font-size: .85rem; }
.ts-table th, .ts-table td { padding: 8px 6px; }
.ts-table th:first-child, .ts-table td:first-child { padding-left: 12px; }
.ts-table th { white-space: normal; }
.ts-table td:first-child b { white-space: nowrap; }
.ts-table td:first-child { min-width: 86px; }
.ts-table td:nth-child(2) { min-width: 84px; }
.ts-table .chip { white-space: normal; text-align: left; margin: 1px 0; }
.ts-table .chip { border-radius: 8px; }
.ts-table td:nth-child(9) { min-width: 112px; }
.ts-table td:nth-child(10) { min-width: 120px; }
.ts-table tfoot td { border-top: 2px solid var(--purple); background: var(--purple-soft); vertical-align: top; }
.ts-hint { margin: 0 0 8px; }
/* phones: each day becomes a block of label / value lines, so nothing scrolls sideways */
@media (max-width: 760px) {
  .ts-table thead { display: none; }
  .ts-table, .ts-table tbody, .ts-table tfoot, .ts-table tr, .ts-table td { display: block; width: auto; }
  .ts-table tr { border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .ts-table tfoot tr { background: var(--purple-soft); border-top: 2px solid var(--purple); }
  .ts-table td, .ts-table td:first-child, .ts-table tfoot td { border: 0; background: none; min-width: 0; position: relative; padding: 3px 0 3px 104px; text-align: right; }
  .ts-table td::before { content: attr(data-label); position: absolute; left: 0; top: 3px; font-size: .78rem; color: var(--muted); text-align: left; }
  .ts-table td:first-child, .ts-table td.nolabel { padding-left: 0; text-align: left; }
  .ts-table td:first-child::before, .ts-table td.nolabel::before { content: none; }
  .ts-table td.nil { display: none; }
  .ts-table td .chip { text-align: right; }
  .ts-table tr.flagged { box-shadow: inset 3px 0 0 var(--red); }
  .ts-table tr.flagged td:first-child { box-shadow: none; }
}
.ts-table .claim + .claim, .ts-table .small + .claim { margin-top: 8px; }

details.archived { margin-top: 18px; }
details.archived > summary { cursor: pointer; font-weight: 600; color: var(--purple); padding: 6px 0; }

.btn.purple { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 600; }
.btn.purple:hover { background: var(--purple-deep); border-color: var(--purple-deep); color: #fff; }
.btn.purple svg { color: var(--teal); }
.rota-nav .master-btn { margin-left: 10px; }

/* People: the same column widths in every team table, so they line up down the page */
.people-table { table-layout: fixed; min-width: 640px; }
.people-table th:nth-child(1) { width: 27%; } .people-table th:nth-child(2) { width: 15%; } .people-table th:nth-child(3) { width: 27%; }
.people-table th:nth-child(4) { width: 11%; } .people-table th:nth-child(5) { width: 8%; } .people-table th:nth-child(6) { width: 12%; }
.people-table td { overflow-wrap: anywhere; }
.people-table td:last-child .btn { white-space: nowrap; }
.wa-btn .wa-ic { color: #25d366; vertical-align: -4px; margin-right: 2px; }

/* Team WhatsApp: the mark in white on WhatsApp green, so it's recognisable at a glance */
.wa-btn { padding-left: 6px; gap: 8px; border-color: #c9efd7; font-weight: 600; }
.wa-btn:hover { border-color: #25d366; }
.wa-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #25d366; flex: none; }
.wa-badge .wa-ic { color: #fff; width: 18px; height: 18px; vertical-align: 0; margin: 0; }

/* footer: copyright + design credit; sits above the phone's bottom tab bar */
main { padding-bottom: 12px; }
.app-foot { max-width: 1180px; margin: 0 auto; padding: 14px 16px calc(var(--nav-h) + 22px); text-align: center; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); }
.app-foot a { color: var(--purple); font-weight: 600; text-decoration: none; }
.app-foot a:hover { text-decoration: underline; }
@media (min-width: 900px) { .app-foot { padding-bottom: 24px; } }
.login .app-foot { border-top: 0; padding: 18px 0 0; max-width: none; }
@media print { .app-foot { display: none; } }

/* My requests: a three-step tracker under each request */
.req-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.req-steps { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.req-steps li { position: relative; padding: 8px 0 0; border-top: 3px solid var(--line); font-size: .78rem; line-height: 1.3; }
.req-steps li b { display: block; font-weight: 600; color: var(--muted); }
.req-steps li span { color: var(--muted); }
.req-steps li.done { border-top-color: var(--teal); } .req-steps li.done b { color: var(--teal-deep); }
.req-steps li.now { border-top-color: var(--amber); } .req-steps li.now b { color: var(--amber); }
.req-steps li.ok { border-top-color: var(--teal-deep); } .req-steps li.ok b { color: var(--teal-deep); }
.req-steps li.no { border-top-color: var(--red); } .req-steps li.no b { color: var(--red); }
.req-steps li.off { border-top-color: var(--muted); } .req-steps li.off b { color: var(--ink); }
.small-tabs { margin: 0 0 6px; flex-wrap: wrap; }
.small-tabs button { font-size: .8rem; padding: 5px 10px; }
.req-list > li { align-items: flex-start; }
.chip.withdrawn { background: var(--blush); color: var(--muted); }
.list .req-steps li { display: block; border-bottom: 0; }
.req-steps li span { display: block; margin-top: 1px; }

.push-nudge { border-color: var(--teal); }

/* bank holidays: the practice is closed */
.rota-week th.closed { color: var(--muted); }
.rota-week td.closed-col { vertical-align: top; background: repeating-linear-gradient(135deg, var(--purple-soft) 0 10px, #edf1f5 10px 20px); text-align: center; padding-top: 18px; }
.rota-week td.closed-col div { position: sticky; top: 120px; }
.rota-week td.closed-col b { display: block; font-family: var(--font-serif); color: var(--purple); font-size: 1.05rem; }
.rota-week td.closed-col span { font-size: .75rem; color: var(--muted); }
.day-tabs button.closed span { color: var(--muted); font-style: italic; }
.closed-day { border-radius: var(--radius-lg); padding: 28px 16px; text-align: center; background: repeating-linear-gradient(135deg, var(--purple-soft) 0 10px, #edf1f5 10px 20px); border: 1px solid var(--line); }
.closed-day b { display: block; font-family: var(--font-serif); color: var(--purple); font-size: 1.4rem; }
.closed-day span { color: var(--muted); font-size: .9rem; }
.day-tabs button.on.closed span { color: #fff; opacity: .85; }

/* week grid: each day reads as its own column */
.rota-week td.day, .rota-week thead th:not(:first-child), .rota-week td.closed-col { border-left: 1px solid #dde3e9; }
.rota-week td.day.alt, .rota-week thead th.alt { background: #f8fafc; }
.rota-week td.day.is-today, .rota-week thead th.is-today { background: #eef7f6; }
.rota-week thead th:not(:first-child) { text-align: left; padding: 10px 8px 8px; border-bottom: 2px solid #dde3e9; vertical-align: bottom; }
.rota-week thead th b { display: block; font-family: var(--font-serif); color: var(--purple); font-size: 1rem; font-weight: 600; }
.rota-week thead th span { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.rota-week thead th.is-today { border-bottom-color: var(--teal); }
.rota-week thead th.is-today b, .rota-week thead th.is-today span { color: var(--teal-deep); }
.rota-week tbody tr { border-bottom: 1px solid var(--line); }

/* master rota: the same day separation as the week rota */
table.master td.day, table.master thead th:not(:first-child) { border-left: 1px solid #dde3e9; }
table.master td.day.alt, table.master thead th.alt { background: #f8fafc; }
table.master thead th:not(:first-child) { text-align: left; padding: 10px 8px 8px; border-bottom: 2px solid #dde3e9; }
table.master thead th b { font-family: var(--font-serif); color: var(--purple); font-size: 1rem; font-weight: 600; }
table.master tbody tr { border-bottom: 1px solid var(--line); }

/* locums / temps on the rota */
.chip.locum { display: inline-flex; margin-top: 3px; background: var(--amber-soft); color: var(--amber); font-size: .66rem; padding: 1px 7px; white-space: normal; }
.shift .chip.locum { display: inline-flex; }
.locum-box { border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; margin-bottom: 6px; }

/* first sign-in: accept Occluna Privacy Notice */
.privacy-gate { min-height: 100vh; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; }
.privacy-gate > .card { max-width: 680px; width: 100%; }
.privacy-gate .logo { width: 170px; display: block; margin-bottom: 6px; }
.privacy-gate h1 { margin: 6px 0 8px; }
.pg-text { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; background: var(--white); font-size: .9rem; }
.pg-text h1 { font-size: 1.2rem; } .pg-text h2 { font-size: 1rem; margin: 18px 0 4px; }
.pg-text table { font-size: .82rem; } .pg-text th, .pg-text td { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pg-text blockquote { margin: 8px 0; padding: 8px 12px; background: var(--purple-soft); border-left: 3px solid var(--teal); }
.pg-check { margin: 10px 0 14px; font-weight: 500; }
.privacy-gate .app-foot { border-top: 0; padding-bottom: 8px; }

.privacy-gate { justify-content: center; }
.privacy-gate > .card { max-width: 440px; text-align: left; }
.pg-check { align-items: flex-start; gap: 10px; }
.pg-check input { margin-top: 4px; }
.privacy-gate .logo { margin: 0 auto 6px; }
.privacy-gate h1 { text-align: center; font-size: 1.45rem; }

/* superuser People list has an extra Privacy notice column */
.people-table.super { min-width: 760px; }
.people-table.super th:nth-child(1) { width: 24%; } .people-table.super th:nth-child(2) { width: 13%; } .people-table.super th:nth-child(3) { width: 22%; }
.people-table.super th:nth-child(4) { width: 13%; } .people-table.super th:nth-child(5) { width: 10%; } .people-table.super th:nth-child(6) { width: 7%; } .people-table.super th:nth-child(7) { width: 11%; }

/* time off list: a table on wide screens, one small card per entry on phones */
.abs-table .at-days-m { display: none; }
@media (max-width: 640px) {
  .abs-table { min-width: 0; }
  .abs-table thead { display: none; }
  .abs-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "type status" "dates dates" "act act";
                  gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .abs-table td { display: block; padding: 0; border: 0; text-align: left; overflow-wrap: normal; word-break: normal; }
  .abs-table .at-name { grid-area: name; } .abs-table .at-type { grid-area: type; } .abs-table .at-status { grid-area: status; }
  .abs-table .at-dates { grid-area: dates; } .abs-table .at-act { grid-area: act; } .abs-table .at-act:empty { display: none; }
  .abs-table .at-days { display: none; } .abs-table .at-days-m { display: inline; }
}

/* part-day practice closures on the rota */
.part-closed { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.part-closed-th { display: block; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--purple); background: var(--purple-soft); border-radius: 6px; padding: 1px 6px; margin-top: 3px; }

/* Bradford factor explainer */
.bf-explain summary { cursor: pointer; list-style: none; }
.bf-explain summary::-webkit-details-marker { display: none; }
.bf-explain summary::before { content: '▸'; display: inline-block; margin-right: 6px; color: var(--purple); transition: transform .15s; }
.bf-explain[open] summary::before { transform: rotate(90deg); }
.bf-explain p { font-size: .9rem; }
.bf-formula { background: var(--purple-soft); border-radius: 8px; padding: 8px 12px; color: var(--purple); }
.bf-eg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.bf-eg div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .85rem; }
.bf-eg span { display: block; color: var(--muted); margin-top: 2px; }

/* team news */
.news-card .news-item { display: block; padding: 12px 0; }
.news-card .news-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.news-card .news-top .title { font-weight: 600; color: var(--purple); }
.news-card .news-body { margin: 4px 0; font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.news-card .news-act { flex-shrink: 0; font-size: .8rem; }
.member-picks .pick .grow { flex: 1; min-width: 0; }
#g-q { width: 100%; }
.lbl-row .lbl { font-weight: 600; font-size: .85rem; }

/* team news: pictures, documents, links */
.news-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin: 8px 0; }
.news-imgs.one { grid-template-columns: 1fr; }
.news-imgs img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; display: block; aspect-ratio: 4 / 3; background: var(--purple-soft); }
.news-imgs.one img { aspect-ratio: auto; max-height: 360px; }
.news-docs { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.news-docs a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.news-docs a:hover { background: var(--purple-soft); }
.news-docs span { display: flex; flex-direction: column; min-width: 0; }
.news-docs b { font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.news-docs small { color: var(--muted); font-size: .75rem; }
.news-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.news-att { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.news-att li { display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.news-att li .grow { min-width: 0; overflow-wrap: anywhere; }
.news-link-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
@media (max-width: 520px) { .news-link-row { grid-template-columns: 1fr auto; } .news-link-row .nl-url { grid-column: 1; } }
.news-att li .grow { flex: 1; }

.news-event { display: flex; align-items: center; gap: 12px; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--purple); border-radius: 10px; text-decoration: none; color: var(--ink); }
.news-event:hover { background: var(--purple-soft); }
.news-event > svg { color: var(--purple); flex-shrink: 0; }
.news-event .grow { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.news-event small { color: var(--muted); font-size: .8rem; }

/* birthday card in Chat */
.bday-card { align-self: center; max-width: 360px; width: 100%; margin: 14px auto; padding: 22px 20px 14px; text-align: center; border-radius: var(--radius-lg); color: #fff;
  background: var(--purple); border-top: 3px solid var(--gold); }
.bday-card .bday-art { font-size: 52px; line-height: 1; margin-bottom: 8px; }
.bday-card h3 { font-family: var(--font-serif); font-size: 1.45rem; margin: 0 0 8px; color: #fff; }
.bday-card p { margin: 0 0 8px; font-size: .92rem; line-height: 1.5; color: rgba(255,255,255,.92); }
.bday-card .bday-from { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: .8rem; color: rgba(255,255,255,.85); }
.bday-card .bday-from img { height: 22px; background: #fff; border-radius: 6px; padding: 2px 6px; }
.bday-card .meta { font-size: .7rem; color: rgba(255,255,255,.7); margin-top: 6px; }
.composer-note { padding: 12px; text-align: center; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* one-tap duplicate on each rota shift */
.shift { position: relative; }
.shift .dup-btn { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0;
  border-radius: 6px; background: rgba(255,255,255,.85); color: var(--purple); cursor: pointer; opacity: 0; transition: opacity .15s; }
.shift:hover .dup-btn, .shift:focus-within .dup-btn { opacity: 1; }
.shift .dup-btn:hover { background: var(--purple); color: #fff; }
@media (hover: none) { .shift .dup-btn { opacity: .9; } }

/* Help: the guides */
.help-doc { line-height: 1.55; }
.help-doc .help-title { font-family: var(--font-serif); color: var(--purple); margin: 0 0 6px; font-size: 1.25rem; }
.help-doc h2 { font-family: var(--font-serif); color: var(--purple); font-size: 1.1rem; margin: 20px 0 6px; }
.help-doc p, .help-doc li { font-size: .93rem; margin: 4px 0; }
.help-doc ul, .help-doc ol { padding-left: 20px; margin: 4px 0 10px; }
.help-doc strong { color: var(--purple); }
.help-doc .tw { overflow-x: auto; }
.help-doc table { border-collapse: collapse; width: 100%; font-size: .88rem; margin: 6px 0 12px; }
.help-doc th, .help-doc td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help-doc th { color: var(--muted); font-weight: 600; }

/* "Not on the rota": self-employed (from the master rota) stand out */
.se-name { color: var(--teal-deep); font-weight: 600; }
.chip.se { background: #e6f3f1; color: var(--teal-deep); }

/* policy groups as folders */
.doc-group { margin-bottom: 12px; }
.doc-group > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; cursor: pointer; list-style: none; border-bottom: 1px solid var(--line); }
.doc-group > summary::-webkit-details-marker { display: none; }
.doc-group > summary::before { content: '▸'; color: var(--purple); transition: transform .15s; }
.doc-group[open] > summary::before { transform: rotate(90deg); }
.doc-group:not([open]) > summary { border-bottom: 0; }
.doc-group .dg-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--purple); }
.doc-group .dg-act { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }

/* role icons on rota shifts */
.shift .who { display: inline-flex; align-items: flex-start; gap: 4px; }
.kind-ic { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--purple); }
.kind-key { display: inline-flex; align-items: center; gap: 4px; }
.kind-key .kind-ic { margin-top: 0; color: var(--purple); }

/* Help button in the top bar, beside the bell */
.help-btn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; padding: 6px 12px 6px 9px; border-radius: 999px;
  border: 1px solid var(--lilac); background: var(--purple-soft); color: var(--purple); font-size: .85rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.help-btn:hover { background: var(--lilac); }

/* Ask Luna (AI help assistant) */
.william { margin-bottom: 14px; }
.william .w-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.william .w-head img { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.william .w-name { font-family: var(--font-serif); color: var(--purple); font-size: 1.1rem; font-weight: 600; }
.william .w-sub { font-size: .78rem; color: var(--muted); }
.william .w-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 2px 0 10px; overscroll-behavior: contain; }
.william .w-msg { align-self: flex-start; max-width: 88%; background: #f1f4f8; border-radius: 14px 14px 14px 4px; padding: 9px 12px; font-size: .93rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.william .w-msg.me { align-self: flex-end; background: var(--purple); color: #fff; border-radius: 14px 14px 4px 14px; }
.william .w-msg.typing { color: var(--muted); font-style: italic; }
.william .w-msg.err { background: #fbecee; color: var(--red); }
.william .w-form { display: flex; gap: 8px; }
.william .w-form input { flex: 1; min-width: 0; font-size: 16px; }
.william .w-form .btn { flex: none; }
.william .w-note { font-size: .75rem; color: var(--muted); margin-top: 8px; }

/* Phones: finger-sized tap targets for the small controls */
@media (pointer: coarse) {
  input, select, textarea { font-size: 16px !important; }   /* below 16px iPhones zoom in on focus */
  .small-tabs button { min-height: 38px; padding: 6px 12px; }
  .add-shift { min-height: 36px; }
  .shift .dup-btn { width: 32px; height: 32px; top: 1px; right: 1px; }
  .shift .dup-btn::after { content: ''; position: absolute; inset: -4px; }
}

/* a button that looks like a text link (People: send welcome email) */
.linkish { background: none; border: 0; padding: 0; color: var(--teal-deep, #2e6f6a); font: inherit; text-decoration: underline; cursor: pointer; min-height: 0; }
@media (pointer: coarse) { .linkish { padding: 6px 0; } }

/* People list on phones: one card per person instead of a wide table */
@media (max-width: 640px) {
  .people-table, .people-table.super { min-width: 0; table-layout: auto; }
  .people-table thead { display: none; }
  .people-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .people-table td { display: block; padding: 0; border: 0; text-align: left; }
  .people-table .pt-name { grid-column: 1; } .people-table .pt-role { grid-column: 2; align-self: center; font-size: .82rem; color: var(--muted); text-align: right; }
  .people-table td[data-l] { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; font-size: .88rem; }
  .people-table td[data-l]::before { content: attr(data-l); flex: none; width: 104px; color: var(--muted); font-size: .8rem; }
  .people-table td[data-l] > * { min-width: 0; }
  .people-table .pt-hub { flex-wrap: wrap; } .people-table .pt-hub > div { flex-basis: 100%; padding-left: 114px; margin-top: 0 !important; }
  .people-table .pt-act { grid-column: 1 / -1; } .people-table .pt-act:empty { display: none; }
  .people-table td[data-l]:empty { display: none; }
}

/* My next shifts: one line a day, like a diary page */
.day-list li { padding-top: 9px; padding-bottom: 9px; }
.day-list .grow { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.day-list .title { font-weight: 500; }
.day-list .times { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }

/* Tabs on phones: one row that scrolls sideways, never squashed */
@media (max-width: 640px) {
  .tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; flex: none; }
}

/* Home: the day at the practice. The one dark, confident panel in the app; everything else stays quiet. */
.today { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius-lg); padding: 22px 24px 18px; margin-bottom: 16px;
  background: radial-gradient(120% 140% at 100% 0%, #3a5472 0%, rgba(58, 84, 114,0) 55%), var(--purple-deep); }
.today::after { content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(194,168,120,0)); }
.today .t-date { font-size: .8rem; letter-spacing: .04em; color: var(--gold); margin-bottom: 6px; }
.today h1 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.12; margin: 0 0 8px; font-weight: 500; letter-spacing: -.01em; }
.today .t-line { color: rgba(255,255,255,.86); font-size: 1rem; margin: 0 0 18px; }
.today .t-line b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.today .t-note { display: inline-block; margin-left: 4px; color: var(--gold); }
.today .t-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.today .t-team { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.86); text-decoration: none; font-size: .88rem; }
.today a.t-team:hover span:last-child { color: #fff; text-decoration: underline; }
.today .faces { display: inline-flex; }
.today .faces .avatar { width: 30px; height: 30px; font-size: .7rem; border: 2px solid var(--purple-deep); margin-left: -8px; }
.today .faces .avatar:first-child { margin-left: 0; }
.today .faces .avatar.more { background: #3a5472; color: #fff; width: auto; min-width: 30px; padding: 0 7px; border-radius: 15px; font-variant-numeric: tabular-nums; }
.today .t-wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 12px 4px 4px; }
.today .t-wa:hover { border-color: rgba(255,255,255,.6); }
.today .t-wa .wa-ic { color: #fff; }
@media (max-width: 480px) {
  .today { padding: 18px 18px 16px; margin-left: -4px; margin-right: -4px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .stat, .stat:last-child { border: 0; margin: 0; padding: 0; }
}


/* Clock in / out: one big round button inside the shift ring (the ring fills as the shift goes on) */
.clock .ring-wrap { width: 214px; height: 214px; margin: 6px auto 4px; }
.clock .ring-wrap.no-ring { height: 172px; }
.clock .ring circle { stroke-width: 5; }
.clock-btn { position: absolute; inset: 0; margin: auto; width: 170px; height: 170px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 14px; text-align: center;
  font: inherit; background: var(--gold); color: var(--purple-deep); box-shadow: 0 8px 22px rgba(169, 138, 82, .35);
  transition: transform .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
.clock-btn .cb-label { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.clock-btn .ring-sub { font-size: .8rem; color: inherit; opacity: .8; font-variant-numeric: tabular-nums; }
.clock-btn:active { transform: scale(.97); box-shadow: 0 4px 12px rgba(169, 138, 82, .3); }
.clock-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.clock-btn.out { background: var(--purple); color: #fff; box-shadow: 0 8px 22px rgba(31, 53, 80, .3); }
.clock-btn:disabled { cursor: wait; opacity: .85; }
/* a slow halo while waiting to clock in: the one moving thing on the screen */
.clock-btn.in::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: clockHalo 2.6s ease-out infinite; pointer-events: none; }
@keyframes clockHalo { 0% { transform: scale(.94); opacity: .55; } 100% { transform: scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .clock-btn.in::before { animation: none; } }
.clock .clock-opts { margin-bottom: 4px; }
.today .t-date { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.today .t-now { font-family: var(--font-serif); font-size: 1.35rem; color: #fff; letter-spacing: .01em; font-variant-numeric: tabular-nums; line-height: 1; }


/* Management calendar (managers) */
.mg-q { margin-bottom: 18px; }
.mg-qh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.15rem; margin: 6px 0 10px; }
.mg-qh span { font-family: var(--font-sans); font-size: .82rem; font-weight: 500; color: var(--gold-deep); }
.mg-months { display: grid; gap: 12px; }
@media (min-width: 900px) { .mg-months { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.mg-month h3 { margin: 0; font-family: var(--font-serif); font-size: 1.05rem; color: var(--purple); }
.mg-month.now { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.mg-list li { padding: 0; }
.mg-check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; cursor: pointer; width: 100%; }
.mg-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal-deep); flex: none; }
.mg-check .title { display: block; font-weight: 500; }
.mg-check .sub { display: block; font-size: .8rem; color: var(--muted); }
.mg-item.done .title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(100, 107, 117, .5); }
.mg-ongoing summary { cursor: pointer; }
.mg-ongoing-cols { display: grid; gap: 14px; margin-top: 10px; }
@media (min-width: 700px) { .mg-ongoing-cols { grid-template-columns: 1fr 1fr; } }
.mg-ongoing h3 { margin: 0 0 6px; }
.mg-ongoing ul { margin: 0; padding-left: 18px; font-size: .9rem; }


/* Help: how-to videos (animated, silent) */
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hv { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.hv img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; display: block; background: var(--cream); }
.hv span { padding: 0 10px 10px; font-size: .88rem; font-weight: 500; }
.hv:hover { border-color: var(--purple); }
.hv-play { display: flex; justify-content: center; }
.hv-play img { max-width: 100%; max-height: 72vh; height: auto; border-radius: 16px; border: 1px solid var(--line); }


/* Timesheets list on phones: one card per person, the deduction up top, only the lines that apply */
@media (max-width: 640px) {
  .ts-list { min-width: 0; }
  .ts-list thead { display: none; }
  .ts-list tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .ts-list td { display: block; padding: 0; border: 0; text-align: left; }
  .ts-list .tl-name { grid-column: 1; }
  .ts-list .tl-deduct { grid-column: 2; grid-row: 1; text-align: right; font-size: 1.05rem; }
  .ts-list .tl-deduct:empty::before { content: 'Nothing to deduct'; font-size: .8rem; color: var(--muted); font-weight: 400; }
  .ts-list td[data-l] { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
  .ts-list td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: .82rem; }
  .ts-list td[data-l]:empty { display: none; }
  .ts-list td[data-l] > div { display: inline; margin-left: 6px; }
  .ts-list .tl-flags { grid-column: 1 / -1; margin-top: 4px; }
}
@media (max-width: 640px) {
  .ts-list tr.flagged { box-shadow: inset 3px 0 0 var(--red); }
  .ts-list tr.flagged td, .ts-list tr.flagged td:first-child { border: 0 !important; box-shadow: none !important; }
  .ts-list td { border-bottom: 0 !important; }
  /* date range: preset on its own line, then from - to side by side */
  .btn-row:has(> #rp) { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
  .btn-row:has(> #rp) > #rp { grid-column: 1 / -1; width: 100% !important; }
  .btn-row:has(> #rp) > input[type=date] { width: 100% !important; min-width: 0; }
  .btn-row:has(> #rp) > *:not(#rp):not(input):not(span) { grid-column: 1 / -1; justify-self: start; }
}

/* Working pattern: a tick box per day (unticked = day off) */
.pattern-row label.d { display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.pattern-row label.d .on { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--teal-deep); flex: none; }
.pattern-row.off label.d { color: var(--muted); font-weight: 500; }
.pattern-row.off .st, .pattern-row.off .fi, .pattern-row.off .lu-w, .pattern-row.off .fq { opacity: .45; }

/* Master rota: the room name opens "Move this room's schedule" */
.room-move { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.room-move svg { color: var(--muted); flex: none; }
.room-move:hover b { text-decoration: underline; }
.room-move:hover svg { color: var(--purple); }
.undo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

/* Managers' Home: their own updates under one heading */
.mg-zone { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.zone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.zone-head h2 { margin: 0; font-size: 1.35rem; color: var(--purple); }
.zone-head h2::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--gold); vertical-align: middle; margin: -3px 10px 0 0; }
@media (max-width: 899px) { .mg-zone { margin-top: 22px; } }

/* Wi-Fi tip at the top of the clock card */
.wifi-tip { display: flex; align-items: center; gap: 10px; margin: -2px 0 14px; padding: 11px 14px; border-radius: var(--radius);
  background: var(--teal-soft); border: 1px solid #bfe3df; color: #26635e; font-weight: 600; font-size: .95rem; line-height: 1.35; text-align: left; }
.wifi-tip svg { flex: none; }

/* Demo copy: the ribbon and the "try it as" sign-in */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; padding: 7px 12px;
  background: var(--purple-deep); color: #fff; font-size: .85rem; text-align: center; }
.demo-bar .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.demo-bar .btn.line:hover { background: rgba(255,255,255,.12); }
.demo-login .card { max-width: 460px; }
.persona-list { display: grid; gap: 10px; }
.persona { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; }
.persona:hover, .persona:focus-visible { border-color: var(--gold); background: var(--purple-soft); }
.persona b { display: block; color: var(--purple); font-size: 1rem; }
.persona .pn { display: block; font-size: .85rem; color: var(--ink); }
.persona .pb { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.persona svg { flex: none; color: var(--muted); }
@media print { .demo-bar { display: none !important; } }

/* Master rota: pick several shifts, then move or copy them */
.sel-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.sel-row .legend { margin: 0; }
.sel-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap;
  margin-bottom: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--purple-deep); color: #fff; }
.sel-bar .muted { color: rgba(255,255,255,.75); }
.sel-bar .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
table.master.picking .shift { cursor: pointer; }
table.master.picking .shift .dup-btn, table.master.picking .add-shift { visibility: hidden; }
table.master .shift.picked { outline: 3px solid var(--gold); outline-offset: 1px; box-shadow: 0 0 0 5px rgba(194,168,120,.25); }
table.master .shift.picked::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--purple-deep); font-size: 12px; line-height: 18px; text-align: center; font-weight: 700; }

/* Master rota: a surgery with nobody in it that day stands out */
table.master td.day.empty-day { background: repeating-linear-gradient(135deg, var(--amber-soft) 0 8px, #fdf8ee 8px 16px); box-shadow: inset 0 0 0 1px #ecd9b0; }
table.master .empty-tag { display: block; margin: 2px 0 4px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7a5410; }

/* ---------------------------------------------------------------- compliance hub: audits */
.au-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.au-stat { background: var(--white); border: 1px solid var(--line, #e1e6eb); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; }
.au-stat b { font-size: 26px; line-height: 1.1; }
.au-stat span { font-size: 13px; color: var(--muted, #6b6475); }
.au-stat.au-overdue b { color: #c2414f; } .au-stat.au-soon b { color: #b07d1f; } .au-stat.au-ok b { color: #2f7a74; }
@media (max-width: 640px) { .au-stats { grid-template-columns: repeat(2, 1fr); } }
.au-howto p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
.au-fields { gap: 0 16px; }
.au-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; position: sticky; top: 0; z-index: 3; background: var(--cream); padding: 8px 0; }
.au-progress .bar { flex: 1 1 200px; height: 8px; border-radius: 4px; background: #e4e9ee; overflow: hidden; }
.au-progress .bar i { display: block; height: 100%; background: #557a62; transition: width .2s; }
.au-sec h2 { margin-bottom: 4px; }
.au-item { padding: 14px 0; border-top: 1px solid var(--line, #e9edf1); }
.au-item:first-of-type { border-top: 0; }
.au-q { font-weight: 600; line-height: 1.4; }
.au-ref { display: inline-block; min-width: 34px; color: var(--muted, #6b6475); font-weight: 500; font-size: 13px; }
.au-ev { font-size: 13px; color: var(--muted, #6b6475); margin: 4px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.au-ev svg { flex: none; margin-top: 2px; }
.au-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.au-opt { min-height: 44px; min-width: 64px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line, #d3d9e0); background: #fff; font: inherit; font-size: 15px; cursor: pointer; color: inherit; }
.au-opt:hover { border-color: var(--c); }
.au-opt.on { background: var(--c); border-color: var(--c); color: #fff; font-weight: 600; }
.au-more { margin-top: 8px; display: grid; gap: 8px; }
.au-more[hidden], .au-act[hidden] { display: none; }
.au-note { width: 100%; }
.au-act { display: grid; grid-template-columns: 1fr 170px; gap: 8px; }
.au-item > .au-note { margin-top: 8px; }
.au-cols { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.au-col { padding: 7px 12px; border-radius: 20px; border: 1.5px solid var(--line, #d3d9e0); background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
.au-col.part { border-color: #d9a441; } .au-col.full { border-color: #557a62; background: #e8f4f3; }
.au-col.on { background: var(--purple-deep, #1f3550); border-color: var(--purple-deep, #1f3550); color: #fff; }
.au-colhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.au-colhead b { font-size: 17px; margin-right: auto; }
.au-reg { padding: 0 14px; }
.au-reg li { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.au-reg li.hidden { display: none; }
.au-reg details { margin: 4px 0 6px; }
.au-reg .au-opts { margin-top: 4px; }
.au-foot { display: flex; gap: 10px; justify-content: flex-end; margin: 18px 0 30px; flex-wrap: wrap; }
.au-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.au-d-score { font-size: 30px; font-weight: 700; fill: currentColor; }
.au-d-lbl { font-size: 13px; fill: #6b6475; }
.au-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.au-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.au-bars { display: grid; gap: 10px; }
.au-bar { display: grid; grid-template-columns: minmax(120px, 2fr) 3fr 90px; gap: 12px; align-items: center; font-size: 14px; }
.au-bar-t { position: relative; height: 12px; border-radius: 6px; background: #e9edf1; }
.au-bar-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.au-target { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #232a32; }
.au-bar-v { text-align: right; font-weight: 600; }
@media (max-width: 640px) { .au-bar { grid-template-columns: 1fr 70px; } .au-bar-t { grid-column: 1 / -1; grid-row: 2; } .au-act { grid-template-columns: 1fr; } }
.au-info { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 14px; }
.au-info dt { color: var(--muted, #6b6475); } .au-info dd { margin: 0; }

/* photo cropper */
.crop-view { position: relative; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #222; touch-action: none; max-width: 100%; }
.crop-view canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.crop-view canvas:active { cursor: grabbing; }
.crop-ring { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px rgba(13, 19, 27, .55); outline: 2px solid rgba(255, 255, 255, .9); outline-offset: -2px; }
.crop-tools { display: flex; align-items: center; gap: 10px; margin: 14px auto 0; max-width: 280px; }
.crop-tools input[type=range] { flex: 1; accent-color: var(--purple); }
.crop-pm { font-size: 20px; color: var(--muted); width: 14px; text-align: center; }
.au-rep { color: var(--teal-deep); display: flex; align-items: center; gap: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--purple-soft); cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--purple); }
.au-missing { outline: 3px solid var(--red); outline-offset: 4px; border-radius: 6px; transition: outline-color .3s; }
.au-foot { align-items: center; } .au-foot-pos { margin-right: auto; }
.au-per { margin-top: 6px; }
.au-per > summary { cursor: pointer; font-size: 13px; color: var(--purple); font-weight: 600; }
.au-per .list { margin-top: 6px; border-left: 3px solid var(--lilac); padding-left: 12px; }
.au-per .list li { padding: 8px 0; }

/* chat emoji picker */
.composer { position: relative; }
.composer .emoji-btn { font-size: 20px; line-height: 1; padding: 0; }
.emoji-pop { position: absolute; left: 10px; bottom: calc(100% + 6px); width: min(340px, calc(100vw - 40px)); max-height: 300px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(28, 44, 62, .16); padding: 8px 10px; z-index: 20; }
.emoji-pop[hidden] { display: none; }
.emoji-h { font-size: 12px; font-weight: 600; color: var(--muted); margin: 6px 2px 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button { font-size: 22px; line-height: 1; padding: 6px 0; border: 0; background: none; border-radius: 8px; cursor: pointer;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: var(--blush); }

/* bulk welcome emails */
.bi-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.bi-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.bi-row:first-child { border-top: 0; }
.bi-row input { width: 18px; height: 18px; accent-color: var(--purple); flex: none; }
.help-doc h3 { margin: 18px 0 6px; color: var(--purple); }

.leave-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 6px 8px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); font-size: .82rem; }
.leave-warn svg { flex: none; margin-top: 2px; }

tr.se-over td { background: var(--red-soft); }

.dg-name .grp-ic { color: var(--teal-deep); flex: none; }

.grp-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; margin-right: 4px; }
.dg-name:has(.grp-badge) { display: inline-flex; align-items: center; gap: 10px; }

.grp-badge.sm { width: 30px; height: 30px; border-radius: 9px; margin: 0; }
.mg-check { align-items: center; }
.mg-links { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 8px 68px; }
.mg-links a { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; padding: 3px 9px; border-radius: 20px; background: var(--purple-soft); color: var(--purple); text-decoration: none; border: 1px solid var(--line); }
.mg-links a:hover { background: var(--lilac); }
.flash { box-shadow: 0 0 0 3px var(--gold); transition: box-shadow .4s; border-radius: var(--radius); }
.mg-item:has(.mg-links) { flex-wrap: wrap; }
.mg-item .mg-links { flex-basis: 100%; margin: -4px 0 10px 68px; }

.tasks-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }

/* menu: where the managers-only part starts */
.nav-sep { align-self: center; flex: none; margin: 0 4px 0 10px; padding: 3px 0 3px 12px; border-left: 2px solid var(--gold); font-size: .68rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase; color: var(--gold-deep); line-height: 1.2; width: min-content; white-space: normal; overflow-wrap: normal; margin-right: 8px !important; }
.nav a.mgr-tab { background: var(--purple-soft); }
.nav a.mgr-tab.on { background: var(--lilac); }
.more-sep { padding: 12px 16px 4px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-deep); border-top: 1px solid var(--line); }
.more-sep:empty { padding: 0; }
.more-list a.mgr-item { background: var(--purple-soft); }
@media (min-width: 900px) {
  .nav { justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
}
@media (min-width: 900px) and (max-width: 1720px) {   /* the full menu (icons, wide gaps) needs ~1600px: tighter below that */
  .nav { gap: 0; padding: 0 8px; }
  .nav a { padding: 12px 9px; gap: 6px; }
  .nav-sep { margin: 0 2px 0 6px; padding-left: 8px; }
}
@media (min-width: 900px) and (max-width: 1400px) {
  .nav a svg { display: none; }
}

/* return to work */
.rtw { display: grid; gap: 14px; max-width: 860px; }
.rtw-card { border-left: 3px solid var(--gold); }
.rtw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; margin: 0 0 14px; padding: 12px 14px; background: var(--purple-soft); border-radius: var(--radius); }
.rtw-facts dt, .rtw-ans dt { font-size: .76rem; color: var(--muted); font-weight: 500; }
.rtw-facts dd { margin: 2px 0 0; font-weight: 600; }
.rtw-ans { margin: 0 0 12px; }
.rtw-ans > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rtw-ans dd { margin: 3px 0 0; white-space: pre-wrap; }
.rtw-h3 { font-size: 1rem; margin: 18px 0 8px; }
.rtw-hist { margin: 0; padding-left: 18px; font-size: .9rem; }
.rtw-actions { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.rtw-actions summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.rtw .grid.two { grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rtw .grid.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .rtw .grid.two, .rtw .grid.three { grid-template-columns: 1fr; } }

.se-limit { display: flex; gap: 8px; align-items: flex-start; }
.se-limit svg { flex: none; margin-top: 2px; }

/* leaver pack on an archived person's page */
.leaver-card .lv-list { margin: 0 0 14px; padding-left: 18px; font-size: .9rem; }
.leaver-card .lv-list li { margin: 2px 0; }

/* clocked in late: the reminder */
.late-note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--amber-soft); color: var(--amber); margin-bottom: 12px; }
.late-note p { margin: 0; color: var(--ink); }
.late-note svg { flex: none; }

/* rota: the time-off rows look different from the rooms (blue = holidays, red = sick / unplanned / unpaid) */
.rota-week tr.off-holiday > td, .room.off-holiday { background-color: #eef4fc !important; }   /* over the alternate-day shading */
.rota-week tr.off-other > td, .room.off-other { background-color: #fcf0f1 !important; }
.rota-week tr.off-holiday > td.loc { box-shadow: inset 3px 0 0 #3d6fc4; }
.rota-week tr.off-other > td.loc { box-shadow: inset 3px 0 0 #7f1d1d; }
.room.off-holiday { border-left: 3px solid #3d6fc4; }
.room.off-other { border-left: 3px solid #7f1d1d; }

/* Home: each card coloured by what it is (Helena, 25 Oct 2026), so the sections stand apart.
   amber = needs you · teal = your time and shifts · purple = the practice · gold = managers only (as in the menu) */
.k-todo { --kc: #c98a1e; --kt: #fbf3e2; --kh: #7a5410; }
.k-me { --kc: var(--teal); --kt: var(--teal-soft); --kh: var(--teal-deep); }
.k-practice { --kc: #6f87a3; --kt: #ecf1f6; --kh: var(--purple); }
.mg-zone { --kc: var(--gold); --kt: #faf5ec; --kh: var(--purple); }
.k-todo > .card, .k-me > .card, .k-practice > .card, .mg-zone .card { border-top: 3px solid var(--kc); }
.k-todo > .card > .card-head:first-child, .k-me > .card > .card-head:first-child, .k-practice > .card > .card-head:first-child, .mg-zone .card > .card-head:first-child,
.k-todo > .card > h2:first-child, .k-me > .card > h2:first-child, .k-practice > .card > h2:first-child, .mg-zone .card > h2:first-child {
  margin: -16px -18px 12px; padding: 11px 18px; background: var(--kt); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
}
.k-todo > .card h2, .k-me > .card h2, .k-practice > .card h2, .mg-zone .card h2 { color: var(--kh); }
.k-todo > .card.flush > .card-head:first-child, .k-me > .card.flush > .card-head:first-child, .k-practice > .card.flush > .card-head:first-child, .mg-zone .card.flush > .card-head:first-child { margin: 0 0 12px; }

/* time off: tick several entries and change their type */
.abs-table .at-pick { width: 34px; text-align: center; }
.abs-table .at-pick input { width: 18px; height: 18px; accent-color: var(--purple); }
.abs-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; background: var(--purple-soft); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.abs-bulk select { width: auto; min-width: 180px; padding: 6px 10px; }
.abs-bulk label { font-size: .86rem; color: var(--muted); }
@media (max-width: 640px) { .abs-table .at-pick, .abs-bulk { display: none !important; } }   /* bulk changes on a computer */
.abs-bulk input[type=text] { width: auto; flex: 1 1 220px; min-width: 180px; padding: 6px 10px; }
.abs-bulk .abs-bulk-clear { display: inline-flex; gap: 5px; align-items: center; font-size: .82rem; }

/* rota: "Not on the rota" stands out (Helena, 26 Oct 2026) - someone's working pattern has them in, but they aren't rostered or off */
.alert-dot { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #b42318; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; vertical-align: -3px; margin-right: 3px; }
.rota-week tr.unplaced-row > td { border-top: 2px solid #b42318; }
.rota-week tr.unplaced-row > td.loc { background: #fdecea; box-shadow: inset 3px 0 0 #b42318; }
.rota-week tr.unplaced-row > td.loc b { color: #8a1c12; }
.rota-week tr.unplaced-row > td.has-unplaced { background-color: #fdecea !important; }
.unplaced-name { display: block; margin: 2px 0; padding: 2px 7px; border-radius: 10px; background: #fff; border: 1px solid #e7a59d; color: #8a1c12; font-weight: 600; white-space: nowrap; }
.unplaced-name > span { font-weight: 800; }
.unplaced-name.se { color: var(--teal-deep); border-color: #9fcfc8; }
.unplaced { padding: 10px 12px; background: #fdecea; border: 1px solid #e7a59d; border-left: 4px solid #b42318; border-radius: 10px; }
.unplaced .team-label { color: #8a1c12; font-weight: 700; }

/* Who's in today: late arrivals, managers only (Helena, 26 Oct 2026) */
.whos .p.is-late { border-color: #e7a59d; background: #fdf3f1; }
.chip.late-chip { background: #fdecea; color: #8a1c12; font-weight: 700; }
.late-count { color: #8a1c12; font-weight: 700; }

/* Team news: emoji reactions and comments (Helena, 26 Oct 2026) */
.news-reacts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.news-reacts .react { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .95rem; line-height: 1.4; cursor: pointer; }
.news-reacts .react b { font-size: .78rem; color: var(--ink); font-weight: 600; }
.news-reacts .react.none { opacity: .55; }
.news-reacts .react.none:hover, .news-reacts .react:focus-visible { opacity: 1; }
.news-reacts .react.on { background: var(--purple-soft); border-color: var(--purple); }
.news-ccount { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .84rem; }
.news-comments { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.news-comments .nc { display: flex; gap: 9px; align-items: flex-start; }
.news-comments .nc .avatar { width: 30px; height: 30px; font-size: .75rem; flex-shrink: 0; }
.news-comments .nc-b { background: var(--purple-soft); border-radius: 12px; padding: 7px 11px; min-width: 0; flex: 1; }
.news-comments .nc-b .link-btn { float: right; font-size: .75rem; }
.news-comments .nc-t { font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; margin-top: 2px; }
.nc-form { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; }
.nc-form textarea { flex: 1 1 200px; min-height: 38px; resize: none; padding: 8px 11px; border-radius: 12px; }
.nc-form .nc-emo { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.nc-form .nc-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.nc-form .nc-pick[hidden] { display: none; }
.nc-form .nc-pick button { border: 0; background: none; font-size: 1.3rem; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; }
.nc-form .nc-pick button:hover, .nc-form .nc-pick button:focus-visible { background: var(--purple-soft); }

/* Production (Helena, 26 Oct 2026) */
.prod-tiles { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 14px; }
.prod-tile .prod-big { font-family: var(--font-serif); font-size: 1.7rem; color: var(--purple); margin: 2px 0; }
.prod-bar { margin: 6px 0 4px; }
.prod-pct { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.prod-pct.ok { background: var(--teal-soft); color: var(--teal-deep); }
.prod-pct.near { background: #fbf3e2; color: #7a5410; }
.prod-pct.under { background: #fdecea; color: #8a1c12; }
.prod-q .tab-arrow { padding: 6px 10px; text-decoration: none; }
.prod-table { font-size: .82rem; min-width: 1180px; }
.prod-table th, .prod-table td { padding: 5px 6px; white-space: nowrap; }
.prod-table thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }
.prod-table thead th small.bh { color: #8a1c12; }
.prod-table thead th.last { box-shadow: inset 0 -3px 0 var(--gold); }
.prod-table td b { display: block; font-weight: 700; }
.prod-table td small { display: block; color: var(--muted); font-size: .72rem; }
.prod-table td.ok b { color: var(--teal-deep); }
.prod-table td.under b { color: #8a1c12; }
.prod-table td.future small { opacity: .6; }
.prod-table th.prod-name { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 120px; }
.prod-table tr.grp th { text-align: left; background: var(--purple-soft); color: var(--purple); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px; }
.prod-table tr.inactive { opacity: .6; }
.prod-table td.tot { background: #f8fafc; }
.prod-table td.pc { min-width: 110px; }
.prod-table tr.sum th, .prod-table tr.sum td { border-top: 2px solid var(--line); background: #f8fafc; }
.prod-table .pos { color: var(--teal-deep); font-weight: 600; }
.prod-table .neg { color: #8a1c12; font-weight: 600; }
.pu-table { font-size: .86rem; }
.pu-table select { width: auto; min-width: 150px; padding: 4px 8px; }
.pu-table tr.pick td { background: #fdf3e2; }
.prod-helper { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prod-helper input { width: 90px; padding: 6px 8px; }
.prod-helper label { font-size: .85rem; color: var(--muted); }
.prod-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.prod-weeks .pw { display: flex; flex-direction: column; gap: 3px; font-size: .8rem; color: var(--muted); }
.prod-weeks .pw em { color: #8a1c12; font-style: normal; }
.prod-weeks input { padding: 6px 8px; }
.prod-qbar { margin-bottom: 14px; }
.sheet.wide { max-width: 860px; width: calc(100vw - 32px); }
/* Production fits the screen (Helena, 26 Oct 2026): the page uses the full width, the table never scrolls sideways, rows are compact */
main:has(.prod-table) { max-width: 1680px; }
.prod-table { min-width: 0; width: 100%; table-layout: fixed; font-size: .76rem; }
.prod-table th, .prod-table td { padding: 3px 4px; overflow: hidden; text-overflow: ellipsis; }
.prod-table col.c-name { width: 108px; }
.prod-table col.c-q { width: 84px; }
.prod-table col.c-pc { width: 64px; }
.prod-table td b, .prod-table td small { line-height: 1.2; }
.prod-table td.pc .prod-pct { font-size: .7rem; padding: 0 5px; }
.prod-table td.pc .prod-bar { height: 5px; margin: 3px 0 0; }
.prod-table th.prod-name { min-width: 0; font-size: .78rem; }
.prod-table tr.grp th { padding: 4px; font-size: .68rem; }
.prod-tiles .card.prod-tile { padding: 10px 14px; }
.prod-tile .prod-big { font-size: 1.4rem; }
.prod-tile .prod-bar { margin: 4px 0 2px; }
/* compact by default: achieved only (targets on hover); "Show targets" brings back the second line */
.prod-table td small { display: none; }
.prod-table.show-t td small, .prod-table td.tgt-only small, .prod-table td.tot small { display: block; }
.prod-table td.tot small { display: none; }
.prod-table.show-t td.tot small { display: block; }
.prod-table th, .prod-table td { padding: 2px 4px; }
.prod-table tbody th.prod-name, .prod-table tbody td { height: 21px; }
.prod-table td.pc .prod-pct { display: inline-block; min-width: 34px; text-align: center; }
.prod-table td.pc .prod-bar { display: none; }
.prod-table.show-t td.pc .prod-bar { display: flex; }
.prod-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 8px 0 14px; }
.prod-foot .check { margin: 0; }
.prod-tiles { gap: 10px; margin-bottom: 10px; }
.prod-tiles .card.prod-tile { padding: 8px 14px; }
.prod-tile .prod-big { font-size: 1.25rem; margin: 0; }
.prod-qbar { margin-bottom: 10px; }
/* cells shaded like the spreadsheet and the PDF: green on or over target, red under */
.prod-table td.ok { background: #e6f3f1; }
.prod-table td.under { background: #fcebe9; }
.unplaced-name[draggable] { cursor: grab; }
.unplaced-name .unpl-rm { display: block; font-weight: 400; font-size: .68rem; color: #8a1c12; opacity: .8; }
.unplaced-name { position: relative; }
.unplaced-name .unpl-x { position: absolute; top: 1px; right: 3px; border: 0; background: none; color: #8a1c12; font-size: .9rem; line-height: 1; cursor: pointer; padding: 2px; }
/* "Not on the rota" stays pinned to the bottom of the screen while scrolling the week, so a name can be dragged straight onto any room (Helena, 26 Oct 2026) */
@media (min-width: 1100px) {
  .rota-week.card, .rota-week .table-wrap { overflow: clip; }
  .rota-week tr.unplaced-row > td { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -3px 8px rgba(37, 44, 53, .12); }
  .rota-week tr.unplaced-row > td:not(.has-unplaced):not(.loc) { background: #fff; }
}
.rota-week td[data-drop-unpl].drop-on { outline: 2px dashed #b42318; outline-offset: -3px; }
.ts-table .abs-note { margin: 3px 0 2px; max-width: 360px; overflow-wrap: anywhere; }

/* chat: pasted / dropped pictures (Helena, 27 Oct 2026) */
.msg-b .chat-img { display: block; margin: 4px 0; }
.msg-b .chat-img img { display: block; max-width: min(320px, 100%); max-height: 260px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.4); }
.pending-files .pf-item { display: inline-flex; align-items: center; gap: 6px; margin: 4px 8px 4px 0; padding: 3px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .82rem; }
.pending-files .pf-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.pending-files .pf-x { border: 0; background: none; font-size: 1rem; cursor: pointer; color: var(--muted); padding: 0 2px; }
.thread.drop-on { outline: 2px dashed var(--teal); outline-offset: -4px; }

/* "Watch how" signposts under page titles (Helena, 27 Oct 2026) */
.watch-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.watch-links > span:first-child { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-deep); font-weight: 600; }
.watch-links .link-btn { font-size: .82rem; }
.card.clock .watch-links { justify-content: center; margin-top: 10px; }

/* chat: a how-to video link shown as a button (Helena, 27 Oct 2026) */
.msg-b .watch-chip { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 7px 12px; border-radius: 10px; background: #fff; color: var(--purple); font-weight: 600; text-decoration: none; border: 1px solid var(--line); }
.msg-b .watch-chip:hover { background: var(--purple-soft); }
.msg-b a { color: inherit; overflow-wrap: anywhere; }
.msg-b { white-space: pre-wrap; }

/* chat read receipts (Helena, 27 Oct 2026) */
.msg-b .meta .rcpt { margin-left: 6px; opacity: .8; }
.msg-b .meta .rcpt.read { opacity: 1; font-weight: 600; color: #9fe0d8; }

/* payroll cut-offs (Helena, 27 Oct 2026) */
.payroll-card { margin-bottom: 14px; }
.payroll-card .pc-history { margin-top: 10px; }
.payroll-card .pc-history summary { cursor: pointer; color: var(--muted); }
.ts-table tr.cutoff-row > td { border-bottom: 3px solid var(--gold) !important; }
.ts-table .cutoff-tag { color: var(--gold-deep); font-weight: 700; }

/* changed since last payroll (Helena, 27 Oct 2026) */
.pcc-card { margin-bottom: 14px; border-top: 3px solid #c98a1e; }
.pcc-table .pcc-ch { display: inline-block; margin: 1px 10px 1px 0; }

/* Occluna logo (Helena, 27 Oct 2026): on the sign-in screen, and its symbol next to "Occluna" in the header */
.login .th-logo { display: block; width: 190px; max-width: 70%; margin: 10px auto 22px; }
.top .app-name { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.top .app-name .th-sym { height: 22px; width: auto; }

/* scheduled chat messages (Helena, 29 Oct 2026) */
.sched-list:empty { display: none; }
.sched-list { padding: 6px 12px 0; display: grid; gap: 6px; }
.sched-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px dashed var(--gold); border-radius: 12px; background: #fffdf8; color: var(--purple); }
.sched-item .sched-body { font-size: .9rem; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 4.5em; overflow: hidden; }
.sched-item .btn-row { flex-shrink: 0; gap: 8px; }
.sch-files { display: flex; flex-wrap: wrap; gap: 4px; }
.sch-files .pf-item { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .82rem; }
.sch-files .pf-x { border: 0; background: none; font-size: 1rem; cursor: pointer; color: var(--muted); padding: 0 2px; }

/* time in lieu (Helena, 29 Oct 2026) */
.toil-card { margin-top: 14px; border-top: 3px solid #4f7cc4; }
.toil-card .toil-big { font-size: 1.05rem; margin: 2px 0 2px; }
.toil-card .toil-big b { font-family: var(--font-serif); font-size: 1.6rem; color: #2f5aa0; }
.toil-txt { color: #2f5aa0; font-weight: 600; }

/* all my scheduled chat messages, on the Chat page */
.sched-all { margin-bottom: 14px; }
.sched-all .sched-item .btn-row { flex-wrap: wrap; justify-content: flex-end; }
.sched-tag { color: var(--gold-deep); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
@media (max-width: 640px) { .sched-all .sched-item { flex-wrap: wrap; } .sched-all .sched-item .btn-row { width: 100%; justify-content: flex-start; } }
.sched-all .sched-item .grow { flex: 1 1 0; min-width: 0; }

/* person page: time off as a year calendar (Helena, 29 Oct 2026) */
.abs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 10px; }
.abs-head h2 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .88rem; color: var(--purple); cursor: pointer; }
.seg button.on { background: var(--purple); color: #fff; }
.ac-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--ink); margin-bottom: 14px; }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.ac-key-half { background: linear-gradient(135deg, var(--purple) 50%, #fff 50%); border: 1px solid var(--purple); }
.ac-key-pend { background: repeating-linear-gradient(45deg, var(--purple) 0 3px, #fff 3px 6px); border: 1px solid var(--purple); }
.ac-key-off { background: #eceff2; }
.ac-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 22px; }
.ac-name { font-weight: 600; color: var(--purple); margin-bottom: 6px; }
.ac-month { min-width: 0; }
.ac-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ac-wd { font-size: .68rem; color: var(--muted); text-align: center; }
.ac-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .74rem; border-radius: 6px; color: var(--ink); border: 0; padding: 0; background: none; font-family: inherit; }
.ac-day.off { background: #f0f3f6; color: var(--muted); }
.ac-day.ac-today { box-shadow: inset 0 0 0 2px var(--teal-deep); font-weight: 700; }
.ac-day.has { background: var(--c); color: #fff; font-weight: 600; }
.ac-day.has.half { background: linear-gradient(135deg, var(--c) 50%, color-mix(in srgb, var(--c) 18%, #fff) 50%); color: var(--ink); }
.ac-day.has.pending { background: repeating-linear-gradient(45deg, var(--c) 0 3px, color-mix(in srgb, var(--c) 25%, #fff) 3px 6px); color: var(--ink); }
button.ac-day { cursor: pointer; }
button.ac-day:hover { outline: 2px solid var(--purple); outline-offset: 1px; }
@media (max-width: 640px) { .ac-year { grid-template-columns: repeat(2, 1fr); gap: 14px; } .ac-day { font-size: .66rem; } }

/* managers' team calendar on Time off -> All entries */
.tc-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tc-bar b { color: var(--purple); min-width: 150px; text-align: center; }
.tc-table { border-collapse: separate; border-spacing: 2px; width: 100%; }
.tc-table th, .tc-table td { padding: 0; text-align: center; font-size: .72rem; font-weight: 500; color: var(--muted); border: 0; min-width: 22px; }
.tc-table thead th span { display: block; font-size: .62rem; }
.tc-table th.tc-name { text-align: left; color: var(--ink); font-size: .85rem; font-weight: 600; padding-right: 10px; white-space: nowrap; position: sticky; left: 0; background: var(--white); z-index: 1; }
.tc-table td { height: 26px; background: #f8fafc; border-radius: 4px; }
.tc-table .we { background: #edf0f3; }
.tc-table thead .we { background: none; color: #9da8b4; }
.tc-table thead .tc-today { color: var(--teal-deep); font-weight: 700; }
.tc-cell { display: block; width: 100%; height: 26px; border: 0; padding: 0; border-radius: 4px; background: var(--c); }
.tc-cell.half { background: linear-gradient(135deg, var(--c) 50%, color-mix(in srgb, var(--c) 18%, #fff) 50%); }
.tc-cell.pending { background: repeating-linear-gradient(45deg, var(--c) 0 3px, color-mix(in srgb, var(--c) 25%, #fff) 3px 6px); }
button.tc-cell { cursor: pointer; }
button.tc-cell:hover { outline: 2px solid var(--purple); outline-offset: 1px; }

/* rota: "No nurse" gets a yellow warning sign (Helena, 29 Oct 2026) */
.gap-warn.no-nurse { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .78rem; }
.warn-sign { width: 18px; height: 17px; flex: none; }

/* Add extra time: the sum from the times entered (Helena, 30 Oct 2026) */
.claim-sum { font-size: .88rem; line-height: 1.5; background: var(--purple-soft, #f2f4f7); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.claim-sum:empty { display: none; }

/* top bar Log out (Helena, 30 Oct 2026): just the icon on a phone, where the bar is tight */
.logout-btn { font-family: inherit; cursor: pointer; }
@media (max-width: 640px) { .top .help-btn span { display: none; } .top .help-btn { padding-left: 8px; padding-right: 8px; } .top .who { display: none; } }
@media (max-width: 375px) { .top .app-name { font-size: 0; gap: 0; } }

/* Production charts (Helena, 2 Nov 2026) */
.prod-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.prod-charts h2 { margin: 0; }
.pc-key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--muted); margin: 6px 0 14px; }
.pc-key span { display: inline-flex; align-items: center; gap: 5px; }
.pc-key i { width: 10px; height: 10px; border-radius: 3px; }
.pc-key i.tick { width: 14px; height: 2px; border-radius: 1px; background: var(--purple); }
.pc-plot { position: relative; height: 210px; margin: 20px 0 0 52px; border-bottom: 1px solid var(--line); }
.pc-axis span { position: absolute; left: -52px; width: 46px; text-align: right; font-size: .7rem; color: var(--muted); transform: translateY(50%); }
.pc-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--wks, 13), minmax(0, 1fr)); gap: 2px; }
.pc-col { position: relative; height: 100%; cursor: default; border-radius: 4px 4px 0 0; outline-offset: 1px; }
.pc-col:hover { background: #f3f5f8; }
.pc-fill { position: absolute; left: 12%; right: 12%; bottom: 0; border-radius: 4px 4px 0 0; }
.pc-tgt { position: absolute; left: 0; right: 0; height: 2px; background: var(--purple); border-radius: 1px; box-shadow: 0 0 0 1px #fff; }
.pc-val { position: absolute; left: 50%; transform: translate(-50%, -6px); font-size: .74rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.pc-col:nth-last-child(-n+2) .pc-val { left: auto; right: 0; transform: translate(0, -6px); }
.pc-weeks { display: grid; grid-template-columns: repeat(var(--wks, 13), minmax(0, 1fr)); gap: 2px; margin: 4px 0 0 52px; font-size: .7rem; color: var(--muted); text-align: center; }
.pc-weeks .last { color: var(--ink); font-weight: 700; }
.pc-cap { margin-top: 6px; }
#prod-home:not(:empty) { margin-bottom: 14px; }
.ph-plot { height: 150px; }
.qpp-card { margin-bottom: 14px; }
.np-list { display: grid; gap: 2px; }
.pay-table { min-width: 1180px; }
.pay-prev { min-width: 0; font-size: .82rem; }
.pay-sched tr.z-priv > * { background: #eef7f0; }
.pay-sched tr.z-nhs > * { background: #eaf2fb; }
.pay-sched tr.z-pers > * { background: #fbf3e6; }
.pay-sched tr.grp.z-priv th { background: #d9eedf; color: #1e5a33; }
.pay-sched tr.grp.z-nhs th { background: #d6e6f7; color: #1d4677; }
.pay-sched tr.grp.z-pers th { background: #f5e3c4; color: #7a4d0b; }
.pay-sched tr.z-priv > th:first-child { box-shadow: inset 4px 0 #3c9a5f; }
.pay-sched tr.z-nhs > th:first-child { box-shadow: inset 4px 0 #3b78c4; }
.pay-sched tr.z-pers > th:first-child { box-shadow: inset 4px 0 #c98a1e; }
.pay-sched tr.pay-sub.z-priv > * { background: #d9eedf; }
.pay-sched tr.pay-sub.z-nhs > * { background: #d6e6f7; }
.pay-sched .pay-in:hover, .pay-sched .pay-in:focus { background: var(--purple-soft) !important; }
.pay-prev tr.pay-chg td { background: #fff6e0; }
.pay-table td { white-space: nowrap; }
.pay-table .pay-part { display: block; }
.pay-table .pay-part small { color: var(--muted); font-size: .66rem; margin-right: 2px; }
.pay-sched .pay-lab small { font-weight: 400; color: var(--muted); }
.pay-table .pay-final { display: block; color: var(--teal-deep); font-weight: 600; }
.pay-sched .pay-lab { font-weight: 400; min-width: 200px; white-space: normal; }
.pay-sched .pay-in { cursor: pointer; }
.pay-sched tr.pay-gap td { height: 14px; background: var(--white); border: 0; }
.pay-sched .pay-in:hover, .pay-sched .pay-in:focus { background: var(--purple-soft); outline: none; }
.pay-notes { margin-top: 14px; }
.pay-table .pay-paid { display: block; color: #1d6b43; font-weight: 600; }
.pay-log { margin-top: 14px; }
.pay-log h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 8px; }
.pay-log-item { border-top: 1px solid var(--line); padding: 8px 0; }
.pay-log-item summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.pay-log-tot { margin-left: auto; }
.pay-log-t { min-width: 520px; margin-top: 6px; }
.pay-fs { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 12px; margin: 14px 0 0; background: #f8fafc; }
.pay-fs legend { font-weight: 700; color: var(--purple); padding: 0 4px; }
.pay-over tr.pay-who > th { padding-top: 12px; padding-bottom: 2px; border-top: 1px solid #d3d9df; font-size: .86rem; }
.pay-over tr.pay-one > * { border-top: 1px solid #e7ebf0; }
.pay-over tr.pay-gross-line > *, .pay-over tr.pay-sub-line > *, .pay-over tr.pay-net-line > *, .pay-over tr.pay-ltd-line > * { padding-top: 3px; padding-bottom: 3px; border: 0; }
.pay-over tr.pay-gross-line > th, .pay-over tr.pay-sub-line > th, .pay-over tr.pay-net-line > th, .pay-over tr.pay-ltd-line > th { padding-left: 24px; font-weight: 400; }
.pay-over tr.pay-sub-line > * { color: var(--muted); font-size: .76rem; }
.pay-over tr.pay-net-line > * { border-top: 1.5px solid #acb8c7; padding-bottom: 8px; }
.pay-over tr.pay-net-line > th { font-weight: 700; }
.pay-over tr.pay-ltd-line > * { color: #1e5a33; }
.pay-over tfoot tr.pay-foot > * { background: #f1f4f7; }
.pay-over tfoot tr.pay-foot-sub > * { color: var(--muted); font-size: .78rem; }
.pay-over tr.pay-group-tot > * { background: var(--purple-soft); border-top: 1.5px solid #acb8c7; }
.pay-over tfoot tr.pay-grand > *, .pay-over tfoot tr.pay-grand > th.u-name { background: var(--purple); color: #fff !important; }

/* the schedule table (Helena, 3 Nov 2026): quarters, equal month columns, a clear year column, sections that read as sections */
.pay-table thead tr.pay-q th { text-align: center; font-size: .7rem; letter-spacing: .06em; color: var(--muted); padding: 6px 4px 0; border-bottom: 0; }
.pay-table thead tr.pay-q th:not(:first-child):not(:last-child) { border-left: 2px solid var(--line); }
.pay-table thead tr:not(.pay-q) th:not(:first-child):not(:last-child), .pay-table td:not(:last-child) { min-width: 76px; }
.pay-sched td.em, .pay-sched th.em { min-width: 36px !important; width: 36px; padding-left: 2px; padding-right: 2px; font-size: .68rem; }
.pay-table thead tr:not(.pay-q) th { white-space: nowrap; }
.pay-sched tr:not(.pay-q):not(.grp):not(.pay-gap) > :nth-child(2), .pay-sched tr:not(.pay-q):not(.grp):not(.pay-gap) > :nth-child(5),
.pay-sched tr:not(.pay-q):not(.grp):not(.pay-gap) > :nth-child(8), .pay-sched tr:not(.pay-q):not(.grp):not(.pay-gap) > :nth-child(11) { border-left: 2px solid var(--line); }
.pay-over .qs { border-left: 2px solid var(--line); }
.pay-hide { border: 0; background: none; color: #afb6bf; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0 0 0 4px; }
.pay-hide:hover, .pay-hide:focus-visible { color: var(--red); }
.pay-qbtn { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; letter-spacing: .06em; }
.pay-qbtn:hover { color: var(--purple); text-decoration: underline; }
.pay-hidden { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.pay-table tr:not(.pay-q):not(.grp):not(.pay-gap) > :last-child { border-left: 2px solid #c7ced7; font-weight: 600; }
.pay-zero { color: #c3c8ce; }
.pay-sched tr.pay-item > th.pay-lab { padding-left: 22px; }
.pay-sched tr.pay-folded { display: none; }
.pay-sched tr.pay-calc:not(.pay-sub):not(.pay-final-row) > * { font-style: italic; font-size: .76rem; }
.pay-sched tr.pay-sub > * { border-top: 1.5px solid #b9c9bf; }
.pay-sched tr.pay-sub.z-nhs > * { border-top-color: #b4c6dd; }
.pay-sched tr.pay-final-row > * { border-top: 3px double #9da9b6; font-size: .86rem; }
.pay-sched tr.grp th { padding-top: 9px; padding-bottom: 7px; }
.pay-fold { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.pay-fold > svg { flex: 0 0 auto; transition: transform .15s; }
.pay-hic { display: inline-flex; width: 24px; height: 24px; border-radius: 7px; align-items: center; justify-content: center; margin: 0 7px 0 2px; background: rgba(255,255,255,.75); vertical-align: middle; }
.pay-hic svg { transform: none !important; }
tr.z-priv .pay-hic { color: #2f7d4b; } tr.z-nhs .pay-hic { color: #2f63a6; } tr.z-pers .pay-hic { color: #9a6410; } tr.pay-final-row .pay-hic { color: var(--purple); background: #fff; }
.pay-tl { display: flex; align-items: center; gap: 6px; }
.pay-nhs { display: inline-block; background: #005eb8; color: #fff; font: italic 800 .72rem/1 Arial, Helvetica, sans-serif; letter-spacing: .02em; padding: 4px 6px 3px; border-radius: 2px; margin: 0 8px 0 2px; vertical-align: middle; }
.pay-pvt { background: #1e6b3d; }
.pay-tic { display: inline-flex; width: 26px; height: 26px; border-radius: 8px; align-items: center; justify-content: center; background: var(--purple-soft); color: var(--purple); }
.pay-h2 { display: flex; align-items: center; gap: 8px; }
.pay-fold[aria-expanded="true"] > svg { transform: rotate(90deg); }
.pay-tiles { margin-bottom: 12px; }
.pay-share { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 10px 0 6px; }
.pay-share i { display: block; height: 100%; }
.pay-share .pv, .pay-key.pv, .pay-bar.pv { background: #3c9a5f; }
.pay-share .nh, .pay-key.nh, .pay-bar.nh { background: #3b78c4; }
.pay-key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.pay-chart { margin-bottom: 14px; }
.pay-plot { height: 170px; }
.pay-bar { position: absolute; left: 18%; right: 18%; border-radius: 3px 3px 0 0; }
.pay-bar.pv { border-radius: 0; }
.pay-col .pay-bar.pv:last-of-type, .pay-col .pay-bar.nh { border-radius: 3px 3px 0 0; }
.pay-val { font-size: .7rem; }
.pay-tablebar { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px; flex-wrap: wrap; margin: 4px 0 8px; }
.pay-tablebar p { margin: 0; flex: 1 1 380px; }
.pay-sched th.pay-latest { background: var(--purple-soft); }
.pay-sched .pay-lab { position: sticky; left: 0; z-index: 1; }
.pay-sched thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--white); }
.pay-sched tr:not([class*="z-"]) > th.pay-lab { background: var(--white); }
.pay-sched tr.pay-final-row > th.pay-lab { background: var(--purple-soft); }
@media (max-width: 600px) {
  .pay-val { display: none; }
  .pay-col.last .pay-val { display: block; }
  .pay-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pay-tiles .prod-tile .prod-big { font-size: 1.15rem; }
  .pay-tiles .prod-tile .small { font-size: .74rem; }
  .pay-sched .pay-lab { min-width: 132px; max-width: 150px; font-size: .74rem; }
  .pay-plot { height: 150px; }
}
.pay-notes h2 { font-size: 1rem; margin: 0 0 6px; }
.pay-notes ul { margin: 0; padding-left: 18px; font-size: .88rem; line-height: 1.55; }
.pay-sched .pay-n { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-left: 4px; vertical-align: super; }
.pay-sched .pay-f { font-style: normal; font-size: .62rem; color: var(--muted); margin-left: 3px; vertical-align: super; }
.pay-sched .pay-calc td, .pay-sched .pay-calc th { color: var(--muted); }
.pay-sched .pay-sub td, .pay-sched .pay-sub th { color: var(--ink); font-weight: 600; }
.pay-sched .pay-final-row td, .pay-sched .pay-final-row th { color: var(--purple); font-weight: 700; background: var(--purple-soft); }
.mchecks { margin-bottom: 12px; border-left: 4px solid #c98a1e; }
.mchecks summary { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.mchecks summary b { display: inline-flex; align-items: center; gap: 6px; color: #8a5a00; }
.mchecks h3 { font-size: .9rem; margin: 12px 0 4px; }
.mchecks ul { margin: 0; padding-left: 20px; font-size: .88rem; line-height: 1.5; }
table.master .shift.flagged { outline: 2px solid #c0392b; outline-offset: -2px; }
.np-row { display: grid; grid-template-columns: minmax(0, 1fr) 172px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.np-row .grow span { display: block; }
.np-row select { width: 100%; }
@media (max-width: 480px) { .np-row { grid-template-columns: 1fr; gap: 6px; } }
.uda-table.qpp-table { min-width: 560px; }
.qpp-table th, .qpp-table td { vertical-align: top; }
@media (max-width: 560px) {
  .uda-table.qpp-table { min-width: 0; }
  .qpp-table, .qpp-table tbody { display: block; width: 100%; }
  .qpp-table thead { display: none; }
  .qpp-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .qpp-table th, .qpp-table td { padding: 0; border: 0; }
  .qpp-table th.u-name { flex: 1 1 100%; }
  .qpp-table td.r { text-align: left; }
  .qpp-table td[data-l]::after { content: ' ' attr(data-l); color: var(--muted); font-size: .78rem; font-weight: 400; }
  .qpp-table td.qpp-st { flex: 1 1 100%; margin-top: 4px; }
}
.qpp-st small { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }
.qpp-st .qpp-gap { color: #9a5b00; }
.qpp-table td.qpp-st, .qpp-table td.qpp-st small { white-space: normal; min-width: 0; }
.ph-weeks small { display: block; font-size: .64rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .ph-weeks span { display: flex; flex-direction: column; align-items: center; } .ph-weeks .ph-dl { writing-mode: vertical-rl; transform: rotate(180deg); margin-top: 3px; font-size: .6rem; } }

.pr-list { display: grid; gap: 2px; }
.pr-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 62px 48px; gap: 8px; align-items: center; font-size: .8rem; padding: 3px 4px; border-radius: 6px; }
.pr-row:hover { background: #f3f5f8; }
.pr-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-track { position: relative; height: 12px; background: #f0f3f6; border-radius: 4px; }
.pr-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.pr-track b { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--purple); border-radius: 1px; box-shadow: 0 0 0 1px #fff; }
.pr-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pr-pc { text-align: right; }
.prod-tip { position: fixed; z-index: 50; background: var(--purple); color: #fff; font-size: .78rem; line-height: 1.4; padding: 7px 10px; border-radius: 8px; pointer-events: none; max-width: 220px; box-shadow: 0 4px 14px rgba(31,53,80,.25); }
.prod-tip b { display: block; }
@media (max-width: 900px) { .prod-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .pr-row { grid-template-columns: 84px minmax(0, 1fr) 56px 44px; gap: 6px; font-size: .74rem; } .pc-plot { margin-left: 44px;  } .pc-axis span { left: -44px; width: 40px; }  .pc-weeks { margin-left: 44px; } }

/* UDA tracker (Helena, 2 Nov 2026) */
.prod-tabs { margin-bottom: 12px; }
.uda-table { font-size: .8rem; width: 100%; min-width: 1020px; }
.uda-table th, .uda-table td { padding: 6px 7px; white-space: nowrap; }
.uda-table thead th { font-size: .72rem; white-space: normal; vertical-align: bottom; }
.uda-table th.u-name { text-align: left; font-weight: 600; position: sticky; left: 0; background: #fff; z-index: 1; }
.uda-table th.u-name small { display: block; font-weight: 400; color: var(--muted); font-size: .7rem; }
.uda-table .pos { color: var(--teal-deep); font-weight: 600; }
.uda-table .neg { color: #8a1c12; font-weight: 600; }
.uda-table tr.u-left td { color: var(--muted); }
.uda-table tr.sum th, .uda-table tr.sum td { border-top: 2px solid var(--line); background: #f8fafc; font-weight: 600; }
.pr-pc .pos { color: var(--teal-deep); font-weight: 600; } .pr-pc .neg { color: #8a1c12; font-weight: 600; }
#uda-home:not(:empty) { margin-bottom: 14px; }

/* UDA detailed view (Helena, 2 Nov 2026): quiet rules, figures that line up, colour only where it means something */
.uda-table { border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 960px; }
.uda-table th, .uda-table td { padding: 8px 10px; border: 0; }
.uda-table thead th { background: none; color: var(--muted); font-size: .72rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.uda-table thead tr.u-top th { color: var(--purple); font-size: .76rem; text-align: left; border-bottom: 0; padding-bottom: 0; }
.uda-table tbody tr { border-bottom: 1px solid #eef0f3; }
.uda-table tbody tr:hover td, .uda-table tbody tr:hover th { background: #f5f7fa; }
.uda-table .gs { border-left: 1px solid var(--line); }
.uda-table th.u-name small { display: inline; margin-left: 6px; }
.uda-table td.u-pace, .uda-table th.u-pace { text-align: center; }
.uda-table td.u-pace span { display: inline-block; min-width: 44px; padding: 1px 6px; border-radius: 999px; font-weight: 600; font-size: .76rem; }
.uda-table td.u-pace span.ok { background: var(--teal-soft); color: var(--teal-deep); }
.uda-table td.u-pace span.near { background: #fbf3e2; color: #7a5410; }
.uda-table td.u-pace span.under { background: #fdecea; color: #8a1c12; }
.uda-table tr.u-left th, .uda-table tr.u-left td, .uda-table tr.u-left .link-btn { color: var(--muted); }
.uda-table tr.u-left td.u-pace span { background: none; color: var(--muted); }
.uda-table tr.u-band th { background: #f8fafc; color: var(--purple); font-size: .72rem; font-weight: 600; text-align: left; padding: 6px 10px; }
.uda-table tfoot th, .uda-table tfoot td { background: #f8fafc; }
.uda-table tfoot tr:first-child th, .uda-table tfoot tr:first-child td { border-top: 1px solid var(--purple); font-weight: 600; }
.uda-table tfoot th.u-name { background: #f8fafc; }
.uda-table tr.u-note th, .uda-table tr.u-note td { font-weight: 400; color: var(--muted); padding-top: 4px; padding-bottom: 4px; font-size: .76rem; }

/* UDAs: who needs attention first (Helena, 2 Nov 2026) */
.us-head, .us-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 62px 120px 170px; gap: 14px; align-items: center; }
.us-head { font-size: .72rem; color: var(--muted); padding: 0 6px 6px; border-bottom: 1px solid var(--line); }
.us-head .r, .us-row .r { text-align: right; }
.us-group h3 { margin: 16px 0 4px; font-size: .86rem; color: var(--purple); padding: 0 6px; }
.us-group h3 span { color: var(--muted); font-weight: 400; }
.us-row { padding: 7px 6px; border-radius: 8px; font-size: .86rem; }
.us-row:hover { background: #f5f7fa; }
.us-row small { display: block; font-size: .72rem; color: var(--muted); }
.us-row.left .pr-track i { opacity: .55; }
.us-text { font-size: .76rem; color: var(--muted); margin-bottom: 3px; }
.us-text b { color: var(--ink); font-size: .86rem; }
.us-now .pos, .us-end .pos { color: var(--teal-deep); font-weight: 600; }
.us-now .neg, .us-end .neg { color: #8a1c12; font-weight: 600; }
.us-lbl { display: none; }
@media (max-width: 760px) {
  .us-head { display: none; }
  .us-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .us-prog { grid-column: 1 / -1; grid-row: 2; }
  .us-now { text-align: left !important; }
  .us-lbl { display: block; font-size: .7rem; color: var(--muted); }
}
.u-switch { margin: 0 0 12px; }

.u-flag { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.u-flag.ok { color: var(--teal-deep); }
.u-flag svg { flex: none; }

/* UDAs: the year in one bar, and small bars in the detailed table (Helena, 2 Nov 2026) */
.uy { margin-bottom: 14px; }
.uy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 26px; }
.uy-head h2 { margin: 0; }
.uy-bar { position: relative; display: flex; gap: 2px; height: 26px; }
.uy-bar > i { display: block; height: 100%; }
.uy-bar > i:first-child { border-radius: 6px 0 0 6px; }
.uy-bar > i:nth-last-child(2) { border-radius: 0 6px 6px 0; }
.uy-bar .d, .uy-key .d { background: var(--purple); }
.uy-bar .c, .uy-key .c { background: #8fa2b9; }
.uy-bar .t, .uy-key .t { background: var(--teal); opacity: .55; }
.uy-bar .g, .uy-key .g { background: repeating-linear-gradient(45deg, #b42318 0 3px, #fdecea 3px 7px); }
.uy-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); }
.uy-mark span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .74rem; font-weight: 600; color: var(--ink); padding-bottom: 2px; }
.uy-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.uy-key span { display: inline-flex; align-items: center; gap: 6px; }
.uy-key i { width: 12px; height: 12px; border-radius: 3px; }
.uy-key b { color: var(--ink); }
.uda-table td.u-bar { min-width: 84px; }
.uda-table .mini { display: block; position: relative; height: 5px; margin-top: 4px; background: #edf0f3; border-radius: 3px; }
.uda-table .mini i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.uda-table .mini em { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--purple); }
.uda-table .dv { display: block; position: relative; height: 5px; margin-top: 4px; background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
.uda-table .dv i { position: absolute; top: 0; bottom: 0; }
.uda-table .dv i.p { left: 50%; background: var(--teal); border-radius: 0 3px 3px 0; }
.uda-table .dv i.n { right: 50%; background: #b42318; border-radius: 3px 0 0 3px; }
.uda-table td.u-need b { font-weight: 600; }
.uda-table td.u-need b.neg { color: #8a1c12; }
.us-row small.neg { color: #8a1c12; }

/* Edit allocations (Helena, 2 Nov 2026) */
.ua-head, .ua-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 110px 40px 84px; gap: 10px; align-items: center; }
.ua-head { font-size: .72rem; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.ua-head .r, .ua-row .r { text-align: right; }
.ua-row { padding: 5px 0; font-size: .86rem; border-bottom: 1px solid #eef0f3; font-variant-numeric: tabular-nums; }
.ua-row input { padding: 5px 8px; text-align: right; min-height: 34px; }
.ua-row small { color: var(--muted); }
.ua-need .neg { color: #8a1c12; font-weight: 600; }
.ua-foot { position: sticky; bottom: calc(-1 * 24px); margin-bottom: calc(-1 * 24px); padding-bottom: 24px !important; background: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0 2px; border-top: 1px solid var(--purple); margin-top: 4px; }
.ua-sum .pos { color: var(--teal-deep); font-weight: 600; } .ua-sum .neg { color: #8a1c12; font-weight: 600; }
@media (max-width: 560px) { .ua-head, .ua-row { grid-template-columns: minmax(0, 1fr) 96px 36px 58px; } .ua-head span:nth-child(2), .ua-row > span:nth-child(2) { display: none; } }
.u-years { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.u-years .prod-tabs { margin-bottom: 0; }
.uy-bar .u, .uy-key .u { background: #d9994d; }
.u-short { font-size: .95rem; }
#uda-home .u-flag { margin: 8px 0 12px; }
.uh-bar { margin: 10px 0 14px; }
.uh-txt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8rem; margin-bottom: 6px; }
.uh-bar .pr-track { height: 12px; }

/* Platform check (Helena, 2 Nov 2026): everything fits and can be reached on a phone */
/* chart gridlines drawn on the plot itself: they used to run past the screen edge */
.pc-plot { background: linear-gradient(#e7ebf0, #e7ebf0) 0 0 / 100% 1px no-repeat, linear-gradient(#e7ebf0, #e7ebf0) 0 50% / 100% 1px no-repeat; }
/* the Production table can't fit a phone or small tablet: it scrolls sideways with the names fixed, rather than squashing every figure to a "£" */
@media (max-width: 1000px) { .prod-table { min-width: 1040px; } }
/* tabs wrap onto a second line on phones, so none is hidden off the edge */
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; overflow: visible; }
  .prod-q button { min-width: 38px; }
}
.top a.who { text-decoration: none; }
.top a.who:hover { color: var(--purple); text-decoration: underline; }
.row2 input[type=datetime-local] { min-width: 0; width: 100%; }
input[type=datetime-local] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
@media (max-width: 480px) { .row2:has(input[type=datetime-local]) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  /* big enough for a finger */
  button.link-btn { min-height: 30px; }
  .news-reacts .react { padding: 6px 11px; }
  /* text gets the full width, buttons sit underneath */
  .list.stack-m > li > .grow { flex: 1 1 calc(100% - 52px); min-width: 0; }
  .list.stack-m > li > .btn-row { width: 100%; }
  .list.stack-m > li > .btn-row .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
  /* wide tables keep the name in view while they scroll */
  #tab .table-wrap table:not(.abs-table) th:first-child, #tab .table-wrap table:not(.abs-table) td:first-child { position: sticky; left: 0; background: var(--white); z-index: 1; }
}
.u-years select.u-yr { width: auto; min-height: 38px; }

/* Pensionable earnings: managers only (Helena, 2 Nov 2026) */
.npe-table { min-width: 640px; }
.npe-table small { color: var(--muted); font-size: .7rem; }
.nd-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 76px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.npe-table input.npe-lab { width: 68px; min-height: 34px; padding: 4px 6px; text-align: right; }
.npe-table input.npe-lab.wide { width: 104px; }
.npe-how { margin-bottom: 14px; }
.npe-how h2 { margin: 0 0 6px; font-size: 1.05rem; }
.npe-how ol { margin: 0; padding-left: 20px; font-size: .9rem; line-height: 1.55; }
.npe-how li { margin-bottom: 3px; }
.u-flag.npe-nhs { justify-content: space-between; flex-wrap: wrap; }
.u-flag.npe-nhs > span { flex: 1 1 260px; min-width: 0; }
.npe-caf { margin-bottom: 12px; }
.npe-log { margin-bottom: 12px; }
.npe-log-year { font-size: 1rem; margin: 18px 0 8px; }
.npe-log-year:first-child { margin-top: 4px; }
.npe-log summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.npe-log[open] summary { margin-bottom: 10px; }
.npe-caf summary { cursor: pointer; padding: 6px 0; }
@media (max-width: 560px) { .u-switch .seg { flex-wrap: wrap; border-radius: 18px; } }
.pay-lab-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pay-lab-line .r { text-align: right; white-space: nowrap; }
.pay-lab-line .pay-nhs { margin-left: 6px; transform: scale(.85); }
.hr-how { margin-bottom: 14px; }
.hr-card { margin-bottom: 14px; }
.hr-bars { padding: 4px 18px 12px; display: grid; gap: 7px; }
.hr-bar { display: grid; grid-template-columns: 130px 1fr 120px; gap: 12px; align-items: center; font-size: .9rem; }
.hr-bar.inactive { opacity: .55; }
.hr-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-track { display: flex; height: 14px; background: #edf1f5; border-radius: 999px; overflow: hidden; }
.hr-track i.pvt { background: #1e6b3d; }
.hr-track i.nhs { background: #005eb8; }
.hr-val { text-align: right; font-variant-numeric: tabular-nums; }
.hr-val small { font-weight: 400; color: var(--muted); margin-left: 2px; }
.hr-table { min-width: 640px; }
@media (max-width: 640px) { .hr-bar { grid-template-columns: 90px 1fr 92px; } }
.hr-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.hr-period label { font-weight: 600; }
.hr-period select, .hr-period input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pfile h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 4px; }
.pfile-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.pfile-row a { white-space: nowrap; }


/* master rota change history (5 Nov 2026) */
table.mhist td { vertical-align: top; font-size: .9rem; }
table.mhist td.nowrap { white-space: nowrap; }

/* event cover pictures (5 Nov 2026) */
.event.has-cover { flex-wrap: wrap; padding-top: 0; overflow: hidden; }
.event .ev-cover { flex: 0 0 calc(100% + 36px); width: calc(100% + 36px); height: auto; aspect-ratio: 3 / 1; margin: 0 -18px 2px; max-width: none; display: block; object-fit: cover; }
.event.cancelled .ev-cover { filter: grayscale(1); opacity: .6; }
.cover-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.cover-pick label { position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer; border: 2px solid transparent; border-radius: 8px; padding: 3px; font-size: .78rem; color: var(--muted); }
.cover-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cover-pick img { width: 100%; height: auto; aspect-ratio: 3 / 1; border-radius: 5px; display: block; }
.cover-pick .cp-none span { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 1; border: 1px dashed var(--line); border-radius: 5px; font-size: .82rem; }
.cover-pick label:has(input:checked) { border-color: var(--purple); color: var(--purple); font-weight: 600; }
.cover-pick label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
/* on a computer the cover is a small picture beside the date, not a full-width banner (Helena, 5 Nov 2026) */
@media (min-width: 761px) {
  .event.has-cover { flex-wrap: nowrap; padding-top: 16px; }
  .event .ev-cover { flex: 0 0 210px; width: 210px; margin: 0; border-radius: 8px; }
}
.od-box { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.od-box span { flex: 1; min-width: 200px; }
.od-list { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.od-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); }
.od-row:first-child { border-top: 0; }
.wk-wrap { position: relative; display: inline-block; }
.wk-pick { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0; background: none; font: inherit; color: inherit; font-weight: 600; border-radius: 8px; padding: 4px 8px; }
.wk-pick:hover, .wk-pick[aria-expanded="true"] { background: var(--purple-soft); }
.wk-pick svg { color: var(--purple); }
.wk-cal { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60; width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(29, 47, 68, .18); padding: 12px 12px 10px; font-size: .9rem; }
.wk-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.wk-cal-head b { font-family: var(--serif, Georgia, serif); color: var(--purple); font-size: 1.05rem; }
.wk-cal-nav { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--purple); }
.wk-cal-nav svg { transform: rotate(180deg); }
.wk-cal-nav.next svg { transform: none; }
.wk-cal-nav:hover { background: var(--purple-soft); }
.wk-cal-days, .wk-row { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.wk-cal-days span { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 4px 0; }
.wk-row { width: 100%; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; border-radius: 10px; padding: 0; margin: 1px 0; }
.wk-row span { padding: 7px 0; }
.wk-row span.out { color: #b2b9c1; }
.wk-row span.now { position: relative; font-weight: 700; color: var(--purple); }
.wk-row span.now::after { content: ''; position: absolute; inset: 3px 50%; width: 28px; margin-left: -14px; border: 2px solid var(--gold); border-radius: 999px; }
.wk-row:hover { background: var(--purple-soft); }
.wk-row.this { box-shadow: inset 3px 0 0 var(--gold); }
.wk-row.on { background: var(--purple); color: #fff; }
.wk-row.on span.out { color: #cdd9e6; }
.wk-row.on span.now { color: #fff; }
.wk-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.wk-cal-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
@media (max-width: 520px) { .wk-cal { position: fixed; top: 120px; left: 16px; right: 16px; width: auto; transform: none; } }
.dup-card { margin-bottom: 14px; border-color: #f0d79e; background: #fffaf0; }
.dup-card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 4px; color: #7a4c00; }
.dup-person { border-top: 1px solid #f1e3c2; padding: 10px 0 6px; }
.dup-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.dup-row { padding: 3px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dup-ok { white-space: nowrap; }


/* retention on termination (Helena, 5 Nov 2026) */
.ret-card { margin-top: 16px; }
.ret-table { max-width: 520px; }
.ret-h { font-size: 15px; margin: 16px 0 6px; }
.ret-costs, .ret-back { list-style: none; padding: 0; margin: 0 0 8px; }
.ret-costs li, .ret-back li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 7px 0; border-bottom: 1px solid var(--line, #e6e1d8); }
.ret-costs li > span:first-child, .ret-back li > span:first-child { flex: 1 1 220px; }
.ret-list { margin: 10px 0 0; }
.ret-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line, #e6e1d8); }
.ret-list dt { margin: 0; } .ret-list dd { margin: 0; font-variant-numeric: tabular-nums; }
.ret-list .ret-sum dd, .ret-list .ret-tot { font-weight: 600; }
.ret-list .ret-tot { border-bottom: 0; }
.ret-terms { margin: 10px 0 14px; padding: 12px; border: 1px solid var(--line, #e6e1d8); border-radius: 10px; }

/* the date calendar (Helena, 6 Nov 2026): every date box on a computer */
.dp-cal { position: fixed; top: 0; left: 0; transform: none; z-index: 400; width: 296px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day { height: 36px; border: 0; background: none; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); border-radius: 999px; cursor: pointer; position: relative; }
.dp-day:hover:not([disabled]) { background: var(--purple-soft); }
.dp-day.out { color: #b2b9c1; }
.dp-day.now { font-weight: 700; color: var(--purple); box-shadow: inset 0 0 0 2px var(--gold); }
.dp-day.on { background: var(--purple); color: #fff; font-weight: 700; box-shadow: none; }
.dp-day[disabled] { color: #d1d6db; cursor: default; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .12); }
.dp-day:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.wk-cal-nav[disabled] { opacity: .35; cursor: default; }
html.dp-on input[type="date"] { cursor: pointer; }
html.dp-on input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }

/* rota tidy-up (6 Nov 2026): one-line absence chips, and the week's checks in one list */
.rota-week tr.off-row .shift.off { display: flex; align-items: baseline; gap: 6px; padding: 3px 7px; margin-top: 3px; border-left: 3px solid var(--c, #919aa4); white-space: nowrap; overflow: hidden; }
.rota-week tr.off-row .shift.off span { display: inline; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: .8rem; }
.rota-week tr.off-row .shift.off small { display: inline; flex: none; font-size: .68rem; }
.rota-week tr.off-row > td { padding-top: 3px; padding-bottom: 5px; }
.wk-checks { margin-bottom: 12px; border-color: #efcdd1; background: #fffafa; }
.wk-checks summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.wk-checks summary b { display: inline-flex; align-items: center; gap: 6px; color: #8a1c12; }
.wk-checks ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.wk-checks li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wk-checks li > b { min-width: 86px; font-size: .86rem; }
.wk-check { font: inherit; font-size: .8rem; border: 1px solid #efcdd1; background: #fff; color: #8a1c12; border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.wk-check.unplaced { background: #fdecea; }
.wk-check:hover, .wk-check:focus-visible { border-color: #b42318; }
.wk-checks-ok { margin-bottom: 12px; }
@keyframes wkflash { 0%, 60% { box-shadow: inset 0 0 0 3px #b42318; } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.wk-flash { animation: wkflash 1.8s ease-out; }
@media (prefers-reduced-motion: reduce) { .wk-flash { animation: none; box-shadow: inset 0 0 0 3px #b42318; } }
.rota-week tr.off-row > td.loc b { font-size: .84rem; line-height: 1.2; }

/* rota (6 Nov 2026): short cards in the week grid - one line for the name and one for a note; full text on hover */
.rota-week .shift.compact .who, .rota-week .shift.compact small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rota-week .shift.compact .who { display: flex; min-width: 0; }
.wm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wm-grid .btn { justify-content: center; }
@media (max-width: 420px) { .wm-grid { grid-template-columns: 1fr; } }

/* Birthdays coming up (Helena, 6 Nov 2026: "more visual") */
.bd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bd-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--bd); border-radius: var(--radius); background: #fff; }
.bd-item.now { background: linear-gradient(90deg, rgba(197,165,114,.16), #fff 70%); border-color: var(--gold); border-left-color: var(--gold); }
.bd-date { flex: none; width: 50px; text-align: center; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; line-height: 1.1; }
.bd-date span { display: block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 2px 0; }
.bd-date span:first-child { background: var(--bd); color: #fff; }
.bd-date b { display: block; font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); }
.bd-item.now .bd-date span:first-child { background: var(--gold-deep); }
.bd-chips { margin-top: 4px; }
.bd-chip.warn { background: #fdf1e4; color: #8a4b08; }
.bd-count { flex: none; font-size: .8rem; font-weight: 600; color: var(--purple); background: var(--purple-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.bd-item.now .bd-count { background: var(--gold-deep); color: #fff; }
.bd-item .grow { flex: 1; min-width: 0; }
@media (max-width: 420px) { .bd-item { gap: 9px; padding: 9px 10px; } .bd-item .avatar { display: none; } .bd-count { font-size: .74rem; padding: 3px 8px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bd-item.big:not(.now) { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(197,165,114,.10), #fff 60%); }
.bd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bd-chip.big { background: var(--gold-deep); color: #fff; font-weight: 600; }

/* personality type on My profile (Helena, 6 Nov 2026) */
.pt-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-row select:first-child { flex: 2 1 200px; }
.pt-row select:last-child { flex: 1 1 140px; }
.pt-row #fv-disc, .pt-row #fv-disc-2 { flex: 1 1 190px; }
.disc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.disc-dot + b { margin-left: 2px; }

/* our DISC quiz and result (Helena, 6 Nov 2026) */
.disc-bars { display: grid; grid-template-columns: 22px max-content minmax(60px, 1fr) 28px; align-items: center; gap: 6px 8px; margin: 8px 0 4px; }
.disc-bar { display: contents; font-size: .85rem; }
.disc-bar > * { font-size: .85rem; }
.disc-k { width: 22px; height: 22px; border-radius: 6px; color: #fff; font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.disc-track { height: 8px; background: #e9ecef; border-radius: 99px; overflow: hidden; }
.disc-track i { display: block; height: 100%; border-radius: 99px; }
.disc-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.disc-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.disc-hero > span { width: 72px; height: 72px; border-radius: 18px; background: var(--dc); color: #fff; font-weight: 700; font-size: 1.8rem; display: grid; place-items: center; flex: none; }
.disc-hero b { font-size: 1.15rem; }
.dq { max-width: 760px; }
.dq-prog { position: sticky; top: 0; z-index: 2; height: 6px; background: #e9ecef; border-radius: 99px; overflow: hidden; }
.dq-prog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.dq-q { border: 0; border-top: 1px solid #e9ecef; margin: 0; padding: 14px 0; min-width: 0; }
.dq-q legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 500; }
.dq-q.done legend { color: var(--muted); }
.dq-scale { clear: both; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.dq-scale label { position: relative; }
.dq-scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dq-scale span { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 4px; border: 1px solid #d7dce2; border-radius: 10px; font-size: .78rem; line-height: 1.2; cursor: pointer; }
.dq-scale label:hover span { background: var(--purple-soft); }
.dq-scale input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 600; }
.dq-scale input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
#dq-f .btn.block { margin-top: 14px; }
@media (max-width: 480px) { .dq-scale { gap: 4px; } .dq-scale span { font-size: .68rem; min-height: 48px; padding: 2px; } }
.disc-n { white-space: nowrap; }

/* Dentally button next to WhatsApp on Home (Helena, 6 Nov 2026) */
.today .t-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.today .t-dent { display: inline-flex; border-radius: 999px; overflow: hidden; background: #1f43f6; border: 1px solid rgba(255,255,255,.25); }
.today .t-dent img { display: block; height: 36px; width: auto; }
.today .t-dent:hover { border-color: rgba(255,255,255,.6); }
.today .t-dent:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.bd-cake { display: inline-block; margin-left: 4px; font-size: 1.15em; line-height: 1; vertical-align: -1px; }

/* Birthdays card, dynamic touches (Helena, 6 Nov 2026) */
.bd-item { position: relative; overflow: hidden; }
.bd-near { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.bd-near i { display: block; height: 100%; width: var(--near); background: var(--bd); opacity: .45; border-radius: 0 3px 3px 0; }
.bd-item.now .bd-near i, .bd-item.big .bd-near i { background: var(--gold); opacity: .8; }
.bd-confetti { position: absolute; inset: 0; pointer-events: none; }
.bd-confetti i { position: absolute; top: -10px; width: 6px; height: 10px; border-radius: 2px; opacity: 0; }
.bd-confetti i:nth-child(odd) { background: var(--gold); } .bd-confetti i:nth-child(even) { background: var(--purple); }
.bd-confetti i:nth-child(3n) { background: #2e9b62; } .bd-confetti i:nth-child(4n) { background: #7ca8dc; }
.bd-confetti i:nth-child(1) { left: 8%; } .bd-confetti i:nth-child(2) { left: 20%; } .bd-confetti i:nth-child(3) { left: 33%; } .bd-confetti i:nth-child(4) { left: 46%; }
.bd-confetti i:nth-child(5) { left: 59%; } .bd-confetti i:nth-child(6) { left: 71%; } .bd-confetti i:nth-child(7) { left: 83%; } .bd-confetti i:nth-child(8) { left: 93%; }
@media (prefers-reduced-motion: no-preference) {
  .bd-cake { animation: bd-wiggle 1.2s ease-in-out .4s 2; transform-origin: 50% 90%; }
  .card:hover .bd-cake { animation: bd-wiggle 1s ease-in-out infinite; }
  @keyframes bd-wiggle { 0%, 100% { transform: rotate(0) scale(1); } 20% { transform: rotate(-12deg) scale(1.12); } 40% { transform: rotate(10deg) scale(1.12); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
  .bd-item { animation: bd-in .45s ease-out both; animation-delay: calc(var(--i) * 70ms); }
  @keyframes bd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .bd-near i { animation: bd-fill 1s ease-out both; animation-delay: calc(var(--i) * 70ms + .3s); }
  @keyframes bd-fill { from { width: 0; } }
  .bd-item.soon .bd-count { animation: bd-pulse 2.4s ease-in-out infinite; }
  @keyframes bd-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(48, 74, 105, .25); } 50% { box-shadow: 0 0 0 5px rgba(48, 74, 105, 0); } }
  .bd-item.now .bd-count { animation: bd-pulse-gold 2s ease-in-out infinite; }
  @keyframes bd-pulse-gold { 0%, 100% { box-shadow: 0 0 0 0 rgba(197, 165, 114, .55); } 50% { box-shadow: 0 0 0 6px rgba(197, 165, 114, 0); } }
  .bd-confetti i { animation: bd-fall 3.2s linear infinite; }
  .bd-confetti i:nth-child(2) { animation-delay: .5s; } .bd-confetti i:nth-child(3) { animation-delay: 1.1s; } .bd-confetti i:nth-child(4) { animation-delay: 1.7s; }
  .bd-confetti i:nth-child(5) { animation-delay: .3s; } .bd-confetti i:nth-child(6) { animation-delay: 2.2s; } .bd-confetti i:nth-child(7) { animation-delay: 1.4s; } .bd-confetti i:nth-child(8) { animation-delay: 2.7s; }
  @keyframes bd-fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 10% { opacity: .9; } 85% { opacity: .7; } 100% { opacity: 0; transform: translateY(90px) rotate(320deg); } }
}
.bd-item > *:not(.bd-confetti):not(.bd-near) { position: relative; }

/* Chat birthday card, dynamic (Helena, 6 Nov 2026) */
.bday-card { position: relative; overflow: hidden; cursor: pointer; background: radial-gradient(120% 90% at 50% 0%, #456386 0%, var(--purple) 55%); }
.bday-card > :not(.bday-fx) { position: relative; z-index: 1; }
.bday-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.bday-card .bday-art { margin: 0 auto 4px; }
.bday-card .bday-art svg { display: block; margin: 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.bday-card h3 { background: linear-gradient(90deg, #fff 0%, #f6e3bd 30%, #fff 50%, #f6e3bd 70%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.bday-tap { opacity: .8; }
.bday-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bday-fx .cf { position: absolute; left: var(--x); top: -12px; width: 7px; height: 11px; border-radius: 2px; opacity: 0; background: var(--gold); }
.bday-fx .cf:nth-child(3n) { background: #accaed; } .bday-fx .cf:nth-child(3n+1) { background: #9fe0c0; } .bday-fx .cf:nth-child(4n) { background: #fff; }
.bday-fx .bl { position: absolute; left: var(--x); bottom: -40px; font-size: 26px; font-weight: 400; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bday-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: bday-flicker .9s ease-in-out infinite alternate; animation-delay: var(--d); }
  @keyframes bday-flicker { 0% { transform: scale(1, 1) rotate(-3deg); opacity: 1; } 50% { transform: scale(.85, 1.12) rotate(2deg); opacity: .85; } 100% { transform: scale(1.05, .92) rotate(-1deg); opacity: 1; } }
  .bday-card h3 { animation: bday-shine 4s linear infinite; }
  @keyframes bday-shine { to { background-position: -200% 0; } }
  .bday-card.go .bday-art { animation: bday-pop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes bday-pop { from { transform: scale(.4) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
  .bday-card.go .cf { animation: bday-fall 2.8s ease-in var(--d) 2 both; }
  @keyframes bday-fall { 0% { opacity: 0; transform: translateY(0) rotate(0); } 8% { opacity: 1; } 85% { opacity: .9; } 100% { opacity: 0; transform: translateY(380px) rotate(calc(var(--r) + 540deg)); } }
  .bday-card.go .bl { animation: bday-rise 4.5s ease-out var(--d) both; }
  @keyframes bday-rise { 0% { opacity: 0; transform: translateY(0) rotate(-6deg); } 15% { opacity: .95; } 50% { transform: translateY(-200px) rotate(6deg); } 85% { opacity: .9; } 100% { opacity: 0; transform: translateY(-420px) rotate(-4deg); } }
}
@media (prefers-reduced-motion: reduce) { .bday-tap { display: none; } }
.bd-chip.wk { background: #f6eedf; color: #6e5320; }

/* surveys (Helena, 6 Nov 2026) */
.chip.warn { background: #fdf1e4; color: #8a4b08; }
.sv-starters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sv-starters select { width: auto; max-width: 100%; }
.sv-build > .card, #sv-qs > .card { margin-bottom: 14px; }
.sv-q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sv-q-tools { display: inline-flex; gap: 4px; }
.sv-q .icon-btn, .sv-q-tools button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; display: inline-grid; place-items: center; color: var(--purple); font: inherit; }
.sv-q-tools button[disabled] { opacity: .35; cursor: default; }
.sv-q-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sv-q-row > select { width: auto; flex: 0 1 220px; }
.sv-q-row .field { flex: 1 1 160px; }
.sv-add .lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.sv-rate { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: .8rem; }
.sv-rate > span { flex: 1; max-width: 220px; height: 6px; background: #e9ecef; border-radius: 99px; overflow: hidden; }
.sv-rate > span i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.sv-rate.big > span { max-width: none; height: 10px; }
.sv-rate.big { font-size: .95rem; }
.sv-res-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.sv-bar { display: grid; grid-template-columns: minmax(80px, 1.2fr) 2fr 28px 40px; gap: 10px; align-items: center; margin: 6px 0; font-size: .9rem; }
.sv-track { height: 12px; background: #e9ecef; border-radius: 99px; overflow: hidden; }
.sv-track i { display: block; height: 100%; background: var(--purple); opacity: .55; border-radius: 99px; transition: width .6s ease-out; }
.sv-bar.best .sv-track i { background: var(--gold); opacity: 1; }
.sv-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.sv-avg { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sv-avg b { font-family: var(--font-serif); font-size: 2rem; color: var(--purple); }
.sv-texts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sv-texts li { background: var(--cream, #faf6ef); border-radius: 10px; padding: 10px 12px; }
.sv-res, .sv-sum { margin-bottom: 14px; }
.sv-answer { max-width: 760px; }
.sva-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.sva-pill { position: relative; }
.sva-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sva-pill span { display: inline-block; padding: 9px 16px; border: 1px solid #d7dce2; border-radius: 999px; cursor: pointer; }
.sva-pill:hover span { background: var(--purple-soft); }
.sva-pill input:checked + span { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 600; }
.sva-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sva-pill input:disabled + span { cursor: default; }
.sva-ends { display: flex; justify-content: space-between; margin-top: 4px; }
.sva textarea { width: 100%; }
.sva .btn.block { margin-top: 14px; }
@media (max-width: 480px) { .sv-bar { grid-template-columns: 1fr 1.4fr 24px 36px; gap: 6px; font-size: .82rem; } }
.sva-q > :not(legend) { clear: both; }
.sva-q legend .neg { white-space: nowrap; }
/* who answered what (Helena, 9 Nov 2026) */
.sv-names { display: flex; flex-wrap: wrap; gap: 4px; margin: -2px 0 8px; padding-left: 36%; }
.sv-names span { font-size: .75rem; background: var(--purple-soft); color: var(--purple); border-radius: 999px; padding: 2px 9px; }
.sv-who th { font-size: .78rem; font-weight: 600; vertical-align: bottom; min-width: 120px; }
.sv-who th:first-child, .sv-who td:first-child { min-width: 150px; position: sticky; left: 0; background: #fff; }
.sv-who td { vertical-align: top; font-size: .88rem; }
.sv-who tr.click { cursor: pointer; }
.sv-who tr.click:hover td { background: var(--purple-soft); }
@media (max-width: 480px) { .sv-names { padding-left: 0; } }
.u-extra { display: inline-block; margin-top: 2px; font-size: .72rem; font-weight: 600; color: #6e5320; background: #f6eedf; border-radius: 8px; padding: 1px 8px; line-height: 1.35; }
.ux-list { margin-bottom: 10px; }
/* how the payment schedule is worked out (Helena, 9 Nov 2026) */
.pay-how { margin-bottom: 12px; }
.pay-how summary { cursor: pointer; font-weight: 600; color: var(--purple); display: flex; align-items: center; gap: 6px; }
.pay-how ol { margin: 10px 0 8px; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; }
/* who is in a group chat, at a glance (Helena, 10 Nov 2026) */
.thread-mem { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px 3px 4px; cursor: pointer; font: inherit; font-size: .85rem; color: var(--purple); }
.thread-mem:hover { border-color: var(--purple); }
.thread-mem .faces { display: inline-flex; }
.thread-mem .faces .avatar { width: 28px; height: 28px; font-size: .65rem; border: 2px solid #fff; margin-left: -8px; }
.thread-mem .faces .avatar:first-child { margin-left: 0; }
.thread-mem .faces .avatar.more { background: var(--purple-soft); color: var(--purple); width: auto; min-width: 28px; padding: 0 6px; border-radius: 14px; }
@media (max-width: 480px) { .thread-mem .tm-n { display: none; } }
/* phones: the message box gets its own full-width line, buttons below (Helena, 10 Nov 2026: the box was squeezed to one letter wide) */
.composer textarea { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) {
  .composer { flex-wrap: wrap; }
  .composer textarea { order: -1; flex: 1 1 100%; }
  .composer button[type=submit] { margin-left: auto; }
}
/* group read receipts: tap to see who (Helena, 12 Nov 2026) */
.rcpt.grp { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.rcpt.grp:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.rd-h { font-size: .95rem; margin: 6px 0 4px; }

/* who's online in Chat (Helena, 12 Nov 2026) */
.av-wrap { position: relative; display: inline-flex; flex: none; }
.on-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #2fb36a; box-shadow: 0 0 0 2px #fff; }
.av-wrap .on-dot { position: absolute; right: -1px; bottom: -1px; }
.on-txt { font-size: .72rem; font-weight: 600; color: #1f7d4a; margin-left: 4px; }
.thread-on { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; font-family: var(--font-sans, inherit); font-size: .78rem; font-weight: 600; color: #1f7d4a; vertical-align: middle; }
.thread-on .on-dot { width: 9px; height: 9px; box-shadow: none; }
.thread-mem .faces .av-wrap { margin-left: -8px; }
.thread-mem .faces .av-wrap:first-child { margin-left: 0; }
.thread-mem .faces .av-wrap .avatar { margin-left: 0; }
.thread-mem .faces .av-wrap .on-dot { width: 9px; height: 9px; }

/* Home improvements (Helena, 12 Nov 2026): Needs you bar, shorter Who's in today, brief Team news */
.needs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); }
.needs-bar > b { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); margin-right: 4px; }
.needs-bar a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .88rem; background: #fff; }
.needs-bar a:hover { border-color: var(--purple); }
.needs-bar .nb-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 700; font-size: .8rem; }
.mz-flash > .card { box-shadow: 0 0 0 3px var(--gold); transition: box-shadow .3s; }
.whos-faces { display: grid; gap: 8px; margin-bottom: 6px; }
.wf-team { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wf-team .team-label { margin: 0; min-width: 160px; }
.wf-row { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.wf .avatar { width: 32px; height: 32px; font-size: .72rem; }
.wf-key { display: flex; gap: 14px; }
.wf-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: #d4d9de; }
.wf-key .k-in { background: #fff; box-shadow: 0 0 0 2px var(--teal); }
.wf-key .k-off { opacity: .45; background: var(--purple); }
.whos-card .whos-all { display: none; }
.whos-card.all .whos-all { display: block; }
.whos-card.all .whos-flag, .whos-card.all .whos-flag + * { }
.news-brief .title { font-weight: 600; }
@media (max-width: 600px) { .wf-team .team-label { min-width: 0; width: 100%; } }

/* Who's in today: faces with names (Helena, 12 Nov 2026: "better to have names") */
.wf { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .82rem; line-height: 1.1; }
.wf .avatar { width: 26px; height: 26px; font-size: .62rem; }
.wf-n { font-weight: 600; color: var(--ink); }
.wf-s { color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; }
.wf.is-in { border-color: var(--teal); }
.wf.is-in .wf-s { color: var(--teal-deep); }
.wf.is-off { opacity: .6; }
.wf.is-flag { border-color: #e7a3a3; background: #fdf3f3; }
.wf.is-flag .wf-s { color: #a33a3a; }
.wf-row { gap: 6px 6px; }
.wf-key .k-due { background: #fff; box-shadow: 0 0 0 1px #c2c8d0; }
.wf-key { flex-wrap: wrap; }
.wf-key .k-flag { background: #fdf3f3; box-shadow: 0 0 0 1px #e7a3a3; }

/* the time picker (Helena, 12 Nov 2026): hours then minutes, no scrolling */
.tp-cal { position: fixed; top: 0; left: 0; transform: none; z-index: 400; width: 300px; }
.tp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tp-grid { display: grid; gap: 4px; }
.tp-hours { grid-template-columns: repeat(6, 1fr); }
.tp-mins { grid-template-columns: repeat(4, 1fr); }
.tp-b { height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; }
.tp-b:hover { background: var(--purple-soft); border-color: var(--purple-soft); }
.tp-b.on { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 700; }
.tp-b.off-hrs { color: #a1a9b2; }
.tp-b:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
html.tp-on input[type="time"] { cursor: pointer; }
html.tp-on input[type="time"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }


/* Timesheets list fits the screen without sideways scrolling (Helena, 12 Nov 2026): same columns, wider page, tighter cells */
main:has(.ts-list) { max-width: 1680px; }
@media (min-width: 641px) {
  .ts-list { font-size: .84rem; }
  .ts-list th { white-space: normal; padding: 7px 6px; line-height: 1.25; vertical-align: bottom; }
  .ts-list td { padding: 8px 6px; }
  .ts-list td:first-child, .ts-list th:first-child { padding-left: 10px; }
  .ts-list .tl-name { min-width: 96px; }
  .ts-list .tl-flags { min-width: 90px; }
  .ts-list .tl-flags .chip { white-space: normal; margin: 0 3px 3px 0; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  main:has(.ts-list) { padding-left: 8px; padding-right: 8px; }
  .ts-list { font-size: .76rem; }
  .ts-list th { font-size: .7rem; padding: 6px 3px; }
  .ts-list td { padding: 7px 3px; }
  .ts-list .tl-name { min-width: 80px; }
  .ts-list .tl-flags { min-width: 72px; }
  .ts-list .chip { font-size: .68rem; padding: 1px 5px; }
}

/* Chat: Edit / Delete on a manager's own unread message (Helena, 12 Nov 2026) */
.m-acts { display: inline-flex; gap: 8px; margin-left: 6px; }
.m-act { background: none; border: 0; padding: 0; font: inherit; font-size: inherit; color: inherit; opacity: .85; text-decoration: underline; cursor: pointer; }
.m-act:hover { opacity: 1; }
.msg-b .edited { opacity: .8; font-style: italic; }

/* Library: search inside every document (Helena, 12 Nov 2026) */
.doc-search { position: relative; max-width: 560px; margin: 0 0 14px; }
.doc-search .ds-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.doc-search input { width: 100%; min-height: 48px; padding: 12px 14px 12px 44px; font: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid #d6dce3; border-radius: 999px; background: var(--white); box-shadow: 0 1px 2px rgba(33, 49, 67, .05); -webkit-appearance: none; appearance: none; }
.doc-search input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.doc-search input::placeholder { color: var(--muted); }
.doc-hits { margin-bottom: 14px; }
.dh-head { padding: 14px 14px 6px; }
.dh-item { align-items: flex-start; }
.dh-snip { display: flex; gap: 10px; align-items: baseline; margin-top: 6px; padding: 7px 10px; border-radius: 8px; background: var(--purple-soft); color: var(--ink); text-decoration: none; font-size: .86rem; line-height: 1.45; }
.dh-snip:hover { outline: 1px solid var(--purple); }
.dh-pg { flex: 0 0 auto; font-size: .72rem; font-weight: 600; color: var(--purple); white-space: nowrap; }
.doc-hits mark { background: #f6e3a8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* Page tops on computers (Helena, 12 Nov 2026): a calm header panel with the page's icon, title, one line on
   what it's for, and its buttons on the right. Home is left as it is; phones keep the plain title. */
.ph-lead { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.ph-ic { display: none; }
.ph-sub { display: none; }
@media all {   /* option C (Helena, 12 Nov 2026): a purple band with a white title - computers and phones */
  .page-head.ph-hero { align-items: center; padding: 20px 24px; margin-bottom: 18px; border-radius: 14px; background: var(--purple); color: #fff; }
  .ph-hero h1 { font-size: 1.85rem; line-height: 1.15; color: #fff; }
  .ph-hero .ph-sub { display: block; margin: 3px 0 0; color: #dce1e7; font-size: .92rem; }
  .ph-hero .watch-links { margin-top: 6px; color: #dce1e7; }
  .ph-hero .watch-links > span:first-child { color: var(--gold); }
  .ph-hero .watch-links .link-btn { color: #fff; }
  .ph-hero .muted, .ph-hero .small.muted { color: #dce1e7; }
  .ph-hero a:not(.btn) { color: #fff; }
  .ph-hero .wk-pick, .ph-hero .wk-pick * { color: var(--purple) !important; }
  .ph-hero .wk-pick { background: var(--white) !important; border-radius: 8px; }
  /* the page's symbol: gold line icon in a gold ring beside the title, and a large faint copy at the right */
  .page-head.ph-hero { position: relative; overflow: hidden; }
  .ph-hero > *:not(.ph-mark) { position: relative; z-index: 1; }
  .ph-hero .ph-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 54px; height: 54px; margin-top: 2px;
    border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); background: rgba(255, 255, 255, .06); }
  .ph-hero .ph-mark { position: absolute; right: -18px; bottom: -48px; color: #fff; opacity: .07; pointer-events: none; z-index: 0; }
  .ph-hero .ph-mark svg { stroke-width: 1.1; }
  .ph-hero select, .ph-hero input, .ph-hero textarea { color: var(--ink); }
  .ph-hero .btn.purple, .ph-hero .btn:not(.line):not(.gold):not(.small.line) { background: var(--white); color: var(--purple); border-color: var(--white); }
}

/* phones: the same purple band, compact (Helena, 12 Nov 2026: "make sure the whole thing is mobile optimised") */
@media (max-width: 899px) {
  .page-head.ph-hero { padding: 14px 16px; margin-bottom: 14px; border-radius: 12px; gap: 10px; }
  .ph-hero h1 { font-size: 1.4rem; }
  .ph-hero .ph-sub { display: none; }   /* phones: kept short */
  .ph-hero .ph-lead { gap: 10px; }
  .ph-hero .ph-ic { width: 40px; height: 40px; }
  .ph-hero .ph-ic svg { width: 20px; height: 20px; }
  .ph-hero .ph-mark { right: -24px; bottom: -36px; }
  .ph-hero .ph-mark svg { width: 120px; height: 120px; }
  .ph-hero .watch-links { font-size: .78rem; }
}

/* a person's timesheet: back to Timesheets, and on to their profile and time off (Helena, 12 Nov 2026) */
.ts-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 2px; }
.ts-links a { display: inline-flex; align-items: center; gap: 4px; }

/* back links in the purple band: on their own line above the title, with space (Helena, 12 Nov 2026) */
.ph-hero > .ph-back { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font-size: .84rem; }
.ph-hero > a.ph-back { display: inline-flex; flex: 0 0 100%; }
.ph-hero .ph-back a, .ph-hero a.ph-back { color: #dce1e7; text-decoration: none; }
.ph-hero .ph-back a:hover, .ph-hero a.ph-back:hover { color: #fff; text-decoration: underline; }

/* chat replies, like WhatsApp (Helena, 16 Nov 2026) */
.msg-b { position: relative; }
.m-quote { display: block; width: 100%; text-align: left; margin: 2px 0 6px; padding: 6px 10px; border: 0; border-left: 3px solid var(--teal-deep); border-radius: 8px; background: rgba(31,53,80,.06); color: inherit; font: inherit; cursor: pointer; white-space: normal; }
.m-quote:hover { background: rgba(31,53,80,.1); }
.msg-b.mine .m-quote { background: rgba(255,255,255,.14); border-left-color: var(--gold, #c3a978); }
.msg-b.mine .m-quote:hover { background: rgba(255,255,255,.22); }
.m-quote .mq-who { display: block; font-size: .74rem; color: var(--teal-deep); }
.msg-b.mine .m-quote .mq-who { color: #f0dfb8; }
.m-quote .mq-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; opacity: .9; }
.m-quote.gone .mq-t { font-style: italic; opacity: .7; }
.m-reply { background: none; border: 0; padding: 0 0 0 8px; font: inherit; font-size: inherit; color: inherit; cursor: pointer; opacity: 0; transition: opacity .12s; }
.msg-b:hover .m-reply, .msg-b:focus-within .m-reply, .msg-b.show-acts .m-reply { opacity: .85; }
.m-reply:hover, .m-reply:focus-visible { opacity: 1; text-decoration: underline; }
@media (hover: none) { .m-reply { display: none; } .msg-b.show-acts .m-reply { display: inline; } }
.msg-b.flash { animation: mq-flash 1.4s ease; }
@keyframes mq-flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(195,169,120,.65); } 100% { box-shadow: 0 0 0 0 rgba(195,169,120,0); } }
.msg-b::before { content: '↩'; position: absolute; left: -34px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft, #e9eef3); color: var(--purple); font-size: .9rem; opacity: 0; transition: opacity .1s; pointer-events: none; }
.msg-b.sw-ready::before { opacity: 1; }
.reply-bar { display: flex; align-items: center; gap: 10px; margin: 0 10px; padding: 8px 10px; border-left: 3px solid var(--teal-deep); border-radius: 8px 8px 0 0; background: var(--purple-soft, #e9eef3); }
.reply-bar[hidden] { display: none; }
.reply-bar .rb-q { flex: 1; min-width: 0; }
.reply-bar .rb-q b { display: block; font-size: .78rem; color: var(--teal-deep); }
.reply-bar .rb-q span { display: block; font-size: .85rem; color: var(--ink, #242b34); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reply-bar .rb-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; }
.reply-bar .rb-x:hover { background: rgba(31,53,80,.08); color: var(--purple); }

/* chat emoji reactions (Helena, 16 Nov 2026) */
.m-reacts { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.m-reacts:empty { display: none; }
.msg-b.has-rx { margin-bottom: 12px; }
.msg-b.has-rx .m-reacts { position: absolute; bottom: -14px; left: 10px; }
.msg-b.mine.has-rx .m-reacts { left: auto; right: 10px; }
.rx { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink, #242b34); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(23, 39, 57,.12); }
.rx span { font-size: .72rem; font-weight: 600; color: var(--muted); }
.rx.mine { border-color: var(--teal-deep); background: #eef7f6; }
.rx:hover { border-color: var(--purple); }
.rx-pop { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30; display: flex; gap: 2px; padding: 5px 6px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(23, 39, 57,.18); white-space: nowrap; }
.msg-b.mine .rx-pop { left: auto; right: 0; }
.rx-pop.below { bottom: auto; top: calc(100% + 6px); }
.rx-pop button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; font-size: 1.35rem; line-height: 1; cursor: pointer; transition: transform .1s; }
.rx-pop button:hover, .rx-pop button:focus-visible { background: var(--purple-soft, #e9eef3); transform: scale(1.15); }
.rx-pop button.on { background: #eef7f6; box-shadow: inset 0 0 0 2px var(--teal-deep); }
.rx-list .rx-e { font-size: 1.3rem; width: 32px; text-align: center; }
@media (max-width: 420px) { .rx-pop button { width: 34px; height: 34px; font-size: 1.2rem; } }

/* chat forwarding (Helena, 16 Nov 2026) */
.msg-b .fwd-tag { font-size: .74rem; font-style: italic; opacity: .75; margin-bottom: 2px; }
.fw-prev { margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--teal-deep); border-radius: 8px; background: var(--purple-soft, #e9eef3); white-space: pre-wrap; word-wrap: break-word; font-size: .92rem; }
.fw-list { max-height: 46vh; overflow-y: auto; }
.fw-list .pick input:disabled { opacity: .35; }

/* chat: search, stars, pins, mute, typing, mentions, polls (Helena, 16 Nov 2026) */
.chat-search { max-width: none; }
.hit-list { padding: 0; margin: 0; }
.hit-list li { padding: 0; }
.hit-list a.hit { display: flex; gap: 10px; padding: 12px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.hit-list li:last-child a.hit { border-bottom: 0; }
.hit-list a.hit:hover { background: var(--purple-soft, #e9eef3); }
.hit-t { margin-top: 2px; overflow-wrap: anywhere; }
.hit-t mark { background: #f3e3b5; color: inherit; border-radius: 3px; padding: 0 1px; }
.cl-flag { font-size: .85em; margin-right: 4px; }
.unread.muted { background: #b3b9bf; }
.thread-flags { font-size: .8em; margin-left: 4px; }
.thread-more { margin-left: auto; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--purple); display: grid; place-items: center; cursor: pointer; }
.thread-more:hover { background: var(--purple-soft, #e9eef3); }
.thread-mem + .thread-more { margin-left: 8px; }
.opt-list { display: flex; flex-direction: column; gap: 4px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; color: var(--ink, #242b34); text-align: left; cursor: pointer; }
.opt:hover:not(.opt-static) { background: var(--purple-soft, #e9eef3); }
.opt svg { width: 22px; height: 22px; color: var(--purple); flex: none; }
.opt-e { width: 22px; text-align: center; font-size: 1.1rem; flex: none; }
.opt-static { cursor: default; font-weight: 600; padding-bottom: 6px; }
.typing { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 2px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-deep); animation: ty-b 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ty-b { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }
.thread-on { font-size: .8rem; font-weight: 500; color: var(--teal-deep); margin-left: 8px; }
.msg-b .star-on { color: #e8c25c; }
.msg-b:not(.mine) .star-on { color: #b8902e; }
.m-more { font-weight: 700; letter-spacing: 1px; }
.mm-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; display: flex; flex-direction: column; min-width: 150px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(23, 39, 57,.18); white-space: nowrap; }
.msg-b.mine .mm-pop { left: auto; right: 0; }
.mm-pop.up { top: auto; bottom: calc(100% + 4px); }
.mm-pop button { padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: .92rem; color: var(--ink, #242b34); text-align: left; cursor: pointer; }
.mm-pop button:hover, .mm-pop button:focus-visible { background: var(--purple-soft, #e9eef3); }
.mention { font-weight: 600; color: var(--teal-deep); }
.msg-b.mine .mention { color: #f0dfb8; }
.mention.me { background: rgba(195,169,120,.25); border-radius: 4px; padding: 0 2px; }
.mention-pop { position: absolute; left: 10px; right: 10px; bottom: calc(100% + 4px); z-index: 30; display: flex; flex-direction: column; max-width: 360px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(23, 39, 57,.18); }
.mention-pop[hidden] { display: none; }
.mp-i { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; font: inherit; text-align: left; cursor: pointer; color: var(--ink, #242b34); }
.mp-i .avatar { width: 28px; height: 28px; font-size: .72rem; }
.mp-i.on, .mp-i:hover { background: var(--purple-soft, #e9eef3); }
.poll { min-width: min(280px, 64vw); white-space: normal; }
.poll-q { font-weight: 700; display: flex; gap: 6px; align-items: flex-start; }
.poll-q svg { flex: none; margin-top: 2px; }
.poll-hint { font-size: .74rem; opacity: .75; margin: 2px 0 8px; }
.poll-o { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 9px 10px; border: 1px solid rgba(31,53,80,.18); border-radius: 10px; background: rgba(31,53,80,.04); color: inherit; font: inherit; font-size: .92rem; text-align: left; cursor: pointer; overflow: hidden; }
.msg-b.mine .poll-o { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.poll-o .po-bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(42,122,114,.16); transition: width .3s; pointer-events: none; }
.msg-b.mine .poll-o .po-bar { background: rgba(255,255,255,.18); }
.poll-o .po-ck { position: relative; z-index: 1; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; opacity: .6; }
.poll-o.on .po-ck { opacity: 1; background: var(--teal-deep); border-color: var(--teal-deep); box-shadow: inset 0 0 0 3px #fff; }
.msg-b.mine .poll-o.on .po-ck { background: #f0dfb8; border-color: #f0dfb8; box-shadow: inset 0 0 0 3px var(--purple); }
.poll-o .po-t { position: relative; z-index: 1; flex: 1; }
.poll-o .po-n { position: relative; z-index: 1; font-weight: 700; font-size: .85rem; }
.poll-see { display: block; margin: 2px 0 0; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; font-size: .8rem; text-decoration: underline; opacity: .85; cursor: pointer; }
.pv-opt { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pv-h { display: flex; justify-content: space-between; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .95rem; }

/* the "Manage" menu: managers-only pages in one dropdown on wider screens (Helena, 17 Nov 2026) */
.nav .nav-mg { display: none; align-items: center; gap: 8px; flex: none; margin-left: 10px; padding: 9px 14px; border: 0; border-left: 2px solid var(--gold); border-radius: 0;
  background: var(--purple-soft); color: var(--purple); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.nav .nav-mg:hover, .nav .nav-mg[aria-expanded="true"] { background: var(--lilac); }
.nav .nav-mg.on { background: var(--lilac); box-shadow: inset 0 -3px 0 var(--purple); }
.nav .nav-mg .mg-caret { transition: transform .15s; }
.nav .nav-mg[aria-expanded="true"] .mg-caret { transform: rotate(180deg); }
@media (min-width: 900px) { .nav .nav-mg { display: inline-flex; } }
@media (min-width: 900px) and (max-width: 1400px) { .nav .nav-mg svg:not(.mg-caret) { display: none; } }
.mg-pop { position: fixed; z-index: 60; min-width: 250px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(23, 39, 57, .28); }
.mg-pop[hidden] { display: none; }
.mg-pop-h { padding: 6px 10px 6px; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-deep); }
.mg-pop a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink, inherit); text-decoration: none; font-weight: 500; }
.mg-pop a svg { color: var(--purple); flex: none; }
.mg-pop a:hover, .mg-pop a:focus-visible { background: var(--purple-soft); outline: none; }
.mg-pop a.on { background: var(--lilac); font-weight: 600; }
.mg-pop a small { margin-left: auto; font-size: .7rem; color: var(--muted); }

/* ===== stock (17 Nov 2026) ===== */
.sk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.sk-filters input[type=search] { flex: 1 1 220px; min-width: 0; }
.sk-filters select, .sk-filters input[type=date] { width: auto; min-height: 38px; }
.sk-filters label.small { display: inline-flex; align-items: center; gap: 6px; }
.sk-list li { padding: 11px 16px; cursor: pointer; }
.sk-list li:hover { background: var(--purple-soft); }
.sk-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sk-chips:empty { display: none; }
.sk-qty { text-align: right; min-width: 64px; flex: none; }
.sk-qty b { display: block; font-size: 1.3rem; line-height: 1.1; color: var(--purple); font-variant-numeric: tabular-nums; }
.sk-qty span { font-size: .72rem; color: var(--muted); }
.sk-qty.low b { color: var(--red); }
.sk-h { margin: 16px 0 4px; font-size: .95rem; color: var(--purple); }
.sk-acts { flex-wrap: wrap; gap: 8px; }
.sk-oq, .list li input.sk-oq { width: 80px !important; flex: 0 0 80px !important; min-height: 36px; text-align: right; }
.sk-rc { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sk-rc .title { font-weight: 600; margin-bottom: 6px; }
.sk-rc .grid.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.sk-rc .grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sk-scanrow { display: flex; gap: 8px; margin: 4px 0 12px; }
.sk-scanrow input { flex: 1; min-width: 0; border-style: dashed; }
.sk-rc.flash { background: var(--teal-soft); border-radius: 8px; transition: background .4s; }
.sk-rep-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sk-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sk-table th, .sk-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.sk-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.sk-table tfoot th { border-top: 2px solid var(--line); }
.sk-tabs { max-width: 100%; overflow-x: auto; }
@media (max-width: 600px) {
  .sk-list li { padding: 10px 12px; flex-wrap: wrap; }
  .sk-list li .grow { flex-basis: calc(100% - 140px); }
  .sk-rc .grid.three, .sk-rc .grid.two { grid-template-columns: 1fr; }
  .sk-filters .seg { width: 100%; overflow-x: auto; }
}

/* rota week arrows: drawn icons, centred (17 Nov 2026) */
.rota-nav #prev, .rota-nav #next { display: inline-grid; place-items: center; min-width: 38px; padding-left: 8px; padding-right: 8px; }

/* holiday mode (17 Nov 2026) */
.hm-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; background: var(--teal-soft); border: 1px solid #cfe5e2; color: var(--ink); }
.hm-banner svg { flex: none; color: var(--teal-deep); }
.hm-banner span { flex: 1; }
.hm-banner.nudge { background: var(--purple-soft); border-color: var(--line); }
.hm-banner.nudge svg { color: var(--purple); }
.more-list .hm-chip { margin-left: auto; background: var(--teal-soft); color: var(--teal-deep); }
@media (max-width: 600px) { .hm-banner { flex-wrap: wrap; } .hm-banner .btn { margin-left: 30px; } }

/* showcase sign-up: the spam trap stays out of sight */
.demo-login .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Occluna brand (showcase) */
.oc-lock { display: inline-flex; align-items: center; }
.oc-lock img.oc-logo { height: 36px; width: auto; display: block; }
.top .app-name { display: flex; align-items: center; }
@media (max-width: 899px) { .oc-lock img.oc-logo { height: 28px; } }
.login .oc-login { display: flex; justify-content: center; margin: 8px auto 4px; }
.login .oc-login .oc-lock img.oc-logo { height: 58px; }
