/* ============================================
   STAFF PUBLIC FRONT — Premium staff UX
   Matches admin polish; light, mobile-first
   ============================================ */

.staff-public-shell {
    --staff-surface: #ffffff;
    --staff-surface-elevated: #ffffff;
    --staff-ink: #0f172a;
    --staff-ink-muted: #64748b;
    --staff-border: rgba(15, 23, 42, 0.08);
    --staff-header-bg: rgba(10, 15, 26, 0.92);
    --staff-card-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.08);
    --staff-card-radius: 20px;
    --staff-max: 720px;
    --staff-max-wide: 960px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
    color: var(--staff-ink);
    background: #f8fafc;
}

[data-theme="dark"] .staff-public-shell {
    --staff-surface: #111827;
    --staff-surface-elevated: #1e293b;
    --staff-ink: #f1f5f9;
    --staff-ink-muted: #94a3b8;
    --staff-border: rgba(255, 255, 255, 0.08);
    --staff-header-bg: rgba(6, 9, 16, 0.94);
    --staff-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    background: #070b14;
}

/* Background */
.staff-public-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.staff-public-bg__mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -15%, color-mix(in srgb, var(--primary-color) 22%, transparent), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 50%, color-mix(in srgb, var(--primary-color) 12%, transparent), transparent),
        radial-gradient(ellipse 40% 35% at 0% 80%, rgba(124, 58, 237, 0.1), transparent);
}

.staff-public-bg__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.5;
    animation: staff-public-float 10s ease-in-out infinite;
}

.staff-public-bg__blob--1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -100px;
    background: color-mix(in srgb, var(--primary-color) 45%, #c4b5fd);
}

.staff-public-bg__blob--2 {
    width: 220px;
    height: 220px;
    bottom: 15%;
    left: -80px;
    background: color-mix(in srgb, var(--primary-color) 35%, #93c5fd);
    animation-delay: -4s;
}

.staff-public-bg__blob--3 {
    width: 160px;
    height: 160px;
    bottom: -40px;
    right: 20%;
    background: #f9a8d4;
    opacity: 0.35;
    animation-delay: -6s;
}

@keyframes staff-public-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6px, -10px) scale(1.04); }
}

.staff-public-shell > *:not(.staff-public-bg) {
    position: relative;
    z-index: 1;
}

/* Header */
.staff-public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem max(1rem, env(safe-area-inset-right)) 0.5rem max(1rem, env(safe-area-inset-left));
    background: var(--staff-header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.staff-public-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    color: #f8fafc;
    text-decoration: none;
}

.staff-public-header__brand:hover {
    color: #fff;
}

.staff-public-header__logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 60%, #7c3aed));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 24px color-mix(in srgb, var(--primary-color) 40%, transparent);
    overflow: hidden;
}

.staff-public-header__logo svg {
    width: 22px;
    height: 22px;
    color: #fff;
}

.staff-brand-logo--has-image {
    background: #fff !important;
    padding: 3px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.staff-brand-logo--has-image .staff-brand-logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.staff-portal-card__logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.staff-portal-card__logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
}

.staff-portal-card__logo.staff-brand-logo--has-image {
    width: 72px;
    height: 72px;
}

.staff-public-header__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.staff-public-header__title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-public-header__subtitle {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
    letter-spacing: 0.02em;
}

.staff-public-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.staff-public-header__signed-in {
    display: inline-flex;
    align-items: center;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.staff-public-header__signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgba(239, 68, 68, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.45);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
    white-space: nowrap;
}

.staff-public-header__signout:hover {
    color: #fff;
    background: #dc2626;
}

.staff-public-header__theme {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.staff-public-header__theme:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.staff-public-header .lang-switcher select {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border-radius: 10px;
    font-size: 0.8125rem;
}

/* Main layout */
.staff-public-main,
.registration-page__wrap.staff-public-main {
    flex: 1;
    width: 100%;
    max-width: calc(var(--staff-max-wide) + 2rem);
    margin: 0 auto;
    padding: 0.75rem 1rem 2rem;
}

.registration-page .staff-public-main {
    padding-top: 0.5rem;
}

.registration-page .staff-public-header__subtitle {
    display: none;
}

.registration-page .staff-public-header__title {
    font-size: 0.875rem;
}

.staff-public-shell--narrow .staff-public-main,
.staff-public-shell--narrow .login-page__wrap {
    max-width: calc(var(--staff-max) + 2rem);
}

/* Hero */
.staff-public-hero {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0;
}

.staff-public-hero__eyebrow {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 25%, transparent);
    border-radius: 999px;
}

