:root{--bg:#0E0F13;--sf:#1A1C23;--bd:#2A2D37;--bd2:#3A3E4B;--tx:#ECECF1;--mu:#A3A6B3;--ac:#7DB7FF;--lk:#1F3350;--a:#F2B866;--b:#E58FB0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--tx);font:16px Inter,system-ui,sans-serif;-webkit-tap-highlight-color:transparent}#app{min-height:100dvh;display:flex;flex-direction:column;gap:16px;padding:calc(env(safe-area-inset-top) + 24px) 20px calc(env(safe-area-inset-bottom) + 12px);max-width:520px;margin:0 auto}h1{margin:0;font-size:28px}.mu{color:var(--mu);font-size:13px}.card{background:var(--sf);border:1px solid var(--bd);border-radius:16px;padding:16px}button{font:inherit;color:var(--tx);cursor:pointer}.btn{height:52px;border-radius:14px;border:0;background:var(--ac);color:var(--bg);font-weight:600;width:100%}.btn2{height:52px;border-radius:14px;background:var(--sf);border:1px solid var(--bd2);width:100%}.big{font-size:34px;font-weight:700}.row{display:flex;justify-content:space-between;align-items:center;min-height:44px;border-bottom:1px solid var(--bd);font-size:15px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat b{display:block;font-size:24px}.bar{height:8px;border-radius:4px;background:var(--bd)}.bar i{display:block;height:8px;border-radius:4px;background:var(--ac)}nav{margin-top:auto;display:flex;border-top:1px solid var(--bd);padding-top:8px}nav a{flex:1;text-align:center;line-height:48px;font-size:14px;color:var(--mu);text-decoration:none}nav a.on{color:var(--ac)}.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:0 12px}.k{height:64px;border-radius:32px;border:1px solid var(--bd);background:var(--sf);font-size:24px}.dots{display:flex;gap:12px;justify-content:center;min-height:16px}.dots i{width:16px;height:16px;border-radius:8px;background:var(--ac)}.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.d{height:44px;border-radius:10px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;font-size:14px;color:var(--mu);border:0;background:none}.d.c{background:var(--lk);color:var(--tx)}.d.t{outline:2px solid var(--tx)}.d.s{outline:2px solid var(--ac)}.p{width:6px;height:6px;border-radius:3px;display:inline-block}.seg{display:flex;gap:4px;padding:4px}.seg button{flex:1;min-height:44px;border-radius:10px;border:0;background:none;color:var(--mu)}.seg .on{background:var(--ac);color:var(--bg);font-weight:600}.chart{display:flex;align-items:flex-end;gap:4px;height:100px}.chart div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;font-size:11px;color:var(--mu)}.err{color:#ff9b9b;text-align:center;min-height:20px;font-size:14px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:44px;padding:0 16px;border-radius:22px;background:var(--sf);border:1px solid var(--bd2);font-size:14px}.chip.on{background:var(--ac);color:var(--bg);border-color:var(--ac);font-weight:600}.g{display:flex;flex-direction:column;gap:8px}textarea,input[type=datetime-local]{background:var(--sf);color:var(--tx);border:1px solid var(--bd);border-radius:12px;padding:12px;font:inherit}textarea{width:100%}a.row{color:inherit;text-decoration:none}input[type=text]{background:var(--sf);color:var(--tx);border:1px solid var(--bd);border-radius:12px;padding:14px;font:inherit;width:100%}
