/* ============================================================
   hr.css — /back-office/hr, "HR & Team" (.hr-*).
   Built on the comms-page foundation: global house classes from
   styles.css (wrap, section-pad, h2, lead, eyebrow, ios, btn…),
   sand-blue tokens inherited from body.theme-sand, one soft-
   elevated stage per section, de-boxed proof lists with gradient
   dot markers. Teal (--mint) appears only as tiny on-shift/live
   dots. Animation drivers: /marketing/back-office/hr.js.
   ============================================================ */

.hr {
  --hr-blue: var(--indigo, #5a82c2);
  --hr-deep: #3d63a4;
  --hr-wash: color-mix(in srgb, #5a82c2 8%, #fff);
  --hr-on: var(--mint, #19b886);
  position: relative;
  isolation: isolate;
}

/* ── shared: two-column section grid (copy | stage) ── */
.hr .hr-grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  gap: clamp(34px, 5.5vw, 84px);
  align-items: center;
}
.hr .hr-grid--flip {
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
}
.hr .hr-grid--flip .hr-copy { order: 2; }
.hr .hr-grid--flip .hr-stagecol { order: 1; }

.hr .hr-copy .eyebrow { color: var(--hr-deep); }
.hr .hr-copy .h2 { margin: 14px 0 12px; }
.hr .hr-copy .lead { max-width: 46ch; margin: 0; }

/* ── shared: de-boxed proof points with gradient dot markers ── */
.hr .hr-points {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 1.8vw, 20px);
}
.hr .hr-points li {
  position: relative;
  padding-left: 24px;
}
.hr .hr-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hr-blue), var(--hr-deep));
}
.hr .hr-points b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}
.hr .hr-points span {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-60);
  max-width: 46ch;
}

/* ── shared: stage column + ambient glow ── */
.hr .hr-stagecol {
  position: relative;
  min-width: 0;
}
.hr .hr-stagecol::before {
  content: "";
  position: absolute;
  inset: -8% -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 50% at 68% 32%, color-mix(in srgb, var(--hr-blue) 13%, transparent), transparent 72%),
    radial-gradient(48% 44% at 18% 82%, var(--periwinkle), transparent 70%);
}
.hr .hr-stagecol > figure {
  position: relative;
  z-index: 1;
  margin: 0;
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  padding: clamp(18px, 2vw, 26px);
}

/* ── shared: stage head bar ── */
.hr .hr-stagehead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* ── shared: live pill (teal dot = the only teal on the page) ── */
.hr .hr-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--hr-deep);
  background: var(--hr-wash);
  border: 1px solid color-mix(in srgb, var(--hr-blue) 24%, #fff);
  border-radius: var(--r-pill);
  padding: 5px 11px;
}
.hr .hr-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hr-on);
  animation: hr-blink 1.8s ease-in-out infinite;
}
@keyframes hr-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ── shared: avatar disc ── */
.hr .hr-ava {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hr-blue), var(--hr-deep));
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.hr .hr-ava--open {
  background: #fff;
  color: var(--hr-deep);
  border: 1.5px dashed color-mix(in srgb, var(--hr-blue) 45%, #fff);
  font-size: 16px;
}

/* ============================================================
   HERO — "the team floor": centered copy over the wallboard
   ============================================================ */
.hr .hr-hero {
  position: relative;
  padding-top: clamp(40px, 5.5vw, 84px);
  padding-bottom: clamp(56px, 7vw, 104px);
  overflow: hidden;
  background: linear-gradient(180deg, var(--paper), #fff 46%);
}
.hr .hr-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 340px at 78% -6%, var(--periwinkle), transparent 62%),
    radial-gradient(560px 320px at 8% 30%, color-mix(in srgb, var(--hr-blue) 9%, transparent), transparent 66%);
}
.hr .hr-hero .wrap { position: relative; }

