:root {
  --ink: #14333c;
  --ink-2: #31545d;
  --muted: #6e858b;
  --paper: #f5f3ed;
  --surface: #fffdf8;
  --line: #dce4e2;
  --teal: #176b67;
  --teal-dark: #0d4f50;
  --mint: #d9eee6;
  --amber: #e3a63b;
  --coral: #d96d55;
  --shadow: 0 18px 50px rgba(22, 57, 64, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr); background: var(--surface); }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 8vw; color: #f8f5eb; background: radial-gradient(circle at 75% 22%, rgba(227,166,59,.26), transparent 26%), linear-gradient(145deg, #0d4f50, #123743 70%); }
.login-brand::after { content:""; position:absolute; width:420px; height:420px; right:-180px; bottom:-190px; border:1px solid rgba(255,255,255,.18); border-radius:50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.025); }
.login-brand .eyebrow { color: #a9d8c9; }
.login-brand h1 { max-width: 760px; margin: 8px 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5vw, 5.8rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.login-copy { max-width: 620px; color: #ccdedb; font-size: 1.05rem; line-height: 1.7; }
.brand-mark { position: absolute; top: 46px; left: 8vw; width: 42px; height: 42px; }
.brand-mark span { position:absolute; width:28px; height:28px; border:7px solid #f2bd58; border-radius: 50% 50% 8px 50%; transform: rotate(45deg); }
.brand-mark span:last-child { left:14px; top:14px; border-color:#6db5a3; transform:rotate(225deg); }
.brand-mark.small { position:relative; inset:auto; width:32px; height:32px; flex:0 0 32px; }
.brand-mark.small span { width:21px; height:21px; border-width:5px; }
.brand-mark.small span:last-child { left:10px; top:10px; }
.trust-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:42px; }
.trust-row span { padding:9px 13px; border:1px solid rgba(255,255,255,.18); border-radius:999px; color:#cbe0dc; font-size:.78rem; }
.login-card-wrap { display:grid; place-items:center; padding:48px; }
.login-card { width:min(440px, 100%); }
.mobile-brand { display:none; align-items:center; gap:10px; margin-bottom:40px; }
.login-card h2 { margin:0 0 6px; font-family:Georgia,serif; font-size:2.4rem; font-weight:500; }
label { display:grid; gap:7px; margin:17px 0; color:var(--ink-2); font-size:.82rem; font-weight:700; }
label small, .form-help { margin:0; color:var(--muted); font-size:.74rem; font-weight:500; line-height:1.45; }
input, select, textarea { width:100%; min-height:46px; padding:10px 13px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:#fff; outline:none; }
textarea { min-height:96px; resize:vertical; }
input:focus, select:focus, textarea:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(23,107,103,.12); }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:42px; padding:10px 17px; border:0; border-radius:9px; font-weight:800; font-size:.84rem; }
.button.primary { color:white; background:var(--teal); box-shadow:0 9px 20px rgba(23,107,103,.18); }
.button.primary:hover { background:var(--teal-dark); }
.button.secondary { color:var(--teal-dark); background:var(--mint); }
.button.ghost { color:var(--ink-2); background:transparent; border:1px solid var(--line); }
.button.danger { color:white; background:#a74538; }
.button.danger:hover { background:#873429; }
.button.full { width:100%; justify-content:space-between; margin-top:16px; padding-inline:18px; }
.form-error { min-height:22px; color:#b64232; font-size:.82rem; }
.legal-note { margin-top:24px; color:var(--muted); font-size:.75rem; line-height:1.5; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:230px 1fr; grid-template-rows:72px 1fr; }
.sidebar { grid-row:1/3; position:fixed; inset:0 auto 0 0; z-index:20; width:230px; display:flex; flex-direction:column; padding:24px 15px; color:#dce9e5; background:#123c46; }
.app-brand { display:flex; align-items:center; gap:12px; padding:0 10px 24px; color:white; }
.app-brand strong { display:block; font-family:Georgia,serif; font-size:1.25rem; }
.app-brand small { color:#91b6b0; }
.sidebar nav { display:grid; gap:5px; }
.nav-item { display:flex; align-items:center; gap:12px; width:100%; padding:12px 13px; border:0; border-radius:9px; color:#a9c3bf; background:transparent; text-align:left; font-weight:700; }
.nav-item span { width:22px; text-align:center; font-size:1.1rem; }
.nav-item:hover, .nav-item.active { color:white; background:rgba(255,255,255,.09); }
.nav-item.active { box-shadow:inset 3px 0 #f2bd58; }
.sidebar-foot { margin-top:auto; display:flex; align-items:center; gap:9px; padding:12px; color:#9fbcb7; font-size:.75rem; }
.status-dot { width:8px; height:8px; border-radius:50%; background:#65c58d; box-shadow:0 0 0 4px rgba(101,197,141,.12); }
.topbar { grid-column:2; position:sticky; top:0; z-index:10; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:12px 30px; border-bottom:1px solid var(--line); background:rgba(245,243,237,.94); backdrop-filter:blur(12px); }
.company-context { display:flex; align-items:center; gap:12px; }
.company-context span { color:var(--muted); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.company-context select { min-width:270px; min-height:42px; background:var(--surface); }
.top-actions { display:flex; align-items:center; gap:10px; }
.pilot-badge { padding:6px 10px; border-radius:999px; color:#7b5314; background:#f5dfb3; font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.menu-toggle { display:none; }
main { grid-column:2; padding:34px; min-width:0; }
.page { display:none; max-width:1440px; margin:auto; }
.page.active { display:block; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; margin-bottom:26px; }
.page-heading h1 { margin:0; font-family:Georgia,serif; font-size:2.45rem; font-weight:500; letter-spacing:-.03em; }
.page-heading p:last-child { margin-bottom:0; }
.metrics-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.metric-card { min-height:156px; display:flex; flex-direction:column; padding:20px; border:1px solid var(--line); border-radius:15px; background:var(--surface); box-shadow:0 8px 22px rgba(24,58,62,.04); }
.metric-card.accent { color:#effaf6; border-color:transparent; background:linear-gradient(145deg,#176b67,#0f4c51); }
.metric-label { font-size:.76rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; opacity:.76; }
.metric-card strong { margin-top:auto; font-family:Georgia,serif; font-size:2.8rem; font-weight:500; }
.metric-card small { opacity:.7; }
.content-grid { display:grid; grid-template-columns:2fr 1fr; gap:18px; margin-top:18px; }
.panel { padding:22px; border:1px solid var(--line); border-radius:15px; background:var(--surface); box-shadow:0 10px 30px rgba(24,58,62,.045); }
.panel h2 { margin:0; font-family:Georgia,serif; font-size:1.35rem; font-weight:500; }
.panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-bottom:18px; }
.panel-head p { margin:5px 0 0; color:var(--muted); font-size:.82rem; }
.text-button { border:0; color:var(--teal); background:none; font-weight:800; }
.evidence-card { color:#e5f0ed; background:#173f49; border:0; }
.evidence-card .eyebrow { color:#f2bd58; }
.evidence-card h2 { font-size:1.65rem; line-height:1.2; }
.evidence-card p:not(.eyebrow) { color:#acc6c2; line-height:1.6; }
.evidence-line { display:flex; gap:8px; margin-top:32px; }
.evidence-line span { height:4px; flex:1; border-radius:9px; background:#f2bd58; }
.evidence-line span:nth-child(2){ background:#6db5a3; }.evidence-line span:nth-child(3){ background:#d96d55; }
.empty-state { padding:32px 10px; color:var(--muted); text-align:center; }
.activity-list { display:grid; gap:2px; }
.activity-item { display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:center; padding:12px 4px; border-top:1px solid #edf0ed; }
.activity-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:var(--teal); background:var(--mint); font-weight:900; }
.activity-item strong { display:block; font-size:.88rem; }.activity-item small { color:var(--muted); }
.two-column { display:grid; grid-template-columns:minmax(300px,.85fr) minmax(420px,1.5fr); gap:18px; align-items:start; }
.form-panel h2 { margin-bottom:20px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.form-title { display:flex; justify-content:space-between; align-items:center; }
.form-title .form-help { margin:6px 0 0; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.collapsible { margin-bottom:18px; }
.icon-button { width:38px; height:38px; border:0; border-radius:8px; color:var(--ink-2); background:transparent; font-size:1.25rem; }
.card-list { display:grid; gap:10px; }
.company-card { padding:15px; border:1px solid var(--line); border-radius:11px; }
.company-card.active { border-color:var(--teal); background:#f0f8f4; }
.company-card strong { display:block; }.company-card span { color:var(--muted); font-size:.8rem; }
.toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.toolbar input { max-width:420px; }.toolbar span { color:var(--muted); font-size:.8rem; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:.82rem; }
th { padding:12px 10px; color:var(--muted); border-bottom:1px solid var(--line); text-align:left; font-size:.69rem; text-transform:uppercase; letter-spacing:.08em; }
td { padding:14px 10px; border-bottom:1px solid #e9eeeb; vertical-align:middle; }
.person-cell strong { display:block; }.person-cell small { color:var(--muted); }
.tag { display:inline-block; padding:5px 8px; border-radius:999px; background:#e7f0ed; color:var(--teal-dark); font-size:.68rem; font-weight:800; }
details { margin:18px 0; padding:12px 0; border-block:1px solid var(--line); }
summary { cursor:pointer; color:var(--teal); font-weight:800; font-size:.82rem; }.detail-grid { margin-top:8px; }
.schedule-layout { display:grid; grid-template-columns:minmax(520px,1.25fr) minmax(360px,.75fr); gap:18px; align-items:start; }
.schedule-builder { padding:26px; }
.builder-step { display:flex; align-items:flex-start; gap:12px; margin:26px 0 12px; }
.builder-step:first-child { margin-top:0; }
.builder-step > span { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; border-radius:50%; color:white; background:var(--teal); font-size:.75rem; font-weight:900; }
.builder-step h2 { margin:1px 0 3px; font-family:inherit; font-size:.94rem; font-weight:850; }
.builder-step p { margin:0; color:var(--muted); font-size:.77rem; }
.preset-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.preset-card { min-height:100px; padding:15px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#fff; text-align:left; transition:.18s ease; }
.preset-card:hover { border-color:#8ebdb4; transform:translateY(-1px); box-shadow:0 8px 18px rgba(22,57,64,.07); }
.preset-card.active { border-color:var(--teal); background:#edf7f3; box-shadow:inset 0 0 0 1px var(--teal); }
.preset-card strong { display:block; margin-bottom:7px; font-size:.82rem; }
.preset-card small { color:var(--muted); line-height:1.35; }
.weekday-picker { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; }
.weekday-picker label { display:block; margin:0; }
.weekday-picker input { position:absolute; opacity:0; pointer-events:none; }
.weekday-picker span { display:grid; place-items:center; min-height:44px; border:1px solid var(--line); border-radius:10px; color:var(--ink-2); background:white; font-size:.76rem; transition:.15s ease; }
.weekday-picker input:focus-visible + span { outline:3px solid rgba(23,107,103,.18); }
.weekday-picker input:checked + span { color:white; border-color:var(--teal); background:var(--teal); box-shadow:0 6px 14px rgba(23,107,103,.18); }
.builder-summary { margin:22px 0 12px; padding:13px 15px; border-radius:10px; color:var(--ink-2); background:#edf3f0; font-size:.8rem; line-height:1.5; }
.schedule-submit { width:100%; min-height:50px; }
.schedule-submit:disabled { cursor:not-allowed; opacity:.48; box-shadow:none; }
.schedule-existing { position:sticky; top:94px; }
.schedule-list { display:grid; gap:9px; }
.schedule-row { display:grid; grid-template-columns:90px 1fr auto; gap:12px; align-items:center; padding:13px; border:1px solid var(--line); border-radius:10px; text-align:left; }
.schedule-row strong { color:var(--teal); }.schedule-row small { color:var(--muted); }
.schedule-row-actions { display:grid; justify-items:end; gap:7px; }
.schedule-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.clone-button { padding:6px 10px; border:1px solid #b9d8d0; border-radius:7px; color:var(--teal); background:#eef7f4; font-size:.7rem; font-weight:850; }
.clone-button:hover { color:white; background:var(--teal); }
.edit-button, .deactivate-button { padding:6px 10px; border:1px solid var(--line); border-radius:7px; color:var(--ink-2); background:white; font-size:.7rem; font-weight:850; }
.edit-button:hover { border-color:var(--teal); color:var(--teal); }
.deactivate-button { color:#9a463a; border-color:#e5c2bc; background:#fff8f6; }
.deactivate-button:hover { color:white; border-color:#a74538; background:#a74538; }
.modal { width:min(640px,calc(100vw - 28px)); max-height:90vh; padding:0; border:0; border-radius:16px; color:var(--ink); background:var(--surface); box-shadow:0 28px 90px rgba(10,40,46,.3); }
.modal::backdrop { background:rgba(8,31,37,.64); backdrop-filter:blur(3px); }
.modal-card { padding:26px; }
.modal-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:20px; }
.modal-head h2 { margin:0; font-family:Georgia,serif; font-size:1.7rem; font-weight:500; }
.modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.modal-explainer { padding:13px 15px; border-left:3px solid var(--amber); color:var(--ink-2); background:#faf1df; font-size:.8rem; line-height:1.55; }
.attendance-layout { display:grid; grid-template-columns:minmax(340px,1.15fr) minmax(280px,.85fr); gap:18px; max-width:920px; }
.clock-card { padding:28px; }.live-time { padding-bottom:20px; border-bottom:1px solid var(--line); text-align:center; }
.live-time span { display:block; color:var(--muted); font-size:.82rem; text-transform:capitalize; }
.live-time strong { display:block; margin:4px 0; font-family:Georgia,serif; font-size:3.2rem; font-weight:500; font-variant-numeric:tabular-nums; }
.live-time small { color:var(--muted); }.clock-button { width:100%; min-height:54px; margin-top:12px; font-size:.95rem; }
.checkbox-row { grid-template-columns:auto 1fr; align-items:center; font-weight:600; }.checkbox-row input { width:18px; min-height:18px; }
.integrity-explainer { align-self:start; color:#e8f2ef; background:#173f49; border:0; }
.shield { display:grid; place-items:center; width:45px; height:45px; margin-bottom:18px; border-radius:14px; color:#173f49; background:#f2bd58; font-weight:900; }
.integrity-explainer ul { padding-left:20px; color:#b7ceca; line-height:2; }.sync-status { display:flex; align-items:center; gap:10px; margin-top:20px; padding-top:16px; border-top:1px solid rgba(255,255,255,.13); font-size:.8rem; }
.report-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin-bottom:18px; }.report-filters label { min-width:170px; margin:0; }
.hash { font-family:ui-monospace,monospace; color:var(--muted); font-size:.7rem; }.toast { position:fixed; right:24px; bottom:24px; z-index:100; max-width:380px; padding:14px 18px; border-radius:10px; color:white; background:#153f47; box-shadow:var(--shadow); transform:translateY(120px); opacity:0; transition:.25s ease; }.toast.show { transform:none; opacity:1; }.toast.error { background:#9c4034; }
@media (max-width:1100px){.metrics-grid{grid-template-columns:repeat(2,1fr)}.two-column,.schedule-layout{grid-template-columns:1fr}.schedule-existing{position:static}.content-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}
@media (max-width:760px){.login-shell{display:block}.login-brand{display:none}.login-card-wrap{min-height:100vh;padding:28px}.mobile-brand{display:flex}.app-shell{display:block}.sidebar{transform:translateX(-100%);transition:.22s ease}.sidebar.open{transform:none}.topbar{padding:10px 16px}.menu-toggle{display:block}.company-context span{display:none}.company-context select{min-width:0;max-width:45vw}.pilot-badge{display:none}main{padding:22px 15px}.page-heading{align-items:flex-start;flex-direction:column}.metrics-grid{grid-template-columns:1fr 1fr}.metric-card{min-height:135px}.form-grid{grid-template-columns:1fr}.preset-grid{grid-template-columns:1fr}.preset-card{min-height:74px}.weekday-picker{grid-template-columns:repeat(4,1fr)}.schedule-row{grid-template-columns:75px 1fr}.schedule-row-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}.attendance-layout{grid-template-columns:1fr}.report-filters{align-items:stretch}.report-filters>*{width:100%}.top-actions .button{padding:8px}.login-card h2{font-size:2rem}}
@media (max-width:430px){.metrics-grid{grid-template-columns:1fr}.company-context select{max-width:48vw}.live-time strong{font-size:2.5rem}}
