@font-face { font-family: Manrope; src: url("fonts/manrope.ttf") format("truetype"); font-style: normal; font-weight: 200 800; font-display: swap; }
:root { color-scheme: light; font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #152751; background: #f3f6fc; font-synthesis: none; --ink: #152751; --muted: #576782; --cobalt: #315bff; --line: #dce3f0; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 15px; line-height: 1.6; }
a { color: #244bdb; text-underline-offset: .22em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
::selection { color: var(--ink); background: #dfe3ff; }
body > header, .site-header { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; min-height: 88px; padding: 18px max(28px, calc((100vw - 1200px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: .09em; text-decoration: none; }
.brand-mark { position: relative; display: inline-block; flex: 0 0 32px; width: 32px; height: 32px; border: 6px solid var(--cobalt); border-right-color: transparent; border-radius: 50%; transform: rotate(-35deg); }
.brand-mark::after { content: ""; position: absolute; width: 9px; height: 9px; top: 6px; left: 6px; border-radius: 50%; background: #a5adf8; }
nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
nav a, .nav-link { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 16px; border-radius: 12px; color: var(--muted); font-weight: 650; text-decoration: none; }
nav a:hover, .nav-link:hover { background: #f3f6fc; }
nav a[aria-current="page"], .nav-link.active { color: #244bdb; background: #edf0ff; }
body > header > form, .site-header > form { margin-left: auto; }
body > header button, .site-header button { background: #f3f6fc; color: var(--ink); border: 1px solid var(--line); }
main { width: min(1200px, calc(100% - 56px)); margin: 44px auto 72px; }
.narrow { width: min(460px, calc(100% - 40px)); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -.035em; font-weight: 800; overflow-wrap: anywhere; }
h2 { margin-bottom: 20px; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
h3 { margin-bottom: 12px; font-size: 17px; }
.page-intro { margin-bottom: 30px; }
.eyebrow { display: block; margin-bottom: 12px; color: #5265a5; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lede { max-width: 70ch; color: var(--muted); font-size: 16px; }
small, .interval-meta { color: var(--muted); }
.surface, .login-card { padding: 28px; margin-bottom: 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.surface > :last-child, .login-card > :last-child { margin-bottom: 0; }
.surface + h2, .timeline + h2 { margin-top: 40px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.stat { padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.stat strong { display: block; margin: 4px 0; font-size: 28px; font-weight: 800; line-height: 1.25; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.stat small { display: block; }
.notice { padding: 18px 22px; margin: 20px 0; background: #edf0ff; border-left: 4px solid var(--cobalt); border-radius: 0 12px 12px 0; }
.status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 800; color: #374b71; background: #edf1f8; }
.status::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.status--inside { color: #17694f; background: #e5f5ed; }
.status--outside { color: #485975; background: #edf1f8; }
.status--unknown { color: #885013; background: #fff2dc; }
.status--break { color: #5d469b; background: #f0ebfc; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 26px; margin: 24px 0 36px; }
.timeline::before { content: ""; position: absolute; top: 32px; bottom: 32px; left: 5px; border-left: 2px solid #d7def2; }
.interval-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); align-items: start; gap: 16px 32px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.interval-card::before { content: ""; position: absolute; left: -27px; top: 29px; width: 12px; height: 12px; border: 3px solid var(--cobalt); border-radius: 50%; background: #f3f6fc; }
.interval-head { grid-column: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-weight: 750; }
.interval-meta { grid-column: 1; font-size: 13px; }
.interval-card > details { grid-column: 1; }
.interval-card > .decision-form { grid-column: 2; grid-row: 1 / span 3; padding-left: 26px; border-left: 1px solid var(--line); }
details { min-width: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
summary { width: fit-content; padding: 8px 0; color: #244bdb; cursor: pointer; font-weight: 650; }
details[open] > summary { margin-bottom: 8px; }
form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
label, .field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #344565; font-size: 13px; font-weight: 700; }
input, select, textarea, button { font: inherit; }
input, select, textarea { min-width: 0; width: 100%; min-height: 48px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #bdc9de; border-radius: 10px; font-weight: 500; }
input:hover, select:hover, textarea:hover { border-color: #8499c1; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); }
input[type="checkbox"], input[type="radio"] { width: 22px; min-height: 22px; margin: 0; accent-color: var(--cobalt); }
label:has(input[type="checkbox"]), label:has(input[type="radio"]) { flex-direction: row; align-items: center; min-height: 48px; gap: 10px; }
select[multiple] { min-height: 130px; }
textarea { min-height: 96px; resize: vertical; }
button { min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 11px; background: var(--cobalt); color: #fff; font-size: 13px; font-weight: 750; cursor: pointer; transition: background-color .15s ease; }
button:hover { background: #2348d9; color: #fff; }
button:disabled { cursor: not-allowed; opacity: .55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid > .actions, .form-grid > button, .form-grid > .wide { grid-column: 1 / -1; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.actions button { width: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: 14px; }
th, td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { color: #5b6d8b; background: #f7f9fd; font-size: 11px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td a { display: inline-block; padding: 7px 0; font-weight: 700; }
td form { min-width: 220px; }
.audit-table { font-size: 13px; }
.audit-table td { line-height: 1.65; }
.empty-state { padding: 40px 24px; color: var(--muted); text-align: center; }
.account-list { display: grid; gap: 16px; }
.account-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.account-head, .device-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.account-head { justify-content: space-between; }
.account-head h3 { margin: 0; }
.account-actions { margin: 12px 0; }
.device-list { padding-top: 14px; border-top: 1px solid var(--line); }
.device-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.device-diagnostic { flex: 1 0 100%; padding: 10px 14px; background: #f7f9fd; border-radius: 10px; }
.device-diagnostic p { margin: 0 0 8px; }
.device-diagnostic p:last-child { margin-bottom: 0; }
.device-row > details { margin-left: auto; }
.invitation-token { display: block; width: fit-content; max-width: 100%; padding: 16px; margin: 16px 0; background: #edf0ff; border-radius: 10px; overflow-wrap: anywhere; font-size: 18px; }
.payroll-versions { display: grid; gap: 12px; }
.payroll-version { display: grid; grid-template-columns: minmax(170px, 1.5fr) 70px minmax(160px, 1fr) auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.payroll-version small, .payroll-version strong, .payroll-version time { display: block; }
.payroll-version strong { font-variant-numeric: tabular-nums; }
.download-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border-radius: 10px; color: #244bdb; background: #edf0ff; font-weight: 750; text-decoration: none; }
.download-link:hover { background: #dfe5ff; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); align-items: center; gap: 80px; min-height: calc(100vh - 180px); max-width: 1050px; }
.login-hero { position: relative; padding: 28px 0; }
.login-hero h1 { max-width: 10ch; font-size: clamp(40px, 5vw, 62px); }
.login-hero .lede { max-width: 35ch; }
.login-card { position: relative; margin: 0; padding: 36px; box-shadow: 0 20px 70px #15275109; }
.login-card h1, .login-card h2 { font-size: 26px; }
.zone-art { position: relative; width: 180px; height: 120px; margin: 28px 0; }
.zone-art::before, .zone-art::after { content: ""; position: absolute; width: 118px; height: 118px; border: 17px solid #315bff; border-radius: 50%; }
.zone-art::after { left: 62px; border-color: #c7cbff; mix-blend-mode: multiply; }
.error-page { max-width: 600px; padding-top: 40px; }
@media (max-width: 900px) {
  body > header, .site-header { gap: 12px 20px; padding: 16px 24px; }
  nav { gap: 2px; }
  nav a, .nav-link { padding: 10px 12px; }
  .login-layout { gap: 32px; }
  .interval-card { gap: 16px 20px; padding: 22px; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  body > header, .site-header { padding: 16px 20px; }
  body > header nav, .site-header nav { order: 3; width: 100%; }
  body > header > form, .site-header > form { margin-left: auto; }
  nav a, .nav-link { font-size: 12px; padding: 10px; }
  main { width: calc(100% - 32px); margin: 28px auto 44px; }
  .surface, .login-card { padding: 20px; border-radius: 16px; }
  .summary-grid { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-grid > .stat:first-child { grid-column: 1 / -1; }
  .summary-grid > .stat:first-child strong { font-size: 20px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 23px; }
  .timeline { padding-left: 18px; }
  .timeline::before { left: 2px; }
  .interval-card { display: flex; flex-direction: column; padding: 18px; gap: 14px; }
  .interval-card::before { left: -22px; }
  .interval-head, .interval-meta { width: 100%; }
  .interval-card > .decision-form { width: 100%; margin-top: 6px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  th, td { padding: 13px 12px; min-width: 100px; }
  .login-layout { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: auto; max-width: 480px; }
  .login-hero { padding: 0; }
  .login-hero h1 { max-width: none; font-size: 34px; }
  .zone-art { display: none; }
  .error-page { padding-top: 12px; }
  .payroll-version { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .payroll-version > div:nth-child(3), .payroll-version > .download-link { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