.hr .hr-hero-copy {
  max-width: 62ch;
  margin: 0 auto clamp(34px, 4.5vw, 56px);
  text-align: center;
}
.hr .hr-hero-copy .eyebrow { color: var(--hr-deep); }
.hr .hr-hero-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 16px 0 18px;
  color: var(--ink);
}
.hr .hr-hero-title em {
  font-style: normal;
  color: var(--hr-deep);
}
.hr .hr-hero-sub {
  max-width: 46ch;
  margin: 0 auto;
}
.hr .hr-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* the floor board — full width under the copy */
.hr .hr-floor-col {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.hr .hr-floor-col::before {
  content: "";
  position: absolute;
  inset: -6% -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 55% at 76% 18%, color-mix(in srgb, var(--hr-blue) 14%, transparent), transparent 70%),
    radial-gradient(42% 46% at 12% 90%, var(--periwinkle), transparent 68%);
}
.hr .hr-floor {
  position: relative;
  z-index: 1;
  margin: 0;
  background: linear-gradient(180deg, #fff, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  padding: clamp(16px, 2vw, 24px);
}
.hr .hr-floor-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 4px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.hr .hr-floor-clinic {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hr .hr-floor-clock {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-40);
}

/* person rows */
.hr .hr-floor-rows {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.hr .hr-person {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line-2);
}
.hr .hr-person:last-child { border-bottom: none; }
.hr .hr-person-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 148px;
}
.hr .hr-person-main b {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hr .hr-person-main i {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-40);
}
.hr .hr-person-status {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-60);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.hr .hr-person-status.is-out {
  opacity: 0;
  transform: translateY(5px);
}

/* status chips — tiny teal dot marks "on"/live states only */
.hr .hr-person-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-60);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  white-space: nowrap;
}
.hr .hr-person-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-40);
}
.hr .hr-person-chip.is-patient i,
.hr .hr-person-chip.is-desk i {
  background: var(--hr-on);
  animation: hr-blink 2s ease-in-out infinite;
}
.hr .hr-person-chip.is-prep i { background: var(--hr-blue); }

/* the open-shift row: phase-driven */
.hr .hr-person--open {
  margin-top: 4px;
  border-top: 1px dashed color-mix(in srgb, var(--hr-blue) 30%, #fff);
  border-bottom: none;
  padding-top: 14px;
}
.hr .hr-person--open .hr-person-status {
  color: var(--hr-deep);
  font-weight: 500;
}
.hr .hr-person-chip.is-open {
  color: var(--hr-deep);
  background: var(--hr-wash);
  border-color: color-mix(in srgb, var(--hr-blue) 26%, #fff);
}
.hr .hr-person-chip.is-open i {
  background: var(--hr-on);
  animation: hr-blink 2s ease-in-out infinite;
}
.hr .hr-person--open[data-phase="open"] .hr-person-chip.is-open i,
.hr .hr-person--open[data-phase="offer"] .hr-person-chip.is-open i {
  background: var(--amber-2, #6f93cc);
}
.hr .hr-person--open[data-phase="offer"] .hr-ava--open {
  animation: hr-cast 1.4s ease-in-out infinite;
}
@keyframes hr-cast {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hr-blue) 35%, transparent); }
  55%      { box-shadow: 0 0 0 9px transparent; }
}

/* board foot tallies */
.hr .hr-floor-foot {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-40);
}
.hr .hr-floor-foot b {
  color: var(--ink);
  font-weight: 600;
  margin-left: 4px;
}

/* event badge overlapping the board edge */
.hr .hr-floor-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -17px 0 0 clamp(16px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 16px 9px 13px;
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  color: var(--ink-60);
}
.hr .hr-floor-badge-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hr-blue);
}
.hr .hr-floor-badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--hr-blue);
  animation: hr-ping 1.9s ease-out infinite;
}
@keyframes hr-ping {
  0%        { transform: scale(0.45); opacity: 0.7; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}
.hr .hr-floor-badge-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-deep);
}
.hr .hr-floor-badge-text b { font-weight: 600; color: var(--ink); }

/* ============================================================
   WEEK — the shift board that fills its own gaps (.hr-week)
   ============================================================ */
