* { box-sizing: border-box; margin: 0; font-family: -apple-system, "Segoe UI", Arial, sans-serif; }
body { background: #f2f4f7; color: #17202a; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
header { background: #12324f; color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
header h1 { font-size: 18px; }
header select, header button { background: #1d4a73; color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 14px; }
main { flex: 1; padding: 16px; padding-bottom: 90px; }
nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #d5dbe2;
      display: flex; max-width: 640px; margin: 0 auto; }
nav button { flex: 1; padding: 12px 4px 16px; border: 0; background: none; font-size: 13px; color: #5d6d7e; }
nav button.active { color: #12324f; font-weight: 700; }
nav button .ico { display: block; font-size: 22px; }
.card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
h2 { font-size: 17px; margin-bottom: 12px; }
label { display: block; font-size: 13px; color: #5d6d7e; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #cbd4dd; border-radius: 10px; font-size: 16px; background: #fff; }
textarea { min-height: 90px; }
.btn { display: block; width: 100%; padding: 16px; border: 0; border-radius: 12px; font-size: 17px;
       font-weight: 700; margin-top: 12px; cursor: pointer; }
.btn-primary { background: #12324f; color: #fff; }
.btn-green { background: #1e8449; color: #fff; }
.btn-red { background: #b03a2e; color: #fff; }
.btn-light { background: #e7ecf1; color: #17202a; }
.big-time { font-size: 42px; text-align: center; font-variant-numeric: tabular-nums; margin: 8px 0; }
.muted { color: #5d6d7e; font-size: 13px; }
.entry { border-bottom: 1px solid #edf0f3; padding: 8px 0; font-size: 14px; }
.pill { display: inline-block; background: #e8f6ee; color: #1e8449; border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.error { color: #b03a2e; margin-top: 8px; font-size: 14px; }
.markdown { white-space: pre-wrap; font-size: 14px; }
.login-wrap { display: flex; flex-direction: column; justify-content: center; min-height: 80vh; padding: 24px; }
.rec { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .4; } }
