/* ---- lock the shell: only the cream page under the header scrolls ---- */
html, body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}
.app {
  overflow: hidden;
  overscroll-behavior: none;
}
.hero--staff,
.hero--inner {
  flex: none;
  z-index: 6;
  touch-action: pan-x;
}
.page.page--staff {
  flex: 1 1 auto;
  min-block-size: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---- header: parent watermark ---- */
.hero--staff.hero--tall::before {
  opacity: .22;
}
.hero--staff {
  overflow: visible;
  z-index: 6;
}
.hero--staff .hero__row,
.hero--staff .featured {
  position: relative;
  z-index: 1;
}
.menu-btn {
  inline-size: 38px;
  block-size: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gold);
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .16);
  flex: none;
}
.menu-btn svg { inline-size: 20px; block-size: 20px; }
.menu-btn:active { transform: scale(.94); }

.hero--staff .featured {
  overflow: visible;
  padding: 14px 14px 20px;
  margin-block-start: 16px;
  margin-block-end: 0;
  z-index: 4;
  align-items: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero--staff .featured > .av {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  z-index: 2;
  inline-size: 62px;
  block-size: 62px;
  border-radius: 20px;
  border: 2px solid rgb(255 255 255 / .7);
  background: #f6f0e4;
  object-fit: cover;
  object-position: center 28%;
  box-shadow: 0 10px 18px -10px rgb(0 0 0 / .4);
}
.hero--staff .featured > img.av {
  object-fit: cover;
  object-position: center 28%;
  background: #f6f0e4;
}
.hero--staff .featured__tags {
  grid-column: 2;
  grid-row: 2;
  margin-block-start: 8px;
  align-items: center;
  min-inline-size: 0;
}
.hero--staff .featured__tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  line-height: 1.25;
  max-inline-size: 100%;
}
.app:has(> .hero--staff.hero--tall .featured) > .page {
  padding-block-start: 18px;
}