.staff-public-hero__title {
    margin: 0 0 0.625rem;
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--staff-ink);
}

.staff-public-hero__lead {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--staff-ink-muted);
}

/* Premium card */
.staff-public-shell .staff-public-card,
.staff-public-shell .login-card {
    background: var(--staff-surface);
    border: 1px solid var(--staff-border);
    border-radius: var(--staff-card-radius);
    box-shadow: var(--staff-card-shadow);
    padding: 1.5rem 1.375rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.staff-public-shell .staff-public-card .card__header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--staff-border);
}

.staff-public-shell .staff-public-card .card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--staff-ink-muted);
    margin: 0;
}

.staff-public-shell .staff-public-card--no-inner-title .card__header {
    display: none;
}

/* Form polish */
.staff-public-shell .form-section-title {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0;
    padding: 0.75rem 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--staff-ink-muted);
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.staff-public-shell .form-section-title::before {
    content: '';
    width: 3px;
    height: 1rem;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 50%, #7c3aed));
    flex-shrink: 0;
}

.staff-public-shell .form-input,
.staff-public-shell .form-select,
.staff-public-shell .form-textarea {
    min-height: 48px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: var(--staff-surface-elevated);
    border: 1px solid var(--staff-border);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .staff-public-shell .form-input,
[data-theme="dark"] .staff-public-shell .form-select {
    box-shadow: none;
}

.staff-public-shell .form-input:focus,
.staff-public-shell .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-public-shell .form-hint {
    font-size: 0.8125rem;
    line-height: 1.5;
}

.phone-input {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-input__country {
    flex: 0 0 auto;
    width: min(42%, 11rem);
    min-width: 7.5rem;
}

.phone-input__number {
    flex: 1 1 auto;
    min-width: 0;
}

.staff-public-shell .form-hint a {
    font-weight: 600;
}

/* Shift picker */
.staff-public-shell .shift-picker-list {
    max-height: 24rem;
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--staff-border);
    background: color-mix(in srgb, var(--staff-surface) 90%, var(--primary-color) 3%);
}

.staff-public-shell .shift-picker__option {
    border-radius: 12px;
    padding: 1rem 1.125rem;
    border: 1px solid var(--staff-border);
    background: var(--staff-surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.staff-public-shell .shift-picker__option:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--primary-color) 50%, var(--staff-border));
    background: color-mix(in srgb, var(--primary-color) 6%, var(--staff-surface));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 15%, transparent);
}

.staff-public-shell .shift-picker__option--selected {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, var(--staff-surface));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

.staff-public-shell .shift-picker-list__date {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-top: 1rem;
}

.staff-public-shell .shift-picker-summary--active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
}

/* Buttons */
.staff-public-shell .btn--primary {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 75%, #1e40af));
    border: none;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-color) 35%, transparent);
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 48px;
    border-radius: 12px;
}

.staff-public-shell .btn--primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-color) 45%, transparent);
}

.staff-public-shell .btn--secondary {
    border-radius: 12px;
    min-height: 48px;
    border: 1px solid var(--staff-border);
    background: var(--staff-surface);
}

.staff-public-shell .form-actions {
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--staff-border);
}

/* Alerts */
.staff-public-shell .alert--visible {
    border-radius: 12px;
    padding: 0.875rem 1rem;
}

/* Footer */
.staff-public-footer {
    margin-top: auto;
    text-align: center;
    padding: 1.25rem 1rem max(1.5rem, env(safe-area-inset-bottom));
    font-size: 0.8125rem;
    color: var(--staff-ink-muted);
}

.staff-public-footer a {
    font-weight: 500;
}

/* Legacy watermark — hidden (was creating a huge grey icon zone) */
.staff-public-shell .registration-page__watermark {
    display: none !important;
}

/* Centered pages (check-in, status) */
.staff-public-shell--narrow.login-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

.staff-public-shell--narrow .login-page__wrap {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.staff-public-shell .login-card .card__title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--staff-ink);
}

.staff-public-shell .detail-list {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--staff-border);
}

.staff-public-shell .status-card {
    border-radius: 14px;
    border: 1px solid var(--staff-border);
    background: var(--staff-surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    padding: 1rem 1.125rem;
}

.staff-public-shell .status-psa-panel {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--staff-border);
}

.staff-public-shell .status-psa-panel__intro {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--staff-muted, #64748b);
    line-height: 1.5;
}

