@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f4f6f5; --surface: #fff; --ink: #202c29; --muted: #596761;
  --line: #dce4df; --brand: #17594c; --brand-hover: #0e453a; --brand-soft: #eaf4ee;
  --danger: #9a2927; --danger-soft: #fff0ed; --warning: #775019; --warning-soft: #fff7e4;
  --radius: 18px; --shadow: 0 1px 2px #152c1d06, 0 6px 24px #152c1d04;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid #338673; outline-offset: 3px; }
[hidden] { display: none !important; }
.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: 100; top: 8px; left: 12px; transform: translateY(-160%); padding: 12px; background: white; border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; margin: auto; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { color: var(--ink); font-size: 18px; font-weight: 750; letter-spacing: -.6px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand::before { content: '✓'; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: white; font-size: 21px; }
.nav-link { font-size: 13px; font-weight: 600; padding: 9px 2px; }
.banners { font-size: 12px; line-height: 1.6; }
.banner { margin: 0; padding: 9px 20px; text-align: center; }
.banner.demo { color: #6d461a; background: #fff1ce; border-bottom: 1px solid #e8d49f; font-weight: 650; }
.banner.language { color: var(--muted); background: #edf1ee; border-bottom: 1px solid var(--line); }
main { margin: auto; padding: 28px 16px 44px; min-height: 55vh; }
.employee-main { max-width: 720px; }
.admin-main { max-width: 1280px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 5.5vw, 40px); letter-spacing: -1.1px; font-weight: 700; }
h2 { font-size: 19px; letter-spacing: -.35px; font-weight: 650; }
h3 { font-size: 17px; }
p { margin: 0 0 16px; overflow-wrap: anywhere; }
.hero { padding: 12px 0 14px; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.intro { color: var(--muted); font-size: 16px; max-width: 660px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); min-width: 0; }
.card > :last-child { margin-bottom: 0; }
.card .card { box-shadow: none; }
.muted, .small { color: var(--muted); }
.small { font-size: 13px; line-height: 1.6; }
.row, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.between { justify-content: space-between; }
.actions { margin: 14px 0 4px; }
.header-inner .actions { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none; transition: background .15s ease; }
.button.primary { color: white; background: var(--brand); border-color: var(--brand); }
.button.primary:hover:not(:disabled) { background: var(--brand-hover); }
.button.secondary { color: var(--ink); border-color: #cbd6ce; background: white; }
.button.secondary:hover:not(:disabled) { background: #f1f5f2; }
.button.ghost { color: var(--brand); background: transparent; }
.button.ghost:hover { background: var(--brand-soft); }
.button.danger-outline { color: var(--danger); background: white; border-color: #e5c4bd; }
.button.danger-outline:hover { background: var(--danger-soft); }
.wide { width: 100%; }
.compact { gap: 8px; }
.compact .button { font-size: 12px; min-height: 44px; padding: 8px 12px; }
form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; margin-bottom: 16px; min-width: 0; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-height: 48px; padding: 10px 12px; background: white; color: var(--ink); border: 1px solid #b8c6bd; border-radius: 9px; font-size: 16px; font-weight: 400; }
input:disabled { background: #f1f4f2; }
input[type=checkbox] { accent-color: var(--brand); width: 22px; height: 22px; flex: 0 0 auto; margin: 3px 0; }
.check-field { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; margin-bottom: 6px; font-size: 15px; line-height: 1.5; cursor: pointer; min-height: 44px; }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { font-weight: 650; font-size: 19px; margin-bottom: 12px; }
.confirmation { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.confirmation legend { color: var(--muted); font-size: 13px; }
.notice-text { white-space: pre-wrap; font-size: 14px; }
.steps { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 24px; }
.steps li { font-size: 12px; color: var(--muted); background: #edf1ee; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 100px; border: 1px solid var(--line); padding: 4px 10px; font-size: 12px; line-height: 1.5; font-weight: 600; background: #f3f5f3; color: var(--muted); overflow-wrap: anywhere; max-width: 100%; }
.badge.good { color: var(--brand); background: #e9f4ec; border-color: #cae3d1; }
.badge.warning { color: var(--warning); background: var(--warning-soft); border-color: #e8d8b6; }
.badge.danger { color: var(--danger); background: var(--danger-soft); border-color: #e9cac4; }
.capture-status { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.selfie-preview { width: min(100%, 360px); aspect-ratio: 3 / 4; object-fit: cover; background: #e8eeea; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; }
video.selfie-preview { transform: scaleX(-1); }
.demo-fixtures { margin-top: 20px; border: 1px dashed #c5ac6a; border-radius: 12px; padding: 14px; background: #fffaee; display: flex; flex-wrap: wrap; gap: 8px; }
.demo-fixtures > p { flex-basis: 100%; margin: 0; color: var(--warning); }
.demo-fixtures .button { font-size: 12px; }
.operation-status { margin: 16px 0 0; font-size: 14px; }
.success { color: var(--brand); background: var(--brand-soft); border-color: #c8ddce; }
.warning { color: var(--warning); background: var(--warning-soft); border-color: #e4d1a8; }
.error { color: var(--danger); background: var(--danger-soft); border-color: #e7c4be; }
.operation-status:not(:empty) { padding: 14px; border-radius: 10px; border: 1px solid var(--line); }
.global-status { margin: 20px auto 0; width: calc(100% - 32px); max-width: 1248px; padding: 16px; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; }
.global-status.info { background: #edf3f0; }
.stat-number { font-size: clamp(20px, 4vw, 28px); letter-spacing: -.7px; line-height: 1.35; color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stats-grid .card { margin-bottom: 16px; }
.stats-grid h2 { font-size: 13px; color: var(--muted); line-height: 1.5; }
.shift-heading { margin-bottom: 10px; }
.event-list { margin: 0; padding: 0; list-style: none; }
.event-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.event-row:first-child { padding-top: 0; }
.event-row:last-child { border-bottom: 0; padding-bottom: 0; }
.event-row p { margin: 4px 0 0; }
.event-flags { text-align: right; }
.event-time { white-space: nowrap; margin: 0; }
.details { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr); gap: 8px 12px; font-size: 12px; margin: 16px 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 5px 0 15px; margin: 6px 0 16px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 10px 14px; min-height: 44px; border-radius: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.tab:hover { background: #e8efeb; }
.tab.selected { background: var(--brand); color: white; }
.filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filters .field { margin: 0; flex: 1 1 160px; }
.filters .button { min-height: 48px; }
.inline-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 200px; margin: 0; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cards-grid .card { margin: 0; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { background: #eff3f0; color: var(--muted); font-size: 12px; font-weight: 650; padding: 14px 16px; }
td { padding: 16px; vertical-align: top; border-top: 1px solid var(--line); min-width: 120px; }
td:last-child { min-width: 220px; }
td p { margin-bottom: 5px; }
.audit-details { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 ui-monospace, SFMono-Regular, monospace; }
.invitation-row { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.invitation-row p { margin-bottom: 8px; }
.invitation-code { display: block; overflow-wrap: anywhere; background: #f1f6f2; border: 1px solid var(--line); padding: 16px; border-radius: 12px; font-size: 15px; margin-bottom: 16px; user-select: all; }
.dialog { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: white; color: var(--ink); max-width: min(600px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 40px); box-shadow: 0 24px 100px #12231a33; }
.dialog::backdrop { background: #10271dc0; }
.dialog h2 { margin: 0; }
.dialog > .row { margin-bottom: 20px; }
.dialog .field { margin-top: 16px; }
.media-image { display: block; max-height: 65dvh; max-width: 100%; border-radius: 10px; margin: auto; }
.qr-image { display: block; width: min(100%, 360px); height: auto; margin: auto; }
.site-footer { max-width: 720px; border-top: 1px solid var(--line); padding: 24px 20px 36px; margin: auto; text-align: center; }
.site-footer p { font-size: 12px; margin-bottom: 8px; }
.loading { padding: 30px 0; color: var(--muted); }
@media (min-width: 560px) {
  main { padding: 40px 24px 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 26px; }
}
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1200px) { .cards-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 390px) {
  .header-inner { padding: 14px 12px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand::before { width: 24px; height: 24px; font-size: 17px; }
  .header-inner .actions { gap: 2px; }
  .nav-link { font-size: 11px; }
  .header-inner .button { font-size: 12px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  body:has(dialog[open]) > :not(dialog) { display: none !important; }
  .dialog[open] { position: static; max-height: none; max-width: none; width: 100%; border: 0; box-shadow: none; }
  .dialog .button, .dialog .row { display: none; }
  .qr-image { width: 90mm; }
}
