:root {
  --brand: #333399;
  --brand-deep: #20206f;
  --brand-bright: #4c4cb8;
  --navy: #111331;
  --navy-2: #1b1d47;
  --panel: #242659;
  --line: rgba(255,255,255,.11);
  --text: #f5f8fc;
  --muted: #9aabc0;
  --cyan: #8585ed;
  --cyan-dark: #22226a;
  --orange: #f3bd63;
  --red: #ff746f;
  --white: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html, body { margin: 0; min-height: 100%; background: var(--navy); color: var(--text); }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.kiosk-body { min-height: 100vh; min-height: 100dvh; background: radial-gradient(circle at 70% 0%, rgba(76,76,184,.42) 0, transparent 38%), linear-gradient(135deg, #0c0e28, var(--navy)); }
.kiosk-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.kiosk-header { min-height: 112px; padding: max(24px, env(safe-area-inset-top)) 42px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--cyan); color: var(--navy); border-radius: 12px; font-weight: 900; }
.brand-logo { padding: 7px 12px; border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.brand-logo img { display: block; width: clamp(230px, 29vw, 320px); height: auto; }
.product-brand-logo { display: flex; align-items: center; justify-content: center; width: min(100%, 290px); padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.product-brand-logo img { display: block; width: 100%; height: auto; }
.activation-wordmark { width: 280px; max-width: 100%; padding: 0; box-shadow: none; }
.brand-name-fallback { display: block; max-width: 320px; color: var(--brand-deep); font-size: clamp(17px, 2.4vw, 24px); line-height: 1.15; }
.logo-preview { min-height: 90px; padding: 14px; display: grid; place-items: center; border: 1px dashed #cbd5df; border-radius: 12px; background: #f8fafb; color: #718095; }
.logo-preview img { display: block; max-width: min(100%, 320px); max-height: 100px; object-fit: contain; }
.clock { text-align: right; display: grid; }
.clock strong { font-size: 30px; letter-spacing: .02em; }
.clock span { color: var(--muted); font-size: 14px; text-transform: capitalize; }
.kiosk-tools { display: flex; align-items: center; gap: 22px; }
.language-picker { display: grid; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.language-picker select { min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-2); color: var(--text); }
.terminal-activation { position:fixed; z-index:1000; inset:0; display:grid; place-items:center; padding:24px; color:#15293a; background:linear-gradient(145deg,#07111f,#123a50); }
.terminal-activation.hidden { display:none; }
.activation-card { width:min(460px,100%); padding:38px; border-radius:18px; display:grid; gap:15px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.35); }
.activation-card h1 { margin:6px 0 0; font-size:30px; }
.activation-card p { margin:0; color:#607181; }
.activation-card label { margin-top:8px; font-size:14px; font-weight:750; }
.activation-card input { min-height:54px; padding:0 14px; border:1px solid #b8c5cc; border-radius:10px; color:#15293a; background:#fff; font-size:20px; letter-spacing:.08em; }
.kiosk-content { width: min(1120px, 100%); margin: 0 auto; padding: 54px 44px 60px; flex: 1; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 13px; letter-spacing: .18em; }
h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1; letter-spacing: -.045em; margin: 12px 0 12px; }
.lead { color: var(--muted); font-size: 20px; margin: 0 0 38px; }
.employee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.employee-card { min-height: 150px; text-align: left; padding: 24px; color: var(--text); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); display: flex; align-items: center; gap: 18px; cursor: pointer; transition: .18s ease; }
.employee-card:active { transform: scale(.98); background: rgba(133,133,237,.16); border-color: var(--cyan); }
.employee-card h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.025em; }
.employee-card p { margin: 0; color: var(--muted); }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #203a55; color: #d9f5f1; font-size: 22px; font-weight: 800; flex: none; }
.avatar.large { width: 92px; height: 92px; border-radius: 26px; font-size: 32px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 7px; background: var(--muted); }
.status-dot.in { background: #9d9dff; box-shadow: 0 0 0 4px rgba(133,133,237,.16); }
.status-dot.lunch { background: var(--orange); box-shadow: 0 0 0 4px rgba(243,189,99,.14); }
.pin-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.back-button { position: absolute; top: 30px; left: 44px; background: transparent; color: var(--muted); border: 0; padding: 14px 0; font-weight: 700; cursor: pointer; }
.selected-person { display: flex; gap: 22px; align-items: center; }
.selected-person span { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.selected-person h1 { font-size: 48px; }
.selected-person p { color: var(--cyan); font-weight: 700; }
.pin-panel { background: rgba(255,255,255,.055); border: 1px solid var(--line); padding: 32px; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.pin-setup-intro { display: grid; gap: 4px; margin: -4px 0 20px; padding: 14px 16px; border: 1px solid rgba(133,133,237,.4); border-radius: 14px; background: rgba(133,133,237,.12); text-align: center; }
.pin-setup-intro strong { color: #c7c7ff; font-size: 18px; }
.pin-setup-intro span { color: var(--muted); font-size: 14px; }
.pin-panel > label { display: block; text-align: center; font-weight: 700; font-size: 17px; }
.pin-dots { min-height: 46px; display: flex; justify-content: center; align-items: center; gap: 14px; margin: 12px 0 20px; }
.pin-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); }
.pin-placeholder { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #52647a; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { min-height: 62px; border: 1px solid var(--line); border-radius: 15px; background: #292b62; color: var(--text); font-size: 24px; font-weight: 700; cursor: pointer; }
.keypad button:active { background: #3c3e85; transform: scale(.97); }
.keypad .key-clear, .keypad .key-delete { font-size: 15px; color: var(--muted); }
.punch-actions { display: flex; gap: 12px; margin-top: 18px; }
.punch-actions .action-button { flex: 1; }
.setup-actions { margin-top: 18px; }
.setup-actions .action-button { width: 100%; }
.action-button { min-height: 70px; border-radius: 17px; border: 0; font-size: 18px; font-weight: 850; cursor: pointer; }
.action-button span { font-size: 24px; margin-right: 5px; }
.action-button.in { background: #8e8ef3; color: #171743; }
.action-button.out { background: var(--orange); color: #30200d; }
.action-button.lunch { background: #f3bd63; color: #30200d; }
.action-button.lunch-return { background: #79d0bd; color: #102c28; }
.action-button.dinner { background: #d9a7e8; color: #35183e; }
.action-button.dinner-return { background: #8cb8ee; color: #102744; }
.action-button:disabled { opacity: .3; cursor: not-allowed; }
.form-error { min-height: 22px; margin: 14px 0 0; color: #ff958f; text-align: center; font-weight: 650; }
.success-overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(3,10,18,.9); backdrop-filter: blur(12px); }
.success-card { text-align: center; padding: 60px; }
.success-icon { width: 100px; height: 100px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center; background: #9292f2; color: var(--navy); font-size: 58px; font-weight: 900; }
.success-card h2 { font-size: 48px; margin: 0 0 12px; }
.success-card p { font-size: 22px; color: var(--muted); }

/* Admin */
.admin-body { min-height: 100vh; background: #eef2f5; color: #102033; color-scheme: light; }
.login-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% -10%, #5050b5 0, #24245f 34%, var(--navy) 72%); color: var(--text); position: relative; overflow: hidden; }
.login-page::before, .login-page::after { content: ''; position: fixed; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.login-page::before { width: 420px; height: 420px; left: -210px; bottom: -210px; background: rgba(76,76,184,.22); }
.login-page::after { width: 300px; height: 300px; right: -160px; top: 18%; border: 1px solid rgba(255,255,255,.08); }
.login-card { width: min(440px, 100%); background: #fff; color: #102033; border-radius: 24px; padding: 38px; box-shadow: 0 25px 80px rgba(0,0,0,.28); position: relative; z-index: 1; }
.bootstrap-card { width: min(620px, 100%); }
.login-card .brand { margin-bottom: 34px; }
.login-logo { padding: 0; box-shadow: none; justify-content: center; }
.login-logo img { width: min(100%, 340px); }
.login-wordmark { width: min(100%, 300px); margin: 0 auto 34px; padding: 0; box-shadow: none; }
.login-card h1 { font-size: 34px; margin: 0 0 8px; }
.login-card > p { color: #647386; margin: 0 0 28px; }
.auth-link { width: 100%; display: block; border: 0; background: transparent; color: var(--brand); text-align: center; text-decoration: none; padding: 16px 8px 4px; font-weight: 800; cursor: pointer; }
.auth-link:hover { text-decoration: underline; }
.auth-trust { display: flex; justify-content: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e7ebef; color: #7b8795; font-size: 11px; font-weight: 750; letter-spacing: .02em; }
.auth-trust span::before { content: '✓'; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; border-radius: 50%; background: #ececfa; color: var(--brand); }
.auth-icon { margin-bottom: 14px; }
.auth-message.success-text, .success-text { color: #236f4a; }
.setup-badge { display: inline-block; margin-bottom: 8px; color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.legacy-box { margin: 4px 0 20px; padding: 18px; border: 1px solid #dfe4ea; border-radius: 14px; background: #f7f8fa; }
.legacy-box > strong { display: block; margin-bottom: 14px; color: #34465a; font-size: 13px; }
.legacy-box .field { margin-bottom: 0; }
.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field label { font-size: 13px; font-weight: 800; color: #405064; }
.field input, .field select { width: 100%; min-height: 50px; border: 1px solid #d7dee5; border-radius: 11px; padding: 0 14px; background: #fff; color: #102033; outline: none; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51,51,153,.13); }
.primary-button { width: 100%; min-height: 52px; border: 0; border-radius: 11px; background: var(--brand); color: white; font-weight: 800; cursor: pointer; }
.primary-button.compact { width: auto; padding: 0 20px; }
.platform-logo { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 17px; color: white; font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.platform-logo img { display: block; width: 100%; height: 100%; }
.platform-logo.small { width: 38px; height: 38px; margin: 0; border-radius: 11px; font-size: 14px; }
.platform-app { min-height: 100vh; background: #eef2f5; }
.platform-topbar { min-height: 72px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); color: white; }
.platform-topbar > div { display: flex; align-items: center; gap: 14px; }
.topbar-wordmark { width: 220px; padding: 6px 10px; box-shadow: none; }
.platform-topbar .outline-button { min-height: 38px; background: transparent; border-color: rgba(255,255,255,.25); color: white; }
.platform-main { width: min(1380px, 100%); margin: 0 auto; padding: 44px 40px; }
.platform-stats { margin-top: 4px; }
.table-secondary { display: block; margin-top: 5px; color: #7b8795; font-size: 12px; }
.admin-app { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: var(--navy); color: var(--text); padding: 28px 20px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 8px 28px; }
.sidebar .sidebar-logo { padding: 8px; margin-bottom: 24px; }
.sidebar-logo img { width: 100%; }
.sidebar .sidebar-wordmark { width: 100%; margin-bottom: 24px; padding: 8px; box-shadow: none; }
.nav { display: grid; gap: 6px; }
.nav button { border: 0; background: transparent; color: #a9b7c8; padding: 14px; border-radius: 10px; text-align: left; font-weight: 700; cursor: pointer; }
.nav button.active, .nav button:hover { background: #292b62; color: #fff; }
.sidebar-footer { margin-top: auto; }
.sidebar-footer a, .sidebar-footer button { display: block; width: 100%; color: #a9b7c8; background: transparent; border: 0; text-align: left; padding: 12px; text-decoration: none; cursor: pointer; }
.admin-language { padding: 8px 12px 12px; }
.admin-language label { display: block; color: #a9b7c8; font-size: .78rem; margin-bottom: 5px; }
.admin-language select { width: 100%; min-height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 7px 9px; color: #fff; background: #20354a; }
.auth-language { display:flex; align-items:center; justify-content:flex-end; gap:7px; margin:-22px 0 20px; color:#647386; font-size:12px; }
.auth-language select { min-height:36px; border:1px solid #c8d1d9; border-radius:8px; padding:5px 27px 5px 8px; color:#102033; background:#fff; }
.activation-result { margin:0 24px 22px; padding:20px; border:1px solid #9bc8d5; border-radius:12px; text-align:center; background:#edf8fa; }
.activation-result span { display:block; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.activation-result strong { display:block; margin:8px 0; color:var(--brand-deep); font:800 24px ui-monospace,monospace; overflow-wrap:anywhere; }
.activation-result p { margin:0; color:var(--muted); }
.platform-language { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:12px; }
.platform-language select { min-height:38px; border:1px solid var(--line); border-radius:8px; padding:6px 28px 6px 9px; color:var(--text); background:#fff; }
.admin-identity { padding: 13px 12px; margin-bottom: 6px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-identity strong, .admin-identity span { display: block; }
.admin-identity strong { color: #fff; font-size: 14px; }
.admin-identity span { color: #858fa4; font-size: 12px; margin-top: 3px; }
.admin-main { padding: 42px 48px; overflow: hidden; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-header h1 { font-size: 38px; margin: 0 0 6px; }
.admin-header p { color: #68788b; margin: 0; }
.outline-button, .small-button { border: 1px solid #cdd6df; background: #fff; color: #213448; border-radius: 10px; min-height: 44px; padding: 0 16px; font-weight: 750; cursor: pointer; }
.danger-button { border: 1px solid #c43b3b; background: #c43b3b; color: #fff; border-radius: 10px; min-height: 44px; padding: 0 18px; font-weight: 800; cursor: pointer; }
.danger-small { color: #a82e2e; border-color: #e5bcbc; }
.delete-warning { color: #a82e2e; font-weight: 750; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border: 1px solid #dde4ea; border-radius: 16px; padding: 22px; }
.stat-card span { display: block; color: #718095; font-size: 13px; font-weight: 750; margin-bottom: 10px; }
.stat-card strong { font-size: 36px; letter-spacing: -.04em; }
.card { background: #fff; border: 1px solid #dde4ea; border-radius: 16px; overflow: hidden; margin-bottom: 22px; }
.card-header { padding: 20px 22px; border-bottom: 1px solid #e4e9ee; display: flex; justify-content: space-between; align-items: center; }
.card-header h2 { margin: 0; font-size: 19px; }
.card-subtitle { margin: 5px 0 0; color: #718095; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 22px; border-bottom: 1px solid #edf0f3; text-align: left; font-size: 14px; }
th { color: #718095; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
th[data-sortable="true"] { cursor: pointer; user-select: none; white-space: nowrap; transition: color .15s, background .15s; }
th[data-sortable="true"]:hover, th[data-sortable="true"]:focus-visible { color: var(--brand); background: #f4f5ff; outline: none; }
th[data-sortable="true"]::after { content: '↕'; display: inline-block; margin-left: 7px; color: #a1aaba; font-size: 13px; }
th[data-sortable="true"][aria-sort="ascending"]::after { content: '↑'; color: var(--brand); }
th[data-sortable="true"][aria-sort="descending"]::after { content: '↓'; color: var(--brand); }
.pill { display: inline-block; padding: 6px 9px; border-radius: 999px; background: #ececfa; color: var(--brand); font-size: 12px; font-weight: 800; }
.pill.out, .pill.inactive { background: #f0f2f4; color: #6c7887; }
.pill.late { background: #fff0df; color: #9b5b10; }
.pill.early { background: #ffe9e8; color: #a33d38; margin-left: 5px; }
.pill.open { background: #e9edff; color: #3737a1; }
.pill.automatic { background: #e8eefc; color: #334d91; margin: 3px 0 3px 5px; }
.pill.punch-lunch-out { background: #fff0d6; color: #87520c; }
.pill.punch-lunch-in { background: #e1f5ef; color: #236b5b; }
.pill.punch-dinner-out { background: #f5e6fa; color: #73388a; }
.pill.punch-dinner-in { background: #e4effc; color: #285f9c; }
.pill.lunch-warning { background: #fff0d6; color: #87520c; margin: 3px 0 3px 5px; }
.pill.lunch-missing { background: #ffe9e8; color: #a33d38; margin: 3px 0 3px 5px; }
.muted-text { color: #8591a0; }
.empty { text-align: center; color: #718095; padding: 40px; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; background: rgba(5,14,25,.65); }
.modal-card { width: min(620px, 100%); background: white; border-radius: 18px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-card h2 { margin: 0 0 22px; }
.modal-card > p { color: #667589; line-height: 1.5; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.modal-actions button { width: auto; padding: 0 22px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.schedule-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.warning-banner { background: #fff4dc; border: 1px solid #f1d28d; color: #6d4b06; padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; }
.settings-form { max-width: 560px; padding: 22px; }
.schedule-settings-form { max-width: 860px; }
.schedule-settings-form fieldset { margin: 0 0 20px; padding: 18px; border: 1px solid #dfe5eb; border-radius: 12px; }
.schedule-settings-form legend { padding: 0 8px; color: #26384c; font-weight: 850; }
.schedule-settings-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.schedule-profile-modal { width: min(920px, calc(100vw - 32px)); }
.schedule-profile-modal fieldset { margin: 0 0 18px; padding: 16px; border: 1px solid #dfe5eb; border-radius: 12px; }
.schedule-profile-modal legend { padding: 0 8px; font-weight: 850; }
.schedule-profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.schedule-profile-grid .field { margin-bottom: 0; }
.profile-schedule-summary { display: block; white-space: nowrap; }
.schedule-settings-grid .field { margin-bottom: 0; }
.auto-checkout-time-field { max-width: 360px; }
.field small { color: #7b8795; font-size: 12px; }
.statistics-filter { padding: 18px 22px; }
.filter-row { display: grid; grid-template-columns: minmax(220px, 1fr) 220px auto; gap: 16px; align-items: end; }
.filter-row .field { margin: 0; }
.filter-row .primary-button { width: auto; padding: 0 22px; }
.employee-stat-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: linear-gradient(135deg, #27276f, #3d3da0); color: white; border-radius: 16px; padding: 24px 28px; margin-bottom: 18px; }
.employee-stat-heading h2 { margin: 5px 0 6px; font-size: 28px; }
.employee-stat-heading p { color: #d2d2ee; margin: 0; }
.eyebrow-light { color: #bcbcfa; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.employee-stats-grid .stat-card small { display: block; color: #7a8796; margin-top: 5px; }
.all-stats-table { min-width: 820px; }
.workdays-table { min-width: 1050px; }
.lunch-stats-grid { margin-top: -10px; }
.statistics-employee-row { cursor: pointer; transition: background .15s ease; }
.statistics-employee-row:hover, .statistics-employee-row:focus { background: #f3f3fb; outline: none; }
.statistics-employee-row:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.comparison-rate { display: inline-block; color: #7a8796; margin-left: 6px; }
.password-gate { text-align: center; max-width: 480px; }
.password-locked > .sidebar, .password-locked > .admin-main { visibility: hidden; }
.password-gate .field { text-align: left; }
.security-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 18px; background: #ececfa; font-size: 28px; }
.text-button { border: 0; background: transparent; color: #65758a; padding: 15px; cursor: pointer; font-weight: 700; }
.row-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.row-actions .small-button { min-height: 36px; padding: 0 9px; }
#ownerSettings th, #ownerSettings td { padding-left: 12px; padding-right: 12px; }
.self-label, .temporary-label { display: block; color: #7b8795; font-size: 11px; margin-top: 4px; }
.pill.role { background: #eeeeff; color: #333399; }
.pin-setup-status, .pin-ready-status { display: block; margin-top: 5px; font-size: 11px; font-weight: 750; }
.pin-setup-status { color: #9b5b10; }
.pin-ready-status { color: #347255; }
.employee-pin-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; background: #f1f1fb; color: #45458f !important; font-size: 13px; }
@media (max-width: 900px) {
  .employee-grid { grid-template-columns: repeat(2, 1fr); }
  .pin-layout { gap: 34px; }
  .admin-app { grid-template-columns: 190px 1fr; }
  .admin-main { padding: 30px 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row .primary-button { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .kiosk-header { padding-inline: 22px; min-height: 92px; flex-direction: column; align-items: stretch; gap: 14px; }
  .kiosk-header > .brand { align-self: flex-start; }
  .brand-logo img { width: 205px; }
  .kiosk-tools { width: 100%; justify-content: space-between; gap: 10px; }
  .language-picker span { display: none; }
  .language-picker select { max-width: 105px; }
  .kiosk-content { padding: 38px 22px; }
  .employee-grid { grid-template-columns: 1fr; }
  .pin-layout { display: block; padding-top: 78px; }
  .selected-person { margin-bottom: 25px; }
  .back-button { left: 22px; }
  .admin-app { display: block; }
  .sidebar { min-height: auto; height: auto; position: static; padding: 14px; }
  .sidebar .brand { display: none; }
  .nav { grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); grid-template-columns: none; overflow-x: auto; }
  .nav button { text-align: center; padding: 11px 5px; }
  .sidebar-footer { display: none; }
  .admin-main { padding: 24px 16px; }
  .admin-header { align-items: flex-start; gap: 12px; }
  .admin-header h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card strong { font-size: 29px; }
  .filter-row, .schedule-fields, .schedule-settings-grid, .schedule-profile-grid, .two-fields { grid-template-columns: 1fr; }
  .employee-stat-heading { align-items: flex-start; }
  .platform-topbar { padding: 12px 16px; align-items: flex-start; }
  #platformIdentity { display: none; }
  .topbar-wordmark { width: 170px; }
  .platform-main { padding: 28px 16px; }
  .platform-main .admin-header { flex-direction: column; }
  .platform-main .admin-header .primary-button { width: 100%; }
}
