:root {
  --staff-bg: #eff4f8;
  --staff-surface: rgba(255, 255, 255, 0.94);
  --staff-surface-strong: #ffffff;
  --staff-line: rgba(12, 39, 72, 0.12);
  --staff-ink: #0c2748;
  --staff-muted: #5d6f85;
  --staff-accent: #173f73;
  --staff-accent-strong: #0d2c53;
  --staff-shadow: 0 28px 70px rgba(12, 39, 72, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--staff-ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 123, 201, 0.14), transparent 36%),
    radial-gradient(circle at bottom right, rgba(18, 58, 103, 0.08), transparent 34%),
    linear-gradient(180deg, #f8fbfd, var(--staff-bg));
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.staff-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 20px 32px;
}

.staff-card {
  width: min(520px, 100%);
}

.staff-workspace {
  width: min(1100px, 100%);
}

.staff-card,
.staff-workspace-inner {
  padding: 40px 34px 32px;
  border: 1px solid var(--staff-line);
  border-radius: 32px;
  background: linear-gradient(180deg, var(--staff-surface-strong), var(--staff-surface));
  box-shadow: var(--staff-shadow);
}

.staff-card {
  text-align: center;
}

.staff-logo {
  width: min(220px, 72%);
  margin: 0 auto 22px;
  display: block;
}

.staff-logo.small {
  width: min(200px, 70%);
  margin-bottom: 18px;
}

.staff-kicker,
.staff-active-user-label {
  margin: 0;
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--staff-muted);
}

.staff-title {
  margin: 10px 0 18px;
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.05;
}

.staff-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.staff-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.staff-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--staff-muted);
}

.staff-code-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.staff-passcode-row {
  display: grid;
  grid-template-columns: repeat(4, 60px);
  justify-content: center;
  gap: 12px;
}

.staff-keypad {
  width: min(100%, 360px);
  margin: 2px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.staff-keypad-button {
  min-height: 78px;
  padding: 0 10px;
  border: 1px solid var(--staff-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(110, 171, 231, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 244, 249, 0.94));
  color: var(--staff-ink);
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 14px 28px rgba(12, 39, 72, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
  touch-action: manipulation;
  user-select: none;
}

.staff-keypad-button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 34px rgba(12, 39, 72, 0.12);
}

.staff-keypad-button:active {
  transform: translateY(1px) scale(0.98);
}

.staff-keypad-button:focus-visible {
  outline: 2px solid rgba(23, 63, 115, 0.24);
  outline-offset: 2px;
}

.staff-keypad-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.staff-keypad-button-action {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--staff-line);
  border-radius: 18px;
  background: #fff;
  color: var(--staff-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-code-segment {
  text-align: center;
  font-weight: 700;
}

.staff-passcode-segment {
  min-height: 60px;
  padding: 0;
  border-radius: 999px;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.staff-field input:focus {
  outline: 2px solid rgba(23, 63, 115, 0.18);
  border-color: rgba(23, 63, 115, 0.4);
}

.staff-button,
.staff-secondary-button,
.staff-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.staff-button {
  border: 0;
  background: linear-gradient(180deg, var(--staff-accent), var(--staff-accent-strong));
  color: #fff;
}

.staff-secondary-button,
.staff-signout {
  border: 1px solid var(--staff-line);
  background: #ffffff;
  color: var(--staff-ink);
}

.staff-button:hover,
.staff-secondary-button:hover,
.staff-signout:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(13, 44, 83, 0.14);
}

.staff-button:disabled,
.staff-secondary-button:disabled,
.staff-signout:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.staff-message,
.staff-note {
  margin: 16px 0 0;
  font-size: 14px;
}

.staff-note {
  color: var(--staff-muted);
}

.staff-note-tight {
  margin-top: 0;
}

.staff-message {
  min-height: 20px;
  color: #9c3027;
}

.staff-message.success {
  color: #0d6a4d;
}

.staff-workspace-message {
  margin-top: 10px;
}

.staff-secondary-button {
  width: 100%;
  margin-top: 18px;
}

.staff-workspace {
  display: grid;
  gap: 18px;
}

.staff-workspace-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.staff-active-user {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--staff-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(12, 39, 72, 0.08);
}

.staff-active-user strong {
  font-size: 1rem;
}

.staff-signout {
  min-width: 122px;
  padding: 0 20px;
}

.staff-workspace-inner {
  text-align: center;
}

.staff-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  justify-items: center;
}

.staff-action-option {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.staff-action-image-button {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 32px;
  background: transparent;
  isolation: isolate;
  box-shadow: none;
  transition: transform 160ms ease, opacity 140ms ease;
}

.staff-action-image-button::before {
  content: "";
  position: absolute;
  inset: 12% 16%;
  z-index: 2;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 255, 255, 0.72) 49%,
    rgba(255, 255, 255, 0) 64%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 220% 100%;
  background-position: 180% 0;
  border-radius: 30px;
  opacity: 0;
  mix-blend-mode: screen;
  transition: background-position 520ms ease, opacity 180ms ease;
  pointer-events: none;
}

.staff-action-image-button:hover,
.staff-action-image-button:focus-visible {
  transform: translateY(-4px) scale(1.02);
}

.staff-action-image-button:hover::before,
.staff-action-image-button:focus-visible::before,
.staff-action-image-button.is-activating::before {
  opacity: 0.88;
  background-position: -30% 0;
}

.staff-action-image-button:focus-visible {
  outline: 2px solid rgba(23, 63, 115, 0.24);
  outline-offset: 6px;
}

.staff-action-image-button:active,
.staff-action-image-button.is-activating {
  transform: translateY(1px) scale(0.97);
}

.staff-action-image-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.staff-action-icon,
.staff-action-label {
  position: relative;
  z-index: 1;
}

.staff-action-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 20px 34px rgba(12, 39, 72, 0.16));
}

.staff-action-label {
  font-family: "Sora", "IBM Plex Sans", sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.1;
}

.staff-placeholder-shell {
  padding-top: 32px;
  padding-bottom: 32px;
}

.staff-placeholder-card {
  text-align: center;
}

.staff-placeholder-icon {
  width: min(150px, 48vw);
  margin: 0 auto 22px;
  display: block;
  filter: drop-shadow(0 18px 32px rgba(12, 39, 72, 0.14));
}

.staff-placeholder-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.staff-placeholder-actions .staff-button,
.staff-placeholder-actions .staff-secondary-button {
  width: 100%;
}

.staff-placeholder-actions .staff-secondary-button {
  margin-top: 0;
}

.staff-noscript {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff4e5;
  color: #7b4c0f;
  border: 1px solid rgba(123, 76, 15, 0.18);
}

@media (max-width: 920px) {
  .staff-workspace {
    width: min(760px, 100%);
  }

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

@media (max-width: 640px) {
  .staff-shell {
    padding: 32px 16px 24px;
  }

  .staff-card,
  .staff-workspace-inner {
    padding: 34px 22px 26px;
    border-radius: 24px;
  }

  .staff-workspace-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-signout {
    width: 100%;
  }

  .staff-code-row {
    gap: 8px;
  }

  .staff-passcode-row {
    grid-template-columns: repeat(4, minmax(0, 56px));
    gap: 10px;
  }

  .staff-keypad {
    width: 100%;
    gap: 10px;
  }

  .staff-keypad-button {
    min-height: 72px;
    border-radius: 22px;
    font-size: 1.4rem;
  }

  .staff-action-grid {
    grid-template-columns: 1fr;
  }

  .staff-action-image-button {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
}
