:root {
    --page-bg: #f5f9ff;
    --shell-bg: rgba(255, 255, 255, 0.94);
    --panel-bg: #ffffff;
    --panel-tint: #fbfdff;
    --panel-soft: #f7faff;
    --line: #e6edf8;
    --line-strong: #d9e4f5;
    --text: #172033;
    --muted: #6e7d97;
    --muted-strong: #46536a;
    --teal-start: #18d2c4;
    --teal-end: #0aa7ff;
    --blue-start: #4d88ff;
    --blue-end: #2d66f6;
    --orange-start: #ffb055;
    --orange-end: #ff6b4a;
    --lime-start: #bfdc58;
    --lime-end: #70c744;
    --danger: #ef5350;
    --warning: #f59f38;
    --success: #21c28d;
    --shell-shadow: 0 34px 80px rgba(34, 73, 136, 0.13);
    --panel-shadow: 0 18px 34px rgba(35, 90, 166, 0.08);
    --button-shadow: 0 16px 28px rgba(11, 167, 255, 0.2);
    --radius-shell: 34px;
    --radius-panel: 24px;
    --radius-small: 18px;
    --radius-pill: 999px;
}

* {
    box-sizing: border-box;
}

html {
    background: #f2f7ff;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(77, 136, 255, 0.08), transparent 18%),
        radial-gradient(circle at left center, rgba(24, 210, 196, 0.07), transparent 18%),
        linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    color: var(--text);
    font-family: "Segoe UI", "Aptos", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
    box-shadow: none;
}

.icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.desktop-shell {
    max-width: 1360px;
    min-height: calc(100vh - 28px);
    margin: 14px auto;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-shell);
    box-shadow: var(--shell-shadow);
    overflow: hidden;
}

.sidebar {
    display: flex;
    flex-direction: column;
    padding: 28px 18px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    border-right: 1px solid var(--line);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.sidebar-brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(24, 210, 196, 0.12), rgba(77, 136, 255, 0.15));
    color: #13b9b9;
}

.sidebar-brand-mark .icon {
    width: 1.75rem;
    height: 1.75rem;
}

.sidebar-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.sidebar-brand-copy {
    display: grid;
    gap: 3px;
}

.sidebar-brand-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-brand-subtitle {
    font-size: 0.85rem;
    color: var(--muted);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--muted-strong);
    font-weight: 600;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sidebar-link .icon {
    color: #75839e;
}

.sidebar-link:hover {
    background: #f4f8ff;
    color: var(--text);
    transform: translateX(2px);
}

.sidebar-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal-start), var(--teal-end));
    box-shadow: 0 16px 28px rgba(14, 179, 227, 0.22);
}

.sidebar-link.is-active .icon {
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 18px;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--line);
}

.sidebar-status-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(24, 210, 196, 0.12), rgba(77, 136, 255, 0.16));
    color: #18bfc1;
}

.sidebar-status strong,
.sidebar-status span {
    display: block;
}

.sidebar-status strong {
    font-size: 0.95rem;
}

.sidebar-status span {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 2px;
}

.workspace {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
}

.workspace-topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(10px);
}

.tab-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-link {
    position: relative;
    padding: 12px 14px;
    color: var(--muted-strong);
    font-weight: 700;
    border-radius: 14px;
    transition: color 0.2s ease, background 0.2s ease;
}

.tab-link:hover {
    background: #f4f8ff;
}

.tab-link.is-active {
    color: #13a7cf;
}

.tab-link.is-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -12px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-start), var(--teal-end));
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-utility,
.profile-chip,
.status-pill,
.mini-badge,
.inline-link,
.text-link {
    border-radius: var(--radius-pill);
}

.topbar-utility {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(31, 74, 140, 0.05);
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(31, 74, 140, 0.05);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-start), var(--teal-start));
}

.profile-copy {
    display: grid;
    gap: 1px;
}

.profile-copy strong {
    font-size: 0.94rem;
    line-height: 1.1;
}

.profile-copy span {
    font-size: 0.78rem;
    color: var(--muted);
}

.flash-stack {
    padding: 20px 24px 0;
    display: grid;
    gap: 12px;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 74, 140, 0.05);
}