/* ---- floating dock footer ---- */
.nav.nav--staff {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  direction: ltr;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-block-size: 0;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
}
.nav--staff .nav__dock {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  padding: 5px;
  border-radius: 28px;
  background: rgb(255 255 255 / .9);
  border: 1px solid rgb(17 44 90 / .08);
  box-shadow:
    0 18px 36px -18px rgb(17 44 90 / .45),
    0 2px 10px rgb(17 44 90 / .08),
    inset 0 1px 0 rgb(255 255 255);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.nav--staff .nav__tab {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 9px 6px 8px;
  border: 0;
  border-radius: 22px;
  background: none;
  font: inherit;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .01em;
  color: var(--ink-3);
  cursor: pointer;
  text-align: center;
  transition: background .22s ease, color .22s ease, transform .18s ease, box-shadow .22s ease;
}
.nav--staff .nav__tab svg {
  inline-size: 20px;
  block-size: 20px;
}
.nav--staff .nav__tab span {
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav--staff .nav__tab:active {
  transform: scale(.96);
}
.nav--staff .nav__tab.is-active {
  color: var(--gold);
  background: linear-gradient(165deg, #1a3a72, var(--navy));
  box-shadow: 0 10px 18px -10px rgb(17 44 90 / .7);
}
.nav--staff .nav__tab.is-active svg {
  color: var(--gold);
}
.page--staff {
  padding-bottom: calc(var(--nav-h) + 8px);
}
.page--staff > * {
  flex-shrink: 0;
}

/* ---- drawer ---- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  visibility: hidden;
}
.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}
.drawer__veil {
  position: absolute;
  inset: 0;
  background: rgb(17 44 90 / .46);
  opacity: 0;
  transition: opacity .32s ease;
}
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(86vw, 320px);
  background: linear-gradient(180deg, #1a3a72 0%, var(--navy) 42%, #0c1d3d 100%);
  color: #fff;
  box-shadow: 18px 0 40px rgb(0 0 0 / .28);
  transform: translateX(-104%);
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
[dir="rtl"] .drawer__panel {
  transform: translateX(104%);
  box-shadow: -18px 0 40px rgb(0 0 0 / .28);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--gold);
  background: rgb(255 255 255 / .1);
  z-index: 2;
}
.drawer__close svg { width: 18px; height: 18px; }
.drawer__who {
  padding: calc(28px + env(safe-area-inset-top)) 22px 18px;
  display: grid;
  justify-items: start;
  gap: 8px;
  background:
    radial-gradient(120px 80px at 90% 0%, rgb(238 212 132 / .22), transparent 70%),
    linear-gradient(180deg, rgb(255 255 255 / .06), transparent);
}
.drawer__who img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background: #f6f0e4;
  box-shadow: 0 0 0 4px rgb(238 212 132 / .2);
}
.drawer__name { font-weight: 800; font-size: 1.05rem; }
.drawer__phone { font-size: .82rem; color: rgb(255 255 255 / .7); }
.drawer__nav {
  overflow: auto;
  min-height: 0;
  padding: 8px 12px 18px;
}
.drawer__label {
  padding: 10px 12px 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
}
.drawer__link,
.drawer__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  color: #fff;
  font-weight: 650;
  font-size: .95rem;
  background: transparent;
  text-align: start;
}
.drawer__link svg,
.drawer__btn svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex: none;
}
.drawer__link:hover,
.drawer__btn:hover,
.drawer__link.is-active {
  background: rgb(255 255 255 / .1);
}
.drawer__link.is-exit { color: #ffb4b4; }
.drawer__link.is-exit svg { color: #ff8a8a; }
.drawer__copy {
  padding: 10px 22px calc(14px + env(safe-area-inset-bottom));
  font-size: .72rem;
  color: rgb(255 255 255 / .45);
}
.drawer.is-open .drawer__link,
.drawer.is-open .drawer__btn {
  animation: staff-in .42s ease both;
}
.drawer.is-open .drawer__link:nth-child(2) { animation-delay: .04s; }
.drawer.is-open .drawer__link:nth-child(3) { animation-delay: .07s; }
.drawer.is-open .drawer__link:nth-child(4) { animation-delay: .1s; }
.drawer.is-open .drawer__link:nth-child(5) { animation-delay: .13s; }
.drawer.is-open .drawer__link:nth-child(6) { animation-delay: .16s; }
.drawer.is-open .drawer__link:nth-child(7) { animation-delay: .19s; }
.drawer.is-open .drawer__link:nth-child(8) { animation-delay: .22s; }
.drawer.is-open .drawer__link:nth-child(9) { animation-delay: .25s; }

/* ---- page motion ---- */
@keyframes staff-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero--staff { animation: staff-in .45s ease both; }
.page .sec { animation: staff-in .5s ease both; }
.page .tiles .tile,
.page .settings__item {
  animation: staff-in .55s ease both;
}
.page .tiles .tile:nth-child(1), .page .settings__item:nth-child(1) { animation-delay: .03s; }
.page .tiles .tile:nth-child(2), .page .settings__item:nth-child(2) { animation-delay: .07s; }
.page .tiles .tile:nth-child(3), .page .settings__item:nth-child(3) { animation-delay: .11s; }
.page .tiles .tile:nth-child(4), .page .settings__item:nth-child(4) { animation-delay: .15s; }
.page .tiles .tile:nth-child(5), .page .settings__item:nth-child(5) { animation-delay: .19s; }
.page .tiles .tile:nth-child(6), .page .settings__item:nth-child(6) { animation-delay: .23s; }
.page .tiles .tile:nth-child(7), .page .settings__item:nth-child(7) { animation-delay: .27s; }
.page .tiles .tile:nth-child(8), .page .settings__item:nth-child(8) { animation-delay: .31s; }
.page .tiles .tile,
.page .settings__item {
  transition: transform .2s ease, box-shadow .2s ease;
}
.page .tiles .tile:active,
.page .settings__item:active {
  transform: scale(.97);
}

/* ---- language window ---- */
.langsheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  pointer-events: none;
  visibility: hidden;
}
.langsheet.is-open {
  pointer-events: auto;
  visibility: visible;
}
.langsheet__veil {
  position: absolute;
  inset: 0;
  background: rgb(17 44 90 / .52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s ease;
}
.langsheet.is-open .langsheet__veil { opacity: 1; }
.langsheet__card {
  position: relative;
  z-index: 1;
  width: min(100%, 340px);
  padding: 22px 18px 16px;
  border-radius: 28px;
  background: color-mix(in oklab, var(--cream) 88%, white);
  border: 1px solid rgb(238 212 132 / .55);
  box-shadow: 0 28px 60px -24px rgb(17 44 90 / .55);
  transform: translateY(18px) scale(.96);
  opacity: 0;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .28s ease;
}
.langsheet.is-open .langsheet__card {
  transform: none;
  opacity: 1;
}
.langsheet__x {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--navy);
  background: rgb(17 44 90 / .06);
}
.langsheet__x svg { width: 16px; height: 16px; }
.langsheet__kicker {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: .55;
}
.langsheet__card h2 {
  margin: 6px 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}
.langsheet__hint {
  margin: 0 0 16px;
  font-size: .88rem;
  color: var(--ink-3);
}
.langsheet__opts { display: grid; gap: 10px; }
.langsheet__opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgb(17 44 90 / .08);
  box-shadow: 0 8px 18px -14px rgb(17 44 90 / .4);
  color: var(--navy);
}
.langsheet__opt.is-on {
  border-color: var(--gold);
  background: linear-gradient(160deg, #fff, #fbf4e3);
  box-shadow: 0 0 0 3px rgb(238 212 132 / .28);
}
.langsheet__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.05rem;
}
.langsheet__copy { display: grid; gap: 2px; }
.langsheet__copy strong { font-size: 1.02rem; }
.langsheet__copy small { color: var(--ink-3); font-size: .78rem; }
.langsheet__tick {
  opacity: 0;
  color: var(--navy);
  font-weight: 800;
}
.langsheet__opt.is-on .langsheet__tick { opacity: 1; }

/* ---- inner screens: navy hero with back + title + drawer ---- */
.hero--inner {
  overflow: hidden;
  padding-block-end: 18px;
}
.hero--inner .hero__title {
  flex: 1;
  min-inline-size: 0;
}
.hero--inner .back {
  color: var(--gold);
}
.hero--inner .back:active {
  transform: scale(.94);
}
.app:has(> .hero--inner) > .page.page--staff {
  padding-block-start: 16px;
}

.row__acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.mini {
  inline-size: 36px;
  block-size: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
}
.mini svg { inline-size: 18px; block-size: 18px; }
.mini--go { color: var(--navy); background: rgb(17 44 90 / .08); }
.mini--ok { color: var(--green); background: var(--green-soft); }
.mini--danger { color: var(--coral); background: var(--coral-soft); }
.row .row__body { min-inline-size: 0; }
.tool-note {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.tool-note--ok { background: var(--green-soft); color: var(--green); }
.tool-empty {
  padding: 18px 14px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-1);
  color: var(--ink-3);
  text-align: center;
  font-weight: 650;
}
.tool-item { display: grid; gap: 8px; }
.tool-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tool-item__text {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
}
.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  font-weight: 650;
}
.radio input { accent-color: var(--navy); }
.tool-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tool-btns .btn { inline-size: 100%; }
fieldset.field { border: 0; }

