/* The console's single-purpose pages: Sun and shade (sun.html) and Property report (property.html). Tokens, the
   header and the place-suggest dropdown come from app.css. Phone first; print styles for the report at the end. */
.tool-body{min-height:100svh;--sun:#e0a106;--sun-soft:#fbefc8;--shade:#8b97a6;--night:#e9ebe6;--terrain:#c9d3c0;--terrain-line:#7d8f74;--june:#d9480f;--equinox:#2f9e44;--december:#3156d7}
.tool-body [hidden]{display:none!important}
.tool-page{max-width:1240px;margin:0 auto;padding:22px 24px 64px;display:grid;gap:18px}
.tool-page h1{font-size:23px;letter-spacing:-.6px;margin:0 0 4px}
.tool-lead{color:#59625a;font-size:13.5px;line-height:1.55;margin:0 0 12px;max-width:72ch}
.tool-lead code,.recipe code,.tool-requests code{font:12px var(--mono);background:#f0f2ec;padding:1px 4px;border-radius:3px}
.tool-label{display:grid;gap:4px;font-size:12px;font-weight:560;color:#4c544d}
.tool-input{width:100%;height:38px;padding:7px 10px;border:1px solid var(--line-dark);border-radius:6px;background:#fff;color:var(--ink);font:14px var(--sans)}
.tool-input:focus-visible{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #3156d71f}
.place-host{position:relative;flex:1;min-width:0}
.tool-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.seg{display:flex;border:1px solid var(--line-dark);border-radius:6px;overflow:hidden;height:38px}.seg button{flex:1 1 auto;min-width:0;font-size:12.5px;color:#4c544d;background:#fff;white-space:nowrap;padding:0 6px}.seg button[aria-pressed=true]{background:var(--accent);color:#fff;font-weight:600}
.roof-row{margin-top:10px}
.tool-check{display:flex;gap:8px;align-items:flex-start;margin-top:10px;font-size:12.5px;color:#4c544d}.tool-check input{margin-top:2px}.tool-check small{display:block;color:var(--muted)}
.tool-button{height:38px;padding:0 16px;border-radius:6px;background:var(--accent);color:#fff;font-weight:600;font-size:13.5px}
.tool-button:disabled{opacity:.6}
.tool-button.ghost{background:#fff;color:var(--ink);border:1px solid var(--line-dark);font-weight:520;height:32px;padding:0 12px;font-size:12.5px}
.tool-status{margin:10px 0 0;font-size:13px;color:#59625a;min-height:20px}
.tool-status[data-kind=error]{color:#b42318}.tool-status[data-kind=busy]{color:var(--accent)}
.tool-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 18px;min-width:0}
.tool-card h2,.tool-card h3{font-size:14.5px;font-weight:640;letter-spacing:-.2px;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.card-sub{font-weight:400;font-size:12.5px;color:var(--muted)}
.card-lead{margin:0 0 10px;font-size:13px;color:#4c544d}
.note{font-size:12px;color:var(--muted);margin:8px 0 0}
.tool-map{height:340px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#eef0ea}
.tool-map.small{height:240px;margin-top:8px}
.tool-pin{border-radius:50%;background:var(--accent);border:3px solid #fff;box-shadow:0 1px 4px #0005}
.chart svg{display:block;width:100%;height:auto}
.chart .grid{stroke:#e6e9e2;stroke-width:1}.chart .grid.v{stroke:#eef0eb}
.chart .axis{stroke:#9aa39b;stroke-width:1}
.chart .tick{font:10.5px var(--sans);fill:#7a827b}
.chart .horizon{fill:var(--terrain);stroke:var(--terrain-line);stroke-width:1.2;fill-opacity:.85}
.chart .hz-building{stroke:#5b5f66;stroke-width:3.5;stroke-linecap:round}.chart .hz-trees{stroke:#2f7d32;stroke-width:3.5;stroke-linecap:round}
.chart .sun-path{stroke-width:2.4;stroke-linecap:round}
.chart .sun-path.chosen{stroke:var(--sun);stroke-width:3.2}.chart .sun-path.june{stroke:var(--june)}.chart .sun-path.equinox{stroke:var(--equinox)}.chart .sun-path.december{stroke:var(--december)}
.chart .sun-path.hidden-sun{stroke-dasharray:2 4;stroke-opacity:.55}
.chart .sun-now{fill:var(--sun);stroke:#fff;stroke-width:2}
.chart .bar-day{fill:var(--sun-soft)}.chart .bar-sun{fill:var(--sun)}
.chart .night{fill:var(--night)}.chart .lit{fill:var(--sun)}.chart .shade{fill:var(--shade)}
.legend{list-style:none;display:flex;flex-wrap:wrap;gap:4px 14px;margin:8px 0 0;padding:0;font-size:11.5px;color:#5d655e}
.legend li{display:flex;align-items:center;gap:6px}
.legend .k{display:inline-block;width:14px;height:4px;border-radius:2px}
.legend .k.chosen{background:var(--sun);height:5px}.legend .k.june{background:var(--june)}.legend .k.equinox{background:var(--equinox)}.legend .k.december{background:var(--december)}
.legend .k.terrain{background:var(--terrain);border:1px solid var(--terrain-line);height:10px}.legend .k.hidden{background:repeating-linear-gradient(90deg,#999 0 2px,transparent 2px 5px)}
.legend .k.building{background:#5b5f66;height:5px}.legend .k.trees{background:#2f7d32;height:5px}
.legend .k.lit,.legend .k.bar-sun{background:var(--sun);height:10px}.legend .k.shade{background:var(--shade);height:10px}.legend .k.night{background:var(--night);height:10px;border:1px solid #d5d9d0}.legend .k.bar-day{background:var(--sun-soft);height:10px}
.fact{display:grid;gap:1px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;min-width:0;margin:0}
.fact-k{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;margin:0}
.fact-v{font-size:19px;font-weight:650;letter-spacing:-.3px;margin:0;overflow-wrap:normal;word-break:normal;hyphens:none}
.fact-sub{font-size:12px;color:#5d655e;margin:0}
table.mini{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:8px}
.mini td{overflow-wrap:anywhere}.mini th{overflow-wrap:normal;word-break:normal;hyphens:none}   /* a long endpoint or value wraps in its cell (320 px phones) */
table.mini th,table.mini td{text-align:left;padding:5px 8px 5px 0;border-bottom:1px solid #eef0eb;vertical-align:top}
table.mini tr:first-child th{font-weight:560;color:var(--muted);font-size:11.5px}
table.mini th{font-weight:560}

/* Sun and shade */
.sun-page{grid-template-columns:minmax(300px,380px) minmax(0,1fr);align-items:start}
.sun-page .tool-controls{position:sticky;top:12px;display:grid;align-content:start}
/* the form columns stay on screen while the results scroll; a column taller than the window scrolls inside, the dock
   staying at its bottom */
@media(min-width:861px){.sun-page .tool-controls,.match-page .tool-controls{position:sticky;top:12px;max-height:calc(100svh - 24px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px}}
.sun-page .tool-results{display:grid;gap:14px;min-width:0}
.sun-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
#sun-run{margin-top:4px}
.tool-requests{display:grid;gap:4px;margin-top:12px;font-size:11.5px;min-width:0}
.tool-requests code{overflow-wrap:anywhere}
.req-title{color:var(--muted);text-transform:uppercase;letter-spacing:.4px;font-size:11px}
.recipe summary{cursor:pointer;list-style:none}.recipe summary::-webkit-details-marker{display:none}.recipe summary h2{margin:0}
.recipe summary h2::after{content:"▾";color:var(--muted);font-weight:400}
.recipe ol{padding-left:18px;font-size:13px;line-height:1.55;color:#3f4740}.recipe p{font-size:12.5px;color:#5d655e}

/* Property report */
.property-page{max-width:1000px}
/* a wide screen: the form in a panel on the left (sticky, its run button at its foot), the report beside it, as the
   console and the Sun page (2026-11-24 polish) */
@media(min-width:900px){.property-page{max-width:1240px;grid-template-columns:minmax(300px,380px) minmax(0,1fr);align-items:start}
.property-page>.property-search{grid-column:1;grid-row:1/span 3;position:sticky;top:12px;max-height:calc(100svh - 24px);overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
.property-page>:not(.property-search){grid-column:2;min-width:0}
.property-page .tool-map.small{height:220px}}
.property-search{display:grid}
.search-row{display:flex;gap:8px}
.pick-map{margin-top:12px;font-size:12.5px;color:#4c544d}.pick-map-label{margin:0 0 6px}
.report{display:grid;gap:14px}
.report-head{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:flex-end;justify-content:space-between;border-bottom:2px solid var(--ink);padding-bottom:12px}
.report-kicker{margin:0;font-size:11.5px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:600}
.report-head h2{margin:2px 0 4px;font-size:24px;letter-spacing:-.6px;line-height:1.2}
.report-meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;font-size:12.5px;color:#5d655e}
.report-meta .key{font:12px var(--mono);background:var(--accent-soft);color:var(--accent);padding:1px 6px;border-radius:4px}
.report-actions{display:flex;gap:6px}
.report-top{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:stretch}
.report-map{height:auto;min-height:300px}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.facts .fact:last-child:nth-child(odd){grid-column:1/-1}
.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.places{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13px}
.places li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;border-bottom:1px solid #eef0eb;padding-bottom:5px}
.eye-roof td:nth-child(2),.eye-roof td:nth-child(3),.eye-roof th:nth-child(2),.eye-roof th:nth-child(3){text-align:right}
.places li span{color:var(--muted);font-size:12px;text-align:right}
.built .notes{font-size:12px;color:#5d655e;padding-left:18px;margin:10px 0 0}
.credits{font-size:11px;color:var(--muted);margin:8px 0 0}

/* The shared frame on the tool pages (ui-frame.css; owner 2026-11-21): the dock (Clear, the reset menu, the page's one
   primary action) is the last thing in the form column; the pickers sit under the box they fill; an empty results
   column says what to do next; the property report's section chips stay on screen while it scrolls. */
.tool-pickers{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.tool-chip-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 11px;border:1px solid var(--line-dark);border-radius:16px;background:#fff;color:#3f4740;font-size:12.5px;font-weight:540;cursor:pointer}
.tool-chip-button:hover{border-color:var(--accent);color:var(--accent)}
.tool-chip-button:disabled{opacity:.6;cursor:progress}
.tool-chip-button svg{width:15px;height:15px}
.tool-empty{display:grid;place-content:center;justify-items:center;gap:4px;min-height:160px;padding:22px;border:1px dashed var(--line-dark);border-radius:10px;color:var(--muted);font-size:13px;text-align:center}
.tool-empty strong{color:#3f4740;font-size:14px}
.tool-more{margin-top:10px;font-size:12.5px;color:#4c544d}
.tool-more>summary{cursor:pointer;width:max-content;font-weight:560;min-height:28px;display:flex;align-items:center}
.tool-code-card .req-title{display:block;margin-bottom:4px}
.tool-code-card pre{margin:8px 0 0;max-height:420px;overflow:auto;font:11.5px/1.45 var(--mono);background:#f0f2ec;padding:8px 10px;border-radius:6px;white-space:pre;tab-size:2}
.tool-code-card>summary{cursor:pointer;list-style:none}.tool-code-card>summary::-webkit-details-marker{display:none}.tool-code-card>summary h2,.tool-code-card>summary h3{margin:0}
.tool-code-card>summary :is(h2,h3)::after{content:"▾";color:var(--muted);font-weight:400}
.tool-results[aria-busy=true] .tool-card:not([hidden]){opacity:.6;transition:opacity .15s}
@media(min-width:621px){
  .tool-controls>.uf-dock,.property-search>.uf-dock,.property-page>.uf-dock{margin:14px 0 0;padding:10px;border:1px solid var(--line);border-radius:10px;box-shadow:0 -4px 14px #1b2c230d}
  .property-page>.uf-dock{margin:0}
  .property-page>.uf-dock .uf-slot{flex:0 1 320px;margin-left:auto}
}
/* the report's sections: a row of chips that stays at the top while the report scrolls (all widths) */
.report-nav{position:sticky;top:0;z-index:20;display:flex;gap:6px;margin:0 -4px;padding:8px 4px;background:var(--paper);overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.report-nav::-webkit-scrollbar{display:none}
.report-nav a{flex:none;display:inline-flex;align-items:center;min-height:30px;padding:0 11px;border:1px solid var(--line-dark);border-radius:15px;background:#fff;color:#3f4740;font-size:12.5px;font-weight:540;white-space:nowrap}
.report-nav a:hover{border-color:var(--accent);color:var(--accent)}
.report-nav a[aria-current=true]{background:var(--accent);border-color:var(--accent);color:#fff}
.report .tool-card,.report-head{scroll-margin-top:60px}
@media(prefers-reduced-motion:reduce){.tool-results[aria-busy=true] .tool-card{transition:none}}

@media(max-width:860px){
  .sun-page{grid-template-columns:minmax(0,1fr)}
  .sun-page .tool-controls{position:static}
  .report-top,.report-grid{grid-template-columns:minmax(0,1fr)}
  .report-map{min-height:240px}
}
@media(max-width:620px){
  .tool-page{padding:16px 16px 48px;gap:14px}
  .tool-page h1{font-size:21px}
  .tool-input{font-size:16px;height:44px}
  .tool-button{height:44px}
  .tool-button.ghost{height:44px}
  .seg{height:44px}
  .tool-chip-button,.report-nav a{min-height:44px;border-radius:22px}
  .tool-more>summary{min-height:44px}
  .tool-map{height:280px}
  .report-head h2{font-size:20px}
  .report-actions{width:100%}.report-actions .tool-button{flex:1}
  .fact-v{font-size:17px}
}

/* Print: the report alone, one column, no map controls or search */
@media print{
  @page{margin:14mm}
  .tool-body{background:#fff}
  .app-header,.skip-link,.property-search,.report-actions,#turnstile-box,.report-map,.report-nav,.tool-code-card{display:none!important}
  .tool-page{padding:0;max-width:none}
  .report-top,.report-grid{grid-template-columns:1fr 1fr}
  .facts{grid-template-columns:repeat(4,1fr)}.report-top{grid-template-columns:1fr}
  .tool-card,.fact{break-inside:avoid;border-color:#ccc}
  .report-head{border-bottom-width:1px}
}
.r-request{display:block;font:12px var(--mono);overflow-wrap:anywhere;background:#f0f2ec;padding:4px 6px;border-radius:4px}

/* one control height (app.css "Form system", owner 2026-11-24): inputs and selects alike */
:is(input,select).tool-input{height:var(--f-h)!important}

/* ==== dark theme: generated by apps/dev-console/dark-theme.mjs from the rules above: do not edit by hand ==== */
:root[data-theme="dark"]{color-scheme:dark}
:root[data-theme="dark"] .tool-body{--sun:#efaf11;--sun-soft:#363532;--shade:#71757a;--night:#2e2e2d;--terrain:#494e46;--terrain-line:#898e87;--june:#e6551c;--equinox:#3aad50;--december:#4c6bd5}
:root[data-theme="dark"] .tool-lead{color:#aaacaa}
:root[data-theme="dark"] .tool-lead code,:root[data-theme="dark"] .recipe code,:root[data-theme="dark"] .tool-requests code{background:#282927}
:root[data-theme="dark"] .tool-label{color:#b6b8b6}
:root[data-theme="dark"] .tool-input{background:#1a1a1a}
:root[data-theme="dark"] .seg button{color:#b6b8b6;background:#1a1a1a}
:root[data-theme="dark"] .tool-check{color:#b6b8b6}
:root[data-theme="dark"] .tool-button.ghost{background:#1a1a1a}
:root[data-theme="dark"] .tool-status{color:#aaacaa}
:root[data-theme="dark"] .tool-status[data-kind=error]{color:#db3b2e}
:root[data-theme="dark"] .card-lead{color:#b6b8b6}
:root[data-theme="dark"] .tool-map{background:#2a2b29}
:root[data-theme="dark"] .tool-pin{border:3px solid #1a1a1a}
:root[data-theme="dark"] .chart .axis{stroke:#6f726f}
:root[data-theme="dark"] .chart .tick{fill:#8d8f8d}
:root[data-theme="dark"] .chart .hz-building{stroke:#a7a8aa}
:root[data-theme="dark"] .chart .hz-trees{stroke:#44a548}
:root[data-theme="dark"] .legend{color:#a7a9a7}
:root[data-theme="dark"] .legend .k.hidden{background:repeating-linear-gradient(90deg,#757575 0 2px,transparent 2px 5px)}
:root[data-theme="dark"] .legend .k.building{background:#a7a8aa}
:root[data-theme="dark"] .legend .k.night{border:1px solid #40423e}
:root[data-theme="dark"] .fact{background:#1a1a1a}
:root[data-theme="dark"] .fact-sub{color:#a7a9a7}
:root[data-theme="dark"] table.mini th,:root[data-theme="dark"] table.mini td{border-bottom:1px solid #292a29}
:root[data-theme="dark"] .recipe ol{color:#c2c4c2}
:root[data-theme="dark"] .recipe p{color:#a7a9a7}
:root[data-theme="dark"] .pick-map{color:#b6b8b6}
:root[data-theme="dark"] .report-meta{color:#a7a9a7}
:root[data-theme="dark"] .places li{border-bottom:1px solid #292a29}
:root[data-theme="dark"] .built .notes{color:#a7a9a7}
:root[data-theme="dark"] .tool-chip-button{background:#1a1a1a;color:#c2c4c2}
:root[data-theme="dark"] .tool-empty strong{color:#c2c4c2}
:root[data-theme="dark"] .tool-more{color:#b6b8b6}
:root[data-theme="dark"] .tool-code-card pre{background:#282927}
:root[data-theme="dark"] .report-nav a{background:#1a1a1a;color:#c2c4c2}
:root[data-theme="dark"] .r-request{background:#282927}
/* ==== end of the generated dark theme ==== */
