* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f4f6fb; color: #12233f; -webkit-font-smoothing: antialiased; }
.top { background: #0a1f44; color: #fff; padding: 14px 16px 12px; }
.top h1 { margin: 0; font-size: 22px; }
.top h1 .gold { color: #c9a227; }
.benefit { margin: 4px 0 10px; font-size: 14px; color: #d7e0f2; line-height: 1.35; }
main { max-width: 860px; margin: 0 auto; padding: 12px 12px 32px; }
.mainnav { display: flex; gap: 6px; flex-wrap: wrap; }
.navbtn { flex: 1 1 22%; padding: 9px 4px; font-size: 13.5px; font-weight: 600; border: 2px solid #fff; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; min-height: 44px; }
.navbtn.active { background: #fff; color: #0a1f44; }
.view-title { margin: 6px 0 10px; font-size: 20px; }
.card { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(10,31,68,.06); }
.card h3 { margin: 2px 0 10px; font-size: 17px; }
.card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
input, select, textarea { width: 100%; font-size: 16px; padding: 9px 10px; border: 1.5px solid #b9c4da; border-radius: 9px; margin-top: 4px; background: #fff; color: #12233f; }
textarea { resize: vertical; line-height: 1.45; }
.btn { padding: 10px 14px; font-size: 15px; font-weight: 600; border: 2px solid #0a1f44; border-radius: 10px; background: #fff; color: #0a1f44; cursor: pointer; min-height: 44px; }
.btn.primary { background: #0a1f44; color: #fff; }
.btn.gold { background: #c9a227; border-color: #c9a227; color: #0a1f44; }
.btn.danger { border-color: #a33; color: #a33; }
.btn.small { padding: 6px 10px; font-size: 13px; min-height: 38px; }
.btn.big { width: 100%; font-size: 16px; margin-top: 6px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.fine { font-size: 13px; color: #68779a; line-height: 1.45; }
.honest { background: #fdf6e0; border: 1px solid #c9a227; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.version { font-size: 12px; color: #9aa7c2; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; padding: 12px 6px; text-align: center; }
.stat strong { display: block; font-size: 21px; color: #0a1f44; }
.stat span { font-size: 12px; color: #68779a; font-weight: 600; }
.stat.in strong { color: #1a7a37; }
.stat.out strong { color: #b3261e; }
.taxcard { background: #0a1f44; color: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.taxcard h3 { margin: 2px 0 6px; font-size: 17px; color: #ffd968; }
.taxcard strong.big { font-size: 28px; display: block; }
.taxcard .fine { color: #b9c6de; }
.chip { flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #e7ecf5; color: #33456b; white-space: nowrap; }
.chip.bad { background: #fbe9e7; color: #b3261e; }
.chip.warn { background: #fdf0d3; color: #8a5c00; }
.chip.ok { background: #e5f3e8; color: #1a7a37; }
.chip.sample { background: #0a1f44; color: #ffd968; }
.entry-row { display: flex; gap: 8px; align-items: center; padding: 10px 2px; border-bottom: 1px solid #eef1f7; flex-wrap: wrap; }
.entry-row:last-child { border-bottom: 0; }
.entry-main { flex: 1 1 180px; display: flex; flex-direction: column; gap: 1px; }
.amt { font-weight: 700; font-size: 16px; white-space: nowrap; }
.amt.in { color: #1a7a37; } .amt.out { color: #b3261e; }
table.sched { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.sched td, table.sched th { padding: 8px 6px; border-bottom: 1px solid #eef1f7; text-align: left; }
table.sched td.num, table.sched th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.sched tr.total td { font-weight: 700; border-top: 2px solid #0a1f44; }
.due-next { background: #fdf6e0; border: 1px solid #c9a227; border-radius: 10px; padding: 10px 12px; }
footer { margin-top: 18px; }
@media (max-width: 400px) { .stat-row { grid-template-columns: 1fr 1fr 1fr; } .stat strong { font-size: 17px; } }
@media print {
  .top, .mainnav, .osdesk-top, #mock-feedback-tool, .noprint { display: none !important; }
  body { background: #fff; }
  main { max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}