/* ---- homework ---- */
.hw-sub {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1.45;
}
.hw-sub strong { color: var(--navy); font-weight: 800; }
.hw-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.hw-act {
  inline-size: 38px;
  block-size: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: var(--navy);
  box-shadow: 0 8px 14px -10px rgb(17 44 90 / .7);
}
.hw-act svg { inline-size: 18px; block-size: 18px; }
.hw-act--quiet {
  color: var(--navy);
  background: var(--navy-88);
  box-shadow: none;
}
.hw-act--danger {
  color: #fff;
  background: var(--coral);
}
.hw-act.is-on {
  color: var(--navy);
  background: var(--gold);
}
.hw-act:active { transform: scale(.94); }
.row.row--hw { cursor: default; }
.row.row--hw .row__body { min-inline-size: 0; }
.hw-who {
  margin: 4px 0 0;
  color: var(--coral);
  font-size: var(--fs-xs);
  font-weight: 650;
}
.hw-choices { display: grid; gap: 8px; margin-block-end: 14px; }
.hw-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgb(17 44 90 / .1);
  font-weight: 700;
  color: var(--navy);
}
.hw-choice input { accent-color: var(--navy); inline-size: 18px; block-size: 18px; }
.hw-form { display: grid; gap: 14px; }
.hw-file {
  display: grid;
  gap: 6px;
}
.hw-file input[type="file"] {
  inline-size: 100%;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  border: 1px dashed rgb(17 44 90 / .22);
}
.hw-toast {
  position: fixed;
  inset-inline: 18px;
  inset-block-end: calc(var(--nav-h) + 18px);
  z-index: 30;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.45;
  box-shadow: 0 16px 32px -16px rgb(17 44 90 / .7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease;
}
.hw-toast.is-on {
  opacity: 1;
  transform: none;
}
.hw-del {
  display: none;
  padding: 12px 14px 4px;
}
.hw-del.is-open { display: grid; gap: 10px; }
.hw-del p { font-size: var(--fs-sm); color: var(--ink-2); }
.hw-del__row { display: flex; gap: 8px; }
.hw-del__row .btn { flex: 1; inline-size: auto; }

.page .tiles .tile:nth-child(9) { animation-delay: .35s; }
.page .tiles .tile:nth-child(10) { animation-delay: .39s; }
.page .tiles .tile:nth-child(11) { animation-delay: .43s; }

.svc-note {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-block-end: 12px;
}
.svc-alert {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-block-end: 12px;
}
.svc-alert--ok {
  color: var(--green);
  background: var(--green-soft);
}
.svc-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-3);
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.svc-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  font-weight: 650;
}
.svc-check input {
  inline-size: 22px;
  block-size: 22px;
  accent-color: var(--navy);
  flex: none;
}
.svc-checks { display: grid; gap: 9px; }
.svc-facts { display: grid; gap: 9px; }
.svc-fact {
  padding: 13px 14px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.svc-fact b {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  font-weight: 800;
  margin-block-end: 4px;
}
.svc-fact span { font-weight: 700; line-height: 1.45; }
.radios { display: grid; gap: 8px; }
.radios .radio {
  gap: 10px;
  padding: 13px 14px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.radios .radio input { inline-size: 18px; block-size: 18px; }
.svc-sub { margin-block-start: 18px; }
.svc-actions { display: grid; gap: 10px; margin-block-start: 14px; }
.btn--danger { color: #fff; background: var(--coral); }
.row__side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.row-btn {
  inline-size: 36px;
  block-size: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-soft);
}
.row-btn svg { inline-size: 18px; block-size: 18px; }
.row-btn--danger { color: var(--coral); background: var(--coral-soft); }
.page .rows + .svc-actions,
.page .svc-checks + .svc-actions { margin-block-start: 16px; }
.page form.stack { display: grid; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .langsheet__card, .langsheet__veil { transition: none; }
}

/* ---- student tool ---- */
.stu-photo {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-block-end: 14px;
}
.stu-photo img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 28px;
  border: 3px solid var(--gold);
  background: #f6f0e4;
  box-shadow: 0 12px 22px -14px rgb(17 44 90 / .45);
}
.stu-photo__name {
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}
.stu-photo__meta {
  font-size: .86rem;
  color: var(--ink-3);
  text-align: center;
  margin-block-start: -6px;
}
.facts {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  overflow: hidden;
  margin-block-end: 12px;
  flex-shrink: 0;
}
.facts__h {
  padding: 12px 16px 10px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a3d2a;
  background: linear-gradient(180deg, #fbf4e3, #f7eed6);
}
.facts__row {
  display: grid;
  gap: 3px;
  padding: 11px 16px;
  border-block-start: 1px solid rgb(17 44 90 / .07);
}
.facts__k {
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-3);
}
.facts__v {
  font-weight: 650;
  color: var(--navy);
  line-height: 1.4;
  word-break: break-word;
}
.form-stack {
  display: grid;
  gap: 12px;
  margin-block-end: 16px;
}
.form-stack .btn {
  margin-block-start: 4px;
}
.page .rows + .sec,
.page .form-stack + .sec {
  margin-block-start: 8px;
}

/* ---- questions + control ---- */
.staff-lede { margin-block-end: 14px; }
.qlist { display: grid; gap: 10px; }
.qcard {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-1);
  color: var(--navy);
}
.qcard__num {
  inline-size: 44px;
  block-size: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 800;
  color: var(--gold);
  background: linear-gradient(165deg, #1a3a72, var(--navy));
}
.qcard__body { display: grid; gap: 4px; min-inline-size: 0; }
.qcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qcard__when { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 650; }
.qcard__meta { font-size: var(--fs-sm); color: var(--ink-2); }
.qcard__go { color: var(--ink-3); font-size: 1.2rem; }
.pick__ico {
  inline-size: 36px;
  block-size: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gold);
  background: var(--navy);
  flex: none;
}
.pick__ico svg { inline-size: 18px; block-size: 18px; }
.page .settings__item.pick { gap: 12px; }
.chip--wait { color: #1a4a9a; background: color-mix(in oklab, #4d7cc8 18%, white); }
.chip--ok { color: var(--green); background: var(--green-soft); }
.kv__hint { color: #1a4a9a; font-size: var(--fs-xs); font-weight: 700; }
.staff-form { margin-block-start: 14px; }
.staff-kid { margin: 0 0 12px; }
.scorelist { display: grid; gap: 10px; }
.scorecard { display: grid; gap: 10px; }
.scorecard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
}
.scorecard__input { text-align: center; font-weight: 800; font-size: 1.1rem; }
.staff-spin {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgb(17 44 90 / .28);
}
.staff-spin::after {
  content: "";
  position: absolute;
  inset-block-start: 42%;
  inset-inline-start: 50%;
  width: 42px;
  height: 42px;
  margin: -21px;
  border-radius: 999px;
  border: 3px solid rgb(255 255 255 / .35);
  border-block-start-color: var(--gold);
  animation: staff-spin .7s linear infinite;
}
@keyframes staff-spin { to { transform: rotate(1turn); } }

/* ---- personal screens ---- */
.page--staff > .btn,
.page--staff > .note,
.page--staff > .empty {
  margin-block-end: 12px;
}
.page--staff > .note + .note { margin-block-start: -4px; }
.page--staff > .card + .staff-table-wrap,
.page--staff > .card + .empty { margin-block-start: 12px; }
.sphoto { display: grid; justify-items: center; }
.sphoto__btn {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.sphoto__btn img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 28px;
  border: 3px solid var(--gold);
  background: #f6f0e4;
  box-shadow: 0 12px 22px -14px rgb(17 44 90 / .45);
}
.sphoto__edit {
  position: absolute;
  inset-inline-end: -4px;
  bottom: -4px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 6px 12px -8px rgb(17 44 90 / .6);
}
.sphoto__edit svg { width: 16px; height: 16px; }
.staff-count {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.staff-count strong { color: #c45a12; font-size: 1.35rem; }
.staff-status {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--accent);
}
.staff-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card .radios { gap: 6px; }
.card .radio {
  box-shadow: none;
  border: 1px solid color-mix(in oklab, var(--navy) 10%, transparent);
}
.staff-table-wrap { overflow-x: auto; padding: 0; }
.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.staff-table th,
.staff-table td {
  padding: 10px 6px;
  text-align: center;
  white-space: nowrap;
}
.staff-table th {
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
}
.staff-table tbody tr:nth-child(even) { background: color-mix(in oklab, var(--navy) 4%, white); }
.staff-table td.is-bad { color: var(--coral); font-weight: 700; }
fieldset.radios {
  border: 0;
  min-inline-size: 0;
}
fieldset.radios legend { margin-block-end: 6px; }

/* ---- GPS check-in ---- */
.checkin-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 340px);
  margin: 0 auto 18px;
  padding: 14px 18px;
  border-radius: 22px;
  color: var(--navy);
  background: linear-gradient(165deg, var(--gold), color-mix(in oklab, var(--gold) 70%, white));
  box-shadow: 0 14px 24px -16px rgb(17 44 90 / .55);
  text-align: start;
}
.checkin-launch__ico {
  inline-size: 44px;
  block-size: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--navy);
  color: var(--gold);
  flex: none;
}
.checkin-launch__ico svg { inline-size: 22px; block-size: 22px; }
.checkin-launch__copy { display: grid; gap: 2px; min-inline-size: 0; }
.checkin-launch__copy strong { font-size: 1.05rem; font-weight: 800; }
.checkin-launch__copy small { font-size: .78rem; font-weight: 650; opacity: .75; }
.checkin-launch:active { transform: scale(.98); }

