:root {
    --navy-950: #061126;
    --navy-900: #091a35;
    --navy-850: #0d2343;
    --navy-800: #112b50;
    --blue-700: #175cd3;
    --blue-600: #2471ee;
    --blue-100: #eaf2ff;
    --orange-800: #a63f00;
    --orange-700: #c94f00;
    --orange-600: #ed670f;
    --orange-500: #ff7a1a;
    --orange-100: #fff0e5;
    --orange-50: #fff8f3;
    --cyan-500: #14b8d4;
    --green-700: #087a5b;
    --green-600: #0f9f76;
    --green-100: #e7f8f2;
    --amber-700: #a85b00;
    --amber-600: #db7b00;
    --amber-100: #fff3dd;
    --red-700: #b42318;
    --red-600: #d92d20;
    --red-100: #ffebe9;
    --violet-600: #6941c6;
    --violet-100: #f0eaff;
    --slate-950: #101828;
    --slate-800: #26354d;
    --slate-700: #344054;
    --slate-600: #475467;
    --slate-500: #667085;
    --slate-400: #98a2b3;
    --slate-300: #cbd2dc;
    --slate-200: #e4e7ec;
    --slate-150: #edf0f5;
    --slate-100: #f2f4f7;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --page: #f5f7fb;
    --sidebar-width: 278px;
    --topbar-height: 78px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px rgba(16, 24, 40, .06);
    --shadow-float: 0 24px 80px rgba(6, 17, 38, .2);
    --shadow-blue: 0 15px 35px rgba(36, 113, 238, .22);
    --shadow-orange: 0 15px 35px rgba(237, 103, 15, .25);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    color: var(--slate-950);
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.sidebar-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Manrope', 'DM Sans', sans-serif;
    color: var(--slate-950);
    font-weight: 800;
    letter-spacing: -.035em;
}
p { color: var(--slate-600); }
a { color: var(--orange-700); text-decoration: none; }
.mono, code, .badge-code { font-family: 'IBM Plex Mono', monospace; }
.text-muted { color: var(--slate-500) !important; }

