:root { --brand:#233A2A; --text:#1D1D1F; --muted:#8B8B8B; --line:#ECECEA; --bg:#FAFAF9; --blue:#2F5BD3; }
* { box-sizing: border-box; }
html, body { margin:0; background:var(--bg); color:var(--text); font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; -webkit-text-size-adjust:100%; }
.hidden { display:none !important; }
button { font:inherit; cursor:pointer; }
.brand { display:flex; align-items:center; gap:8px; color:var(--brand); font-weight:650; font-size:16px; }
.brand img { height:24px; }
.brand.big { font-size:22px; justify-content:center; } .brand.big img { height:40px; }
.top { position:sticky; top:0; z-index:5; display:flex; justify-content:space-between; align-items:center; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background:rgba(250,250,249,.92); backdrop-filter: blur(10px); border-bottom:1px solid var(--line); }
.icon { border:0; background:none; font-size:22px; color:var(--muted); }
main { padding: 12px 14px calc(env(safe-area-inset-bottom) + 100px); max-width: 760px; margin: 0 auto; }
.pagehead { display:flex; justify-content:space-between; align-items:flex-end; margin: 8px 2px 12px; gap:10px; }
h1 { margin:0; font-size:26px; } h2 { font-size:15px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; margin:22px 4px 8px; }
.muted { color:var(--muted); } .small { font-size:12.5px; } .green { color:#2B8A3E; }
.scores { display:flex; gap:8px; }
.score { background:#fff; border:1px solid var(--line); border-radius:12px; padding:6px 10px; text-align:right; font-size:11px; color:var(--muted); }
.score b { display:block; font-size:22px; } .score.green b { color:#2B8A3E; } .score.blue b { color:var(--blue); }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 12px 8px; margin-bottom:12px; }
.chead { display:flex; align-items:center; gap:8px; font-weight:700; margin-bottom:4px; }
.chead span:first-child { flex:1; cursor:pointer; }
.count { color:#B0B0B0; font-weight:400; font-size:12px; }
.link { border:0; background:none; color:var(--blue); padding:2px 4px; }
.back { padding:0; margin-bottom:2px; }
.hint, .empty { font-size:12.5px; color:var(--muted); padding:4px 2px; }
.topic { font-size:12.5px; font-weight:650; color:#666; margin:10px 0 2px; }
.task { display:flex; gap:10px; align-items:flex-start; padding:9px 2px; border-top:1px solid #F3F3F1; }
.task:first-of-type { border-top:0; }
.check { flex:none; width:22px; height:22px; border-radius:50%; border:1.6px solid #B9B9B6; background:#fff; color:#fff; font-size:13px; line-height:1; padding:0; margin-top:1px; }
.check.on { background:#2B8A3E; border-color:#2B8A3E; }
.tbody { flex:1; min-width:0; cursor:pointer; }
.ttitle { font-size:15px; }
.done .ttitle { color:var(--muted); text-decoration:line-through; }
.chip { font-size:11.5px; margin-left:6px; white-space:nowrap; }
.meta { font-size:12px; color:var(--muted); margin-top:1px; } .meta.urgent { color:#D9480F; font-weight:600; }
.notes { font-size:13px; color:#666; white-space:pre-wrap; margin-top:2px; }
.contact { font-size:12px; color:#555; margin-top:2px; } .contact a { color:#7048E8; text-decoration:none; }
.av { flex:none; width:22px; height:22px; border-radius:50%; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.person { padding:8px 0; border-top:1px solid #F3F3F1; } .person:first-of-type { border-top:0; }
.prow { display:flex; align-items:center; gap:8px; } .prow b { flex:1; }
.add { border:0; background:none; color:#AAA; padding:8px 2px; } .add.big { display:block; margin:6px auto 20px; color:var(--blue); }
.quote { font-size:12.5px; color:#666; border-left:2px solid #E3E0F5; padding-left:8px; margin:6px 0; }
.sugg .row { margin-top:8px; }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; } .row.end { justify-content:flex-end; margin-top:12px; }
.primary { background:var(--brand); color:#fff; border:0; border-radius:10px; padding:10px 16px; font-weight:600; }
.ghost { background:#F1F1EF; border:0; border-radius:10px; padding:10px 14px; color:var(--text); }
.danger { color:#C92A2A; }
.chipbtn { background:#F1F1EF; border:0; border-radius:20px; padding:6px 10px; font-size:13px; }
.tabs { position:fixed; bottom:0; left:0; right:0; display:flex; background:rgba(255,255,255,.95); backdrop-filter: blur(10px); border-top:1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index:5; }
.tabs button { flex:1; border:0; background:none; padding:8px 0 6px; font-size:11px; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:2px; }
.tabs button span { font-size:18px; } .tabs button.on { color:var(--brand); font-weight:650; }
.tabs b { background:#7048E8; color:#fff; border-radius:10px; padding:0 5px; font-size:10px; }
.fab { position:fixed; right:18px; bottom: calc(env(safe-area-inset-bottom) + 70px); width:54px; height:54px; border-radius:50%; border:0; background:var(--brand); color:#fff; font-size:28px; box-shadow:0 6px 18px rgba(0,0,0,.2); z-index:6; }
dialog { border:0; border-radius:18px 18px 0 0; padding:0; width:100%; max-width:640px; margin: auto auto 0; max-height: 92vh; }
dialog::backdrop { background:rgba(0,0,0,.3); }
.sheet { padding:16px 16px calc(env(safe-area-inset-bottom) + 16px); display:flex; flex-direction:column; gap:10px; }
.sheethead { display:flex; justify-content:space-between; align-items:center; }
.sheet input, .sheet textarea, .sheet select, .login input, .login select { width:100%; font:inherit; font-size:16px; padding:10px; border:1px solid #DDD; border-radius:10px; background:#fff; }
.sheet input.big { font-size:18px; font-weight:600; }
.sheet input[type=date] { width:auto; flex:1; }
.sheet label, .login label { display:flex; flex-direction:column; gap:4px; font-size:12.5px; color:var(--muted); }
.sheet label.inline { flex-direction:row; align-items:center; color:var(--text); font-size:14px; } .sheet label.inline input { width:auto; }
.login { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:26px; width:100%; max-width:360px; display:flex; flex-direction:column; gap:12px; text-align:center; }
.err { color:#C92A2A; font-size:13px; min-height:1em; margin:0; }
.toast { position:fixed; left:50%; bottom: calc(env(safe-area-inset-bottom) + 84px); transform:translateX(-50%); background:#1D1D1F; color:#fff; padding:8px 14px; border-radius:20px; font-size:13px; z-index:20; }
@media (min-width: 900px) { main { max-width: 1100px; } }
