/* Private farm workspace: Troll Haven charcoal, forest, cream and warm gold. */
:root{
  color-scheme:dark;
  --thm-bg:#111914;
  --thm-panel:#1c2921;
  --thm-panel-raised:#243329;
  --thm-input:#142019;
  --thm-ink:#f2e8d5;
  --thm-cream:#ead7b0;
  --thm-gold:#c49a55;
  --thm-gold-bright:#dfb977;
  --thm-muted:#bac3b7;
  --thm-line:#3d4b3f;
  --thm-gold-line:#c49a5547;
  --thm-green:#a4d6ac;
  --thm-yellow:#e7c56d;
  --thm-red:#f4a197;
  --thm-chart-grid:#3d4b3f;
  --thm-chart-text:#bac3b7;
  --thm-chart-line:#a4d6ac;
  --thm-chart-partial:#e7c56d;
  --thm-chart-green:#a4d6ac;
  --thm-chart-yellow:#e7c56d;
  --thm-chart-red:#f4a197;
  --thm-chart-gray:#b8c1b8;
  font-family:Arial,"Segoe UI",Helvetica,sans-serif;
  color:var(--thm-ink);
  background:var(--thm-bg);
}
body.thm-dashboard,body.loginpage{color:var(--thm-ink);background:var(--thm-bg)}
.thm-dashboard main{color:var(--thm-ink)}
.thm-dashboard h1,.thm-dashboard h2,.loginpage h1,.loginpage h2{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:400;
  color:var(--thm-ink);
  letter-spacing:-.035em;
}
.thm-dashboard h1{font-size:2.5rem;line-height:1.15}
.thm-dashboard .eyebrow,.loginpage .eyebrow{color:var(--thm-gold-bright)}
.thm-dashboard .muted,.thm-dashboard .heading .muted{color:var(--thm-muted)}
.thm-dashboard a,.loginpage a{color:var(--thm-cream)}
.thm-dashboard a:hover,.loginpage a:hover{color:var(--thm-gold-bright)}
.thm-dashboard aside{background:#171613;color:var(--thm-cream);border-right:1px solid var(--thm-gold-line)}
.thm-dashboard aside .wordmark,.loginbox .wordmark{
  display:flex;flex-direction:column;align-items:flex-start;gap:15px;
  color:var(--thm-cream);font-family:Georgia,"Times New Roman",serif;
  font-size:1.2rem;line-height:1.35;letter-spacing:1.5px;
}
.portal-brand-mark{display:block;width:76px;height:76px;object-fit:contain;flex-shrink:0}
.brand-name{display:block;max-width:100%}
.thm-dashboard .wordmark small,.loginbox .wordmark small{
  color:var(--thm-muted);font-family:Arial,"Segoe UI",sans-serif;
  font-size:.6rem;letter-spacing:1.8px;line-height:1.7;margin-top:7px;
}
.thm-dashboard .navlabel{color:var(--thm-gold-bright);margin-top:35px}
.thm-dashboard .nav{color:#d1d8cc}
.thm-dashboard .nav.active,.thm-dashboard .nav:hover{
  color:var(--thm-cream);background:#2b3023;
  box-shadow:inset 3px 0 0 var(--thm-gold);
}
.thm-dashboard .asidebottom b{font-family:Georgia,"Times New Roman",serif;font-size:1.12rem;font-weight:400;color:var(--thm-cream)}
.thm-dashboard .asidebottom p{color:#b9b09f}
.thm-dashboard .asidebottom a{color:var(--thm-cream)}
.thm-dashboard header{border-bottom-color:var(--thm-gold-line);color:var(--thm-muted)}
.thm-dashboard .private{color:var(--thm-cream);border-color:#6a5b3c;background:#25291f}
.thm-dashboard .signout{color:var(--thm-cream)}
.thm-dashboard button,.loginpage button{
  color:var(--thm-ink);background:var(--thm-panel-raised);border-color:#59664f;
}
.thm-dashboard button:hover,.loginpage button:hover{background:#304333;border-color:#82916d;color:var(--thm-ink)}
.thm-dashboard button.primary,.loginbox #wp-submit,.loginpage .button{
  color:#171613;background:var(--thm-gold);border-color:var(--thm-gold);
  font-weight:600;
}
.thm-dashboard button.primary:hover,.loginbox #wp-submit:hover,.loginpage .button:hover{
  color:#171613;background:var(--thm-gold-bright);border-color:var(--thm-gold-bright);
}
.thm-dashboard :is(button,a,input,select,summary):focus-visible,.loginpage :is(button,a,input,select,summary):focus-visible{
  outline:3px solid var(--thm-gold-bright);outline-offset:3px;
}
.thm-dashboard button:disabled{opacity:.6}
.thm-dashboard .notice{color:#d3decf;background:#1e3025;border-color:#4b6350}
.thm-dashboard .notice span{color:var(--thm-muted)}
.thm-dashboard .notice.error{color:#ffd1c8;background:#37251f;border-color:#956050}
.thm-dashboard .pricing-note{margin-top:12px;background:#23291f;border-color:var(--thm-gold-line)}
.thm-dashboard .pricing-note b{color:var(--thm-cream)}
.thm-dashboard .pricing-note p{margin:8px 0 0;color:var(--thm-muted);font-size:.8rem;line-height:1.7}
.thm-dashboard .pricing-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 15px;margin-top:20px}
.thm-dashboard #settingsDialog select{display:block;margin:9px 0 18px;width:100%;max-width:none}
.thm-dashboard #settingsDialog label{line-height:1.6;min-width:0}
.thm-dashboard #settingsDialog input{min-width:0;max-width:100%}
.thm-dashboard .stats #cost{overflow-wrap:anywhere;font-size:1.6rem}
@media(max-width:520px){.thm-dashboard .pricing-fields{grid-template-columns:1fr}.thm-dashboard .stats #cost{font-size:1.3rem}}
.thm-dashboard .segments{background:#16221b;border-color:var(--thm-line)}
.thm-dashboard .segments button{color:var(--thm-muted);background:transparent}
.thm-dashboard .segments button.selected{color:var(--thm-cream);background:#334333;box-shadow:none}
.thm-dashboard .segments button:hover{color:var(--thm-cream);background:#2c3b2d}
.thm-dashboard input,.thm-dashboard select,.loginpage .input{
  color:var(--thm-ink);background:var(--thm-input);border-color:#64715b;
  accent-color:var(--thm-gold);color-scheme:dark;
}
.thm-dashboard input::placeholder,.loginpage input::placeholder{color:#a5b09f;opacity:1}
.thm-dashboard .search{background:var(--thm-input);border-color:#64715b}
.thm-dashboard .search input{background:transparent;color:var(--thm-ink)}
.thm-dashboard .search input:focus-visible{outline:2px solid var(--thm-gold-bright);outline-offset:3px}
.thm-dashboard :is(dialog input[type=text],dialog input[type=number],#rename){color:var(--thm-ink);background:var(--thm-input);border-color:#64715b}
.thm-dashboard input[type=date]{color:var(--thm-ink);background:var(--thm-input);border-color:#64715b;color-scheme:dark}
.thm-dashboard input[type=file]::file-selector-button{
  color:var(--thm-cream);background:var(--thm-panel-raised);border:1px solid #64715b;
  border-radius:4px;padding:7px 9px;margin-right:10px;
}
.thm-dashboard input:-webkit-autofill,.loginpage input:-webkit-autofill{
  -webkit-text-fill-color:var(--thm-ink);caret-color:var(--thm-ink);
  box-shadow:0 0 0 1000px var(--thm-input) inset;
}
.thm-dashboard .stats article,.thm-dashboard .panel{
  color:var(--thm-ink);background:var(--thm-panel);border-color:var(--thm-line);
}
.thm-dashboard .stats p,.thm-dashboard .stats small,.thm-dashboard .unit{color:var(--thm-muted)}
.thm-dashboard .stats p span{color:var(--thm-green)}
.thm-dashboard .stats h2{color:var(--thm-cream);font-family:Arial,"Segoe UI",sans-serif;font-weight:500;letter-spacing:-.04em}
.thm-dashboard .panel h3{font-family:Georgia,"Times New Roman",serif;font-size:1.2rem;font-weight:400;color:var(--thm-cream)}
.thm-dashboard .legend{color:var(--thm-green)}
.thm-dashboard #chartHint{color:var(--thm-muted)}
.thm-dashboard .bartrack{background:#344436}
.thm-dashboard .bartrack i{background:#a4bd85}
.thm-dashboard th{color:var(--thm-cream);background:#16231b}
.thm-dashboard td{color:var(--thm-ink);border-bottom-color:var(--thm-line)}
.thm-dashboard td small{color:var(--thm-muted)}
.thm-dashboard td:first-child button{color:var(--thm-ink);background:transparent}
.thm-dashboard td:first-child button:hover{color:var(--thm-cream)}
.thm-dashboard .metericon,.thm-dashboard .badge{color:#c1d9b6;background:#2b4030}
.thm-dashboard #empty{color:var(--thm-muted)}
.thm-dashboard footer,.thm-dashboard .footnote{color:var(--thm-muted)}
.thm-dashboard footer a{color:var(--thm-cream)}
.thm-dashboard footer input{color:var(--thm-ink);background:var(--thm-input);border-color:#64715b}
.thm-dashboard dialog{
  color:var(--thm-ink);background:#1c2921;border-color:#8b754b;
  box-shadow:0 24px 100px #0009;
}
.thm-dashboard dialog::backdrop{background:#080d0bb8}
.thm-dashboard dialog h2{color:var(--thm-cream)}
.thm-dashboard dialog small,.thm-dashboard dialog .muted{color:var(--thm-muted)}
.thm-dashboard dialog code{color:#e1ce9f;background:#111b15;padding:2px 4px;border-radius:3px}
.thm-dashboard .drop{background:#17231b;border-color:#8b936d;color:var(--thm-ink)}
.thm-dashboard .check{color:var(--thm-ink)}
.thm-dashboard .meter-wall{color:var(--thm-ink)}
.thm-dashboard .meter-wall .wall-head h2,.thm-dashboard .meter-wall + .history-title{color:var(--thm-cream)}
.thm-dashboard .meter-wall :is(.wall-context,.wall-legend,.wall-number,.wall-reading-date,.wall-coverage,.wall-note){color:var(--thm-muted)}
.thm-dashboard .meter-wall .status-key{--wall-status:#c0c8c1}
.thm-dashboard .meter-wall .status-key[data-color=green]{--wall-status:var(--thm-green)}
.thm-dashboard .meter-wall .status-key[data-color=yellow]{--wall-status:var(--thm-yellow)}
.thm-dashboard .meter-wall .status-key[data-color=red]{--wall-status:var(--thm-red)}
.thm-dashboard .meter-wall .wall-meter{
  --wall-status:#c0c8c1;--wall-tint:#2c342e;--wall-ring:#95a398;
  color:var(--thm-ink);background:#1c2921;border-color:#4b5949;
}
.thm-dashboard .meter-wall .wall-meter[data-status=green]{--wall-status:#a4d6ac;--wall-tint:#203729;--wall-ring:#79af84}
.thm-dashboard .meter-wall .wall-meter[data-status=yellow]{--wall-status:#e7c56d;--wall-tint:#3d331a;--wall-ring:#dbb756}
.thm-dashboard .meter-wall .wall-meter[data-status=red]{--wall-status:#f4a197;--wall-tint:#41251f;--wall-ring:#e08a7a}
.thm-dashboard .meter-wall .wall-unavailable .wall-meter{--wall-status:#c0c8c1;--wall-tint:#2c342e;--wall-ring:#95a398}
.thm-dashboard .meter-wall:has(.wall-unavailable) #wallPeriod{color:#e3c693}
.thm-dashboard .meter-wall .wall-meter-top h3{color:var(--thm-cream);font-family:Georgia,"Times New Roman",serif;font-size:1.16rem;font-weight:400}
.thm-dashboard .meter-wall .wall-face{background:var(--wall-tint);box-shadow:inset 0 0 0 5px #1018114d}
.thm-dashboard .meter-wall .wall-face-label,.thm-dashboard .meter-wall .wall-unit{color:#d3ddcb}
.thm-dashboard .meter-wall .wall-value{color:#e6edce;background:#152018;font-family:Consolas,ui-monospace,monospace;box-shadow:inset 0 1px 5px #0005}
.thm-dashboard .meter-wall .wall-facts{border-top-color:var(--thm-line)}
.thm-dashboard .meter-wall .wall-facts dt{color:var(--thm-muted)}
.thm-dashboard .meter-wall .wall-facts dd{color:var(--thm-ink)}
.thm-dashboard .meter-wall .wall-history-group{border-top-color:var(--thm-gold-line)}
.thm-dashboard .meter-wall .wall-history-group>summary{color:var(--thm-cream)}
.thm-dashboard .meter-wall .wall-history-group>summary:focus-visible{outline-color:var(--thm-gold-bright)}
.thm-dashboard .meter-wall .wall-history-row{color:var(--thm-muted);border-bottom-color:var(--thm-line)}
.thm-dashboard .meter-wall .wall-history-row>span:first-child{color:var(--thm-cream)}
.thm-dashboard .meter-wall .wall-history-row small{color:var(--thm-muted)}
.loginpage{background:#111713}
.loginpage .loginbox{
  background:#1c251e;border-color:#8b754b;color:var(--thm-ink);
  box-shadow:0 18px 80px #0007;
}
.loginbox .wordmark{flex-direction:row;align-items:center;gap:17px;margin-bottom:30px}
.loginbox .wordmark small{color:#b9b09f}
.loginbox h1{color:var(--thm-ink)}
.loginbox p{color:var(--thm-muted)}
.loginbox label{color:var(--thm-cream)}
.loginbox .input{color:var(--thm-ink);background:var(--thm-input);border-color:#6d795f}
.loginbox .subtle{color:var(--thm-cream)}
.loginbox .loginhint{color:var(--thm-muted);border-top-color:var(--thm-gold-line)}
.loginbox .eyebrow{color:var(--thm-gold-bright)}
@media(max-width:1150px){.thm-dashboard aside .wordmark{font-size:1.06rem;letter-spacing:1px}.thm-dashboard aside .wordmark small{font-size:.56rem;letter-spacing:1.5px}}
@media(max-width:700px){
  .thm-dashboard aside .wordmark{flex-direction:row;align-items:center;gap:13px;font-size:1.18rem}
  .thm-dashboard aside .portal-brand-mark{width:50px;height:50px}
  .thm-dashboard aside .wordmark small{font-size:.57rem;letter-spacing:1.6px}
  .thm-dashboard aside{border-right:0;border-bottom:1px solid var(--thm-gold-line)}
  .thm-dashboard h1{font-size:2.1rem}
  .thm-dashboard .stats h2{font-size:1.5rem}
}
@media(max-width:520px){
  .loginbox .wordmark{gap:12px;flex-wrap:wrap;font-size:1rem;letter-spacing:1px}
  .loginbox .portal-brand-mark{width:56px;height:56px}
  .loginbox .wordmark small{font-size:.54rem;letter-spacing:1px}
}
@media(min-width:701px) and (max-height:700px){.thm-dashboard .asidebottom{display:none}}

.thm-dashboard .monthly-usage{color:var(--thm-ink);background:var(--thm-panel);border-color:var(--thm-line)}
.thm-dashboard .monthly-usage .monthly-head h2{color:var(--thm-cream)}
.thm-dashboard .monthly-usage .monthly-caption{color:var(--thm-muted)}
.thm-dashboard .monthly-usage .monthly-table-wrap{scrollbar-color:#75856c #142019}
.thm-dashboard .monthly-usage .monthly-table-wrap:focus-visible{outline-color:var(--thm-gold-bright)}
.thm-dashboard .monthly-usage .monthly-table th{color:var(--thm-cream);background:#16231b}
.thm-dashboard .monthly-usage .monthly-table td{color:var(--thm-ink);border-bottom-color:var(--thm-line)}
.thm-dashboard .monthly-usage .monthly-table th[scope="row"]{background:transparent;border-bottom-color:var(--thm-line)}
.thm-dashboard .monthly-usage .monthly-table td>small,.thm-dashboard .monthly-usage .monthly-table th[scope="row"] small{color:var(--thm-muted)}
.thm-dashboard .monthly-usage .monthly-table td:first-child{color:var(--thm-cream)}
.thm-dashboard .monthly-usage .monthly-table td:first-child small,.thm-dashboard .monthly-usage .monthly-reading small{color:var(--thm-muted)}
.thm-dashboard .monthly-change{color:var(--thm-cream)}
.thm-dashboard .monthly-change[data-direction="up"]{color:var(--thm-yellow)}
.thm-dashboard .monthly-change[data-direction="down"]{color:var(--thm-green)}
.thm-dashboard .monthly-change[data-direction="flat"]{color:var(--thm-cream)}
.thm-dashboard .monthly-change[data-direction="unknown"]{color:var(--thm-muted)}
.thm-dashboard .meter-wall .wall-monthly{border-top-color:var(--thm-line)}
.thm-dashboard .meter-wall .wall-monthly h4{color:var(--thm-cream)}
.thm-dashboard .meter-wall .wall-monthly p>span,.thm-dashboard .meter-wall .wall-monthly small{color:var(--thm-muted)}

/* Plain-language daily briefing, ahead of the individual meters. */
.thm-dashboard .executive-summary{
  --executive-accent:#91b993;
  --executive-badge-ink:#a4d6ac;
  --executive-badge-bg:#203729;
  min-width:0;padding:22px;margin:24px 0 28px;
  color:var(--thm-ink);background:#1b281f;
  border:1px solid #53674c;border-radius:12px;
}
.thm-dashboard .executive-summary[data-tone="attention"]{
  --executive-accent:#dbb279;
  --executive-badge-ink:#f4a197;
  --executive-badge-bg:#41251f;
  border-color:#976d4c;
}
.thm-dashboard .executive-summary[data-tone="watch"]{
  --executive-accent:#dfb977;
  --executive-badge-ink:#e7c56d;
  --executive-badge-bg:#3d331a;
  border-color:#8d7548;
}
.thm-dashboard .executive-summary[data-tone="unavailable"]{
  --executive-accent:#c0c8c1;
  --executive-badge-ink:#c0c8c1;
  --executive-badge-bg:#2c342e;
  border-color:#647064;
}
.thm-dashboard .executive-head{
  display:flex;align-items:flex-start;justify-content:space-between;
  flex-wrap:wrap;gap:12px 22px;
}
.thm-dashboard .executive-head>div{min-width:0}
.thm-dashboard .executive-head h2{
  margin:0;color:var(--thm-cream);font-family:Georgia,"Times New Roman",serif;
  font-size:1.85rem;font-weight:400;letter-spacing:-.035em;line-height:1.25;
}
.thm-dashboard .executive-period{
  margin:7px 0 0;color:var(--thm-muted);font-size:.8rem;line-height:1.7;
}
.thm-dashboard .executive-badge{
  display:inline-flex;align-items:center;gap:7px;max-width:100%;
  padding:6px 10px;color:var(--executive-badge-ink);
  background:var(--executive-badge-bg);border-radius:6px;
  font-size:.75rem;font-weight:600;line-height:1.6;
}
.thm-dashboard .executive-badge::before{
  content:"";width:7px;height:7px;flex-shrink:0;
  border-radius:50%;background:currentColor;
}
.thm-dashboard .executive-lead{
  margin:17px 0 0;max-width:1000px;color:var(--thm-cream);
  font-size:.95rem;line-height:1.75;
}
.thm-dashboard .executive-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px 25px;margin-top:18px;
}
.thm-dashboard .executive-item{
  min-width:0;padding-top:12px;border-top:1px solid var(--thm-line);
}
.thm-dashboard .executive-item h3{
  margin:0 0 6px;color:var(--executive-accent);
  font-family:Arial,"Segoe UI",Helvetica,sans-serif;
  font-size:.75rem;font-weight:600;letter-spacing:.05em;line-height:1.6;
}
.thm-dashboard .executive-item p{
  margin:0;color:var(--thm-ink);font-size:.875rem;line-height:1.75;
  overflow-wrap:anywhere;
}
.thm-dashboard .executive-item strong{color:var(--thm-cream);font-weight:600}
.thm-dashboard .executive-footnote{
  margin:17px 0 0;color:var(--thm-muted);font-size:.75rem;line-height:1.75;
}
@media(max-width:700px){
  .thm-dashboard .executive-summary{padding:20px;margin:20px 0 24px}
  .thm-dashboard .executive-head{gap:10px}
  .thm-dashboard .executive-head h2{font-size:1.6rem}
  .thm-dashboard .executive-grid{grid-template-columns:1fr;gap:15px;margin-top:16px}
  .thm-dashboard .executive-lead{margin-top:15px}
}

/* Daily comparisons share the meter wall's status palette; graph marks stay still. */
.thm-dashboard #chart{min-width:0;max-width:100%;width:100%}
.thm-dashboard #chart svg{display:block;max-width:100%}
.thm-dashboard #chart .chart-segment{
  fill:none;stroke-width:2.8;vector-effect:non-scaling-stroke;
  stroke-linecap:round;stroke-linejoin:round;animation:none;
}
.thm-dashboard #chart .chart-point{
  stroke:var(--thm-panel);stroke-width:1;vector-effect:non-scaling-stroke;animation:none;
}
.thm-dashboard #chart .chart-segment[data-status="green"]{stroke:var(--thm-chart-green)}
.thm-dashboard #chart .chart-segment[data-status="yellow"]{stroke:var(--thm-chart-yellow)}
.thm-dashboard #chart .chart-segment[data-status="red"]{stroke:var(--thm-chart-red)}
.thm-dashboard #chart .chart-segment[data-status="gray"]{stroke:var(--thm-chart-gray);stroke-dasharray:4 4}
.thm-dashboard #chart .chart-point[data-status="green"]{fill:var(--thm-chart-green)}
.thm-dashboard #chart .chart-point[data-status="yellow"]{fill:var(--thm-chart-yellow)}
.thm-dashboard #chart .chart-point[data-status="red"]{fill:var(--thm-chart-red)}
.thm-dashboard #chart .chart-point[data-status="gray"]{fill:var(--thm-chart-gray)}
.thm-dashboard .chart-status-legend{
  display:flex;flex-wrap:wrap;align-items:center;gap:7px 16px;
  color:var(--thm-muted);font-size:.75rem;line-height:1.7;
}
.thm-dashboard .chart-status-legend>span{
  display:inline-flex;align-items:center;gap:7px;--chart-legend-color:var(--thm-chart-gray);
}
.thm-dashboard .chart-status-legend>span[data-status="green"]{--chart-legend-color:var(--thm-chart-green)}
.thm-dashboard .chart-status-legend>span[data-status="yellow"]{--chart-legend-color:var(--thm-chart-yellow)}
.thm-dashboard .chart-status-legend>span[data-status="red"]{--chart-legend-color:var(--thm-chart-red)}
.thm-dashboard .chart-status-legend>span::before{
  content:"";display:block;width:19px;height:0;flex-shrink:0;
  border-top:3px solid var(--chart-legend-color);
}
.thm-dashboard .chart-status-legend>span[data-status="gray"]::before{border-top-style:dashed}
.thm-dashboard .chart-day-details{margin-top:14px;color:var(--thm-muted)}
.thm-dashboard .chart-day-details>summary{
  color:var(--thm-cream);font-size:.8rem;font-weight:500;line-height:1.7;
  width:fit-content;cursor:pointer;
}
.thm-dashboard .chart-day-details>summary:focus-visible{outline:3px solid var(--thm-gold-bright);outline-offset:4px}
.thm-dashboard .chart-day-details #chartDayDetails{
  display:grid;gap:7px;margin:11px 0 0;padding-left:1.25rem;
  color:var(--thm-muted);font-size:.75rem;line-height:1.75;
}
.thm-dashboard .chart-day-details #chartDayDetails li{padding-left:3px;overflow-wrap:anywhere}
.thm-dashboard .chart-day-details #chartDayDetails strong{color:var(--thm-cream);font-weight:500}
@media(max-width:700px){.thm-dashboard .chart-status-legend{display:flex;gap:7px 13px}}
@media(pointer:coarse){.thm-dashboard .chart-day-details>summary{min-height:44px;padding:8px 0}}
