* { 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; }
.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: 8px; }
.navbtn { flex: 1; padding: 10px 6px; font-size: 14px; 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.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; }
.row input { flex: 1; }
.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; }
.copied { color: #1a7a37; font-weight: 600; font-size: 14px; }
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab { flex: 1; padding: 10px 8px; font-size: 15px; font-weight: 600; border: 2px solid #0a1f44; border-radius: 10px; background: #fff; color: #0a1f44; cursor: pointer; min-height: 44px; }
.tab.active { background: #0a1f44; color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* radar stats */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; padding: 10px 6px; text-align: center; }
.stat strong { display: block; font-size: 24px; color: #0a1f44; }
.stat span { font-size: 12px; color: #68779a; font-weight: 600; }
.stat.bad strong { color: #b3261e; }
.stat.warn strong { color: #a86e00; }
.radar-row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-bottom: 1px solid #eef1f7; padding: 11px 2px; cursor: pointer; font: inherit; color: inherit; min-height: 48px; }
.radar-row:last-child { border-bottom: 0; }
.radar-main { flex: 1; display: flex; flex-direction: column; gap: 1px; }

/* chips + meters + deal cards */
.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; }
.meter { display: block; height: 10px; background: #e7ecf5; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.meter span { display: block; height: 100%; background: #c9a227; border-radius: 999px; transition: width .2s ease; }
.deal-card { width: 100%; text-align: left; background: #fff; border: 1px solid #dde3ef; border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; cursor: pointer; font: inherit; color: inherit; box-shadow: 0 1px 3px rgba(10,31,68,.06); display: flex; flex-direction: column; gap: 2px; }
.deal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 16px; }
.deal-title { font-size: 18px; }

/* checklist */
.group-head { margin: 14px 0 6px; font-size: 14px; color: #0a1f44; text-transform: uppercase; letter-spacing: .04em; }
.check-row2 { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eef1f7; flex-wrap: wrap; }
.check-label { flex: 1 1 180px; font-size: 15px; line-height: 1.35; }
.check-label.done { color: #68779a; text-decoration: line-through; }
.status-btn { flex: 0 0 auto; min-width: 76px; min-height: 40px; padding: 7px 8px; font-size: 13px; font-weight: 700; border-radius: 999px; border: 1.5px solid #b9c4da; background: #fff; color: #33456b; cursor: pointer; }
.status-btn.st-done { background: #1a7a37; border-color: #1a7a37; color: #fff; }
.status-btn.st-na { background: #e7ecf5; color: #68779a; }
.due-input { flex: 0 0 148px; width: 148px; font-size: 14px; padding: 7px 8px; margin-top: 0; }
#customForm { margin-top: 12px; }
#customForm input[type="text"] { flex: 1 1 160px; }
#customForm input[type="date"] { flex: 0 0 148px; width: 148px; }

/* drafts */
.draft-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
#draftOut { margin-top: 10px; }
footer { margin-top: 18px; }
@media (max-width: 400px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .due-input, #customForm input[type="date"] { flex-basis: 132px; width: 132px; }
}