.flash-success {
    border-color: rgba(33, 194, 141, 0.18);
    background: rgba(33, 194, 141, 0.08);
}

.flash-error {
    border-color: rgba(239, 83, 80, 0.18);
    background: rgba(239, 83, 80, 0.08);
}

.flash-warning {
    border-color: rgba(245, 159, 56, 0.18);
    background: rgba(245, 159, 56, 0.08);
}

.page-wrap {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.page-hero h1,
.center-stage h1,
.auth-panel h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero-split {
    align-items: center;
}

.hero-subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 760px;
}

.timestamp-card,
.panel-card,
.metric-card,
.result-banner {
    background: linear-gradient(180deg, var(--panel-bg), var(--panel-tint));
    border: 1px solid var(--line);
    box-shadow: var(--panel-shadow);
}

.timestamp-card {
    min-width: 290px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
}

.timestamp-icon,
.timestamp-trailing {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(24, 210, 196, 0.1);
    color: #19bfc0;
}

.timestamp-trailing {
    margin-left: auto;
    background: rgba(77, 136, 255, 0.08);
    color: #2f7bff;
}

.timestamp-copy {
    display: grid;
    gap: 4px;
}

.timestamp-copy span {
    color: var(--muted);
    font-size: 0.92rem;
}

.timestamp-copy strong {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    color: #11adc5;
}

.result-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
}

.result-banner-staff {
    justify-content: space-between;
}

.result-banner-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(33, 194, 141, 0.1);
    color: var(--success);
}

.result-banner-copy {
    display: grid;
    gap: 4px;
}

.result-banner-copy strong {
    font-size: 0.98rem;
}

.result-banner-copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.staff-photo {
    overflow: hidden;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #0fa9c7;
    font-weight: 800;
    background: linear-gradient(145deg, rgba(24, 210, 196, 0.12), rgba(77, 136, 255, 0.16));
    box-shadow: 0 14px 28px rgba(29, 127, 221, 0.1);
}

.staff-photo img,
.enroll-staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo-sm {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 0.95rem;
}

.staff-photo-result {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    font-size: 1.1rem;
}

.staff-photo-xl {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    font-size: 1.4rem;
}

.staff-identity,
.staff-head-status,
.staff-photo-panel-preview {
    display: flex;
    align-items: center;
    gap: 14px;
}

.staff-head-status {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.staff-photo-panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.staff-photo-panel-copy {
    display: grid;
    gap: 6px;
}

.staff-photo-panel-copy strong {
    font-size: 1.02rem;
}

.staff-photo-panel-copy span {
    color: var(--muted);
    line-height: 1.65;
}

.kiosk-layout,
.panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.82fr);
    gap: 18px;
}

.panel-grid-wide {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
}

.scan-stage-card,
.panel-card {
    border-radius: var(--radius-panel);
}

.scan-stage-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid var(--line);
    box-shadow: var(--panel-shadow);
}

.section-kicker {
    margin: 0 0 10px;
    color: #18a4c7;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scan-stage-card h2,
.panel-card h3,
.auth-side-panel h3,
.department-card h4,
.empty-state h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.scan-stage-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.panel-subtitle,
.panel-note,
.step-list p,
.shortcut-copy span,
.department-card span,
.roster-entry span,
.empty-state p {
    color: var(--muted);
    line-height: 1.65;
}

.scan-form,
.stack-form {
    display: grid;
    gap: 14px;
}

.quick-divider {
    position: relative;
    text-align: center;
}

.quick-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid var(--line);
}

.quick-divider span {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background: #ffffff;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.scan-status-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.94rem;
}

.status-inline-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--success);
}

.scan-stage-visual,
.enroll-preview-zone {
    display: grid;
    place-items: center;
}

.scan-stage-rings {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
}

.scan-stage-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(24, 210, 196, 0.18);
}

.scan-stage-ring-outer {
    inset: 8px;
}

.scan-stage-ring-inner {
    inset: 38px;
    border-color: rgba(77, 136, 255, 0.18);
}

.scan-stage-core {
    width: 94px;
    height: 94px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    color: #11adc5;
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    box-shadow: 0 20px 36px rgba(29, 127, 221, 0.12);
    animation: scanPulse 3s ease-in-out infinite;
}

