* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, Segoe UI, Roboto, sans-serif; background: #f1efe8; color: #222; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 70px; }
.screen { padding: 16px; }
h1 { font-size: 20px; margin: 0 0 16px; }
.label { font-size: 13px; color: #666; margin: 0 0 8px; }
.card { background: #fff; border: 0.5px solid #ddd; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.tpl-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; border: 0.5px solid #ccc; border-radius: 8px; background: #fff; font-size: 15px; padding: 0 14px; margin-bottom: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; border-bottom: 0.5px solid #ddd; cursor: pointer; }
.muted { color: #888; font-size: 12px; }
input, select, button { font-size: 15px; height: 40px; border-radius: 8px; border: 1px solid #ccc; padding: 0 10px; }
button { cursor: pointer; background: #fff; }
button:disabled { opacity: 0.4; cursor: default; }
button.primary { background: #185fa5; color: #fff; border: none; font-weight: 600; width: 100%; height: 48px; }
button.danger { color: #c62828; }
.set-row { display: grid; grid-template-columns: 1fr 1fr 24px; gap: 8px; align-items: center; margin-bottom: 6px; }
.set-row input { min-width: 0; width: 100%; }
.set-row .del { cursor: pointer; text-align: center; color: #999; }
.nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #ddd; }
.nav button { height: 56px; border: none; border-radius: 0; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.nav button.active { color: #185fa5; font-weight: 600; }
.records-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric { background: #eaf3de; border-radius: 8px; padding: 10px 12px; }
.flex { display: flex; gap: 8px; align-items: center; }
.mb { margin-bottom: 8px; }
.full { width: 100%; }
.err { color: #c62828; font-size: 13px; min-height: 18px; margin: 6px 0 0; }
.ok { color: #2e7d32; font-size: 13px; min-height: 18px; margin: 6px 0 0; }
.banner { background: #fff4d6; border: 1px solid #f0d98a; border-radius: 12px; padding: 12px; margin-bottom: 12px; }
