:root { --blue: #1d4ed8; --ink: #17202b; --muted: #6b7280; --bg: #f4f6fa; --card: #fff; --green: #16a34a; --amber: #d97706; --red: #dc2626; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 90px; }
.screen { display: none; } .screen.on { display: block; }
.topbar { position: sticky; top: 0; z-index: 5; background: var(--blue); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.topbar img { height: 34px; width: 34px; border-radius: 8px; background: #fff; }
.topbar .t { font-weight: 800; font-size: 15px; line-height: 1.15; }
.topbar .back { background: none; border: none; color: #fff; font-size: 22px; padding: 4px 8px 4px 0; }
.wrap { padding: 16px; }
.card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(16,24,40,.08); }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; }
.btn { display: block; width: 100%; border: none; border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 800; margin-top: 10px; cursor: pointer; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: #e8edf5; color: var(--ink); }
input, select, textarea { width: 100%; border: 1.5px solid #d7dde8; border-radius: 10px; padding: 13px; font-size: 16px; margin-top: 8px; font-family: inherit; }
textarea { min-height: 110px; resize: vertical; }
label { font-size: 13px; font-weight: 700; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.pill-green { background: #dcfce7; color: #15803d; } .pill-amber { background: #fef3c7; color: #b45309; } .pill-gray { background: #eef1f6; color: #6b7280; }
.list-item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(16,24,40,.08); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.note { background: var(--card); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(16,24,40,.07); }
.note .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tabs button { flex: 1; border: none; background: #e8edf5; border-radius: 10px; padding: 11px; font-weight: 700; font-size: 14px; }
.tabs button.on { background: var(--blue); color: #fff; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eef1f6; font-size: 14px; }
.kv:last-child { border-bottom: none; } .kv .k { color: var(--muted); }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; border-top: 1px solid #e5e9f0; display: flex; z-index: 5; }
.tabbar button { flex: 1; background: none; border: none; padding: 11px 4px 13px; font-size: 11px; font-weight: 700; color: var(--muted); }
.tabbar button .ic { font-size: 21px; display: block; margin-bottom: 2px; }
.tabbar button.on { color: var(--blue); }
#login-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; background: #fff; }
#login-screen img { width: 120px; height: 120px; border-radius: 26px; box-shadow: 0 4px 18px rgba(29,78,216,.25); }
#login-screen h1 { font-size: 22px; margin: 18px 0 2px; } #login-screen p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
#login-screen form { width: 100%; }
.err { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 20px; }
.clock-big { text-align: center; padding: 8px 0; }
.clock-big .time { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.toast { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(20px); background: #17202b; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 50; max-width: 90%; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