.scan-stage-core .icon {
    width: 2.9rem;
    height: 2.9rem;
}

.scan-stage-dot {
    position: absolute;
    bottom: 26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 8px rgba(33, 194, 141, 0.12);
}

.shortcut-stack {
    display: grid;
    gap: 14px;
}

.quick-access-card {
    display: grid;
    gap: 14px;
}

.shortcut-stack-tight .shortcut-card {
    min-height: auto;
}

.shortcut-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: var(--panel-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shortcut-card:hover,
.panel-card:hover,
.metric-card:hover,
.scan-stage-card:hover,
.timestamp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(35, 90, 166, 0.1);
}

.shortcut-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(77, 136, 255, 0.08);
    color: #3d7dff;
}

.shortcut-icon .icon {
    width: 1.35rem;
    height: 1.35rem;
}

.shortcut-copy {
    display: grid;
    gap: 5px;
}

.shortcut-copy strong {
    font-size: 1rem;
}

.shortcut-arrow {
    color: #5d79c7;
}

.shortcut-card-blue .shortcut-icon {
    background: rgba(77, 136, 255, 0.09);
    color: #396dff;
}

.shortcut-card-orange .shortcut-icon {
    background: rgba(255, 176, 85, 0.14);
    color: #ff7c52;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 20px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
}

.metric-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.metric-icon-teal {
    background: rgba(24, 210, 196, 0.12);
    color: #0fbfaf;
}

.metric-icon-blue {
    background: rgba(77, 136, 255, 0.11);
    color: #3d7dff;
}

.metric-icon-orange {
    background: rgba(255, 176, 85, 0.16);
    color: #ff7a48;
}

.metric-icon-lime {
    background: rgba(112, 199, 68, 0.16);
    color: #6ab93d;
}

.metric-copy {
    display: grid;
    gap: 2px;
}

.metric-copy strong {
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-copy span {
    font-weight: 700;
}

.metric-copy small {
    color: var(--muted);
    font-size: 0.8rem;
}

.metric-trace {
    margin-left: auto;
    color: #79c990;
}

.metric-trace .icon {
    width: 2.3rem;
    height: 2.3rem;
}

.panel-card {
    padding: 22px;
}

.panel-card-large {
    min-width: 0;
}

.panel-card-side {
    align-self: start;
}

.panel-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f6faff;
    border: 1px solid var(--line);
    color: #2e71f6;
    font-weight: 700;
}

.status-pill,
.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    background: #f7fbff;
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-ready,
.status-session_ready,
.mini-badge.ready {
    color: #159769;
    background: rgba(33, 194, 141, 0.12);
    border-color: rgba(33, 194, 141, 0.16);
}

.status-error {
    color: #d34845;
    background: rgba(239, 83, 80, 0.1);
    border-color: rgba(239, 83, 80, 0.16);
}

.status-needs_credentials,
.status-cached_credentials_present,
.status-no_enrolled_users,
.status-no_registered_devices,
.status-admin_required {
    color: #cb7d14;
    background: rgba(245, 159, 56, 0.11);
    border-color: rgba(245, 159, 56, 0.16);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fcfdff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: #f9fbff;
}

tbody tr:hover {
    background: #f9fbff;
}

.cell-sub {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

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

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

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.detail-row span {
    color: var(--muted);
    font-size: 0.92rem;
}

.detail-row strong {
    text-align: right;
    font-size: 0.93rem;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.department-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    border: 1px solid var(--line);
}

.department-card strong {
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.side-stack {
    display: grid;
    gap: 18px;
    align-self: start;
}

.roster-list {
    display: grid;
    gap: 10px;
}

.roster-entry {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.roster-entry strong {
    display: block;
    margin-bottom: 4px;
}

.roster-entry-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.field {
    display: grid;
    gap: 8px;
}

.field span,
.checkbox-row span {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--muted-strong);
}

.field input,
.field select {
    width: 100%;
    padding: 14px 15px;
    border-radius: 15px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: var(--text);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #9fdaf5;
    box-shadow: 0 0 0 4px rgba(17, 173, 197, 0.1);
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: #15b7d2;
}

.checkbox-row-panel {
    padding-top: 10px;
}

.filter-bar,
.form-layout,
.auth-form {
    display: grid;
    gap: 16px;
}

.filter-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.filter-bar-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.form-span-2 {
    grid-column: 1 / -1;
}

.page-actions,
.action-row,
.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.action-form {
    display: contents;
}

.primary-button,
.secondary-button,
.text-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 18px;
    border-radius: 17px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.primary-button::before,
.secondary-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.4) 50%, transparent 80%);
    transform: translateX(-140%);
}

