/* Staff calendar redesign: satin backdrop, frosted glass, glossy appointment
   cards. Loaded after every other stylesheet and only touches the signed-in
   staff view. Colours come from each salon's theme tokens below. */

body.staff-mode {
  --cs-bg: url("img/cal-satin-light.jpg");
  --cs-glass: rgba(255, 255, 255, 0.62);
  --cs-glass-strong: rgba(255, 255, 255, 0.82);
  --cs-edge: rgba(255, 255, 255, 0.9);
  --cs-rose: #6cc3cd;
  --cs-gold: #e9c46e;
  --cs-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 24px 60px -28px rgba(20, 95, 105, 0.45);
  --cs-grid-hour: rgba(120, 180, 188, 0.34);
  --cs-grid-half: rgba(120, 180, 188, 0.14);
  --cs-pop: cubic-bezier(0.34, 1.4, 0.64, 1);
  --accent: #0e7887; --accent-ink: #ffffff; --accent-soft: #dff1f3;
}
@media (prefers-color-scheme: dark) {
  body.staff-mode {
    --cs-bg: url("img/cal-satin-dark.jpg");
    --cs-glass: rgba(12, 34, 38, 0.6);
    --cs-glass-strong: rgba(12, 34, 38, 0.82);
    --cs-edge: rgba(170, 232, 238, 0.16);
    --cs-shadow: 0 1px 0 rgba(200, 242, 246, 0.08) inset, 0 24px 60px -28px rgba(0, 0, 0, 0.8);
    --cs-grid-hour: rgba(170, 232, 238, 0.16);
    --cs-grid-half: rgba(170, 232, 238, 0.07);
    --accent: #7fd3dc; --accent-ink: #05282e; --accent-soft: #14434a;
  }
}

/* Satin backdrop behind the whole staff workspace */
body.staff-mode .staff-main {
  background: var(--cs-bg) center / cover no-repeat fixed;
}

/* Toolbar: glass pills */
body.staff-mode .tool-btn,
body.staff-mode .date-group,
body.staff-mode .cal-mode {
  background: var(--cs-glass-strong);
  border-color: var(--cs-edge);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 8px 20px -14px rgba(20, 95, 105, 0.5);
  transition: transform 260ms var(--cs-pop), box-shadow 220ms ease, border-color 220ms ease;
}
body.staff-mode .date-group .tool-btn { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.staff-mode .tool-btn:not(.add-btn):hover { transform: translateY(-1px); border-color: var(--cs-rose); }
body.staff-mode .add-btn {
  background: linear-gradient(135deg, #2aa3b3 0%, #0e7887 55%, #0a5a66 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 22px -10px rgba(14, 120, 135, 0.75), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
body.staff-mode .add-btn:hover { background: linear-gradient(135deg, #3bb0bf 0%, #158a9a 55%, #0c6976 100%); transform: translateY(-1px); }

/* Stat cards: glass with a soft colour wash and a sheen */
body.staff-mode .stat {
  position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c-bg, var(--cs-rose)) 30%, transparent), transparent 70%),
    var(--cs-glass);
  border: 1px solid var(--cs-edge);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--cs-shadow);
}
body.staff-mode .stat::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: cs-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cs-sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* The calendar itself: one big frosted sheet */
body.staff-mode .cal-scroll {
  background: var(--cs-glass);
  border: 1px solid var(--cs-edge);
  border-radius: 26px;
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--cs-shadow);
}
body.staff-mode .cal-head,
body.staff-mode .cal-corner,
body.staff-mode .cal-time,
body.staff-mode .cal-gutter,
body.staff-mode .week-corner,
body.staff-mode .week-day,
body.staff-mode .week-who {
  background: var(--cs-glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body.staff-mode .cal-head { border-bottom-color: var(--cs-grid-hour); padding-top: 14px; }
body.staff-mode .cal-head strong { font-family: var(--serif); font-size: .98rem; letter-spacing: .01em; }
body.staff-mode .cal-head small {
  padding: 2px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--cs-rose) 16%, transparent);
  color: var(--ink);
}

