:root {
  --ink: #2c2a26;
  --ink-muted: #6b6258;
  --forest: #1a1a1a;
  --forest-deep: #1a1a1a;
  --forest-soft: #ffeddd;
  --lime: #f37520;
  --lime-soft: #ffeddd;
  --paper: #ffffff;
  --canvas: #faf6f0;
  --cream: #f2ebdf;
  --line: #e8ded4;
  --line-strong: #dbd2c2;
  --danger: #d33b49;
  --danger-soft: #fff0f1;
  --warning: #c45a0f;
  --warning-soft: #ffeddd;
  --success: #0a6929;
  --success-soft: #e7f3ea;
  --orange-dark: #c45a0f;
  --shadow-sm: 0 1px 2px rgba(44, 42, 38, .05), 0 9px 24px rgba(44, 42, 38, .045);
  --shadow-lg: 0 24px 60px rgba(26, 26, 26, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --focus: 0 0 0 3px rgba(243, 117, 32, .28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: none; box-shadow: var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 2000; top: 10px; left: 10px; padding: 10px 14px; border-radius: 8px; background: var(--paper); transform: translateY(-160%); box-shadow: var(--shadow-lg); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin-bottom: 7px; color: var(--orange-dark); font-size: .72rem; font-weight: 800; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-weight: 750; line-height: 1.1; text-decoration: none; transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.button:not(:disabled):active { transform: translateY(1px) scale(.995); }
.button:disabled { cursor: wait; opacity: .58; }
.button-primary { background: var(--forest); color: #fff; box-shadow: 0 5px 14px rgba(26, 26, 26, .16); }
.button-primary:hover:not(:disabled) { background: #2c2a26; }
.button-secondary { border-color: var(--line-strong); background: var(--paper); color: var(--forest); }
.button-secondary:hover:not(:disabled) { border-color: #bfb2a5; background: var(--canvas); }
.button-quiet { min-height: 38px; padding: 8px 11px; background: transparent; color: var(--ink-muted); }
.button-quiet:hover:not(:disabled) { background: rgba(44, 42, 38, .06); color: var(--ink); }
.button-small { font-size: .82rem; }
.button-full { width: 100%; min-height: 50px; }
.button-danger { background: var(--danger); color: #fff; }
.button-danger:hover:not(:disabled) { background: #b52c39; }
.button-danger-soft { border: 1px solid #f1c4c9; background: var(--danger-soft); color: var(--danger); }
.button-danger-soft:hover:not(:disabled) { background: #ffe3e6; }
.text-button { padding: 6px 0; background: transparent; color: var(--orange-dark); cursor: pointer; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }

.brand { display: inline-flex; min-width: 0; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { flex: none; border-radius: 50%; object-fit: contain; }
.brand span { display: flex; min-width: 0; flex-direction: column; }
.brand strong { max-width: 36vw; overflow: hidden; font-size: .96rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.brand small { margin-top: 2px; color: var(--ink-muted); font-size: .66rem; line-height: 1.2; }
.brand-light { color: #fff; }
.brand-light small { color: rgba(255, 255, 255, .62); }

.network-banner { position: sticky; z-index: 1000; top: 0; padding: 9px 18px; background: var(--warning-soft); color: #6c4803; text-align: center; font-size: .8rem; font-weight: 700; }
.noscript { position: fixed; z-index: 1000; inset: auto 12px 12px; padding: 14px; border-radius: 12px; background: var(--danger); color: #fff; text-align: center; }

/* Employee clock */
.clock-page { display: flex; min-height: 100svh; flex-direction: column; background: radial-gradient(circle at 5% 0%, rgba(243, 117, 32, .13), transparent 31rem), var(--canvas); }
.clock-header { display: flex; width: min(100%, 1000px); min-height: 74px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; }
.header-actions { display: flex; flex: none; align-items: center; gap: 6px; }
.connection-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .58); color: var(--ink-muted); font-size: .68rem; font-weight: 750; }
.connection-badge span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(10, 105, 41, .1); }
.clock-main { display: grid; width: min(100%, 600px); flex: 1; margin: 0 auto; align-items: center; padding: 22px 18px 34px; }
.view { width: 100%; }
.loading-view { display: flex; min-height: 400px; align-items: center; justify-content: center; flex-direction: column; color: var(--ink-muted); }
.loading-mark { display: flex; height: 38px; align-items: end; gap: 5px; }
.loading-mark span { width: 8px; height: 17px; border-radius: 5px; background: var(--forest); animation: load-bars 1s infinite ease-in-out; }
.loading-mark span:nth-child(2) { height: 29px; animation-delay: .12s; }
.loading-mark span:nth-child(3) { height: 22px; animation-delay: .24s; }
.loading-view p { margin: 16px 0 0; font-size: .86rem; }
@keyframes load-bars { 0%, 70%, 100% { opacity: .3; transform: scaleY(.65); } 35% { opacity: 1; transform: scaleY(1); } }

.identify-view { padding: 8px 0; }
.welcome-copy { margin-bottom: 25px; }
.welcome-copy h1 { margin-bottom: 10px; color: var(--forest-deep); font-size: clamp(2.2rem, 11vw, 4.1rem); letter-spacing: -.055em; line-height: .98; }
.welcome-copy > p:last-child { max-width: 430px; margin-bottom: 0; color: var(--ink-muted); font-size: .96rem; line-height: 1.55; }
.pin-card { padding: 20px; border: 1px solid rgba(232, 222, 212, .9); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); }
.pin-card > label { display: block; margin-bottom: 9px; font-size: .78rem; font-weight: 800; }
.pin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.pin-row input { width: 100%; min-height: 52px; padding: 11px 15px; border: 1px solid var(--line-strong); border-radius: 11px; outline: none; background: #fff; font-size: 1.25rem; font-weight: 750; letter-spacing: .2em; }
.pin-row input:focus { border-color: var(--lime); box-shadow: var(--focus); }
.pin-row .button { min-width: 112px; }
.field-help { margin: 7px 0 0; color: var(--ink-muted); font-size: .73rem; line-height: 1.45; }
.field-error, .form-error { min-height: 1.2em; margin: 7px 0 0; color: var(--danger); font-size: .78rem; font-weight: 650; line-height: 1.45; }
.privacy-note { display: flex; margin-top: 17px; align-items: flex-start; gap: 11px; padding: 0 8px; color: var(--ink-muted); }
.privacy-icon { display: grid; width: 25px; height: 25px; flex: none; place-items: center; border-radius: 50%; background: var(--forest-soft); color: var(--success); font-size: .72rem; font-weight: 900; }
.privacy-note strong { display: block; margin: 1px 0 3px; color: var(--ink); font-size: .78rem; }
.privacy-note p { margin: 0; font-size: .72rem; line-height: 1.45; }

.clock-view { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.employee-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; margin-bottom: 15px; padding: 0 3px; }
.avatar { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 14px; background: var(--forest); color: var(--lime); font-size: .83rem; font-weight: 850; letter-spacing: .03em; }
.avatar-small { width: 36px; height: 36px; border-radius: 11px; background: var(--lime); color: var(--forest); font-size: .72rem; }
.employee-bar .eyebrow { margin-bottom: 2px; font-size: .6rem; }
.employee-bar h1 { margin: 0; font-size: 1.12rem; letter-spacing: -.02em; }
.time-card { position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius-lg); background: var(--forest); color: #fff; box-shadow: 0 18px 40px rgba(26, 26, 26, .2); }
.time-card::after { position: absolute; width: 220px; height: 220px; border: 42px solid rgba(243, 117, 32, .08); border-radius: 50%; content: ""; right: -130px; top: -142px; pointer-events: none; }
.time-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: .71rem; font-weight: 800; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; }
.status-off { background: rgba(255,255,255,.1); color: rgba(255,255,255,.78); }
.status-off span { background: #aeb8b2; }
.status-working { background: rgba(243,117,32,.17); color: #ffd4b5; }
.status-working span { background: var(--lime); box-shadow: 0 0 0 4px rgba(243, 117, 32, .12); }
.status-break { background: rgba(255,210,108,.16); color: #ffe4a3; }
.status-break span { background: #ffd26c; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.75); cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.13); color: #fff; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.is-spinning svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.current-time { position: relative; z-index: 1; margin-top: 24px; font-size: clamp(3.45rem, 18vw, 5.9rem); font-weight: 780; letter-spacing: -.075em; line-height: .9; font-variant-numeric: tabular-nums; }
.current-date { position: relative; z-index: 1; margin: 11px 0 0; color: rgba(255,255,255,.62); font-size: .82rem; }
.shift-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11); }
.shift-metrics div { min-width: 0; padding: 0 12px; border-left: 1px solid rgba(255,255,255,.11); }
.shift-metrics div:first-child { padding-left: 0; border: 0; }
.shift-metrics span, .shift-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-metrics span { margin-bottom: 6px; color: rgba(255,255,255,.55); font-size: .63rem; font-weight: 700; text-transform: uppercase; }
.shift-metrics strong { font-size: .88rem; font-variant-numeric: tabular-nums; }
.clock-actions { display: grid; gap: 10px; margin-top: 15px; }
.button-clock { min-height: 70px; justify-content: flex-start; gap: 15px; padding: 12px 17px; text-align: left; }
.button-clock.button-primary { background: var(--lime); color: var(--forest-deep); box-shadow: 0 8px 20px rgba(196, 90, 15, .16); }
.button-clock.button-primary:hover:not(:disabled) { background: #ff8a3a; }
.button-clock.button-secondary { border-color: var(--line); }
.action-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); font-size: 1.15rem; font-weight: 800; }
.button-secondary .action-icon { background: var(--forest-soft); color: var(--forest); }
.action-copy { display: flex; flex-direction: column; gap: 3px; }
.action-copy strong { font-size: .95rem; }
.action-copy small { opacity: .65; font-size: .69rem; font-weight: 600; }
.clock-actions > .button-danger-soft { width: 100%; min-height: 48px; }
.event-note { display: flex; margin-top: 13px; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #c8e1cf; border-radius: 12px; background: var(--success-soft); color: var(--success); }
.event-note > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-size: .7rem; font-weight: 900; }
.event-note p { display: flex; margin: 0; flex-direction: column; gap: 2px; }
.event-note strong { font-size: .75rem; }
.event-note small { color: #497056; font-size: .68rem; }
.error-view { max-width: 390px; margin: auto; text-align: center; }
.error-illustration { display: grid; width: 60px; height: 60px; margin: 0 auto 18px; place-items: center; border-radius: 18px; background: var(--danger-soft); color: var(--danger); font-size: 1.5rem; font-weight: 900; }
.error-view h1 { margin-bottom: 8px; font-size: 1.5rem; }
.error-view p { margin-bottom: 20px; color: var(--ink-muted); line-height: 1.55; }
.clock-footer { display: flex; width: min(100%, 1000px); margin: 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px 20px; color: var(--ink-muted); font-size: .68rem; }
.clock-footer p { margin: 0; }
.clock-footer p span { color: var(--success); font-size: .54rem; }
.clock-footer a { min-height: 36px; display: inline-flex; align-items: center; font-weight: 700; }

/* Shared forms and dialogs */
.field { margin-top: 18px; }
.field:first-child { margin-top: 0; }
.field label { display: block; margin-bottom: 7px; font-size: .76rem; font-weight: 800; }
.field input, .field select, .search-field input, .select-compact select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; outline: none; background: #fff; font-size: .86rem; }
.field input:focus, .field select:focus, .search-field input:focus, .select-compact select:focus { border-color: var(--lime); box-shadow: var(--focus); }
.field input:disabled, .field select:disabled { background: var(--cream); color: var(--ink-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 62px; }
.password-toggle { position: absolute; top: 5px; right: 5px; min-height: 36px; padding: 6px 9px; border-radius: 7px; background: transparent; color: var(--success); cursor: pointer; font-size: .72rem; font-weight: 800; }
.password-toggle:hover { background: var(--forest-soft); }

dialog { max-height: calc(100svh - 24px); padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(26, 26, 26, .6); backdrop-filter: blur(3px); }
.confirm-dialog { width: min(calc(100% - 28px), 410px); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.confirm-dialog form { padding: 25px; }
.confirm-dialog h2 { margin-bottom: 8px; font-size: 1.35rem; letter-spacing: -.03em; }
.confirm-dialog > form > p { margin-bottom: 20px; color: var(--ink-muted); font-size: .85rem; line-height: 1.5; }
.dialog-icon { display: grid; width: 44px; height: 44px; margin-bottom: 16px; place-items: center; border-radius: 13px; background: var(--lime-soft); color: var(--forest); font-size: 1.1rem; font-weight: 850; }
.dialog-icon.danger { background: var(--danger-soft); color: var(--danger); }
.dialog-actions { display: flex; margin-top: 22px; justify-content: flex-end; gap: 9px; }
.dialog-actions-split { display: grid; grid-template-columns: auto 1fr auto auto; }
.form-dialog { width: min(calc(100% - 26px), 500px); overflow: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.form-dialog-wide { width: min(calc(100% - 26px), 660px); }
.form-dialog > form { padding: 24px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.03em; }
.dialog-close { display: grid; width: 44px; height: 44px; flex: none; place-items: center; border-radius: 10px; background: var(--canvas); color: var(--ink-muted); cursor: pointer; font-size: 1.4rem; }
.dialog-intro { margin: 16px 0 0; color: var(--ink-muted); font-size: .72rem; line-height: 1.55; }
.switch-row { display: flex; margin-top: 18px; align-items: center; cursor: pointer; }
.switch-row > span:first-child { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.switch-row strong { font-size: .8rem; }
.switch-row small { color: var(--ink-muted); font-size: .7rem; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 44px; height: 25px; border-radius: 999px; background: #c9c0b8; transition: background .16s; }
.switch::after { position: absolute; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); content: ""; left: 3px; top: 3px; transition: transform .16s; }
.switch-row input:checked + .switch { background: var(--success); }
.switch-row input:checked + .switch::after { transform: translateX(19px); }
.switch-row input:focus-visible + .switch { box-shadow: var(--focus); }

.toast { position: fixed; z-index: 3000; width: max-content; max-width: calc(100% - 28px); left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: var(--forest); color: #fff; box-shadow: var(--shadow-lg); font-size: .8rem; font-weight: 700; transform: translateX(-50%); animation: toast-in .2s ease both; }
.toast.is-error { background: #9f2733; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Admin sign in */
.admin-page { background: var(--canvas); }
.admin-login { display: grid; min-height: 100svh; grid-template-columns: minmax(360px, .95fr) minmax(480px, 1.35fr); }
.login-panel { display: flex; overflow: hidden; min-height: 100%; flex-direction: column; justify-content: space-between; padding: clamp(28px, 5vw, 66px); background: radial-gradient(circle at 80% 25%, rgba(243,117,32,.15), transparent 25rem), var(--forest-deep); color: #fff; }
.login-panel::after { width: 360px; height: 360px; align-self: center; margin: -90px -180px -190px auto; border: 62px solid rgba(243,117,32,.08); border-radius: 50%; content: ""; }
.login-copy { position: relative; z-index: 1; max-width: 500px; margin: 80px 0; }
.login-copy .eyebrow { color: var(--lime); }
.login-copy h1 { max-width: 470px; margin-bottom: 20px; font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -.065em; line-height: .94; }
.login-copy > p:last-child { max-width: 450px; margin: 0; color: rgba(255,255,255,.65); font-size: .97rem; line-height: 1.65; }
.login-security { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.58); font-size: .7rem; }
.login-security span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: rgba(243,117,32,.14); color: var(--lime); font-weight: 900; }
.login-form-wrap { display: grid; min-height: 100%; place-items: center; padding: 32px; background: var(--paper); }
.login-form { width: min(100%, 390px); }
.back-link { display: inline-flex; min-height: 40px; margin-bottom: 52px; align-items: center; color: var(--ink-muted); font-size: .76rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--forest); }
.login-form h2 { margin-bottom: 8px; font-size: 2rem; letter-spacing: -.045em; }
.form-intro { margin-bottom: 27px; color: var(--ink-muted); font-size: .83rem; line-height: 1.55; }
.login-form .button-full { margin-top: 10px; }

/* Admin app shell */
.admin-shell { min-height: 100svh; }
.admin-sidebar { position: fixed; z-index: 100; display: flex; width: 244px; height: 100svh; inset: 0 auto 0 0; flex-direction: column; padding: 23px 16px; background: var(--forest-deep); color: #fff; }
.admin-sidebar .brand { margin: 0 8px 26px; }
.admin-sidebar .brand strong { max-width: 145px; }
.admin-nav { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; scrollbar-width: thin; }
.nav-item { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; font-size: .78rem; font-weight: 700; text-align: left; }
.nav-item > .nav-icon { display: grid; width: 20px; flex: none; place-items: center; color: rgba(255,255,255,.54); font-size: 1rem; }
.nav-label { min-width: 0; flex: 1; }
.nav-status { padding: 4px 6px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.56); font-size: .5rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.nav-count { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--forest); font-size: .6rem; font-weight: 850; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.is-active { background: var(--lime); color: var(--forest-deep); box-shadow: 0 7px 17px rgba(0,0,0,.13); }
.nav-item.is-active > .nav-icon { color: var(--forest); }
.nav-item.is-active .nav-status, .nav-item.is-active .nav-count { border-color: var(--forest); background: var(--forest); color: #fff; }
.sidebar-foot { padding: 14px 9px 0; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-foot a { display: inline-flex; min-height: 37px; align-items: center; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 700; text-decoration: none; }
.sidebar-foot p { margin: 10px 0 0; color: rgba(255,255,255,.4); font-size: .64rem; }
.sidebar-foot p span { color: #72d5a9; font-size: .52rem; }
.admin-workspace { min-height: 100svh; margin-left: 244px; }
.admin-topbar { position: sticky; z-index: 80; top: 0; display: flex; height: 72px; align-items: center; justify-content: flex-end; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.91); backdrop-filter: blur(14px); }
.mobile-menu, .mobile-brand { display: none; }
.topbar-date { display: flex; padding-right: 23px; border-right: 1px solid var(--line); flex-direction: column; text-align: right; }
.topbar-date span { font-size: .74rem; font-weight: 800; }
.topbar-date small { margin-top: 2px; color: var(--ink-muted); font-size: .63rem; }
.admin-account { display: flex; align-items: center; gap: 9px; }
.admin-account > span:not(.avatar) { display: flex; flex-direction: column; }
.admin-account strong { max-width: 130px; overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-account small { margin-top: 2px; color: var(--ink-muted); font-size: .62rem; }
.admin-account .button { margin-left: 6px; }
.admin-content { width: min(100%, 1420px); margin: 0 auto; padding: 35px 34px 60px; }
.admin-section { animation: section-in .18s ease both; }
@keyframes section-in { from { opacity: 0; transform: translateY(3px); } }
.page-heading { display: flex; min-height: 70px; margin-bottom: 24px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.page-heading h1 { margin-bottom: 5px; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.045em; line-height: 1; }
.page-heading div > p:last-child { margin: 0; color: var(--ink-muted); font-size: .78rem; line-height: 1.45; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.stat-card { position: relative; min-height: 150px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.stat-card .stat-icon { position: absolute; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; right: 17px; top: 17px; background: var(--canvas); color: var(--success); font-size: .72rem; }
.stat-card p { margin: 0 0 24px; color: var(--ink-muted); font-size: .71rem; font-weight: 700; }
.stat-card strong { display: block; margin-bottom: 4px; color: var(--forest-deep); font-size: 2rem; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--ink-muted); font-size: .64rem; }
.stat-card.stat-accent { border-color: var(--forest); background: var(--forest); color: #fff; }
.stat-card.stat-accent .stat-icon { background: rgba(243,117,32,.16); color: var(--lime); }
.stat-card.stat-accent p, .stat-card.stat-accent small { color: rgba(255,255,255,.59); }
.stat-card.stat-accent strong { color: #fff; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr); gap: 14px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; min-height: 73px; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 19px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin-bottom: 3px; font-size: .91rem; letter-spacing: -.015em; }
.panel-heading p { margin: 0; color: var(--ink-muted); font-size: .66rem; }
.live-team-list, .activity-list { min-height: 280px; }
.live-person { display: grid; min-height: 69px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.live-person:last-child { border-bottom: 0; }
.person-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--forest-soft); color: var(--forest); font-size: .69rem; font-weight: 850; }
.live-person strong { display: block; overflow: hidden; margin-bottom: 4px; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.live-person small { display: block; color: var(--ink-muted); font-size: .63rem; }
.person-state { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .62rem; font-weight: 800; white-space: nowrap; }
.person-state::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.person-state.on-break { background: var(--warning-soft); color: var(--warning); }
.person-state.off-clock { background: var(--canvas); color: var(--ink-muted); }
.activity-item { display: grid; min-height: 69px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border-bottom: 0; }
.activity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px var(--success-soft); }
.activity-dot.break { background: var(--warning); box-shadow: 0 0 0 5px var(--warning-soft); }
.activity-dot.out { background: var(--ink-muted); box-shadow: 0 0 0 5px var(--canvas); }
.activity-item p { margin: 0; overflow: hidden; font-size: .71rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.activity-item p strong { font-weight: 800; }
.activity-item time { color: var(--ink-muted); font-size: .61rem; white-space: nowrap; }

/* Admin tables */
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; display: block; width: min(100%, 300px); }
.search-field > span[aria-hidden] { position: absolute; left: 12px; top: 50%; color: var(--ink-muted); font-size: 1rem; transform: translateY(-50%); }
.search-field input { min-height: 40px; padding-left: 35px; border-color: var(--line); background: var(--canvas); font-size: .75rem; }
.select-compact select { width: auto; min-height: 40px; padding: 8px 30px 8px 11px; border-color: var(--line); background: var(--paper); font-size: .72rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { height: 43px; background: var(--canvas); color: var(--ink-muted); font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
td { font-size: .73rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fffaf6; }
.cell-right { text-align: right; }
.table-person { display: inline-grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; }
.table-person .person-avatar { width: 34px; height: 34px; }
.table-person strong, .table-person small { display: block; }
.table-person strong { margin-bottom: 3px; font-size: .74rem; }
.table-person small { color: var(--ink-muted); font-size: .61rem; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .61rem; font-weight: 800; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.badge.inactive { background: var(--canvas); color: var(--ink-muted); }
.badge.open { background: var(--warning-soft); color: var(--warning); }
.masked-pin { color: var(--ink-muted); font-size: .9rem; letter-spacing: .1em; }
.row-action { min-height: 34px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--forest); cursor: pointer; font-size: .67rem; font-weight: 800; }
.row-action:hover { border-color: #bfb2a5; background: var(--canvas); }
.table-loading { padding: 35px; color: var(--ink-muted); text-align: center; }
.empty-state { display: grid; min-height: 200px; place-items: center; padding: 24px; color: var(--ink-muted); text-align: center; }
.empty-state.compact { min-height: 190px; }
.empty-state p { max-width: 330px; margin: 0; font-size: .78rem; line-height: 1.55; }

.filter-panel { margin-bottom: 13px; padding: 13px 15px; }
.filter-form { display: grid; grid-template-columns: 150px 150px minmax(170px, 1fr) auto auto; align-items: end; gap: 10px; }
.field-compact { margin: 0; }
.field-compact label { margin-bottom: 5px; font-size: .64rem; }
.field-compact input, .field-compact select { min-height: 40px; padding: 8px 10px; font-size: .73rem; }
.filter-form .button { min-height: 40px; font-size: .7rem; white-space: nowrap; }
.timecard-summary { display: flex; margin-bottom: 13px; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow-sm); }
.timecard-summary p { display: flex; min-width: 150px; margin: 0; flex: 1; flex-direction: column; gap: 5px; padding: 13px 17px; background: var(--paper); }
.timecard-summary span { color: var(--ink-muted); font-size: .62rem; font-weight: 700; }
.timecard-summary strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.shift-table { min-width: 790px; }
.shift-table td { font-variant-numeric: tabular-nums; }
.open-time { color: var(--warning); font-weight: 750; }
.muted { color: var(--ink-muted); }

/* Settings and audit */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .75fr); align-items: start; gap: 14px; }
.settings-stack { display: grid; gap: 14px; }
.settings-card { padding-bottom: 19px; }
.settings-card > .field { margin-right: 19px; margin-left: 19px; }
.settings-field-row { margin-right: 19px; margin-left: 19px; }
.settings-actions { display: flex; margin: 22px 19px 0; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.settings-actions p { margin: 0 auto 0 0; color: var(--success); font-size: .72rem; font-weight: 700; }
.settings-actions p.form-error { color: var(--danger); }
.info-card { padding: 23px; background: var(--forest); color: #fff; }
.info-card-icon { display: grid; width: 41px; height: 41px; margin-bottom: 19px; place-items: center; border-radius: 12px; background: rgba(243,117,32,.16); color: var(--lime); font-size: 1.25rem; }
.info-card h2 { margin-bottom: 9px; font-size: 1rem; }
.info-card > p { color: rgba(255,255,255,.62); font-size: .74rem; line-height: 1.6; }
.info-card dl { margin: 22px 0 0; }
.info-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .67rem; }
.info-card dt { color: rgba(255,255,255,.5); }
.info-card dd { margin: 0; font-weight: 750; }
.audit-list { min-height: 230px; }
.audit-entry { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.audit-entry:last-child { border-bottom: 0; }
.audit-marker { width: 9px; height: 9px; margin-top: 5px; border: 2px solid #fff; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px var(--success-soft); }
.audit-entry h3 { margin-bottom: 4px; font-size: .75rem; }
.audit-entry p { margin: 0; color: var(--ink-muted); font-size: .66rem; line-height: 1.5; }
.audit-entry time { color: var(--ink-muted); font-size: .62rem; white-space: nowrap; }

/* Schedule builder */
.heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.draft-badge, .schedule-state { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: var(--lime-soft); color: var(--orange-dark); font-size: .61rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.draft-badge::before, .schedule-state::before { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); content: ""; }
.draft-badge.is-published, .schedule-state.published { background: var(--success-soft); color: var(--success); }
.draft-badge.is-published::before, .schedule-state.published::before { background: var(--success); }
.schedule-state.empty { background: var(--cream); color: var(--ink-muted); }
.schedule-state.empty::before { background: var(--ink-muted); }
.autosave-note { color: var(--ink-muted); font-size: .61rem; white-space: nowrap; }
.schedule-toolbar { display: grid; grid-template-columns: minmax(260px, 1.45fr) auto minmax(120px, .55fr) minmax(120px, .55fr) auto auto; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.week-picker { display: grid; min-height: 54px; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 7px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); box-shadow: var(--shadow-sm); }
.week-arrow { display: grid; place-items: center; border-radius: 9px; background: var(--cream); color: var(--orange-dark); cursor: pointer; font-size: 1.2rem; }
.week-arrow:hover { background: var(--lime-soft); }
.week-field { position: relative; display: flex; min-width: 0; align-items: center; justify-content: center; }
.week-field > span { position: absolute; left: 50%; top: 6px; color: var(--ink-muted); font-size: .54rem; font-weight: 750; pointer-events: none; transform: translateX(-50%); white-space: nowrap; }
.week-field input { width: 100%; min-height: 40px; padding: 14px 7px 1px; border: 0; outline: 0; background: transparent; font-size: .74rem; font-weight: 800; text-align: center; }
.schedule-toolbar > .button { min-height: 54px; }
.schedule-metric { display: flex; min-height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 13px; border-radius: 13px; background: var(--success-soft); }
.schedule-metric span { color: var(--success); font-size: .52rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.schedule-metric strong { font-size: .79rem; font-variant-numeric: tabular-nums; }
.schedule-metric-warning { background: var(--lime-soft); }
.schedule-metric-warning span { color: var(--orange-dark); }
.schedule-revision-note { display: flex; margin: -2px 0 14px; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid #ffd0ad; border-radius: 13px; background: #fff8f1; }
.schedule-revision-note > span { display: grid; width: 29px; height: 29px; flex: none; place-items: center; border-radius: 50%; background: var(--orange-dark); color: #fff; font-size: .7rem; font-weight: 850; }
.schedule-revision-note strong { display: block; margin-bottom: 3px; font-size: .7rem; }
.schedule-revision-note p { margin: 0; color: var(--ink-muted); font-size: .62rem; line-height: 1.45; }
.schedule-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(270px, .29fr); align-items: start; gap: 14px; }
.schedule-board { min-width: 0; overflow: hidden; }
.schedule-board-heading { min-height: 66px; }
.schedule-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: .61rem; font-weight: 700; }
.schedule-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--lime-soft); box-shadow: inset 0 0 0 1px #ffc89f; }
.schedule-grid-wrap { overflow: auto; }
.schedule-grid { min-width: 860px; min-height: 430px; background: var(--paper); }
.schedule-loading { display: grid; min-height: 430px; place-items: center; align-content: center; gap: 12px; color: var(--ink-muted); }
.schedule-loading p { margin: 0; font-size: .76rem; }
.loading-ring { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--lime); border-radius: 50%; animation: spin .75s linear infinite; }
.schedule-table { display: grid; min-width: 860px; }
.schedule-table-head, .schedule-employee-row { display: grid; grid-template-columns: minmax(145px, 1.15fr) repeat(7, minmax(88px, 1fr)); }
.schedule-table-head { position: sticky; z-index: 2; top: 0; min-height: 57px; background: var(--cream); }
.schedule-table-head > div { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 8px; border-right: 1px solid var(--line); color: var(--ink-muted); font-size: .56rem; text-transform: uppercase; }
.schedule-table-head > div:first-child { align-items: flex-start; padding-left: 14px; }
.schedule-table-head strong { color: var(--ink); font-size: .68rem; text-transform: none; }
.schedule-table-head .is-today { background: var(--lime-soft); color: var(--orange-dark); }
.schedule-employee-row { min-height: 112px; border-top: 1px solid var(--line); }
.schedule-employee { display: grid; grid-template-columns: auto minmax(0,1fr); align-content: center; align-items: center; gap: 9px; padding: 12px; border-right: 1px solid var(--line); }
.schedule-employee strong, .schedule-employee small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-employee strong { margin-bottom: 3px; font-size: .7rem; }
.schedule-employee small { color: var(--ink-muted); font-size: .57rem; }
.schedule-employee .person-avatar { width: 34px; height: 34px; background: var(--forest); color: var(--lime); }
.schedule-day { display: flex; min-width: 0; align-items: stretch; flex-direction: column; gap: 5px; padding: 6px; border-right: 1px solid var(--line); background: #fff; }
.schedule-day.is-today { background: #fff9f4; }
.schedule-shift-card, .schedule-day-empty { width: 100%; min-height: 80px; padding: 10px 8px; border: 1px solid transparent; border-radius: 10px; background: var(--lime-soft); color: var(--orange-dark); text-align: left; }
button.schedule-shift-card { cursor: pointer; }
.schedule-shift-card:hover { border-color: var(--lime); }
.schedule-shift-card.is-selected { border-color: var(--lime); background: var(--forest); color: #fff; box-shadow: 0 0 0 2px var(--lime); }
.schedule-shift-card.is-conflict { border-color: #f2a46e; }
.schedule-shift-card strong, .schedule-shift-card small { display: block; }
.schedule-shift-card strong { margin-bottom: 6px; font-size: .66rem; font-variant-numeric: tabular-nums; }
.schedule-shift-card small { margin-top: 3px; color: currentColor; font-size: .55rem; opacity: .72; }
.schedule-day-empty { display: grid; place-items: center; border-color: var(--line); background: var(--cream); color: var(--ink-muted); font-size: .55rem; text-align: center; }
.schedule-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) repeat(7, minmax(92px, 1fr)) minmax(68px, .55fr); }
.schedule-row > div { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schedule-row > div:last-child { border-right: 0; }
.schedule-row:last-child > div { border-bottom: 0; }
.schedule-head { position: sticky; z-index: 2; top: 0; min-height: 57px; background: var(--cream); }
.schedule-head > div { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 8px; color: var(--ink-muted); font-size: .55rem; font-weight: 750; text-transform: uppercase; }
.schedule-head > div:first-child { align-items: flex-start; padding-left: 13px; }
.schedule-head strong { color: var(--ink); font-size: .66rem; }
.schedule-head span { font-size: .54rem; font-weight: 600; text-transform: none; }
.schedule-person { display: grid; min-height: 112px; grid-template-columns: auto minmax(0,1fr); align-content: center; align-items: center; gap: 9px; padding: 11px; }
.schedule-person > span:last-child, .schedule-person strong, .schedule-person small { display: block; min-width: 0; }
.schedule-person strong, .schedule-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-person strong { margin-bottom: 4px; font-size: .68rem; }
.schedule-person small { color: var(--ink-muted); font-size: .54rem; }
.schedule-person .person-avatar { width: 32px; height: 32px; background: var(--forest); color: var(--lime); }
.schedule-cell { position: relative; display: flex; min-height: 112px; align-items: stretch; flex-direction: column; gap: 5px; padding: 6px; background: #fff; }
.schedule-cell .schedule-shift-card { flex: 1; }
.schedule-shift-card > span { display: block; margin-top: 3px; color: currentColor; font-size: .56rem; opacity: .82; }
.schedule-shift-card:disabled { cursor: default; opacity: .86; }
.schedule-shift-card.is-published { border-color: var(--line); background: var(--success-soft); color: var(--success); }
.add-cell-shift { display: grid; width: 24px; height: 24px; flex: none; place-items: center; align-self: center; border: 1px dashed var(--line-strong); border-radius: 7px; background: #fff; color: var(--orange-dark); cursor: pointer; font-size: .85rem; }
.add-cell-shift:hover { border-color: var(--lime); background: var(--lime-soft); }
.schedule-total { display: flex; min-height: 112px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; padding: 8px; background: var(--canvas); text-align: center; }
.schedule-total strong { font-size: .65rem; }
.schedule-total span { color: var(--ink-muted); font-size: .52rem; }
.schedule-layout:has(.schedule-conflicts[hidden]) { grid-template-columns: 1fr; }
.schedule-conflicts { position: sticky; top: 87px; overflow: hidden; }
.schedule-conflicts > strong { display: block; padding: 16px 17px 12px; color: var(--warning); font-size: .73rem; }
.schedule-conflicts > ul { margin: 0; padding: 0 17px 16px 34px; }
.schedule-conflicts > ul li { margin-top: 7px; color: var(--ink-muted); font-size: .62rem; line-height: 1.45; }
.schedule-conflict-list { min-height: 220px; }
.schedule-conflict-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.schedule-conflict-item:last-child { border-bottom: 0; }
.schedule-conflict-item strong { display: block; margin-bottom: 4px; font-size: .7rem; }
.schedule-conflict-item p { margin: 0; color: var(--ink-muted); font-size: .62rem; line-height: 1.45; }
.schedule-conflict-item.warning { border-left: 3px solid var(--lime); }
.data-boundary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; margin-top: 14px; padding: 15px 18px; border-radius: var(--radius); background: var(--lime-soft); }
.data-boundary-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); font-weight: 900; }
.data-boundary strong { display: block; margin-bottom: 4px; font-size: .75rem; }
.data-boundary p { margin: 0; color: var(--ink-muted); font-size: .63rem; line-height: 1.5; }
.data-boundary-label { padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--orange-dark); font-size: .56rem; font-weight: 800; text-align: center; }
.schedule-shift-dialog .dialog-heading > div > p:last-child { margin: 5px 0 0; color: var(--ink-muted); font-size: .67rem; }
.schedule-availability-check { display: flex; margin-top: 18px; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--success-soft); color: var(--success); }
.schedule-availability-check > span { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-size: .72rem; font-weight: 900; }
.schedule-availability-check p { display: flex; margin: 0; flex-direction: column; gap: 2px; }
.schedule-availability-check strong { font-size: .7rem; }
.schedule-availability-check small { color: var(--ink-muted); font-size: .6rem; }
.schedule-availability-check.is-conflict { background: var(--warning-soft); color: var(--warning); }
.schedule-availability-check.is-conflict > span { background: var(--warning); }
.schedule-close-summary { margin-top: 17px; padding: 12px 14px; border-radius: 11px; background: var(--cream); color: var(--ink-muted); font-size: .67rem; line-height: 1.5; }

/* Requests and approvals */
.request-toolbar { display: flex; margin-bottom: 14px; align-items: flex-end; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.request-filter-field { display: flex; min-width: 190px; flex-direction: column; gap: 5px; }
.request-filter-field span { color: var(--ink-muted); font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.request-filter-field select { min-height: 44px; padding: 8px 30px 8px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--paper); font-size: .71rem; }
.request-filter-field select:focus { border-color: var(--lime); box-shadow: var(--focus); }
.request-toolbar .button { min-height: 44px; margin-left: auto; }
.requests-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px, .45fr); align-items: start; gap: 18px; }
.requests-column { min-width: 0; }
.section-kicker { display: flex; min-height: 51px; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-kicker .eyebrow { margin-bottom: 5px; }
.section-kicker h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.section-kicker > span { display: grid; min-width: 30px; height: 30px; place-items: center; border-radius: 999px; background: var(--forest); color: #fff; font-size: .68rem; font-weight: 800; }
.request-list { display: grid; gap: 10px; }
.request-list-loading { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.request-card { position: relative; width: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; transition: border-color .16s, box-shadow .16s, transform .16s; }
.request-card:hover { border-color: #e0b08e; transform: translateY(-1px); }
.request-card.is-selected { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), var(--shadow-sm); }
.request-card.is-selected::before { position: absolute; width: 4px; border-radius: 4px 0 0 4px; background: var(--success); content: ""; inset: -1px auto -1px -1px; }
.request-card-top { display: flex; margin-bottom: 12px; align-items: center; justify-content: space-between; gap: 10px; }
.request-kind-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--forest); color: var(--lime); font-size: .78rem; }
.request-kind-icon.large { width: 42px; height: 42px; border-radius: 12px; font-size: .95rem; }
.request-status { display: inline-flex; min-width: 76px; align-items: center; justify-content: center; padding: 5px 8px; border-radius: 999px; background: var(--lime-soft); color: var(--orange-dark); font-size: .51rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.request-status.approved { background: var(--success-soft); color: var(--success); }
.request-status.denied, .request-status.cancelled { background: var(--danger-soft); color: var(--danger); }
.request-card-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; }
.request-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--forest); color: var(--lime); font-size: .63rem; font-weight: 850; }
.request-card-head strong { display: block; margin-bottom: 3px; font-size: .73rem; }
.request-card-head small { display: block; color: var(--ink-muted); font-size: .6rem; }
.request-pill { min-width: 78px; padding: 5px 8px; border-radius: 999px; background: var(--lime-soft); color: var(--orange-dark); font-size: .53rem; font-weight: 850; text-align: center; text-transform: uppercase; }
.request-pill.approved { background: var(--success-soft); color: var(--success); }
.request-pill.denied { background: var(--danger-soft); color: var(--danger); }
.request-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.request-value { display: block; min-width: 0; padding: 11px 12px; border-radius: 11px; background: var(--cream); }
.request-value.proposed { background: var(--success-soft); }
.request-value span, .request-value strong, .request-value small { display: block; }
.request-value span { margin-bottom: 6px; color: var(--ink-muted); font-size: .5rem; font-weight: 800; text-transform: uppercase; }
.request-value.proposed span { color: var(--orange-dark); }
.request-value strong { overflow: hidden; font-size: .67rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.request-value small { margin-top: 4px; color: var(--ink-muted); font-size: .55rem; }
.request-card-foot { display: flex; margin-top: 11px; align-items: center; justify-content: space-between; gap: 10px; }
.request-card-foot p { margin: 0; overflow: hidden; color: var(--ink-muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.request-card-foot span { color: var(--orange-dark); font-size: .61rem; font-weight: 800; white-space: nowrap; }
.request-detail { position: sticky; top: 87px; overflow: hidden; border-color: #ead4c4; background: #fffaf6; }
.request-inspector { min-height: 430px; }
.request-inspector-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 11px; padding: 18px 19px; border-bottom: 1px solid var(--line); }
.request-inspector-header .eyebrow { margin-bottom: 4px; font-size: .54rem; }
.request-inspector-header h2 { margin-bottom: 4px; font-size: 1.02rem; }
.request-inspector-header div > p:last-child { margin: 0; color: var(--ink-muted); font-size: .58rem; }
.request-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 19px; }
.request-detail-grid > div { min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.request-detail-grid dt { margin-bottom: 7px; color: var(--ink-muted); font-size: .49rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.request-detail-grid dd { margin: 0; overflow-wrap: anywhere; font-size: .66rem; line-height: 1.42; }
.decision-summary { margin: 0 19px 16px; padding: 12px; border-radius: 11px; background: var(--success-soft); }
.decision-summary strong { display: block; margin-bottom: 5px; color: var(--success); font-size: .66rem; }
.decision-summary p { margin: 0; color: var(--ink-muted); font-size: .6rem; line-height: 1.45; }
.request-inspector > .privacy-note { display: flex; margin: 0 19px 5px; padding: 11px 12px; border-radius: 11px; background: var(--lime-soft); color: var(--ink); }
.request-inspector > .privacy-note strong { flex: none; color: var(--orange-dark); }
.request-inspector > .privacy-note span { color: var(--ink-muted); font-size: .57rem; line-height: 1.45; }
.request-inspector > .request-actions { margin-top: 15px; border-top: 1px solid var(--line); }
.request-empty { display: grid; min-height: 430px; place-items: center; align-content: center; padding: 38px; text-align: center; }
.request-empty > span { display: grid; width: 44px; height: 44px; margin-bottom: 14px; place-items: center; border-radius: 50%; background: var(--lime-soft); color: var(--orange-dark); font-weight: 900; }
.request-empty h2 { margin-bottom: 7px; font-size: .95rem; }
.request-empty p { max-width: 260px; margin: 0; color: var(--ink-muted); font-size: .68rem; line-height: 1.55; }
.request-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 19px; border-bottom: 1px solid var(--line); }
.request-detail-heading h2 { margin-bottom: 4px; font-size: 1.05rem; }
.request-detail-heading > div > p:last-child { margin: 0; color: var(--ink-muted); font-size: .61rem; }
.request-detail-close { display: none; }
.request-detail-body { padding: 18px 19px; }
.detail-section { margin-bottom: 16px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section > span { display: block; margin-bottom: 7px; color: var(--ink-muted); font-size: .52rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.detail-section > p { margin: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .66rem; line-height: 1.55; }
.detail-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-value { padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.detail-value.proposed { border-color: transparent; background: var(--success-soft); }
.detail-value span, .detail-value strong, .detail-value small { display: block; }
.detail-value span { margin-bottom: 7px; color: var(--ink-muted); font-size: .5rem; text-transform: uppercase; }
.detail-value strong { font-size: .72rem; }
.detail-value small { margin-top: 4px; color: var(--ink-muted); font-size: .55rem; }
.approval-editor { display: grid; gap: 10px; }
.approval-editor-grid { grid-template-columns: minmax(0, 1fr); }
.approval-editor label { display: grid; min-width: 0; gap: 6px; color: var(--ink-muted); font-size: .55rem; font-weight: 750; }
.approval-editor input, .approval-editor select,
.approval-availability input[type="time"] { width: 100%; min-width: 0; max-width: 100%; min-height: 40px; box-sizing: border-box; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; font-size: .67rem; }
.approval-editor input:focus, .approval-editor select:focus,
.approval-availability input[type="time"]:focus { border-color: var(--orange); outline: 3px solid rgba(243, 117, 32, .14); }
.approval-help { margin-top: 9px !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--ink-muted); font-size: .55rem !important; line-height: 1.5 !important; }
.approval-availability { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.approval-availability-row { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(95px, 1fr) auto minmax(95px, 1fr); align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.approval-availability-row:last-child { border-bottom: 0; }
.approval-availability-row > label { display: flex; min-width: 0; align-items: center; gap: 7px; color: var(--ink); font-size: .61rem; font-weight: 750; }
.approval-availability-row input[type="checkbox"] { width: 17px; height: 17px; flex: none; accent-color: var(--orange); }
.approval-availability-row > span { color: var(--ink-muted); font-size: .55rem; text-align: center; }
.approval-availability-row input:disabled { background: var(--cream); color: var(--ink-muted); opacity: .7; }
.request-decision-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 19px; color: var(--ink-muted); }
.request-decision-note > span { color: var(--success); font-size: .56rem; }
.request-decision-note p { margin: 0; font-size: .55rem; line-height: 1.45; }
.request-detail .form-error { margin-right: 19px; margin-left: 19px; }
.request-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 9px; padding: 16px 19px 19px; }
.request-actions .button { font-size: .7rem; }

/* Availability */
.availability-panel { overflow: hidden; }
.availability-toolbar > p { display: flex; margin: 0; align-items: center; gap: 7px; color: var(--ink-muted); font-size: .65rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.availability-list { min-height: 260px; overflow-x: auto; }
.availability-card { min-width: 820px; border-bottom: 1px solid var(--line); background: #fff; }
.availability-card:last-child { border-bottom: 0; }
.availability-card > header { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; padding: 14px 17px 9px; }
.availability-card > header h3 { margin-bottom: 3px; font-size: .74rem; }
.availability-card > header p { margin: 0; color: var(--ink-muted); font-size: .57rem; }
.availability-week { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); margin: 0 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.availability-week .availability-day { min-height: 70px; }
.availability-week .availability-day strong { color: var(--ink-muted); font-size: .52rem; text-transform: uppercase; }
.availability-week .availability-day span { color: var(--ink); font-size: .6rem; text-transform: none; }
.availability-card > footer { padding: 9px 17px 13px; color: var(--ink-muted); font-size: .54rem; text-align: right; }
.availability-row { display: grid; grid-template-columns: minmax(170px, .9fr) minmax(650px, 3fr); align-items: stretch; border-bottom: 1px solid var(--line); }
.availability-row:last-child { border-bottom: 0; }
.availability-person { display: grid; grid-template-columns: auto minmax(0,1fr); align-content: center; align-items: center; gap: 10px; padding: 15px 17px; border-right: 1px solid var(--line); }
.availability-person strong, .availability-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.availability-person strong { margin-bottom: 4px; font-size: .73rem; }
.availability-person small { color: var(--ink-muted); font-size: .59rem; }
.availability-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.availability-day { display: flex; min-width: 90px; min-height: 76px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 10px 7px; border-right: 1px solid var(--line); text-align: center; }
.availability-day:last-child { border-right: 0; }
.availability-day span { color: var(--ink-muted); font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.availability-day strong { font-size: .61rem; font-weight: 650; }
.availability-day.is-unavailable { background: var(--cream); color: var(--ink-muted); }
.availability-day.is-pending { background: var(--lime-soft); color: var(--orange-dark); }
.privacy-panel { display: flex; margin-top: 14px; align-items: flex-start; gap: 11px; padding: 15px 17px; border: 1px solid #f4c49f; border-radius: var(--radius); background: var(--lime-soft); }
.privacy-panel > span { display: grid; width: 27px; height: 27px; flex: none; place-items: center; border-radius: 50%; background: var(--forest); color: var(--lime); font-size: .7rem; font-weight: 900; }
.privacy-panel strong { display: block; margin-bottom: 3px; font-size: .72rem; }
.privacy-panel p { margin: 0; color: var(--ink-muted); font-size: .63rem; line-height: 1.5; }

@media (min-width: 680px) {
  .clock-header { min-height: 84px; padding-right: 28px; padding-left: 28px; }
  .clock-main { padding-right: 28px; padding-left: 28px; }
  .identify-view { padding: 28px 18px; }
  .pin-card { padding: 25px; }
  .time-card { padding: 27px; }
  .clock-actions { grid-template-columns: 1fr 1fr; }
  .clock-actions > .button-danger-soft { grid-column: 1 / -1; }
  .clock-actions > .button-clock:only-child { grid-column: 1 / -1; }
  .clock-footer { padding-right: 28px; padding-left: 28px; }
}

@media (max-width: 1280px) {
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-conflicts { position: static; }
  .schedule-conflict-list { display: grid; min-height: 0; grid-template-columns: repeat(3, 1fr); }
  .schedule-conflict-item { border-right: 1px solid var(--line); border-bottom: 0; }
  .schedule-conflict-item:last-child { border-right: 0; }
}

@media (max-width: 1050px) {
  .admin-sidebar { width: 210px; }
  .admin-workspace { margin-left: 210px; }
  .admin-content { padding-right: 22px; padding-left: 22px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .filter-form { grid-template-columns: 1fr 1fr 1fr; }
  .filter-form .filter-apply { grid-column: 2; }
  .schedule-toolbar { grid-template-columns: minmax(250px, 1fr) auto auto; }
  .schedule-metric { display: none; }
  .requests-layout { grid-template-columns: 1fr; }
  .request-detail { position: static; }
  .request-empty { min-height: 220px; }
}

@media (max-width: 760px) {
  .admin-login { display: block; background: var(--paper); }
  .login-panel { min-height: auto; padding: 21px 20px 27px; }
  .login-panel::after, .login-copy, .login-security { display: none; }
  .login-form-wrap { min-height: calc(100svh - 95px); padding: 30px 22px; place-items: start center; }
  .back-link { margin-bottom: 44px; }
  .admin-sidebar { visibility: hidden; width: min(82vw, 280px); opacity: 0; box-shadow: var(--shadow-lg); transform: translateX(-102%); transition: transform .2s ease, opacity .2s ease, visibility .2s; }
  .admin-shell.menu-open .admin-sidebar { visibility: visible; opacity: 1; transform: none; }
  .admin-shell.menu-open::after { position: fixed; z-index: 90; inset: 0; background: rgba(26, 26, 26, .46); content: ""; }
  .admin-workspace { margin-left: 0; }
  .admin-topbar { height: 64px; justify-content: space-between; padding: 0 14px; }
  .mobile-menu { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; border-radius: 10px; background: var(--canvas); cursor: pointer; }
  .mobile-menu span { width: 17px; height: 2px; border-radius: 2px; background: var(--forest); }
  .mobile-brand { display: flex; min-width: 0; align-items: center; gap: 8px; }
  .mobile-brand img { border-radius: 9px; }
  .mobile-brand strong { max-width: 36vw; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-date { display: none; }
  .admin-account .avatar, .admin-account > span:not(.avatar) { display: none; }
  .admin-account .button { margin: 0; font-size: .7rem; }
  .admin-content { padding: 25px 15px 50px; }
  .page-heading { min-height: auto; align-items: flex-start; }
  .page-heading .button { flex: none; min-height: 40px; padding: 9px 11px; font-size: .69rem; }
  .page-heading div > p:last-child { max-width: 450px; }
  .page-heading-schedule { display: grid; }
  .heading-actions { justify-content: flex-start; flex-wrap: wrap; }
  .heading-actions .draft-badge, .heading-actions .schedule-state { order: -1; }
  .schedule-toolbar { grid-template-columns: 1fr 1fr; }
  .week-picker { grid-column: 1 / -1; }
  .schedule-toolbar > .button { min-height: 44px; }
  .schedule-conflict-list { display: block; }
  .schedule-conflict-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .data-boundary { grid-template-columns: auto minmax(0,1fr); }
  .data-boundary-label { grid-column: 2; justify-self: start; }
  .request-toolbar { align-items: stretch; flex-direction: column; }
  .request-filter-field { min-width: 0; }
  .request-toolbar .button { margin-left: 0; }
  .request-detail-close { display: grid; }
  .request-actions { grid-template-columns: 1fr 1fr; }
  .stat-grid { gap: 9px; }
  .stat-card { min-height: 132px; padding: 15px; }
  .stat-card p { margin-bottom: 21px; }
  .stat-card strong { font-size: 1.65rem; }
  .stat-card .stat-icon { right: 13px; top: 13px; }
  .panel-heading { padding-right: 15px; padding-left: 15px; }
  .table-toolbar { align-items: stretch; }
  .search-field { width: 100%; }
  .select-compact { flex: none; }
  th, td { padding-right: 13px; padding-left: 13px; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .filter-form .field:nth-child(3) { grid-column: 1 / -1; }
  .filter-form .filter-apply { grid-column: auto; }
  .timecard-summary { overflow-x: auto; }
  .timecard-summary p { min-width: 140px; }
  .settings-grid { grid-template-columns: 1fr; }
  .info-card { order: 2; }
  .form-dialog { width: 100%; max-height: calc(100svh - 8px); margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .form-dialog > form { padding: 21px 18px max(21px, env(safe-area-inset-bottom)); }
}

@media (max-width: 500px) {
  .clock-header .button-quiet { display: none; }
  .brand strong { max-width: 42vw; }
  .clock-main { align-items: start; padding-top: 34px; }
  .pin-row { grid-template-columns: 1fr; }
  .pin-row .button { width: 100%; min-height: 50px; }
  .welcome-copy h1 { font-size: 2.8rem; }
  .time-card { padding: 19px; }
  .current-time { font-size: 3.75rem; }
  .shift-metrics div { padding-right: 8px; padding-left: 8px; }
  .clock-footer { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .connection-badge { font-size: 0; }
  .connection-badge span { margin: 2px; }
  .page-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .page-heading h1 { font-size: 1.75rem; }
  .page-heading div > p:last-child { display: none; }
  .page-heading .heading-actions { grid-column: 1 / -1; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .draft-badge, .schedule-state { width: 100%; justify-content: center; }
  .autosave-note { width: 100%; text-align: center; }
  .schedule-toolbar { grid-template-columns: 1fr; }
  .week-picker, .schedule-toolbar > * { grid-column: 1; }
  .schedule-grid { min-width: 680px; }
  .data-boundary { grid-template-columns: auto minmax(0,1fr); padding: 14px; }
  .data-boundary-label { grid-column: 1 / -1; justify-self: stretch; }
  .request-comparison, .detail-comparison { grid-template-columns: 1fr; }
  .approval-editor-grid { grid-template-columns: 1fr; }
  .approval-availability-row { grid-template-columns: minmax(0,1fr) minmax(92px,1fr) auto minmax(92px,1fr); padding-right: 8px; padding-left: 8px; }
  .request-card { padding: 14px; }
  .request-card-head { grid-template-columns: auto minmax(0,1fr); }
  .request-pill { grid-column: 2; justify-self: start; }
  .request-actions { grid-template-columns: 1fr; }
  .request-detail-body, .request-detail-heading { padding-right: 15px; padding-left: 15px; }
  .request-decision-note, .request-detail .form-error { margin-right: 15px; margin-left: 15px; }
  .request-actions { padding-right: 15px; padding-left: 15px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 125px; }
  .stat-card .stat-icon { display: none; }
  .table-toolbar { flex-direction: column; }
  .select-compact select { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-actions-split { grid-template-columns: 1fr 1fr; }
  .dialog-actions-split > span { display: none; }
  .dialog-actions-split .button-danger-soft { grid-column: 1 / -1; }
  .filter-form { grid-template-columns: 1fr 1fr; }
  .filter-form .button { padding: 8px 10px; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-actions p { margin: 0; }
  .audit-entry { grid-template-columns: 12px minmax(0,1fr); }
  .audit-entry time { grid-column: 2; }
}

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

@media (prefers-contrast: more) {
  :root { --line: #b9aa9d; --line-strong: #8e7d6f; --ink-muted: #514a43; }
  .button-secondary, input, select { border-width: 2px; }
}