.primary-button:hover::before,
.secondary-button:hover::before {
    animation: buttonSheen 0.9s ease;
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.text-link:focus-visible,
.topbar-utility:hover,
.inline-link:hover {
    transform: translateY(-1px);
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal-start), var(--teal-end));
    box-shadow: var(--button-shadow);
}

.secondary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-start), var(--blue-end));
    box-shadow: 0 16px 28px rgba(61, 125, 255, 0.18);
}

.cta-scan {
    justify-content: space-between;
    max-width: 310px;
}

.button-icon {
    display: inline-flex;
}

.text-link {
    min-height: 42px;
    padding: 10px 14px;
    color: #3577ff;
    background: #f6faff;
    border: 1px solid var(--line);
}

.danger-link {
    color: #e1574a;
    background: rgba(239, 83, 80, 0.08);
}

.empty-state {
    padding: 22px;
    border-radius: 20px;
    border: 1px dashed var(--line-strong);
    background: #fbfdff;
}

.center-stage {
    min-height: 68vh;
    display: grid;
    place-items: center;
}

.auth-layout {
    width: min(100%, 1000px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.auth-brand-mark {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(24, 210, 196, 0.16), rgba(77, 136, 255, 0.18));
    box-shadow: 0 18px 30px rgba(35, 90, 166, 0.12);
    color: #15b8cc;
}

.auth-brand-mark .icon {
    width: 2rem;
    height: 2rem;
}

.auth-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.auth-brand-copy {
    display: grid;
    gap: 4px;
}

.auth-brand-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-brand-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-panel,
.auth-side-panel {
    min-height: 100%;
}

.auth-panel h1 {
    margin-top: 0;
    margin-bottom: 12px;
}

.qr-panel {
    display: grid;
    gap: 16px;
}

.qr-card {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.qr-card svg {
    width: min(100%, 220px);
    height: auto;
}

.qr-card-large svg {
    width: min(100%, 280px);
}

.truncate-value {
    max-width: 320px;
    overflow-wrap: anywhere;
    text-align: right;
}

.check-chip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.check-chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--muted-strong);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.check-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-chip:hover {
    transform: translateY(-1px);
    border-color: #b8d9f3;
}

.check-chip.is-selected,
.check-chip:has(input:checked) {
    color: #0e9ebb;
    border-color: rgba(24, 210, 196, 0.26);
    background: rgba(24, 210, 196, 0.1);
}

.enroll-hybrid-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
    gap: 18px;
    align-items: start;
}

.enroll-brief-card,
.enroll-command-card {
    min-width: 0;
}

.enroll-staff-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    margin-bottom: 18px;
}

.enroll-staff-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal-start), var(--teal-end));
    box-shadow: 0 14px 28px rgba(20, 185, 210, 0.18);
    overflow: hidden;
}

.enroll-staff-copy {
    display: grid;
    gap: 4px;
    align-content: center;
}

.enroll-staff-copy strong {
    font-size: 1.08rem;
}

.enroll-staff-copy span,
.enroll-staff-copy small {
    color: var(--muted);
}

.enroll-guidance-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.enroll-guide-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.enroll-step-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-weight: 800;
    color: #0ea8c6;
    background: rgba(24, 210, 196, 0.12);
}

.enroll-guide-step strong {
    display: block;
    margin-bottom: 4px;
}

.enroll-guide-step p,
.enroll-widget-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.enroll-meta-stack {
    margin-bottom: 18px;
}

.enroll-start-form {
    gap: 10px;
}

.enroll-start-button {
    width: 100%;
    justify-content: center;
}

