@charset "UTF-8";
.setpoint-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:20px; }
.setpoint-card { border:1px solid #dce4ef; border-radius:8px; padding:18px; min-width:0; }
.dial-label { font-size:12px; margin:16px 0 10px; }
.temperature-picker { display:flex; align-items:center; justify-content:center; gap:18px; padding:8px 0; }
.temperature-dial { width:136px; height:136px; flex-shrink:0; border:9px solid #dce8f7; border-top-color:#377ab7; border-radius:50%; display:flex; align-items:center; justify-content:center; gap:3px; color:#194b80; background:#f8fbff; }
.dial-value { font-size:36px; font-weight:600; line-height:1; font-variant-numeric:tabular-nums; }
.dial-unit { font-size:17px; align-self:center; }
.temperature-dial[aria-disabled=true] { border-color:#e2e8f0; color:#65758b; background:#f4f7fb; }
.dial-arrows { display:flex; flex-direction:column; gap:10px; }
.dial-arrow { width:46px; height:46px; padding:0; color:#225ea8; background:#edf4ff; font-size:17px; }
.setpoint-card button:disabled { cursor:not-allowed; }
.setpoint-card .muted { font-size:11px; margin-top:8px; }
.control-limits { font-size:11px; color:#65758b; margin:7px 0 15px; }
.setpoint-card .button-secondary { margin-top:8px; width:100%; }
.control-status { font-size:12px; margin-top:14px; }
.setpoint-card .error { font-size:12px; margin-top:10px; }
@media(max-width:850px) { .setpoint-grid { grid-template-columns:1fr; } }
:root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#203248;
  background:#f4f7fb;
  font-synthesis:none;
  line-height:1.5;
  --accent:#225ea8;
  --muted:#65758b;
  --border:#dce4ef;
  --surface:#fff;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select {
  font:inherit;
}

button,select,summary {
  cursor:pointer;
}

button {
  border:1px solid var(--border);
  border-radius:7px;
  padding:8px 15px;
  background:white;
  color:inherit;
  font-weight:600;
}

button:hover {
  background:#eaf1fb;
}

button:disabled {
  cursor:wait;
  opacity:.65;
}

a {
  color:var(--accent);
}

:focus-visible {
  outline:3px solid #377ab7;
  outline-offset:4px;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:30px;
  letter-spacing:-1px;
  line-height:1.25;
  margin:5px 0 9px;
}

h2 {
  font-size:19px;
  letter-spacing:-.4px;
}

h3 {
  font-size:16px;
  font-weight:600;
}

.muted,.footnote {
  color:var(--muted);
}

.footnote {
  font-size:12px;
  line-height:1.6;
  margin-top:20px;
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:1.7px;
  font-size:10px;
  font-weight:750;
  color:var(--muted);
}

[hidden] {
  display:none!important;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  background:white;
  padding:12px;
  z-index:5;
}

.skip-link:focus {
  top:10px;
}

.topbar {
  height:85px;
  background:white;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 32px;
  gap:12px;
}

.brand {
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  color:#243a56;
  font-size:15px;
  font-weight:700;
}

.brand small {
  display:block;
  color:var(--muted);
  font-weight:400;
  font-size:11px;
  letter-spacing:.25px;
}

.brand-mark {
  display:grid;
  place-items:center;
  background:#163e6b;
  color:#edf4ff;
  width:38px;
  height:42px;
  border-radius:5px 5px 13px 13px;
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:400;
}

.header-actions {
  display:flex;
  gap:18px;
  align-items:center;
}

.button-secondary {
  font-size:12px;
}

.page-layout {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  max-width:1700px;
  margin:auto;
}

.side-nav {
  padding:34px 20px;
  border-right:1px solid var(--border);
  min-height:calc(100vh - 85px);
}

.side-nav>.eyebrow {
  margin:0 12px 20px;
}

.side-nav>a {
  display:block;
  padding:11px 12px;
  border-radius:6px;
  font-size:13px;
  text-decoration:none;
  color:#53657c;
  margin-bottom:7px;
}

.side-nav>a.selected {
  color:#1d518b;
  background:#e4edfb;
  font-weight:650;
}

.side-nav>a:hover {
  background:#e9eff9;
}

.nav-note {
  margin:45px 12px;
  font-size:11px;
  color:#435d7a;
}

.nav-note p {
  color:var(--muted);
  margin-top:9px;
  font-size:11px;
  line-height:1.7;
}

.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#2b6eb7;
  border-radius:50%;
  margin-right:6px;
}

main {
  padding:32px 35px;
  min-width:0;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  margin-bottom:28px;
}

.page-heading>.muted,.page-heading p.muted {
  font-size:13px;
}

.local-time {
  text-align:right;
  font-size:11px;
  color:var(--muted);
}

.local-time strong {
  display:block;
  font-weight:500;
  color:#314b6b;
  font-size:18px;
  margin-top:3px;
}

.connection-strip {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:18px 28px;
  background:white;
  border:1px solid var(--border);
  border-radius:9px;
  padding:16px 20px;
  font-size:11px;
  margin-bottom:25px;
}

.connection-strip>div:first-child {
  display:flex;
  align-items:center;
  gap:9px;
}

.connection-strip strong {
  font-weight:600;
}

.meta-label {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:3px;
}

.connection-strip>#data-age {
  margin-left:auto;
}

.status-badge {
  display:inline-block;
  border-radius:4px;
  padding:4px 9px;
  background:#e8edf5;
  color:#4e6580;
  font-size:11px;
  font-weight:650;
}

.status-badge.current {
  background:#e4efff;
  color:#194e88;
}

.status-badge.delayed,.status-badge.clock_warning {
  background:#fff0ca;
  color:#76500a;
}

.status-badge.offline,.status-badge.no_data {
  background:#f8e4df;
  color:#923c2b;
}

.notice {
  border:1px solid #e6cf94;
  color:#715418;
  background:#fffaec;
  border-radius:7px;
  padding:12px 16px;
  font-size:13px;
  margin:0 0 22px;
}

.notice.error {
  border-color:#e7c6bc;
  background:#fff6f2;
  color:#893c2c;
}

.error {
  color:#893c2c;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  margin:24px 0 16px;
}

.section-heading>.muted {
  font-size:11px;
}

.zone-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.zone-card {
  padding:21px 20px;
  background:white;
  border:1px solid var(--border);
  border-radius:10px;
  border-top:3px solid #356fae;
  min-width:0;
}

.zone-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
}

.zone-heading span {
  font-size:10px;
  color:var(--muted);
}

.temperature {
  font-size:40px;
  font-weight:500;
  letter-spacing:-1.8px;
  color:#194b80;
  line-height:1.3;
  margin:15px 0 14px;
  font-variant-numeric:tabular-nums;
}

.temperature .unit {
  font-size:19px;
  letter-spacing:0;
  color:#6d809b;
  margin-left:3px;
}

.zone-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid #edf1f7;
  padding-top:11px;
  margin-top:11px;
  font-size:11px;
  color:var(--muted);
}