/* Team photos: gradient ring that glows a little */
body.staff-mode .cal-head .avatar-lg {
  box-shadow:
    0 0 0 3px var(--cs-glass-strong),
    0 0 0 5px color-mix(in srgb, var(--av) 70%, #fff),
    0 10px 22px -8px color-mix(in srgb, var(--av) 75%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--av) 78%, #fff), var(--av) 55%, color-mix(in srgb, var(--av) 80%, #000));
  transition: transform 320ms var(--cs-pop);
}
body.staff-mode .cal-head:hover .avatar-lg { transform: scale(1.07) rotate(-3deg); }

/* Grid lines: soft rose instead of grey */
body.staff-mode .cal-col:not(.closed) {
  background-image: linear-gradient(var(--cs-grid-hour) 1px, transparent 1px), linear-gradient(var(--cs-grid-half) 1px, transparent 1px);
  background-size: 100% var(--hour), 100% calc(var(--hour) / 2);
  background-color: transparent;
}
body.staff-mode .cal-col { border-right-color: var(--cs-grid-half); transition: background-color 200ms ease; }
body.staff-mode .cal-col:not(.closed):hover { background-color: color-mix(in srgb, var(--cs-rose) 7%, transparent); }
body.staff-mode .cal-gutter span { color: var(--ink-2); font-weight: 600; }

/* Appointment cards: glossy, rounded, with a colour spine */
body.staff-mode .block {
  border-radius: 14px;
  padding: 7px 9px 7px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, color-mix(in srgb, var(--c-bg) 88%, #fff), var(--c-bg));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 18px -10px color-mix(in srgb, var(--c-bg) 60%, #0c3a41);
  transition: transform 260ms var(--cs-pop), box-shadow 220ms ease, filter 220ms ease;
}
body.staff-mode .block::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-ink) 62%, transparent);
}
body.staff-mode .block.short { padding: 3px 8px 3px 13px; }
body.staff-mode .block.short::before { top: 4px; bottom: 4px; }
body.staff-mode .block:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 16px 28px -12px color-mix(in srgb, var(--c-bg) 55%, #0c3a41);
  filter: saturate(1.08);
  z-index: 3;
}
body.staff-mode .block strong { font-size: .88rem; letter-spacing: .005em; }
body.staff-mode .block .t { font-weight: 600; opacity: .8; }
body.staff-mode .block.st-arrived { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-ink) 55%, transparent), 0 8px 18px -10px color-mix(in srgb, var(--c-bg) 60%, #0c3a41); }
body.staff-mode .block.st-cancelled,
body.staff-mode .block.st-no_show { box-shadow: none; }
body.staff-mode .block.st-cancelled::before,
body.staff-mode .block.st-no_show::before { display: none; }
body.staff-mode .block.dragging { transform: scale(1.03) rotate(-0.6deg); }

/* "Now" line: a glowing rose-gold thread with a pulsing bead */
body.staff-mode .now-line {
  height: 2px;
  background: linear-gradient(90deg, var(--cs-rose), var(--cs-gold), var(--cs-rose));
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--cs-rose) 70%, transparent);
}
body.staff-mode .now-line::before {
  width: 12px; height: 12px; top: -5px; left: -6px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--cs-rose) 60%);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--cs-rose) 70%, transparent);
  animation: cs-bead 2.2s ease-out infinite;
}
@keyframes cs-bead {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cs-rose) 70%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}

/* Week view cells and pills */
body.staff-mode .week-cell { border-color: var(--cs-grid-half); }
body.staff-mode .pill {
  border-radius: 999px; padding: 4px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 60%), var(--c-bg);
  transition: transform 240ms var(--cs-pop);
}
body.staff-mode .pill:hover { transform: translateY(-1px) scale(1.02); }

/* A quiet day gets a little picture instead of a blank sheet */
body.staff-mode .cal-empty::before {
  content: ""; display: block; width: 132px; height: 132px; margin: 0 auto 10px;
  background: url("img/cal-empty.png") center / contain no-repeat;
}