.enroll-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.enroll-status-tile {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.enroll-status-tile span,
.enroll-widget-label {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enroll-status-tile strong {
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}

.enroll-command-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
    align-items: start;
}

.enroll-preview-column {
    display: grid;
    gap: 14px;
}

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

.enroll-preview-card-large {
    min-height: 520px;
    position: relative;
    align-content: center;
    gap: 18px;
    padding: 28px 22px;
    background:
        radial-gradient(circle at top center, rgba(24, 210, 196, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff, #f7fbff);
}

.enroll-preview-card-large .scan-stage-rings {
    margin-bottom: 8px;
}

.enroll-side-widgets {
    display: grid;
    gap: 14px;
}

.enroll-widget-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.enroll-widget-primary {
    background: linear-gradient(180deg, rgba(24, 210, 196, 0.12), rgba(77, 136, 255, 0.08));
}

.enroll-widget-card strong {
    font-size: 1.08rem;
    line-height: 1.45;
}

.enroll-tip-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
    line-height: 1.55;
}

.enroll-status-banner {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(24, 210, 196, 0.14);
    background: linear-gradient(180deg, rgba(24, 210, 196, 0.08), rgba(77, 136, 255, 0.05));
    color: var(--muted-strong);
    line-height: 1.65;
}

.enroll-live-card {
    min-width: 0;
}

.enroll-live-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: center;
}

.step-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.step-list p {
    margin: 0;
}

.enroll-preview-zone {
    gap: 14px;
}

.enroll-stage-rings {
    width: 180px;
    height: 180px;
}

.enroll-preview-card {
    width: 100%;
    min-height: 210px;
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.enroll-preview-image {
    width: 100%;
    max-width: 340px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 18px 32px rgba(30, 79, 151, 0.08);
}

.enroll-preview-placeholder {
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
    max-width: 240px;
}

.is-hidden {
    display: none;
}

@keyframes buttonSheen {
    100% {
        transform: translateX(140%);
    }
}

@keyframes scanPulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1180px) {
    .desktop-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .sidebar-nav {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .workspace-topbar,
    .page-hero,
    .page-hero-split,
    .roster-entry,
    .panel-card-head,
    .kiosk-layout,
    .panel-grid,
    .enroll-hybrid-shell,
    .enroll-command-layout,
    .enroll-live-layout,
    .auth-layout {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-topbar,
    .page-hero,
    .page-hero-split,
    .panel-card-head {
        display: flex;
    }

    .topbar-meta,
    .page-actions,
    .roster-entry-meta {
        justify-content: flex-start;
    }

    .filter-bar,
    .filter-bar-wide,
    .form-layout,
    .metric-strip,
    .department-grid,
    .detail-stack-grid,
    .enroll-status-strip,
    .check-chip-grid,
    .action-grid {
        grid-template-columns: 1fr 1fr;
    }

    .scan-stage-card {
        grid-template-columns: 1fr;
    }

    .enroll-preview-card-large {
        min-height: 420px;
        padding: 22px 16px;
    }
}

@media (max-width: 760px) {
    .desktop-shell {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
    }

    .workspace-topbar,
    .page-wrap,
    .flash-stack {
        padding-left: 16px;
        padding-right: 16px;
    }

    .sidebar,
    .workspace-topbar,
    .page-wrap {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .sidebar-nav,
    .filter-bar,
    .filter-bar-wide,
    .form-layout,
    .metric-strip,
    .department-grid,
    .detail-stack-grid,
    .enroll-status-strip,
    .check-chip-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }

    .timestamp-card,
    .shortcut-card,
    .scan-stage-card,
    .panel-card,
    .metric-card,
    .result-banner {
        width: 100%;
    }

    .timestamp-card {
        min-width: 0;
    }

    .page-hero h1,
    .center-stage h1,
    .auth-panel h1 {
        font-size: 1.85rem;
    }

    .auth-brand-lockup {
        align-items: flex-start;
    }

    .enroll-staff-card,
    .enroll-guide-step {
        grid-template-columns: 1fr;
    }

    .result-banner-staff,
    .staff-identity,
    .staff-head-status,
    .staff-photo-panel-preview {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .tab-nav,
    .topbar-meta {
        width: 100%;
    }

    .tab-link {
        padding-inline: 10px;
    }
}

.auth-shell-body {
    min-height: 100vh;
}

.auth-flash-shell {
    position: relative;
    z-index: 2;
}

.auth-flash-stack {
    width: min(100%, 540px);
    margin: 0 auto;
    padding: 20px 18px 0;
    display: grid;
    gap: 12px;
}

.auth-standalone-page {
    min-height: 100vh;
}

.staff-login-minimal-body {
    background:
        radial-gradient(circle at top center, rgba(78, 219, 12, 0.08), transparent 22%),
        linear-gradient(180deg, #1c2118 0%, #171b14 100%);
    color: #f2f6e7;
    font-family: "Segoe UI", "Aptos", sans-serif;
}

.staff-login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 42px 18px;
}

.staff-login-card {
    width: min(100%, 480px);
    padding: 38px 34px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(43, 48, 35, 0.98), rgba(38, 43, 31, 0.98));
    border: 1px solid rgba(103, 118, 86, 0.26);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.staff-login-brand {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin-bottom: 28px;
    text-align: center;
}

.staff-login-logo {
    width: 102px;
    height: 102px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid rgba(78, 219, 12, 0.22);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.12));
    box-shadow: 0 0 0 10px rgba(78, 219, 12, 0.05);
    color: #55da12;
}

.staff-login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.staff-login-logo .icon {
    width: 2.5rem;
    height: 2.5rem;
}

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

.staff-login-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #4edb0c;
}

.staff-login-intro p {
    margin: 0;
    color: rgba(236, 243, 224, 0.78);
    font-size: 1rem;
    line-height: 1.6;
}

.staff-login-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(60, 67, 49, 0.52);
    border: 1px solid rgba(108, 118, 93, 0.18);
    margin-bottom: 28px;
}