.zone-row strong {
  color:#405b7a;
  font-weight:550;
}

.unavailable {
  color:#8a7361!important;
}

.reading-note {
  font-size:10px;
  color:#8b543b;
  margin-top:8px;
}

.panel {
  padding:22px 24px;
  background:white;
  border:1px solid var(--border);
  border-radius:10px;
  margin-top:28px;
}

.panel>.section-heading:first-child {
  margin-top:0;
}

.panel .section-heading .eyebrow {
  margin-bottom:5px;
}

.schematic-heading {
  flex-wrap:wrap;
}

.schematic-heading a {
  font-size:12px;
}

.heating-schematic-image {
  --schematic-supply:#e96d78;
  --schematic-supply-light:#f6a7ae;
  --schematic-pipe-supply:#ed8992;
  --schematic-pipe-supply-light:#f8b8bd;
  --schematic-pipe-return:#6caee6;
  --schematic-pipe-return-light:#aed7f7;
  display:block;
  width:100%;
  max-width:560px;
  height:auto;
  margin:0 auto;
}

.heating-schematic-image > svg {
  display:block;
  width:100%;
  height:auto;
}

.heating-schematic-image #building-feed > [id^="building-supply"] {
  stroke:var(--schematic-pipe-supply);
}

.heating-schematic-image #building-feed > [id^="building-return"] {
  stroke:var(--schematic-pipe-return);
}


