/* Legacy app rules. Design tokens, fonts and resets live in packages/ui (src/styles). */
summary{cursor:pointer;font-weight:600}
h1{font-size:23px;letter-spacing:0;font-weight:500;margin:0 0 8px;line-height:1.3}
.leaflet-container{font-family:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

.solar-shell{max-width:1120px;padding:48px 32px 80px;font-size:13px;line-height:1.65;font-variant-numeric:tabular-nums}
.solar-shell h1{font-size:20px}
.solar-shell h2{font-size:16px;letter-spacing:-.01em;margin:32px 0 12px}
.solar-shell h3{font-size:15px;margin:0 0 4px}
.solar-shell p{max-width:72ch;color:var(--muted)}
.solar-shell button:where(:not([class*="mantine-"],.pill,.icon-btn,.section-chip,.site-name)){background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:6px;min-height:44px;padding:9px 14px;cursor:pointer}
.solar-shell button:where(:not([class*="mantine-"],.pill,.icon-btn,.section-chip,.site-name)):hover{background:var(--hover)}
.solar-shell button:where(:not([class*="mantine-"],.pill,.icon-btn,.section-chip,.site-name)):disabled{cursor:default;opacity:.5}
.solar-map{height:260px;width:100%;min-width:0;border-radius:8px;isolation:isolate;background:var(--surface)}
.solar-map.editing{height:340px;margin:20px 0}
.solar-map .leaflet-control-zoom a{width:40px;height:40px;line-height:40px}
.solar-shell summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:600}
.solar-shell a{text-underline-offset:3px}
.solar-shell table{border-collapse:collapse;width:100%;font-size:13px}
.solar-shell th,.solar-shell td{border-bottom:1px solid var(--line);padding:10px;text-align:left}
.solar-shell caption{text-align:left;margin:12px 0}
.solar-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}
.solar-shell label:where(:not([class*="mantine-"])){display:flex;flex-direction:column;gap:6px;font-size:13px}
.solar-shell input:not([type=range]):not([type=checkbox]):where(:not([class*="mantine-"])),.solar-shell textarea,.solar-shell select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:10px;background:var(--surface);color:var(--ink);font:inherit}
.solar-shell input[type=checkbox]:where(:not([class*="mantine-"])){align-self:start;width:20px;height:20px}
.solar-shell textarea{min-height:100px;resize:vertical}
.solar-shell fieldset:where(:not(.pill-group)){border:1px solid var(--line);border-radius:8px;padding:16px 20px;margin:20px 0}
.solar-shell legend{padding:0 8px;font-weight:600}
.solar-save{margin:32px 0}
.solar-shell .solar-primary{background:var(--accent);border-color:var(--accent);color:#09090b;padding:12px 24px}
.solar-shell .solar-primary:hover{background:var(--accent-hover)}
.solar-editor>label{margin:20px 0}
@media(max-width:700px){.solar-shell{padding:28px 20px 60px}
.solar-fields{grid-template-columns:1fr 1fr;gap:14px}
.solar-map.editing{height:300px}
.solar-shell fieldset:where(:not(.pill-group)){padding:12px}
}
.solar-map .leaflet-control-zoom a{color:#18374f;background-color:#fff}
.solar-map .leaflet-control-attribution{color:#18374f;background:rgba(255,255,255,.95)}
.solar-map .leaflet-control-attribution a{color:#18374f}
.solar-map-workspace{margin:20px 0}
.solar-map-frame{position:relative}
.solar-map-frame .solar-map.editing{height:600px;height:min(70vh,640px);min-height:440px;margin-bottom:0}
.solar-map-frame .solar-map.expanded{height:85vh;min-height:600px}
.solar-google-credit{position:absolute;bottom:12px;left:12px;z-index:500;display:flex;flex-direction:column;gap:2px;max-width:calc(100% - 130px);color:#222;background:#fffffff2;padding:5px 8px;border-radius:3px;pointer-events:none}
.solar-google-credit span{font:500 16px/20px Arial,sans-serif}
.solar-google-credit small{font:11px/14px Arial,sans-serif}
@media(max-width:700px){.solar-map-frame .solar-map.editing{min-height:400px}
.solar-map-frame .solar-map.expanded{min-height:500px}
}
.solar-map .leaflet-tooltip.solar-section-number{padding:2px 5px;min-width:20px;text-align:center;font:600 12px/16px system-ui,sans-serif;border:1px solid #ffffffb3;border-radius:6px;color:#fff;background:#172431ed;box-shadow:none;pointer-events:none}
.solar-map .leaflet-tooltip.solar-section-number:before{display:none}
.solar-map .leaflet-tooltip.solar-section-hover{font:500 12px/18px system-ui,sans-serif;padding:4px 7px;pointer-events:none}
.accuracy-section-heading{display:flex;justify-content:space-between;gap:20px;align-items:baseline}
.accuracy-context{max-width:88ch;line-height:1.6}
.accuracy-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:12px}
.accuracy-numbers dt{color:var(--muted);font-size:12px;margin-bottom:12px}
.accuracy-numbers dd{margin:0;font-size:clamp(16px,1.6vw,20px);font-weight:500;font-variant-numeric:tabular-nums}
.accuracy-numbers small{font-size:13px;letter-spacing:0;font-weight:400}
.accuracy-footnote{font-size:12px;color:var(--muted);line-height:1.6}
.accuracy-section{margin-top:40px;min-width:0}
.accuracy-section h2,.accuracy-exports h2{font-size:16px;letter-spacing:-.02em}
.accuracy-section-heading span{font-size:12px;color:var(--muted)}
.accuracy-scatter text{fill:var(--muted);font:12px Inter,ui-sans-serif,system-ui,sans-serif}
.accuracy-grid{stroke:var(--line);fill:none}
.accuracy-two{display:grid;grid-template-columns:1.4fr 1fr;gap:40px}
.accuracy-scatter{width:100%;max-height:340px}
.accuracy-diagonal{stroke:var(--muted);stroke-dasharray:4;fill:none}
.accuracy-dot{fill:var(--data-accent);opacity:.8}
.accuracy-screen td,.accuracy-screen th{font-variant-numeric:tabular-nums}
.accuracy-screen pre{overflow:auto;font-size:12px;background:var(--surface);padding:16px}
.accuracy-screen code{overflow-wrap:anywhere;font-size:12px}
.accuracy-screen li{margin:8px 0;line-height:1.6}
.accuracy-exports{border-top:1px solid var(--line);margin-top:30px;padding-top:24px}
.accuracy-exports>div{display:flex;gap:24px;flex-wrap:wrap}
.accuracy-exports p{font-size:12px}
@media(max-width:700px){.accuracy-numbers{grid-template-columns:repeat(2,minmax(0,1fr))}
.accuracy-two{grid-template-columns:1fr}
.accuracy-section-heading{display:block}
}
.panel-map-handle{cursor:grab!important;background:none!important;border:0!important;}
.panel-map-handle svg{width:44px;height:44px;}
.panel-map-handle circle{fill:#18374f;stroke:white;stroke-width:2;}
.panel-map-handle path{fill:none;stroke:var(--accent);stroke-width:3;}
body:has(.solar-edit-shell){overflow:hidden}
.solar-edit-shell{position:fixed;inset:52px 0 0 0;max-width:none;padding:0;font-size:13px}
.solar-editor,.solar-editor>form,.solar-editor-workspace,.solar-editor-map,.solar-editor-map>.solar-map-workspace,.solar-editor-map .solar-map-frame{position:absolute;inset:0;margin:0;width:100%;height:100%;min-height:0}
.solar-editor-workspace{display:block}
.solar-editor-map{overflow:hidden}
.solar-editor-map .solar-map-frame .solar-map.editing{height:100%;min-height:0;margin:0;border-radius:0}
.solar-editor-map .leaflet-top.leaflet-right{top:68px;right:12px}
.solar-editor-map .leaflet-control-zoom{border:0;box-shadow:var(--overlay-shadow)}
.solar-editor-map .leaflet-control-zoom a{width:44px;height:44px;line-height:44px;background:var(--surface);color:var(--ink)}
.solar-editor-map .solar-map-workspace>p[role=alert]{position:absolute;z-index:800;bottom:12px;left:500px;max-width:480px;background:var(--surface);padding:10px 14px;border-radius:6px;font-size:12px}
.panel-map-handle .handle-arrow{transform-origin:16px 16px}
.solar-editor-map .leaflet-pm-toolbar{border:0;box-shadow:var(--overlay-shadow);border-radius:6px;overflow:visible}
.solar-editor-map .leaflet-pm-toolbar .button-container a.leaflet-buttons-control-button{width:44px;height:44px;padding:9px;background:var(--surface);border-bottom:1px solid var(--line)}
.solar-editor-map .leaflet-pm-toolbar .button-container:first-child a.leaflet-buttons-control-button{border-radius:6px 6px 0 0}
.solar-editor-map .leaflet-pm-toolbar .button-container:last-child a.leaflet-buttons-control-button{border-radius:0 0 6px 6px;border-bottom:0}
.solar-editor-map .leaflet-pm-toolbar .button-container a.leaflet-buttons-control-button:hover,.solar-editor-map .leaflet-pm-toolbar .button-container.active a.leaflet-buttons-control-button{background:var(--hover)}
.solar-editor-map .leaflet-pm-toolbar .button-container.active a.leaflet-buttons-control-button{box-shadow:inset 3px 0 0 var(--accent)}
.solar-editor-map .leaflet-pm-toolbar .control-icon{opacity:.8}
.solar-editor-map .leaflet-pm-toolbar .leaflet-pm-actions-container a.leaflet-pm-action{height:44px;line-height:44px;padding:0 12px;background:var(--surface);color:var(--ink);font-size:12px;border-bottom:0;border-left:1px solid var(--line)}
.solar-editor-map .leaflet-pm-toolbar .leaflet-pm-actions-container a.leaflet-pm-action:hover{background:var(--hover)}
:root[data-mantine-color-scheme=dark] .solar-editor-map .leaflet-pm-toolbar .control-icon{filter:invert(1)}
.solar-editor-map .leaflet-top.leaflet-right .leaflet-control-zoom{margin-bottom:10px}
.solar-map-frame{container-type:inline-size}
.solar-google-credit{bottom:0;left:0;right:60px;max-width:none;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:2px 8px;border-radius:0;background:#fffffff0;padding:2px 6px}
.solar-google-credit span{white-space:nowrap;font:500 12px/16px Arial,sans-serif}
.solar-google-credit small{font:10px/13px Arial,sans-serif}
@container(max-width:500px){.solar-google-credit{gap:0 6px;padding:2px 4px}
.solar-google-credit span{font-size:12px;line-height:14px}
.solar-google-credit small{font-size:12px;line-height:11px}
}
@media(max-width:900px) and (min-width:601px){
.solar-editor-map .solar-map-workspace>p[role=alert]{left:420px}
}
@media(max-width:600px){
.solar-editor-map .solar-map-workspace>p[role=alert]{left:12px;right:12px;bottom:52dvh}
}
:root{--data-accent:#ff5507}
:root[data-mantine-color-scheme=dark]{--data-accent:#ff5507}
a{color:var(--accent-text)}
.accuracy-screen h1{font-size:clamp(27px,2.4vw,37px)}
@media(max-width:700px){
.accuracy-screen select{max-width:100%}
}
.app-loading{padding:32px;color:var(--muted)}
.solar-google-credit small{font:10px/13px Arial,sans-serif}
@container(max-width:480px){.solar-google-credit small{font-size:9px}
}
[hidden]{display:none!important}
.solar-shell{max-width:1440px;padding:32px}
@media(max-width:1000px){.solar-shell{padding:24px}
}
@media(max-width:700px){.solar-shell{padding:24px 20px}
}
.app-loading{position:fixed;inset:0;display:grid;place-items:center;background:var(--ground);z-index:2000}
.improvement-exports{display:flex;gap:24px;flex-wrap:wrap;}
thead th{font-size:13px;font-weight:400;color:var(--muted);background:var(--hover)}
.accuracy-screen button.mantine-Accordion-control{padding:8px 14px;min-height:44px}
.accuracy-screen .mantine-Select-input,.accuracy-screen .mantine-TextInput-input,.accuracy-screen .mantine-DatePickerInput-input{width:100%;min-height:36px;padding-inline:12px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:6px;font-size:13px}
@media (max-width: 1024px) {
  .accuracy-screen .mantine-Select-input,
  .accuracy-screen .mantine-TextInput-input,
  .accuracy-screen .mantine-DatePickerInput-input {
    min-height: 44px;
  }
}
@media (max-width: 720px) {
  .accuracy-screen .mantine-Select-input,
  .accuracy-screen .mantine-TextInput-input,
  .accuracy-screen .mantine-DatePickerInput-input {
    font-size: 16px;
  }
}
.accuracy-screen .mantine-Switch-input{width:var(--switch-width);height:var(--switch-height);min-height:0;padding:0;margin:0;border-radius:var(--switch-radius)}
.accuracy-screen .mantine-SegmentedControl-input{width:0;min-height:0;padding:0;border:0}
.accuracy-screen .mantine-SegmentedControl-label{display:block;color:var(--muted);padding:6px 12px;font-size:12px}
.accuracy-screen .mantine-SegmentedControl-label[data-active]{color:var(--ink)}
.accuracy-screen .mantine-Select-root label,.accuracy-screen .mantine-TextInput-root label,.accuracy-screen .mantine-DatePickerInput-root label,.accuracy-screen .mantine-Switch-root label{display:inline-block;font-size:13px;margin:0}
.accuracy-screen .mantine-Select-root,.accuracy-screen .mantine-TextInput-root,.accuracy-screen .mantine-DatePickerInput-root{flex:1 1 200px;min-width:160px;max-width:320px}
.accuracy-screen .mantine-Switch-root{min-height:36px;display:flex;align-items:center}
.accuracy-screen th.mantine-Table-th,.accuracy-screen td.mantine-Table-td{padding:8px 12px;border-bottom:1px solid var(--line);font-size:13px;text-align:left}
.accuracy-screen .acc-num{text-align:right!important;font-variant-numeric:tabular-nums}
.accuracy-screen tbody th.mantine-Table-th{font-size:13px;font-weight:500;color:var(--ink);background:transparent}
.accuracy-screen .acc-sort{cursor:pointer;text-transform:inherit;letter-spacing:inherit;font-weight:inherit}
.accuracy-screen .acc-row-mark{background:var(--hover)}
.acc-heading{margin:16px 0 8px}
.acc-heading h2,h3.acc-heading{margin:0;font-size:16px}
.acc-note{font-size:12px;color:var(--muted);max-width:88ch;line-height:1.6}
.acc-disclosures{margin:16px 0}
.acc-chart{min-width:0;margin:12px 0}
.accuracy-screen .mantine-Accordion-label{font-size:14px;font-weight:600}