.staff-login-tab {
    min-height: 48px;
    border-radius: 14px;
    border: 0;
    background: transparent;
    color: rgba(244, 248, 236, 0.72);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.staff-login-tab:hover,
.staff-login-tab:focus-visible {
    transform: translateY(-1px);
}

.staff-login-tab.is-active {
    background: rgba(31, 35, 27, 0.92);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(92, 103, 78, 0.34);
}

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

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

.staff-login-field > span {
    color: #f4f8ec;
    font-size: 0.98rem;
    font-weight: 700;
}

.staff-login-field input {
    width: 100%;
    min-height: 54px;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(89, 99, 76, 0.56);
    background: rgba(39, 44, 31, 0.96);
    color: #f2f7e7;
    font-size: 1rem;
}

.staff-login-field input::placeholder {
    color: rgba(214, 222, 198, 0.55);
}

.staff-login-field input:focus {
    outline: none;
    border-color: rgba(78, 219, 12, 0.5);
    box-shadow: 0 0 0 4px rgba(78, 219, 12, 0.08);
}

.staff-login-field small {
    color: rgba(226, 232, 212, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
}

.staff-login-secret-panel {
    display: none;
}

.staff-login-secret-panel.is-active {
    display: block;
}

.staff-login-secret-row {
    position: relative;
}

.staff-login-secret-row input {
    padding-right: 54px;
}

.staff-login-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: rgba(225, 232, 212, 0.72);
    cursor: pointer;
}

.staff-login-eye:hover,
.staff-login-eye:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.staff-login-eye .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.staff-login-submit {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #49d40f 0%, #3bc408 100%);
    color: #0e120b;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(73, 212, 15, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.staff-login-submit:hover,
.staff-login-submit:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(73, 212, 15, 0.24);
    filter: brightness(1.02);
    outline: none;
}

.staff-login-help {
    margin: 22px 0 18px;
    text-align: center;
    color: rgba(230, 236, 218, 0.72);
    font-size: 0.96rem;
}

.staff-login-footer {
    display: grid;
    gap: 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(103, 118, 86, 0.22);
    text-align: center;
}

.staff-login-footer strong {
    font-size: 1.02rem;
    color: #f5f8ef;
}

.staff-login-footer span {
    color: rgba(226, 232, 212, 0.68);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .auth-flash-stack {
        padding-left: 14px;
        padding-right: 14px;
    }

    .staff-login-screen {
        padding: 22px 12px;
    }

    .staff-login-card {
        padding: 26px 18px 22px;
        border-radius: 20px;
    }

    .staff-login-logo {
        width: 86px;
        height: 86px;
    }

    .staff-login-intro h1 {
        font-size: 1.85rem;
    }
}