.heating-schematic-image .schematic-sanctuary-flow,
.heating-schematic-image .schematic-east-flow,
.heating-schematic-image .schematic-west-flow {
  visibility:hidden;
}

.heating-schematic-image .schematic-sanctuary-active .schematic-sanctuary-flow,
.heating-schematic-image .schematic-east-active .schematic-east-flow,
.heating-schematic-image .schematic-west-active .schematic-west-flow {
  visibility:visible;
}

.heating-schematic-image .schematic-sanctuary-active #cv-sanctuary,
.heating-schematic-image .schematic-east-active #cv-nave-east-1,
.heating-schematic-image .schematic-east-active #cv-nave-east-2,
.heating-schematic-image .schematic-east-active #cv-nave-east-3,
.heating-schematic-image .schematic-east-active #cv-nave-east-4,
.heating-schematic-image .schematic-east-active #ff-narthex-east,
.heating-schematic-image .schematic-east-active #ff-sanctuary-east,
.heating-schematic-image .schematic-west-active #ff-sanctuary-west,
.heating-schematic-image .schematic-west-active #cv-nave-west-1,
.heating-schematic-image .schematic-west-active #cv-nave-west-2,
.heating-schematic-image .schematic-west-active #cv-nave-west-3,
.heating-schematic-image .schematic-west-active #cv-nave-west-4,
.heating-schematic-image .schematic-west-active #ff-narthex-centre,
.heating-schematic-image .schematic-west-active #ff-narthex-west,
.heating-schematic-image .schematic-west-active #ff-nave-east,
.heating-schematic-image .schematic-west-active #ff-nave-west {
  fill:#e05252;
}

.heating-schematic-image .schematic-flow-line {
  fill:none;
  pointer-events:none;
}

.heating-schematic-image .schematic-flow-base-supply {
  fill:var(--schematic-pipe-supply);
}

.heating-schematic-image .schematic-flow-stripes-supply {
  fill:var(--schematic-pipe-supply-light);
}

.heating-schematic-image .schematic-flow-base-return {
  fill:var(--schematic-pipe-return);
}

.heating-schematic-image .schematic-flow-stripes-return {
  fill:var(--schematic-pipe-return-light);
}

.heating-schematic-image .schematic-flow-stripes {
  animation:schematic-water-flow 1.2s linear infinite;
}

/* Reflect only stripe artwork inside its animated translation group. */
.heating-schematic-image .schematic-flow-pattern {
  transform-origin:0 0;
  transform-box:view-box;
}

.heating-schematic-image .schematic-flow-flip-x {
  transform:translate(12px,0) scale(-1,1);
}

.heating-schematic-image .schematic-flow-flip-y {
  transform:translate(0,12px) scale(1,-1);
}

.heating-schematic-image .schematic-flow-flip-xy {
  transform:translate(12px,12px) scale(-1,-1);
}

.heating-schematic-image .schematic-flow-motion-t2b {
  --schematic-flow-x:0px;
  --schematic-flow-y:12px;
}

.heating-schematic-image .schematic-flow-motion-b2t {
  --schematic-flow-x:0px;
  --schematic-flow-y:-12px;
}

.heating-schematic-image .schematic-flow-motion-l2r {
  --schematic-flow-x:12px;
  --schematic-flow-y:0px;
}

.heating-schematic-image .schematic-flow-motion-r2l {
  --schematic-flow-x:-12px;
  --schematic-flow-y:0px;
}

