:root{color:#172033;background:#f4f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}.app-shell{min-height:100vh;padding:24px}.app-header{max-width:1180px;margin:0 auto 16px;display:flex;align-items:center;justify-content:space-between;gap:16px}.app-header h1{margin:0;font-size:28px}.app-header span{color:#64748b;font-size:14px}.app-nav{max-width:1180px;margin:0 auto 24px;display:flex;gap:8px;overflow-x:auto;padding-bottom:4px}.wallet-status{max-width:1180px;margin:0 auto 16px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;padding:14px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wallet-status div{display:grid;gap:3px;min-width:180px}.wallet-status strong{color:#64748b;font-size:12px}.wallet-status span{font-weight:800}.wallet-status__error{width:100%;margin:0;color:#b91c1c;font-weight:700}.wallet-status__note{width:100%;margin:0;color:#64748b;font-weight:700}.notice{margin:16px 0 0;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;padding:12px;font-weight:700}.notice--warning{border-color:#fed7aa;background:#fff7ed;color:#c2410c}main{max-width:1180px;margin:0 auto}.nav-link,.button{border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;cursor:pointer;min-height:40px;padding:0 14px;font-weight:700}.nav-link--active,.button{border-color:#2563eb;background:#2563eb;color:#fff}.button:disabled{cursor:not-allowed;opacity:.55}.button--secondary,.button--wallet{border-color:#cbd5e1;background:#fff;color:#172033}.button--danger{border-color:#dc2626;background:#dc2626;color:#fff}.button--full{width:100%}.page-grid{display:grid;gap:16px}.panel{border:1px solid #dbe3ef;border-radius:8px;background:#fff;padding:24px;box-shadow:0 10px 28px #0f172a0f}.panel--hero{border-top:4px solid #2563eb}.panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.panel h1,.panel h2,.panel h3{margin:0}.panel h1{font-size:30px}.panel h2{font-size:22px}.eyebrow{margin:0 0 6px;color:#2563eb;font-size:13px;font-weight:800;text-transform:uppercase}.wallet-chip,.status-badge{display:inline-flex;align-items:center;min-height:32px;border-radius:999px;padding:0 12px;font-size:13px;font-weight:800;white-space:nowrap}.wallet-chip{background:#eef2ff;color:#3730a3}.status-badge{background:#eef2f7;color:#475569}.status-badge--ready{background:#dbeafe;color:#1d4ed8}.status-badge--active{background:#dcfce7;color:#166534}.status-badge--ended{background:#ede9fe;color:#5b21b6}.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.metric-grid div{border:1px solid #e2e8f0;border-radius:8px;padding:14px}dt{color:#64748b;font-size:13px}dd{margin:6px 0 0;font-weight:800}.action-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}.action-row--left{justify-content:flex-start}.candidate-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.candidate-card{border:1px solid #dbe3ef;border-radius:8px;background:#fff;padding:16px;display:grid;gap:14px}.candidate-card--highlighted{border-color:#2563eb}.candidate-card__media,.image-placeholder{min-height:132px;border-radius:8px;background:#e8eef7;display:grid;place-items:center;color:#64748b;font-weight:800}.candidate-card__media span{width:48px;height:48px;border-radius:50%;background:#fff;display:grid;place-items:center;color:#2563eb}.candidate-card__rank{color:#2563eb;font-size:13px;font-weight:800}.candidate-card__body h3{margin:4px 0 8px}.candidate-card__body p{margin:0}.candidate-card__percent{color:#2563eb;font-weight:800}.vote-bar{height:14px;border-radius:999px;background:#e2e8f0;overflow:hidden}.vote-bar__fill{height:100%;border-radius:inherit;background:#2563eb}.form-panel{display:grid;gap:14px}.form-panel label{display:grid;gap:8px;color:#475569;font-weight:700}input{width:100%;border:1px solid #cbd5e1;border-radius:8px;min-height:42px;padding:0 12px}.time-input{max-width:240px}.candidate-list,.result-list{display:grid;gap:12px}.candidate-list{list-style:none;margin:18px 0 0;padding:0}.candidate-list li,.result-row{border:1px solid #e2e8f0;border-radius:8px;padding:14px}.candidate-list li{display:flex;justify-content:space-between;gap:16px}.result-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,3fr) minmax(96px,auto);align-items:center;gap:16px}.result-row--leader{border-color:#2563eb;background:#f8fbff}@media(max-width:720px){.app-shell{padding:16px}.app-header,.panel__header,.result-row{display:grid}.result-row{grid-template-columns:1fr}}