/* Side rail: active button in the salon's rose */
body.staff-mode .srail-btn { transition: transform 260ms var(--cs-pop), background .15s, color .15s; }
body.staff-mode .srail-btn:hover { transform: scale(1.08); }
body.staff-mode .srail-btn.is-active {
  background: linear-gradient(135deg, #2aa3b3, #0e7887 60%, #0a5a66);
  box-shadow: 0 10px 20px -8px rgba(14, 120, 135, 0.8);
}

/* Phones: keep the sheet edge to edge, as before */
@media (max-width: 767px) {
  body.staff-mode .cal-scroll { border-radius: 0; border-left: 0; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.staff-mode .stat::after, body.staff-mode .now-line::before { animation: none; }
  body.staff-mode .block, body.staff-mode .tool-btn, body.staff-mode .srail-btn, body.staff-mode .pill, body.staff-mode .cal-head .avatar-lg { transition: none; }
}

/* ================================================================== */
/* Staff menu bar: satin black, named buttons, one clear active state  */
/* ================================================================== */
@media (min-width: 768px) {
  body.staff-mode .staff-rail {
    width: 92px; gap: 4px;
    padding: calc(var(--safe-t) + 14px) 8px 14px;
    background:
      linear-gradient(180deg, rgba(20, 12, 20, 0.2), rgba(20, 12, 20, 0.55)),
      url("img/rail-satin.jpg") center / cover no-repeat,
      #0a1e22;
    color: #d9cbd3;
    border-radius: 0 26px 26px 0;
    box-shadow: 8px 0 30px -12px rgba(6, 40, 46, 0.55), -1px 0 0 rgba(170, 232, 238, 0.14) inset;
    position: relative; z-index: 5;
    overflow-y: auto; scrollbar-width: none;
  }
  body.staff-mode .staff-rail::-webkit-scrollbar { display: none; }

  body.staff-mode .srail-logo {
    width: 50px; height: 50px; border-radius: 17px; margin-bottom: 12px; flex: none;
    background: linear-gradient(140deg, #b5e7ec 0%, #2aa3b3 45%, #0a5a66 100%);
    box-shadow: 0 10px 24px -8px rgba(40, 160, 175, 0.9), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    transition: transform 320ms var(--cs-pop);
  }
  body.staff-mode .srail-logo:hover { transform: scale(1.06) rotate(-4deg); }

  /* Every button shows its name under the icon, so nobody has to guess */
  body.staff-mode .srail-btn {
    width: 76px; height: auto; min-height: 60px; flex: none;
    padding: 9px 2px 7px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border-radius: 18px;
    color: #d9cbd3;
    cursor: pointer;
  }
  body.staff-mode .srail-btn svg { width: 24px; height: 24px; stroke-width: 1.7; transition: transform 300ms var(--cs-pop); }
  body.staff-mode .srail-btn::after {
    font: 600 .66rem/1.1 var(--sans); letter-spacing: .03em;
    color: inherit; opacity: .92; white-space: nowrap;
  }
  body.staff-mode .srail-btn[data-staff-go="calendar"]::after { content: "Calendar"; }
  body.staff-mode .srail-btn[data-staff-go="waitlist"]::after { content: "Waitlist"; }
  body.staff-mode .srail-btn[data-staff-go="customers"]::after { content: "Clients"; }
  body.staff-mode .srail-btn[data-staff-go="team"]::after { content: "Team"; }
  body.staff-mode .srail-btn[data-staff-go="services"]::after { content: "Services"; }
  body.staff-mode .srail-btn[data-staff-go="shifts"]::after { content: "Shifts"; }
  body.staff-mode .srail-btn[data-staff-go="voicelog"]::after { content: "AI calls"; }
  body.staff-mode .srail-btn[data-staff-go="salon"]::after { content: "Settings"; }
  body.staff-mode .srail-btn[data-staff-go="exit"]::after { content: "Sign out"; }
  body.staff-mode .srail-btn .rail-word { font-size: .86rem; line-height: 24px; }

  body.staff-mode .srail-btn:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  body.staff-mode .srail-btn:hover svg { transform: translateY(-2px) scale(1.1); }
  body.staff-mode .srail-btn:focus-visible { outline: 2px solid #b5e7ec; outline-offset: 2px; }
  body.staff-mode .srail-btn.is-active {
    color: #fff;
    background: linear-gradient(150deg, #3fb2c0 0%, #0e7887 55%, #0a5a66 100%);
    box-shadow: 0 12px 24px -10px rgba(40, 160, 175, 0.95), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
  }
  body.staff-mode .srail-btn.is-active::before {
    content: ""; position: absolute; left: -8px; top: 16px; bottom: 16px; width: 4px;
    border-radius: 0 4px 4px 0; background: #fff1c9;
    box-shadow: 0 0 10px 2px rgba(255, 215, 130, 0.8);
  }
  body.staff-mode .srail-btn[data-staff-go="exit"] { color: #b9aab3; }
  body.staff-mode .srail-btn[data-staff-go="exit"]:hover { color: #ffc2c2; background: rgba(229, 72, 77, 0.16); }
  body.staff-mode .srail-push { margin-top: auto; }
  body.staff-mode .srail-push::before { display: none; }
  body.staff-mode .staff-rail .srail-badge { top: 4px; right: 14px; box-shadow: 0 0 0 2px #0a1c20, 0 0 10px rgba(229, 72, 77, 0.8); }
}
/* Short screens: tighter buttons so all nine still fit without scrolling */
@media (min-width: 768px) and (max-height: 760px) {
  body.staff-mode .srail-btn { min-height: 50px; padding: 6px 2px 5px; gap: 3px; }
  body.staff-mode .srail-logo { width: 42px; height: 42px; margin-bottom: 6px; }
}
@media (min-width: 768px) and (max-height: 600px) {
  body.staff-mode .srail-btn::after { display: none; }
  body.staff-mode .srail-btn { min-height: 42px; }
}

/* ================================================================== */
/* Side panels opened from the menu bar                                */
/* ================================================================== */
body.staff-mode .sheet-backdrop {
  background: rgba(8, 30, 34, 0.34);
  -webkit-backdrop-filter: blur(5px) saturate(1.1);
  backdrop-filter: blur(5px) saturate(1.1);
}
body.staff-mode .sheet {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, var(--cs-sheet) 190px),
    url("img/sheet-head.jpg") top right / 100% 230px no-repeat,
    var(--cs-sheet);
  box-shadow: 0 -20px 60px -30px rgba(12, 70, 78, 0.55);
}
body.staff-mode { --cs-sheet: #fafefe; }
@media (prefers-color-scheme: dark) {
  body.staff-mode { --cs-sheet: #122226; }
  body.staff-mode .sheet { background: linear-gradient(180deg, #1c353a 0, var(--cs-sheet) 170px); box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 0.8); }
}
/* Big screens: panels rise from the bottom, centred beside the menu bar */
@media (min-width: 768px) {
  body.staff-mode .sheet-backdrop { align-items: flex-end; justify-content: center; padding: 24px 24px 0 116px; }
  body.staff-mode .sheet {
    width: min(760px, 100%); height: auto; max-height: calc(100dvh - 48px);
    border-radius: 32px 32px 0 0; padding: 26px 32px 24px;
    box-shadow: 0 -30px 80px -30px rgba(12, 70, 78, 0.6), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    animation: cs-sheet-up .46s cubic-bezier(.2, .9, .25, 1) both;
  }
  body.staff-mode .sheet-grip { display: block; width: 52px; background: color-mix(in srgb, var(--cs-rose) 45%, var(--line)); margin-bottom: 12px; }
}
@keyframes cs-sheet-up { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }

body.staff-mode .sheet-title { font-family: var(--serif); font-size: 1.75rem; letter-spacing: .005em; margin: 4px 44px 16px 0; }
body.staff-mode .sheet-title::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 10px; border-radius: 3px;
  background: linear-gradient(90deg, var(--cs-rose), var(--cs-gold));
}
body.staff-mode .sheet-close {
  top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cs-glass-strong); border: 1px solid var(--cs-edge);
  box-shadow: 0 8px 18px -10px rgba(20, 95, 105, 0.6);
  transition: transform 300ms var(--cs-pop), background-color 200ms ease;
}
body.staff-mode .sheet-close:hover { transform: rotate(90deg) scale(1.06); }

/* Fields: roomier, with a clear rose focus ring */
body.staff-mode .sheet .field { font-size: .88rem; font-weight: 500; gap: 6px; margin-bottom: 14px; }
body.staff-mode .sheet .field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
body.staff-mode .sheet .field select,
body.staff-mode .sheet .field textarea,
body.staff-mode .sheet .lookup input {
  min-height: 48px; border-radius: 14px;
  border-color: color-mix(in srgb, var(--cs-rose) 30%, var(--line));
  background-color: var(--cs-glass-strong);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
body.staff-mode .sheet .field input:focus,
body.staff-mode .sheet .field select:focus,
body.staff-mode .sheet .field textarea:focus,
body.staff-mode .sheet .lookup input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
body.staff-mode .sheet input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--accent); }

/* Buttons */
body.staff-mode .sheet .primary-btn:not(.danger) {
  min-height: 52px; border-radius: 999px;
  background: linear-gradient(135deg, #2aa3b3 0%, #0e7887 55%, #0a5a66 100%); color: #fff;
  box-shadow: 0 14px 26px -12px rgba(14, 120, 135, 0.8), 0 1px 0 rgba(255, 255, 255, 0.4) inset;
  transition: transform 260ms var(--cs-pop), box-shadow 200ms ease, filter 200ms ease;
}
body.staff-mode .sheet .primary-btn:not(.danger):not(:disabled):hover { transform: translateY(-2px); filter: brightness(1.06); }
body.staff-mode .sheet .primary-btn.small { min-height: 40px; }
body.staff-mode .sheet .primary-btn.danger { border-radius: 999px; }
body.staff-mode .sheet-actions { background: linear-gradient(transparent, var(--cs-sheet) 34%); padding-top: 18px; }

/* Lists inside the panels: soft cards that lift on hover */
body.staff-mode .sheet .menu-item,
body.staff-mode .sheet .cust-row,
body.staff-mode .sheet .svc-row {
  border-radius: 16px;
  transition: transform 240ms var(--cs-pop), box-shadow 200ms ease, background-color 160ms ease;
}
body.staff-mode .sheet .menu-item { min-height: 56px; border-color: color-mix(in srgb, var(--cs-rose) 24%, var(--line)); background: var(--cs-glass-strong); }
body.staff-mode .sheet .menu-item:hover,
body.staff-mode .sheet .cust-row:hover,
body.staff-mode .sheet .svc-row:hover {
  transform: translateX(3px);
  box-shadow: 0 10px 22px -14px rgba(20, 95, 105, 0.6);
}
body.staff-mode .sheet .cust-row { min-height: 54px; }
body.staff-mode .sheet .cust-av {
  background: linear-gradient(140deg, #d5eff2, #a6dbe1); color: #0c4a54;
  box-shadow: 0 0 0 2px #fff, 0 6px 14px -6px rgba(40, 160, 175, 0.7);
}
body.staff-mode .sheet .svc-group { border-radius: 22px; box-shadow: 0 14px 30px -22px rgba(20, 95, 105, 0.55); }
body.staff-mode .sheet .seg { background: color-mix(in srgb, var(--cs-rose) 14%, var(--surface-2)); padding: 4px; }
body.staff-mode .sheet .seg button { min-height: 38px; }
body.staff-mode .sheet .seg button.is-active { box-shadow: 0 6px 14px -8px rgba(20, 95, 105, 0.7); }
body.staff-mode .sheet .stat::after { animation: none; display: none; }
body.staff-mode .sheet .wl-item { border-top-color: color-mix(in srgb, var(--cs-rose) 22%, var(--line)); }

@media (prefers-reduced-motion: reduce) {
  body.staff-mode .sheet { animation: none; }
  body.staff-mode .srail-btn svg, body.staff-mode .srail-logo, body.staff-mode .sheet-close { transition: none; }
}

/* Photos, initials and the logo are always perfect circles, never squashed */
body.staff-mode .avatar-lg,
body.staff-mode .cust-av,
body.staff-mode .srail-logo,
body.staff-mode .phone-logo,
body.staff-mode [class*="avatar"] {
  flex: none; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
}
body.staff-mode .avatar-lg img,
body.staff-mode [class*="avatar"] img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
body.staff-mode .cal-head .avatar-lg { height: 58px; }

/* Live clock on the "now" line, and a soft light that keeps running along it */
body.staff-mode .now-line { overflow: visible; background-size: 200% 100%; animation: cs-run 3.2s linear infinite; }
@keyframes cs-run { from { background-position: 200% 0; } to { background-position: 0 0; } }
body.staff-mode .cal-grid { position: relative; }
/* A full-width track on the line; calendar-skin.js moves the pill along it */
body.staff-mode .now-chip {
  position: absolute; left: 8px; right: 8px; height: 0; z-index: 3; pointer-events: none;
}
body.staff-mode .now-chip-in {
  position: absolute; left: 0; top: 0; transform: translateY(-50%);
  display: inline-flex; align-items: baseline; gap: 1px;
  padding: 3px 9px 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #2aa3b3, #0e7887 60%, #0a5a66); color: #fff;
  font: 700 .72rem/1.2 var(--sans); letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 6px 14px -6px rgba(14, 120, 135, 0.8), 0 0 0 2px var(--cs-glass-strong);
  will-change: transform;
}
body.staff-mode .now-chip i { font-style: normal; animation: cs-blink 1s steps(1) infinite; }
body.staff-mode .now-chip small { margin-left: 3px; font-size: .6rem; font-weight: 600; opacity: .9; }
body.staff-mode .now-line::before { display: none; }
@keyframes cs-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { body.staff-mode .now-line, body.staff-mode .now-chip, body.staff-mode .now-chip-in, body.staff-mode .now-chip i { animation: none; } }

/* phone, several team members: the header row is tall enough for the photo ring, name and hours,
   so the top of each circle is never cut off */
@media (max-width: 767px) {
  body.staff-mode .cal:not(.single) { --head-h: 140px; }
  body.staff-mode .cal:not(.single) .cal-grid .cal-head { padding-top: 14px; justify-content: flex-start; }
}