.staff-public-shell .status-psa-panel__alert {
    margin-bottom: 0.75rem;
}

.staff-public-shell .status-psa-on-file {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
}

.staff-public-shell .status-psa-form .form-input--file {
    padding: 0.35rem 0;
    font-size: 0.875rem;
}

/* Staff app home — align with shell */
.staff-app-shell.staff-public-shell {
    padding:
        max(0, env(safe-area-inset-top))
        max(1rem, env(safe-area-inset-right))
        max(1.25rem, env(safe-area-inset-bottom))
        max(1rem, env(safe-area-inset-left));
}

.staff-app-shell .staff-app__bg {
    display: none;
}

.staff-app-shell .staff-app__main {
    max-width: 26rem;
}

.staff-app-shell .staff-app__logo.staff-brand-logo--has-image {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    overflow: hidden;
}

.staff-app-shell .staff-app__logo.staff-brand-logo--has-image .staff-brand-logo__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.staff-app-shell .staff-app__title {
    color: var(--staff-ink);
}

.staff-app-shell .staff-app__greeting {
    color: var(--primary-color);
}

.staff-app-shell .staff-app__tagline {
    color: var(--staff-ink-muted);
}

.staff-app-shell .staff-app__tile {
    border: 1px solid var(--staff-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.staff-app-shell .staff-app__tile:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, var(--staff-border));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.staff-app-shell .staff-app__tile--register .staff-app__tile-icon {
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 70%, #7c3aed));
}

@media (min-width: 768px) {
    .staff-public-main,
    .registration-page__wrap.staff-public-main {
        padding: 2rem 1.5rem 3rem;
    }

    .staff-public-shell .staff-public-card,
    .staff-public-shell .login-card {
        padding: 2rem 2rem;
    }

    .staff-public-hero {
        margin-bottom: 2rem;
    }
}

/* ============================================
   EVENT OPERATIONS — colourful staff UX
   ============================================ */

.staff-public-shell--event-ops {
    --event-violet: #7c3aed;
    --event-fuchsia: #d946ef;
    --event-pink: #ec4899;
    --event-cyan: #06b6d4;
    --event-amber: #fbbf24;
    --event-emerald: #34d399;
    --staff-ink: #0f172a;
    --staff-ink-muted: #475569;
    background: linear-gradient(165deg, #1e1b4b 0%, #3730a3 28%, #6b21a8 52%, #9d174d 78%, #1e3a8a 100%);
    background-attachment: fixed;
}

[data-theme="dark"] .staff-public-shell--event-ops {
    background: linear-gradient(165deg, #0f0a1e 0%, #1e1b4b 30%, #4c1d95 55%, #701a75 80%, #0c1929 100%);
}

/* Animated stage lights */
.staff-public-bg--event-ops .staff-public-bg__mesh {
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(251, 191, 36, 0.35), transparent 50%),
        radial-gradient(ellipse 60% 45% at 85% 15%, rgba(236, 72, 153, 0.4), transparent 50%),
        radial-gradient(ellipse 55% 40% at 50% 100%, rgba(6, 182, 212, 0.3), transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% -10%, color-mix(in srgb, var(--primary-color) 35%, transparent), transparent 60%);
}

.staff-public-bg--event-ops .staff-public-bg__lights {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 8% 25%, rgba(251, 191, 36, 0.55) 0%, transparent 4%),
        radial-gradient(circle at 22% 18%, rgba(236, 72, 153, 0.5) 0%, transparent 3%),
        radial-gradient(circle at 78% 12%, rgba(6, 182, 212, 0.55) 0%, transparent 4%),
        radial-gradient(circle at 92% 28%, rgba(167, 139, 250, 0.5) 0%, transparent 3%),
        radial-gradient(circle at 15% 72%, rgba(52, 211, 153, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 88% 68%, rgba(244, 114, 182, 0.45) 0%, transparent 4%);
    animation: event-ops-lights 6s ease-in-out infinite alternate;
    opacity: 0.85;
}

@keyframes event-ops-lights {
    0% { opacity: 0.65; filter: hue-rotate(0deg); }
    100% { opacity: 0.95; filter: hue-rotate(12deg); }
}

.staff-public-bg--event-ops .staff-public-bg__blob {
    opacity: 0.7;
    filter: blur(56px);
}

.staff-public-bg--event-ops .staff-public-bg__blob--1 {
    background: linear-gradient(135deg, #f472b6, #a855f7);
    width: 320px;
    height: 320px;
}

.staff-public-bg--event-ops .staff-public-bg__blob--2 {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.staff-public-bg--event-ops .staff-public-bg__blob--3 {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    opacity: 0.55;
}

.staff-public-bg--event-ops .staff-public-bg__blob--4 {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    border-radius: 50%;
    background: #34d399;
    filter: blur(48px);
    opacity: 0.45;
    animation: staff-public-float 12s ease-in-out infinite;
    animation-delay: -2s;
}

.staff-public-bg--event-ops .staff-public-bg__blob--5 {
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: 30%;
    left: 10%;
    border-radius: 50%;
    background: #e879f9;
    filter: blur(48px);
    opacity: 0.5;
    animation: staff-public-float 9s ease-in-out infinite;
    animation-delay: -7s;
}

/* Header — festival gradient bar */
.staff-public-shell--event-ops .staff-public-header {
    background: linear-gradient(
        105deg,
        #4f46e5 0%,
        #7c3aed 22%,
        #c026d3 48%,
        #db2777 72%,
        #2563eb 100%
    );
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-bottom: 0.5rem;
}

/* Notice directly under compact header — no extra gap */
.staff-public-shell--event-ops .site-notice {
    margin-top: 0;
}

.staff-public-shell--event-ops.registration-page .site-notice + .staff-public-main,
.staff-public-shell--event-ops.registration-page .staff-public-header + .site-notice + .staff-public-main {
    padding-top: 0.5rem;
}

.staff-public-shell--event-ops .staff-public-header__logo {
    background: linear-gradient(135deg, #fbbf24, #f472b6);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.55);
}

.staff-public-shell--event-ops .staff-public-header__subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* Notice bar — high-vis event alert */
.staff-public-shell--event-ops .site-notice {
    background: linear-gradient(90deg, #c2410c 0%, #ea580c 35%, #db2777 70%, #7c3aed 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.staff-public-shell--event-ops .site-notice__label {
    background: rgba(0, 0, 0, 0.25);
    color: #fef08a;
}

/* Hero — compact strip (notice ticker sits right below header) */
.staff-public-shell--event-ops .staff-public-hero {
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0.875rem 1rem 0.75rem;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.55) 0%,
        rgba(219, 39, 119, 0.5) 50%,
        rgba(37, 99, 235, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.staff-public-shell--event-ops .staff-public-hero__eyebrow {
    color: #1e1b4b;
    background: linear-gradient(90deg, var(--event-amber), #fde68a, var(--event-pink));
    border: none;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.35);
    font-size: 0.625rem;
    padding: 0.25rem 0.625rem;
    margin-bottom: 0.35rem;
}

.staff-public-shell--event-ops .staff-public-hero__title {
    color: #ffffff;
    font-size: clamp(1.125rem, 3.5vw, 1.5rem);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.25rem;
}

.staff-public-shell--event-ops .staff-public-hero__lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 32rem;
}

.staff-public-shell--event-ops .staff-public-hero__lead a {
    color: #fde68a;
}

/* Form card — white stage with rainbow top */
.staff-public-shell--event-ops .staff-public-card,
.staff-public-shell--event-ops .login-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 20px 50px rgba(0, 0, 0, 0.25);
}

.staff-public-shell--event-ops .staff-public-card::before,
.staff-public-shell--event-ops .login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(
        90deg,
        var(--event-cyan),
        var(--event-violet),
        var(--event-pink),
        var(--event-amber),
        var(--event-emerald),
        var(--event-cyan)
    );
    background-size: 200% 100%;
    animation: event-ops-stripe 4s linear infinite;
}

@keyframes event-ops-stripe {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

[data-theme="dark"] .staff-public-shell--event-ops .staff-public-card,
[data-theme="dark"] .staff-public-shell--event-ops .login-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
    --staff-ink: #f1f5f9;
    --staff-ink-muted: #cbd5e1;
}

/* Section headers — colour blocks */
.staff-public-shell--event-ops .form-section-title {
    color: #5b21b6;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.25), rgba(244, 114, 182, 0.15));
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    margin-top: 0.75rem;
}

.staff-public-shell--event-ops .form-section-title::before {
    width: 4px;
    height: 1.25rem;
    background: linear-gradient(180deg, var(--event-cyan), var(--event-pink), var(--event-amber));
}

[data-theme="dark"] .staff-public-shell--event-ops .form-section-title {
    color: #e9d5ff;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.35), rgba(219, 39, 119, 0.2));
}

.staff-public-shell--event-ops .form-input,
.staff-public-shell--event-ops .form-select {
    border: 2px solid #e9d5ff;
    background: #faf5ff;
}

.staff-public-shell--event-ops .form-input:focus,
.staff-public-shell--event-ops .form-select:focus {
    border-color: var(--event-violet);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

[data-theme="dark"] .staff-public-shell--event-ops .form-input,
[data-theme="dark"] .staff-public-shell--event-ops .form-select {
    background: #0f172a;
    border-color: rgba(167, 139, 250, 0.35);
}

/* Shift list — event tickets */
.staff-public-shell--event-ops .shift-picker-list {
    background: linear-gradient(180deg, #faf5ff 0%, #f0f9ff 100%);
    border: 2px solid #c4b5fd;
}

.staff-public-shell--event-ops .shift-picker-list__date {
    color: #7c3aed;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), transparent);
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}

.staff-public-shell--event-ops .shift-picker__option {
    border: 2px solid #e9d5ff;
    background: #fff;
}

.staff-public-shell--event-ops .shift-picker__option:hover:not(:disabled) {
    border-color: var(--event-pink);
    background: linear-gradient(135deg, #fdf4ff, #eff6ff);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.2);
}

.staff-public-shell--event-ops .shift-picker__option--selected {
    border-color: var(--event-violet);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(244, 114, 182, 0.12));
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.35);
}

.staff-public-shell--event-ops .shift-picker-summary--active {
    background: linear-gradient(90deg, #7c3aed, #db2777);
    color: #fff;
    font-weight: 700;
}

/* — Staff profile form (portal) — */
.staff-public-shell--event-ops .staff-public-card--profile {
    background: linear-gradient(165deg, rgba(30, 27, 75, 0.97) 0%, rgba(30, 41, 59, 0.98) 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    --staff-ink: #f1f5f9;
    --staff-ink-muted: #cbd5e1;
}

.staff-profile-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.staff-profile-card__header .card__title {
    margin: 0;
    font-size: 1.35rem;
    color: #fff;
}

.staff-profile-card__header .card__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--staff-ink-muted);
    word-break: break-all;
}

.staff-profile-shell .staff-profile-alert {
    margin-bottom: 1rem;
    border-radius: 10px;
}

.staff-profile-shell .staff-profile-alert__missing {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
}

.staff-profile-summary {
    padding: 0.25rem 0 0.5rem;
}

.staff-profile-summary__name {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.staff-profile-summary__list {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.65rem;
}

.staff-profile-summary__list div {
    display: grid;
    gap: 0.15rem;
}

.staff-profile-summary__list dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--staff-ink-muted);
}

.staff-profile-summary__list dd {
    margin: 0;
    font-size: 0.9rem;
    color: var(--staff-ink);
}

.staff-profile-summary__edit {
    width: 100%;
}

.staff-status-intro--muted {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

.staff-status-intro--muted a {
    font-weight: 600;
}

.staff-profile-form {
    display: grid;
    gap: 0.75rem 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 520px) {
    .staff-profile-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.staff-profile-form .form-group--full {
    grid-column: 1 / -1;
}

.staff-public-shell--event-ops .staff-profile-form .form-input,
.staff-public-shell--event-ops .staff-profile-form .form-select,
.staff-public-shell--event-ops .staff-profile-form textarea.form-input {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f8fafc;
}

.staff-public-shell--event-ops .staff-profile-form .form-input:disabled {
    background: rgba(15, 23, 42, 0.45);
    color: #94a3b8;
}

.staff-public-shell--event-ops .staff-profile-form .form-input--file {
    padding: 0.5rem;
    font-size: 0.8125rem;
}

.staff-public-shell--event-ops .staff-profile-form .form-input:focus,
.staff-public-shell--event-ops .staff-profile-form .form-select:focus,
.staff-public-shell--event-ops .staff-profile-form textarea.form-input:focus {
    border-color: var(--event-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.35);
    background: rgba(15, 23, 42, 0.95);
}

.staff-public-shell--event-ops .staff-profile-form .form-label {
    color: #e2e8f0;
}

.staff-public-shell--event-ops .staff-profile-form .form-hint {
    color: #94a3b8;
}

.staff-public-shell--event-ops .staff-profile-form .form-hint a {
    color: #a5b4fc;
}

.staff-profile-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.25);
    color: #fde68a;
    vertical-align: middle;
}

.staff-profile-form .form-actions {
    margin-top: 0.5rem;
}

.staff-public-shell--event-ops .staff-profile-form .btn--primary {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    border: none;
    font-weight: 600;
}

/* Mobile — staff profile portal */
@media (max-width: 768px) {
    .staff-profile-shell.staff-public-shell--narrow .login-page__wrap,
    .staff-profile-shell .staff-public-main {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }

    .staff-profile-shell .staff-public-card--profile {
        padding: 1rem 1rem 1.25rem;
    }

    .staff-profile-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-profile-card__header .btn {
        width: 100%;
        min-height: 44px;
    }

    .staff-profile-form {
        grid-template-columns: 1fr;
    }

    .staff-public-shell--event-ops .staff-profile-form .form-input,
    .staff-public-shell--event-ops .staff-profile-form .form-select,
    .staff-public-shell--event-ops .staff-profile-form textarea.form-input {
        font-size: 16px;
        min-height: 44px;
    }

    .staff-public-shell--event-ops .staff-profile-form textarea.form-input {
        min-height: 5rem;
    }

    .staff-public-shell--event-ops .staff-profile-form .form-input--file {
        min-height: 48px;
        padding: 0.65rem;
    }

    .staff-profile-form .form-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: calc(var(--z-index-header, 100) + 5);
        margin: 0;
        padding: 0.65rem max(1rem, env(safe-area-inset-left)) calc(0.65rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
        background: rgba(15, 23, 42, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid rgba(167, 139, 250, 0.35);
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }

    .staff-profile-form .form-actions .btn--block {
        min-height: 48px;
        font-size: 1rem;
    }

    .staff-profile-shell .login-card__hint {
        margin-top: 1rem;
        font-size: 0.875rem;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .staff-profile-card__header .card__title {
        font-size: 1.15rem;
    }

    .staff-profile-shell .staff-dir-portal-banner__copy,
    .staff-profile-shell .copy-field {
        flex-direction: column;
    }

    .staff-profile-shell .copy-field__btn {
        width: 100%;
    }
}

/* CTA — bold event button */
.staff-public-shell--event-ops .btn--primary {
    background: linear-gradient(105deg, #7c3aed 0%, #db2777 45%, #ea580c 100%);
    box-shadow: 0 6px 24px rgba(219, 39, 119, 0.45);
    font-size: 1.0625rem;
    text-transform: none;
}

.staff-public-shell--event-ops .btn--primary:hover {
    filter: brightness(1.08) saturate(1.1);
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.55);
}

.staff-public-shell--event-ops .btn--secondary {
    border: 2px solid #c4b5fd;
    color: #5b21b6;
    background: #faf5ff;
}

.staff-public-shell--event-ops .form-hint {
    color: #6d28d9;
}

.staff-public-shell--event-ops .form-hint a {
    color: #be185d;
}

/* Footer on dark bg */
.staff-public-shell--event-ops .staff-public-footer {
    color: rgba(255, 255, 255, 0.75);
}

.staff-public-shell--event-ops .staff-public-footer a {
    color: var(--event-amber);
}

/* Staff app tiles — colourful */
.staff-public-shell--event-ops.staff-app-shell .staff-app__tile {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.staff-public-shell--event-ops.staff-app-shell .staff-app__tile--register {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(253, 244, 255, 0.98));
}

.staff-public-shell--event-ops.staff-app-shell .staff-app__tile--status .staff-app__tile-icon {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.staff-public-shell--event-ops.staff-app-shell .staff-app__title,
.staff-public-shell--event-ops.staff-app-shell .staff-app__greeting {
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.staff-public-shell--event-ops.staff-app-shell .staff-app__tagline {
    color: rgba(255, 255, 255, 0.88);
}

.staff-public-shell--event-ops.staff-app-shell .staff-app__install-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.staff-public-shell--event-ops.staff-app-shell .staff-app__install-pill strong {
    color: #fff;
}

.staff-public-shell--event-ops .login-card .card__title {
    color: var(--staff-ink);
}

.staff-public-shell--event-ops .signin-page-heading__title {
    color: var(--staff-ink);
}

@media (min-width: 768px) {
    .staff-public-shell--event-ops .staff-public-hero {
        padding: 1rem 1.25rem 0.875rem;
    }
}

.reg-success-panel {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.35);
    background: rgba(240, 253, 244, 0.95);
}

.reg-success-panel__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #166534;
}

.reg-success-panel__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #14532d;
}
