:root {
  color-scheme: light;
  --paper: #f3f5f3;
  --card: #ffffff;
  --ink: #101a17;
  --ink-2: #3c4744;
  --muted: #6f7a76;
  --line: #dde3df;
  --line-2: #eaeeeb;
  --go: #0b6e62;
  --go-dark: #095c52;
  --go-soft: #e3f0ed;
  --go-line: #b7d8d1;
  --warn: #8b5f12;
  --warn-soft: #f7efdf;
  --warn-line: #e4cfa4;
  --danger: #963833;
  --danger-soft: #f7e9e8;
  --danger-line: #e5c3c0;
  --shadow: 0 12px 35px rgba(16, 26, 23, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--go);
  outline-offset: 2px;
}

a { color: var(--go); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(27px, 4vw, 38px); line-height: 1.12; letter-spacing: -.04em; }
h2 { font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }

.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;
}

.portal-skeleton {
  min-height: 100vh;
  background: var(--paper);
  color: transparent;
}

.skeleton-top {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 245, 243, .95);
}
.skeleton-top-inner { display:flex; width:min(calc(100% - 48px),1080px); min-height:72px; margin:0 auto; align-items:center; gap:18px; }
.skeleton-brand { display:grid; gap:7px; }
.skeleton-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.skeleton-avatar { width:40px; height:40px; border-radius:50%; }
.skeleton-page { width:min(calc(100% - 48px),1080px); margin:0 auto; padding:44px 0 72px; }
.skeleton-hero { display:block; margin-bottom:26px; }
.skeleton-feature { min-height:180px; padding:29px 32px; overflow:hidden; border-color:#101a17; border-radius:18px; background:#101a17; box-shadow:none; }
.skeleton-feature > div { display:grid; width:min(100%,560px); gap:13px; }
.skeleton-grid { display:grid; grid-template-columns:1fr; gap:20px; margin-top:20px; }
.skeleton-surface { border:1px solid var(--line); border-radius:16px; background:var(--card); box-shadow:none; }
.skeleton-panel { position:relative; min-height:178px; overflow:hidden; border-radius:16px; }
.skeleton-schedule { min-height:430px; }
.skeleton-line, .skeleton-avatar, .skeleton-clock, .skeleton-panel::before, .skeleton-panel::after {
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:999px;
  background:#e1e6e3;
}
.skeleton-line { height:12px; }
.skeleton-line-short { width:94px; height:9px; }
.skeleton-line-title { width:210px; height:17px; }
.skeleton-line-kicker { width:126px; height:10px; background:#31564e; }
.skeleton-line-display { width:min(520px,72%); height:41px; }
.skeleton-line-heading { width:min(410px,78%); height:24px; background:#31564e; }
.skeleton-line-copy { width:min(300px,62%); background:#31564e; }
.skeleton-clock { width:190px; height:44px; border-radius:8px; background:#31564e; }
.skeleton-panel::before { content:""; width:180px; height:15px; margin:20px 23px 16px; }
.skeleton-panel::after { content:""; width:calc(100% - 46px); height:92px; margin:0 23px; border-radius:14px; }
.skeleton-schedule::after { height:330px; }
.skeleton-line, .skeleton-avatar, .skeleton-clock,
.skeleton-panel::before, .skeleton-panel::after {
  animation: skeleton-pulse 1.45s cubic-bezier(.4, 0, .2, 1) infinite alternate;
}

@keyframes skeleton-pulse {
  from { opacity: .55; }
  to { opacity: 1; }
}

@media (prefers-color-scheme: dark) {
  .portal-skeleton { background: #0b1110; }
  .skeleton-top { border-color: #2d3b36; background: rgba(11, 17, 16, .96); }
  .skeleton-surface { border-color: #2d3b36; background: #111a17; box-shadow: none; }
  .skeleton-line, .skeleton-avatar, .skeleton-clock, .skeleton-panel::before, .skeleton-panel::after { background: #26322e; }
}

body.design-dark .portal-skeleton { background: #0b1110; }
body.design-dark .skeleton-top { border-color: #2d3b36; background: rgba(11, 17, 16, .96); }
body.design-dark .skeleton-surface { border-color: #2d3b36; background: #111a17; box-shadow: none; }
body.design-dark .skeleton-line,
body.design-dark .skeleton-avatar,
body.design-dark .skeleton-clock,
body.design-dark .skeleton-panel::before,
body.design-dark .skeleton-panel::after { background: #26322e; }

@media (max-width: 660px), (max-device-width: 660px) {
  .skeleton-top, .skeleton-top-inner { min-height:64px; }
  .skeleton-top-inner { width:calc(100% - 24px); }
  .skeleton-brand { gap:5px; }
  .skeleton-line-short { width:78px; height:8px; }
  .skeleton-line-title { width:148px; height:14px; }
  .skeleton-actions { gap:5px; }
  .skeleton-avatar { width:36px; height:36px; }
  .skeleton-page { width:calc(100% - 24px); padding:30px 0 44px; }
  .skeleton-hero { margin-bottom:24px; }
  .skeleton-line-display { width:88%; height:31px; }
  .skeleton-feature { min-height:0; padding:22px 20px 20px; }
  .skeleton-feature > div { width:100%; gap:11px; }
  .skeleton-clock { width:156px; height:40px; }
  .skeleton-line-heading { width:82%; height:20px; }
  .skeleton-line-copy { width:62%; }
  .skeleton-grid { grid-template-columns:1fr; gap:20px; margin-top:20px; }
  .skeleton-panel { min-height:150px; }
  .skeleton-schedule { min-height:390px; }
  .skeleton-panel::before { margin:18px 16px 14px; }
  .skeleton-panel::after { width:calc(100% - 32px); margin:0 16px; }
  .skeleton-schedule::after { height:300px; }
}

.page-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 26px 0 72px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(100%, 500px);
  margin: 5vh auto 0;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.muted { color: var(--muted); }

.form-stack {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.field { display: grid; gap: 7px; }
.field label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 700; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  outline: none;
  background: #fbfcfb;
  color: var(--ink);
}

.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--go);
  box-shadow: 0 0 0 3px rgba(11, 110, 98, .12);
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--go);
  border-radius: 8px;
  padding: 8px 13px;
  background: var(--go);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: background .12s, border-color .12s, transform .08s;
}

.button:hover:not(:disabled) { background: var(--go-dark); border-color: var(--go-dark); }
.button:active:not(:disabled) { transform: translateY(1px); }

.button-secondary {
  border-color: var(--line);
  background: var(--card);
  color: var(--ink-2);
}
.button-secondary:hover:not(:disabled) { border-color: var(--go-line); background: #f7f9f8; color: var(--ink); }

.button-danger { border-color: var(--danger); background: var(--danger); }
.button-danger:hover:not(:disabled) { border-color: #7d2f2b; background: #7d2f2b; }

.button-link {
  min-height: auto;
  padding: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--go);
  font-size: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.button-link:hover:not(:disabled) { background: transparent; color: var(--go-dark); }

.alert {
  margin: 16px 0;
  border: 1px solid var(--danger-line);
  border-radius: 10px;
  padding: 11px 13px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  max-width: min(460px, calc(100vw - 32px));
  transform: translateX(-50%);
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px rgba(16, 26, 23, .3);
  font-size: 13px;
}
.toast.success { background: var(--go); }
.toast.error { background: var(--danger); }

/* Signed-in portal: the same quiet card hierarchy and header treatment as the Firebase portal. */
.page-shell > header.card {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 78px;
  padding: 13px 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}

.page-shell > header.card h1 { margin-bottom: 3px !important; font-size: 21px; }
.page-shell > header.card .muted { margin-bottom: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; }

.page-shell > main.form-stack {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 18px !important;
}

.page-shell > main.form-stack > section.card {
  grid-column: span 12;
  padding: 20px;
}

/* Student dashboard: My Shifts remains compact, and the schedule becomes the main area. */
.page-shell > main.form-stack > section.card:first-child { grid-column: span 4; }
.page-shell > main.form-stack > section.card:nth-child(2) { grid-column: span 8; }

.page-shell > main.form-stack > section.card > h2 { margin-bottom: 6px; }
.page-shell > main.form-stack > section.card > .form-stack > article.card,
.page-shell > main.form-stack > section.card .form-stack > article.card {
  border-radius: 11px;
  box-shadow: none;
  background: #fcfdfc;
}

/* Week controls and daily cards. */
.page-shell > main.form-stack > section.card:nth-child(2) > div:first-child {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}

.page-shell > main.form-stack > section.card:nth-child(2) > .form-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.page-shell > main.form-stack > section.card:nth-child(2) > .form-stack > article.card {
  min-height: 144px;
  padding: 14px !important;
}

.page-shell > main.form-stack > section.card:nth-child(2) > .form-stack > article.card strong {
  font-size: 13px;
}

.page-shell > main.form-stack > section.card:nth-child(2) .form-stack > div {
  gap: 7px;
}

.page-shell > main.form-stack > section.card:nth-child(2) .form-stack > div > div {
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}

.page-shell > main.form-stack > section.card:nth-child(2) .form-stack > div > div:first-child {
  padding-top: 0;
  border-top: 0;
}

/* Account forms and audit entries stay readable rather than becoming deep layers of raised cards. */
.page-shell > main.form-stack article.card .form-stack { margin-top: 12px; }
.page-shell > main.form-stack article.card .field { max-width: 620px; }

@media (max-width: 920px) {
  .page-shell > main.form-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-shell > main.form-stack > section.card,
  .page-shell > main.form-stack > section.card:first-child,
  .page-shell > main.form-stack > section.card:nth-child(2) { grid-column: span 2; }
}

@media (max-width: 660px), (max-device-width: 660px) {
  .page-shell { width: min(100% - 24px, 1180px); padding-top: 12px; padding-bottom: 44px; }
  .auth-card { margin-top: 22px; padding: 22px; }
  .page-shell > header.card { top: 8px; padding: 14px; }
  .page-shell > main.form-stack { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .page-shell > main.form-stack > section.card,
  .page-shell > main.form-stack > section.card:first-child,
  .page-shell > main.form-stack > section.card:nth-child(2) { grid-column: 1; padding: 16px; }
  .page-shell > main.form-stack > section.card:nth-child(2) > .form-stack { grid-template-columns: 1fr; }
  .page-shell > main.form-stack > section.card:nth-child(2) > .form-stack > article.card { min-height: 0; }
  .button { min-height: 44px; padding: 10px 13px; }
  .page-shell > header.card > div:last-child { width: 100%; }
  .page-shell > header.card > div:last-child .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Administration workspace: compact, responsive, directly editable records. */
.header-actions [data-design="admin-home"] { display:none !important; }
.admin-wrap, .admin-section, .admin-section * { min-width:0; box-sizing:border-box; }
.admin-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.administrator-metric > span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.notification-compose-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.notification-urgent-toggle { display:inline-flex !important; align-items:center; flex-direction:row-reverse; gap:8px; margin:0; cursor:pointer; }
.notification-urgent-toggle input { position:absolute; opacity:0; pointer-events:none; }
.notification-urgent-toggle .preference-switch { flex:0 0 auto; }
.notification-sent-history { margin-top:14px; padding-top:13px; border-top:1px solid var(--line); }
.notification-sent-history h3 { margin:0 0 9px; font-size:12px; }
.student-account-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.student-account-toolbar > span { color:var(--muted); font-size:11px; white-space:nowrap; }
.student-search { display:flex; align-items:center; width:min(380px,100%); border:1px solid var(--line); border-radius:11px; padding:0 11px; background:var(--card); }
.student-search .interface-icon { width:18px; height:18px; flex:0 0 auto; }
.student-search input { width:100%; min-height:40px; border:0; padding:8px; outline:0; background:transparent; color:var(--ink); }
.student-card-list, .admin-shift-edit-list { display:grid; gap:8px; }
.student-card-list.forward, .admin-week-label.forward { animation:admin-page-forward 360ms cubic-bezier(.22,1,.36,1); }
.student-card-list.backward, .admin-week-label.backward { animation:admin-page-back 360ms cubic-bezier(.22,1,.36,1); }
@keyframes admin-page-forward { from { opacity:0; transform:translateX(14px); } to { opacity:1; transform:none; } }
@keyframes admin-page-back { from { opacity:0; transform:translateX(-14px); } to { opacity:1; transform:none; } }
.student-edit-card, .admin-shift-edit { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.student-edit-summary, .admin-shift-edit > form > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; cursor:pointer; }
.student-edit-summary > div:first-child, .admin-shift-edit header > div { display:grid; gap:2px; overflow:hidden; }
.student-edit-summary strong, .admin-shift-edit header strong { overflow:hidden; color:var(--ink); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.student-edit-summary span, .admin-shift-edit header span { overflow:hidden; color:var(--muted); font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
.student-card-actions { display:flex; align-items:center; gap:5px; flex:0 0 auto; }
.icon-action { display:grid; width:31px; height:31px; place-items:center; border:1px solid var(--line); border-radius:8px; padding:6px; background:var(--card); color:var(--ink-2); }
.icon-action .interface-icon { width:17px; height:17px; }
.icon-action.save { color:var(--go); }
.icon-action.danger { color:var(--danger); }
.student-edit-fields, .admin-shift-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; max-height:0; overflow:hidden; padding:0 12px; opacity:0; transition:max-height 440ms cubic-bezier(.22,1,.36,1),padding 320ms ease,opacity 220ms ease; }
.student-edit-card.is-open .student-edit-fields, .admin-shift-edit.is-open .admin-shift-fields { max-height:540px; padding:4px 12px 13px; opacity:1; }
.student-edit-fields label, .admin-shift-fields label { display:grid; gap:5px; color:var(--muted); font-size:10px; font-weight:700; }
.student-edit-fields input, .student-edit-fields select, .admin-shift-fields input, .admin-shift-fields select { width:100%; min-height:36px; border:1px solid var(--line); border-radius:8px; padding:7px 8px; background:var(--card); color:var(--ink); font-size:12px; }
.student-active-field { display:flex !important; align-items:center; align-self:end; min-height:36px; flex-direction:row !important; }
.student-active-field input { width:16px; min-height:16px; }
.student-page-nav, .admin-week-nav { display:flex; align-items:center; justify-content:center; gap:9px; margin-top:14px; }
.student-page-nav button, .admin-week-nav button { display:grid; width:34px; height:34px; place-items:center; border:1px solid var(--line); border-radius:9px; padding:0; background:var(--card); color:var(--ink); }
.student-page-nav span { min-width:92px; color:var(--muted); font-size:11px; text-align:center; }
.admin-week-label { display:grid; min-width:150px; text-align:center; }
.admin-week-label strong { font-size:12px; }
.admin-week-label small { color:var(--muted); font-size:10px; }
.admin-shift-edit-list { margin-top:13px; }
.admin-shift-edit > form > header > .icon-action { flex:0 0 auto; }
body.design-dark .student-search, body.design-dark .student-edit-card, body.design-dark .admin-shift-edit, body.design-dark .icon-action, body.design-dark .student-page-nav button, body.design-dark .admin-week-nav button { border-color:#3B4B45; background:#17231F; }
body.design-dark .student-search input, body.design-dark .student-edit-fields input, body.design-dark .student-edit-fields select, body.design-dark .admin-shift-fields input, body.design-dark .admin-shift-fields select { border-color:#3B4B45; background:#111A17; color:#EFF6F3; }

@media(max-width:760px) {
  .admin-metrics { grid-template-columns:1fr; }
  .student-edit-fields, .admin-shift-fields { grid-template-columns:1fr 1fr; }
}
@media(max-width:520px) {
  .admin-wrap { width:100%; overflow-x:hidden; }
  .student-account-toolbar { align-items:stretch; flex-direction:column; }
  .student-search { width:100%; }
  .student-edit-summary, .admin-shift-edit > form > header { align-items:flex-start; }
  .student-edit-summary > div:first-child { padding-top:3px; }
  .student-card-actions { gap:3px; }
  .icon-action { width:28px; height:28px; border-radius:7px; padding:5px; }
  .student-edit-fields, .admin-shift-fields { grid-template-columns:1fr; }
  .student-edit-card.is-open .student-edit-fields, .admin-shift-edit.is-open .admin-shift-fields { max-height:900px; }
  .notification-menu { max-width:calc(100vw - 24px); }
}

/* Board layout restored from the previous portal. */
.top { position: sticky; top: 0; z-index: 30; background: rgba(243,245,243,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1180px; margin: 0 auto; padding: 13px 20px; display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 2px 0 0; font-size: 19px; white-space: nowrap; }
.display { font-weight: 800; letter-spacing: -.035em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 72px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn { min-height: 35px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 750; }
.btn:hover:not(:disabled) { background: #f7f9f8; }
.btn-primary { color: #fff; border-color: var(--go); background: var(--go); }
.btn-primary:hover:not(:disabled) { background: var(--go-dark); }
.btn-danger { color: var(--danger); border-color: var(--danger-line); background: #fff; }
.btn-small { min-height: 32px; padding: 6px 10px; }
.avatar { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: var(--go); color: #fff; font-size: 12px; font-weight: 850; }
.account-wrap { position: relative; }
.account-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 45; width: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--card); box-shadow: 0 15px 35px rgba(16,26,23,.16); }
.account-menu-head { display: grid; gap: 2px; padding: 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.account-menu-head span { color: var(--muted); overflow-wrap: anywhere; }
.account-menu-item { display: block; width: 100%; min-height: 40px; border: 0; padding: 9px 12px; background: transparent; text-align: left; font-size: 13px; font-weight: 650; }
.account-menu-item:hover { background: #f3f6f4; }.account-menu-item.danger { color: var(--danger); }
.termbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 16px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.week-nav { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.week-arrow { width: 31px; height: 31px; border: 0; border-radius: 7px; background: transparent; font-size: 20px; }.week-arrow:hover:not(:disabled) { background: #eff3f1; }
.week-label { display: grid; min-width: 145px; padding: 0 7px; text-align: center; }.week-label strong { font-size: 13px; }.week-label span { color: var(--muted); font-size: 11px; }
.days { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.day { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 7px 18px rgba(16,26,23,.035); }.day.today { border-color: var(--go); box-shadow: 0 0 0 1px var(--go); }
.day-head { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }.day-name { font-size: 14px; font-weight: 800; }.day-date { color: var(--muted); font-size: 11px; }
.shift { padding: 15px 16px 14px; }.shift + .shift { border-top: 1px solid var(--line-2); }.shift-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }.shift-name { font-size: 13px; }.shift-time { color: var(--muted); font-size: 11px; }.group-tag { padding: 3px 7px; border-radius: 999px; background: var(--go-soft); color: var(--go); font-size: 10px; font-weight: 850; letter-spacing: .05em; }.shift-count { margin-left: auto; color: var(--go); font-size: 12px; }
.board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 12px; }.slot { min-height: 42px; display: flex; align-items: center; padding: 6px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fafbfa; font-size: 11px; }.slot.empty { border-style: dashed; background: transparent; }.slot.taken { border-color: var(--go-line); background: var(--go-soft); }.slot.mine { border-color: var(--go); background: var(--go); color: #fff; }.slot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.shift-foot { display: flex; align-items: center; gap: 9px; margin-top: 10px; }.lockline { color: var(--muted); font-size: 11px; }.shift-foot .button { margin-left: auto; }
.my-shifts-view { max-width: 760px; margin: 28px auto 0; }.my-shifts-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }.my-shifts-head h2 { margin: 2px 0 0; }.my-shifts-list { display: grid; gap: 10px; margin-top: 14px; }.my-shift-card { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }.my-shift-date,.my-shift-main { display: grid; gap: 2px; }.my-shift-date span,.my-shift-main span { color: var(--muted); font-size: 12px; }.my-shifts-empty { padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.admin-wrap { display: grid; gap: 16px; padding-top: 22px; }.panel { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: var(--shadow); }.admin-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 15px; }.admin-section-head h2 { margin: 2px 0 0; }.admin-section-head .muted { margin: 0; font-size: 12px; }.admin-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.admin-metrics article { display: grid; gap: 3px; padding: 15px; border: 1px solid var(--go-line); border-radius: 12px; background: var(--go-soft); }.admin-metrics strong { font-size: 30px; }.admin-metrics article > span:last-child { color: var(--muted); font-size: 12px; }.button-row { display: flex; flex-wrap: wrap; gap: 8px; }.admin-list { display: grid; gap: 10px; }.admin-row { display: grid; grid-template-columns: minmax(0,1fr) 100px auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }.admin-row div:first-child { display: grid; gap: 3px; }.admin-row span { color: var(--muted); font-size: 12px; }.admin-row select { min-height: 36px; border: 1px solid var(--line); border-radius: 7px; padding: 5px; }
@media (max-width: 700px) { .top-inner,.wrap { padding-left: 12px; padding-right: 12px; }.brand h1 { font-size: 16px; }.days { grid-template-columns: 1fr; gap: 12px; }.termbar { align-items: flex-start; flex-direction: column; }.admin-row { grid-template-columns: 1fr; }.my-shift-card { grid-template-columns: 1fr auto; }.my-shift-main { grid-column: 1; }.shift-foot { align-items: flex-start; flex-direction: column; }.shift-foot .button { margin-left: 0; width: 100%; }.header-actions .btn { display: none; } }

/* Mobile: root overflow must not create a scroll container around the sticky header. */
@media (max-width: 700px) {
  html.mobile-sticky-header,
  body.mobile-sticky-header {
    overflow-x: clip !important;
  }
  body.mobile-sticky-header .top {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 70;
  }
}

/* Final administration layout precedence. */
.admin-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:760px) { .admin-metrics { grid-template-columns:1fr; } }

/* Beta radius system: 4 / 8 / 12 / 16 / full. */
body.beta-radius-system {
  --radius-compact:4px;
  --radius-control:8px;
  --radius-card:12px;
  --radius-surface:16px;
  --radius-full:9999px;
}
body.beta-radius-system .top,
body.beta-radius-system .top-inner,
body.beta-radius-system .page-shell > header.card { border-radius:0; }
body.beta-radius-system .panel,
body.beta-radius-system .auth-card,
body.beta-radius-system .next-shift,
body.beta-radius-system .next-shift-card,
body.beta-radius-system .agenda-panel,
body.beta-radius-system .schedule-panel,
body.beta-radius-system .my-shifts-view,
body.beta-radius-system .admin-section,
body.beta-radius-system .card { border-radius:var(--radius-surface); }
body.beta-radius-system .next-shift,
body.beta-radius-system .next-shift-card,
body.beta-radius-system .agenda-panel,
body.beta-radius-system .schedule-panel,
body.beta-radius-system .day,
body.beta-radius-system .my-shift-card,
body.beta-radius-system .admin-section,
body.beta-radius-system .card { overflow:hidden; }
body.beta-radius-system .day,
body.beta-radius-system .my-shift-card,
body.beta-radius-system .account-menu,
body.beta-radius-system .notification-menu,
body.beta-radius-system .skip-confirm,
body.beta-radius-system .admin-metrics article,
body.beta-radius-system .admin-row,
body.beta-radius-system .student-edit-card,
body.beta-radius-system .admin-shift-edit,
body.beta-radius-system .admin-schedule-tool,
body.beta-radius-system .notification-item { border-radius:var(--radius-card); }
body.beta-radius-system .week-nav,
body.beta-radius-system .schedule-nav,
body.beta-radius-system .theme-picker,
body.beta-radius-system .theme-options,
body.beta-radius-system .student-search { border-radius:var(--radius-card); padding:4px; }
body.beta-radius-system button,
body.beta-radius-system .btn,
body.beta-radius-system .button,
body.beta-radius-system input,
body.beta-radius-system select,
body.beta-radius-system textarea,
body.beta-radius-system .slot,
body.beta-radius-system .icon-action,
body.beta-radius-system .theme-option,
body.beta-radius-system .week-arrow,
body.beta-radius-system .schedule-nav button,
body.beta-radius-system .student-page-nav button,
body.beta-radius-system .admin-week-nav button { border-radius:var(--radius-control); }
body.beta-radius-system .slot,
body.beta-radius-system .status-mark,
body.beta-radius-system .notification-meta span { border-radius:var(--radius-compact); }
body.beta-radius-system .agenda-row,
body.beta-radius-system .shift,
body.beta-radius-system .day-head,
body.beta-radius-system .notification-menu-head,
body.beta-radius-system .account-menu-head { border-radius:0; }
body.beta-radius-system .avatar,
body.beta-radius-system .notification-button,
body.beta-radius-system .notification-permission,
body.beta-radius-system .preference-switch,
body.beta-radius-system .preference-switch i,
body.beta-radius-system .group-tag,
body.beta-radius-system .agenda-group,
body.beta-radius-system .notification-indicator { border-radius:var(--radius-full); }
body.beta-radius-system input:focus,
body.beta-radius-system select:focus,
body.beta-radius-system textarea:focus,
body.beta-radius-system button:focus-visible {
  outline:0;
  box-shadow:0 0 0 4px color-mix(in srgb, var(--go) 22%, transparent);
}
body.beta-radius-system .day.today {
  border-radius:var(--radius-card);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--go) 26%, transparent);
}
@media(max-width:700px) {
  body.beta-radius-system .top,
  body.beta-radius-system .top-inner { border-radius:0; }
  body.beta-radius-system .notification-menu,
  body.beta-radius-system .account-menu { border-radius:var(--radius-card); }
}

body.segmented-theme-preferences .account-theme { padding:12px 14px 14px; }
body.segmented-theme-preferences .account-theme > label { display:block; margin-bottom:8px; color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
body.segmented-theme-preferences .theme-segmented { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; width:100%; margin:0 auto; border:1px solid var(--line); border-radius:var(--radius-card); padding:4px; overflow:hidden; background:color-mix(in srgb,var(--go-soft) 45%,var(--card)); }
body.segmented-theme-preferences .theme-segmented::before { content:""; position:absolute; z-index:0; top:4px; bottom:4px; left:4px; width:calc((100% - 8px) / 3); border-radius:var(--radius-control); background:var(--card); box-shadow:0 1px 5px rgba(16,26,23,.12); transform:translateX(calc(var(--theme-position,0) * 100%)); transition:transform 560ms cubic-bezier(.2,1.35,.3,1),background 320ms ease,box-shadow 320ms ease; will-change:transform; }
body.segmented-theme-preferences .theme-segmented.is-pressing::before { transform:translateX(calc(var(--theme-position,0) * 100%)) scale(.97); }
body.segmented-theme-preferences .theme-segmented.is-dragging::before { transition:transform 360ms cubic-bezier(.18,1.55,.32,1),background 320ms ease,box-shadow 320ms ease; transform:translateX(calc(var(--theme-position,0) * 100%)) scale(.97); }
body.segmented-theme-preferences .theme-segmented .theme-option { position:relative; z-index:1; min-width:0; min-height:34px; border:0; border-radius:var(--radius-control); padding:6px 4px; overflow:hidden; background:transparent; color:var(--muted); font-size:10.5px; font-weight:750; line-height:1; text-align:center; text-overflow:ellipsis; white-space:nowrap; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; touch-action:none; transition:color 260ms ease,transform 420ms cubic-bezier(.18,1.45,.32,1); }
body.segmented-theme-preferences .theme-segmented .theme-option:hover { color:var(--ink); }
body.segmented-theme-preferences .theme-segmented .theme-option.is-selected { background:transparent; color:var(--go); box-shadow:none; transform:translateY(-1px); }
body.segmented-theme-preferences .theme-segmented .theme-option.is-magnet-target { color:var(--go); transform:translateY(-1px) scale(1.035); }
body.segmented-theme-preferences .theme-segmented .theme-option::after { content:none; }
/* The shared magnetic ::before is the only filled theme-selection indicator. */
body.segmented-theme-preferences .top .theme-segmented .theme-option,
body.segmented-theme-preferences .top .theme-segmented .theme-option:hover,
body.segmented-theme-preferences .top .theme-segmented .theme-option:active,
body.segmented-theme-preferences .top .theme-segmented .theme-option:focus:not(:focus-visible) {
  background:transparent !important;
  box-shadow:none !important;
  -webkit-tap-highlight-color:transparent;
}
body.segmented-theme-preferences.design-dark .theme-segmented { border-color:var(--hairline, #3B4B45); background:var(--surface-menu, #0F1715); }
body.segmented-theme-preferences.design-dark .theme-segmented .theme-option.is-selected { background:transparent; color:var(--accent-dark-strong, #A7E1D2); }
body.segmented-theme-preferences.design-dark .theme-segmented::before { background:var(--surface-modal, #21312C); box-shadow:0 1px 7px rgba(0,0,0,.22); }

body.beta-preferences,
body.beta-preferences * { scrollbar-width:thin; scrollbar-color:color-mix(in srgb,var(--go) 50%,var(--muted)) transparent; }
body.beta-preferences::-webkit-scrollbar,
body.beta-preferences *::-webkit-scrollbar { width:7px; height:7px; }
body.beta-preferences::-webkit-scrollbar-track,
body.beta-preferences *::-webkit-scrollbar-track { background:transparent; }
body.beta-preferences::-webkit-scrollbar-thumb,
body.beta-preferences *::-webkit-scrollbar-thumb { border:2px solid transparent; border-radius:var(--radius-full); background:color-mix(in srgb,var(--go) 50%,var(--muted)); background-clip:padding-box; }
body.beta-preferences::-webkit-scrollbar-thumb:hover,
body.beta-preferences *::-webkit-scrollbar-thumb:hover { background:var(--go); background-clip:padding-box; }
body.beta-preferences .top .notification-menu { position:absolute; overflow:hidden !important; border-radius:34px; }
body.beta-preferences .notification-scroll-content { position:absolute; inset:0; overflow-y:auto; padding-right:26px; scrollbar-width:none; overscroll-behavior:contain; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
body.beta-preferences .notification-scroll-content::-webkit-scrollbar { display:none; }
body.beta-preferences .notification-menu > .elastic-scrollbar { position:absolute; z-index:42; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; }
body.beta-preferences .elastic-scrollbar path { fill:none; stroke:color-mix(in srgb,var(--go) 64%,var(--muted)); stroke-width:6; stroke-linecap:round; stroke-linejoin:round; opacity:.86; filter:drop-shadow(0 0 7px color-mix(in srgb,var(--go) 34%,transparent)); }
body.beta-preferences .elastic-scrollbar .elastic-scrollbar-hit { stroke:transparent !important; stroke-width:24; opacity:1; filter:none !important; pointer-events:stroke; touch-action:none; cursor:grab; }
body.beta-preferences .elastic-scrollbar .elastic-scrollbar-hit.is-dragging { cursor:grabbing; }
.student-dashboard > .student-dashboard-content[hidden],
.student-dashboard > .my-shifts-view[hidden] { display:none !important; }
/* Panel state, not sticky touch hover, owns the bell's selected treatment. */
body .top .notification-button[aria-expanded="false"],
body.design-dark .top .notification-button[aria-expanded="false"] {
  background:transparent !important; border-color:transparent !important; box-shadow:none !important;
}
body .top .notification-button[aria-expanded="false"]:not(:focus-visible) { outline:none !important; }
body .top .notification-button[aria-expanded="false"] path { fill:none !important; }
body .top .notification-button[aria-expanded="true"] {
  background:var(--go-soft) !important; border-color:var(--go-line) !important; color:var(--go) !important;
}
body.design-dark .top .notification-button[aria-expanded="true"] {
  background:var(--accent-dark-soft) !important; border-color:var(--accent-dark-line) !important; color:var(--accent-dark) !important;
}
body .top .notification-button[aria-expanded="true"] path { fill:currentColor !important; }

/* Main: a chronological column of three followed by the next column. */
body.production-theme-system .student-dashboard .agenda-six { display:grid; grid-template-rows:repeat(3,auto); grid-auto-flow:column; grid-template-columns:repeat(2,minmax(0,1fr)); }
body.production-theme-system .student-dashboard .agenda-six .agenda-row { min-width:0; }
body.production-theme-system .student-dashboard .agenda-six .agenda-row:nth-child(n+4) { border-left:1px solid var(--line); }
body.production-theme-system .student-dashboard .agenda-view-all-hidden { display:none !important; }
body.production-theme-system .student-dashboard .my-shifts-view { padding:0; width:100%; min-width:0; }
body.production-theme-system .student-dashboard .my-shift-card { min-width:0; }
body.production-theme-system .student-dashboard .my-shift-main { grid-column:auto; min-width:0; }
body.production-theme-system .student-dashboard .my-shift-card > .group-tag { width:max-content; max-width:100%; justify-self:end; white-space:nowrap; }
body .top .account-menu-item.has-interface-icon { display:flex; align-items:center; justify-content:flex-start; gap:10px; }
@media (min-width:701px) {
  body.production-theme-system .student-dashboard .agenda-view-all-desktop-hidden { display:none !important; }
}
@media (max-width:700px) {
  body.production-theme-system .student-dashboard .agenda-six { display:block; }
  body.production-theme-system .student-dashboard .agenda-six .agenda-row:nth-child(n+4) { display:none; }
  body.production-theme-system .student-dashboard .my-shifts-head { flex-wrap:wrap; }
  body.production-theme-system .student-dashboard .my-shift-card { grid-template-columns:minmax(68px,.9fr) minmax(0,1fr) max-content; padding:14px 12px; gap:8px; }
}

#themeOverlay {
  position:fixed;
  inset:0;
  z-index:999999;
  pointer-events:none;
  opacity:0;
  will-change:opacity;
}
#themeOverlay.animate { animation:theme-overlay-fade 320ms ease-out both; }
html.theme-switch-instant body,
html.theme-switch-instant body *:not(#themeOverlay),
html.theme-switch-instant body *:not(#themeOverlay)::before,
html.theme-switch-instant body *:not(#themeOverlay)::after {
  transition:none !important;
}
@keyframes theme-overlay-fade {
  from { opacity:1; }
  to { opacity:0; }
}
@media (prefers-reduced-motion:reduce) {
  #themeOverlay.animate { animation:none; }
}

.private-code-control { position:relative; }
.private-code-control input { padding-right:54px; font-family:monospace; letter-spacing:.2em; }
.private-code-control.is-enhanced { border:1px solid var(--line); border-radius:12px; background:var(--card); }
.private-code-control.is-enhanced:focus-within { border-color:var(--go); box-shadow:0 0 0 3px rgba(11,110,98,.12); }
.private-code-control.is-enhanced input { opacity:0; border:0; box-shadow:none; }
.private-code-display { position:absolute; left:14px; right:54px; top:0; bottom:0; display:flex; align-items:center; overflow:hidden; pointer-events:none; color:var(--ink); font-family:monospace; font-size:16px; }
.private-code-character { position:relative; flex:0 0 1.2ch; height:24px; }
.private-code-digit { position:absolute; inset:0; display:grid; place-items:center; opacity:0; transform:scale(.25); transition:opacity 180ms ease,transform 220ms ease; }
.private-code-character svg { position:absolute; inset:4px 0; width:100%; height:16px; fill:currentColor; opacity:1; transform:scale(1); transition:opacity 180ms ease,transform 220ms ease; }
.private-code-character.is-selected { background:var(--go-soft); border-radius:0; }
.private-code-character.is-selected:not(.is-selected + .is-selected) { border-radius:4px 0 0 4px; }
.private-code-character.is-selected:not(:has(+ .is-selected)) { border-top-right-radius:4px; border-bottom-right-radius:4px; }
.private-code-display::after { content:""; display:none; position:absolute; left:var(--pin-caret-left,0px); top:50%; height:19px; width:1px; background:var(--go); transform:translateY(-50%); }
.has-pin-caret .private-code-display::after { display:block; animation:pin-caret-blink 1s step-end infinite; }
@keyframes pin-caret-blink { 50% { opacity:0; } }
.private-code-character.is-visible .private-code-digit { opacity:1; transform:scale(1); }
.private-code-character.is-visible svg { opacity:0; transform:scale(.2); }
.private-code-reveal { position:absolute; right:4px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:10px; background:transparent; color:var(--muted); cursor:pointer; touch-action:manipulation; user-select:none; -webkit-user-select:none; }
.private-code-reveal:hover,.private-code-reveal:active,.private-code-reveal[aria-pressed="true"] { background:transparent; color:var(--go); }
.private-code-reveal:focus-visible { outline:2px solid var(--go); outline-offset:-2px; }
.private-code-reveal svg { width:22px; height:22px; fill:currentColor; transition:transform 260ms cubic-bezier(.22,1,.36,1); }
.private-code-reveal[aria-pressed="true"] svg { transform:rotate(-12deg); }
.pin-icon-secondary { opacity:.3; }
.pin-icon-slash { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-dasharray:24; stroke-dashoffset:0; transform-origin:center; transition:stroke-dashoffset 260ms ease,opacity 220ms ease,transform 260ms ease; }
.private-code-reveal[aria-pressed="true"] .pin-icon-slash { opacity:0; stroke-dashoffset:24; transform:scale(.3); }
@media (prefers-reduced-motion:reduce) { .private-code-digit,.private-code-character svg { transition:none; } }

/* Private owner-only website presence dashboard. */
.private-presence { position:relative; padding:20px; }
.presence-heading { min-height:56px; padding-right:110px; }
.presence-heading h2 { margin:2px 0 4px; }
.presence-heading .muted { margin:0; }
.presence-count { position:absolute; top:20px; right:20px; display:grid; min-width:92px; padding:12px 16px; border:1px solid var(--go-line); border-radius:12px; background:var(--go-soft); color:var(--go); text-align:center; font-size:12px; font-weight:750; }
.presence-count strong { font-size:28px; line-height:1; }
.presence-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
.presence-columns>section { min-width:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.presence-columns h3 { display:flex; align-items:center; gap:7px; margin:0; padding:13px 14px; border-bottom:1px solid var(--line); font-size:13px; }
.presence-columns h3 span { margin-left:auto; color:var(--muted); font-size:10px; font-weight:650; }
.presence-list { display:grid; max-height:220px; overflow:auto; }
.presence-person { display:grid; grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:10px; min-width:0; padding:12px 14px; }
.presence-person+.presence-person { border-top:1px solid var(--line-2); }
.presence-avatar { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--go-soft); color:var(--go); font-size:13px; font-weight:850; }
.presence-identity { display:grid; min-width:0; gap:2px; }
.presence-identity strong,.presence-identity span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.presence-identity strong { font-size:13px; }
.presence-identity span,.presence-time { color:var(--muted); font-size:10.5px; }
.presence-time { display:flex; align-items:center; gap:5px; white-space:nowrap; }
.presence-dot { display:inline-block; flex:0 0 auto; width:8px; height:8px; border-radius:50%; background:var(--go); box-shadow:0 0 0 3px color-mix(in srgb,var(--go) 14%,transparent); }
.presence-empty { margin:0; padding:22px 14px; text-align:center; }
@media(max-width:760px) {
  .presence-heading { min-height:52px; padding-right:96px; }
  .presence-count { top:16px; right:16px; min-width:82px; padding:10px 12px; }
  .presence-columns { grid-template-columns:1fr; }
  .presence-person { grid-template-columns:36px minmax(0,1fr); }
  .presence-time { grid-column:2; }
}