@keyframes schematic-water-flow {
  from { transform:translate(0,0); }
  to { transform:translate(var(--schematic-flow-x),var(--schematic-flow-y)); }
}

@media (prefers-reduced-motion:reduce) {
  .heating-schematic-image .schematic-flow-stripes {
    animation:none;
    transform:none;
  }
}


.heating-schematic-image .schematic-valve-display {
  pointer-events:none;
}

.heating-schematic-image .schematic-valve-face {
  fill:#777;
}

.heating-schematic-image .schematic-valve-track {
  fill:none;
  stroke-width:4;
  stroke:#aaa;
}

.heating-schematic-image .schematic-valve-progress {
  fill:var(--schematic-supply);
}


.heating-schematic-image .schematic-valve-rotation {
  fill:none;
  stroke:var(--schematic-supply-light);
  stroke-width:14;
  stroke-linecap:butt;
  visibility:hidden;
}

.heating-schematic-image .schematic-valve-open .schematic-valve-rotation {
  visibility:visible;
  animation:schematic-valve-clockwise 2s linear infinite;
}

@keyframes schematic-valve-clockwise {
  from { stroke-dashoffset:0; }
  to { stroke-dashoffset:-100; }
}

@media (prefers-reduced-motion:reduce) {
  .heating-schematic-image .schematic-valve-open .schematic-valve-rotation {
    animation:none;
    visibility:hidden;
  }
}

.heating-schematic-image .schematic-valve-value {
  fill:#fff;
  font:600 7.5px Arial,sans-serif;
  font-variant-numeric:tabular-nums;
}

.plant-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
}

.reading {
  padding:18px 14px 18px 0;
  min-width:0;
  border-bottom:1px solid #edf1f7;
}

.reading-label {
  color:var(--muted);
  font-size:11px;
  display:block;
}

.reading-value {
  display:block;
  font-size:23px;
  font-weight:500;
  margin-top:7px;
  letter-spacing:-.5px;
  font-variant-numeric:tabular-nums;
}

.reading-value.stage {
  font-size:14px;
  letter-spacing:0;
  display:inline-block;
  padding:4px 10px;
  border-radius:4px;
  background:#edf1f7;
  color:#62738a;
  margin-top:11px;
}

.reading-value.active {
  background:#e4efff;
  color:#194e88;
}

.other-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.other-grid .reading {
  padding:18px 22px;
  border:1px solid var(--border);
  border-radius:9px;
  background:white;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.other-grid .reading-value {
  margin:0;
  font-size:25px;
}

.range-buttons {
  display:flex;
  background:#f2f5fa;
  padding:3px;
  gap:2px;
  border-radius:6px;
  flex-shrink:0;
}

.range-buttons button {
  font-size:11px;
  padding:5px 11px;
  border-color:transparent;
  background:none;
  font-weight:500;
}

.range-buttons button[aria-pressed=true] {
  background:white;
  border-color:var(--border);
  box-shadow:0 1px 2px #2032480a;
}

.chart-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:22px 0 16px;
  font-size:11px;
  color:var(--muted);
}

select {
  margin-left:7px;
  border:1px solid var(--border);
  background:white;
  border-radius:5px;
  padding:5px 8px;
  font-size:12px;
  color:inherit;
}

.series-options {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  font-size:11px;
  margin-bottom:10px;
}

.series-options label {
  display:flex;
  align-items:center;
  gap:5px;
}

.series-options input {
  accent-color:var(--accent);
}

.series-swatch {
  display:inline-block;
  width:15px;
  height:3px;
}

.series-0 {
  stroke:#225ea8;
  color:#225ea8;
  background-color:#225ea8;
}

.series-1 {
  stroke:#427cb0;
  color:#427cb0;
  background-color:#427cb0;
}

.series-2 {
  stroke:#af6a30;
  color:#af6a30;
  background-color:#af6a30;
}

