:root { font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: #202329; background: #f7f5f3; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
.hero { background: radial-gradient(circle at 90% 10%, #57272b, transparent 36%), linear-gradient(125deg, #23262c, #111318); color: white; padding: 34px 20px 44px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: '✦  ✧  ✦  ✧  ✦'; position: absolute; top: 17px; left: 8%; letter-spacing: 40px; color: #efb76a; opacity: .42; }
.brand { font-size: 13px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { color: #ffb9bc; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin-top: 27px; }
h1 { font-size: clamp(35px, 6vw, 64px); line-height: 1.05; letter-spacing: -.04em; margin: 14px 0; }
.hero p { max-width: 690px; margin: 12px auto; line-height: 1.65; color: #e7e7ea; }
.deadline { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; margin-top: 20px; padding: 15px 22px; background: #c82936; border: 1px solid #f17e84; border-radius: 14px; box-shadow: 0 9px 30px #0003; font-weight: 900; }
.deadline strong { font-size: 23px; }
main { max-width: 970px; margin: -19px auto 50px; padding: 0 16px; position: relative; }
.panel { background: white; border-radius: 20px; padding: clamp(20px, 4vw, 32px); box-shadow: 0 8px 35px #20232913; margin-bottom: 20px; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.action { border: 0; border-radius: 15px; padding: 28px 18px; cursor: pointer; text-align: center; display: grid; gap: 9px; font: inherit; }
.action .emoji { font-size: 34px; }.action strong { font-size: 21px; }.action small { font-size: 13px; }
.action.red { background: #c82936; color: white; }.action.dark { background: #252a32; color: white; }
.action:hover, button:hover { filter: brightness(1.06); }
h2 { margin: 0 0 12px; font-size: 26px; letter-spacing: -.02em; }
.muted { color: #61646b; line-height: 1.65; }.center { text-align: center; }.hidden { display: none !important; }
form { display: grid; gap: 15px; margin-top: 20px; }.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { font-size: 13px; font-weight: 750; display: grid; gap: 6px; }
input { font: inherit; width: 100%; padding: 13px; border: 1px solid #cdd0d5; border-radius: 10px; background: white; color: #222; }
input:focus { outline: 2px solid #c82936; border-color: transparent; }
button.primary, button.secondary, button.ghost { border: 0; border-radius: 10px; padding: 13px 18px; font: inherit; font-weight: 800; cursor: pointer; }
button.primary { background: #c82936; color: white; }.secondary { background: #252a32; color: white; }.ghost { background: #f2eeee; color: #252a32; }
button:disabled { opacity: .55; cursor: wait; }
.status { padding: 14px; border-radius: 10px; background: #f1f6f1; color: #22482c; line-height: 1.6; white-space: pre-wrap; }
.status.error { background: #fff0f0; color: #9c1c27; }.status strong { font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }.stat { background: #f5f3f1; padding: 17px 10px; border-radius: 12px; text-align: center; }
.stat strong { display: block; font-size: clamp(23px, 5vw, 34px); color: #c82936; }.stat span { color: #52545b; font-size: 12px; }
.progress { height: 12px; background: #ebe5e5; border-radius: 50px; overflow: hidden; }.progress > div { height: 100%; width: 0; background: #c82936; transition: width .3s; }
footer { text-align: center; padding: 15px 20px 40px; font-size: 13px; color: #65666b; }
footer a { color: #b42230; }.table-wrap { overflow-x: auto; }table { border-collapse: collapse; width: 100%; font-size: 13px; }td, th { padding: 11px 9px; border-bottom: 1px solid #e9e7e6; text-align: left; white-space: nowrap; }th { background: #f7f5f3; }
.tools { display: flex; flex-wrap: wrap; gap: 9px; margin: 17px 0; }.tools button { font-size: 13px; }
@media(max-width: 600px) { .actions,.two { grid-template-columns: 1fr; }.hero { padding-top: 30px; }.deadline strong { font-size: 20px; } }

/* V2: compact public total, choice controls and leader status table */
.compact-progress { padding: 22px; }
.compact-progress h2 { font-size: clamp(20px, 4vw, 27px); }
.committed { display: grid; justify-items: center; gap: 2px; background: #c82936; color: white; padding: 17px; border-radius: 15px; max-width: 360px; margin: 12px auto; }
.committed strong { font-size: 45px; line-height: 1.1; }
.committed span { font-weight: 750; }
.choice { border: 1px solid #e1dadd; border-radius: 12px; padding: 15px; display: grid; gap: 13px; }
.choice legend { font-weight: 800; padding: 0 6px; }
.choice label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.choice input { width: auto; accent-color: #c82936; }
.leader-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
@media(max-width:600px) { .leader-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
