    .staff-home-screen-header {
      align-items: center;
    }
    .staff-home-date-label {
      font-size: var(--ui-size-small);
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }
    .staff-home-title {
      margin-top: 10px;
      font-size: var(--ui-size-title);
      font-weight: 700;
      line-height: var(--ui-line-title);
      color: var(--ui-text);
      letter-spacing: -0.03em;
    }
    .staff-home-stat-label {
      font-size: var(--ui-size-small);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }
    .staff-home-stat-value {
      margin-top: 6px;
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1;
      color: var(--ui-accent-ink);
    }
    .staff-home-stat-meta {
      margin-top: 5px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      color: var(--ui-text-muted);
    }
    .staff-home-next-inline {
      margin-top: 6px;
      display: flex;
      align-items: baseline;
      gap: 10px;
      flex-wrap: wrap;
    }
    .staff-home-next-inline .staff-home-stat-value,
    .staff-home-next-inline .staff-home-stat-meta {
      margin-top: 0;
    }
    .staff-home-next-inline .staff-home-stat-meta {
      font-size: var(--ui-size-body);
      font-weight: 600;
      color: var(--ui-text);
      line-height: var(--ui-line-section);
    }
    .staff-home-section-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .staff-home-section-title {
      font-size: var(--ui-size-section);
      font-weight: 700;
      color: var(--ui-text);
      line-height: var(--ui-line-section);
    }
    .staff-home-section-subtitle {
      margin-top: 3px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      color: var(--ui-text-muted);
    }
    .staff-home-shift-main {
      margin-top: 12px;
      display: grid;
      gap: 14px;
    }
    .staff-home-shift-time {
      font-size: 1.75rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }
    .staff-home-shift-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 14px;
      font-size: var(--ui-size-small);
      font-weight: 700;
      line-height: var(--ui-line-small);
      color: var(--ui-text-muted);
    }
    .staff-home-meta-chip {
      display: inline-flex;
      align-items: center;
      border-radius: 0;
      background: transparent;
      border: 0;
      padding: 0;
      color: var(--ui-text-muted);
    }
    .staff-home-meta-chip.is-muted {
      color: color-mix(in srgb, var(--ui-text-muted) 82%, white 18%);
    }
    .staff-home-clock-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      border-top: 1px solid color-mix(in srgb, var(--ui-border) 78%, transparent);
      padding-top: 14px;
    }
    .staff-home-clock-card {
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 0;
    }
    .staff-home-clock-card + .staff-home-clock-card {
      border-left: 1px solid color-mix(in srgb, var(--ui-border) 72%, transparent);
      padding-left: 16px;
    }
    .staff-home-clock-label {
      font-size: var(--ui-size-small);
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }
    .staff-home-clock-time {
      margin-top: 6px;
      font-size: 1.25rem;
      font-weight: 800;
      color: var(--ui-text);
      line-height: 1.1;
    }
    .staff-home-clock-status {
      margin-top: 5px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      color: var(--ui-text-muted);
    }
    .staff-home-stack {
      display: grid;
      gap: 14px;
    }
    .staff-home-empty {
      margin-top: 14px;
      border: 0;
      border-radius: 0;
      background: transparent;
      padding: 0;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      color: var(--ui-text-muted);
      text-align: left;
    }
    .staff-home-title-block {
      min-width: 0;
    }
    .staff-home-hero {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding: 18px 16px;
      border-radius: 24px;
      border: 1px solid color-mix(in srgb, var(--ui-border) 82%, white 18%);
      background:
        radial-gradient(circle at 12% 5%, color-mix(in srgb, var(--ui-accent) 20%, transparent) 0 26%, transparent 45%),
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--ui-surface) 88%, var(--ui-accent) 12%) 100%);
    }
    .staff-home-hero-copy {
      margin: 6px 0 0;
      color: var(--ui-text-muted);
      font-size: var(--ui-size-body);
      line-height: 1.38;
    }
    .staff-home-hero-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 0 16px;
      border-radius: 999px;
      background: var(--staff-blue);
      color: #fff;
      font-size: var(--ui-size-small);
      font-weight: 800;
      text-decoration: none;
      white-space: nowrap;
    }
    .staff-home-focus-card,
    .staff-home-panel,
    .staff-home-strip-card,
    .staff-home-action-card {
      border: 1px solid var(--ui-border);
      background: var(--mobile-card-fill);
      box-shadow: none;
    }
    .staff-home-focus-card {
      display: grid;
      gap: 13px;
      padding: 16px;
      border-radius: 24px;
      border-top: 3px solid var(--staff-blue);
    }
    .staff-home-focus-top,
    .staff-home-panel-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }
    .staff-home-card-kicker,
    .staff-home-strip-label {
      margin: 0;
      color: var(--ui-text-muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }
    .staff-home-focus-title {
      margin: 5px 0 0;
      color: var(--ui-text);
      font-size: 1.35rem;
      line-height: 1.05;
      font-weight: 900;
      letter-spacing: -0.04em;
    }
    .staff-home-count-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 32px;
      height: 28px;
      border-radius: 999px;
      background: var(--staff-blue-soft);
      color: var(--staff-blue);
      font-size: 12px;
      font-weight: 900;
    }
    .staff-home-strip {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .staff-home-strip-card {
      display: grid;
      gap: 5px;
      min-height: 92px;
      padding: 13px;
      border-radius: 20px;
      color: var(--ui-text);
      text-decoration: none;
    }
    .staff-home-strip-card strong {
      font-size: 1rem;
      line-height: 1.15;
      font-weight: 900;
    }
    .staff-home-strip-card small {
      color: var(--ui-text-muted);
      font-size: var(--ui-size-small);
      line-height: 1.25;
    }
    .staff-home-action-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .staff-home-action-card {
      display: grid;
      gap: 6px;
      min-height: 84px;
      padding: 13px;
      border-radius: 20px;
      color: var(--ui-text);
      text-decoration: none;
      position: relative;
      overflow: hidden;
    }
    .staff-home-action-card::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 4px;
      background: var(--staff-blue);
    }
    .staff-home-action-card.is-green::before { background: var(--staff-green); }
    .staff-home-action-card.is-orange::before { background: var(--staff-orange); }
    .staff-home-action-card.is-purple::before { background: var(--staff-purple); }
    .staff-home-action-card span {
      color: var(--ui-text-muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .staff-home-action-card strong {
      font-size: 1.02rem;
      line-height: 1.15;
      font-weight: 900;
    }
    .staff-home-panel {
      display: grid;
      gap: 12px;
      padding: 15px;
      border-radius: 24px;
    }
    .staff-home-panel-head h2 {
      margin: 0;
      color: var(--ui-text);
      font-size: var(--ui-size-section);
      font-weight: 900;
    }
    .staff-home-panel-head span {
      display: inline-flex;
      min-width: 28px;
      height: 28px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: var(--staff-warning-soft);
      color: var(--staff-orange);
      font-size: 12px;
      font-weight: 900;
    }
    .staff-home-alert-list {
      display: grid;
      overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--ui-border) 84%, white 16%);
      border-radius: 18px;
    }
    .staff-home-alert-row {
      display: grid;
      gap: 3px;
      padding: 12px 13px;
      border-top: 1px solid color-mix(in srgb, var(--ui-border) 84%, white 16%);
      color: var(--ui-text);
      text-decoration: none;
      background: #fff;
    }
    .staff-home-alert-row:first-child {
      border-top: 0;
    }
    .staff-home-alert-row strong {
      font-size: var(--ui-size-body);
      line-height: 1.2;
      font-weight: 900;
    }
    .staff-home-alert-row span {
      color: var(--ui-text-muted);
      font-size: var(--ui-size-small);
      line-height: 1.25;
    }
    .staff-home-alert-row.is-empty {
      background: color-mix(in srgb, var(--staff-green) 7%, white 93%);
    }
    .staff-status-pill {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 3px 8px;
      font-size: var(--ui-size-small);
      font-weight: 700;
      line-height: var(--ui-line-small);
    }
    .staff-status-pill.emerald {
      border-color: color-mix(in srgb, var(--ui-success) 28%, white 72%);
      background: var(--ui-success-bg);
      color: var(--ui-success);
    }
    .staff-status-pill.amber {
      border-color: color-mix(in srgb, var(--ui-warning) 28%, white 72%);
      background: var(--ui-warning-bg);
      color: var(--ui-warning);
    }
    .staff-status-pill.red {
      border-color: color-mix(in srgb, var(--ui-danger) 28%, white 72%);
      background: var(--ui-danger-bg);
      color: var(--ui-danger);
    }
    .staff-status-pill.slate {
      border-color: var(--ui-border);
      background: var(--ui-surface-muted);
      color: var(--ui-text-muted);
    }
    .staff-status-inline {
      display: inline-flex;
      align-items: center;
      gap: 0;
    }
    .staff-status-icon {
      width: 16px;
      height: 16px;
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 2px;
      flex: 0 0 16px;
    }
    .staff-status-icon.approved {
      color: var(--ui-success);
      background: var(--ui-success-bg);
      border-color: color-mix(in srgb, var(--ui-success) 28%, white 72%);
    }
    .staff-status-icon.awaiting {
      color: var(--ui-warning);
      background: var(--ui-warning-bg);
      border-color: color-mix(in srgb, var(--ui-warning) 28%, white 72%);
    }
    .staff-request-tabs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .staff-request-tabs-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .staff-request-tab {
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-control);
      background: var(--ui-surface-muted);
      padding: 10px 8px;
      text-align: center;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.25;
      color: var(--ui-accent-ink);
      display: grid;
      gap: 4px;
      justify-items: center;
    }
    .staff-request-tab-icon{
      width: 19px;
      height: 19px;
      opacity: 0.9;
    }
    .staff-request-tab.is-active {
      border-color: var(--ui-primary);
      background: var(--ui-primary);
      color: var(--mobile-topbar-ink);
    }

    .staff-requests-screen {
      gap: 10px;
    }

    .staff-requests-screen .staff-screen-header {
      align-items: center;
      padding-bottom: 0;
    }

    .staff-requests-screen .staff-screen-title {
      font-size: 23px;
      line-height: 1.05;
      font-weight: 950;
    }

    .staff-requests-screen .staff-chip {
      min-height: 32px;
      padding: 0 10px;
      font-size: 11px;
      font-weight: 850;
    }

    .staff-requests-screen .staff-request-tabs {
      gap: 7px;
    }

    .staff-requests-screen .staff-request-tab {
      min-height: 42px;
      padding: 7px 8px;
      border-radius: 15px;
      font-size: 11px;
      gap: 2px;
      text-decoration: none;
    }

    .staff-requests-screen .staff-request-tab-icon {
      width: 15px;
      height: 15px;
    }

    .staff-request-form {
      display: grid;
      gap: 9px;
    }

    .staff-request-form-card {
      display: grid;
      gap: 11px;
      border: 1px solid var(--staff-line);
      border-radius: 20px;
      background: #ffffff;
      padding: 13px;
    }

    .staff-request-form-card .staff-form-grid.two {
      grid-template-columns: minmax(0, 1.35fr) minmax(82px, 0.65fr);
      gap: 8px;
    }

    .staff-request-form-card .staff-field label {
      margin-bottom: 5px;
      font-size: 9px;
      font-weight: 950;
      letter-spacing: 0.1em;
    }

    .staff-request-form-card .staff-input,
    .staff-request-form-card .staff-select {
      min-height: 42px;
      padding: 9px 11px;
      border-radius: 14px;
      font-size: 13px;
    }

    .staff-request-form-card .staff-textarea {
      min-height: 76px;
      padding: 10px 11px;
      border-radius: 14px;
      font-size: 13px;
    }

    .staff-request-actions {
      display: grid;
      gap: 8px;
    }

    .staff-request-actions .staff-btn {
      min-height: 42px;
      border-radius: 15px;
      font-size: 13px;
      font-weight: 900;
    }
    .staff-month-switch {
      display: inline-flex;
      gap: 6px;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-control);
      padding: 4px;
      background: var(--ui-surface-muted);
    }
    .staff-month-btn {
      border-radius: calc(var(--ui-radius-control) - 2px);
      padding: 6px 10px;
      font-size: 11px;
      font-weight: 700;
      color: var(--ui-accent-ink);
    }
    .staff-month-btn.is-active {
      background: var(--ui-primary);
      color: var(--mobile-topbar-ink);
    }
    .staff-month-table-wrap {
      overflow-x: auto;
      border: 0;
      border-radius: 0;
      background: var(--ui-surface);
    }
    .staff-month-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 11px;
    }
    .staff-month-table th {
      background: var(--ui-surface-muted);
      color: var(--ui-accent-ink);
      font-size: 10px;
      text-align: left;
      padding: 7px 8px;
      border-bottom: 1px solid var(--ui-border);
      font-weight: 700;
    }
    .staff-month-table td {
      padding: 7px 8px;
      border-bottom: 1px solid var(--ui-border);
      color: var(--ui-text);
      vertical-align: top;
      word-break: break-word;
    }
    .staff-month-table tr:last-child td {
      border-bottom: 0;
    }
    .staff-row-past td {
      background: var(--ui-surface-muted);
      color: var(--ui-text-muted);
    }
    .staff-row-past .staff-status-pill {
      opacity: 0.8;
    }
    .staff-row-danger td {
      background: var(--ui-danger-bg);
    }
    .staff-issue-danger {
      color: var(--ui-danger);
      font-weight: 700;
    }
    .staff-issue-ok {
      color: var(--ui-success);
      font-weight: 600;
    }
    .staff-reason-text {
      font-size: 10px;
      line-height: 1.2;
    }
    .staff-rota-shell {
      display: grid;
      gap: 14px;
      padding-top: 22px;
    }
    [data-rota-ajax-root].is-loading {
      opacity: 0.72;
      transition: opacity 120ms ease;
      pointer-events: none;
    }
    .staff-rota-calendar-card {
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-panel);
      background: var(--ui-surface);
      overflow: hidden;
    }
    .staff-rota-calendar-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 14px;
      border-bottom: 1px solid var(--ui-border);
      background: var(--ui-surface-muted);
    }
    .staff-rota-calendar-title {
      font-size: var(--ui-size-section);
      font-weight: 700;
      color: var(--ui-text);
      line-height: var(--ui-line-section);
    }
    .staff-rota-calendar-subtitle {
      margin-top: 3px;
      font-size: var(--ui-size-small);
      color: var(--ui-text-muted);
      line-height: var(--ui-line-small);
    }
    .staff-rota-calendar-nav {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .staff-rota-calendar-nav-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 37px;
      height: 37px;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-control);
      background: var(--ui-surface);
      color: var(--ui-accent-ink);
      font-size: 15px;
      font-weight: 800;
    }
    .staff-rota-calendar-nav-btn svg {
      width: 16px;
      height: 16px;
      display: block;
    }
    .staff-rota-calendar-month {
      min-width: 112px;
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      color: var(--staff-primary-deep);
      letter-spacing: 0.01em;
    }
    .staff-rota-calendar-grid {
      padding: 14px;
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 8px;
    }
    .staff-rota-calendar-dow {
      text-align: center;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }
    .staff-rota-calendar-empty {
      height: 46px;
      border-radius: 12px;
      background: var(--ui-surface-muted);
    }
    .staff-rota-calendar-day {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 46px;
      border: 1px solid var(--ui-border);
      border-radius: 12px;
      background: var(--ui-surface);
      color: var(--ui-text);
      font-size: 12px;
      font-weight: 800;
    }
    .staff-rota-calendar-day.is-disabled {
      cursor: default;
      color: var(--ui-text-muted);
      background: var(--ui-surface-muted);
      border-color: var(--ui-border);
    }
    .staff-rota-calendar-day.is-today {
      border-color: var(--ui-text);
      background: var(--ui-surface);
      color: var(--ui-text);
      box-shadow: inset 0 0 0 2px var(--ui-text);
    }
    .staff-rota-calendar-day.is-selected {
      border-color: var(--ui-primary);
      background: var(--ui-primary);
      color: #ffffff;
      box-shadow: inset 0 0 0 2px var(--ui-primary);
    }
    .staff-rota-calendar-day.is-selected.is-today {
      border-color: var(--ui-primary);
      background: var(--ui-primary);
      color: #ffffff;
      box-shadow: inset 0 0 0 2px var(--ui-primary);
    }
    .staff-rota-calendar-day.is-future-has-rota {
      border-color: var(--ui-accent);
      background: var(--ui-accent-soft);
      color: var(--ui-accent-ink);
    }
    .staff-rota-calendar-day.is-past-has-rota {
      border-color: var(--ui-border-strong);
      background: var(--ui-surface-muted);
      color: var(--ui-text);
    }
    .staff-rota-calendar-daynum {
      line-height: 1;
    }
    .staff-rota-calendar-day.is-disabled .staff-rota-calendar-daynum {
      opacity: 0.9;
    }
    .staff-rota-calendar-markers {
      position: absolute;
      left: 50%;
      bottom: 5px;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .staff-rota-calendar-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
    }
    .staff-rota-calendar-dot.past {
      background: var(--ui-border-strong);
    }
    .staff-rota-calendar-dot.future {
      background: var(--ui-accent);
    }
    .staff-rota-calendar-legend {
      padding: 0 14px 14px;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 10px;
      font-weight: 700;
      color: var(--ui-text-muted);
    }
    .staff-rota-calendar-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 8px;
      border: 1px solid transparent;
      border-radius: 999px;
    }
    .staff-rota-shift-note.is-swap {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--ui-danger);
      font-weight: 700;
    }
    .staff-rota-open-status {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 8px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 800;
      white-space: nowrap;
    }
    .staff-rota-open-status.is-neutral {
      background: var(--ui-surface-muted);
      color: var(--ui-text-muted);
    }
    .staff-rota-open-status.is-pending {
      background: var(--ui-warning-bg);
      color: var(--ui-warning);
    }
    .staff-rota-open-status.is-accepted {
      background: var(--ui-success-bg);
      color: var(--ui-success);
    }
    .staff-rota-open-status.is-declined {
      background: var(--ui-danger-bg);
      color: var(--ui-danger);
    }
    .staff-rota-open-note {
      margin-top: 10px;
      font-size: 11px;
      line-height: 1.4;
      color: var(--ui-text-muted);
    }
    .staff-rota-open-actions {
      margin-top: 12px;
      display: grid;
      gap: 8px;
    }
    .staff-rota-open-actions form,
    .staff-action-form {
      margin: 0;
      display: grid;
      gap: 8px;
    }
    .staff-rota-swap-select-wrap {
      display: block;
      min-width: min(100%, 280px);
    }
    .staff-rota-swap-select-label {
      display: block;
      margin-bottom: 6px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--ui-text-muted);
    }
    .staff-rota-swap-select {
      width: 100%;
      border: 1px solid var(--ui-border);
      border-radius: 12px;
      background: var(--ui-surface);
      padding: 9px 12px;
      font-size: 11px;
      color: var(--ui-text);
    }
    .staff-action-stack {
      display: grid;
      gap: 10px;
    }

    .staff-form-actions {
      display: grid;
      gap: 10px;
      margin-top: 2px;
    }

    .staff-btn-row {
      display: grid;
      gap: 10px;
    }

    .staff-btn-row.two {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-rota-open-btn,
    .staff-rota-action-btn,
    .staff-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      width: 100%;
      min-height: var(--ui-height-control);
      min-width: 92px;
      padding: 0 14px;
      border-radius: var(--ui-radius-control);
      border: 1px solid var(--ui-border);
      font-size: var(--ui-size-small);
      font-weight: 600;
      line-height: 1.1;
      text-align: center;
      text-decoration: none;
      box-shadow: none;
      transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
    }
    .staff-social-google-btn {
      gap: 10px;
      background: #ffffff;
      border-color: color-mix(in srgb, var(--ui-border) 84%, #d2d9e3 16%);
      color: var(--ui-text);
      font-weight: 700;
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    }
    .staff-social-google-btn svg {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
    }
    .staff-rota-action-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
    }
    .staff-rota-action-item {
      width: 100%;
      min-width: 0;
    }
    .staff-rota-action-row.is-double {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .staff-rota-action-btn {
      box-sizing: border-box;
      font-family: var(--ui-font);
      letter-spacing: 0.01em;
      white-space: normal;
      word-break: break-word;
      text-wrap: balance;
      padding-top: 8px;
      padding-bottom: 8px;
      line-height: 1.2;
    }
    .staff-rota-action-form {
      margin: 0;
      display: block;
      width: 100%;
    }
    .staff-rota-action-form .staff-rota-action-btn,
    .staff-rota-action-btn[type="submit"] {
      appearance: none;
      -webkit-appearance: none;
      box-sizing: border-box;
      cursor: pointer;
    }
    .staff-btn.primary,
    .staff-rota-open-btn.accept,
    .staff-rota-action-btn.is-primary {
      background: var(--staff-button-primary-bg);
      border-color: var(--staff-button-primary-border);
      color: var(--staff-button-primary-ink);
    }
    .staff-rota-action-btn.is-hours {
      background: var(--staff-button-primary-bg);
      border-color: var(--staff-button-primary-border);
      color: var(--staff-button-primary-ink);
    }
    .staff-btn.primary:hover,
    .staff-rota-open-btn.accept:hover,
    .staff-rota-open-btn.reject:hover,
    .staff-btn.secondary:hover,
    .staff-social-google-btn:hover,
    .staff-btn.danger:hover,
    .staff-rota-action-btn.is-primary:hover,
    .staff-rota-action-btn.is-hours:hover,
    .staff-rota-action-btn.is-dark:hover {
      transform: none;
      box-shadow: none;
    }
    .staff-btn.primary:hover,
    .staff-rota-open-btn.accept:hover,
    .staff-rota-action-btn.is-primary:hover {
      background: var(--staff-button-primary-bg-hover);
      border-color: var(--staff-button-primary-bg-hover);
    }
    .staff-rota-action-btn.is-hours:hover {
      background: var(--staff-button-primary-bg-hover);
      border-color: var(--staff-button-primary-bg-hover);
    }
    .staff-social-google-btn:hover {
      background: color-mix(in srgb, #ffffff 92%, var(--ui-surface-subtle) 8%);
      border-color: color-mix(in srgb, var(--ui-border) 72%, #b9c5d4 28%);
      color: var(--ui-text);
    }
    .staff-btn.is-disabled,
    .staff-rota-open-btn.is-disabled,
    .staff-rota-action-btn.is-disabled {
      background: var(--ui-surface-muted);
      border-color: var(--ui-border);
      color: var(--ui-text-muted);
      box-shadow: none;
      cursor: not-allowed;
      pointer-events: none;
    }
    .staff-btn.secondary,
    .staff-rota-action-btn.is-secondary {
      background: var(--staff-button-secondary-bg);
      border-color: var(--staff-button-secondary-border);
      color: var(--staff-button-secondary-ink);
    }
    .staff-btn.danger,
    .staff-rota-open-btn.reject {
      background: var(--ui-surface);
      border-color: color-mix(in srgb, var(--ui-danger) 30%, white 70%);
      color: var(--ui-danger);
    }
    .staff-btn.danger:hover,
    .staff-rota-open-btn.reject:hover {
      background: color-mix(in srgb, var(--ui-danger-bg) 55%, white 45%);
      border-color: color-mix(in srgb, var(--ui-danger) 40%, white 60%);
      color: var(--ui-danger);
    }
    .staff-btn.dark,
    .staff-rota-action-btn.is-dark {
      background: var(--staff-navy);
      border-color: var(--staff-navy);
      color: var(--mobile-topbar-ink);
    }
    .staff-btn.dark:hover,
    .staff-rota-action-btn.is-dark:hover {
      background: color-mix(in srgb, var(--staff-navy) 88%, black 12%);
      border-color: color-mix(in srgb, var(--staff-navy) 88%, black 12%);
    }
    .staff-rota-mini-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
      font-size: var(--ui-size-small);
    }
    .staff-rota-mini-table th {
      text-align: left;
      font-size: var(--ui-size-small);
      font-weight: 800;
      color: var(--ui-text-muted);
      padding: 6px 0;
      border-bottom: 1px solid color-mix(in srgb, var(--ui-border) 82%, white 18%);
    }
    .staff-rota-mini-table td {
      padding: 8px 0;
      border-bottom: 1px solid color-mix(in srgb, var(--ui-border) 66%, white 34%);
      color: var(--ui-text);
      vertical-align: top;
    }
    .staff-rota-mini-table tr:last-child td {
      border-bottom: 0;
    }
    .staff-rota-mini-muted {
      font-size: var(--ui-size-small);
      color: var(--ui-text-muted);
    }
    body.portal-shell {
      background: var(--ui-surface);
      color: var(--staff-text);
    }

    .staff-shell {
      min-height: 100dvh;
      background: transparent;
      padding-bottom: 0;
    }

    .staff-app {
      width: min(100%, var(--staff-shell-width));
      min-height: 100dvh;
      margin: 0 auto;
      background: var(--ui-surface);
      box-shadow: var(--staff-shadow);
      border-left: 1px solid var(--ui-border);
      border-right: 1px solid var(--ui-border);
      position: relative;
      overflow: hidden;
    }

    .staff-topbar {
      position: sticky;
      top: 0;
      z-index: 30;
      border-bottom: 1px solid var(--mobile-topbar-border);
      background: var(--staff-bottom-nav-bg);
      backdrop-filter: none;
      box-shadow: none;
      border-radius: 0;
      overflow: hidden;
    }

    .staff-topbar-inner {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: calc(0.8rem + env(safe-area-inset-top, 0px)) 1rem 0.9rem;
    }

    .staff-topbar-brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .staff-topbar-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 16px;
      overflow: hidden;
      background: color-mix(in srgb, white 12%, transparent);
      border: 1px solid color-mix(in srgb, white 16%, transparent);
      flex: 0 0 44px;
    }

    .staff-topbar-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .staff-topbar-logo-text {
      font-size: var(--ui-size-section);
      font-weight: 700;
      color: var(--mobile-topbar-ink);
    }

    .staff-topbar-copy {
      min-width: 0;
    }

    .staff-topbar-meta {
      margin: 0;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--mobile-topbar-muted);
    }

    .staff-topbar-title {
      margin: 0.2rem 0 0;
      font-size: 1.18rem;
      line-height: 1.16;
      font-weight: 700;
      color: var(--mobile-topbar-ink);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .staff-topbar-powered {
      margin: 0.16rem 0 0;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      color: var(--mobile-topbar-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .staff-topbar-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      padding: 0 14px;
      border: 1px solid color-mix(in srgb, white 22%, transparent);
      border-color: color-mix(in srgb, white 22%, transparent);
      background: var(--mobile-topbar-surface);
      color: var(--mobile-topbar-ink);
      border-radius: var(--ui-radius-control);
      font-size: var(--ui-size-small);
      font-weight: 600;
      line-height: 1;
      text-decoration: none;
      box-shadow: none;
      backdrop-filter: blur(10px);
    }

    .staff-topbar-action:hover {
      border-color: color-mix(in srgb, white 28%, transparent);
      background: color-mix(in srgb, white 18%, transparent);
      color: var(--mobile-topbar-ink);
    }

    .portal-shell.staff-theme .staff-topbar-action[href*="logout.php"] {
      width: 44px;
      min-width: 44px;
      height: 44px;
      padding: 0;
      border-radius: 50%;
      font-size: 0;
    }

    .portal-shell.staff-theme .staff-topbar-action[href*="logout.php"] svg {
      display: none;
    }

    .portal-shell.staff-theme .staff-topbar-action[href*="logout.php"]::before {
      content: "";
      display: block;
      width: 20px;
      height: 20px;
      background: currentColor;
      -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3'/%3E%3Cpath d='m16 8 4 4-4 4M20 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3'/%3E%3Cpath d='m16 8 4 4-4 4M20 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .staff-topbar-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .staff-topbar-session {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 2px;
      min-width: 0;
      padding: 7px 10px;
      border: 1px solid color-mix(in srgb, white 18%, transparent);
      border-radius: 14px;
      background: color-mix(in srgb, white 8%, transparent);
      color: var(--mobile-topbar-ink);
    }

    .staff-topbar-session-label {
      font-size: 10px;
      line-height: 1;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--mobile-topbar-muted);
    }

    .staff-topbar-session-name {
      max-width: 9rem;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
      line-height: 1.2;
      font-weight: 700;
      color: var(--mobile-topbar-ink);
    }

    .staff-state-screen {
      display: grid;
      gap: 16px;
      padding-top: 6px;
    }

    .staff-state-head {
      display: grid;
      gap: 8px;
    }

    .staff-state-kicker {
      margin: 0;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }

    .staff-state-title {
      margin: 0;
      font-size: var(--ui-size-title);
      line-height: var(--ui-line-title);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    .staff-state-copy {
      margin: 0;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      color: var(--ui-text-muted);
    }

    .staff-state-panel {
      display: grid;
      gap: 8px;
      border: 1px solid var(--ui-border);
      border-radius: 18px;
      background: var(--ui-surface-muted);
      padding: 14px;
    }

    .staff-state-panel[data-tone="warn"] {
      border-color: color-mix(in srgb, var(--ui-warning) 18%, var(--ui-border) 82%);
      background: color-mix(in srgb, var(--ui-warning-bg) 70%, white 30%);
    }

    .staff-state-panel-copy {
      margin: 0;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      color: var(--ui-text);
    }

    .staff-state-actions {
      display: grid;
      gap: 10px;
    }

    .staff-main {
      min-height: calc(100dvh - 64px);
      background: var(--ui-bg);
      padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }

    .staff-identity-band {
      padding: 16px 16px 6px;
    }

    .staff-identity-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    .staff-identity-copy {
      min-width: 0;
      flex: 1 1 auto;
    }

    .staff-identity-kicker {
      margin: 0 0 6px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: color-mix(in srgb, var(--ui-text-muted) 94%, white 6%);
    }

    .staff-identity-name {
      margin: 0;
      font-size: var(--ui-size-section);
      line-height: var(--ui-line-section);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    .staff-identity-code {
      margin: 4px 0 0;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      color: var(--ui-text-muted);
    }

    .staff-identity-side {
      flex: 0 0 auto;
      text-align: right;
      min-width: 92px;
    }

    .staff-identity-side-label {
      margin: 0 0 6px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: color-mix(in srgb, var(--ui-text-muted) 94%, white 6%);
    }

    .staff-identity-side-value {
      margin: 0;
      font-size: var(--ui-size-section);
      line-height: var(--ui-line-section);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    @media (max-width: 360px) {
      .staff-identity-row {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
      }

      .staff-identity-side {
        min-width: 0;
        text-align: left;
      }
    }

    .staff-main.is-loading {
      opacity: 0.74;
      transition: opacity 120ms ease;
      pointer-events: none;
    }

    .staff-main.is-sparse-view {
      padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    .staff-home-shell,
    .staff-screen {
      display: grid;
      gap: 14px;
      padding: 12px 16px 0;
    }

    .staff-main.is-sparse-view .staff-screen {
      gap: 10px;
      padding-top: 10px;
    }

    .staff-topbar,
    .staff-home-today,
    .staff-home-next,
    .staff-home-summary,
    .staff-home-stat-link,
    .staff-home-summary-link,
    .staff-inline-stat,
    .staff-screen-card,
    .staff-panel,
    .staff-card,
    .staff-alert-item,
    .staff-hours-toggle,
    .staff-btn,
    .staff-flash,
    .staff-rota-calendar-card,
    .staff-rota-detail-card,
    .staff-rota-shift-item,
    .staff-rota-open-card,
    .staff-rota-open-btn,
    .staff-rota-action-btn,
    .staff-bottom-nav,
    .staff-bottom-nav .staff-nav-link,
    .staff-bottom-nav .staff-nav-btn,
    .staff-bottom-nav .staff-nav-item,
    .staff-bottom-nav .staff-nav-icon,
    .staff-attendance-state,
    .staff-today-stat-box,
    .staff-rota-calendar-nav-btn,
    .staff-unit-chip,
    .staff-form-note,
    .staff-hours-table tfoot th,
    .staff-mini-tag {
      box-shadow: none !important;
    }

    .staff-home-today,
    .staff-home-next,
    .staff-home-summary {
      position: relative;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-panel);
      background: var(--mobile-card-fill);
      box-shadow: none;
      overflow: hidden;
      backdrop-filter: none;
    }

    .staff-home-today {
      margin-top: 0;
      padding: 18px 16px;
      border-top: 0;
      border-bottom: 0;
    }

    .staff-home-today::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: var(--mobile-card-topline);
      background: var(--mobile-card-accent);
    }

    .staff-home-next {
      margin-top: 0;
      padding: 0 16px 14px;
      border-top: 0;
    }

    .staff-home-summary {
      margin-top: 0;
      padding: 0 16px 16px;
      gap: 0;
      border-top: 0;
      background: var(--ui-surface);
    }

    .staff-home-stat {
      padding: 14px 0 0;
    }

    .staff-home-stat + .staff-home-stat {
      border-left: 1px solid color-mix(in srgb, var(--ui-border) 82%, white 18%);
      margin-left: 14px;
      padding-left: 14px;
    }

    .staff-home-stat-link,
    .staff-home-summary-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: var(--ui-height-control);
      padding: 0 14px;
      border-radius: var(--ui-radius-control);
      border: 1px solid var(--ui-btn-primary-border);
      background: var(--ui-btn-primary-bg);
      color: var(--ui-btn-primary-ink);
      font-weight: 600;
      font-size: var(--ui-size-small);
      text-decoration: none;
      box-shadow: none;
    }

    .staff-home-summary-link {
      margin-top: 12px;
    }

    .staff-home-stat-link:hover,
    .staff-home-summary-link:hover {
      color: var(--ui-btn-primary-ink);
      background: var(--ui-btn-primary-bg-hover);
      transform: none;
      box-shadow: none;
    }

    .staff-home-fire-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-panel);
      background: var(--mobile-card-fill);
      box-shadow: none;
    }

    .staff-home-fire-title,
    .staff-home-fire-meta {
      margin: 0;
    }

    .staff-home-fire-title {
      color: var(--ui-text);
      font-size: var(--ui-size-body);
      font-weight: 800;
      line-height: 1.2;
    }

    .staff-home-fire-meta {
      margin-top: 3px;
      color: var(--ui-text-muted);
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
    }

    .staff-home-fire-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      padding: 0 16px;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-control);
      background: var(--ui-surface);
      color: var(--ui-link);
      font-size: var(--ui-size-small);
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
    }

    .staff-fire-home-section {
      padding-top: 0;
    }

    .staff-home-shell {
      gap: 10px;
      padding: 10px 14px 0;
    }

    .staff-home-next-card,
    .staff-home-mini-card,
    .staff-home-alert-panel,
    .staff-home-link-card {
      border: 1px solid color-mix(in srgb, var(--ui-border) 86%, white 14%);
      background: var(--mobile-card-fill);
      box-shadow: none;
    }

    .staff-home-next-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border-radius: 22px;
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--staff-blue) 8%, white 92%), #fff 54%),
        var(--mobile-card-fill);
    }

    .staff-home-next-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .staff-home-next-head h1 {
      margin: 3px 0 0;
      color: var(--ui-text);
      font-size: 1.55rem;
      line-height: 1.02;
      font-weight: 950;
      letter-spacing: -0.045em;
    }

    .staff-home-date-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: var(--staff-blue);
      color: #fff;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .staff-home-next-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      color: var(--ui-text-muted);
      font-size: 12px;
      font-weight: 750;
      line-height: 1.25;
    }

    .staff-home-next-meta span:not(:last-child)::after {
      content: "·";
      margin-left: 6px;
      color: color-mix(in srgb, var(--ui-text-muted) 55%, transparent);
    }

    .staff-home-next-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .staff-home-next-actions a,
    .staff-home-alert-panel header a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 34px;
      border-radius: 999px;
      border: 1px solid var(--ui-border);
      background: #fff;
      color: var(--staff-blue);
      font-size: 12px;
      font-weight: 900;
      text-decoration: none;
    }

    .staff-home-next-actions a:first-child {
      border-color: var(--staff-blue);
      background: var(--staff-blue);
      color: #fff;
    }

    .staff-home-mini-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .staff-home-mini-card {
      display: grid;
      gap: 4px;
      min-width: 0;
      padding: 11px 12px;
      border-radius: 18px;
    }

    .staff-home-mini-card span,
    .staff-home-link-card span {
      color: var(--ui-text-muted);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .staff-home-mini-card strong {
      overflow: hidden;
      color: var(--ui-text);
      font-size: 14px;
      font-weight: 950;
      line-height: 1.12;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-home-mini-card small {
      overflow: hidden;
      color: var(--ui-text-muted);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.15;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-home-clock-flags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 1px;
    }

    .staff-home-clock-flags small {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      overflow: visible;
      line-height: 1;
    }

    .staff-home-clock-flags b {
      display: inline-flex;
      width: 15px;
      height: 15px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
    }

    .staff-home-clock-flags b.is-ok {
      background: #dcfce7;
      color: #047857;
    }

    .staff-home-clock-flags b.is-warn {
      background: #fef3c7;
      color: #b45309;
    }

    .staff-home-clock-flags b.is-bad {
      background: #fee2e2;
      color: #b91c1c;
    }

    .staff-home-alert-panel {
      display: grid;
      gap: 10px;
      padding: 12px;
      border-radius: 20px;
    }

    .staff-home-alert-panel header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .staff-home-alert-panel header h2 {
      margin: 3px 0 0;
      color: var(--ui-text);
      font-size: 1rem;
      font-weight: 950;
      line-height: 1.15;
    }

    .staff-home-alert-panel header a {
      min-height: 30px;
      padding: 0 12px;
      font-size: 11px;
    }

    .staff-home-alert-list {
      border-radius: 14px;
    }

    .staff-home-alert-row {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      padding: 9px 10px;
    }

    .staff-home-alert-row strong {
      font-size: 13px;
    }

    .staff-home-alert-row span {
      text-align: right;
      font-size: 11px;
      white-space: nowrap;
    }

    .staff-home-link-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .staff-home-link-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      column-gap: 8px;
      row-gap: 4px;
      min-height: 66px;
      padding: 11px 12px;
      border-radius: 18px;
      border: 1px solid color-mix(in srgb, var(--staff-blue) 18%, var(--ui-border));
      background:
        linear-gradient(135deg, color-mix(in srgb, var(--staff-blue) 7%, #fff) 0%, #fff 62%),
        #fff;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
      color: var(--ui-text);
      text-decoration: none;
      position: relative;
      overflow: hidden;
      transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
    }

    .staff-home-link-card::after {
      content: "›";
      z-index: 1;
      grid-column: 2;
      grid-row: 1 / span 2;
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--staff-blue) 13%, #fff);
      color: var(--staff-blue);
      font-size: 22px;
      font-weight: 950;
      line-height: 1;
      box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--staff-blue) 18%, transparent);
    }

    .staff-home-link-card:hover,
    .staff-home-link-card:focus-visible {
      transform: translateY(-1px);
      border-color: color-mix(in srgb, var(--staff-blue) 42%, var(--ui-border));
      box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1);
      outline: none;
    }

    .staff-home-link-card:active {
      transform: translateY(0);
      box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
    }

    .staff-home-link-card span,
    .staff-home-link-card strong {
      grid-column: 1;
      position: relative;
      z-index: 1;
    }

    .staff-home-link-card strong {
      color: var(--ui-text);
      font-size: 14px;
      font-weight: 950;
      line-height: 1.15;
    }

    .staff-home-fire-card {
      padding: 10px 12px;
      border-radius: 18px;
    }

    .staff-home-app-card {
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid color-mix(in srgb, var(--staff-blue) 18%, var(--ui-border));
      border-radius: 24px;
      background:
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.28), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #f7fbff 54%, #eefcff 100%);
      box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    }

    .staff-home-app-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .staff-home-app-title {
      min-width: 0;
    }

    .staff-home-app-title p,
    .staff-home-app-link span,
    .staff-home-app-alerts .staff-home-card-kicker {
      margin: 0;
      color: var(--ui-text-muted);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.09em;
      line-height: 1.1;
      text-transform: uppercase;
    }

    .staff-home-app-title h1 {
      margin: 5px 0 0;
      color: var(--ui-text);
      font-size: 1.55rem;
      font-weight: 950;
      letter-spacing: -0.05em;
      line-height: 1;
    }

    .staff-home-app-date {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 0 11px;
      border-radius: 999px;
      background: var(--staff-blue);
      color: #fff;
      font-size: 11px;
      font-weight: 950;
      white-space: nowrap;
    }

    .staff-home-app-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      color: var(--ui-text-muted);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.2;
    }

    .staff-home-app-meta span:not(:last-child)::after {
      content: "·";
      margin-left: 6px;
      color: color-mix(in srgb, var(--ui-text-muted) 45%, transparent);
    }

    .staff-home-app-clock {
      display: flex;
      align-items: center;
      gap: 9px;
      min-width: 0;
      padding: 8px 10px;
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--ui-text-muted);
      font-size: 11px;
      font-weight: 850;
      line-height: 1.1;
    }

    .staff-home-app-clock span {
      overflow: hidden;
      min-width: 0;
      margin-right: auto;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-home-app-clock small {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      color: var(--ui-text);
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .staff-home-app-clock b {
      display: inline-flex;
      width: 15px;
      height: 15px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: #dcfce7;
      color: #047857;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
    }

    .staff-home-app-clock b.is-warn {
      background: #fef3c7;
      color: #b45309;
    }

    .staff-home-app-actions,
    .staff-home-app-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .staff-home-app-actions a,
    .staff-home-app-link,
    .staff-home-app-strip a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      border: 1px solid color-mix(in srgb, var(--staff-blue) 18%, var(--ui-border));
      border-radius: 999px;
      background: #fff;
      color: var(--staff-blue);
      font-size: 12px;
      font-weight: 950;
      text-decoration: none;
    }

    .staff-home-app-actions a.is-primary {
      border-color: var(--staff-blue);
      background: var(--staff-blue);
      color: #fff;
      box-shadow: 0 10px 22px color-mix(in srgb, var(--staff-blue) 24%, transparent);
    }

    .staff-home-app-alerts {
      padding: 11px;
      border-radius: 20px;
      background: #fff;
    }

    .staff-home-app-alerts .staff-home-alert-list {
      border-radius: 14px;
    }

    .staff-home-app-grid {
      gap: 9px;
    }

    .staff-home-app-link {
      position: relative;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      justify-content: stretch;
      min-height: 64px;
      padding: 11px 12px;
      border-radius: 18px;
      color: var(--ui-text);
      background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--staff-blue) 5%, #fff) 100%);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
      overflow: hidden;
    }

    .staff-home-app-link::after {
      content: "›";
      display: grid;
      grid-column: 2;
      grid-row: 1 / span 2;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--staff-blue) 12%, #fff);
      color: var(--staff-blue);
      font-size: 22px;
      font-weight: 950;
    }

    .staff-home-app-link strong {
      grid-column: 1;
      margin-top: 5px;
      color: var(--ui-text);
      font-size: 14px;
      font-weight: 950;
      line-height: 1.1;
    }

    .staff-home-app-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .staff-home-app-strip a {
      min-height: 34px;
      border-radius: 14px;
      color: var(--ui-text);
      background: #fff;
      font-size: 11px;
    }

    .staff-home-app-actions a:active,
    .staff-home-app-link:active,
    .staff-home-app-strip a:active {
      transform: translateY(1px);
    }

    .staff-home-attention {
      display: grid;
      gap: 8px;
      padding: 11px;
      border: 1px solid color-mix(in srgb, var(--ui-border) 86%, white 14%);
      border-radius: 20px;
      background: #fff;
    }

    .staff-home-attention-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 24px;
    }

    .staff-home-attention-head strong {
      color: var(--ui-text);
      font-size: 14px;
      font-weight: 950;
      line-height: 1.1;
    }

    .staff-home-attention-head span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      padding: 0 9px;
      border-radius: 999px;
      background: color-mix(in srgb, var(--staff-blue) 9%, #fff);
      color: var(--staff-blue);
      font-size: 11px;
      font-weight: 950;
      white-space: nowrap;
    }

    .staff-home-attention-list {
      display: grid;
      overflow: hidden;
      border: 1px solid color-mix(in srgb, var(--ui-border) 86%, white 14%);
      border-radius: 14px;
    }

    .staff-home-attention-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 38px;
      padding: 8px 10px;
      border-top: 1px solid color-mix(in srgb, var(--ui-border) 86%, white 14%);
      background: #fff;
      color: var(--ui-text);
      text-decoration: none;
    }

    .staff-home-attention-row:first-child {
      border-top: 0;
    }

    .staff-home-attention-row strong {
      overflow: hidden;
      font-size: 13px;
      font-weight: 950;
      line-height: 1.15;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-home-attention-row span {
      color: var(--ui-text-muted);
      font-size: 11px;
      font-weight: 850;
      line-height: 1;
      white-space: nowrap;
    }

    .staff-home-attention-row.is-empty {
      background: color-mix(in srgb, var(--staff-green) 7%, #fff);
    }

    .staff-home-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
    }

    .staff-home-actions a {
      display: flex;
      min-width: 0;
      min-height: 48px;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 0 12px;
      border: 1px solid color-mix(in srgb, var(--staff-blue) 18%, var(--ui-border));
      border-radius: 16px;
      background: #fff;
      color: var(--ui-text);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
      text-decoration: none;
    }

    .staff-home-actions a::after {
      content: "›";
      display: inline-grid;
      flex: 0 0 auto;
      width: 24px;
      height: 24px;
      place-items: center;
      border-radius: 999px;
      background: color-mix(in srgb, var(--staff-blue) 12%, #fff);
      color: var(--staff-blue);
      font-size: 20px;
      font-weight: 950;
      line-height: 1;
    }

    .staff-home-actions strong {
      overflow: hidden;
      color: var(--ui-text);
      font-size: 13px;
      font-weight: 950;
      line-height: 1.1;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-home-actions span {
      display: inline-flex;
      min-width: 20px;
      height: 20px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      background: #ef4444;
      color: #fff;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
    }

    .staff-home-actions a:active {
      transform: translateY(1px);
    }

    .staff-screen-stack {
      display: grid;
      gap: 10px;
    }

    .staff-screen-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .staff-screen-eyebrow {
      margin: 0 0 6px;
      font-size: var(--ui-size-small);
      font-weight: 700;
      line-height: var(--ui-line-small);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: color-mix(in srgb, var(--ui-text-muted) 94%, white 6%);
    }

    .staff-screen-title {
      margin: 0;
      font-size: var(--ui-size-title);
      line-height: var(--ui-line-title);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    .staff-screen-subtitle {
      margin: 6px 0 0;
      max-width: 270px;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      color: var(--ui-text-muted);
    }

    .staff-screen-empty-card {
      padding: 18px 16px;
    }

    .staff-inline-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .staff-inline-stat {
      position: relative;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-panel-muted);
      background: var(--mobile-card-fill);
      padding: 13px 12px 12px;
      overflow: hidden;
      box-shadow: none;
    }

    .staff-inline-stat::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: var(--mobile-card-topline);
      background: var(--mobile-card-accent);
      opacity: 0.9;
    }

    .staff-inline-stat.staff-accent-orange::before {
      background: var(--mobile-card-accent-warm);
    }

    .staff-inline-stat.staff-accent-purple::before {
      background: var(--mobile-card-accent-primary);
    }

    .staff-inline-stat strong {
      display: block;
      margin-top: 4px;
      font-size: var(--ui-size-section);
      line-height: var(--ui-line-section);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    .staff-inline-stat span {
      display: block;
      margin-top: 5px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      color: var(--ui-text-muted);
    }

    .staff-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: var(--ui-height-control);
      padding: 0 12px;
      border-radius: var(--ui-radius-control);
      font-size: var(--ui-size-small);
      font-weight: 600;
      white-space: nowrap;
    }

    .staff-chip-primary {
      background: var(--ui-surface-muted);
      border: 1px solid var(--ui-border);
      color: var(--ui-accent-ink);
      box-shadow: none;
    }

    .staff-chip-muted {
      background: var(--ui-surface-muted);
      border: 1px solid var(--ui-border);
      color: var(--ui-text-muted);
      box-shadow: none;
    }

    .staff-fire-screen {
      gap: 10px;
    }

    .staff-fire-header {
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 4px;
    }

    .staff-fire-header .staff-screen-subtitle {
      margin-top: 3px;
      max-width: none;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
    }

    .staff-fire-refresh {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 32px;
      padding: 0 12px;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-control);
      background: var(--ui-surface);
      color: var(--ui-link);
      font-size: 11px;
      font-weight: 800;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;
    }

    .staff-fire-list {
      border: 1px solid var(--ui-border);
      border-radius: 14px;
      overflow: hidden;
      background: var(--mobile-card-fill);
      box-shadow: none;
    }

    .staff-fire-list-head,
    .staff-fire-row {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
    }

    .staff-fire-list-head {
      padding: 7px 9px;
      background: var(--ui-surface-muted);
      border-bottom: 1px solid var(--ui-border);
      color: var(--ui-text-muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .staff-fire-row {
      min-height: 38px;
      padding: 6px 9px;
      border-bottom: 1px solid var(--ui-border);
      font-size: var(--ui-size-small);
      line-height: 1.25;
    }

    .staff-fire-row:last-child {
      border-bottom: 0;
    }

    .staff-fire-person,
    .staff-fire-meta,
    .staff-fire-time {
      min-width: 0;
    }

    .staff-fire-person strong {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--ui-text);
      font-size: var(--ui-size-small);
      line-height: 1.2;
    }

    .staff-fire-person small {
      display: block;
      margin-top: 1px;
      color: var(--ui-text-muted);
      font-size: 10px;
      line-height: 1.1;
    }

    .staff-fire-meta {
      overflow: hidden;
      color: var(--ui-text-muted);
      font-size: 11px;
      line-height: 1.15;
    }

    .staff-fire-meta span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-fire-time {
      justify-self: end;
      white-space: nowrap;
      color: var(--ui-text);
      font-size: 11px;
      font-weight: 700;
    }

    .staff-screen-card,
    .staff-panel,
    .staff-card {
      position: relative;
      background: var(--mobile-card-fill);
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-panel);
      padding: 16px;
      box-shadow: none;
      overflow: hidden;
      backdrop-filter: none;
    }

    .staff-screen-card::before,
    .staff-panel::before,
    .staff-card::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: var(--mobile-card-topline);
      background: var(--mobile-card-accent);
      opacity: 0.92;
    }

    .staff-screen-card-tinted {
      background: var(--mobile-card-fill-muted);
    }

    .staff-flat-stack {
      display: grid;
      gap: 12px;
    }

    .staff-accent-blue::before {
      background: var(--mobile-card-accent);
    }

    .staff-accent-orange::before {
      background: var(--mobile-card-accent-warm);
    }

    .staff-accent-red::before {
      background: var(--staff-red);
    }

    .staff-accent-purple::before {
      background: var(--mobile-card-accent-primary);
    }

    .staff-alert-item.staff-accent-blue::before {
      background: var(--staff-blue);
    }

    .staff-alert-item.staff-accent-orange::before {
      background: var(--staff-orange);
    }

    .staff-alert-item.staff-accent-red::before {
      background: var(--staff-red);
    }

    .staff-alert-item.staff-accent-purple::before {
      background: var(--staff-purple);
    }

    .staff-card-kicker {
      margin: 0;
      padding-top: 4px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: color-mix(in srgb, var(--ui-text-muted) 94%, white 6%);
    }

    .staff-alert-stack {
      display: grid;
      gap: 8px;
      margin-top: 0;
    }

    .staff-notice-stack {
      margin-bottom: 10px;
    }

    .staff-alert-item {
      position: relative;
      padding: 12px 14px;
      border-top: 0;
      border: 1px solid color-mix(in srgb, var(--ui-border) 82%, var(--ui-accent) 18%);
      border-radius: 18px;
      box-shadow: var(--staff-card-shadow-soft);
    }

    .staff-alert-item:first-child {
      border-top: 0;
    }

    .staff-alert-item.staff-accent-blue {
      background: var(--staff-blue-soft);
      border-color: color-mix(in srgb, var(--ui-accent) 24%, white 76%);
    }

    .staff-alert-item.staff-accent-orange {
      background: var(--staff-warning-soft);
      border-color: color-mix(in srgb, var(--ui-warning) 28%, white 72%);
    }

    .staff-alert-item.staff-accent-red {
      background: var(--staff-danger-soft);
      border-color: color-mix(in srgb, var(--ui-danger) 28%, white 72%);
    }

    .staff-alert-item.staff-accent-purple {
      background: var(--ui-primary-soft);
      border-color: color-mix(in srgb, var(--ui-primary) 22%, white 78%);
    }

    .staff-alert-close {
      position: absolute;
      top: 8px;
      right: 0;
      border: 0;
      background: transparent;
      color: var(--ui-text-muted);
      font-size: 18px;
      line-height: 1;
      font-weight: 700;
      cursor: pointer;
      padding: 2px 4px;
      z-index: 2;
    }

    .staff-alert-close:hover {
      color: var(--ui-text);
    }

    .staff-alert-item::before {
      display: none;
    }

    .staff-alert-item.is-empty::before {
      display: none;
    }

    .staff-alert-item .staff-feed-title,
    .staff-alert-item .staff-feed-note,
    .staff-alert-item .staff-alert-link {
      margin-left: 0;
    }

    .staff-alert-copy {
      position: relative;
      padding: 0;
      padding-right: 30px;
    }

    .staff-alert-item.is-action-alert .staff-alert-close {
      top: 10px;
      right: 10px;
      border-radius: 999px;
      background: color-mix(in srgb, white 92%, var(--ui-surface) 8%);
      box-shadow: none;
    }

    .staff-alert-item .staff-rota-open-card {
      padding: 0;
      border-radius: 0;
      border: 0;
      box-shadow: none;
      background: transparent;
    }

    .staff-alert-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      margin-top: 10px;
      padding: 0 14px;
      border-radius: 16px;
      border: 1px solid var(--staff-blue);
      background: var(--staff-blue);
      box-shadow: none;
      font-size: var(--ui-size-body);
      font-weight: 600;
      color: #ffffff;
      line-height: 1;
      text-decoration: none;
    }

    .staff-icon {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
      flex: 0 0 auto;
    }

    .staff-today-hero {
      display: grid;
      gap: 10px;
      margin-top: 8px;
    }

    .staff-today-hero-top {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 8px;
    }

    .staff-today-hero-time {
      margin: 0;
      font-size: 30px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: -0.04em;
      color: var(--staff-text);
    }

    .staff-today-hero-hours {
      font-size: 12px;
      font-weight: 700;
      color: var(--staff-muted);
    }

    .staff-unit-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      width: fit-content;
      padding: 7px 10px;
      border-radius: 999px;
      background: var(--staff-blue-soft);
      font-size: 12px;
      font-weight: 700;
      color: var(--staff-accent-ink);
    }

    .staff-today-stat-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .staff-today-stat-box {
      padding: 11px 12px;
      border-radius: 14px;
      background: var(--staff-surface-raised);
      border: 1px solid color-mix(in srgb, var(--ui-accent) 16%, white 84%);
    }

    .staff-today-stat-box strong {
      display: block;
      margin-bottom: 4px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }

    .staff-today-stat-box span {
      display: block;
      font-size: 14px;
      font-weight: 700;
      color: var(--staff-text);
    }

    .staff-attendance-state {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-width: 34px;
      min-height: 34px;
      border-radius: 999px;
      padding: 0 10px;
      border: 1px solid color-mix(in srgb, var(--ui-accent) 18%, white 82%);
      background: var(--ui-surface);
      color: var(--staff-muted);
    }

    .staff-attendance-state.ok {
      border-color: color-mix(in srgb, var(--ui-success) 28%, white 72%);
      background: var(--staff-success-soft);
      color: var(--staff-success);
    }

    .staff-attendance-state.missed {
      border-color: color-mix(in srgb, var(--ui-danger) 28%, white 72%);
      background: var(--staff-danger-soft);
      color: var(--staff-danger);
    }

    .staff-attendance-state.pending {
      border-color: color-mix(in srgb, var(--ui-accent) 18%, white 82%);
      background: color-mix(in srgb, var(--ui-accent-soft) 58%, white 42%);
      color: color-mix(in srgb, var(--ui-text-muted) 88%, var(--ui-accent-ink) 12%);
    }

    .staff-attendance-state-group {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .staff-today-stat-box .staff-attendance-state .staff-icon {
      width: 14px;
      height: 14px;
    }

    .staff-today-note {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 700;
      color: var(--ui-accent-ink);
      flex-wrap: wrap;
    }

    .staff-note-sep {
      color: color-mix(in srgb, var(--ui-text-muted) 70%, white 30%);
    }

    .staff-panel-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }

    .staff-panel-title {
      margin: 0;
      font-size: var(--ui-size-section);
      line-height: var(--ui-line-section);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    .staff-panel-subtitle {
      margin: 4px 0 0;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      color: var(--ui-text-muted);
    }

    .staff-shortcut-grid {
      display: grid;
      gap: 10px;
    }

    .staff-request-switch-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 6px;
      border: 1px solid var(--staff-line);
      border-radius: 16px;
      background: var(--ui-surface-muted);
    }

    .staff-shortcut-card {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 15px;
      border-radius: var(--ui-radius-panel-muted);
      border: 1px solid var(--ui-border);
      background: var(--ui-surface);
      text-decoration: none;
      color: inherit;
      overflow: hidden;
      box-shadow: none;
    }

    .staff-shortcut-card.is-current {
      border-color: color-mix(in srgb, var(--ui-accent) 20%, white 80%);
      box-shadow: none;
      transform: translateY(-1px);
    }

    .staff-request-switch {
      min-height: 54px;
      padding: 9px 10px;
      border-radius: 12px;
      justify-content: center;
      text-align: center;
      box-shadow: none;
      background: transparent;
      border-color: transparent;
    }

    .staff-request-switch::before {
      display: none;
    }

    .staff-request-switch:hover {
      background: color-mix(in srgb, var(--ui-surface) 72%, transparent);
      border-color: color-mix(in srgb, var(--ui-border) 88%, white 12%);
      transform: none;
      box-shadow: none;
    }

    .staff-request-switch.is-current {
      background: var(--ui-surface);
      border-color: var(--ui-border-strong);
      box-shadow: none;
      transform: none;
    }

    .staff-shortcut-card::before {
      content: "";
      position: absolute;
      left: 14px;
      right: 14px;
      top: 0;
      height: 3px;
      border-radius: 0 0 999px 999px;
      background: var(--staff-blue);
      opacity: 0.92;
    }

    .staff-shortcut-main {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      min-width: 0;
    }

    .staff-shortcut-icon {
      display: none;
    }

    .staff-shortcut-copy {
      display: grid;
      gap: 2px;
      min-width: 0;
      justify-items: center;
    }

    .staff-shortcut-copy strong {
      display: block;
      font-size: 13px;
      color: var(--staff-text);
    }

    .staff-shortcut-copy span {
      margin: 0;
      font-size: 10px;
      color: var(--staff-muted);
    }

    .staff-request-switch.is-current .staff-shortcut-copy strong {
      color: var(--staff-navy);
    }

    .staff-request-switch.is-current .staff-shortcut-copy span {
      color: #58718a;
    }

    .staff-hours-launch {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .staff-hours-launch-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 6px;
    }

    .staff-hours-launch-grid.is-three-up {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .staff-hours-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 10px 14px;
      border-radius: 16px;
      border: 1px solid var(--staff-blue);
      background: var(--staff-blue);
      text-decoration: none;
      font-size: var(--ui-size-small);
      font-weight: 600;
      color: #ffffff;
      box-shadow: none;
      white-space: nowrap;
    }

    .staff-hours-toggle.is-current {
      border-color: var(--staff-blue);
      background: var(--staff-blue);
      color: #ffffff;
    }

    .staff-hours-toggle:hover {
      color: #ffffff;
      transform: translateY(-1px);
      background: var(--staff-primary-deep);
      box-shadow: none;
    }

    .staff-hours-toggle.is-full-width {
      display: flex;
      width: 100%;
    }

    .staff-hours-summary-grid {
      display: grid;
      gap: 8px;
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-hours-summary-card {
      border: 1px solid var(--staff-line);
      border-radius: 16px;
      background: var(--staff-surface-raised);
      padding: 12px;
    }

    .staff-hours-summary-card strong {
      display: block;
      font-size: 18px;
      line-height: 1.15;
      color: var(--staff-text);
    }

    .staff-hours-summary-card span {
      display: block;
      margin-top: 4px;
      font-size: 11px;
      line-height: 1.35;
      color: var(--staff-muted);
    }

    .staff-hours-list {
      display: grid;
      gap: 8px;
    }

    .staff-hours-table-wrap {
      overflow-x: auto;
      overflow-y: hidden;
      border: 1px solid var(--ui-border);
      border-radius: 14px;
      background: linear-gradient(180deg, var(--ui-surface) 0%, color-mix(in srgb, var(--ui-surface) 82%, var(--ui-surface-muted) 18%) 100%);
      width: 100%;
      box-shadow: inset 0 1px 0 color-mix(in srgb, white 90%, transparent);
      -webkit-overflow-scrolling: touch;
    }

    .staff-hours-table {
      width: 100%;
      border-collapse: collapse;
      table-layout: auto;
      min-width: 100%;
    }

    .staff-hours-table th,
    .staff-hours-table td {
      padding: 12px 14px;
      border-bottom: 1px solid color-mix(in srgb, var(--ui-border) 86%, white 14%);
      text-align: left;
      font-size: 12px;
      color: var(--staff-text);
      vertical-align: middle;
    }

    .staff-hours-table th {
      background: color-mix(in srgb, var(--ui-surface-muted) 84%, white 16%);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--staff-muted);
    }

    .staff-hours-table tbody tr:nth-child(even) td {
      background: color-mix(in srgb, var(--ui-surface-muted) 68%, transparent);
    }

    .staff-hours-table tbody tr:hover td {
      background: color-mix(in srgb, var(--ui-accent-soft) 74%, white 26%);
    }

    .staff-hours-table tbody tr:last-child td {
      border-bottom: 0;
    }

    .staff-hours-table tfoot th {
      padding: 12px 14px;
      border-top: 1px solid var(--ui-border);
      background: var(--staff-blue-soft);
      font-size: 10px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #58718a;
    }

    .staff-hours-table th.hours-num,
    .staff-hours-table td.hours-num {
      white-space: nowrap;
      width: 112px;
      min-width: 112px;
      text-align: right;
    }

    .staff-hours-table td.hours-num {
      font-weight: 800;
      color: var(--staff-navy);
      font-variant-numeric: tabular-nums;
    }

    .staff-hours-table td.hours-shift {
      color: var(--staff-muted);
      white-space: nowrap;
    }

    @media (max-width: 640px) {
      .staff-hours-table th,
      .staff-hours-table td,
      .staff-hours-table tfoot th {
        padding: 11px 12px;
      }

      .staff-hours-table th.hours-num,
      .staff-hours-table td.hours-num {
        width: 92px;
        min-width: 92px;
      }
    }

    .staff-hours-screen {
      gap: 10px;
    }

    .staff-hours-hero {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 14px;
      border: 1px solid color-mix(in srgb, var(--staff-blue) 36%, white 64%);
      border-radius: 22px;
      padding: 16px;
      background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--staff-blue) 20%, transparent) 0, transparent 44%),
        linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--staff-blue-soft) 74%, white 26%) 100%);
      box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    }

    .staff-hours-hero p,
    .staff-hours-hero h1,
    .staff-hours-hero span {
      margin: 0;
    }

    .staff-hours-hero p {
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--staff-muted);
    }

    .staff-hours-hero h1 {
      margin-top: 4px;
      font-size: 22px;
      line-height: 1.05;
      color: var(--staff-navy);
    }

    .staff-hours-hero span {
      display: block;
      margin-top: 5px;
      font-size: 12px;
      color: var(--staff-muted);
    }

    .staff-hours-hero strong {
      flex: 0 0 auto;
      font-size: 31px;
      line-height: 1;
      letter-spacing: -0.05em;
      color: var(--staff-navy);
      font-variant-numeric: tabular-nums;
    }

    .staff-hours-month-nav {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 7px;
    }

    .staff-hours-month-nav a {
      display: inline-flex;
      min-height: 40px;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--staff-line);
      border-radius: 14px;
      background: #ffffff;
      color: var(--staff-navy);
      font-size: 12px;
      font-weight: 800;
      text-decoration: none;
    }

    .staff-hours-month-nav a:nth-child(2) {
      border-color: color-mix(in srgb, var(--staff-blue) 36%, white 64%);
      background: var(--staff-blue-soft);
      color: var(--staff-blue);
    }

    .staff-hours-summary-grid {
      gap: 7px;
    }

    .staff-hours-summary-card {
      padding: 11px 12px;
      border-radius: 17px;
      background:
        linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--staff-surface-raised) 86%, var(--staff-blue-soft) 14%) 100%);
    }

    .staff-hours-summary-card span {
      margin: 0;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--staff-muted);
    }

    .staff-hours-summary-card strong {
      margin-top: 5px;
      font-size: 20px;
      color: var(--staff-navy);
      font-variant-numeric: tabular-nums;
    }

    .staff-hours-summary-card.is-leave {
      border-color: #fed7aa;
      background: linear-gradient(180deg, #fffaf0 0%, #fff7ed 100%);
    }

    .staff-hours-list-panel {
      overflow: hidden;
      border: 1px solid var(--staff-line);
      border-radius: 22px;
      background: #ffffff;
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    }

    .staff-hours-list-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 14px;
      border-bottom: 1px solid var(--staff-line);
      background: color-mix(in srgb, var(--staff-surface) 86%, var(--staff-blue-soft) 14%);
    }

    .staff-hours-list-head h2,
    .staff-hours-list-head p {
      margin: 0;
    }

    .staff-hours-list-head h2 {
      font-size: 17px;
      line-height: 1.1;
      color: var(--staff-navy);
    }

    .staff-hours-list-head p {
      margin-top: 3px;
      font-size: 11px;
      color: var(--staff-muted);
    }

    .staff-hours-list-head > span {
      flex: 0 0 auto;
      padding: 6px 9px;
      border-radius: 999px;
      background: #ffffff;
      color: var(--staff-muted);
      font-size: 11px;
      font-weight: 800;
    }

    .staff-hours-day-list {
      display: grid;
    }

    .staff-hours-day-row {
      display: grid;
      grid-template-columns: 76px minmax(0, 1fr) 52px 58px;
      gap: 10px;
      align-items: center;
      min-height: 48px;
      padding: 8px 12px;
      border-bottom: 1px solid color-mix(in srgb, var(--staff-line) 84%, white 16%);
    }

    .staff-hours-day-row:last-child {
      border-bottom: 0;
    }

    .staff-hours-day-row time {
      color: var(--staff-muted);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.25;
    }

    .staff-hours-day-row div strong,
    .staff-hours-day-row div span {
      display: block;
      min-width: 0;
    }

    .staff-hours-day-row div > strong {
      overflow: hidden;
      color: var(--staff-navy);
      font-size: 13px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-hours-day-row div > span {
      margin-top: 3px;
      overflow: hidden;
      color: var(--staff-muted);
      font-size: 11px;
      line-height: 1.2;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-hours-attendance-flags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 5px;
      color: var(--staff-muted);
      font-size: 10px;
      font-weight: 850;
      line-height: 1;
    }

    .staff-hours-attendance-flags span {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      margin: 0;
      color: inherit;
      font-size: inherit;
      line-height: inherit;
      white-space: nowrap;
    }

    .staff-hours-attendance-flags b {
      display: inline-flex;
      width: 15px;
      height: 15px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
    }

    .staff-hours-attendance-flags b.is-ok {
      background: #dcfce7;
      color: #047857;
    }

    .staff-hours-attendance-flags b.is-warn {
      background: #fef3c7;
      color: #b45309;
    }

    .staff-hours-attendance-flags b.is-bad {
      background: #fee2e2;
      color: #b91c1c;
    }

    .staff-hours-row-shift {
      min-width: 0;
    }

    .staff-hours-row-shift span {
      display: inline-flex;
      max-width: 100%;
      align-items: center;
      padding: 3px 8px;
      border-radius: 8px;
      background: var(--staff-blue-soft);
      color: var(--staff-blue);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.05em;
      line-height: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .staff-hours-row-clock {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 2px;
      min-width: 0;
      color: var(--staff-muted);
      font-size: 13px;
      font-weight: 950;
      font-variant-numeric: tabular-nums;
      line-height: 1;
      white-space: nowrap;
    }

    .staff-hours-day-row .staff-hours-row-clock span {
      display: inline-flex;
      width: 15px;
      height: 15px;
      align-items: center;
      justify-content: center;
      margin: 0;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0;
      line-height: 1;
      text-transform: none;
    }

    .staff-hours-row-clock b {
      color: var(--staff-muted);
      font-size: 11px;
      font-weight: 850;
      line-height: 1;
    }

    .staff-hours-row-clock span.is-ok {
      background: #dcfce7;
      color: #047857;
    }

    .staff-hours-row-clock span.is-warn {
      background: #fef3c7;
      color: #b45309;
    }

    .staff-hours-row-clock span.is-missing {
      background: #fee2e2;
      color: #b91c1c;
    }

    .staff-hours-day-row.is-leave .staff-hours-row-clock {
      visibility: hidden;
    }

    .staff-hours-row-side {
      display: grid;
      justify-items: end;
      min-width: 0;
    }

    .staff-hours-row-side strong {
      color: var(--staff-navy);
      font-size: 14px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
      line-height: 1;
    }

    .staff-hours-day-row.is-leave {
      background: #fffaf0;
    }

    .staff-hours-day-row.is-leave .staff-hours-row-shift span {
      background: #ffedd5;
      color: #c2410c;
    }

    .staff-hours-day-row.is-pending .staff-hours-row-shift span {
      background: #fef3c7;
      color: #b45309;
    }

    .staff-open-shifts-screen {
      gap: 10px;
    }

    .staff-open-shifts-hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      border: 1px solid color-mix(in srgb, var(--staff-blue) 24%, white 76%);
      border-radius: 20px;
      padding: 13px 14px;
      background: linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--staff-blue-soft) 66%, white 34%) 100%);
    }

    .staff-open-shifts-hero p,
    .staff-open-shifts-hero h1 {
      margin: 0;
    }

    .staff-open-shifts-hero p {
      color: var(--staff-muted);
      font-size: 10px;
      font-weight: 950;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .staff-open-shifts-hero h1 {
      margin-top: 3px;
      color: var(--staff-navy);
      font-size: 21px;
      line-height: 1.05;
      font-weight: 950;
      letter-spacing: -0.04em;
    }

    .staff-open-shifts-hero > span {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 30px;
      padding: 0 10px;
      border-radius: 999px;
      background: var(--staff-blue);
      color: #ffffff;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .staff-open-shifts-hero > span.is-empty {
      border: 1px solid var(--staff-line);
      background: #ffffff;
      color: var(--staff-muted);
    }

    .staff-open-shifts-mini-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .staff-open-shifts-mini-stats span,
    .staff-open-shifts-focus {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 9px;
      border: 1px solid var(--staff-line);
      border-radius: 999px;
      background: #ffffff;
      color: var(--staff-muted);
      font-size: 11px;
      font-weight: 850;
    }

    .staff-open-shifts-stack {
      display: grid;
      gap: 8px;
    }

    .staff-open-shifts-panel {
      display: grid;
      gap: 8px;
    }

    .staff-open-shifts-empty {
      display: grid;
      gap: 3px;
      padding: 14px;
      border: 1px solid var(--staff-line);
      border-radius: 18px;
      background: #ffffff;
    }

    .staff-open-shifts-empty strong {
      color: var(--staff-navy);
      font-size: 15px;
      line-height: 1.2;
      font-weight: 950;
    }

    .staff-open-shifts-empty span {
      color: var(--staff-muted);
      font-size: 12px;
      line-height: 1.3;
    }

    .staff-shortcut-tail {
      display: none;
    }

    .staff-shortcut-card.is-current .staff-shortcut-tail {
      background: var(--staff-blue);
      color: #ffffff;
    }

    .staff-shortcut-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 34px;
      height: 34px;
      padding: 0 10px;
      border-radius: 12px;
      background: #e7f6ff;
      font-size: 12px;
      font-weight: 800;
      color: var(--staff-blue);
      box-shadow: inset 0 0 0 1px rgba(15, 115, 184, 0.08);
      align-self: center;
      margin-top: 0;
    }

    .staff-request-panel {
      padding-top: 8px;
    }

    .staff-request-panel .staff-panel-header {
      margin-bottom: 10px;
    }

    .staff-feed-list,
    .staff-offer-list,
    .staff-profile-list {
      display: grid;
      gap: 8px;
    }

    .staff-feed-item,
    .staff-offer-item,
    .staff-profile-item {
      position: relative;
      padding: 14px 15px;
      border-radius: 18px;
      border: 1px solid var(--staff-line);
      background: var(--staff-surface-raised);
      overflow: hidden;
      box-shadow: var(--staff-card-shadow-soft);
    }

    .staff-feed-item::before,
    .staff-offer-item::before,
    .staff-profile-item::before {
      content: "";
      position: absolute;
      left: 14px;
      right: 14px;
      top: 0;
      height: 3px;
      border-radius: 0 0 999px 999px;
      background: var(--staff-blue);
      opacity: 0.92;
    }

    .staff-feed-title,
    .staff-offer-title {
      margin: 0;
      font-size: var(--ui-size-section);
      line-height: var(--ui-line-section);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    .staff-feed-meta,
    .staff-offer-meta,
    .staff-feed-note {
      margin: 4px 0 0;
      font-size: var(--ui-size-body);
      line-height: 1.58;
      color: var(--ui-text-muted);
    }

    .staff-section-kicker {
      margin: 0 0 8px;
      font-size: var(--ui-size-small);
      line-height: var(--ui-line-small);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: color-mix(in srgb, var(--ui-text-muted) 94%, white 6%);
    }

    .staff-profile-panel-grid {
      display: grid;
      gap: 10px;
    }

    .staff-tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 10px;
    }

    .staff-mini-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 9px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      border: 1px solid var(--ui-border);
      background: var(--staff-surface-soft);
      color: var(--ui-text-muted);
    }

    .staff-mini-tag.pending {
      background: var(--staff-warning-soft);
      border-color: color-mix(in srgb, var(--ui-warning) 32%, white 68%);
      color: var(--staff-warning);
    }

    .staff-mini-tag.approved {
      background: var(--staff-blue-soft);
      border-color: color-mix(in srgb, var(--ui-accent) 22%, white 78%);
      color: var(--staff-accent-ink);
    }

    .staff-mini-tag.info {
      background: var(--staff-blue-soft);
      border-color: color-mix(in srgb, var(--ui-accent) 30%, white 70%);
      color: var(--staff-blue);
    }

    .staff-mini-tag.rejected {
      background: color-mix(in srgb, var(--ui-danger-bg) 70%, white 30%);
      border-color: color-mix(in srgb, var(--ui-danger) 30%, white 70%);
      color: var(--ui-danger);
    }

    .staff-audit-action-card {
      display: grid;
      gap: 10px;
      padding-top: 16px;
    }

    .staff-audit-action-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: start;
      gap: 10px;
    }

    .staff-audit-action-head .staff-mini-tag {
      max-width: 132px;
      justify-content: center;
      text-align: center;
      line-height: 1.15;
      white-space: normal;
    }

    .staff-audit-action-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding-top: 2px;
    }

    .staff-audit-action-tags .staff-mini-tag {
      padding: 5px 8px;
      font-size: 10px;
    }

    .staff-audit-action-detail {
      display: grid;
      gap: 3px;
      border: 1px solid color-mix(in srgb, var(--ui-border) 82%, white 18%);
      border-radius: 14px;
      background: var(--staff-surface-soft);
      padding: 10px 11px;
    }

    .staff-audit-action-detail.is-finding {
      background: color-mix(in srgb, var(--staff-warning-soft) 68%, white 32%);
      border-color: color-mix(in srgb, var(--ui-warning) 22%, white 78%);
    }

    .staff-audit-action-detail span {
      font-size: 10px;
      font-weight: 850;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }

    .staff-audit-action-detail p {
      margin: 0;
      font-size: 12px;
      line-height: 1.45;
      font-weight: 650;
      color: var(--ui-text);
    }

    .staff-audit-action-form {
      border-top: 1px solid color-mix(in srgb, var(--ui-border) 80%, white 20%);
      padding-top: 10px;
    }

    .staff-audit-action-card .staff-section-kicker {
      margin: 0 0 3px;
      font-size: 9px;
      letter-spacing: 0.09em;
      color: var(--staff-blue);
    }

    .staff-audit-action-form .staff-btn.primary {
      min-height: 42px;
      font-weight: 850;
    }

    .staff-training-list {
      display: grid;
      gap: 8px;
    }

    .staff-training-card {
      border: 1px solid var(--ui-border);
      border-radius: 16px;
      background: var(--ui-surface);
      padding: 11px 12px;
      box-shadow: none;
    }

    .staff-training-card.needs-response {
      border-color: color-mix(in srgb, var(--ui-warning) 30%, var(--ui-border) 70%);
      background: color-mix(in srgb, var(--staff-warning-soft) 32%, white 68%);
    }

    .staff-training-card.is-readonly {
      background: color-mix(in srgb, var(--ui-surface) 94%, var(--staff-surface-soft) 6%);
    }

    .staff-training-card-top {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 5px;
    }

    .staff-training-title {
      margin: 0;
      color: var(--ui-text);
      font-size: 15px;
      line-height: 1.18;
      font-weight: 800;
    }

    .staff-training-note {
      margin: 4px 0 0;
      color: var(--ui-text-muted);
      font-size: 11px;
      line-height: 1.3;
    }

    .staff-training-note.is-collapsed {
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .staff-training-read-more {
      margin: 3px 0 0;
      border: 0;
      background: transparent;
      color: var(--staff-blue);
      font-size: 11px;
      font-weight: 800;
      padding: 0;
      text-align: left;
    }

    .staff-training-meta-line {
      display: flex;
      flex-wrap: wrap;
      gap: 5px 8px;
      margin: 0;
      color: var(--ui-text-muted);
      font-size: 11px;
      line-height: 1.25;
      font-weight: 650;
    }

    .staff-training-meta-line span:not(:last-child)::after {
      content: "·";
      margin-left: 8px;
      color: color-mix(in srgb, var(--ui-text-muted) 60%, transparent 40%);
    }

    .staff-training-actions {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 10px;
    }

    .staff-training-action-form {
      margin: 0;
      display: block;
    }

    .staff-training-action-form .staff-btn {
      width: 100%;
      min-height: 38px;
      justify-content: center;
    }

    .staff-form-stack {
      display: grid;
      gap: 12px;
    }
    .staff-mobile-form-shell {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      gap: 14px;
    }
    .staff-main.staff-login-main{
      display:flex;
      align-items:flex-start;
      justify-content:flex-start;
      min-height:calc(100dvh - 64px);
      padding:16px 16px calc(96px + env(safe-area-inset-bottom, 0px));
      background:#ffffff;
    }
    .staff-login-main > *{
      width:min(100%, 32rem);
    }
    .staff-login-head{
      margin-bottom:6px;
    }
    .staff-login-alert{
      border:1px solid var(--staff-line);
      border-radius:18px;
      padding:13px 14px;
      font-size:var(--ui-size-body);
      font-weight:600;
      line-height:1.45;
      box-shadow:none;
    }
    .staff-login-alert.is-ok{
      border-color:#d8e6f3;
      background:var(--staff-blue-soft);
      color:var(--staff-blue);
    }
    .staff-login-alert.is-warn{
      border-color:color-mix(in srgb, var(--ui-warning) 24%, white 76%);
      background:var(--ui-warning-bg);
      color:color-mix(in srgb, var(--ui-warning) 76%, var(--ui-text) 24%);
    }
    .staff-login-alert.is-err{
      border-color:#f0c2ba;
      background:var(--staff-danger-soft);
      color:var(--staff-danger);
    }
    .staff-login-note{
      margin:2px 0 0;
      text-align:center;
      font-size:var(--ui-size-small);
      line-height:var(--ui-line-small);
      color:var(--ui-text-muted);
    }
    .staff-login-copyright {
      margin-top: auto;
      padding-top: 8px;
      padding-bottom: 2px;
      text-align:center;
      font-size:var(--ui-size-small);
      line-height:var(--ui-line-small);
      color:var(--ui-text-muted);
    }
    .staff-state-screen {
      width:min(100%, 32rem);
      gap:18px;
      padding-top:2px;
    }
    .staff-state-head {
      gap:10px;
    }
    .staff-state-panel {
      gap:10px;
      padding:16px;
      border-radius:20px;
    }
    .staff-state-actions {
      gap:12px;
    }
    .staff-state-actions .staff-btn {
      width:100%;
      justify-content:center;
    }
    @media (min-width: 640px) {
      .staff-main.staff-login-main{
        padding-inline:20px;
      }
      .staff-state-screen {
        gap:20px;
      }
    }
    .staff-mobile-field-card {
      display: grid;
      gap: 10px;
      border: 1px solid color-mix(in srgb, var(--ui-border) 88%, white 12%);
      border-radius: calc(var(--ui-radius-panel) + 2px);
      background: color-mix(in srgb, var(--ui-surface) 92%, white 8%);
      padding: 14px;
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
    }
    .staff-mobile-field-card-compact {
      gap: 8px;
      padding: 12px;
    }
    .staff-mobile-field-head {
      display: grid;
      gap: 3px;
    }
    .portal-shell.staff-theme .staff-mobile-field-kicker,
    .portal-shell.applicant-theme .staff-mobile-field-kicker {
      margin: 0 0 6px;
      font-size: 14px;
      line-height: 1.25;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--ui-text-muted);
    }
    .staff-mobile-field-title {
      margin: 0;
      font-size: var(--ui-size-section);
      line-height: var(--ui-line-section);
      font-weight: 700;
      color: var(--ui-text);
      letter-spacing: -0.03em;
    }

    .staff-form-grid {
      display: grid;
      gap: 10px;
    }

    .staff-form-grid.two {
      grid-template-columns: minmax(0, 1fr);
    }

    @media (min-width: 560px) {
      .staff-form-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .staff-form-grid.profile-inline {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .staff-field.profile-inline-row {
      display: grid;
      grid-template-columns: minmax(112px, 160px) minmax(0, 1fr);
      align-items: center;
      gap: 10px;
    }

    .staff-field.profile-inline-row label {
      margin-bottom: 0;
    }

    .staff-field.profile-inline-row .staff-input {
      min-width: 0;
    }

    .staff-field label {
      display: block;
      margin-bottom: 6px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--staff-muted);
    }
    .staff-field-ionic label {
      margin-bottom: 6px;
      font-size: 10px;
      letter-spacing: 0.12em;
      color: color-mix(in srgb, var(--staff-muted) 86%, white 14%);
    }

    .staff-input,
    .staff-select,
    .staff-textarea {
      width: 100%;
      border: 1px solid var(--ui-border);
      border-radius: calc(var(--ui-radius-control) + 2px);
      background: color-mix(in srgb, var(--ui-surface-muted) 56%, white 44%);
      padding: 12px 13px;
      font-size: 14px;
      line-height: 1.35;
      color: var(--ui-text);
      box-shadow: none;
    }
    .staff-select {
      min-height: 50px;
    }

    .staff-textarea {
      resize: vertical;
      min-height: 108px;
    }

    .staff-input:focus,
    .staff-select:focus,
    .staff-textarea:focus {
      outline: none;
      border-color: color-mix(in srgb, var(--ui-primary) 38%, white 62%);
      box-shadow: 0 0 0 4px color-mix(in srgb, var(--ui-primary) 14%, transparent);
    }

    .staff-leave-submit-btn { box-shadow: none !important; }
    .staff-mobile-submit-card {
      display: grid;
      gap: 12px;
      border: 1px solid color-mix(in srgb, var(--ui-primary) 18%, var(--ui-border) 82%);
      border-radius: calc(var(--ui-radius-panel) + 2px);
      background: linear-gradient(180deg, color-mix(in srgb, var(--ui-primary-soft) 72%, white 28%) 0%, color-mix(in srgb, var(--ui-surface) 94%, white 6%) 100%);
      padding: 14px;
    }
    .staff-mobile-submit-copy {
      display: grid;
      gap: 4px;
    }
    .staff-file-input {
      padding-top: 11px;
      padding-bottom: 11px;
      background: color-mix(in srgb, var(--ui-surface) 94%, white 6%);
    }
    .staff-reminder-inline-card {
      display: grid;
      gap: 8px;
      border: 1px solid color-mix(in srgb, var(--ui-primary) 18%, var(--ui-border) 82%);
      border-radius: calc(var(--ui-radius-panel) - 2px);
      background: linear-gradient(180deg, color-mix(in srgb, var(--ui-primary-soft) 70%, white 30%) 0%, color-mix(in srgb, var(--ui-surface) 96%, white 4%) 100%);
      padding: 12px 13px;
    }
    .staff-reminder-inline-card.is-complete {
      border-color: color-mix(in srgb, #16a34a 18%, var(--ui-border) 82%);
      background: linear-gradient(180deg, color-mix(in srgb, #dcfce7 68%, white 32%) 0%, color-mix(in srgb, var(--ui-surface) 96%, white 4%) 100%);
    }
    .staff-reminder-inline-title {
      margin: 0;
      font-size: 13px;
      line-height: 1.4;
      font-weight: 700;
      color: var(--ui-text);
    }
    .staff-reminder-inline-copy {
      margin: 0;
      font-size: 12px;
      line-height: 1.55;
      color: var(--ui-text-muted);
    }
    .staff-missing-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .staff-missing-pill {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      border: 1px solid color-mix(in srgb, var(--ui-primary) 22%, white 78%);
      border-radius: 999px;
      background: color-mix(in srgb, var(--ui-primary-soft) 74%, white 26%);
      padding: 0 11px;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--ui-text);
    }
    body.staff-reminder-open {
      overflow: hidden;
    }
    .staff-reminder-overlay[hidden] {
      display: none;
    }
    .staff-reminder-overlay {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      padding: 20px 14px calc(88px + env(safe-area-inset-bottom, 0px));
    }
    .staff-reminder-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.48);
      backdrop-filter: blur(6px);
    }
    .staff-reminder-sheet {
      position: relative;
      z-index: 1;
      width: min(100%, 520px);
      border: 1px solid color-mix(in srgb, var(--ui-border) 88%, white 12%);
      border-radius: calc(var(--ui-radius-panel) + 8px);
      background: color-mix(in srgb, var(--ui-surface) 96%, white 4%);
      box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
      overflow: hidden;
    }
    .staff-reminder-sheet-head,
    .staff-reminder-sheet-body,
    .staff-reminder-sheet-actions {
      padding-left: 16px;
      padding-right: 16px;
    }
    .staff-reminder-sheet-head {
      padding-top: 16px;
      padding-bottom: 10px;
      display: grid;
      gap: 6px;
      border-bottom: 1px solid color-mix(in srgb, var(--ui-border) 90%, white 10%);
    }
    .staff-reminder-sheet-body {
      padding-top: 14px;
      padding-bottom: 14px;
    }
    .staff-reminder-sheet-actions {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      padding-top: 0;
      padding-bottom: 16px;
    }
    .staff-btn.ghost {
      border: 1px solid color-mix(in srgb, var(--ui-border) 84%, white 16%);
      background: color-mix(in srgb, var(--ui-surface-muted) 70%, white 30%);
      color: var(--ui-text);
    }

    .staff-profile-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .staff-profile-key {
      display: block;
      margin-bottom: 4px;
      font-size: var(--ui-size-small);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: var(--ui-text-muted);
    }

    .staff-profile-value {
      display: block;
      font-size: var(--ui-size-body);
      font-weight: 700;
      color: var(--ui-text);
    }

    .staff-profile-action {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-width: 74px;
      min-height: 38px;
      padding: 0 12px;
      border-radius: 14px;
      border: 1px solid var(--staff-button-primary-border);
      background: var(--staff-button-primary-bg);
      font-size: var(--ui-size-small);
      font-weight: 600;
      color: var(--staff-button-primary-ink);
      box-shadow: none;
    }

    .staff-form-note {
      border: 1px solid var(--staff-line);
      border-radius: 18px;
      background: rgba(246, 250, 255, 0.94);
      padding: 13px 14px;
      font-size: var(--ui-size-small);
      color: var(--ui-text-muted);
      line-height: 1.5;
      box-shadow: none;
    }

    .staff-form-note-tight {
      padding: 12px 13px;
      margin: 0;
    }

    .staff-form-note-row + .staff-form-note-row {
      margin-top: 0.25rem;
    }

    .staff-form-note-value {
      color: var(--ui-text);
      font-weight: 600;
    }

    .staff-flash {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 16px 16px 0;
      border-radius: 18px;
      padding: 13px 14px;
      font-size: var(--ui-size-body);
      font-weight: 600;
      border: 1px solid var(--staff-line);
      background: rgba(249, 252, 255, 0.92);
      color: var(--staff-text);
      box-shadow: none;
    }

    .staff-flash.ok {
      border-color: #d8e6f3;
      background: var(--staff-blue-soft);
      color: var(--staff-blue);
    }

    .staff-flash.err {
      border-color: #f0c2ba;
      background: var(--staff-danger-soft);
      color: var(--staff-danger);
    }

    .staff-rota-shell {
      gap: 12px;
      padding-top: 18px;
    }

    .staff-rota-calendar-card,
    .staff-rota-detail-card {
      position: relative;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-panel);
      background: var(--mobile-card-fill);
      overflow: hidden;
      box-shadow: none;
      backdrop-filter: none;
    }

    .staff-rota-calendar-card::before,
    .staff-rota-detail-card::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: var(--mobile-card-topline);
      background: var(--mobile-card-accent-primary);
      opacity: 0.92;
      z-index: 1;
    }

    .staff-rota-detail-card::before {
      background: var(--mobile-card-accent);
    }

    .staff-rota-calendar-head {
      padding: 15px 16px;
      border-bottom: 1px solid var(--staff-line);
      background: var(--mobile-card-fill);
      position: relative;
      z-index: 2;
    }

    .staff-rota-calendar-title {
      font-size: calc(var(--ui-size-section) + 1px);
      line-height: var(--ui-line-section);
      font-weight: 700;
      color: var(--ui-text);
      letter-spacing: -0.03em;
    }

    .staff-rota-calendar-month {
      min-width: 112px;
      text-align: center;
      font-size: 14px;
      font-weight: 800;
      color: var(--staff-navy);
    }

    .staff-rota-calendar-nav-btn {
      border: 1px solid color-mix(in srgb, var(--ui-text) 8%, white 92%);
      border-radius: 14px;
      background: color-mix(in srgb, var(--ui-surface) 98%, transparent);
      color: var(--staff-navy);
      box-shadow: none;
    }

    .staff-rota-calendar-grid {
      padding: 14px 14px 16px;
      gap: 7px;
    }

    .staff-rota-calendar-empty {
      background: transparent;
    }

    .staff-rota-calendar-day {
      height: 43px;
      border-radius: 16px;
      border-color: color-mix(in srgb, var(--ui-border-strong) 72%, transparent);
      background: color-mix(in srgb, var(--ui-surface) 90%, transparent);
      color: color-mix(in srgb, var(--ui-text) 82%, var(--ui-text-muted) 18%);
      box-shadow: inset 0 1px 0 color-mix(in srgb, white 80%, transparent);
    }

    .staff-rota-calendar-day.is-future-has-rota,
    .staff-rota-calendar-day.is-past-has-rota {
      background: var(--ui-surface);
      border-color: color-mix(in srgb, var(--ui-border) 90%, white 10%);
      color: color-mix(in srgb, var(--ui-text) 82%, var(--ui-text-muted) 18%);
    }

    .staff-rota-calendar-day.is-selected,
    .staff-rota-calendar-day.is-selected.is-today {
      background: var(--staff-blue);
      border-color: var(--staff-blue);
      color: var(--mobile-topbar-ink);
      box-shadow: none;
    }

    .staff-rota-calendar-day.is-today {
      border-color: var(--staff-accent-ink);
      box-shadow: inset 0 0 0 1px var(--staff-accent-ink);
    }

    .staff-rota-calendar-dot.future {
      background: var(--staff-blue);
    }

    .staff-app .staff-rota-calendar-day.is-selected .staff-rota-calendar-dot.future,
    .staff-app .staff-rota-calendar-day.is-selected.is-today .staff-rota-calendar-dot.future {
      background: #ffffff;
    }

    .staff-app .staff-rota-calendar-day {
      position: relative;
    }

    .staff-app .staff-rota-calendar-daynum {
      position: static !important;
      display: inline-block;
      line-height: 1;
    }

    .staff-app .staff-rota-calendar-day .staff-rota-calendar-count {
      position: absolute !important;
      top: -5px !important;
      right: -5px !important;
      left: auto !important;
      bottom: auto !important;
      transform: none !important;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 18px;
      padding: 0 4px;
      border-radius: 999px;
      background: var(--staff-orange);
      box-shadow: 0 0 0 2px var(--ui-surface);
      color: var(--mobile-topbar-ink);
      font-size: 10px;
      font-weight: 800;
      line-height: 18px;
      text-align: center;
      z-index: 3;
    }

    .staff-app .staff-rota-calendar-day .staff-rota-calendar-count.is-text {
      min-width: 22px;
      padding: 0 6px;
      box-shadow: 0 0 0 2px var(--ui-surface);
    }

    .staff-app .staff-rota-calendar-day .staff-rota-calendar-count.is-text.is-annual {
      background: var(--ui-warning);
      color: var(--mobile-topbar-ink);
    }

    .staff-app .staff-rota-calendar-day .staff-rota-calendar-count.is-text.is-sick {
      background: var(--ui-danger);
      color: var(--mobile-topbar-ink);
    }

    .staff-app .staff-rota-calendar-day .staff-rota-calendar-count.is-text.is-dayoff {
      background: color-mix(in srgb, var(--ui-success) 68%, var(--ui-text) 32%);
      color: var(--mobile-topbar-ink);
    }

    .staff-app .staff-rota-calendar-day .staff-rota-calendar-count.is-text.is-default {
      background: color-mix(in srgb, var(--ui-text-muted) 78%, var(--ui-text) 22%);
      color: var(--mobile-topbar-ink);
    }

    .staff-app .staff-rota-calendar-day.is-selected .staff-rota-calendar-count {
      background: var(--staff-orange);
      color: var(--mobile-topbar-ink);
    }

    .staff-app .staff-rota-calendar-day.is-past-day .staff-rota-calendar-count,
    .staff-app .staff-rota-calendar-day.is-past-day.is-selected .staff-rota-calendar-count {
      background: color-mix(in srgb, var(--ui-text-muted) 90%, white 10%);
      color: var(--mobile-topbar-ink);
    }

    .staff-rota-detail-head,
    .staff-rota-detail-section {
      position: relative;
      z-index: 2;
    }

    .staff-rota-detail-head {
      padding: 16px;
    }

    .staff-rota-detail-title {
      margin: 0;
      font-size: calc(var(--ui-size-section) + 1px);
      line-height: var(--ui-line-section);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--ui-text);
    }

    .staff-rota-detail-subtitle {
      margin: 4px 0 0;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      color: var(--ui-text-muted);
    }

    .staff-rota-detail-title-meta {
      margin-left: 6px;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      font-weight: 700;
      letter-spacing: 0.03em;
      color: var(--ui-text-muted);
    }

    .staff-rota-detail-section {
      border-top: 1px solid var(--ui-border);
      padding: 16px;
    }

    .staff-rota-shift-item,
    .staff-rota-open-card {
      position: relative;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-panel-muted);
      background: var(--mobile-card-fill-muted);
      box-shadow: none;
      overflow: hidden;
    }

    .staff-rota-shift-item::before,
    .staff-rota-open-card::before {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: var(--mobile-card-topline);
      background: var(--mobile-card-accent);
      opacity: 0.92;
    }

    .staff-rota-shift-list,
    .staff-rota-open-list {
      display: grid;
      gap: 10px;
      margin-top: 0;
    }

    .staff-rota-simple-list {
      display: grid;
      gap: 8px;
      padding: 0 16px 16px;
    }

    .staff-rota-detail-card.is-compact .staff-rota-detail-head {
      padding-bottom: 10px;
    }

    .staff-rota-simple-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 6px 0;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
    }

    .staff-rota-simple-row + .staff-rota-simple-row {
      border-top: 1px solid color-mix(in srgb, var(--ui-border) 82%, white 18%);
    }

    .staff-rota-simple-label {
      color: var(--ui-text-muted);
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      font-weight: 700;
      letter-spacing: 0.02em;
      min-width: 0;
    }

    .staff-rota-segment-pill {
      display: inline-flex;
      align-items: center;
      margin-left: 6px;
      padding: 1px 6px;
      border-radius: 999px;
      border: 1px solid color-mix(in srgb, var(--ui-accent) 24%, white 76%);
      background: color-mix(in srgb, var(--staff-blue-soft) 82%, white 18%);
      color: var(--ui-accent-strong);
      font-size: 10px;
      line-height: 1.4;
      font-weight: 800;
      letter-spacing: 0.02em;
      white-space: nowrap;
    }

    .staff-rota-simple-value {
      color: var(--ui-text);
      font-size: calc(var(--ui-size-body) + 1px);
      line-height: var(--ui-line-section);
      font-weight: 800;
      text-align: right;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .staff-rota-simple-note,
    .staff-rota-shift-note,
    .staff-rota-open-note,
    .staff-rota-detail-section-hint {
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      color: var(--ui-text-muted);
    }

    .staff-rota-simple-note {
      margin: -2px 0 2px;
      padding: 0;
    }

    .staff-rota-shift-badge {
      border-color: color-mix(in srgb, var(--ui-accent) 24%, white 76%);
      background: var(--staff-blue-soft);
      color: var(--staff-accent-ink);
    }

    .staff-rota-open-card.is-swap {
      border-color: color-mix(in srgb, var(--ui-warning) 26%, white 74%);
    }

    .staff-rota-open-card.is-swap::before {
      background: var(--mobile-card-accent-warm);
    }

    .staff-rota-open-card.is-focus,
    .staff-feed-item.is-focus {
      border-color: color-mix(in srgb, var(--ui-accent) 44%, white 56%);
      box-shadow: none;
    }

    .staff-rota-shift-row,
    .staff-rota-open-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
    }

    .staff-rota-shift-inline,
    .staff-rota-open-top > div {
      min-width: 0;
    }

    .staff-rota-shift-item,
    .staff-rota-open-card {
      padding: 14px 14px 12px;
    }

    .staff-rota-shift-date {
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--ui-text-muted);
      white-space: nowrap;
    }

    .staff-rota-shift-time,
    .staff-rota-open-time {
      font-size: calc(var(--ui-size-section) + 2px);
      line-height: var(--ui-line-section);
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--ui-text);
    }

    .staff-rota-open-meta {
      margin-top: 5px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px 10px;
      font-size: var(--ui-size-body);
      line-height: var(--ui-line-body);
      color: var(--ui-text-muted);
    }

    .staff-rota-shift-attendance,
    .staff-rota-open-actions {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid color-mix(in srgb, var(--ui-border) 82%, white 18%);
    }

    .staff-rota-open-btn.accept {
      background: var(--ui-btn-primary-bg);
      border-color: var(--ui-btn-primary-border);
      color: var(--ui-btn-primary-ink);
      box-shadow: none;
    }

    .staff-rota-open-btn.reject {
      background: var(--ui-surface);
      border-color: color-mix(in srgb, var(--ui-danger) 30%, white 70%);
      color: var(--ui-danger);
      box-shadow: none;
    }

    .staff-app .staff-rota-shell {
      gap: 10px;
      padding-top: 10px;
    }

    .staff-app .staff-rota-detail-card {
      border-radius: 18px;
    }

    .staff-app .staff-rota-detail-card::before {
      height: 2px;
    }

    .staff-app .staff-rota-detail-head {
      padding: 11px 14px;
    }

    .staff-app .staff-rota-detail-title {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 6px;
      font-size: 17px;
      line-height: 1.15;
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    .staff-app .staff-rota-detail-title-meta,
    .staff-app .staff-rota-detail-subtitle {
      margin: 0;
      font-size: 12px;
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: 0;
      color: var(--ui-text-muted);
    }

    .staff-app .staff-rota-detail-section {
      padding: 10px 12px 12px;
    }

    .staff-app .staff-rota-open-list,
    .staff-app .staff-rota-shift-list {
      gap: 8px;
    }

    .staff-app .staff-rota-open-card,
    .staff-app .staff-rota-shift-item {
      padding: 10px 12px;
      border-radius: 16px;
    }

    .staff-app .staff-rota-open-card::before,
    .staff-app .staff-rota-shift-item::before {
      height: 0;
    }

    .staff-app .staff-rota-open-top {
      align-items: center;
      gap: 8px;
    }

    .staff-app .staff-rota-open-time,
    .staff-app .staff-rota-shift-time {
      margin: 0;
      font-size: 17px;
      line-height: 1.15;
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .staff-app .staff-rota-open-meta {
      display: grid;
      gap: 2px;
      margin-top: 4px;
      font-size: 12px;
      line-height: 1.22;
    }

    .staff-app .staff-rota-open-meta span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .staff-app .staff-rota-open-status {
      max-width: 92px;
      padding: 4px 7px;
      font-size: 9px;
      line-height: 1;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .staff-app .staff-rota-open-note {
      margin: 7px 0 0;
      font-size: 11px;
      line-height: 1.3;
    }

    .staff-app .staff-rota-open-actions {
      gap: 7px;
      margin-top: 9px;
      padding-top: 9px;
    }

    .staff-app .staff-rota-open-actions form,
    .staff-app .staff-action-form {
      gap: 7px;
    }

    .staff-app .staff-audit-action-head {
      grid-template-columns: minmax(0, 1fr);
    }

    .staff-app .staff-audit-action-head .staff-mini-tag {
      max-width: none;
      justify-self: start;
    }

    .staff-app .staff-rota-swap-select-label {
      margin-bottom: 4px;
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.08em;
    }

    .staff-app .staff-rota-swap-select {
      min-height: 38px;
      padding: 8px 10px;
      border-radius: 12px;
      font-size: 11px;
    }

    .staff-app .staff-rota-open-btn,
    .staff-app .staff-rota-action-btn {
      min-height: 38px;
      border-radius: 14px;
      font-size: 12px;
      font-weight: 850;
    }

    .staff-app .staff-rota-open-btn.reject {
      background: #ffffff;
    }

    .staff-app .staff-rota-simple-list {
      gap: 4px;
      padding: 0 12px 12px;
    }

    .staff-app .staff-rota-simple-row {
      min-height: 32px;
      padding: 5px 0;
      font-size: 12px;
      line-height: 1.25;
    }

    .staff-app .staff-rota-simple-label {
      font-size: 12px;
      line-height: 1.25;
      font-weight: 850;
    }

    .staff-app .staff-rota-simple-value {
      font-size: 12px;
      line-height: 1.25;
      font-weight: 850;
    }

    .staff-app .staff-rota-simple-note,
    .staff-app .staff-rota-shift-note,
    .staff-app .staff-rota-detail-section-hint {
      font-size: 11px;
      line-height: 1.3;
    }

    .staff-bottom-nav {
      position: fixed;
      z-index: 40;
      left: 50%;
      right: auto;
      transform: translateX(-50%);
      width: min(100vw, var(--staff-shell-width));
      background: var(--staff-bottom-nav-bg);
      border-top: 0;
      box-shadow: none;
      border-radius: 0;
      bottom: 0;
      backdrop-filter: none;
    }

    .staff-bottom-nav-grid {
      display: grid;
      width: 100%;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 0;
      padding: 0;
    }

    .staff-copy-body {
      margin: 0;
      font-size: var(--ui-size-body);
      line-height: 1.58;
      color: var(--ui-text-muted);
    }

    .staff-bottom-nav > div {
      padding: 7px 6px calc(10px + env(safe-area-inset-bottom, 0px));
      gap: 0;
    }

    .staff-nav-link {
      display: grid;
      place-items: center;
      gap: 6px;
      width: 100%;
      min-width: 0;
      border-radius: 13px;
      min-height: 56px;
      padding: 8px 2px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-decoration: none;
      color: color-mix(in srgb, white 72%, transparent);
      background: transparent;
      transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
    }

    .staff-nav-link:hover {
      background: color-mix(in srgb, white 12%, transparent);
      color: var(--mobile-topbar-ink);
    }

    .staff-nav-link.active {
      color: var(--mobile-topbar-ink);
      background: color-mix(in srgb, white 18%, transparent);
      box-shadow: none;
      transform: none;
    }

    .staff-nav-link.is-disabled {
      color: color-mix(in srgb, white 38%, transparent);
      background: color-mix(in srgb, white 4%, transparent);
      pointer-events: none;
    }

    .staff-nav-icon {
      position: relative;
      width: 30px;
      height: 28px;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: color-mix(in srgb, white 12%, transparent);
      box-shadow: none;
    }

    .staff-nav-link.active .staff-nav-icon {
      background: color-mix(in srgb, white 22%, transparent);
    }

    .staff-nav-link.is-disabled .staff-nav-icon {
      background: color-mix(in srgb, white 5%, transparent);
    }

    .staff-nav-icon .staff-icon {
      width: 15px;
      height: 15px;
    }
    .staff-nav-alert-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      min-width: 16px;
      height: 16px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid rgba(255, 255, 255, 0.92);
      background: #dc2626;
      color: #fff;
      font-size: 10px;
      line-height: 1;
      font-weight: 800;
      box-shadow: 0 8px 16px rgba(220, 38, 38, 0.25);
    }

    .staff-nav-label {
      line-height: 1;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    @media (max-width: 640px) {
      .staff-bottom-nav {
        left: 0;
        right: 0;
        transform: none;
        width: 100vw;
        max-width: none;
        border-radius: 0;
      }
    }

    @media (max-width: 430px) {
      body.portal-shell {
        background:
          linear-gradient(
            180deg,
            color-mix(in srgb, var(--mobile-shell-dark) 92%, black 8%) 0%,
            color-mix(in srgb, var(--mobile-shell-dark) 80%, black 20%) 13%,
            var(--ui-bg) 13%,
            color-mix(in srgb, var(--ui-bg) 92%, white 8%) 100%
          );
      }

      .staff-app {
        width: 100%;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
      }

      .staff-screen-header {
        align-items: stretch;
      }
    }

    /* Applicant dashboard: keep the two-action shell compact and balanced on phones. */
    .portal-shell.applicant-theme .staff-topbar-inner {
      gap: 10px;
      padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    }

    .portal-shell.applicant-theme .staff-topbar-brand {
      gap: 10px;
    }

    .portal-shell.applicant-theme .staff-topbar-logo {
      width: 38px;
      height: 38px;
      flex-basis: 38px;
      border-radius: 13px;
    }

    .portal-shell.applicant-theme .staff-topbar-meta {
      font-size: 11px;
      line-height: 1.25;
      letter-spacing: 0.07em;
    }

    .portal-shell.applicant-theme .staff-topbar-powered {
      margin-top: 2px;
      font-size: 11px;
      line-height: 1.25;
    }

    .portal-shell.applicant-theme .staff-topbar-action {
      min-height: 34px;
      padding-inline: 12px;
      border-radius: 999px;
      font-size: 11px;
      white-space: nowrap;
    }

    .portal-shell.applicant-theme .app-mobile-main {
      padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .portal-shell.applicant-theme .applicant-mobile-dashboard {
      gap: 10px;
      padding: 10px 12px 16px;
    }

    .portal-shell.applicant-theme .applicant-mobile-dashboard > .app-mobile-card,
    .portal-shell.applicant-theme .applicant-mobile-dashboard > .app-mobile-card-muted {
      padding: 12px;
      border-radius: 16px;
    }

    .portal-shell.applicant-theme .applicant-mobile-account-card,
    .portal-shell.applicant-theme .applicant-mobile-current-card {
      gap: 10px;
    }

    .portal-shell.applicant-theme .applicant-mobile-progress {
      gap: 8px;
      padding: 11px 12px;
      border-radius: 14px;
    }

    .portal-shell.applicant-theme .applicant-mobile-progress .app-mobile-progress-track {
      height: 7px;
    }

    .portal-shell.applicant-theme .applicant-mobile-current-card .app-mobile-actions {
      gap: 8px;
    }

    .portal-shell.applicant-theme .applicant-mobile-current-card .app-mobile-btn {
      min-height: 40px;
    }

    .portal-shell.applicant-theme .applicant-mobile-new-application-form {
      display: grid;
      gap: 10px;
    }

    .portal-shell.applicant-theme .applicant-mobile-new-application-form .staff-select {
      width: 100%;
      min-height: 42px;
      border: 1px solid var(--ui-border);
      border-radius: var(--ui-radius-control);
      background: var(--ui-surface);
      color: var(--ui-text);
      padding: 0 38px 0 12px;
    }

    .portal-shell.applicant-theme .applicant-mobile-new-application-form .app-mobile-btn {
      min-height: 40px;
    }

    .portal-shell.applicant-theme .staff-bottom-nav-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .portal-shell.applicant-theme .staff-bottom-nav > div {
      padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .portal-shell.applicant-theme .staff-nav-link {
      min-height: 52px;
      padding-block: 6px;
      border-radius: 12px;
    }