.hr .hr-week {
  background: linear-gradient(180deg, #fff, var(--paper) 60%, #fff);
}
.hr .hr-board-chip {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--hr-deep);
  background: var(--hr-wash);
  border: 1px solid color-mix(in srgb, var(--hr-blue) 24%, #fff);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hr .hr-board-chip.is-out {
  opacity: 0;
  transform: translateY(4px);
}

.hr .hr-board-grid {
  display: grid;
  grid-template-columns: 74px repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}
.hr .hr-board-row { display: contents; }
.hr .hr-board-corner { min-height: 1px; }
.hr .hr-board-day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-40);
  text-align: center;
  padding-bottom: 2px;
}
.hr .hr-board-role {
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-60);
}

/* cells */
.hr .hr-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 46px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--hr-wash);
  border: 1px solid color-mix(in srgb, var(--hr-blue) 16%, #fff);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.hr .hr-cell b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr .hr-cell i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-40);
}
.hr .hr-cell--off {
  background: repeating-linear-gradient(45deg, #f4f5fa, #f4f5fa 5px, #eef0f7 5px, #eef0f7 10px);
  border-color: var(--line);
  align-items: center;
}
.hr .hr-cell-off {
  font-style: normal;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-40);
}
/* the story cell (Wed hygiene) — filled at rest, reopened by JS */
.hr .hr-cell--gap {
  border-color: color-mix(in srgb, var(--hr-on) 38%, #fff);
  background: color-mix(in srgb, var(--hr-on) 7%, #fff);
}
.hr .hr-cell.is-open {
  background: #fff;
  border: 1.5px dashed color-mix(in srgb, var(--hr-blue) 45%, #fff);
}
.hr .hr-cell.is-open b {
  color: var(--hr-deep);
  font-weight: 500;
}
.hr .hr-cell.is-cast {
  animation: hr-cell-cast 1.1s ease-in-out infinite;
}
@keyframes hr-cell-cast {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hr-blue) 30%, transparent); }
  55%      { box-shadow: 0 0 0 7px transparent; }
}
.hr .hr-cell.is-pop {
  animation: hr-cell-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes hr-cell-pop {
  0%   { transform: scale(0.86); }
  60%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.hr .hr-cell.is-hot {
  border-color: color-mix(in srgb, var(--hr-blue) 55%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hr-blue) 14%, transparent);
}

.hr .hr-board-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-40);
}
.hr .hr-board-foot span {
  transition: opacity 0.25s ease;
}
.hr .hr-board-foot span.is-out { opacity: 0; }

/* ============================================================
   PAYROLL — the payslip that assembles itself (.hr-pay)
   ============================================================ */
.hr .hr-pay {
  background: linear-gradient(180deg, #fff, var(--paper) 55%, #fff);
}
.hr .hr-slip { overflow: hidden; }
.hr .hr-ava--slip { width: 34px; height: 34px; font-size: 12px; }
.hr .hr-slip-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hr .hr-slip-who b {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hr .hr-slip-who i {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-40);
}
.hr .hr-slip-status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--hr-deep);
  background: var(--hr-wash);
  border: 1px solid color-mix(in srgb, var(--hr-blue) 24%, #fff);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.hr .hr-slip-status.is-out { opacity: 0; }

/* phases */
.hr .hr-slip-phase { margin-top: 16px; }
.hr .hr-phase-label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 8px;
}
/* JS mode: phases hidden until played in */
.hr .hr-slip--js .hr-slip-phase,
.hr .hr-slip--js .hr-slip-net {
  display: none;
}
.hr .hr-slip--js .hr-slip-phase.is-on { display: block; }
.hr .hr-slip--js .hr-slip-net.is-on { display: flex; }
.hr .hr-slip--js .hr-slip-phase.is-on,
.hr .hr-slip--js .hr-slip-net.is-on {
  animation: hr-rise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes hr-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* punches */
.hr .hr-punches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.hr .hr-punches li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-60);
  border-bottom: 1px dotted var(--line);
  padding-bottom: 6px;
}
.hr .hr-punches li b {
  font-weight: 600;
  color: var(--ink);
  font-size: 12.5px;
  min-width: 34px;
}
.hr .hr-punches li span { font-size: 12.5px; letter-spacing: 0.01em; }
.hr .hr-punches li i {
  font-style: normal;
  margin-left: auto;
  font-size: 12px;
  color: var(--hr-deep);
  font-weight: 500;
}
.hr .hr-punch-more {
  border-bottom: none !important;
  color: var(--ink-40) !important;
  font-size: 11.5px !important;
}
/* JS: punch rows stagger in with the phase */
.hr .hr-slip--js .hr-slip-phase.is-on [data-hr-punch],
.hr .hr-slip--js .hr-slip-phase.is-on [data-hr-line] {
  animation: hr-rise 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 0.14s);
}