.series-3 {
  stroke:#9161ac;
  color:#9161ac;
  background-color:#9161ac;
}

.series-4 {
  stroke:#a34259;
  color:#a34259;
  background-color:#a34259;
}

.chart-container {
  width:100%;
  overflow-x:auto;
}

#temperature-chart {
  display:block;
  width:100%;
  min-width:550px;
  height:auto;
}

.chart-grid {
  stroke:#e1e8f2;
  stroke-width:1;
  stroke-dasharray:3 4;
}

.chart-label {
  fill:#708199;
  font-size:12px;
}

.chart-line {
  fill:none;
  stroke-width:2.5;
  stroke-linejoin:round;
  stroke-linecap:round;
}

.chart-point {
  stroke-width:3;
}

.chart-empty {
  fill:#65758b;
  font-size:15px;
}

.chart-cursor {
  stroke:#647b99;
  stroke-width:1;
  stroke-dasharray:3 3;
}

.chart-hitbox {
  fill:transparent;
}

.chart-tooltip-bg {
  fill:#203d60;
}

.chart-tooltip-text {
  fill:white;
  font-size:12px;
}

details {
  margin-top:18px;
  font-size:12px;
  color:var(--muted);
}

summary {
  padding:8px 0;
}

.table-scroll {
  max-height:330px;
  overflow:auto;
  margin-top:10px;
}

table {
  border-collapse:collapse;
  width:100%;
  white-space:nowrap;
  font-size:11px;
}

th,td {
  text-align:left;
  padding:8px;
  border-bottom:1px solid var(--border);
}

th {
  position:sticky;
  top:0;
  background:#f1f5fb;
}

footer {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:10px;
  color:#7d8ca2;
  border-top:1px solid var(--border);
  padding:20px 0 0;
  margin-top:28px;
}

.login-page {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:#edf2fa;
}

.login-card {
  width:100%;
  max-width:430px;
  background:white;
  border:1px solid var(--border);
  border-radius:14px;
  padding:38px;
  box-shadow:0 12px 40px #20324808;
}

.login-card h1 {
  font-size:26px;
  margin-top:10px;
}

.login-card .muted {
  font-size:13px;
}

.login-card form {
  margin-top:26px;
}

.login-card label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin:17px 0 6px;
}

.login-card input {
  width:100%;
  padding:10px 12px;
  border:1px solid #b9c9dd;
  border-radius:6px;
  background:#fbfcff;
  color:inherit;
}

.login-card button {
  width:100%;
  background:var(--accent);
  color:white;
  border:0;
  padding:12px;
  margin-top:14px;
}

.login-card .error {
  font-size:12px;
  margin-top:12px;
}

@media(min-width:1500px) {
  main {
    padding:38px 45px;
  }
  .zone-card {
    padding:24px;
  }
  .temperature {
    font-size:46px;
  }
  .zone-row {
    font-size:12px;
  }
}

@media(max-width:1150px) {
  .page-layout {
    grid-template-columns:170px minmax(0,1fr);
  }
  .side-nav {
    padding:30px 12px;
  }
  main {
    padding:28px 24px;
  }
  .zone-grid {
    gap:10px;
  }
  .zone-card {
    padding:17px 14px;
  }
  .temperature {
    font-size:33px;
  }
  h3 {
    font-size:14px;
  }
  .zone-heading span {
    display:none;
  }
  .connection-strip {
    gap:14px;
  }
  .connection-strip>#data-age {
    margin-left:0;
  }
  .history-heading {
    flex-wrap:wrap;
  }
  .plant-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .reading-value {
    font-size:21px;
  }
}

@media(max-width:850px) {
  .page-layout {
    display:block;
  }
  .side-nav {
    display:none;
  }
  .topbar {
    height:74px;
    padding:0 22px;
  }
  .zone-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .zone-card {
    padding:20px;
  }
  .temperature {
    font-size:40px;
  }
  .plant-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  main {
    padding:25px 22px;
  }
  .connection-strip {
    gap:15px 22px;
  }
  .connection-strip>div:first-child {
    width:100%;
  }
  .connection-strip>#data-age {
    margin-left:auto;
  }
  .section-heading>.muted {
    max-width:180px;
    text-align:right;
  }
  footer {
    flex-direction:column;
    gap:5px;
  }
}

