.driver-history{container-type:inline-size;margin:.65rem 0;color:#223b39}
.driver-history>summary{font-weight:650;cursor:pointer;padding:.35rem 0}
[role=tabpanel] .driver-history[open]>summary{display:none}
.driver-content{font-variant-numeric:tabular-nums}
.driver-controls,.driver-years{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.driver-content label{display:flex;align-items:center;gap:.6rem;font-size:.82rem;color:#3d5350}
.driver-content select{min-width:0;max-width:100%;width:auto;margin:0;padding:.28rem 1.6rem .28rem .42rem;font:inherit;background-color:#fff}
.driver-controls{margin:.6rem 0}.driver-controls small,.driver-years,.driver-note{color:#526762}
.driver-bars{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.8rem}
.driver-side h4{font-size:.78rem;margin:.2rem 0 .45rem;font-weight:700}
.driver-side.lower h4{color:#19675d}.driver-side.higher h4{color:#a14435}
.driver-side button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem .35rem;text-align:left;width:100%;margin:.2rem 0;padding:.35rem .4rem;background:transparent;border:1px solid transparent;color:#253d39;border-radius:.35rem;font-size:.77rem;line-height:1.25;min-height:0}
.driver-side button span{align-self:center;overflow-wrap:anywhere}
.driver-side button strong{font-size:.78rem;color:inherit;align-self:center}
.driver-side button[aria-pressed=true],.driver-side button:hover{background:#f1f6f3;border-color:#b3c9bf}
.driver-side button:focus-visible,.driver-content select:focus-visible{outline:2px solid #197768;outline-offset:1px}
.driver-side button svg{grid-column:1/-1;width:100%;height:5px;background:#eaf0ed;border-radius:2px}
.driver-side.lower rect{fill:#287b70}.driver-side.higher rect{fill:#bb6250}
.driver-timeline{padding:.65rem .75rem;margin-top:.65rem;background:#f5f8f6;border-radius:.5rem}
.driver-timeline select{flex:1}
.driver-current-value{font-size:.76rem;margin:.4rem 0;color:#273f3c}
.driver-plot svg{display:block;width:100%;height:65px;overflow:visible}
.driver-plot line,.driver-plot circle{vector-effect:non-scaling-stroke}
.driver-zero{stroke:#8c9f99;stroke-width:1;stroke-dasharray:4 4}
.driver-line{stroke:#317b70;stroke-width:2}.driver-point{fill:#317b70}
.driver-current{fill:#fff;stroke:#183f38;stroke-width:2}
.driver-years,.driver-note{font-size:.7rem}.driver-note{line-height:1.4;margin:.5rem 0}
@container(max-width:340px){.driver-bars{grid-template-columns:1fr}.driver-timeline label{display:grid;gap:.2rem}}
.driver-preview{container-type:inline-size;margin:.6rem 0;padding:.65rem .75rem;border:1px solid #d3e1db;border-radius:.55rem;background:#fff}
.driver-preview>h4{margin:0 0 .18rem;font-size:.94rem}.driver-preview>small,.driver-timeline small{font-size:.72rem;color:#50655f}
.driver-preview>.driver-bars{margin-top:.5rem}
.driver-preview .driver-side button,.driver-content .driver-side button{grid-template-columns:minmax(0,1fr);gap:.18rem}
.driver-side button strong{font-variant-numeric:tabular-nums}
.driver-readings,.driver-radii{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr));gap:.45rem;margin:.65rem 0}
.driver-readings>div,.driver-radii>div{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.42rem .55rem;border-radius:.4rem;background:#fff}
.driver-readings strong,.driver-radii strong{font-weight:650;font-size:.88rem}.driver-readings span,.driver-radii span{font-size:.72rem;color:#486259}
.driver-increase{color:#a14435}.driver-decrease{color:#19675d}
.driver-timeline h5{font-size:.78rem;margin:.7rem 0 .2rem}
.driver-effect-plot svg{height:46px}

.ac-chart-dialog .driver-side h4,.ac-chart-dialog .driver-content label,.ac-chart-dialog .driver-timeline h5{font-size:1rem}
.ac-chart-dialog .driver-bars button{display:grid;grid-template-columns:minmax(0,1fr);font-size:.95rem;line-height:1.35}
.ac-chart-dialog .driver-bars button strong,.ac-chart-dialog .driver-readings strong{font-size:1.03rem}
.ac-chart-dialog .driver-years,.ac-chart-dialog .driver-note,.ac-chart-dialog .driver-radii span,.ac-chart-dialog .driver-timeline small{font-size:.85rem}


.home-snapshot,.place-section{margin:.6rem 0;padding:1rem;border:1px solid #cdded6;border-radius:.9rem;color:#213e39}
.home-snapshot{background:linear-gradient(115deg,#e6f4ee,#fafaf4)}
.home-snapshot .home-grade{background:#fff;color:#234c41;border-color:#bdd6c8}
.home-snapshot .grade-meaning,.home-snapshot .grade-date{font-size:.89rem;line-height:1.45;margin:.4rem 0 0}
.ac-chart-dialog .home-overview>div{font:600 1.05rem Sora,sans-serif}
.driver-preview,.place-section{background:#fff;border-radius:.9rem;padding:.9rem}
.driver-preview>h4,.place-section>h4{margin:0;color:#22483c;font:600 1.02rem/1.35 Sora,sans-serif}
.place-section>p,.driver-preview>.factor-intro{margin:.33rem 0 .75rem;font-size:.84rem;line-height:1.5;color:#52685c}
.place-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.1rem),1fr));gap:.55rem}
.place-grid .place-card,#property #pin-result .place-grid .place-card{display:flex;flex-direction:column;align-items:flex-start;gap:.18rem;min-width:0;width:100%;height:100%;min-height:0;margin:0;padding:.67rem;text-align:left;white-space:normal;background:#f8faf6;color:#29453b;border:1px solid #d8e4db;border-radius:.7rem;font:inherit}
.place-grid button.place-card:hover,#property #pin-result .place-grid button.place-card:hover{background:#edf5ec;border-color:#82a792}
.place-card:focus-visible,.property-sections button:focus-visible{outline:3px solid #397c64;outline-offset:1px}
.place-card strong{font:600 .88rem/1.35 Sora,sans-serif}.place-measure{font-size:.85rem;line-height:1.35}
.place-card small{font-size:.73rem;line-height:1.35;color:#365e4b;margin-top:auto;padding-top:.25rem}
.place-art{display:block;width:4rem;height:4rem;background:url('/assets/neighbourhood.webp') no-repeat;background-size:400% 400%;margin-bottom:.2rem}
.place-hospital{background-position:0 0}.place-school{background-position:33.3333% 0}.place-restaurant{background-position:66.6667% 0}.place-supermarket{background-position:100% 0}
.place-bus_stop{background-position:0 33.3333%}.place-rail_station{background-position:33.3333% 33.3333%}.place-park{background-position:66.6667% 33.3333%}.place-fast_food{background-position:100% 33.3333%}
.place-dwelling{background-position:0 66.6667%}.place-deed{background-position:33.3333% 66.6667%}.place-location{background-position:66.6667% 66.6667%}.place-market{background-position:100% 66.6667%}
.place-calendar{background-position:0 100%}.place-land{background-position:33.3333% 100%}.place-evidence{background-position:66.6667% 100%}.place-valuation{background-position:100% 100%}
.factor-balance{margin:.7rem 0 .85rem;padding:.85rem 1rem;border-radius:.75rem;background:#f5f6ed;color:#243e35}
.factor-balance figcaption{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.2rem .65rem;line-height:1.45}
.factor-balance figcaption strong{font:600 .95rem Sora,sans-serif}.factor-balance figcaption span,.pull-note,.pull-legend{font-size:.82rem}
.factor-balance>svg{display:block;width:min(100%,27rem);height:auto;margin:.3rem auto 0}.score-marker{stroke:#203c32;stroke-width:2;fill:#203c32}
.pull-result{font:600 12px Sora,sans-serif;fill:#244537}.factor-balance .pull-legend{max-width:27rem;margin:auto}
.pull-legend{display:flex;justify-content:space-between;font-weight:600}.pull-legend span:first-child{color:#994b32}.pull-legend span:last-child{color:#246b59}
.pull-up{fill:#b85b3c}.pull-down{fill:#34826a}.factor-balance .pull-note{margin:.4rem 0 0;line-height:1.4}
.driver-bars .driver-side .factor-tile,#property #pin-result .driver-side .factor-tile{display:grid;grid-template-columns:2.85rem minmax(0,1fr);align-items:center;gap:.3rem .55rem;width:100%;text-align:left;margin:.35rem 0;padding:.65rem;background:#fbf5ef;border:1px solid #e7d9cb;border-radius:.65rem;font-family:inherit;color:#233f36;white-space:normal}
.driver-bars .lower .factor-tile,#property #pin-result .lower .factor-tile{background:#eff6ef;border-color:#d2e3d4}
.driver-bars .factor-tile:focus-visible,.driver-bars .factor-tile:hover{outline:2px solid #42816b;outline-offset:1px}
.driver-bars .factor-tile .feature-art,.driver-readings .feature-art{width:2.85rem;height:2.85rem;margin:0;align-self:start}
.factor-copy{display:grid;gap:.15rem}.driver-bars .factor-tile .factor-copy>span{font-size:.82rem;line-height:1.35}
.driver-bars .factor-tile strong{font:600 .97rem/1.3 Sora,sans-serif}.driver-bars .factor-tile .factor-arrow{grid-column:1/-1;width:100%;height:1rem;background:transparent;border-radius:0}
.factor-tile small{grid-column:1/-1;font-size:.73rem;color:#3b5c4f}
.driver-side .factor-arrow{justify-self:stretch}.driver-controls{flex-wrap:wrap}
.grade-ladder{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;margin-top:.65rem}
.grade-ladder span{display:grid;place-items:center;border-radius:.3rem;background:#fff;border:1px solid #c6d7ce;font:600 .76rem/1.85 Sora,sans-serif;color:#446055}
.grade-ladder .selected{background:#244c40;border-color:#244c40;color:white}
.grade-ends{display:flex;justify-content:space-between;margin-top:.15rem;color:#456153;font-size:.82rem}
@container(max-width:370px){.driver-preview .driver-bars{grid-template-columns:1fr}}
.ac-chart-body>.property-sections{display:flex;flex-wrap:wrap;gap:.4rem;position:sticky;top:0;z-index:1;background:#fcfefb;padding:.4rem 0 .7rem;margin:0}
.ac-chart-body>section[hidden]{display:none}
.ac-chart-dialog .place-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:650px){.ac-chart-dialog .place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ac-chart-dialog .ac-chart-body>.property-sections{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem;
  padding:.5rem 0 0;margin-bottom:1rem;border-bottom:2px solid #308576;
}
#pin-result .ac-chart-dialog .property-sections .ac-chart-button{
  margin:0;display:grid;place-items:center;align-self:stretch;overflow-wrap:anywhere;
  width:100%;min-width:0;min-height:2.9rem;white-space:normal;text-align:center;
  padding:.55rem .3rem;font:600 clamp(.72rem,1.2vw,.9rem)/1.35 Sora,sans-serif;
  border-radius:.65rem .65rem 0 0;border-bottom:0;background:#eff5f1;color:#30554a;
}
#pin-result .ac-chart-dialog .property-sections .ac-chart-button[aria-selected=true]{
  background:#227868;color:white;border-color:#227868;
}
.place-card .place-trend{display:inline-block;margin:.18rem 0;padding:.2rem .45rem;
  border-radius:.4rem;color:#36534c;background:#e4ece8;font-size:.81rem;line-height:1.35}
.place-trend[data-direction="-1"]{color:#155b50;background:#d8f1e9}
.place-trend[data-direction="1"]{color:#784a25;background:#f8e8d4}


.kumo-factors{margin:10px 0;color:#143f3b;font-size:14px;line-height:1.4;container-type:inline-size}
.kumo-factors h3,.kumo-factors [role=tabpanel]>p{text-align:center;margin:6px 0}
.kumo-factors .peer-tabs{display:grid;grid-template-columns:1fr 1fr;width:min(100%,300px);margin:6px auto;padding:3px;background:#e7f2ed;border-radius:12px;gap:3px}
:is(#pin-result .kumo-factors,.kumo-factors) .peer-tabs button{margin:0;text-align:center;border:0;padding:5px 9px;min-height:32px;line-height:1.25;border-radius:9px;color:#175646;background:transparent}
:is(#pin-result .kumo-factors,.kumo-factors) .peer-tabs button[aria-selected=true]{background:#107b60!important;color:white!important}
.kumo-factors .peer-info{margin:6px 0;color:#385f58;font-size:13px}
.peer-info summary{cursor:pointer;text-align:center}
.kumo-factors .peer-grid{display:grid;max-width:612px;margin:10px auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@container(max-width:510px){.kumo-factors .peer-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:400px;gap:7px}}
@container(max-width:265px){.kumo-factors .peer-grid{grid-template-columns:1fr;max-width:196px}}
:is(#pin-result .kumo-factors,.kumo-factors) button.peer-card{box-sizing:border-box;aspect-ratio:1;width:100%;padding:6%;margin:0;min-height:0;min-width:0;display:grid;grid-template-rows:24% 1fr auto 18px auto;align-items:center;justify-items:center;gap:1px;text-align:center;line-height:1.18;color:#143f3b;background:#f6faf8;border:1px solid #c7ddd5;border-radius:14px;cursor:pointer;white-space:normal;container-type:inline-size}
:is(#pin-result .kumo-factors,.kumo-factors) button.peer-card.rise{background:linear-gradient(150deg,#fff,#ffefeb);border-color:#ebbbb3}
:is(#pin-result .kumo-factors,.kumo-factors) button.peer-card.fall{background:linear-gradient(150deg,#fff,#e3f7ee);border-color:#9dd6bc}
:is(#pin-result .kumo-factors,.kumo-factors) button.peer-card:hover{box-shadow:0 4px 12px #153d3222;border-color:#58817a}
.kumo-factors .peer-card .feature-art{height:100%;width:auto;aspect-ratio:1;margin:0}
.peer-card b,.peer-card small{font-size:clamp(11px,9cqi,15px);font-weight:600;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:100%}
.peer-card small{grid-row:4/6}
.peer-card strong{font-size:clamp(12px,11cqi,20px);font-variant-numeric:tabular-nums}
.rise{--effect:#ae392d}.fall{--effect:#077555}
.peer-strength,.effect-detail :is(.rise,.fall){color:var(--effect);font-weight:700;font-variant-numeric:tabular-nums}
.peer-strength{font-size:clamp(10px,8.4cqi,14px)}
.peer-axis{display:block;position:relative;width:100%;height:9px;border-radius:5px;background:#173e3820}
.peer-axis:before{content:"";position:absolute;left:50%;top:-3px;width:1px;height:15px;background:#37554e;z-index:1}
.peer-axis:after{content:"";position:absolute;left:50%;width:var(--extent);height:100%;background:var(--effect);border-radius:0 5px 5px 0}
.fall .peer-axis:after{left:auto;right:50%;border-radius:5px 0 0 5px}
dialog.effect-detail{box-sizing:border-box;max-height:89dvh;overflow:auto;width:min(410px,92vw);border:none;border-radius:20px;padding:22px;text-align:center;color:#153e36;line-height:1.45;background:white}
.effect-detail::backdrop{background:#102e2888}
.effect-detail>button{position:absolute;right:15px;top:15px}
.effect-detail .peer-axis{margin:12px 0}
.effect-pair{display:flex;gap:8px;margin:14px 0}
.effect-pair>div{flex:1;background:#ecf6f2;border-radius:10px;padding:12px 6px}
.effect-pair strong{display:block}