/* timesheet chip */
.hr .hr-sheet-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-60);
  background: #fff;
  border: 1px dashed color-mix(in srgb, var(--hr-blue) 38%, #fff);
  border-radius: var(--r-mid);
  padding: 10px 14px;
}
.hr .hr-sheet-ok { color: var(--hr-deep); font-weight: 600; }

/* earnings lines */
.hr .hr-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.hr .hr-lines li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
}
.hr .hr-lines li b {
  font-weight: 500;
  color: var(--ink);
  font-size: 13px;
  flex: none;
}
.hr .hr-lines li span {
  color: var(--ink-40);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr .hr-lines li i {
  font-style: normal;
  margin-left: auto;
  color: var(--ink-70);
  font-size: 12.5px;
  flex: none;
}

/* net pay */
.hr .hr-slip-net {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-mid);
  background: linear-gradient(135deg, var(--hr-deep), var(--hr-blue));
  color: #fff;
}
.hr .hr-slip-net span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hr .hr-slip-net b {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* delivery badge overlapping the slip edge */
.hr .hr-slip-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -17px 0 0 clamp(16px, 2.4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 16px 9px 13px;
  box-shadow: var(--shadow-2);
  font-size: 12.5px;
  color: var(--ink-60);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hr .hr-slip-badge.is-off {
  opacity: 0;
  transform: translateY(6px);
}
.hr .hr-slip-badge-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hr-blue);
}
.hr .hr-slip-badge-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--hr-blue);
  animation: hr-ping 1.9s ease-out infinite;
}
.hr .hr-slip-badge-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hr-deep);
}
.hr .hr-slip-badge-text b { font-weight: 600; color: var(--ink); }

/* ============================================================
   TEAM CHAT — the staff channel (.hr-chat)
   ============================================================ */
.hr .hr-chat {
  background: linear-gradient(180deg, var(--paper), #fff 34%);
}
.hr .hr-chan { overflow: hidden; }
.hr .hr-chan-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hr .hr-chan-sub {
  font-size: 12px;
  color: var(--ink-40);
}
.hr .hr-chan .hr-live { margin-left: auto; }

.hr .hr-chat-lines {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
/* JS mode: fixed-height, bottom-anchored viewport — no page jump */
.hr .hr-chan--js .hr-chat-lines {
  height: clamp(300px, 24vw, 360px);
  overflow: hidden;
  justify-content: flex-end;
}

.hr .hr-chat-line {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 86%;
}
.hr .hr-chat-line--them { align-self: flex-start; align-items: flex-start; }
.hr .hr-chat-line--us   { align-self: flex-end;   align-items: flex-end; }
.hr .hr-chat-line--chip { align-self: center;     align-items: center; max-width: 100%; }

.hr .hr-chat-who {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding: 0 5px;
}
.hr .hr-chat-bubble {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-70);
  letter-spacing: -0.005em;
}
.hr .hr-chat-line--them .hr-chat-bubble {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.hr .hr-chat-line--us .hr-chat-bubble {
  background: var(--periwinkle);
  border: 1px solid color-mix(in srgb, var(--hr-blue) 12%, var(--periwinkle));
  border-bottom-right-radius: 5px;
}

/* voice-note bubble */
.hr .hr-chat-bubble--voice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hr-wash);
  border: 1px solid color-mix(in srgb, var(--hr-blue) 20%, #fff);
}
.hr .hr-chat-wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 16px;
}
.hr .hr-chat-wave i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--hr-blue);
  opacity: 0.75;
  height: 14px;
  transform: scaleY(0.3);
  transform-origin: center;
}
.hr .hr-chat-wave i:nth-child(odd)  { transform: scaleY(0.55); }
.hr .hr-chat-wave i:nth-child(3n)   { transform: scaleY(0.85); }
.hr .hr-chat-wave.is-playing i {
  animation: hr-wave 0.55s ease-in-out infinite;
}
.hr .hr-chat-wave.is-playing i:nth-child(2) { animation-delay: 0.08s; }
.hr .hr-chat-wave.is-playing i:nth-child(3) { animation-delay: 0.16s; }
.hr .hr-chat-wave.is-playing i:nth-child(4) { animation-delay: 0.24s; }
.hr .hr-chat-wave.is-playing i:nth-child(5) { animation-delay: 0.32s; }
.hr .hr-chat-wave.is-playing i:nth-child(6) { animation-delay: 0.4s; }
.hr .hr-chat-wave.is-playing i:nth-child(7) { animation-delay: 0.48s; }
.hr .hr-chat-wave.is-playing i:nth-child(8) { animation-delay: 0.56s; }
.hr .hr-chat-wave.is-playing i:nth-child(9) { animation-delay: 0.64s; }
@keyframes hr-wave {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}
.hr .hr-chat-dur {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hr-deep);
}
.hr .hr-chat-line--voice .hr-chat-who { color: var(--hr-deep); }