@media(max-width:480px) {
  .topbar {
    height:auto;
    min-height:74px;
    padding:12px 16px;
    flex-wrap:wrap;
  }
  .brand {
    width:100%;
    font-size:13px;
    gap:8px;
  }
  .brand-mark {
    width:30px;
    height:35px;
    font-size:23px;
  }
  .header-actions {
    width:100%;
    justify-content:space-between;
    gap:8px;
  }
  .button-secondary {
    padding:7px 10px;
  }
  main {
    padding:23px 15px;
  }
  h1 {
    font-size:26px;
  }
  .page-heading .muted {
    max-width:210px;
  }
  .local-time {
    text-align:left;
    max-width:100px;
    font-size:10px;
  }
  .local-time strong {
    font-size:14px;
  }
  .zone-card {
    padding:16px 14px;
  }
  .temperature {
    font-size:37px;
  }
  .zone-row {
    font-size:10px;
  }
  .panel {
    padding:18px 16px;
  }
  .plant-grid {
    gap:0 10px;
  }
  .reading-value {
    font-size:21px;
  }
  .other-grid {
    grid-template-columns:1fr;
    gap:10px;
  }
  .chart-toolbar {
    align-items:start;
    flex-direction:column;
    gap:8px;
  }
  .range-buttons {
    width:100%;
  }
  .range-buttons button {
    flex:1;
    padding:6px 8px;
  }
  .connection-strip {
    padding:15px;
  }
  .connection-strip>#data-age {
    margin-left:0;
    width:100%;
  }
  .login-card {
    padding:28px 24px;
  }
}

/* The HTML controls scale in their authored SVG setpoint rectangles. */
.heating-schematic-image .schematic-setpoint-host {
  overflow:visible;
}

.schematic-thermostat {
  width:100%;
  height:100%;
  display:flex;
  align-items:stretch;
  gap:3px;
  background:#fff;
  color:#194b80;
  font-family:Arial,sans-serif;
}

.schematic-setpoint-dial {
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1px;
  border:1px solid #dce8f7;
  border-radius:3px;
  background:#f8fbff;
  color:#194b80;
  font-size:16px;
  font-weight:600;
  line-height:1;
  font-variant-numeric:tabular-nums;
}


.schematic-setpoint-dial[aria-disabled=true] {
  border-color:#e2e8f0;
  color:#65758b;
  background:#f4f7fb;
}

.schematic-setpoint-unit {
  font-size:9px;
}

.schematic-setpoint-arrows {
  display:flex;
  flex-direction:column;
  gap:3px;
  width:19px;
  flex-shrink:0;
}

.schematic-setpoint-arrows button {
  flex:1;
  min-height:0;
  padding:0;
  border:1px solid var(--border);
  border-radius:3px;
  background:#edf4ff;
  color:#225ea8;
  font-size:10px;
  line-height:1;
}

.schematic-setpoint-arrows button:hover:not(:disabled) {
  background:#eaf1fb;
}

.schematic-setpoint-arrows button:disabled {
  cursor:not-allowed;
  opacity:.65;
}


/* Fan airflow follows the fresh command for each heater. */
.heating-schematic-image .schematic-fan-rays { pointer-events:none; }
.heating-schematic-image .schematic-fan-airflow > path {
  stroke:#e05252;
  stroke-width:1.1;
  stroke-linecap:round;
  fill:none;
}
.heating-schematic-image .schematic-fan-rays[visibility="visible"] .schematic-fan-airflow > path {
  animation-name:schematic-fan-discharge;
  animation-duration:1.25s;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
}
.heating-schematic-image .schematic-fan-airflow > path:nth-child(2n) { animation-delay:-.4s; }
.heating-schematic-image .schematic-fan-airflow > path:nth-child(3n) { animation-delay:-.8s; }

