:root{
  --bg:#202927;
  --panel:#1d2523;
  --text:#f4f5f1;
  --muted:#aebbb5;
  --line:rgba(255,255,255,.14);
  --accent:#68d9ac;
  --g1:#cdebdc;
  --g2:#91cba8;
  --g3:#4ba66d;
  --g4:#258454;
  --g5:#0f6541;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input{font:inherit}
.demo-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,31vw);background:var(--bg)}
.map-side{position:relative;min-height:100vh;padding:20px 34px 30px;overflow:hidden}
.info-side{min-height:100vh;border-left:1px solid var(--line);padding:70px clamp(34px,4vw,68px) 34px;background:var(--panel);display:flex;flex-direction:column}
.topbar{min-height:78px;display:grid;grid-template-columns:170px minmax(260px,390px) auto;align-items:start;justify-content:space-between;gap:22px}
.brand{font-weight:900;letter-spacing:.02em;font-size:15px;padding-top:4px}.brand span{color:var(--accent)}.brand small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.09em}
.demo-chip{border:1px solid rgba(104,217,172,.45);color:var(--accent);border-radius:999px;padding:7px 10px;font-size:10px;font-weight:900;letter-spacing:.08em;background:rgba(104,217,172,.06);margin-top:2px}
.postcode-search{display:grid;gap:4px;width:100%}.postcode-search label{color:var(--accent);font-size:9px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}.postcode-box{display:grid;grid-template-columns:1fr auto;border:1px solid rgba(255,255,255,.23);border-radius:10px;overflow:hidden;background:rgba(7,14,12,.22)}.postcode-box:focus-within{border-color:rgba(104,217,172,.8);box-shadow:0 0 0 2px rgba(104,217,172,.08)}.postcode-box input{min-width:0;border:0;outline:0;background:transparent;color:var(--text);padding:10px 12px;font-size:14px;font-weight:750;letter-spacing:.05em}.postcode-box input::placeholder{color:#70817a;font-weight:500}.postcode-box button{border:0;border-left:1px solid rgba(255,255,255,.13);background:rgba(104,217,172,.11);color:var(--accent);padding:0 16px;font-size:11px;font-weight:900;cursor:pointer}.postcode-box button:hover{background:rgba(104,217,172,.2)}.postcode-search small{color:#74877e;font-size:8.5px;line-height:1.3}.postcode-search small.is-error{color:#f1b3a9}
.crumb-row{height:46px;display:flex;align-items:center;justify-content:center;gap:18px;position:relative;z-index:4}
.back-btn{position:absolute;left:0;border:1px solid var(--line);background:transparent;color:var(--text);border-radius:8px;padding:7px 10px;cursor:pointer}.back-btn:hover{background:rgba(255,255,255,.07)}
.breadcrumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;align-items:center;color:var(--muted);font-size:12px}.breadcrumbs button{border:0;background:transparent;color:inherit;padding:5px 6px;cursor:pointer}.breadcrumbs button:last-child{color:var(--text);font-weight:800}.breadcrumbs i{font-style:normal;opacity:.5}
.map-wrap{height:calc(100vh - 176px);min-height:565px;display:flex;align-items:center;justify-content:center;position:relative}
#mapSvg{display:block;width:100%;height:100%;max-height:820px;overflow:visible}
.loading{position:absolute;color:var(--muted);font-size:13px;letter-spacing:.03em}
.region{cursor:pointer;stroke:#f8faf7;stroke-width:1.7;vector-effect:non-scaling-stroke;transition:filter .14s ease,opacity .14s ease,stroke-width .14s ease;outline:none}.region:hover,.region:focus{filter:brightness(1.18) drop-shadow(0 0 7px rgba(104,217,172,.32));stroke-width:3}.region.selected{filter:brightness(1.22) drop-shadow(0 0 9px rgba(104,217,172,.42));stroke-width:3}
.map-label{pointer-events:none;fill:#fff;text-anchor:middle;dominant-baseline:middle;font-weight:900;font-size:13px;paint-order:stroke;stroke:#18211e;stroke-width:3.6px;stroke-linejoin:round}.map-label.small{font-size:11px}.area-label{font-size:15px}.local-label{font-size:16px}.postal-label{font-size:18px;letter-spacing:.03em}.postal-count{font-size:11px;fill:#dbe9e2;font-weight:800}
.area-shape{stroke-width:2.2}.water{fill:none;stroke:#3e9f9b;stroke-width:10;opacity:.38}.coast{fill:#173a38;opacity:.55}.road-hint{fill:none;stroke:rgba(255,255,255,.16);stroke-width:2;stroke-dasharray:5 7;pointer-events:none}
.legend{position:absolute;left:34px;bottom:22px;display:flex;gap:4px;align-items:center;background:rgba(19,27,25,.78);border:1px solid rgba(255,255,255,.06);padding:9px 10px;border-radius:999px;font-size:10px;color:var(--muted)}.legend b{font-size:10px;color:#dce5e0;margin:0 3px}.legend span{display:block;width:25px;height:10px;border-radius:3px}.c1{background:var(--g1)}.c2{background:var(--g2)}.c3{background:var(--g3)}.c4{background:var(--g4)}.c5{background:var(--g5)}
.accent-line{width:72px;height:6px;background:#fff;margin-bottom:22px}.kicker{margin:0 0 10px;color:var(--accent);font-size:13px;font-weight:950;letter-spacing:.14em}.info-side h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(45px,5vw,78px);line-height:.98;font-weight:500;letter-spacing:-.04em;overflow-wrap:anywhere}.area-subline{min-height:16px;margin:12px 0 0;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.03em}
.metric{margin-top:clamp(40px,6vh,70px)}.metric strong{display:block;font-size:clamp(62px,7vw,104px);line-height:.84;font-weight:950;font-variant-numeric:tabular-nums}.metric span{display:block;margin-top:18px;color:var(--muted);font-size:11px;font-weight:900;line-height:1.45;letter-spacing:.04em}
.potential{margin-top:clamp(38px,5vh,62px)}.potential span{display:block;color:var(--muted);font-size:11px;font-weight:900;letter-spacing:.04em}.potential strong{display:block;margin-top:8px;color:var(--accent);font-family:Georgia,"Times New Roman",serif;font-size:42px;font-weight:500}
.instruction{margin:auto 0 16px;padding-top:23px;border-top:1px solid var(--line);max-width:330px;color:#dfe7e2;font-size:14px;line-height:1.55}.disclaimer{margin:0;max-width:340px;color:#7f9088;font-size:10px;line-height:1.5}
.empty-state{display:flex;align-items:center;justify-content:center;width:75%;aspect-ratio:1;border:2px solid white;background:var(--g3);clip-path:polygon(8% 32%,30% 7%,67% 3%,91% 25%,96% 62%,77% 91%,37% 96%,9% 73%);font-family:Georgia,"Times New Roman",serif;font-size:40px;text-align:center;padding:80px}
.level-title{font-family:Georgia,"Times New Roman",serif;fill:#eef4f0;font-size:26px;text-anchor:middle;font-weight:500;pointer-events:none}.level-note{fill:#94aaa0;font-size:12px;text-anchor:middle;pointer-events:none}
@media(max-width:980px){.topbar{grid-template-columns:150px 1fr}.demo-chip{grid-column:1;grid-row:2;width:max-content}.postcode-search{grid-column:2;grid-row:1/3}}
@media(max-width:850px){
  .demo-shell{display:block}.map-side{min-height:76vh;height:76vh;padding:14px 14px 24px}.info-side{min-height:55vh;border-left:0;border-top:1px solid var(--line);padding:36px 24px 26px}.topbar{min-height:112px;grid-template-columns:1fr auto;gap:8px 12px}.brand{grid-column:1}.demo-chip{grid-column:2;grid-row:1;margin-top:0;font-size:8px}.postcode-search{grid-column:1/-1;grid-row:2}.postcode-search small{display:none}.crumb-row{height:40px;justify-content:flex-end;padding-left:90px}.breadcrumbs{justify-content:flex-end;font-size:10px;white-space:nowrap;overflow-x:auto}.map-wrap{height:calc(76vh - 166px);min-height:380px}.legend{left:14px;bottom:10px}.legend span{width:19px}.info-side h1{font-size:48px}.metric strong{font-size:70px}.instruction{margin-top:50px}.map-label{font-size:12px;stroke-width:3.2px}.map-label.small{font-size:10px}.area-label{font-size:13px}.local-label{font-size:14px}.postal-label{font-size:16px}.postal-count{font-size:10px}.level-title{font-size:24px}.level-note{font-size:11px}}