/* system chips */
.hr .hr-chat-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-60);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr .hr-chat-line--chip.is-ping .hr-chat-chip {
  color: var(--hr-deep);
  border-color: color-mix(in srgb, var(--hr-blue) 40%, #fff);
  background: var(--hr-wash);
}
.hr .hr-chat-line--chip.is-task .hr-chat-chip {
  color: var(--hr-deep);
  border-style: solid;
  border-color: color-mix(in srgb, var(--hr-blue) 30%, #fff);
  background: linear-gradient(135deg, var(--hr-wash), #fff);
  font-weight: 600;
}

/* JS reveal: lines hidden until played in */
.hr .hr-chan--js .hr-chat-line { display: none; }
.hr .hr-chan--js .hr-chat-line.is-on {
  display: flex;
  animation: hr-line-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes hr-line-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* typing caret */
.hr .hr-chat-msg.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--hr-blue);
  animation: hr-caret 0.8s steps(1) infinite;
}
@keyframes hr-caret {
  50% { opacity: 0; }
}

/* ============================================================
   ONBOARDING — checklist + credential watch (.hr-onb)
   ============================================================ */
.hr .hr-onb {
  background: linear-gradient(180deg, #fff, var(--paper) 60%, #fff);
}
.hr .hr-onb-stage { overflow: hidden; }
.hr .hr-ava--onb { width: 34px; height: 34px; font-size: 12px; }
.hr .hr-onb-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hr .hr-onb-who b {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hr .hr-onb-who i {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-40);
}
.hr .hr-onb-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--hr-deep);
  background: var(--hr-wash);
  border: 1px solid color-mix(in srgb, var(--hr-blue) 24%, #fff);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  white-space: nowrap;
}

/* day-one checklist */
.hr .hr-checks {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.hr .hr-check {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
}
.hr .hr-check-box {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.hr .hr-check b {
  font-weight: 500;
  color: var(--ink-60);
  letter-spacing: -0.005em;
  transition: color 0.25s;
}
.hr .hr-check i {
  font-style: normal;
  margin-left: auto;
  font-size: 10.5px;
  color: var(--ink-40);
  opacity: 0;
  transition: opacity 0.3s;
}
.hr .hr-check.is-done .hr-check-box {
  background: linear-gradient(135deg, var(--hr-blue), var(--hr-deep));
  border-color: transparent;
  color: #fff;
}
.hr .hr-check.is-done b { color: var(--ink); }
.hr .hr-check.is-done i { opacity: 1; }
.hr .hr-check.is-pop .hr-check-box {
  animation: hr-cell-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

/* credential watch */
.hr .hr-cred-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.hr .hr-cred-title {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.hr .hr-cred-sub {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-40);
}
.hr .hr-creds {
  list-style: none;
  margin: 11px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.hr .hr-cred {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--r-mid);
  background: #fff;
  border: 1px solid var(--line);
}
.hr .hr-cred-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hr-on);
}
.hr .hr-cred[data-tone="warn"] .hr-cred-dot {
  background: var(--amber-2, #6f93cc);
  animation: hr-blink 1.6s ease-in-out infinite;
}
.hr .hr-cred-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hr .hr-cred-main b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hr .hr-cred-main i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--ink-40);
}
.hr .hr-cred-chip {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-60);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  white-space: nowrap;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
}
.hr .hr-cred-chip.is-sent {
  color: var(--hr-deep);
  background: var(--hr-wash);
  border-color: color-mix(in srgb, var(--hr-blue) 30%, #fff);
  animation: hr-cell-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

/* ============================================================
   CTA — tight closing band (.hr-cta)
   ============================================================ */
.hr .hr-cta { padding-top: 0; }
.hr .hr-cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(620px 300px at 82% -20%, color-mix(in srgb, var(--hr-blue) 38%, transparent), transparent 62%),
    linear-gradient(180deg, var(--navy, #121826), #0c111d);
  color: #fff;
  text-align: center;
  padding: clamp(44px, 6vw, 78px) clamp(24px, 4vw, 60px);
}
.hr .hr-cta-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-300, #a8c1e8);
  margin-bottom: 16px;
}
.hr .hr-cta-band .h2 {
  color: #fff;
  margin: 0 0 14px;
}
.hr .hr-cta-sub {
  color: #b6c2dc;
  font-size: 15.5px;
  max-width: 44ch;
  margin: 0 auto 28px;
}
.hr .hr-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 960px) {
  .hr .hr-grid,
  .hr .hr-grid--flip {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hr .hr-grid--flip .hr-copy { order: 1; }
  .hr .hr-grid--flip .hr-stagecol { order: 2; }
  .hr .hr-copy .lead,
  .hr .hr-points span { max-width: none; }
  .hr .hr-chan--js .hr-chat-lines { height: 330px; }
}
@media (max-width: 700px) {
  .hr .hr-board-grid {
    grid-template-columns: 58px repeat(5, minmax(0, 1fr));
    gap: 5px;
  }
  .hr .hr-cell { padding: 6px 6px; min-height: 40px; }
  .hr .hr-cell i { display: none; }
  .hr .hr-person-status { display: none; }
  .hr .hr-person-main { flex: 1; }
}
@media (max-width: 560px) {
  .hr .hr-floor-clinic { display: none; }
  .hr .hr-chat-line { max-width: 94%; }
  .hr .hr-chat-chip { white-space: normal; text-align: center; }
  .hr .hr-floor-badge,
  .hr .hr-slip-badge { margin-left: 10px; }
  .hr .hr-check i { display: none; }
}

/* ────────────────────────────────────────────────────────────
   phone hardening — further tightening below 460px so the
   5-day board and chat bubbles never get cramped/tiny.
   ──────────────────────────────────────────────────────────── */
@media (max-width: 460px) {
  .hr .hr-board-grid { gap: 4px; }
  .hr .hr-cell { padding: 5px 5px; min-height: 38px; }
  .hr .hr-cell b { font-size: 11px; }
  .hr .hr-board-day { font-size: 9px; }
  .hr .hr-board-role { font-size: 11px; }
  .hr .hr-chat-line { max-width: 100%; }
  .hr .hr-person-main { min-width: 0; }
}

/* ============================================================
   reduced motion: everything static, completed states visible
   ============================================================ */
@media (prefers-reduced-motion: reduce), (max-width: 700px) {
  .hr *,
  .hr *::before,
  .hr *::after {
    animation: none !important;
    transition: none !important;
  }
  .hr .hr-chan--js .hr-chat-line { display: flex; }
  .hr .hr-chan--js .hr-chat-lines {
    height: auto;
    overflow: visible;
  }
  .hr .hr-slip--js .hr-slip-phase { display: block; }
  .hr .hr-slip--js .hr-slip-net { display: flex; }
  .hr .hr-person-status.is-out { opacity: 1 !important; transform: none !important; }
  .hr .hr-board-chip.is-out { opacity: 1 !important; transform: none !important; }
  .hr .hr-board-foot span.is-out { opacity: 1 !important; }
  .hr .hr-slip-status.is-out { opacity: 1 !important; }
  .hr .hr-slip-badge.is-off { opacity: 1 !important; transform: none !important; }
}