@keyframes schematic-fan-discharge {
  0% { transform:translateX(0);opacity:0; }
  25%, 65% { opacity:1; }
  100% { transform:translateX(4px);opacity:0; }
}

@media (prefers-reduced-motion:reduce) {
  .heating-schematic-image .schematic-fan-rays[visibility="visible"] .schematic-fan-airflow > path {
    animation-name:none;
  }
}
.heating-schematic-image .schematic-fan-active-heater { fill:#e05252; }

/* Fan controls are separate from the room thermostat and authored pipe art. */
.heating-schematic-image .schematic-fan-off-label {
  fill:#17212b;
  font-size:4.7px;
  font-weight:750;
  pointer-events:none;
}
/* Match the same red heater groups used by the pipe highlighting. */
.heating-schematic-image :is(
  .schematic-east-active :is(#ff-narthex-east, #ff-sanctuary-east),
  .schematic-west-active :is(#ff-sanctuary-west, #ff-narthex-centre, #ff-narthex-west, #ff-nave-east, #ff-nave-west)
) + .schematic-fan-rays + .schematic-fan-control .schematic-fan-off-label {
  fill:#fff;
}
.heating-schematic-image .schematic-fan-hit { cursor:pointer;outline:none; }
.heating-schematic-image .schematic-fan-hit:focus-visible:not(:hover) {
  outline:1px dashed #526275;
  outline-offset:-2px;
}

@media (hover:hover) {
  .heating-schematic-image :is(polyline[id^="ff-"], .schematic-fan-active-heater) {
    transform-box:fill-box;
    transform-origin:center;
  }
  .heating-schematic-image polyline[id^="ff-"]:has(+ .schematic-fan-rays + .schematic-fan-control:hover),
  .heating-schematic-image .schematic-fan-rays:has(+ .schematic-fan-control:hover) .schematic-fan-active-heater {
    transform:scale(1.2);
    filter:drop-shadow(0 1px 1.25px rgb(0 0 0 / 26%));
  }
  .heating-schematic-image .schematic-fan-control:hover .schematic-fan-off-label {
    font-size:5.64px;
  }
  .heating-schematic-image polyline[id^="ff-"]:has(+ .schematic-fan-rays[visibility="visible"] + .schematic-fan-control:hover) {
    filter:none;
  }
}

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .heating-schematic-image :is(polyline[id^="ff-"], .schematic-fan-active-heater) {
    transition:transform 140ms ease, filter 140ms ease;
  }
  .heating-schematic-image .schematic-fan-off-label {
    transition:font-size 140ms ease;
  }
}

.schematic-fan-panel {
  position:fixed;z-index:50;left:16px;top:80px;box-sizing:border-box;
  width:330px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;
  padding:20px;border:1px solid #d6dee9;border-radius:12px;background:#fff;
  box-shadow:0 8px 28px #172b4d26;color:#183153;
}
.schematic-fan-panel[hidden] { display:none; }
.schematic-fan-panel h3 { margin:0 30px 14px 0;font-size:1.1rem; }
.schematic-fan-panel p { font-size:.9rem;line-height:1.5; }
.schematic-fan-status:not([hidden]) { margin-bottom:12px; }
.schematic-fan-close { position:absolute;top:8px;right:8px;min-width:36px;min-height:36px;background:white;color:#183153;border:0;font-size:24px; }
.schematic-fan-action { width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;background:#225ea8;color:white;font-weight:600; }
.schematic-fan-action:hover:not(:disabled) { background:#2f72c1; }
.schematic-fan-action:disabled { background:#e6ebf1;color:#5e6979;cursor:not-allowed; }


.heating-schematic-image .schematic-boiler-room-link {
  cursor:pointer;
}

.heating-schematic-image .schematic-boiler-room-link:is(:hover, :focus-visible) rect {
  fill:#555;
}