.btn {
    min-height: 42px;
    border-radius: 11px;
    border-width: 1px;
    font-weight: 700;
    font-size: .9rem;
    padding: .62rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary, .btn-scan {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    border-color: var(--orange-700);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(237, 103, 15, .20);
}
.btn-primary:hover, .btn-scan:hover {
    background: linear-gradient(135deg, #f57a1a, #b94400);
    border-color: #b94400;
    color: var(--white);
    box-shadow: var(--shadow-orange);
}
.btn-success { background: var(--green-600); border-color: var(--green-600); }
.btn-success:hover { background: var(--green-700); border-color: var(--green-700); }
.btn-danger { background: var(--red-600); border-color: var(--red-600); }
.btn-outline-secondary { color: var(--slate-700); border-color: var(--slate-300); }
.btn-outline-secondary:hover { background: var(--slate-100); color: var(--slate-950); border-color: var(--slate-400); }
.btn-outline-dark { color: var(--slate-800); border-color: var(--slate-300); }
.btn-outline-dark:hover { background: var(--slate-950); border-color: var(--slate-950); }
.btn-lg { min-height: 50px; border-radius: 13px; padding-inline: 1.25rem; }
.btn-sm { min-height: 36px; border-radius: 9px; padding: .45rem .78rem; }

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid transparent;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    padding: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

/* Application shell */
.app-shell { display: flex; min-height: 100vh; }
.side-rail {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    padding: 20px 16px 16px;
    background:
        radial-gradient(circle at 20% -15%, rgba(255, 122, 26, .32), transparent 34%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: #dce6f7;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 5px 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.28rem;
    background: linear-gradient(145deg, #ff922e, #d94f00);
    box-shadow: 0 12px 26px rgba(237, 103, 15, .32), inset 0 1px rgba(255,255,255,.22);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: 'Manrope', sans-serif; font-size: 1.18rem; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: #8fa4c5; font-size: .65rem; letter-spacing: .015em; }
.sidebar-close { color: #dce6f7; }

.site-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,.055);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
    margin-bottom: 20px;
    cursor: pointer;
}
.site-selector:hover { background: rgba(255,255,255,.08); }
.site-selector-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffb16d;
    background: rgba(255,122,26,.17);
}
.site-selector-copy { display: flex; flex-direction: column; min-width: 0; }
.site-selector-copy small { color: #879dbc; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; }
.site-selector-copy strong { color: #f7faff; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-selector > i { color: #6f85a6; font-size: .8rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-section-label {
    color: #627898;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding: 16px 12px 7px;
}
.sidebar-nav .nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    color: #9fb0c9;
    font-size: .86rem;
    font-weight: 600;
    position: relative;
    transition: .17s ease;
}
.sidebar-nav .nav-item > i:first-child { width: 20px; font-size: 1.02rem; text-align: center; }
.sidebar-nav .nav-item:hover { color: #fff; background: rgba(255,255,255,.065); }
.sidebar-nav .nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(255,122,26,.24), rgba(255,122,26,.08));
    box-shadow: inset 3px 0 var(--orange-500), inset 0 0 0 1px rgba(255,122,26,.13);
}
.sidebar-nav .nav-item.active > i:first-child { color: #ffad66; }
.nav-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ed9a1; margin-left: auto; box-shadow: 0 0 0 4px rgba(46,217,161,.1); }
.nav-trailing { margin-left: auto; color: #667c9d; font-size: .78rem !important; }
.sidebar-nav .nav-disabled { cursor: not-allowed; opacity: .58; }
.sidebar-nav .nav-disabled:hover { background: transparent; color: #9fb0c9; }
.sidebar-nav .nav-disabled em {
    margin-left: auto;
    font-style: normal;
    font-size: .58rem;
    color: #7890b1;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.sidebar-foot { margin-top: auto; padding-top: 22px; }
.support-card, .user-card { display: flex; align-items: center; gap: 10px; border-radius: 13px; }
.support-card { padding: 11px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); margin-bottom: 10px; }
.support-icon { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(20,184,212,.14); color: #65d7eb; }
.support-card div, .user-copy { display: flex; flex-direction: column; min-width: 0; }
.support-card strong, .user-copy strong { color: #e8effb; font-size: .78rem; }
.support-card small, .user-copy small { color: #8094b2; font-size: .68rem; }
.support-card .icon-btn { width: 30px; height: 30px; margin-left: auto; color: #86a0c2; }
.user-card { padding: 10px 8px; }
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6bd57, #db7b00);
    color: #301b00;
    font-family: 'Manrope';
    font-size: .75rem;
    font-weight: 800;
}
.user-card > i { color: #6d82a3; font-size: .9rem; }
.sidebar-backdrop { display: none; }

.main-panel { width: calc(100% - var(--sidebar-width)); margin-left: var(--sidebar-width); min-width: 0; }
.main-topbar {
    height: var(--topbar-height);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--slate-150);
}

.main-topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-500), rgba(255,122,26,.15) 28%, transparent 62%);
    pointer-events: none;
}
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 14px; }
.page-eyebrow { color: var(--slate-400); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 2px; }
.page-eyebrow i { font-size: .58rem; margin-inline: 4px; }
.page-title { font-size: 1.22rem; margin: 0; letter-spacing: -.025em; }
.topbar-clock { align-items: center; gap: 9px; padding-right: 15px; border-right: 1px solid var(--slate-200); }
.topbar-clock > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.topbar-clock strong { color: var(--slate-800); font-family: 'IBM Plex Mono'; font-size: .78rem; }
.topbar-clock small { color: var(--slate-400); font-size: .61rem; margin-top: 3px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #18b888; box-shadow: 0 0 0 4px rgba(24,184,136,.12); }
.topbar-icon { border-color: var(--slate-200); color: var(--slate-600); background: #fff; }
.topbar-icon:hover { background: var(--slate-50); color: var(--slate-950); }
.notification-button { position: relative; }
.notification-count {
    position: absolute;
    right: -4px;
    top: -5px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-600);
    color: #fff;
    font-size: .59rem;
    font-weight: 800;
    border: 2px solid #fff;
}
.topbar-primary { min-height: 42px; padding-inline: 16px; }
.page-context-bar {
    min-height: 44px;
    background: #fff;
    border-bottom: 1px solid var(--slate-150);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.page-context-bar p { margin: 0; font-size: .76rem; color: var(--slate-500); }
.context-meta { align-items: center; gap: 18px; color: var(--slate-400); font-size: .68rem; }
.context-meta i { color: var(--green-600); margin-right: 5px; }
.main-content { padding: 28px 30px 42px; max-width: 1580px; margin: 0 auto; }

/* Common components */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2, .section-heading h3 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }
.section-heading p { margin: 4px 0 0; font-size: .78rem; }
.section-kicker { color: var(--orange-700); font-size: .64rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; margin-bottom: 5px; }
.surface-card {
    background: #fff;
    border: 1px solid var(--slate-150);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.card { border: 1px solid var(--slate-150); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.card-header { background: #fff; border-color: var(--slate-150); }
.empty-state { padding: 38px 24px; text-align: center; }
.empty-state-icon { width: 54px; height: 54px; border-radius: 17px; background: var(--slate-100); color: var(--slate-500); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 13px; }
.empty-state h5 { font-size: .95rem; margin-bottom: 5px; }
.empty-state p { font-size: .78rem; margin: 0 auto; max-width: 320px; }

.form-label { color: var(--slate-700); font-size: .76rem; font-weight: 700; margin-bottom: 7px; }
.form-control, .form-select {
    min-height: 46px;
    border-radius: 11px;
    border: 1px solid var(--slate-200);
    color: var(--slate-950);
    padding: .68rem .85rem;
    font-size: .88rem;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.02);
}
.form-control::placeholder { color: var(--slate-400); }
.form-control:focus, .form-select:focus { border-color: #f3a265; box-shadow: 0 0 0 4px rgba(237,103,15,.11); }
.form-hint { color: var(--slate-400); font-size: .68rem; margin-top: 6px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-400); z-index: 2; }
.input-icon-wrap .form-control, .input-icon-wrap .form-select { padding-left: 40px; }
.required-mark { color: var(--red-600); }

.badge-status-pill, .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .63rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending-pill { background: var(--amber-100); color: var(--amber-700); }
.status-success-pill { background: var(--green-100); color: var(--green-700); }
.status-danger-pill { background: var(--red-100); color: var(--red-700); }
.status-info-pill { background: var(--blue-100); color: var(--blue-700); }
.status-neutral-pill { background: var(--slate-100); color: var(--slate-600); }
.status-orange-pill { background: var(--orange-100); color: var(--orange-700); }

/* Command centre */
.command-hero {
    position: relative;
    overflow: hidden;
    min-height: 238px;
    border-radius: 22px;
    padding: 28px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 15%, rgba(255,122,26,.48), transparent 24%),
        radial-gradient(circle at 70% 120%, rgba(237,103,15,.20), transparent 36%),
        linear-gradient(125deg, #091a35 0%, #102c58 66%, #843600 145%);
    box-shadow: 0 22px 50px rgba(7, 22, 47, .18);
}
.command-hero::before, .command-hero::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.command-hero::before { width: 330px; height: 330px; right: -85px; top: -155px; }
.command-hero::after { width: 230px; height: 230px; right: 55px; bottom: -150px; }
.command-hero-content { position: relative; z-index: 2; max-width: 650px; }
.command-hero .hero-status { display: inline-flex; align-items: center; gap: 8px; color: #bcd2f2; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 19px; }
.command-hero .hero-status span { width: 7px; height: 7px; border-radius: 50%; background: #2ed9a1; box-shadow: 0 0 0 5px rgba(46,217,161,.12); }
.command-hero h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.05em; margin-bottom: 11px; }
.command-hero p { color: #b8c9e2; font-size: .9rem; max-width: 560px; margin-bottom: 24px; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-light { color: #fff; border-color: rgba(255,255,255,.18); background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); box-shadow: 0 12px 28px rgba(201,79,0,.30); }
.hero-actions .btn-light:hover { color: #fff; background: linear-gradient(135deg, #ff8c2b, #b94400); border-color: rgba(255,255,255,.28); }
.hero-actions .btn-ghost { border: 1px solid rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.06); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-visual {
    position: absolute;
    right: 34px;
    top: 28px;
    z-index: 2;
    width: 260px;
    height: 180px;
}
.hero-security-ring { position: absolute; inset: 5px 45px 0 auto; width: 155px; height: 155px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.hero-security-ring::before, .hero-security-ring::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.hero-security-ring::before { inset: 13px; }
.hero-security-ring::after { inset: 29px; }
.hero-shield { width: 66px; height: 66px; border-radius: 21px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff; background: linear-gradient(145deg, rgba(255,146,46,.98), rgba(201,79,0,.82)); box-shadow: 0 20px 45px rgba(0,0,0,.22); }
.hero-float-card { position: absolute; border: 1px solid rgba(255,255,255,.13); background: rgba(7,22,47,.66); backdrop-filter: blur(12px); border-radius: 13px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.hero-float-card.one { left: 0; bottom: 10px; }
.hero-float-card.two { right: 0; top: 12px; }
.hero-float-card strong { color: #fff; font-size: .75rem; display: block; }
.hero-float-card small { color: #96accb; font-size: .61rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 26px; }
.metric-card { padding: 18px; position: relative; overflow: hidden; }
.metric-card::after { content: ''; position: absolute; right: -16px; bottom: -28px; width: 85px; height: 85px; border-radius: 50%; background: var(--metric-bg, var(--blue-100)); opacity: .65; }
.metric-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.metric-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--metric-bg, var(--blue-100)); color: var(--metric-color, var(--blue-700)); font-size: 1rem; }
.metric-trend { color: var(--green-700); background: var(--green-100); border-radius: 999px; padding: 3px 7px; font-size: .61rem; font-weight: 800; }
.metric-value { font-family: 'Manrope'; font-weight: 800; font-size: 1.7rem; letter-spacing: -.05em; margin-bottom: 1px; }
.metric-label { color: var(--slate-500); font-size: .72rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .8fr); gap: 18px; align-items: start; }
.panel-card { padding: 20px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.panel-head h3 { font-size: .98rem; margin: 0; }
.panel-head p { margin: 4px 0 0; font-size: .72rem; }
.panel-action { color: var(--orange-700); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.panel-action:hover { color: var(--orange-600); }

.visit-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.visit-table th { color: var(--slate-400); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; padding: 0 12px 10px; border-bottom: 1px solid var(--slate-150); }
.visit-table td { padding: 13px 12px; border-bottom: 1px solid var(--slate-150); vertical-align: middle; font-size: .77rem; }
.visit-table tbody tr:last-child td { border-bottom: 0; }
.visit-table tbody tr:hover { background: var(--slate-50); }
.visitor-cell { display: flex; align-items: center; gap: 10px; }
.mini-avatar { width: 35px; height: 35px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--orange-100), #ffe0c7); color: var(--orange-700); font-family: 'Manrope'; font-size: .72rem; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.visitor-cell strong { display: block; color: var(--slate-800); font-size: .77rem; }
.visitor-cell small { display: block; color: var(--slate-400); font-size: .65rem; margin-top: 2px; }
.host-cell strong { display: block; font-size: .74rem; color: var(--slate-700); }
.host-cell small { color: var(--slate-400); font-size: .64rem; }

.occupancy-card { padding: 21px; }
.occupancy-ring-wrap { display: flex; justify-content: center; padding: 6px 0 20px; }
.occupancy-ring {
    width: 164px;
    height: 164px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: conic-gradient(var(--blue-600) 0 28%, var(--slate-100) 28% 100%);
}
.occupancy-ring::before { content: ''; position: absolute; inset: 15px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--slate-150); }
.occupancy-ring-content { position: relative; z-index: 2; text-align: center; }
.occupancy-ring-content strong { display: block; font-family: 'Manrope'; font-size: 2rem; letter-spacing: -.06em; }
.occupancy-ring-content small { display: block; color: var(--slate-400); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.occupancy-legend { display: grid; gap: 10px; }
.occupancy-legend-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--slate-150); padding-top: 10px; color: var(--slate-500); font-size: .72rem; }
.occupancy-legend-row span:first-child { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-600); }
.legend-dot.green { background: var(--green-600); }
.legend-dot.amber { background: var(--amber-600); }
.occupancy-legend-row strong { color: var(--slate-800); }

.quick-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 12px; border: 1px solid var(--slate-150); border-radius: 13px; color: var(--slate-800); transition: .18s ease; }
.quick-action:hover { border-color: #f6c49e; background: var(--orange-50); color: var(--orange-700); transform: translateY(-1px); }
.quick-action span:first-child { width: 35px; height: 35px; border-radius: 10px; background: var(--orange-100); color: var(--orange-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-action strong { display: block; font-size: .74rem; }
.quick-action small { color: var(--slate-400); font-size: .62rem; display: block; margin-top: 2px; }

.pending-stack { display: grid; gap: 10px; }
.pending-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--slate-150); padding: 10px; border-radius: 13px; }
.pending-row .mini-avatar { width: 42px; height: 42px; }
.pending-row-copy { min-width: 0; flex: 1; }
.pending-row-copy strong { display: block; font-size: .76rem; color: var(--slate-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-row-copy small { display: block; color: var(--slate-400); font-size: .64rem; margin-top: 2px; }
.pending-row > i { color: var(--slate-300); }

/* Pre-registration */
.form-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.form-card { overflow: visible; }
.form-card-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--slate-150); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-card-head h2 { font-size: 1.03rem; margin: 0; }
.form-card-head p { font-size: .74rem; margin: 4px 0 0; }
.form-progress { display: flex; align-items: center; gap: 7px; }
.form-progress span { width: 22px; height: 4px; border-radius: 999px; background: var(--slate-200); }
.form-progress span.active { width: 32px; background: var(--orange-600); }
.form-card-body { padding: 24px; }
.form-section { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--slate-150); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.form-section-number { width: 28px; height: 28px; border-radius: 9px; background: var(--orange-100); color: var(--orange-700); display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono'; font-size: .68rem; font-weight: 700; }
.form-section-title h3 { font-size: .83rem; margin: 0; letter-spacing: -.015em; }
.form-actions { padding-top: 4px; display: flex; justify-content: flex-end; gap: 10px; }
.side-info-card { padding: 20px; position: sticky; top: calc(var(--topbar-height) + 65px); }
.side-info-card h3 { font-size: .92rem; margin-bottom: 4px; }
.side-info-card > p { font-size: .72rem; }
.process-list { position: relative; display: grid; gap: 0; margin-top: 18px; }
.process-step { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.process-step:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 29px; bottom: 2px; width: 1px; background: var(--slate-200); }
.process-step-icon { width: 29px; height: 29px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--slate-100); color: var(--slate-500); font-size: .75rem; flex-shrink: 0; position: relative; z-index: 2; }
.process-step:first-child .process-step-icon { background: var(--green-100); color: var(--green-700); }
.process-step strong { color: var(--slate-700); font-size: .73rem; display: block; }
.process-step small { color: var(--slate-400); font-size: .63rem; display: block; margin-top: 3px; line-height: 1.4; }
.security-note { margin-top: 4px; padding: 13px; border-radius: 12px; background: var(--orange-50); border: 1px solid #f8d4b7; display: flex; gap: 10px; }
.security-note > i { color: var(--orange-700); }
.security-note strong { color: var(--slate-700); display: block; font-size: .7rem; }
.security-note small { color: var(--slate-500); display: block; font-size: .62rem; margin-top: 2px; }
.channel-option-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.channel-option { position: relative; }
.channel-option input { position: absolute; opacity: 0; pointer-events: none; }
.channel-option label { min-height: 84px; border: 1px solid var(--slate-200); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; text-align: center; transition: .18s ease; }
.channel-option label i { font-size: 1.1rem; color: var(--slate-500); }
.channel-option label strong { font-size: .72rem; color: var(--slate-700); }
.channel-option label small { font-size: .58rem; color: var(--slate-400); }
.channel-option input:checked + label { border-color: #f0aa73; background: var(--orange-50); box-shadow: 0 0 0 3px rgba(237,103,15,.09); }
.channel-option input:checked + label i, .channel-option input:checked + label strong { color: var(--orange-700); }

/* Visit list */
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.list-toolbar-left, .list-toolbar-right { display: flex; align-items: center; gap: 10px; }
.search-control { position: relative; width: min(320px, 100%); }
.search-control i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--slate-400); }
.search-control input { padding-left: 39px; }
.filter-button { min-height: 42px; border: 1px solid var(--slate-200); border-radius: 11px; background: #fff; color: var(--slate-600); padding: 0 13px; font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.filter-button:hover { background: var(--slate-50); }
.table-card { overflow: hidden; }
.table-responsive { scrollbar-width: thin; }
.data-table { min-width: 820px; margin: 0; }
.data-table thead th { background: var(--slate-50); color: var(--slate-400); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--slate-150); }
.data-table tbody td { padding: 14px 16px; border-color: var(--slate-150); color: var(--slate-600); font-size: .76rem; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcfe; }
.data-table .table-actions { display: flex; justify-content: flex-end; gap: 4px; }
.data-table .table-actions .icon-btn { width: 34px; height: 34px; color: var(--slate-500); }
.data-table .table-actions .icon-btn:hover { color: var(--orange-700); background: var(--orange-100); }
.date-stack strong { display: block; color: var(--slate-700); font-size: .73rem; }
.date-stack small { display: block; color: var(--slate-400); font-size: .64rem; margin-top: 3px; }
.table-footer { padding: 13px 16px; border-top: 1px solid var(--slate-150); display: flex; align-items: center; justify-content: space-between; color: var(--slate-400); font-size: .68rem; }

/* Confirmation */
.success-panel { max-width: 760px; margin: 10px auto; text-align: center; padding: 34px; }
.success-icon { width: 72px; height: 72px; border-radius: 24px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); font-size: 2rem; box-shadow: 0 0 0 10px rgba(15,159,118,.05); margin-bottom: 20px; }
.success-panel h2 { font-size: 1.5rem; margin-bottom: 7px; }
.success-panel > p { font-size: .8rem; margin-bottom: 23px; }
.visit-summary { max-width: 580px; margin: 0 auto 22px; border: 1px solid var(--slate-150); border-radius: 15px; overflow: hidden; text-align: left; }
.visit-summary-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 15px; border-bottom: 1px solid var(--slate-150); }
.visit-summary-row:last-child { border-bottom: 0; }
.visit-summary-row span { color: var(--slate-400); font-size: .7rem; }
.visit-summary-row strong { color: var(--slate-700); font-size: .74rem; }
.delivery-note { max-width: 580px; margin: 0 auto 22px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); padding: 11px 13px; font-size: .69rem; text-align: left; }

/* Live dashboard and badge cards */
.live-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 16px; padding: 15px 18px; background: linear-gradient(90deg, #eef8f5, #f8fbff); border: 1px solid #dceee8; margin-bottom: 20px; }
.live-banner-left { display: flex; align-items: center; gap: 11px; }
.live-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 0 rgba(15,159,118,.45); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(15,159,118,0); } }
.live-banner strong { display: block; color: var(--green-700); font-size: .75rem; }
.live-banner small { display: block; color: var(--slate-500); font-size: .63rem; margin-top: 2px; }
.live-banner-actions { display: flex; gap: 8px; }

.dashboard-section { margin-bottom: 28px; }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.dashboard-section-title { display: flex; align-items: center; gap: 10px; }
.dashboard-section-title h2 { font-size: .98rem; margin: 0; }
.dashboard-section-title .count-chip { min-width: 25px; height: 25px; border-radius: 8px; background: var(--slate-100); color: var(--slate-600); display: inline-flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 800; }
.visitor-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.access-badge {
    position: relative;
    background: #fff;
    border: 1px solid var(--slate-150);
    border-radius: 17px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.access-badge:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(16,24,40,.11); border-color: #d5deeb; }
.access-badge .stripe { height: 4px; background: var(--slate-300); }
.access-badge.status-pending .stripe { background: linear-gradient(90deg, #f5a524, var(--amber-600)); }
.access-badge.status-checkedin .stripe { background: linear-gradient(90deg, #2ed9a1, var(--green-600)); }
.access-badge.status-rejected .stripe { background: var(--red-600); }
.badge-top { padding: 15px 15px 0; display: flex; align-items: center; justify-content: space-between; }
.badge-type { color: var(--slate-400); font-size: .59rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.badge-menu { width: 29px; height: 29px; border: 0; border-radius: 8px; background: transparent; color: var(--slate-400); }
.badge-menu:hover { background: var(--slate-100); color: var(--slate-700); }
.access-badge .photo-wrap { padding: 3px 15px 9px; display: flex; justify-content: center; }
.access-badge .photo, .access-badge .photo-placeholder { width: 82px; height: 82px; border-radius: 25px; }
.access-badge .photo { object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--slate-150), 0 10px 22px rgba(16,24,40,.12); }
.access-badge .photo-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--orange-100), #ffe0c7); color: var(--orange-700); border: 4px solid #fff; box-shadow: 0 0 0 1px var(--slate-150); font-family: 'Manrope'; font-weight: 800; font-size: 1.35rem; }
.access-badge .body { padding: 0 16px 15px; text-align: center; }
.access-badge .name { color: var(--slate-950); font-family: 'Manrope'; font-size: .89rem; font-weight: 800; letter-spacing: -.02em; }
.access-badge .meta { color: var(--slate-400); font-size: .66rem; margin: 3px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.access-badge .status-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .59rem; text-transform: uppercase; letter-spacing: .045em; font-weight: 800; padding: 5px 8px; border-radius: 999px; }
.status-pending .status-chip { background: var(--amber-100); color: var(--amber-700); }
.status-checkedin .status-chip { background: var(--green-100); color: var(--green-700); }
.status-rejected .status-chip { background: var(--red-100); color: var(--red-700); }
.access-badge .badge-details { border-top: 1px solid var(--slate-150); display: grid; grid-template-columns: 1fr 1fr; }
.badge-detail { padding: 10px 12px; text-align: center; }
.badge-detail + .badge-detail { border-left: 1px solid var(--slate-150); }
.badge-detail small { display: block; color: var(--slate-400); font-size: .56rem; text-transform: uppercase; letter-spacing: .06em; }
.badge-detail strong { display: block; color: var(--slate-700); font-size: .66rem; margin-top: 3px; }
.access-badge .barcode { height: 19px; margin: 0 16px 14px; border-radius: 3px; background: repeating-linear-gradient(90deg, #172033 0 2px, transparent 2px 4px, #172033 4px 5px, transparent 5px 9px, #172033 9px 10px, transparent 10px 14px); opacity: .36; }

/* Kiosk */
.kiosk-body {
    min-height: 100vh;
    color: #edf4ff;
    background:
        radial-gradient(circle at 10% 15%, rgba(36,113,238,.25), transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(20,184,212,.13), transparent 30%),
        linear-gradient(140deg, #07162f 0%, #071226 55%, #0b1d38 100%);
}
.kiosk-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; padding: 18px 24px; position: relative; overflow: hidden; }
.kiosk-shell::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.kiosk-header, .kiosk-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.kiosk-brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.kiosk-brand .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
.kiosk-brand strong { display: block; font-family: 'Manrope'; letter-spacing: .06em; font-size: .9rem; }
.kiosk-brand small { display: block; color: #7f96b8; font-size: .61rem; margin-top: 2px; }
.kiosk-location { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); border-radius: 12px; padding: 9px 12px; }
.kiosk-location i { color: #ff9d49; }
.kiosk-location span { display: flex; flex-direction: column; }
.kiosk-location strong { color: #e9f1ff; font-size: .69rem; }
.kiosk-location small { color: #7188aa; font-size: .58rem; }
.kiosk-main { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 32px 0; }
.kiosk-content { width: 100%; max-width: 980px; }
.kiosk-footer { color: #6d83a3; font-size: .61rem; }
.kiosk-footer span { display: flex; align-items: center; gap: 7px; }
.kiosk-footer .secure-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ed9a1; }
.kiosk-intro { text-align: center; margin-bottom: 30px; }
.kiosk-intro-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); border-radius: 999px; padding: 7px 11px; color: #8da5c9; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-bottom: 18px; }
.kiosk-intro-badge span { width: 7px; height: 7px; border-radius: 50%; background: #2ed9a1; box-shadow: 0 0 0 5px rgba(46,217,161,.11); }
.kiosk-intro h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; margin-bottom: 8px; }
.kiosk-intro p { color: #8299bb; margin: 0; font-size: .91rem; }
.kiosk-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; }
.kiosk-choice { min-height: 190px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 23px; background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); color: #fff; position: relative; overflow: hidden; transition: .2s ease; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.kiosk-choice::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -65px; bottom: -75px; background: rgba(255,122,26,.12); transition: .2s ease; }
.kiosk-choice:hover { color: #fff; border-color: rgba(255,153,71,.58); background: linear-gradient(145deg, rgba(255,122,26,.22), rgba(255,255,255,.04)); transform: translateY(-4px); box-shadow: 0 25px 60px rgba(0,0,0,.2); }
.kiosk-choice:hover::after { transform: scale(1.25); background: rgba(255,122,26,.21); }
.kiosk-choice .ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: rgba(255,122,26,.18); color: #ffad66; margin-bottom: 24px; }
.kiosk-choice .label { font-family: 'Manrope'; font-size: 1.03rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 5px; }
.kiosk-choice .sub { color: #7f96b8; font-size: .74rem; max-width: 260px; line-height: 1.5; }
.kiosk-choice .arrow { position: absolute; top: 23px; right: 23px; color: #617897; }
.kiosk-panel { width: 100%; max-width: 520px; margin: 0 auto; background: rgba(12,31,59,.86); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.32); padding: 30px; backdrop-filter: blur(20px); }
.kiosk-panel.wide { max-width: 760px; }
.kiosk-step { color: #7290b9; font-size: .62rem; text-transform: uppercase; letter-spacing: .11em; font-family: 'IBM Plex Mono'; font-weight: 700; }
.kiosk-panel h2, .kiosk-panel h3 { color: #fff; }
.kiosk-panel .form-label { color: #a7b9d4; }
.kiosk-panel .form-control, .kiosk-panel .form-select { background-color: rgba(3,15,33,.62); border-color: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.kiosk-panel .form-control::placeholder { color: #566f92; }
.kiosk-panel .form-control:focus, .kiosk-panel .form-select:focus { background-color: rgba(3,15,33,.78); border-color: #f28b3c; box-shadow: 0 0 0 4px rgba(255,122,26,.16); color: #fff; }
.kiosk-panel .form-select option { color: #111827; background: #fff; }
.kiosk-code-input { font-family: 'IBM Plex Mono'; letter-spacing: .55em; font-size: 1.65rem; text-align: center; padding-left: calc(.85rem + .55em); }
.kiosk-back { color: #758daf; font-size: .73rem; font-weight: 700; }
.kiosk-back:hover { color: #b8cdf0; }
.scan-pulse { width: 13px; height: 13px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 0 rgba(255,122,26,.62); animation: scanPulse 1.6s infinite; }
@keyframes scanPulse { 70% { box-shadow: 0 0 0 16px rgba(255,122,26,0); } }
.video-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: #030d1e; }
.video-frame::before { content: ''; position: absolute; inset: 10%; border: 2px solid rgba(255,145,52,.68); border-radius: 16px; z-index: 2; pointer-events: none; }
.video-frame::after { content: 'Align face inside frame'; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; border-radius: 999px; padding: 5px 9px; background: rgba(3,13,30,.72); color: #a9bddd; font-size: .58rem; white-space: nowrap; }
.photo-consent-note { display: flex; gap: 9px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; color: #7990b2; font-size: .63rem; text-align: left; }
.photo-consent-note i { color: #ff9d49; }
.waiting-orbit { width: 94px; height: 94px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; position: relative; }
.waiting-orbit::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed rgba(255,155,72,.38); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-orbit i { font-size: 1.75rem; color: #ff9d49; }
.kiosk-progress-list { display: grid; gap: 9px; margin-top: 22px; text-align: left; }
.kiosk-progress-item { display: flex; align-items: center; gap: 10px; color: #7f96b8; font-size: .67rem; }
.kiosk-progress-item i { width: 25px; height: 25px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.055); }
.kiosk-progress-item.done { color: #9edbc8; }
.kiosk-progress-item.done i { background: rgba(46,217,161,.12); color: #4ad7aa; }

/* Notification centre, modal and toast */
.notification-centre { width: min(410px, 100vw); border: 0; box-shadow: -20px 0 70px rgba(16,24,40,.16); }
.notification-centre .offcanvas-header { padding: 22px 22px 14px; border-bottom: 1px solid var(--slate-150); }
.notification-centre .offcanvas-title { font-size: 1.13rem; }
.notification-centre .offcanvas-body { padding: 18px 20px; }
.desktop-alert-card { width: 100%; border: 1px solid #f5cfb1; background: var(--orange-50); border-radius: 14px; padding: 13px; display: flex; align-items: center; gap: 11px; text-align: left; margin-bottom: 22px; }
.desktop-alert-card > span { width: 39px; height: 39px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--orange-600); color: #fff; }
.desktop-alert-card div { flex: 1; }
.desktop-alert-card strong { display: block; color: var(--slate-800); font-size: .75rem; }
.desktop-alert-card small { display: block; color: var(--slate-500); font-size: .62rem; line-height: 1.4; margin-top: 2px; }
.desktop-alert-card > i { color: var(--slate-400); }
.notification-date { color: var(--slate-400); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 7px 3px; }
.notification-item { display: flex; gap: 11px; padding: 13px 5px; border-bottom: 1px solid var(--slate-150); position: relative; }
.notification-item.unread::after { content: ''; position: absolute; right: 3px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-600); }
.notification-icon { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.notification-icon.warning { background: var(--amber-100); color: var(--amber-700); }
.notification-icon.success { background: var(--green-100); color: var(--green-700); }
.notification-icon.info { background: var(--blue-100); color: var(--blue-700); }
.notification-item > div { padding-right: 14px; }
.notification-item strong { display: block; color: var(--slate-800); font-size: .73rem; }
.notification-item p { margin: 2px 0 3px; color: var(--slate-500); font-size: .65rem; }
.notification-item small { color: var(--slate-400); font-size: .58rem; }
.modal-content { border: 0; border-radius: 19px; box-shadow: var(--shadow-float); overflow: hidden; }
.modal-header, .modal-footer { border-color: var(--slate-150); padding: 16px 19px; }
.modal-body { padding: 20px; }
.vacs-toast-layer { z-index: 1100; }
#vacsToast { min-width: 320px; border-radius: 15px; box-shadow: var(--shadow-float); }
#vacsToast .toast-body { padding: 13px; }
.toast-icon { width: 35px; height: 35px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-100); color: var(--green-700); }

/* Assisted check-in */
.assisted-grid { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 20px; align-items: start; }
.mirror-panel { padding: 22px; }
.mirror-field { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-bottom: 1px solid var(--slate-150); padding: 11px 0; }
.mirror-field:last-child { border-bottom: 0; }
.mirror-field span { color: var(--slate-400); font-size: .67rem; }
.mirror-field strong { color: var(--slate-700); font-size: .72rem; }

@media (max-width: 1280px) {
    .hero-visual { opacity: .58; right: 10px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .visitor-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 991.98px) {
    .side-rail { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 25px 0 70px rgba(0,0,0,.28); }
    .side-rail.is-open { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(6,17,38,.55); backdrop-filter: blur(3px); z-index: 1035; }
    .sidebar-backdrop.is-visible { display: block; }
    .main-panel { width: 100%; margin-left: 0; }
    .main-topbar { padding-inline: 20px; }
    .page-context-bar { padding-inline: 20px; }
    .main-content { padding: 23px 20px 36px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-page-grid { grid-template-columns: 1fr; }
    .side-info-card { position: static; }
    .visitor-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .assisted-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .main-topbar { height: 70px; padding-inline: 15px; }
    .page-context-bar { padding: 10px 15px; min-height: auto; }
    .main-content { padding: 18px 14px 30px; }
    .page-title { font-size: 1.05rem; }
    .page-eyebrow { display: none; }
    .command-hero { padding: 24px 20px; min-height: auto; }
    .command-hero h2 { max-width: 390px; }
    .hero-visual { display: none; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { padding: 15px; }
    .metric-value { font-size: 1.45rem; }
    .dashboard-grid { gap: 14px; }
    .panel-card, .occupancy-card { padding: 16px; }
    .visit-table th:nth-child(3), .visit-table td:nth-child(3) { display: none; }
    .form-card-head, .form-card-body { padding-inline: 17px; }
    .channel-option-grid { grid-template-columns: 1fr; }
    .channel-option label { min-height: 65px; flex-direction: row; justify-content: flex-start; padding-inline: 15px; text-align: left; }
    .list-toolbar { align-items: stretch; flex-direction: column; }
    .list-toolbar-left, .list-toolbar-right { width: 100%; }
    .search-control { width: 100%; }
    .visitor-card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .live-banner { align-items: flex-start; flex-direction: column; }
    .success-panel { padding: 24px 17px; }
    .visit-summary-row { grid-template-columns: 110px 1fr; }
    .kiosk-shell { padding: 14px; }
    .kiosk-main { padding: 22px 0; }
    .kiosk-choice-grid { grid-template-columns: 1fr; }
    .kiosk-choice { min-height: 145px; }
    .kiosk-panel { padding: 22px 17px; }
    .kiosk-location { display: none; }
}

@media (max-width: 480px) {
    .metric-grid { grid-template-columns: 1fr; }
    .quick-action-grid { grid-template-columns: 1fr; }
    .visitor-card-grid { grid-template-columns: 1fr; }
    .topbar-actions { gap: 7px; }
    .topbar-icon { width: 39px; height: 39px; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .btn { width: 100%; }
    .visit-summary-row { grid-template-columns: 1fr; gap: 3px; }
}

@media print {
    .side-rail, .main-topbar, .page-context-bar, .live-banner-actions, .sidebar-backdrop { display: none !important; }
    .main-panel { margin: 0; width: 100%; }
    .main-content { max-width: none; padding: 0; }
    body { background: #fff; }
    .surface-card, .access-badge { box-shadow: none; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reusable photo placeholder outside badge cards (for review modals). */
.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--orange-100), #ffe0c7);
    color: var(--orange-700);
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px var(--slate-150);
    font-family: 'Manrope';
    font-weight: 800;
    font-size: 1.35rem;
}

/* Authentication, approval governance and resilient kiosk consent */
.nav-count {
    min-width: 23px;
    height: 23px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0 7px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff;
    font-size: .62rem;
    font-style: normal;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(237, 103, 15, .25);
}
.user-logout { color: #9db0ca; }
.user-logout:hover { color: #fff; background: rgba(255,122,26,.18); }
.vacs-alert { border: 0; border-radius: 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-card); }

.kiosk-staff-login {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 12px;
    border: 1px solid rgba(255,153,71,.28);
    background: rgba(255,122,26,.10);
    color: #ffc38f;
    font-size: .7rem;
    font-weight: 800;
}
.kiosk-staff-login:hover { color: #fff; border-color: rgba(255,153,71,.6); background: rgba(255,122,26,.22); }

.auth-shell-card {
    width: min(100%, 960px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(10,27,52,.92);
    box-shadow: 0 35px 110px rgba(0,0,0,.38);
    backdrop-filter: blur(24px);
}
.auth-brand-panel {
    padding: 48px 42px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(255,122,26,.28), transparent 34%),
        linear-gradient(150deg, #102c54, #07162d 72%);
}
.auth-brand-panel::after { content: ''; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -120px; bottom: -110px; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 70px rgba(255,122,26,.025); }
.auth-brand-panel h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.02; margin: 18px 0 16px; position: relative; z-index: 2; }
.auth-brand-panel p { color: #9db2d1; line-height: 1.7; max-width: 430px; position: relative; z-index: 2; }
.auth-feature-list { display: grid; gap: 12px; margin-top: 32px; position: relative; z-index: 2; }
.auth-feature-list span { display: flex; align-items: center; gap: 11px; color: #dce8f9; font-size: .8rem; font-weight: 700; }
.auth-feature-list i { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,122,26,.17); color: #ffaf6c; }
.auth-form-panel { padding: 43px 44px; background: #fff; }
.auth-form-panel h2 { font-size: 1.75rem; margin: 4px 0; }
.auth-back { color: var(--slate-500); font-size: .72rem; font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }
.auth-back:hover { color: var(--orange-700); }
.password-wrap input { padding-right: 48px; }
.password-wrap button { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--slate-500); z-index: 3; }
.password-wrap button:hover { background: var(--orange-50); color: var(--orange-700); }
.demo-login-card { border: 1px dashed #f0b083; background: var(--orange-50); border-radius: 14px; padding: 14px; display: grid; gap: 3px; }
.demo-login-card strong { color: var(--orange-800); font-size: .72rem; margin-bottom: 4px; }
.demo-login-card small { color: var(--slate-600); font-size: .63rem; }

.consent-open { overflow: hidden; }
.consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(2,10,25,.82);
    backdrop-filter: blur(10px);
    transition: opacity .18s ease, visibility .18s ease;
}
.consent-overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.consent-dialog { width: min(100%, 510px); max-height: calc(100vh - 36px); overflow-y: auto; padding: 30px; border-radius: 24px; background: #fff; box-shadow: 0 35px 100px rgba(0,0,0,.45); }
.consent-dialog h3 { font-size: 1.45rem; margin: 6px 0 10px; }
.consent-dialog p { font-size: .8rem; line-height: 1.6; }
.consent-icon { width: 54px; height: 54px; border-radius: 17px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: linear-gradient(145deg, var(--orange-100), #ffd6b8); color: var(--orange-700); font-size: 1.35rem; }
.consent-check { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--slate-200); border-radius: 13px; padding: 13px; color: var(--slate-700); font-size: .74rem; line-height: 1.45; cursor: pointer; }
.consent-check input { margin-top: 3px; accent-color: var(--orange-600); }
.camera-start-state { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: radial-gradient(circle at center, rgba(17,43,80,.92), rgba(3,13,30,.98)); color: #dbe8fa; text-align: center; padding: 20px; }
.camera-start-state i { font-size: 2rem; color: #ffad66; margin-bottom: 5px; }
.camera-start-state strong { font-size: .82rem; }
.camera-start-state small { color: #8198ba; font-size: .65rem; }
.camera-message { border-radius: 11px; padding: 10px 12px; font-size: .67rem; line-height: 1.45; }
.camera-message.success { display: block !important; background: rgba(46,217,161,.12); color: #9be0ca; border: 1px solid rgba(46,217,161,.2); }
.camera-message.warning { display: block !important; background: rgba(255,174,66,.1); color: #ffd39a; border: 1px solid rgba(255,174,66,.22); }
.camera-message.danger { display: block !important; background: rgba(255,90,82,.1); color: #ffb1ac; border: 1px solid rgba(255,90,82,.22); }
.visitor-photo-preview { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid rgba(255,255,255,.12); }
.camera-upload-label { cursor: pointer; }

.approval-command-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 28px; margin-bottom: 24px; overflow: hidden; border-radius: 21px; color: #fff; background: radial-gradient(circle at 90% -10%, rgba(255,145,52,.35), transparent 32%), linear-gradient(135deg, var(--navy-850), var(--navy-950)); box-shadow: var(--shadow-card); }
.approval-command-hero h2 { color: #fff; margin: 3px 0 7px; font-size: 1.65rem; }
.approval-command-hero p { color: #9db1cf; margin: 0; max-width: 630px; font-size: .78rem; }
.approval-command-stats { display: flex; gap: 9px; flex-shrink: 0; }
.approval-command-stats span { min-width: 112px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.06); }
.approval-command-stats strong { display: block; color: #fff; font-family: 'Manrope'; font-size: 1.1rem; }
.approval-command-stats small { color: #91a8ca; font-size: .59rem; }
.approval-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.approval-work-card { padding: 20px; overflow: visible; }
.approval-work-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.approval-identity { display: flex; gap: 13px; min-width: 0; }
.approval-photo { width: 66px; height: 66px; border-radius: 17px; overflow: hidden; flex-shrink: 0; background: linear-gradient(145deg, var(--orange-100), #ffd9bd); display: flex; align-items: center; justify-content: center; color: var(--orange-700); font-family: 'Manrope'; font-weight: 800; }
.approval-photo img { width: 100%; height: 100%; object-fit: cover; }
.approval-identity h3 { font-size: .98rem; margin: 3px 0 2px; }
.approval-identity p { margin: 0; font-size: .69rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 330px; }
.waiting-chip { flex-shrink: 0; border-radius: 999px; padding: 6px 9px; background: var(--amber-100); color: var(--amber-700); font-size: .6rem; font-weight: 800; }
.approval-context-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 17px 0; }
.approval-context-grid > div { border-radius: 11px; padding: 10px; background: var(--slate-50); border: 1px solid var(--slate-150); min-width: 0; }
.approval-context-grid small, .approval-context-grid span { display: block; color: var(--slate-400); font-size: .57rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-context-grid strong { display: block; color: var(--slate-800); font-size: .67rem; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-decision-panel { border-top: 1px solid var(--slate-150); padding-top: 15px; display: grid; gap: 13px; }
.approval-approve-form .btn { width: 100%; }
.approval-reason-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: stretch; }
.approval-reason-row .btn { align-self: stretch; }
.approval-history-table th { white-space: nowrap; }
.approval-history-table td { min-width: 130px; }
.approval-history-table td:first-child { min-width: 210px; }
.override-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--orange-700); font-size: .56rem; font-weight: 800; }
.override-row td { background: var(--orange-50) !important; }
.override-form { display: grid; grid-template-columns: minmax(200px,.8fr) minmax(280px,1.5fr) auto; gap: 14px; align-items: center; padding: 8px; }
.override-form > div strong, .override-form > div small { display: block; }
.override-form > div small { color: var(--slate-500); font-size: .6rem; margin-top: 2px; }
.approval-prompt-modal .modal-header { background: linear-gradient(135deg, var(--orange-50), #fff); }
.approval-prompt-list { display: grid; gap: 12px; }
.approval-prompt-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--slate-150); border-radius: 15px; padding: 12px; }
.approval-prompt-photo { width: 54px; height: 54px; border-radius: 14px; overflow: hidden; background: var(--orange-100); color: var(--orange-700); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.approval-prompt-photo img { width: 100%; height: 100%; object-fit: cover; }
.approval-prompt-copy { min-width: 0; }
.approval-prompt-copy strong, .approval-prompt-copy span, .approval-prompt-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-prompt-copy strong { color: var(--slate-800); font-size: .78rem; }
.approval-prompt-copy span { color: var(--slate-600); font-size: .67rem; }
.approval-prompt-copy small { color: var(--slate-400); font-size: .59rem; margin-top: 3px; }
.approval-prompt-actions { display: flex; gap: 7px; }
.approval-reject-inline { grid-column: 2 / -1; padding-top: 10px; border-top: 1px dashed var(--slate-200); }
.result-icon.approved, .result-icon.rejected { width: 68px; height: 68px; border-radius: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.8rem; }
.result-icon.approved { background: rgba(46,217,161,.12); color: #4ad7aa; }
.result-icon.rejected { background: rgba(255,90,82,.12); color: #ff8b82; }

@media (max-width: 991.98px) {
    .auth-shell-card { grid-template-columns: 1fr; max-width: 640px; }
    .auth-brand-panel { padding: 30px; }
    .auth-brand-panel h1 { font-size: 2rem; }
    .approval-command-hero { align-items: flex-start; flex-direction: column; }
    .approval-command-stats { width: 100%; }
    .approval-command-stats span { flex: 1; }
    .approval-work-grid { grid-template-columns: 1fr; }
    .override-form { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .kiosk-staff-login span { display: none; }
    .kiosk-staff-login { width: 40px; padding: 0; justify-content: center; }
    .auth-form-panel, .auth-brand-panel { padding: 25px 20px; }
    .auth-feature-list { margin-top: 20px; }
    .approval-command-hero { padding: 21px 18px; }
    .approval-command-stats { display: grid; grid-template-columns: repeat(3,1fr); }
    .approval-command-stats span { min-width: 0; padding: 10px; }
    .approval-context-grid { grid-template-columns: 1fr; }
    .approval-reason-row { grid-template-columns: 1fr; }
    .approval-prompt-item { grid-template-columns: 48px 1fr; }
    .approval-prompt-actions, .approval-reject-inline { grid-column: 1 / -1; }
    .approval-prompt-actions { justify-content: flex-end; }
    .approval-reject-inline > div { flex-direction: column; }
}
.original-decision-note { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; border-radius: 8px; padding: 5px 7px; background: var(--slate-100); color: var(--slate-600); font-size: .57rem; font-weight: 700; }
.decision-details-grid { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 8px; }
.decision-details-grid.with-override { grid-template-columns: minmax(280px,1fr) minmax(380px,1.25fr); }
.decision-audit-panel { border-radius: 14px; padding: 15px; background: #fff; border: 1px solid var(--slate-150); }
.decision-timeline { display: grid; gap: 11px; margin-top: 10px; }
.decision-timeline-item { display: flex; align-items: flex-start; gap: 10px; }
.decision-timeline-icon { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--orange-100); color: var(--orange-700); }
.decision-timeline-item strong { display: block; color: var(--slate-800); font-size: .7rem; }
.decision-timeline-item p { margin: 2px 0; color: var(--slate-600); font-size: .64rem; }
.decision-timeline-item small { color: var(--slate-400); font-size: .56rem; }
.decision-details-grid .override-form { grid-template-columns: 1fr; align-content: start; border-radius: 14px; padding: 15px; background: var(--orange-50); border: 1px solid #ffd9bc; }
@media (max-width: 991.98px) { .decision-details-grid.with-override { grid-template-columns: 1fr; } }

/* ========================================================================== 
   Typography uplift + location operations
   ========================================================================== */
html { font-size: 17px; }
body { line-height: 1.55; }
.page-title { font-size: 1.55rem; }
.page-context-bar p { font-size: .86rem; }
.sidebar-nav .nav-item { font-size: .92rem; min-height: 47px; }
.site-selector-copy strong { font-size: .88rem; }
.site-selector-copy small,
.brand-copy small,
.support-card small,
.user-copy small { font-size: .7rem; }
.form-label { font-size: .86rem; }
.form-control,
.form-select { font-size: .94rem; }
.panel-head p,
.metric-label,
.quick-action small,
.visit-table,
.status-pill { font-size: .76rem; }
.section-kicker { font-size: .68rem; }
.kiosk-intro p,
.kiosk-panel p,
.kiosk-choice .sub { font-size: .9rem; }
.kiosk-choice .label { font-size: 1.15rem; }
.kiosk-step { font-size: .72rem; }
.kiosk-panel h2 { font-size: 1.7rem; }
.consent-dialog p,
.consent-check { font-size: .86rem; }

.scope-day-state,
.kiosk-open-state {
    margin-left: auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .58rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .08em;
}
.scope-day-state.open,
.kiosk-open-state.open { color: #79e3bf; background: rgba(46,217,161,.12); border: 1px solid rgba(46,217,161,.22); }
.scope-day-state.closed,
.kiosk-open-state.closed { color: #ffc493; background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.22); }
.kiosk-open-state { margin-left: 8px; align-self: center; }
.business-day-alert { align-items: center; }
.business-day-alert strong { color: inherit; }

.kiosk-day-strip {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 25px;
    color: #8da5c7;
    font-size: .76rem;
}
.kiosk-day-strip span { display: inline-flex; align-items: center; gap: 7px; }
.kiosk-day-strip i { color: #ff9b49; }

.kiosk-setup-panel,
.kiosk-closed-panel { max-width: 730px; }
.setup-icon,
.closed-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffad66;
    background: rgba(255,122,26,.13);
    border: 1px solid rgba(255,122,26,.2);
    font-size: 2rem;
    box-shadow: 0 20px 55px rgba(0,0,0,.2);
}
.closed-icon { color: #a9bbd7; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.setup-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 11px;
}
.setup-flow-grid > div {
    min-height: 150px;
    padding: 16px;
    border-radius: 15px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
}
.setup-flow-grid > div > span {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    font-weight: 900;
}
.setup-flow-grid strong,
.setup-flow-grid small { display: block; }
.setup-flow-grid strong { color: #fff; font-size: .84rem; margin-bottom: 6px; }
.setup-flow-grid small { color: #91a7c6; font-size: .72rem; line-height: 1.5; }
.closed-location-card {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
}
.closed-location-card div { padding: 8px; }
.closed-location-card small,
.closed-location-card strong { display: block; }
.closed-location-card small { color: #8198ba; font-size: .67rem; }
.closed-location-card strong { color: #fff; margin-top: 3px; font-size: .82rem; }

.location-ops-hero {
    position: relative;
    min-height: 230px;
    margin-bottom: 18px;
    padding: 32px;
    border-radius: 24px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 86% 10%, rgba(255,145,52,.38), transparent 32%),
        linear-gradient(135deg, #0d2343, #061126);
    box-shadow: var(--shadow-card);
}
.location-ops-hero.is-open { background: radial-gradient(circle at 86% 10%, rgba(255,145,52,.42), transparent 32%), linear-gradient(135deg, #0d2343, #061126); }
.location-ops-hero.is-closed { background: radial-gradient(circle at 86% 10%, rgba(119,142,177,.25), transparent 32%), linear-gradient(135deg, #152641, #07101f); }
.location-ops-copy { position: relative; z-index: 2; max-width: 650px; }
.location-status-line { display: flex; align-items: center; gap: 8px; color: #f7b880; font-size: .7rem; font-weight: 900; letter-spacing: .13em; }
.location-ops-hero.is-closed .location-status-line { color: #b6c4d9; }
.location-pulse { width: 8px; height: 8px; border-radius: 50%; background: #2ed9a1; box-shadow: 0 0 0 5px rgba(46,217,161,.12); }
.location-ops-hero.is-closed .location-pulse { background: #8799b5; box-shadow: 0 0 0 5px rgba(135,153,181,.12); }
.location-ops-hero h2 { color: #fff; font-size: 2rem; margin: 10px 0 5px; }
.location-ops-hero p { color: #9fb2cf; margin: 0 0 16px; font-size: .9rem; }
.location-code { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 10px; color: #dce7f8; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); font-size: .76rem; font-weight: 800; }
.location-ops-art { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); }
.location-ops-art span { width: 130px; height: 130px; border-radius: 40px; display: flex; align-items: center; justify-content: center; color: #ffb16d; background: rgba(255,122,26,.14); border: 1px solid rgba(255,122,26,.2); font-size: 3.2rem; transform: rotate(-7deg); }
.location-ops-hero.is-closed .location-ops-art span { color: #a8bad4; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
.location-switcher { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.location-switcher strong { display: block; font-size: .88rem; }
.location-switcher .form-select { max-width: 330px; }
.location-metrics { margin-bottom: 18px; }
.location-work-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(360px,.75fr); gap: 18px; }
.location-day-card,
.kiosk-device-card { padding: 23px; }
.day-state-badge { flex-shrink: 0; padding: 7px 10px; border-radius: 999px; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.day-state-badge.open { background: var(--green-100); color: var(--green-700); }
.day-state-badge.closed { background: var(--orange-100); color: var(--orange-700); }
.business-day-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 19px 0; }
.business-day-summary > div { padding: 13px; border-radius: 13px; background: var(--slate-50); border: 1px solid var(--slate-150); }
.business-day-summary small,
.business-day-summary strong { display: block; }
.business-day-summary small { color: var(--slate-500); font-size: .68rem; }
.business-day-summary strong { color: var(--slate-800); margin-top: 3px; font-size: .82rem; }
.start-day-checklist { display: grid; gap: 10px; margin: 18px 0; }
.start-day-checklist > div { display: flex; gap: 11px; padding: 12px; border-radius: 13px; background: var(--slate-50); border: 1px solid var(--slate-150); }
.start-day-checklist > div > i { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--green-700); background: var(--green-100); }
.start-day-checklist strong,
.start-day-checklist small { display: block; }
.start-day-checklist strong { font-size: .82rem; color: var(--slate-800); }
.start-day-checklist small { color: var(--slate-500); font-size: .72rem; margin-top: 2px; }
.location-day-form { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--slate-150); }
.location-day-form .btn { justify-self: start; }
.location-day-form.start .btn { justify-self: stretch; }
.kiosk-device-list { display: grid; gap: 9px; }
.kiosk-device-row { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 13px; border: 1px solid var(--slate-150); background: var(--slate-50); }
.kiosk-device-row.inactive { opacity: .62; }
.device-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--orange-700); background: var(--orange-100); }
.device-copy { min-width: 0; flex: 1; }
.device-copy strong,
.device-copy small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.device-copy strong { color: var(--slate-800); font-size: .8rem; }
.device-copy small { color: var(--slate-500); font-size: .66rem; margin-top: 2px; }
.device-state { flex-shrink: 0; padding: 5px 7px; border-radius: 999px; font-size: .56rem; font-weight: 900; letter-spacing: .06em; }
.device-state.online { color: var(--green-700); background: var(--green-100); }
.device-state.offline { color: var(--slate-600); background: var(--slate-150); }
.device-remove { width: 32px; height: 32px; color: var(--slate-500); }
.device-remove:hover { color: var(--red-600); background: var(--red-100); }

.activation-shell { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(420px,.75fr); gap: 20px; align-items: stretch; }
.activation-visual { min-height: 550px; padding: 42px; border-radius: 24px; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(255,145,52,.38), transparent 34%), linear-gradient(145deg, #112b50, #061126); box-shadow: var(--shadow-card); }
.activation-icon { width: 75px; height: 75px; display: flex; align-items: center; justify-content: center; margin-bottom: 50px; border-radius: 24px; background: rgba(255,122,26,.16); color: #ffad66; border: 1px solid rgba(255,122,26,.22); font-size: 2rem; }
.activation-visual h2 { color: #fff; max-width: 560px; font-size: 2rem; margin: 8px 0 14px; }
.activation-visual p { color: #9fb2cf; max-width: 580px; font-size: .9rem; }
.activation-points { display: grid; gap: 11px; margin-top: 35px; }
.activation-points span { display: flex; align-items: center; gap: 10px; color: #dbe6f7; font-size: .82rem; }
.activation-points i { color: #ffad66; }
.activation-form-card { padding: 35px; display: flex; flex-direction: column; justify-content: center; }
.activation-form-card h3 { font-size: 1.45rem; margin: 6px 0; }
.form-hint { display: block; color: var(--slate-500); font-size: .7rem; margin-top: 7px; }

@media (max-width: 1199.98px) {
    .location-work-grid,
    .activation-shell { grid-template-columns: 1fr; }
    .activation-visual { min-height: 400px; }
}

@media (max-width: 767.98px) {
    html { font-size: 16px; }
    .setup-flow-grid,
    .closed-location-card,
    .business-day-summary { grid-template-columns: 1fr; }
    .location-ops-hero { padding: 24px 20px; min-height: 290px; }
    .location-ops-art { right: 20px; bottom: 18px; top: auto; transform: none; opacity: .6; }
    .location-ops-art span { width: 82px; height: 82px; border-radius: 25px; font-size: 2rem; }
    .location-switcher { align-items: stretch; flex-direction: column; }
    .location-switcher .form-select { max-width: none; }
    .location-day-card,
    .kiosk-device-card,
    .activation-form-card { padding: 19px; }
    .activation-visual { padding: 28px 22px; min-height: auto; }
    .activation-icon { margin-bottom: 28px; }
    .business-day-alert { align-items: flex-start; flex-wrap: wrap; }
    .business-day-alert .btn { margin-left: 0 !important; }
    .kiosk-location em { display: none; }
}


/* Fresh kiosk authentication and confirmation dialogs */
.fresh-auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #ffd5b5;
    border-radius: 14px;
    background: var(--orange-50);
}
.fresh-auth-notice > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--orange-700);
    background: var(--orange-100);
    font-size: 1.05rem;
}
.fresh-auth-notice strong,
.fresh-auth-notice small { display: block; }
.fresh-auth-notice strong { color: var(--slate-950); font-size: .9rem; }
.fresh-auth-notice small { margin-top: 3px; color: var(--slate-600); line-height: 1.5; font-size: .76rem; }

.vacs-confirm-modal { z-index: 2000; }
.vacs-confirm-modal .modal-dialog { max-width: 470px; padding: 12px; }
.vacs-confirm-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 30px 100px rgba(6, 17, 38, .34);
}
.vacs-confirm-modal .modal-body {
    position: relative;
    padding: 32px 32px 22px;
    text-align: center;
}
.vacs-confirm-modal .confirm-close { position: absolute; top: 18px; right: 18px; }
.confirm-visual {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 21px;
    font-size: 1.65rem;
    color: var(--orange-700);
    background: var(--orange-100);
    box-shadow: 0 14px 30px rgba(237, 103, 15, .15);
}
.confirm-visual.danger { color: var(--red-700); background: var(--red-100); box-shadow: 0 14px 30px rgba(217,45,32,.12); }
.confirm-visual.warning { color: var(--amber-700); background: var(--amber-100); box-shadow: 0 14px 30px rgba(219,123,0,.12); }
.confirm-visual.primary { color: var(--orange-700); background: var(--orange-100); }
.vacs-confirm-modal h3 { margin: 6px 0 10px; font-size: 1.42rem; }
.vacs-confirm-modal p { max-width: 390px; margin: 0 auto; line-height: 1.65; font-size: .9rem; }
.vacs-confirm-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 24px 24px;
    border: 0;
    background: var(--slate-50);
}
.vacs-confirm-modal .modal-footer .btn { width: 100%; margin: 0; }

@media (max-width: 575.98px) {
    .vacs-confirm-modal .modal-body { padding: 28px 22px 20px; }
    .vacs-confirm-modal .modal-footer { grid-template-columns: 1fr; padding: 16px 20px 20px; }
}

/* Visitor check-out workflow */
.checkout-card-footer {
    padding: 12px 14px 14px;
    border-top: 1px solid var(--slate-150);
    background: linear-gradient(180deg, #fff, var(--slate-50));
}
.btn-checkout {
    width: 100%;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #ffd2b0;
    border-radius: 10px;
    background: var(--orange-50);
    color: var(--orange-700);
    font-size: .72rem;
    font-weight: 800;
}
.btn-checkout:hover {
    border-color: var(--orange-500);
    background: var(--orange-500);
    color: #fff;
}
.status-checkedin-pill { background: var(--green-100); color: var(--green-700); }
.status-departed-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--slate-100); color: var(--slate-700); }

.checkout-modal-content { overflow: visible; }
.checkout-person-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--slate-150);
    border-radius: 16px;
    background: var(--slate-50);
}
.checkout-modal-photo {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 22px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--orange-100), #ffe0c7);
    color: var(--orange-700);
    font-family: 'Manrope';
    font-size: 1.25rem;
    font-weight: 800;
}
.checkout-person-summary h4 { margin: 0 0 3px; font-size: 1.05rem; }
.checkout-person-summary p { margin: 0 0 8px; color: var(--slate-500); font-size: .77rem; }
.checkout-security-note {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid #d8e8ff;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: .74rem;
    line-height: 1.5;
}
.checkout-security-note i { margin-top: 2px; }
.badge-return-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 13px;
    border: 1px solid var(--slate-150);
    border-radius: 13px;
    cursor: pointer;
}
.badge-return-check:hover { border-color: #ffc99f; background: var(--orange-50); }
.badge-return-check strong,
.badge-return-check small { display: block; }
.badge-return-check strong { color: var(--slate-800); font-size: .79rem; }
.badge-return-check small { margin-top: 2px; color: var(--slate-500); font-size: .68rem; line-height: 1.45; }

.departure-list { overflow: hidden; }
.departure-row {
    display: grid;
    grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(105px, .65fr)) auto;
    align-items: center;
    gap: 18px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--slate-150);
}
.departure-row:last-child { border-bottom: 0; }
.departure-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.departure-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-100);
    color: var(--orange-700);
    font-family: 'Manrope';
    font-size: .73rem;
    font-weight: 800;
}
.departure-person strong,
.departure-person small,
.departure-meta strong,
.departure-meta small { display: block; }
.departure-person strong { color: var(--slate-800); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.departure-person small { margin-top: 2px; color: var(--slate-400); font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.departure-meta small { color: var(--slate-400); font-size: .61rem; }
.departure-meta strong { margin-top: 2px; color: var(--slate-700); font-size: .7rem; }

.kiosk-choice-grid-three { max-width: 1040px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kiosk-choice-checkout { border-color: rgba(255, 160, 84, .22); }
.checkout-kiosk-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 17px;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 122, 26, .15);
    color: #ffad66;
    font-size: 1.65rem;
    box-shadow: 0 0 0 10px rgba(255, 122, 26, .045);
}
.kiosk-badge-return {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    color: #a7b9d4;
    cursor: pointer;
    background: rgba(3,15,33,.28);
}
.kiosk-badge-return strong,
.kiosk-badge-return small { display: block; }
.kiosk-badge-return strong { color: #eaf2ff; font-size: .83rem; }
.kiosk-badge-return small { margin-top: 3px; color: #7188aa; font-size: .7rem; line-height: 1.45; }
.kiosk-panel .validation-summary-valid { display: none; }
.kiosk-panel .field-validation-valid { display: none; }
.checkout-success-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46,217,161,.13);
    color: #4ad7aa;
    font-size: 2.2rem;
    box-shadow: 0 0 0 12px rgba(46,217,161,.045);
}
.checkout-success-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(3,15,33,.32);
    text-align: left;
}
.checkout-success-details > div { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.075); }
.checkout-success-details > div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.075); }
.checkout-success-details > div:nth-last-child(-n+2) { border-bottom: 0; }
.checkout-success-details small,
.checkout-success-details strong { display: block; }
.checkout-success-details small { color: #7188aa; font-size: .65rem; }
.checkout-success-details strong { margin-top: 4px; color: #eaf2ff; font-size: .79rem; }

@media (max-width: 991.98px) {
    .kiosk-choice-grid-three { grid-template-columns: 1fr 1fr; max-width: 760px; }
    .kiosk-choice-checkout { grid-column: 1 / -1; }
    .departure-row { grid-template-columns: minmax(210px, 1.4fr) 1fr 1fr auto; }
    .departure-row .departure-meta:nth-of-type(4) { display: none; }
}

@media (max-width: 767.98px) {
    .kiosk-choice-grid-three { grid-template-columns: 1fr; }
    .kiosk-choice-checkout { grid-column: auto; }
    .departure-row { grid-template-columns: 1fr auto; gap: 10px; }
    .departure-row .departure-meta { display: none; }
    .checkout-person-summary { align-items: flex-start; }
}

@media (max-width: 575.98px) {
    .checkout-success-details { grid-template-columns: 1fr; }
    .checkout-success-details > div,
    .checkout-success-details > div:nth-child(odd) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.075); }
    .checkout-success-details > div:last-child { border-bottom: 0; }
}

/* ================================================================
   STAFF & HOST DIRECTORY
   ================================================================ */
.vacs-alert {
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 0;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(15, 31, 54, .08);
}

.people-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 190px;
    padding: 2rem 2.2rem;
    margin-bottom: 1.25rem;
    color: #fff;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 15%, rgba(244, 126, 32, .42), transparent 28%),
        linear-gradient(125deg, #071c38 0%, #0b3159 72%, #0f416f 100%);
    box-shadow: 0 22px 52px rgba(6, 27, 53, .22);
}

.people-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -75px;
    bottom: -150px;
    border: 38px solid rgba(255,255,255,.055);
    border-radius: 50%;
}

.people-hero-copy,
.people-hero-actions { position: relative; z-index: 1; }
.people-hero-copy { max-width: 720px; }
.people-hero-copy .section-kicker { color: #ffad70; }
.people-hero-copy h2 { margin: .35rem 0 .55rem; font-family: Manrope, sans-serif; font-size: clamp(1.55rem, 2.3vw, 2.25rem); font-weight: 800; }
.people-hero-copy p { margin: 0; max-width: 670px; color: rgba(255,255,255,.74); font-size: 1rem; line-height: 1.7; }
.people-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.people-hero-actions .btn { min-height: 46px; padding-inline: 1.15rem; font-weight: 800; border-radius: 12px; }
.people-hero-actions .btn-light { color: #122b48; }

.people-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.people-metric-card {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-height: 118px;
    padding: 1.15rem;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(14, 35, 61, .055);
}
.people-metric-card .metric-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1.25rem; }
.people-metric-card .metric-icon.orange { color: #d95706; background: #fff0e5; }
.people-metric-card .metric-icon.blue { color: #1667a8; background: #eaf5ff; }
.people-metric-card .metric-icon.amber { color: #9d6500; background: #fff6d9; }
.people-metric-card .metric-icon.muted { color: #65758a; background: #eef2f6; }
.people-metric-card div { min-width: 0; display: grid; }
.people-metric-card small { color: #6f7f91; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.people-metric-card strong { color: #102944; font-family: Manrope, sans-serif; font-size: 1.75rem; line-height: 1.15; }
.people-metric-card span:last-child { overflow: hidden; color: #8290a0; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }

.people-workspace { overflow: hidden; padding: 0; }
.people-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid #e8edf4; }
.people-tabs { display: flex; align-items: center; gap: .4rem; padding: .3rem; background: #f2f5f8; border-radius: 13px; }
.people-tab { display: inline-flex; align-items: center; gap: .55rem; min-height: 42px; padding: .6rem .85rem; color: #657489; text-decoration: none; font-weight: 800; border-radius: 10px; transition: .2s ease; }
.people-tab:hover { color: #152f4e; }
.people-tab.active { color: #fff; background: #122e4e; box-shadow: 0 8px 18px rgba(18, 46, 78, .18); }
.people-tab em { display: grid; place-items: center; min-width: 24px; height: 24px; padding-inline: .35rem; color: inherit; background: rgba(255,255,255,.16); border-radius: 999px; font-size: .72rem; font-style: normal; }
.people-filter-form { display: flex; align-items: center; gap: .55rem; }
.people-search { min-width: min(330px, 30vw); }
.people-filter-form .form-select { min-width: 185px; }

.people-table { margin-bottom: 0; }
.people-table th { white-space: nowrap; }
.people-table td { vertical-align: middle; }
.people-name-cell { min-width: 235px; }
.people-name-cell > span:last-child { display: grid; }
.people-name-cell small { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host-avatar { color: #cf570d !important; background: #fff0e7 !important; }
.staff-avatar { color: #12639f !important; background: #e9f4fc !important; }
.staff-avatar i { font-size: 1rem; }
.record-inactive { opacity: .68; background: #fafbfc; }
.channel-pill,
.role-pill,
.linked-login,
.unlinked-login,
.scope-readonly { display: inline-flex; align-items: center; gap: .45rem; }
.channel-pill { padding: .4rem .65rem; color: #32465c; background: #f2f5f8; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.backup-copy { display: block; margin-top: .4rem; color: #7a8795; }
.linked-login { color: #203a57; }
.linked-login > i { color: #ed670f; font-size: 1.15rem; }
.linked-login span { display: grid; }
.linked-login small { color: #7a8795; }
.unlinked-login { color: #8895a3; font-size: .82rem; font-weight: 700; }
.role-pill { padding: .45rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.role-staff { color: #1f6393; background: #e8f4fc; }
.role-receptionist { color: #81520a; background: #fff2d5; }
.role-flooradmin { color: #6b4595; background: #f2eafb; }
.role-locationadmin { color: #14684a; background: #e4f6ee; }
.role-superadmin { color: #a33838; background: #fee9e9; }
.scope-copy { margin-top: .45rem; color: #778696; font-size: .8rem; }
.scope-readonly { color: #8995a3; font-size: .75rem; font-weight: 700; }
.action-danger { color: #c64242 !important; }
.action-success { color: #16845b !important; }
.people-empty { padding-block: 4rem; }

.people-guidance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.guidance-card { display: flex; align-items: flex-start; gap: .9rem; padding: 1.15rem; }
.guidance-card > span { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; color: #d85808; background: #fff0e6; border-radius: 13px; font-size: 1.1rem; }
.guidance-card strong { color: #15304e; }
.guidance-card p { margin: .3rem 0 0; color: #758395; font-size: .84rem; line-height: 1.6; }

.people-form-page { align-items: start; }
.form-panel-head { padding-bottom: 1rem; border-bottom: 1px solid #edf0f4; }
.form-panel-icon { width: 52px; height: 52px; display: grid; place-items: center; color: #dc5b0c; background: #fff0e5; border-radius: 16px; font-size: 1.45rem; }
.people-form-page .form-panel { padding: 1.45rem; }
.people-form-page .vacs-form { margin-top: 1.25rem; }
.form-section-title { display: flex; align-items: center; gap: .85rem; padding: 1.4rem 0 .85rem; }
.form-section-title:first-of-type { padding-top: .25rem; }
.form-section-title > span { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: #ed670f; border-radius: 10px; font-family: Manrope, sans-serif; font-weight: 800; box-shadow: 0 7px 16px rgba(237, 103, 15, .23); }
.form-section-title div { display: grid; }
.form-section-title strong { color: #152f4d; font-size: .98rem; }
.form-section-title small { color: #8390a0; }
.people-active-switch { display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.5rem; padding: 1rem; background: #f7f9fb; border: 1px solid #e8edf2; border-radius: 14px; }
.people-active-switch .form-check-input { flex: 0 0 auto; width: 2.7rem; height: 1.4rem; margin: .15rem 0 0; }
.people-active-switch .form-check-label { display: grid; }
.people-active-switch .form-check-label strong { color: #183451; }
.people-active-switch .form-check-label small { color: #7b8998; }
.people-help-card { position: sticky; top: 92px; padding: 1.35rem; }
.people-help-card h4 { margin: .7rem 0 1.15rem; color: #16314e; font-family: Manrope, sans-serif; font-weight: 800; }
.help-card-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#e95f0b,#ff8b32); border-radius: 15px; box-shadow: 0 10px 22px rgba(233, 95, 11, .22); }
.help-step { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid #edf0f3; }
.help-step em { color: #e66210; font-family: "IBM Plex Mono", monospace; font-size: .72rem; font-style: normal; font-weight: 700; }
.help-step span { display: grid; }
.help-step strong { color: #263f58; }
.help-step small { margin-top: .2rem; color: #7b8998; line-height: 1.5; }
.role-guide-row { display: flex; align-items: flex-start; gap: .75rem; padding: .72rem 0; border-bottom: 1px solid #edf0f3; }
.role-guide-row > i { width: 28px; height: 28px; display: grid; place-items: center; color: #df5d0d; background: #fff0e6; border-radius: 9px; }
.role-guide-row span { display: grid; }
.role-guide-row strong { color: #263f58; font-size: .88rem; }
.role-guide-row small { color: #7b8998; }
.security-note { display: flex; gap: .7rem; margin-top: 1.1rem; padding: .9rem; color: #70440c; background: #fff6dd; border: 1px solid #f4dfae; border-radius: 13px; }
.security-note > i { margin-top: .1rem; }
.security-note span { display: grid; }
.security-note small { margin-top: .15rem; color: #8c6b3e; line-height: 1.45; }
.role-explainer { display: flex; align-items: flex-start; gap: .8rem; margin-top: 1rem; padding: 1rem; background: #eef6fc; border: 1px solid #d9eaf7; border-radius: 14px; }
.role-explainer > span { width: 34px; height: 34px; display: grid; place-items: center; color: #19689f; background: #fff; border-radius: 10px; }
.role-explainer strong { color: #1a4f75; }
.role-explainer p { margin: .2rem 0 0; color: #5f7890; font-size: .84rem; line-height: 1.5; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 3.1rem; }
.password-toggle { position: absolute; top: 50%; right: .45rem; transform: translateY(-50%); }

.password-reset-wrap { display: grid; place-items: start center; padding: 1.5rem 0; }
.password-reset-card { width: min(100%, 610px); padding: 2rem; }
.password-reset-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1rem; color: #fff; background: linear-gradient(135deg,#e95f0b,#ff8b32); border-radius: 18px; font-size: 1.55rem; box-shadow: 0 12px 26px rgba(233,95,11,.24); }
.password-reset-card h2 { margin: .35rem 0; color: #14304f; font-family: Manrope,sans-serif; font-weight: 800; }
.password-reset-card > p { color: #738296; }
.account-reset-summary { display: flex; align-items: center; gap: .8rem; margin: 1.25rem 0; padding: 1rem; background: #f5f8fb; border-radius: 14px; }
.account-reset-summary > span { width: 40px; height: 40px; display: grid; place-items: center; color: #1c6599; background: #e6f2fa; border-radius: 12px; }
.account-reset-summary div { display: grid; }
.account-reset-summary small { color: #8190a0; }
.account-reset-summary strong { color: #1d3957; }
.password-policy { display: flex; gap: .6rem; margin: .8rem 0 1.2rem; padding: .8rem; color: #246a4e; background: #eaf8f1; border-radius: 12px; font-size: .82rem; }

@media (max-width: 1200px) {
    .people-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .people-toolbar { align-items: flex-start; flex-direction: column; }
    .people-filter-form { width: 100%; }
    .people-search { flex: 1; min-width: 0; }
}

@media (max-width: 767.98px) {
    .people-hero { align-items: flex-start; flex-direction: column; padding: 1.45rem; border-radius: 19px; }
    .people-hero-actions { width: 100%; }
    .people-hero-actions .btn { flex: 1; }
    .people-metrics { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .people-metric-card { min-height: 104px; padding: .85rem; }
    .people-metric-card .metric-icon { flex-basis: 40px; width: 40px; height: 40px; }
    .people-metric-card strong { font-size: 1.4rem; }
    .people-metric-card span:last-child { display: none; }
    .people-tabs { width: 100%; }
    .people-tab { flex: 1; justify-content: center; padding-inline: .55rem; }
    .people-filter-form { align-items: stretch; flex-wrap: wrap; }
    .people-filter-form .people-search { flex-basis: 100%; }
    .people-filter-form .form-select { flex: 1; min-width: 0; }
    .people-guidance-grid { grid-template-columns: 1fr; }
    .people-help-card { position: static; }
    .password-reset-card { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .people-metrics { grid-template-columns: 1fr; }
    .people-metric-card { min-height: 88px; }
    .people-metric-card span:last-child { display: block; }
    .people-tabs span { font-size: .78rem; }
}
