@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#213b35;--muted:#7a8782;--green:#176d54;--border:#dfe5df;--cream:#f5f6f1}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:14px}header{background:#fff;height:88px;padding:0 4.5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-family:Manrope,system-ui,sans-serif;font-size:22px;font-weight:800;letter-spacing:2px}.brand-icon{width:42px;height:42px;border-radius:12px;background:var(--green);color:white;display:grid;place-items:center;font-size:24px}.brand-sub{display:block;font-size:9px;letter-spacing:2.5px;font-weight:600;margin-top:2px}.header-right{display:flex;align-items:center;gap:25px;color:var(--muted);font-size:12px}.live{color:var(--green);background:#eaf3ec;padding:8px 12px;border-radius:20px;font-weight:600}.live:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:7px}.live.warning{color:#936326;background:#fcf0db}main{max-width:1600px;margin:auto;padding:40px 4.5% 20px}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--green)}h1{font-family:Manrope,system-ui,sans-serif;font-size:clamp(25px,3vw,39px);letter-spacing:-1.4px;margin:12px 0}h1 span{color:#e29747}.intro p{color:var(--muted);font-size:15px;margin:0}.button{background:white;border:1px solid var(--border);padding:12px 17px;border-radius:8px;font:inherit;color:var(--ink);cursor:pointer}.notice{padding:11px 15px;border:1px solid #e6d6ac;border-radius:8px;background:#fff9eb;color:#80642c;margin-bottom:20px;font-size:12px}.notice.ok{background:#edf5ef;border-color:#d5e6db;color:#32624e}.metrics{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--border);border-radius:12px;margin-bottom:24px;padding:25px 0}.metrics>div{padding:0 24px;border-right:1px solid var(--border)}.metrics>div:last-child{border:0}.metrics span{display:block;font-size:9px;font-weight:700;color:var(--muted);letter-spacing:1px}.metrics strong{font-family:Manrope,system-ui,sans-serif;font-size:30px;display:block;margin:9px 0;letter-spacing:-1px}.metrics em{font-style:normal;font-size:16px;color:#9ca6a0;font-weight:500}.metrics small{font-size:11px;color:var(--muted)}.metrics strong.timestamp{font-size:15px;letter-spacing:0;margin:18px 0}.progress{height:4px;background:#edf0eb;border-radius:4px;margin-top:17px}.progress i{height:100%;display:block;background:var(--green);width:0;border-radius:4px}.workspace{display:grid;grid-template-columns:310px minmax(0,1fr);gap:22px}.panel{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.panel-head{padding:22px 22px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}h2{font-family:Manrope,system-ui,sans-serif;font-size:17px;margin:0;letter-spacing:-.4px}.badge{padding:4px 8px;background:#eef3ed;border-radius:5px;font-size:11px;color:var(--green)}.field-label{display:block;margin:16px 20px 7px;color:var(--muted);font-size:11px}input,select{font:inherit;color:var(--ink);background:#f9faf7;border:1px solid var(--border);border-radius:7px;padding:11px 12px;min-width:0}input:focus,select:focus{outline:2px solid #80b19e;outline-offset:2px}.candidates-panel>input,.candidates-panel>select{width:calc(100% - 40px);margin:0 20px}.list-info{margin:20px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted)}.text-button{font:inherit;font-size:11px;color:var(--green);border:0;background:none;cursor:pointer;padding:0}.candidate-list{height:355px;overflow-y:auto;margin:0 10px}.candidate{display:flex;align-items:center;gap:9px;border-radius:8px;padding:11px 9px;margin-bottom:4px;border:1px solid transparent}.candidate.selected{background:#f0f5ee;border-color:#dfe8dc}.candidate label{display:flex;gap:9px;align-items:center;flex:1;cursor:pointer;min-width:0}.candidate input[type=checkbox]{accent-color:var(--green);width:15px;height:15px;margin:0}.candidate-name{font-size:12px;font-weight:600;display:block;line-height:1.5}.candidate-meta{font-size:10px;color:var(--muted)}.candidate input[type=color]{border:0;background:transparent;width:27px;height:27px;padding:0;cursor:pointer;flex-shrink:0}.candidate-votes{display:block;font-size:10px;font-weight:600;color:var(--green)}.aside-foot{font-size:10px;color:var(--muted);line-height:1.7;padding:18px 20px;border-top:1px solid var(--border);margin-top:15px}.map-head .eyebrow{margin-bottom:8px}.muted{color:var(--muted);font-size:12px;font-weight:400}.map-head select{font-size:11px;padding:8px}.map-toolbar{display:flex;align-items:center;justify-content:space-between;padding:10px 22px;font-size:11px;color:var(--muted)}.map-toolbar button{background:white;border:1px solid var(--border);border-radius:5px;width:30px;height:30px;color:var(--ink);font-size:17px;cursor:pointer;margin-left:4px}.maps{background:radial-gradient(ellipse at center,#fbfcf7,#f4f6ef);min-height:370px;position:relative;display:grid;grid-template-columns:1fr;padding:10px 20px}.maps.individual{grid-template-columns:repeat(2,minmax(0,1fr))}.map-card{min-width:0}.map-card h3{margin:10px 10px 0;font-size:12px}.map-svg{width:100%;height:390px;display:block;touch-action:none;cursor:grab}.individual .map-svg{height:250px}.map-svg path{stroke:#fff;stroke-width:.5;vector-effect:non-scaling-stroke;transition:fill .7s}.map-svg path:hover,.map-svg path.active{stroke:#183f33;stroke-width:1.8}.map-svg path:focus{outline:none;stroke:#111;stroke-width:2}.legend{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 22px 8px;color:var(--muted);font-size:10px}.legend-dot{width:9px;height:9px;display:inline-block;border-radius:2px;margin:0 4px 0 8px}.empty{background:#e4e9e2}.tie{background:#93a198}.scale{display:flex;gap:8px;align-items:center}.gradient{width:100px;height:6px;border-radius:4px;background:linear-gradient(90deg,#eef3e9,#367b58)}.map-explanation{color:var(--muted);font-size:11px;line-height:1.6;padding:0 22px;margin:8px 0 12px}.color-legend{padding:0 22px 18px;display:flex;flex-wrap:wrap;gap:10px}.color-legend span{font-size:10px;display:flex;gap:5px;align-items:center}.color-legend i{height:8px;width:8px;border-radius:50%}.details-panel{margin-top:22px}.details-panel .eyebrow{margin-bottom:8px}.details-panel .panel-head input{width:220px;font-size:12px}.details-panel>p{font-size:11px;color:var(--muted);padding:0 22px}.table-wrap{overflow:auto;max-height:440px}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{text-align:right;background:#f7f9f4;color:var(--muted);font-size:10px;font-weight:500;padding:13px 22px;position:sticky;top:0}td{text-align:right;padding:13px 22px;border-bottom:1px solid #eef1eb}th:first-child,td:first-child{text-align:left}td:first-child{font-weight:500}.details-panel>#more{display:block;margin:16px auto}.city-link{color:var(--ink);background:none;border:0;font:inherit;cursor:pointer;text-align:left;padding:0}.tooltip{position:fixed;pointer-events:none;z-index:10;background:#183c32;color:white;border-radius:9px;padding:12px 14px;font-size:11px;box-shadow:0 8px 30px #183c3233;max-width:310px;line-height:1.8}.tooltip b{display:block;font-size:13px}.tooltip small{color:#bbd1c4}footer{margin-top:22px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}footer a{color:var(--green)}.empty-state{padding:24px 12px;color:var(--muted);font-size:12px;line-height:1.7}button:disabled{opacity:.5;cursor:wait}@media(min-width:1450px){.map-svg{height:460px}.candidate-list{height:420px}}@media(max-width:950px){.workspace{grid-template-columns:265px minmax(0,1fr)}.metrics{grid-template-columns:repeat(2,1fr);row-gap:25px}.metrics>div:nth-child(2){border:0}.map-head{align-items:flex-start;flex-direction:column}.legend{flex-wrap:wrap}.map-svg{height:350px}}@media(max-width:650px){header{height:75px}.header-right{gap:8px;flex-direction:column;font-size:10px}main{padding-top:25px}.intro{align-items:flex-start;gap:12px}.intro>.button{font-size:11px;padding:9px;max-width:90px}.intro p{font-size:12px}h1{letter-spacing:-.8px}.metrics>div{padding:0 15px}.metrics strong{font-size:24px}.metrics span{font-size:8px}.workspace{grid-template-columns:1fr}.candidate-list{height:230px}.map-svg{height:340px}.maps.individual{grid-template-columns:1fr}.details-panel .panel-head{flex-wrap:wrap}footer{flex-direction:column}}
.scale select{font-size:10px;padding:5px 7px;background:white}.scale .gradient{width:65px}
.brand-icon{font-size:16px;letter-spacing:-1px}.brand{font-size:18px;letter-spacing:1.6px}.brand-sub{font-size:11px;letter-spacing:3.5px}.map-actions{display:flex;align-items:center;gap:9px}.map-actions .button{font-size:11px;padding:8px 12px}.presentation-status{display:none}.color-legend span{padding:6px 9px;background:#f4f7f0;border-radius:5px}.color-legend strong{margin-left:5px;color:var(--ink)}.analysis-toggle{padding:15px 22px;border-top:1px solid var(--border);background:#f7faf4;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.analysis-toggle label{font-size:12px;font-weight:600;display:flex;align-items:center;gap:8px;cursor:pointer}.analysis-toggle input{accent-color:var(--green);width:16px;height:16px;margin:0}.analysis-toggle>span{font-size:10px;color:var(--muted)}.analysis-panel{border-top:1px solid var(--border);padding:20px 22px}.analysis-panel[hidden]{display:none}.analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.analysis-heading h3{font-family:Manrope,system-ui,sans-serif;font-size:15px;margin:0}.analysis-note,.scenario-basis,.group-totals{font-size:11px;line-height:1.7;color:var(--muted)}.analysis-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:15px}.analysis-card{border:1px solid var(--border);border-top:3px solid var(--green);border-radius:8px;overflow:hidden;padding:16px;min-width:0}.analysis-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.analysis-card h4{margin:0 0 5px;font-size:14px}.analysis-card-title small{font-size:10px;color:var(--muted)}.peer-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:18px 0}.peer-metrics span{font-size:8px;letter-spacing:.4px;color:var(--muted);display:block}.peer-metrics strong{font-family:Manrope,system-ui,sans-serif;font-size:17px;display:block;margin-top:6px}.peer-table{overflow:auto}.peer-table th,.peer-table td{padding:9px 7px;font-size:10px;white-space:normal}.peer-table th:first-child,.peer-table td:first-child{width:68px}.peer-table th:nth-child(2),.peer-table td:nth-child(2){text-align:left}.peer-table small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.partner-row{background:#f0f7ed}.partner-tag{margin-left:4px;color:var(--green);font-size:8px;font-weight:700}.analysis-card details{font-size:10px;color:var(--green);margin:12px 0}.analysis-card summary{cursor:pointer}.expanded{max-height:240px;margin-top:8px}.scenario-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px;border-top:1px solid var(--border)}.scenario-controls label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:6px}.scenario-controls input{width:100%;padding:8px}.scenario-result{background:#eef4ec;padding:12px;border-radius:7px;display:flex;flex-direction:column;gap:6px;font-size:11px}.scenario-result small{font-size:10px;line-height:1.6;color:#607d6a}.analysis-source{display:inline-block;color:var(--green);font-size:10px;margin-top:16px}.official-status{font-size:10px;color:var(--green)}
body.presenting{overflow:hidden}.map-panel.presentation-mode{position:fixed;inset:0;z-index:100;width:100vw;height:100dvh;border:0;border-radius:0;display:flex;flex-direction:column;background:#f8faf4;overflow:hidden}.presentation-mode .map-head{padding:18px 30px 8px;flex-direction:row;align-items:center;flex-shrink:0}.presentation-mode .map-head h2{font-size:25px}.presentation-mode .eyebrow{font-size:13px}.presentation-mode .map-actions .button{font-size:14px}.presentation-mode .presentation-status{display:block;padding:10px 30px;font-size:13px;color:var(--green);background:#eaf3e8;flex-shrink:0}.presentation-mode .presentation-status.warning{color:#936326;background:#fcf0db}.presentation-mode .maps{flex:1;min-height:120px;overflow:auto;padding:0 25px;grid-auto-rows:minmax(200px,1fr)}.presentation-mode .map-card{display:flex;flex-direction:column;min-height:0}.presentation-mode .map-svg{height:100%;min-height:180px;flex:1}.presentation-mode .map-card h3{font-size:16px;flex-shrink:0}.presentation-mode .map-toolbar{flex-shrink:0;padding:6px 30px}.presentation-mode .legend{padding:8px 30px;flex-shrink:0}.presentation-mode .map-explanation{margin:2px 0 6px;padding:0 30px;flex-shrink:0}.presentation-mode .color-legend{padding:0 30px 10px;font-size:14px;max-height:95px;overflow:auto;flex-shrink:0}.presentation-mode .color-legend span{font-size:13px}.presentation-mode .analysis-toggle{padding:10px 30px;flex-shrink:0}.presentation-mode .analysis-panel{max-height:34vh;overflow:auto;flex-shrink:0;padding:12px 30px}.presentation-mode .analysis-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr))}.tooltip{z-index:110}@media(max-width:650px){.map-actions{flex-wrap:wrap}.analysis-toggle{padding:13px 18px}.analysis-panel{padding:16px}.peer-metrics strong{font-size:15px}.presentation-mode .map-head{padding:12px 15px;flex-wrap:wrap}.presentation-mode .map-head h2{font-size:18px}.presentation-mode .eyebrow{font-size:10px}.presentation-mode .presentation-status{padding:8px 15px;font-size:10px}.presentation-mode .analysis-panel{max-height:38vh;padding:12px}.presentation-mode .map-explanation{display:none}.presentation-mode .color-legend{padding:5px 15px;max-height:80px}.presentation-mode .legend{padding:6px 15px}.presentation-mode .analysis-toggle{padding:8px 15px}.presentation-mode .map-toolbar{padding:6px 15px}}
.presentation-mode .color-legend span{font-size:clamp(13px,1vw,20px)}.presentation-mode .color-legend strong{font-size:clamp(16px,1.2vw,24px)}.presentation-mode .presentation-status{font-size:clamp(12px,.9vw,18px)}.presentation-mode .analysis-card{max-width:950px}.presentation-mode .peer-table td,.presentation-mode .peer-table th{font-size:clamp(10px,.7vw,14px)}
.apply-scenario{font-size:11px;padding:8px 12px;margin-top:10px;color:var(--green)}
