* { 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 2px; font-size: 14px; color: #d7e0f2; line-height: 1.35; }
main { max-width: 960px; margin: 0 auto; padding: 12px 12px 32px; }
.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; }
.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.small { padding: 6px 10px; font-size: 13px; min-height: 38px; }
.btn.gold { background: #c9a227; border-color: #c9a227; color: #0a1f44; }
.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; }
.win { background: #e5f3e8; border: 1px solid #1a7a37; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.version { font-size: 12px; color: #9aa7c2; }
footer { margin-top: 18px; }

/* pipeline tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { flex: 1 1 30%; 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; }
.badge { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 6px; border-radius: 999px; background: #c9a227; color: #0a1f44; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.tab.active .badge { background: #ffd968; }

/* 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.hero { background: #0a1f44; border-color: #c9a227; }
.stat.hero strong { color: #ffd968; font-size: 30px; }
.stat.hero span { color: #d7e0f2; }
@media (max-width: 480px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* chips */
.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.gold { background: #fdf0d3; color: #8a5c00; }
.chip.ok { background: #e5f3e8; color: #1a7a37; }
.chip.navy { background: #0a1f44; color: #ffd968; }
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.status-chip { font-size: 12.5px; font-weight: 700; padding: 7px 10px; border-radius: 999px; border: 1.5px solid #b9c4da; background: #fff; color: #68779a; cursor: pointer; min-height: 36px; }
.status-chip.on { background: #0a1f44; border-color: #0a1f44; color: #fff; }
.status-chip.on.win-chip { background: #1a7a37; border-color: #1a7a37; color: #fff; }

/* assignment cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.assign-card { background: #fff; border: 1px solid #dde3ef; border-radius: 12px; padding: 13px 14px; box-shadow: 0 1px 3px rgba(10,31,68,.06); }
.assign-card h3 { margin: 0 0 4px; font-size: 16px; }
.assign-card .meta { font-size: 13px; color: #68779a; line-height: 1.45; margin: 2px 0; }
.assign-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

/* governor */
.gov-seats { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.gov-seat { flex: 1 1 17%; text-align: center; border: 1.5px solid #b9c4da; border-radius: 10px; padding: 8px 4px; font-weight: 700; color: #68779a; background: #fff; }
.gov-seat.filled { background: #0a1f44; color: #ffd968; border-color: #0a1f44; }
.gov-seat small { display: block; font-weight: 600; font-size: 11px; }

/* tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef1f7; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #68779a; }
.search { width: 100%; font-size: 16px; padding: 9px 10px; border: 1.5px solid #b9c4da; border-radius: 9px; margin: 4px 0 10px; background: #fff; color: #12233f; }

/* board */
.board-group h3 { margin: 14px 0 8px; }
.board-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #eef1f7; }
.board-item:last-child { border-bottom: 0; }
