:root{--navy: #1f3a7e;--ink: #16181d;--muted: #6b7280;--line: #e5e7eb;--danger: #b42318;--danger-bg: #fef3f2;--warn: #b54708;--warn-bg: #fffaeb;--ok: #027a48;--ok-bg: #ecfdf3;color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#f7f8fa}.shell,.app{max-width:42rem;margin:0 auto;padding:1rem 1rem 3rem}.shell-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.shell-header h1,.app-header h1{margin:0;font-size:1.35rem;color:var(--navy)}.muted{color:var(--muted)}.small,.muted.small,p.muted{font-size:.875rem}.shell-nav{display:flex;gap:.5rem;margin-top:.75rem;overflow-x:auto;padding-bottom:.25rem}.nav-item{flex:0 0 auto;min-height:2.75rem;display:inline-flex;align-items:center;padding:0 .9rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);text-decoration:none;font-size:.9375rem}.nav-item.active{background:var(--navy);border-color:var(--navy);color:#fff}.nav-item:focus-visible{outline:3px solid #1c81d6;outline-offset:2px}.card{background:#fff;border:1px solid var(--line);border-radius:.75rem;padding:1rem;margin-block:.75rem}.card.error{border-color:var(--danger);background:var(--danger-bg)}.card.warn{border-color:var(--warn);background:var(--warn-bg)}.card.ok{border-color:var(--ok);background:var(--ok-bg)}.card h2{margin-top:0;font-size:1.05rem}.card h3{margin-top:0;font-size:.9375rem}.warn-text{color:var(--warn);font-weight:600}.geo-box{border:1px solid var(--ok);background:var(--ok-bg);border-radius:.5rem;padding:.75rem;margin-top:.5rem}.geo-box.warn{border-color:var(--warn);background:var(--warn-bg)}.geo-title{margin:0;font-weight:600}.geo-accuracy{margin:.25rem 0;font-size:1.25rem;font-variant-numeric:tabular-nums;font-weight:700}label{display:block;margin-top:.75rem;font-size:.875rem;font-weight:600}input,select,textarea{width:100%;padding:.75rem;margin-top:.25rem;border:1px solid var(--line);border-radius:.5rem;font-size:1rem;font-family:inherit;background:#fff}button,.button-primary{min-height:2.75rem;padding:.6rem 1.1rem;margin-top:.75rem;border:0;border-radius:.5rem;background:var(--navy);color:#fff;font-size:1rem;font-family:inherit;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button.link{background:none;color:var(--navy);min-height:2.75rem;padding:0 .5rem;text-decoration:underline}.button-primary.big{width:100%;min-height:3.5rem;font-size:1.125rem;font-weight:600}button:disabled{background:#9aa1ae;cursor:not-allowed}button:focus-visible,.button-primary:focus-visible{outline:3px solid #1c81d6;outline-offset:2px}.badge{display:inline-block;padding:.15rem .5rem;border-radius:999px;font-size:.8125rem;font-weight:600}.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--warn-bg);color:var(--warn)}.row{display:flex;gap:.5rem;flex-wrap:wrap}dl,.pairs{display:grid;grid-template-columns:auto 1fr;gap:.25rem 1rem;margin:0}dt{font-weight:600;color:var(--muted);font-size:.875rem}dd{margin:0;overflow-wrap:anywhere;font-size:.875rem}.shell-footer,footer{margin-top:1.5rem}.list{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}.list-item{display:grid;gap:.35rem}.row.space-between{justify-content:space-between;align-items:center}.warning{color:var(--warn);font-weight:600}.badge.status-PRESENT,.badge.status-APPROVED{background:var(--ok-bg);color:var(--ok)}.badge.status-LATE,.badge.status-INCOMPLETE,.badge.status-PENDING{background:var(--warn-bg);color:var(--warn)}.badge.status-REJECTED,.badge.status-CANCELLED,.badge.status-NONE,.badge.status-ON_LEAVE{background:#f3f4f6;color:var(--muted)}.chip{padding:.35rem .75rem;border-radius:999px;font-size:.875rem}.chip.active{background:#1c81d6;color:#fff}.compare{width:100%;border-collapse:collapse;font-size:.875rem;display:block;overflow-x:auto}.compare th,.compare td{text-align:left;padding:.35rem .5rem;border-bottom:1px solid #e5e7eb;white-space:nowrap}.compare thead th{color:var(--muted);font-size:.8125rem}select,textarea{width:100%;font:inherit;padding:.6rem;border:1px solid #d0d5dd;border-radius:8px;background:#fff}textarea{resize:vertical}select:focus-visible,textarea:focus-visible{outline:3px solid #1c81d6;outline-offset:2px}.button-link{display:inline-block;padding:.6rem 1rem;border-radius:8px;border:1px solid #d0d5dd;background:#fff;color:inherit;text-decoration:none;font-size:.9375rem}.button-link:focus-visible{outline:3px solid #1c81d6;outline-offset:2px}.badge.status-draft{background:#f3f4f6;color:var(--muted)}.badge.status-assigned,.badge.status-accepted{background:var(--warn-bg);color:var(--warn)}.badge.status-started,.badge.status-arrived{background:#eff6ff;color:#1c81d6}.badge.status-completed{background:var(--ok-bg);color:var(--ok)}.badge.status-failed{background:#fef3f2;color:#b42318}.badge.status-cancelled{background:#f3f4f6;color:var(--muted)}.board{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:.5rem}.board-cell{display:grid;gap:.125rem;padding:.6rem;border:1px solid #e5e7eb;border-radius:8px;text-align:center}.board-count{font-size:1.5rem;font-weight:700;line-height:1.1}.signature-pad{width:100%;height:auto;aspect-ratio:600 / 220;border:1px dashed #d0d5dd;border-radius:8px;background:#fff;touch-action:none;cursor:crosshair}progress{width:100%;height:.5rem}