.punch { display: grid; gap: 12px; }
.punch-card {
  padding: 16px 16px 14px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--sh-1);
}
.punch-kicker {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.punch-loc__state { font-weight: 800; color: var(--navy); margin: 0; font-size: 1.02rem; }
.punch-loc__meta { margin: 6px 0 0; font-size: .86rem; color: var(--ink-3); font-weight: 650; }
.punch-loc__hint { margin: 8px 0 0; font-size: .82rem; font-weight: 650; color: var(--ink-3); line-height: 1.4; }
.punch-loc__enable {
  margin: 12px 0 0;
  inline-size: 100%;
  min-block-size: 48px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
  background: linear-gradient(165deg, var(--gold), color-mix(in oklab, var(--gold) 70%, white));
  cursor: pointer;
}
.punch-loc__enable:active { transform: scale(.98); }
.punch-loc__hint[hidden],
.punch-loc__enable[hidden] { display: none !important; }
.punch-loc.is-on { box-shadow: 0 0 0 2px rgb(17 44 90 / .08), var(--sh-1); }
.punch-loc.is-in { box-shadow: 0 0 0 2px color-mix(in oklab, var(--green) 45%, white), var(--sh-1); }
.punch-loc.is-in .punch-loc__state { color: var(--green); }
.punch-loc.is-out .punch-loc__state,
.punch-loc.is-bad .punch-loc__state { color: var(--coral); }
.punch-today__empty { margin: 0; color: var(--ink-3); font-weight: 650; }
.punch-facts[hidden],
.punch-today__empty[hidden],
.punch-msg[hidden],
.punch-grace[hidden] { display: none !important; }
.punch-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.punch-facts div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--navy) 5%, white);
}
.punch-facts span { font-size: .72rem; font-weight: 800; color: var(--ink-3); }
.punch-facts b { font-size: 1.05rem; color: var(--navy); }
.punch-facts__wide { grid-column: 1 / -1; }
.punch-btn { inline-size: 100%; }
.punch-btn:disabled { opacity: .45; cursor: not-allowed; }
.punch-btn--out {
  color: #fff;
  background: var(--navy);
}
.punch-grace {
  margin: -4px 0 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
}
.punch-msg {
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
  font-size: var(--fs-sm);
  background: var(--gold-soft);
  color: var(--navy);
}
.punch-msg--bad { background: var(--coral-soft); color: var(--coral); }
.punch-msg--wait { background: var(--navy); color: #fff; }

