:root {
  color-scheme: light; --ink: #17243b; --muted: #54627a; --border: #dce5ed;
  --paper: #fff; --canvas: #f3f6f9; --navy: #111d31; --green: #186c58; --soft-green: #e4f4ed;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #337c97; outline-offset: 3px;
}
a { color: var(--green); }
[hidden] { display: none !important; }
.topbar { background: var(--navy); color: #fff; }
.top-shell { min-height: 76px; max-width: 1010px; margin: auto; padding: 12px 24px; display:flex; align-items:center; justify-content:space-between; gap: 14px; }
.brand { display:flex; gap: 12px; align-items:center; }
.brand img { border-radius: 10px; }
.brand strong { display:block; font-size: 15px; }
.brand small { color:#b6c4d6; font-size: 12px; }
.account { display:flex; gap: 7px; }
.ghost { border:1px solid #42546c; background:transparent; color:#edf5ff; padding:9px 10px; border-radius:8px; font-size:13px; }
main { margin:auto; max-width:1010px; padding:34px 24px 60px; }
.heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:18px; margin-bottom:22px; }
.customer { color:var(--green); margin:0 0 7px; font-size:13px; font-weight:700; }
h1 { margin:0; font-size:clamp(28px,5vw,42px); letter-spacing:-.043em; line-height:1.04; font-weight:740; }
h2 { font-size:19px; margin:0; letter-spacing:-.026em; }
.tabs { display:flex; gap:1px; border: 1px solid var(--border); background:#e9eef4; border-radius:10px; padding:3px; }
.tabs button { border:0; background:none; padding:9px 15px; border-radius:7px; color:var(--muted); font-weight:650; }
.tabs button[aria-pressed="true"] { background:white; color:var(--ink); box-shadow:0 1px 3px #16213721; }
.period { display:flex; align-items:center; gap:8px; margin-bottom:16px; }
.picker input { width:100%; min-width:143px; border:1px solid var(--border); background:white; border-radius:8px; padding:8px 11px; color:var(--ink); }
.icon { border:1px solid var(--border); border-radius:8px; background:white; color:var(--ink); width:43px; height:42px; font-size:25px; padding:0 0 3px; }
.card { background:var(--paper); border:1px solid var(--border); border-radius:15px; padding:20px; margin-bottom:14px; box-shadow:0 1px 1px #17243b08; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.metric { border:1px solid var(--border); background:#fff; border-radius:12px; padding:13px 15px; min-height:78px; }
.metric strong, .metric small { display:block; }
.metric strong { font-size:clamp(20px,4vw,27px); letter-spacing:-.045em; }
.metric small { color:var(--muted); font-size:11px; line-height:1.15; margin-top:5px; }
.metric:first-child { border-color:#c1dfd4; background:#edf8f3; }
.section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:11px; }
.section-title > span { color:var(--muted); font-size:12px; }
.status { background:#eaf1f7; border-radius:20px; font-weight:650; padding:5px 9px; white-space:nowrap; }
.status.done { background:var(--soft-green); color:var(--green); }
.entry { display:grid; grid-template-columns:1fr max-content; column-gap:16px; padding:13px 0; border-top:1px solid #e8eef2; }
.entry strong { font-size:15px; }
.entry p { color:var(--muted); margin:3px 0 0; font-size:13px; overflow-wrap:anywhere; }
.entry time { font-size:15px; font-weight:700; white-space:nowrap; }
.edit-row { display:grid; gap:6px; grid-template-columns: 1fr 83px 33px; border-top:1px solid #e8eef2; padding:12px 0; }
.edit-row .description { grid-column:1/-1; }
input, textarea { min-width:0; border:1px solid #ccd8e2; border-radius:8px; padding:9px 10px; width:100%; background:#fff; color:var(--ink); }
textarea { resize:vertical; }
.actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.primary,.quiet { border:1px solid transparent; padding:10px 13px; border-radius:8px; font-weight:690; font-size:14px; min-height:40px; }
.primary { background:#176a56; color:white; }
.quiet { color:var(--ink); background:#edf3f7; border-color:#e1e9ef; }
.note,.empty, .auth p { color:var(--muted); font-size:14px; line-height:1.5; }
.auth { max-width:480px; margin:30px auto; }
.auth h1 { font-size:30px; }
.auth label { display:grid; gap:6px; margin-bottom:12px; }
.evidence summary { cursor:pointer; font-weight:670; font-size:15px; }
.evidence-list { margin-top:10px; }
.evidence-line { font-size:13px; color:var(--muted); padding:7px 0; border-bottom:1px solid #eef2f6; }
.consent { display:flex; gap:8px; align-items:start; color:var(--muted); font-size:14px; }
.consent input { width:auto; margin:3px 0; }
#message { position:sticky; bottom:10px; padding:10px 13px; color:white; background:#20344a; border-radius:8px; font-size:14px; max-width:600px; margin:10px 0 0; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
@media (max-width:560px) {
  .top-shell { min-height:63px; padding:9px 14px; }
  .brand { gap:8px; } .ghost { padding:7px 8px; font-size:11px; }
  main { padding:24px 12px 44px; } .heading { margin-bottom:14px; }
  .heading .tabs { width:100%; } .tabs button { flex:1; }
  .card { padding:14px; } .metrics { gap:6px; } .metric { padding:10px 8px; min-height:71px; }
  .edit-row { grid-template-columns:1fr 64px 32px; } .edit-row input { padding:8px 6px; }
}

.kit { text-decoration:none; align-self:center; }
