/* The Care365 app. The house fills the screen and lives with the hour and the weather; green means working,
   amber means flagged. Near-black below it, warm ink, one family of type. */
/* --vh: the real height of the screen in view, set by app.js. Phones report "100svh" as shorter than what is actually
   showing in some cases (a collapsed browser bar, an app on the home screen), which left a gap at the bottom. */
:root {
  --bg: #050404; --ink: #f5f3ee; --ink-2: rgba(245, 243, 238, 0.6); --ink-3: rgba(245, 243, 238, 0.36);
  --line: rgba(245, 243, 238, 0.1); --green: #19c26a; --amber: #ffb020; --red: #ff4a1f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-width: none; background: var(--bg); } ::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
html { overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 1.5px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

.app { position: relative; min-height: var(--vh, 100svh); display: flex; flex-direction: column; }

/* stays at the top. Clear over the sky; once the page scrolls under it, it turns to dark glass so nothing shows through
   behind the logo or the phone's own clock and battery */
.top { position: fixed; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; gap: 14px;
  padding: max(14px, calc(env(safe-area-inset-top) + 6px)) var(--pad) 10px; text-shadow: 0 1px 12px rgba(5, 4, 4, 0.45);
  transition: background-color 0.3s ease, -webkit-backdrop-filter 0.3s ease, backdrop-filter 0.3s ease; }
.top.is-solid { background-color: rgba(5, 4, 4, 0.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line); }
.top.is-solid .who { background: none; }
.logo { display: inline-flex; align-items: flex-start; gap: 6px; margin-right: auto; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo__mark { display: inline-grid; line-height: 1; } /* the wordmark, with Care365 tucked under Solar, as on the website */
.logo i { width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px rgba(255, 176, 32, 0.7); }
.logo small { justify-self: end; margin-top: 4px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(245, 243, 238, 0.75); }
.tag { font-size: 13px; color: rgba(245, 243, 238, 0.82); }
.who { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border-radius: 50%; background: rgba(5, 4, 4, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.who svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* pull down to refresh: a small ring that winds up as you pull, then spins */
.pull { position: fixed; z-index: 9; left: 50%; top: calc(env(safe-area-inset-top) + 2px); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; opacity: 0; transform: translate(-50%, 0);
  background: rgba(5, 4, 4, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.14); pointer-events: none; }
.pull i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--ink-2); border-top-color: transparent; }
.pull.is-ready i { border-color: var(--green); border-top-color: transparent; }
.pull.is-going i { animation: pull-spin 0.7s linear infinite; }
@keyframes pull-spin { to { transform: rotate(360deg); } }

/* ---- the scene: the house, the sky above it, the weather over it ---- */
.scene { --sky: #6f8fb8; --grade: none; position: relative; height: 60svh; min-height: 320px; overflow: hidden; flex: none; opacity: 0; transition: opacity 0.9s ease; }
.scene.is-in { opacity: 1; }
[data-sky="morning"] .scene { --sky: #51709f; } [data-sky="dusk"] .scene { --sky: #14294d; } [data-sky="night"] .scene { --sky: #141a36; }
[data-wx="clear"][data-sky="day"] .scene { --grade: saturate(1.28) brightness(1.12); } [data-wx="clear"][data-sky="morning"] .scene { --grade: saturate(1.2) brightness(1.06); }
[data-wx="cloudy"] .scene { --grade: saturate(0.72) brightness(0.86); }
[data-wx="rain"] .scene { --grade: saturate(0.55) brightness(0.66) contrast(1.04); }
.scene__bg { position: absolute; inset: 0; background: var(--sky); filter: var(--grade); }
/* phones: the picture is wider than the screen, the house in the middle; its sky melts into the same colour above it */
.scene__in { position: absolute; left: 50%; bottom: -22px; width: 186%; aspect-ratio: 3432 / 2160; transform: translateX(-51.2%); filter: var(--grade);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 26%); mask-image: linear-gradient(180deg, transparent, #000 26%); }
.pic, .fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene__fade { position: absolute; inset: 0 0 -2px; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 4, 4, 0.3), rgba(5, 4, 4, 0) 18%, rgba(5, 4, 4, 0) 64%, rgba(5, 4, 4, 0.75) 86%, var(--bg) 97%); }
.wx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* the roof at work, the power on its way down, the inverter reporting in */
.cell { fill: var(--green); mix-blend-mode: screen; animation: cell-on 1.2s var(--ease) 0.5s both, cell-breathe 4s ease-in-out 1.7s infinite; }
[data-sky="day"] .cell, [data-sky="morning"] .cell { fill: #2ee88a; }
.cell.is-down { fill: var(--amber); mix-blend-mode: normal; animation: cell-down 1.3s ease-in-out infinite; }
.cable { fill: none; stroke: #d9ffe9; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 46 400; animation: cable 2.4s linear infinite; opacity: 0.9; filter: drop-shadow(0 0 6px rgba(25, 194, 106, 0.9)); }
.ping { fill: none; stroke: var(--green); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ping 3.2s ease-out infinite; }
.ping.p2 { animation-delay: 1.6s; }
.led { fill: var(--red); animation: blink 1.4s steps(1) infinite; }
/* the relight: the repaired panel sits dark and amber for a moment, goes out, then comes back bright and settles in with the rest */
.cell.relit { animation: relight 3.6s ease-in-out 0.9s both, cell-breathe 4s ease-in-out 4.5s infinite; }
.spark { fill: none; stroke: #eafff3; stroke-width: 5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: spark 1.5s var(--ease) 3.05s both; }
@keyframes relight { 0% { fill: #ffb020; opacity: 0.9; } 14% { fill: #ffb020; opacity: 0.5; } 28% { fill: #ffb020; opacity: 0.9; } 46% { fill: #ffb020; opacity: 0; } 58% { fill: #eafff3; opacity: 0; } 66% { fill: #eafff3; opacity: 1; } 100% { fill: #2ee88a; opacity: 0.42; } }
@keyframes spark { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(4.5); opacity: 0; } }
.first.late > * { animation-delay: calc(var(--i, 0) * 90ms + 3300ms); } /* the words wait for the roof */
@keyframes cell-on { from { opacity: 0; } to { opacity: 0.42; } }
@keyframes cell-breathe { 0%, 100% { opacity: 0.42; } 50% { opacity: 0.3; } }
@keyframes cell-down { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.45; } }
@keyframes cable { from { stroke-dashoffset: 446; } to { stroke-dashoffset: 0; } }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } 70%, to { transform: scale(5.5); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.first.soon > * { animation-delay: calc(var(--i, 0) * 80ms + 1950ms); }
/* the member's own person, and what they did */
.signed { display: flex; gap: 13px; margin-top: 24px; padding: 15px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(245, 243, 238, 0.08), rgba(245, 243, 238, 0.04)); box-shadow: inset 0 0 0 1px var(--line); }
.signed i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(245, 243, 238, 0.14); font-style: normal; font-weight: 500; font-size: 16px; }
.signed p { margin: 0; font-size: 15.5px; line-height: 1.42; } .signed span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.tally { margin-top: 24px; }

/* sun, moon, cloud */
.orb, .cloud { position: absolute; pointer-events: none; display: none; }
/* app.js puts them where they really are in the sky (left and top), and draws the moon's true phase */
.orb--sun { display: block; width: 150vmin; height: 150vmin; max-width: 900px; max-height: 900px; transform: translate(-50%, -50%); mix-blend-mode: screen;
  background: radial-gradient(circle, #fff7e2 0, rgba(255, 233, 180, 0.95) 2.6%, rgba(255, 214, 140, 0.42) 7%, rgba(255, 205, 130, 0.14) 22%, rgba(255, 200, 120, 0) 50%); animation: sun 7s ease-in-out infinite; }
[data-sky="morning"] .orb--sun, [data-sky="dusk"] .orb--sun { opacity: 0.8; }
.orb--moon { display: block; width: 28px; height: 28px; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 90px 34px rgba(170, 190, 255, 0.14); }
.orb--moon svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 7px rgba(226, 232, 255, 0.55)); }
@keyframes sun { 0%, 100% { opacity: 1; } 50% { opacity: 0.86; } }
[data-wx="cloudy"] .cloud, [data-wx="rain"] .cloud { display: block; width: 130%; height: 34%; top: -6%; left: -40%; border-radius: 50%; filter: blur(34px);
  background: radial-gradient(closest-side, rgba(222, 228, 238, 0.55), rgba(222, 228, 238, 0)); animation: drift 70s ease-in-out infinite alternate; }
[data-wx="cloudy"] .cloud.c2, [data-wx="rain"] .cloud.c2 { top: 12%; left: 10%; width: 120%; height: 30%; animation-duration: 95s; animation-direction: alternate-reverse; }
[data-wx="rain"] .cloud, [data-sky="night"] .cloud, [data-sky="dusk"] .cloud { background: radial-gradient(closest-side, rgba(70, 78, 96, 0.75), rgba(70, 78, 96, 0)); }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(22%); } }

/* ---- the words ---- */
.side { flex: 1; display: flex; flex-direction: column; position: relative; z-index: 2; }
.info { flex: 1; margin-top: -58px; padding: 0 var(--pad) calc(48px + env(safe-area-inset-bottom)); }
.first > *, [data-view="page"] .info > * { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 250ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
[data-view="page"] .scene { display: none; }
[data-view="page"] .info { margin-top: 0; padding-top: calc(max(16px, env(safe-area-inset-top)) + 62px); }
.back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 22px -6px; padding: 4px 0; color: var(--ink-2); font-size: 15px; }
.back .ic { transform: scaleX(-1); }

.eye { display: flex; align-items: center; gap: 9px; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245, 243, 238, 0.78); }
.eye i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(25, 194, 106, 0.85); animation: live 2.4s ease-in-out infinite; }
[data-state="alert"] .eye i { background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 32, 0.85); }
.big { margin: 8px 0 0; font-size: clamp(40px, 13vw, 58px); font-weight: 400; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
[data-state="alert"] .big { font-size: clamp(36px, 11vw, 52px); }
.soft { margin: 10px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 24em; }

/* the gate: one field, one button */
[data-view="gate"] .tag, [data-view="gate"] .who { display: none; }
.gate { margin-top: 26px; }
.gate input { display: block; width: 100%; height: 56px; padding: 0 18px; border: 0; border-radius: 16px; font: inherit; font-size: 17px; color: var(--ink);
  background: rgba(245, 243, 238, 0.07); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.16); outline: 0; transition: box-shadow 0.2s ease; }
.gate input::placeholder { color: var(--ink-3); }
.gate input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.gate input.code { text-align: center; font-size: 26px; letter-spacing: 0.32em; padding-left: calc(18px + 0.32em); }
.gate button { display: block; width: 100%; height: 56px; margin-top: 10px; border-radius: 999px; background: var(--ink); color: #14110d; font-size: 16.5px; font-weight: 500; transition: transform 0.2s var(--ease), opacity 0.2s ease; }
.gate button:active { transform: scale(0.98); } .gate button:disabled { opacity: 0.55; }
/* can't get in: a person to call or write to */
.help { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.help p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.help__ways { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.help__ways a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; background: rgba(245, 243, 238, 0.07); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.16); }
.help__ways .ic { width: 17px; height: 17px; color: var(--green); }
.help span { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.again { display: block; margin: 20px auto 0; padding: 6px 10px; font-size: 14.5px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 4px; }
.rows button.row { width: 100%; text-align: left; }

/* power, moving */
.flow { display: flex; align-items: flex-start; margin-top: 28px; }
.node b { display: block; font-size: 21px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; white-space: nowrap; }
.node span { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-2); }
.node:nth-of-type(2) { text-align: center; } .node:last-child { text-align: right; } .node:last-child span { margin-left: auto; }
.node.off b { color: var(--ink-3); } .node.warn b { color: var(--amber); }
.wire { position: relative; flex: 1; min-width: 26px; height: 1px; margin: 12px 12px 0; background: rgba(245, 243, 238, 0.14); overflow: hidden; }
.wire { height: 3px; margin-top: 11px; background: linear-gradient(rgba(245, 243, 238, 0.14), rgba(245, 243, 238, 0.14)) center / 100% 1px no-repeat; }
.wire.go-r::after, .wire.go-l::after { content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(25, 194, 106, 0), var(--green)); animation: run 1.9s linear infinite; }
.wire.go-l::after { animation-direction: reverse; background: linear-gradient(270deg, rgba(25, 194, 106, 0), var(--green)); }
@keyframes run { from { left: -22px; } to { left: 100%; } }

/* a problem, and how far along we are with it */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 30px; font-size: 11.5px; color: var(--ink-3); }
.track i { display: block; height: 3px; border-radius: 3px; margin-bottom: 9px; background: rgba(245, 243, 238, 0.14); }
.track .done { color: var(--ink-2); } .track .done i { background: var(--ink); }
.track.all .done i { background: var(--green); }
[data-state="quiet"] .track .now i { background: var(--ink); box-shadow: none; }
[data-state="quiet"] .eye i { background: rgba(245, 243, 238, 0.7); box-shadow: none; }
.track .now { color: var(--ink); } .track .now i { background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 32, 0.6); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.rows { margin-top: 12px; }
.first .rows { margin-top: 22px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.lab + .rows .row:first-child { border-top: 0; }
.row span { color: var(--ink-2); white-space: nowrap; }
.row b { font-weight: 500; text-align: right; }
.row time { display: inline-block; width: 58px; font-size: 13px; color: var(--ink-3); }
/* a row that opens something: brighter words, and an arrow in a soft circle */
.row.go { gap: 10px; } .row.go span { color: var(--ink); margin-right: auto; } .row.go b { color: var(--ink-2); font-weight: 400; } .row.go b.ok { color: var(--green); } .row.go b.warn { color: var(--amber); font-weight: 500; }
.row.go .ic { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(245, 243, 238, 0.09); color: var(--ink); transition: background 0.2s ease, transform 0.3s var(--ease); }
.row.go:active .ic { background: rgba(245, 243, 238, 0.2); transform: translateX(2px); }
.ok { color: var(--green); } .warn { color: var(--amber); }

/* ---- below the first screen ---- */
.info section { margin-top: 44px; padding-top: 4px; }
.first + section { margin-top: 40px; }
.lab { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-3); }
.note { margin: 8px 0 14px; font-size: 12.5px; color: var(--ink-3); }
.today__top { display: flex; justify-content: space-between; align-items: baseline; }
.today__n { font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.today__n em { font-style: normal; font-size: 14px; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.today__sys { font-size: 13px; color: var(--ink-2); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 14px; }
.bars i { flex: 1; border-radius: 3px; background: var(--green); opacity: 0.9; }
.bars i.later { background: rgba(245, 243, 238, 0.12); }
.bars--many { gap: 2px; } .bars--many i { border-radius: 2px; }
.seg { display: flex; padding: 3px; margin-bottom: 20px; border-radius: 11px; background: rgba(245, 243, 238, 0.06); }
.seg button { flex: 1; padding: 8px 0; border-radius: 8px; font-size: 13px; color: var(--ink-2); transition: background 0.25s ease, color 0.25s ease; }
.seg[hidden] { display: none; }
.seg [aria-pressed="true"] { background: rgba(245, 243, 238, 0.14); color: var(--ink); }
.bars i.now { box-shadow: 0 0 10px rgba(25, 194, 106, 0.55); animation: live 1.6s ease-in-out infinite; }
.ticks { display: flex; justify-content: space-between; margin-top: 7px; font-size: 11px; color: var(--ink-3); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trio b { display: block; font-size: 24px; font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.trio span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
/* the three things we watch */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.parts--two { grid-template-columns: repeat(2, 1fr); }
.part { position: relative; padding: 14px 12px 13px; border-radius: 16px; background: linear-gradient(180deg, rgba(245, 243, 238, 0.07), rgba(245, 243, 238, 0.03)); box-shadow: inset 0 0 0 1px var(--line); }
.part .ic { width: 22px; height: 22px; color: var(--ink-2); stroke-width: 1.5; }
.part .dot { position: absolute; top: 20px; right: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(25, 194, 106, 0.85); }
.part b { display: block; margin-top: 16px; font-size: 30px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.part span { display: block; margin-top: 6px; font-size: 14px; }
.part small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.3; color: var(--ink-2); }
.part.warn .dot { background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 32, 0.85); } .part.warn small { color: var(--amber); }

/* the roof, panel by panel, lying back the way it does up there. Tap a panel for its number. */
.array { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 6px 6px 0; transform: perspective(520px) rotateX(46deg); transform-origin: 50% 100%; }
.pv { position: relative; aspect-ratio: 1 / 1.25; border-radius: 4px; overflow: hidden; background: linear-gradient(165deg, #1b2c50, #0b1428 70%);
  box-shadow: inset 0 0 0 1px rgba(160, 190, 255, 0.22); transition: transform 0.35s var(--ease), box-shadow 0.25s ease; }
.pv::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(190, 210, 255, 0.13) 0 1px, transparent 1px 33.4%), repeating-linear-gradient(0deg, rgba(190, 210, 255, 0.13) 0 1px, transparent 1px 20%); }
.pv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46, 232, 138, 0.75), rgba(25, 194, 106, 0.35)); opacity: calc(var(--o) * 0.55); mix-blend-mode: screen; animation: pv 3.6s ease-in-out var(--d) infinite; }
.pv.is-on { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 18px -6px rgba(25, 194, 106, 0.5); }
.pv.down::after { background: var(--amber); opacity: 0.7; mix-blend-mode: normal; animation: live 1.3s ease-in-out infinite; }
.pv.off::after { display: none; } .pv.off { opacity: 0.5; cursor: default; }
@keyframes pv { 0%, 100% { opacity: calc(var(--o) * 0.55); } 50% { opacity: calc(var(--o) * 0.36); } }
.cap { margin: 14px 0 0; font-size: 15px; text-align: center; }
.cap + .note, .parts + .note { text-align: center; margin: 6px 0 0; } .parts + .note { margin-top: 16px; }

/* ---- messages (mock-up): their person at the top, the conversation, and a bar to write in that stays at the bottom ---- */
.sig { color: inherit; }
/* their face, with a small light: green and breathing while they are on, dim when they are off for the night */
.sig__face { position: relative; flex: none; }
.sig__face i { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #6b665e; box-shadow: 0 0 0 3px var(--bg); }
.sig__face.is-on i { background: var(--green); animation: on-now 2s ease-out infinite; }
@keyframes on-now { 0% { box-shadow: 0 0 0 0 rgba(25, 194, 106, 0.7); } 100% { box-shadow: 0 0 0 8px rgba(25, 194, 106, 0); } }
.sig p > span[data-live="note"] { display: inline; margin: 0; font-size: inherit; color: inherit; }
.sig .sig__who { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-2); } .sig .sig__who span { display: inline; margin: 0; font-size: inherit; }

.sig .sig__row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sig__msg { display: inline-flex; align-items: center; gap: 2px; padding: 7px 10px 7px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: var(--green); background: rgba(25, 194, 106, 0.13); box-shadow: inset 0 0 0 1px rgba(25, 194, 106, 0.4); transition: transform 0.2s var(--ease); }
.sig__msg:active { transform: scale(0.97); }
.sig .sig__duty { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.sig .sig__duty i { width: 6px; height: 6px; border-radius: 50%; background: #6b665e; }
.sig .sig__duty.is-on { color: var(--ink-2); } .sig .sig__duty.is-on i { background: var(--green); box-shadow: 0 0 8px rgba(25, 194, 106, 0.8); }
.sig .sig__duty span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.sig__msg .ic { width: 15px; height: 15px; stroke-width: 2; }
.chat__who { display: flex; align-items: center; gap: 14px; }
.chat__who .face { width: 60px; height: 60px; }
.chat__who b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.chat__who span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }
.chat__who + .eye { margin-top: 16px; }
.thread { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; padding-bottom: 150px; }
.day { align-self: center; margin: 0 0 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.msg p { margin: 0; padding: 11px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; }
.msg time { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.msg.me { align-self: flex-end; max-width: 82%; text-align: right; }
.msg.me p { display: inline-block; text-align: left; background: var(--green); color: #03170c; border-bottom-right-radius: 6px; }
.msg.them { display: flex; align-items: flex-end; gap: 9px; max-width: 92%; }
.msg.them .face { width: 30px; height: 30px; margin-bottom: 20px; animation: none; }
.msg.them p { background: rgba(245, 243, 238, 0.09); border-bottom-left-radius: 6px; }
.msg.auto { align-self: center; max-width: 88%; text-align: center; }
.msg.auto p { padding: 2px 8px; background: none; font-size: 12.5px; color: var(--ink-2); }
.chatbar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; padding: 10px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 4, 4, 0.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--line); }
.chips { display: flex; gap: 8px; margin: 0 calc(-1 * var(--pad)) 10px; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.chips button { flex: none; padding: 8px 14px; border-radius: 99px; font-size: 13.5px; background: rgba(245, 243, 238, 0.07); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.14); }
.chips .urgent { color: var(--amber); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.4); }
.composer { display: flex; gap: 8px; }
.composer input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; border-radius: 23px; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: rgba(245, 243, 238, 0.08); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.14); }
.composer input::placeholder { color: var(--ink-3); } .composer input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.composer button { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #14110d; }
.composer button .ic { width: 20px; height: 20px; stroke-width: 2; }
@media (min-width: 900px) { .chatbar { left: auto; width: min(42%, 500px); padding-left: 16px; } }

/* ---- schedule a call (mock-up): a sheet that rises from the bottom with days and one-hour windows ---- */
.chips .call { color: var(--green); box-shadow: inset 0 0 0 1px rgba(25, 194, 106, 0.45); background: rgba(25, 194, 106, 0.12); }
.chips .call .ic { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; }
.sheet { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; background: rgba(5, 4, 4, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: sheet-bg 0.25s ease both; }
.sheet__in { position: relative; width: 100%; max-height: 92svh; overflow-y: auto; padding: 22px var(--pad) calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #121110; box-shadow: 0 -1px 0 rgba(245, 243, 238, 0.14); animation: sheet-up 0.4s var(--ease) both; }
.sheet h2 { margin: 0; font-size: 26px; font-weight: 400; letter-spacing: -0.035em; }
.sheet p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 20em; }
.sheet__x { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink-2); background: rgba(245, 243, 238, 0.08); }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 20px; }
.days button { padding: 10px 2px 9px; border-radius: 14px; background: rgba(245, 243, 238, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.days b { display: block; font-size: 13px; font-weight: 500; } .days span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.wins button { padding: 11px 0; border-radius: 12px; font-size: 13.5px; background: rgba(245, 243, 238, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.days [aria-pressed="true"], .wins [aria-pressed="true"] { background: var(--green); color: #03170c; box-shadow: none; } .days [aria-pressed="true"] span { color: rgba(3, 23, 12, 0.7); }
.sheet__go { display: block; width: 100%; height: 54px; margin-top: 18px; border-radius: 999px; background: var(--ink); color: #14110d; font-size: 16px; font-weight: 500; transition: opacity 0.2s ease; }
.sheet__go:disabled { opacity: 0.35; }
.sheet small { display: block; margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--ink-3); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-bg { from { opacity: 0; } to { opacity: 1; } }
.msg.booked { align-self: stretch; display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(25, 194, 106, 0.1); box-shadow: inset 0 0 0 1px rgba(25, 194, 106, 0.4); }
.msg.booked p { padding: 0; background: none; border-radius: 0; } .msg.booked b { display: block; font-weight: 500; }
.msg.booked span { display: block; margin-top: 2px; font-size: 14.5px; color: rgba(245, 243, 238, 0.88); } .msg.booked small { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
@media (min-width: 900px) { .sheet { justify-content: flex-end; } .sheet__in { width: min(42%, 500px); border-radius: 26px 0 0 0; } }
.still .sheet, .still .sheet__in { animation: none; }

/* the system page: one title, then tidy cards that all share one shape */
.info section.card { margin-top: 12px; padding: 18px 18px 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(245, 243, 238, 0.07), rgba(245, 243, 238, 0.035)); box-shadow: inset 0 0 0 1px var(--line); }
.eye + section.card { margin-top: 26px !important; }
.card .lab { margin-bottom: 16px; }
.card .flow { margin-top: 0; animation: none; }
.card__say { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.card .seg { margin-bottom: 18px; background: rgba(5, 4, 4, 0.35); }
.card .array { margin-top: -26px; } .card .cap { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.kit { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.kit:first-child { border-top: 0; padding-top: 0; } .kit:last-child { padding-bottom: 0; }
.kit__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(25, 194, 106, 0.12); color: var(--green); }
.kit__ic .ic { width: 22px; height: 22px; stroke-width: 1.6; }
.kit p { margin: 0 auto 0 0; } .kit b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; } .kit p span { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-2); }
.kit .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(25, 194, 106, 0.85); }
.kit.warn .dot { background: var(--amber); box-shadow: 0 0 10px rgba(255, 176, 32, 0.85); } .kit.warn p span { color: var(--amber); } .kit.warn .kit__ic { background: rgba(255, 176, 32, 0.14); color: var(--amber); }
.card ~ .note { margin: 18px 0 0; text-align: center; }
a.kit { color: inherit; }
.kits--notes .kit { align-items: flex-start; } .kits--notes .kit p span { margin-top: 4px; font-size: 14.5px; line-height: 1.45; }
.kit--more p { padding-left: 56px; } .kit--more b { color: var(--green); } /* "More": lines up with the names above it */ a.kit:active { opacity: 0.7; }
.kit .ic--chev { flex: none; width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(245, 243, 238, 0.1); }
.card .trio b { font-size: 30px; } .card__text { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(245, 243, 238, 0.9); }
.card .shots i { border-radius: 14px; }
.card__none { margin: 0; font-size: 15px; color: var(--ink-2); }

/* what membership gives them */
.perks { list-style: none; margin: 0; padding: 0; }
.perks li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); } .perks li:first-child { border-top: 0; padding-top: 2px; }
.perks .ic { margin-top: 2px; color: var(--green); stroke-width: 2; }
.perks p { margin: 0; } .perks b { display: block; font-weight: 500; font-size: 15.5px; } .perks span { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }

/* photos from a visit (empty frames until the visit's own pictures arrive) */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.shots i { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, rgba(245, 243, 238, 0.09), rgba(245, 243, 238, 0.03)); box-shadow: inset 0 0 0 1px var(--line); }

/* ---- wide screens: the house on the left, the words on the right ---- */
@media (min-width: 900px) {
  :root { --pad: clamp(40px, 5vw, 80px); }
  .app { flex-direction: row; height: var(--vh, 100svh); }
  .scene, [data-view="page"] .scene { display: block; flex: 1 1 58%; height: auto; }
  .scene__in { top: 50%; bottom: auto; width: max(125%, 198.6svh); transform: translate(-51.2%, -60%); -webkit-mask-image: none; mask-image: none; }
  .scene__fade { inset: 0 -2px 0 0; background: linear-gradient(90deg, rgba(5, 4, 4, 0) 52%, rgba(5, 4, 4, 0.8) 84%, var(--bg) 96%), linear-gradient(180deg, rgba(5, 4, 4, 0.4), rgba(5, 4, 4, 0) 18%); }
  .side { margin-top: 0; flex: 0 0 min(42%, 500px); overflow-y: auto; scrollbar-width: none; background: var(--bg); margin-left: -1px; } /* overlaps the picture by a hair, so no seam shows between them */
  .info, [data-view="page"] .info { margin: 0; padding: 0 var(--pad) 64px 16px; }
  .first { min-height: var(--vh, 100svh); display: flex; flex-direction: column; justify-content: center; padding: 80px 0 40px; }
  .first + section { margin-top: 0; }
  [data-view="page"] .info { padding-top: 96px; }
  .big { font-size: clamp(52px, 4.6vw, 72px); } .soft { font-size: 18px; }
  .flow { margin-top: 44px; } .track { margin-top: 44px; } .first .rows { margin-top: 32px; }
}

/* ---- Home as a poster (phones): the house fills the whole screen, the way the film does; the words sit over its lower third ---- */
.big + .eye { margin-top: 16px; }
.sig { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; }
.sig p { margin: 0; font-size: 15.5px; line-height: 1.42; color: rgba(245, 243, 238, 0.9); }
.sig span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }
/* their person: a friendly character who tips their head, blinks, lifts their brows into a grin, and waves hello now and then */
.face { flex: none; display: block; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; animation: face-float 5s ease-in-out infinite; } /* a plain clean circle: no ring, no shadow, nothing a phone can draw as a box */
.face svg { display: block; width: 100%; height: 100%; }
.face__head { transform-origin: 48px 76px; animation: face-tip 6s ease-in-out infinite; }
.face__eyes { transform-box: fill-box; transform-origin: center; animation: face-blink 4.4s infinite; }
.face__brows { animation: face-brows 6s ease-in-out infinite; }
.face__smile { transform-box: fill-box; transform-origin: 50% 0; animation: face-smile 6s ease-in-out infinite; }
.face__hand { transform-origin: 76px 94px; animation: face-wave 5.5s ease-in-out infinite; }
@keyframes face-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes face-tip { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3.5deg); } }
@keyframes face-blink { 0%, 91%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }
@keyframes face-brows { 0%, 35%, 100% { transform: translateY(0); } 55%, 80% { transform: translateY(-1.6px); } }
@keyframes face-smile { 0%, 35%, 100% { transform: scale(0.9, 0.8); } 55%, 80% { transform: scale(1.06, 1.1); } }
@keyframes face-wave { 0%, 8% { transform: rotate(0deg); } 14% { transform: rotate(-13deg); } 20% { transform: rotate(11deg); } 26% { transform: rotate(-13deg); } 32% { transform: rotate(11deg); } 40%, 100% { transform: rotate(0deg); } }
.below { padding-top: 34px; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 0; padding: 4px 0 30px; }
/* the snapshot's living meters */
.tally .mini { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 14px; }
.tally .mini i { flex: 1; min-width: 0; border-radius: 1.5px; background: var(--green); opacity: 0.85; transform-origin: bottom; animation: mini-grow 0.7s var(--ease) both; }
.tally .mini i.later { background: rgba(245, 243, 238, 0.16); }
.tally .mini i.now { box-shadow: 0 0 8px rgba(25, 194, 106, 0.8); animation: mini-grow 0.7s var(--ease) both, live 1.4s ease-in-out 0.8s infinite; }
@keyframes mini-grow { from { transform: scaleY(0); } to { transform: none; } }
.tally .lvl { position: relative; display: block; height: 8px; margin: 28px 0 0; border-radius: 99px; background: rgba(245, 243, 238, 0.12); overflow: hidden; }
.tally .lvl > i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 99px; background: var(--green); overflow: hidden; animation: lvl-fill 0.9s var(--ease) both; }
.tally .lvl > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%); background-size: 46px 100%; background-repeat: no-repeat; opacity: 0; }
.tally .lvl.is-in > i::after { opacity: 1; animation: lvl-in 1.8s linear infinite; }   /* charging: light runs toward full */
.tally .lvl.is-out > i::after { opacity: 1; animation: lvl-out 1.8s linear infinite; } /* discharging: light runs back toward the home */
.tally .lvl.is-stop > i { background: var(--amber); }
@keyframes lvl-fill { from { width: 0; } to { width: var(--p); } }
@keyframes lvl-in { from { background-position: -46px 0; } to { background-position: calc(100% + 46px) 0; } }
@keyframes lvl-out { from { background-position: calc(100% + 46px) 0; } to { background-position: -46px 0; } }
.door .pulse { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); vertical-align: 1px; animation: on-now 2s ease-out infinite; }
.door .pulse.warn { background: var(--amber); animation: live 1.4s ease-in-out infinite; }
.still .tally .mini i, .still .tally .lvl > i, .still .tally .lvl > i::after, .still .door .pulse { animation: none; }
.tally b { white-space: nowrap; }
.app .tally b span { display: inline; margin: 0; font-size: inherit; color: inherit; } /* the counting number: part of the figure, not a line of its own */
.app .tally span em { display: block; margin-top: 1px; font-style: normal; font-size: 12px; color: var(--ink-3); } /* label: the thing, then what it is doing */
.tally b small { margin-left: 3px; font-size: 0.46em; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.tally b { display: block; font-size: 44px; font-weight: 400; letter-spacing: -0.05em; line-height: 1; }
.tally span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; } /* always two equal boxes, whatever they say */
.door b, .door span { overflow: hidden; text-overflow: ellipsis; }
.door { position: relative; display: block; min-height: 132px; padding: 16px 16px 18px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, rgba(25, 194, 106, 0.16), rgba(25, 194, 106, 0) 60%), linear-gradient(180deg, rgba(245, 243, 238, 0.08), rgba(245, 243, 238, 0.03));
  box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.12); transition: transform 0.25s var(--ease); }
.door:active { transform: scale(0.98); }
.door .ic--panel, .door .ic--check { width: 24px; height: 24px; color: var(--green); stroke-width: 1.6; }
.door b { display: block; margin-top: 30px; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.door span { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.door .ic--chev { position: absolute; top: 16px; right: 14px; width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(245, 243, 238, 0.1); }
.below .rows { margin: 0 0 26px; }
@media (max-width: 899.98px) {
  /* Home fits one screen, top to bottom, with nothing to scroll. --fold is how tall the words are (app.js measures it);
     the house takes the room above them and sizes itself to fit that room. */
  .app { --fold: 380px; --room: calc(var(--vh, 100svh) - var(--fold)); }
  [data-view="home"] .scene, [data-view="gate"] .scene { height: var(--vh, 100svh); min-height: 0; }
  [data-view="home"] .scene__in, [data-view="gate"] .scene__in { top: calc(var(--room) * 0.56); bottom: auto; width: max(118%, calc(var(--room) * 1.83)); transform: translate(-51.2%, -66%); -webkit-mask-image: none; mask-image: none; }
  [data-view="home"] .scene__fade, [data-view="gate"] .scene__fade { background: linear-gradient(0deg, var(--bg) calc(var(--fold) + 26px), rgba(5, 4, 4, 0.78) calc(var(--fold) + 64px), rgba(5, 4, 4, 0) calc(var(--fold) + 160px)), linear-gradient(180deg, rgba(5, 4, 4, 0.32), rgba(5, 4, 4, 0) 15%); }
  [data-view="home"] .side, [data-view="gate"] .side { margin-top: calc(-1 * var(--fold)); }
  [data-view="home"] .info, [data-view="gate"] .info { margin-top: 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  [data-view="home"] .first { min-height: 0; }
  .big { font-size: clamp(39px, 12.75vw, 53px); letter-spacing: -0.05em; line-height: 0.98; }
  [data-state="alert"] .big, [data-state="quiet"] .big, [data-view="gate"] .big { font-size: clamp(36px, 11vw, 48px); line-height: 1; }
  [data-view="page"] .big { font-size: clamp(40px, 12vw, 54px); line-height: 1; }
  .big + .eye { margin-top: 12px; }
  .sig { margin-top: 18px; gap: 14px; } .below .sig { margin-top: 26px; } .sig p { font-size: 15px; line-height: 1.38; } .face { width: 64px; height: 64px; }
  [data-view="home"] .below { padding-top: 24px; }
  [data-view="home"] .tally { gap: 18px; padding: 30px 0 10px; } [data-view="home"] .tally b { font-size: 36px; } [data-view="home"] .tally span { margin-top: 12px; font-size: 13.5px; color: var(--ink); }
  [data-view="home"] .below .rows { margin: 0 0 14px; }
  /* the two doors, as two short tiles side by side */
  [data-view="home"] .door { display: grid; grid-template-columns: 1fr auto; column-gap: 6px; align-items: center; min-height: 0; padding: 12px 9px 13px 13px; border-radius: 16px; }
  [data-view="home"] .door .ic--panel, [data-view="home"] .door .ic--check { display: none; }
  [data-view="home"] .door b { margin: 0; font-size: 15.5px; white-space: nowrap; } [data-view="home"] .door span { margin: 1px 0 0; font-size: 12px; white-space: nowrap; }
  [data-view="home"] .door b { grid-column: 1; } [data-view="home"] .door span { grid-column: 1; }
  /* an arrow in a soft circle says "this opens" */
  [data-view="home"] .door .ic--chev { position: static; grid-column: 2; grid-row: 1 / 3; width: 24px; height: 24px; padding: 5.5px; border-radius: 50%; background: rgba(245, 243, 238, 0.14); color: var(--ink); }
  /* the two doors are the way in, so they carry some life: a green glow in the glass, a lit edge, a solid green arrow,
     and a slow sheen that crosses one tile and then the other */
  [data-view="home"] .door { padding: 15px 9px 16px 12px; column-gap: 5px; border-radius: 18px;
    background: radial-gradient(130% 150% at 0% 0%, rgba(25, 194, 106, 0.34), rgba(25, 194, 106, 0.06) 62%), linear-gradient(180deg, rgba(245, 243, 238, 0.13), rgba(245, 243, 238, 0.05));
    box-shadow: inset 0 0 0 1px rgba(25, 194, 106, 0.42), inset 0 1px 0 rgba(245, 243, 238, 0.22), 0 10px 26px rgba(0, 0, 0, 0.42), 0 0 22px rgba(25, 194, 106, 0.12); }
  [data-view="home"] .door b { font-size: clamp(16px, 4.7vw, 19px); font-weight: 500; letter-spacing: -0.02em; } [data-view="home"] .door span { margin-top: 3px; font-size: 13.8px; color: rgba(245, 243, 238, 0.86); }
  [data-view="home"] .door .ic--chev { width: 24px; height: 24px; padding: 5.5px; background: var(--green); color: #03170c; stroke-width: 2.4; box-shadow: 0 0 14px rgba(25, 194, 106, 0.5); }
  [data-view="home"] .door::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 62%); transform: translateX(-120%); animation: door-sheen 7s ease-in-out infinite; }
  [data-view="home"] .door + .door::after { animation-delay: 0.5s; }
  .still [data-view="home"] .door::after { animation: none; }
}
/* Home's "last checked" dot is the proof someone is watching: bigger, brighter, with a ring that goes out from it */
[data-view="home"] .big + .eye { color: rgba(245, 243, 238, 0.9); gap: 10px; }
[data-state="ok"][data-view="home"] .big + .eye i { flex: none; width: 9px; height: 9px; box-shadow: 0 0 12px rgba(25, 194, 106, 1); animation: eye-ring 1.9s ease-out infinite; }
@keyframes eye-ring { 0% { box-shadow: 0 0 14px rgba(25, 194, 106, 1), 0 0 0 0 rgba(25, 194, 106, 0.75); } 100% { box-shadow: 0 0 14px rgba(25, 194, 106, 1), 0 0 0 10px rgba(25, 194, 106, 0); } }
.still [data-view="home"] .big + .eye i { animation: none; }
/* Home on a phone, one grid: the headline sits on the page edge; below it three cards of the same width, corner and inner edge
   (the two doors, the three numbers, their person), 10px apart, so every line of text inside a card starts on the same line. */
@media (max-width: 899.98px) {
  .big { letter-spacing: -0.04em; }
  [data-view="home"] .below { padding-top: 22px; }
  [data-view="home"] .door { padding: 14px 8px 15px 12px; column-gap: 3px; } [data-view="home"] .door .ic--chev { width: 22px; height: 22px; padding: 5px; }
  [data-view="home"] .tally, [data-view="home"] .below .sig { border-radius: 18px; background: linear-gradient(180deg, rgba(245, 243, 238, 0.075), rgba(245, 243, 238, 0.03)); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.1), inset 0 1px 0 rgba(245, 243, 238, 0.1); }
  [data-view="home"] .tally { gap: 14px; margin-top: 10px; padding: 16px 12px 15px; }
  [data-view="home"] .tally b { font-size: 30px; letter-spacing: -0.03em; } [data-view="home"] .tally b small { margin-left: 4px; font-size: 0.45em; }
  [data-view="home"] .tally .mini { height: 20px; margin-top: 12px; } [data-view="home"] .tally .lvl { height: 6px; margin-top: 26px; }
  [data-view="home"] .tally span { margin-top: 10px; font-size: 13px; }
  [data-view="home"] .below .sig { margin-top: 10px; padding: 14px 14px 14px 12px; gap: 13px; align-items: center; }
  [data-view="home"] .below .sig .face { width: 56px; height: 56px; }
  [data-view="home"] .below .sig p { font-size: 14.5px; line-height: 1.36; }
}
@keyframes door-sheen { 0%, 78% { transform: translateX(-120%); } 92%, 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .door::after { animation: none !important; } }
/* a clear night, lifted a little so the windows glow and the roof reads */
[data-wx="clear"][data-sky="night"] .scene { --grade: brightness(1.22) saturate(1.12) contrast(1.03); }
[data-wx="clear"][data-sky="dusk"] .scene { --grade: brightness(1.06) saturate(1.2); }

@media (prefers-reduced-motion: reduce) {
  .first > *, [data-view="page"] .info > *, .cell, .cell.is-down, .led, .eye i, .bars i.now, .track .now i, .orb, .cloud, .pv::after, .first.late > *, .face * { animation: none; } .spark { display: none; } .cell.relit { animation: none; opacity: 0.42; }
  .cable, .ping, .wire::after { display: none; }
  .cell { opacity: 0.42; } .cell.is-down { opacity: 0.9; } .scene { transition: none; }
}
/* ?still: the same, on demand (for pictures of the app) */
.still .first > *, .still [data-view="page"] .info > *, .still .cell, .still .led, .still .eye i, .still .bars i.now, .still .track .now i, .still .orb, .still .cloud { animation: none; }
.still .ping, .still .spark { display: none; } .still .first.soon > *, .still .face, .still .face * { animation: none; } .still .first.late > * { animation: none; } .still .cable { animation: none; stroke-dashoffset: 120; } .still .wire::after { animation: none; left: 40%; }
.still .cell { opacity: 0.42; } .still .cell.is-down { opacity: 0.9; } .still .scene { transition: none; }
/* Service record, the lead card: who is watching, since when, and the last 30 days with one mark for each day */
.watched__top { display: flex; align-items: center; gap: 14px; }
.watched__top .face { width: 54px; height: 54px; }
.watched__top p { margin: 0; } .watched__top b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; } .watched__top p span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.watched__strip { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; margin-top: 18px; } /* always 30 places, so a dot is the same size on day 3 as on day 300 */
.watched__strip i { aspect-ratio: 1; border-radius: 50%; background: var(--green); opacity: 0.9; }
.watched__strip i.off { background: rgba(245, 243, 238, 0.12); opacity: 1; }
.watched__strip i.now { opacity: 1; box-shadow: 0 0 9px rgba(25, 194, 106, 0.85); animation: live 1.6s ease-in-out infinite; }
.watched__strip i.warn { background: var(--amber); box-shadow: 0 0 9px rgba(255, 176, 32, 0.8); }
.still .watched__strip i.now { animation: none; }
.watched__key { display: flex; justify-content: space-between; margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.watched .trio { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.watched__last { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .watched__strip i.now { animation: none; } }
/* Home on a phone, calmer: green is kept for what it means (the watching dot, the bar for now, the battery, "on now").
   The cards are plain frosted glass with more air inside, and the three numbers get a hairline between them. */
@media (max-width: 899.98px) {
  [data-view="home"] .door, [data-view="home"] .tally, [data-view="home"] .below .sig {
    background: linear-gradient(180deg, rgba(245, 243, 238, 0.105), rgba(245, 243, 238, 0.04));
    box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.11), inset 0 1px 0 rgba(245, 243, 238, 0.2), 0 10px 28px rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
  [data-view="home"] .doors { gap: 12px; }
  [data-view="home"] .door { padding: 16px 8px 17px 12px; }
  [data-view="home"] .door .ic--chev { background: rgba(245, 243, 238, 0.13); color: var(--ink); stroke-width: 2; box-shadow: none; }
  [data-view="home"] .door span { color: var(--ink-2); }
  [data-view="home"] .door::after { background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0) 60%); }
  [data-view="home"] .tally { gap: 0; margin-top: 12px; padding: 19px 12px 18px; }
  [data-view="home"] .tally > div + div { padding-left: 14px; border-left: 1px solid rgba(245, 243, 238, 0.09); }
  [data-view="home"] .tally > div { padding-right: 12px; } [data-view="home"] .tally > div:last-child { padding-right: 0; }
  [data-view="home"] .tally b { font-size: 28px; }
  [data-view="home"] .tally .mini { height: 18px; margin-top: 15px; } [data-view="home"] .tally .lvl { height: 5px; margin-top: 28px; }
  [data-view="home"] .tally .mini i { background: rgba(245, 243, 238, 0.4); opacity: 1; }
  [data-view="home"] .tally .mini i.later { background: rgba(245, 243, 238, 0.13); }
  [data-view="home"] .tally .mini i.now { background: var(--green); box-shadow: 0 0 7px rgba(25, 194, 106, 0.7); }
  [data-view="home"] .tally span { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
  [data-view="home"] .below .sig { margin-top: 12px; padding: 16px 14px 16px 12px; }
  [data-view="home"] .sig__msg { color: var(--ink); background: rgba(245, 243, 238, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.17); }
}
/* Home on a phone, alive: glass needs light behind it. Two soft lights drift slowly behind the cards (green, and a cool blue),
   so the frosted cards pick up colour that moves, without any card being painted green. The arrows are the one solid accent. */
@media (max-width: 899.98px) {
  [data-view="home"] .below { position: relative; }
  [data-view="home"] .below > * { position: relative; z-index: 1; }
  [data-view="home"] .below::before, [data-view="home"] .below::after { content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(46px); will-change: transform; }
  [data-view="home"] .below::before { left: -12%; top: 4%; width: 68%; height: 46%; background: rgba(25, 194, 106, 0.2); animation: glow-a 13s ease-in-out infinite alternate; }
  [data-view="home"] .below::after { right: -14%; bottom: 6%; width: 62%; height: 44%; background: rgba(64, 150, 255, 0.13); animation: glow-b 17s ease-in-out infinite alternate; }
  [data-view="home"] .door, [data-view="home"] .tally, [data-view="home"] .below .sig {
    background: linear-gradient(180deg, rgba(245, 243, 238, 0.12), rgba(245, 243, 238, 0.045));
    box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.13), inset 0 1px 0 rgba(245, 243, 238, 0.26), 0 10px 28px rgba(0, 0, 0, 0.34);
    -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
  [data-view="home"] .door .ic--chev { background: var(--green); color: #03170c; stroke-width: 2.4; box-shadow: 0 0 12px rgba(25, 194, 106, 0.45); }
  [data-view="home"] .door::after { background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 62%); animation-duration: 6s; }
  [data-view="home"] .tally .lvl > i::after { opacity: 0.7; animation: lvl-in 2.6s linear infinite; } /* the battery always has a little light running through it */
  [data-view="home"] .tally .mini i { background: rgba(245, 243, 238, 0.46); }
  .still [data-view="home"] .below::before, .still [data-view="home"] .below::after, .still [data-view="home"] .tally .lvl > i::after { animation: none; }
}
@keyframes glow-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(46%, 58%) scale(1.15); } }
@keyframes glow-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-42%, -52%) scale(0.92); } }
@media (prefers-reduced-motion: reduce) { [data-view="home"] .below::before, [data-view="home"] .below::after { animation: none !important; } }
@media (max-width: 899.98px) { [data-view="home"] .info { overflow: hidden; overflow: clip; } } /* the drifting lights stop at the screen's edges and never add anything to scroll */
/* a quieter sun: a small soft disc and a faint halo, not a flare */
.orb--sun { background: radial-gradient(circle, rgba(255, 247, 226, 0.9) 0, rgba(255, 235, 190, 0.55) 1.8%, rgba(255, 214, 140, 0.17) 5.5%, rgba(255, 205, 130, 0.05) 16%, rgba(255, 200, 120, 0) 38%); }

/* ---- Your system: the model house, with the power moving through it (2026-11-20) ---- */
.info section.card.ef { overflow: hidden; }
.ef__pic { position: relative; margin: 0 -18px; aspect-ratio: 2050 / 1550; overflow: hidden; background: #0a0d14; }
.ef__pic svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ef__pic::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 4, 4, 0.28), rgba(5, 4, 4, 0) 22%, rgba(5, 4, 4, 0) 62%, rgba(5, 4, 4, 0.5)); }
.ef__roof { fill: var(--green); opacity: 0.3; mix-blend-mode: screen; animation: ef-roof 4s ease-in-out infinite; }
.ef__wire { fill: none; stroke: rgba(245, 243, 238, 0.42); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ef__run { fill: none; stroke: #3dff9c; stroke-width: 17; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16 84; filter: drop-shadow(0 0 12px rgba(25, 194, 106, 0.95)); animation: ef-out 2.8s linear infinite; }
.ef__run--in { animation-name: ef-in; }
.ef__run.grid { stroke: #f5f3ee; filter: drop-shadow(0 0 12px rgba(245, 243, 238, 0.7)); } /* bought from the grid: not green */
.ef__hub { fill: var(--green); filter: drop-shadow(0 0 14px rgba(25, 194, 106, 0.9)); }
.ef__chip { position: absolute; z-index: 1; transform: translate(-50%, -50%); padding: 5px 9px 6px; border-radius: 12px; text-align: center; white-space: nowrap; background: rgba(8, 10, 14, 0.56); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(245, 243, 238, 0.16); }
.ef__chip b { display: block; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ef__chip span { display: block; margin-top: 1px; font-size: 10.5px; color: rgba(245, 243, 238, 0.72); }
.ef__chip.off b { color: rgba(245, 243, 238, 0.6); font-weight: 400; } .ef__chip.warn b { color: var(--amber); }
.ef .card__say { margin-top: 0; border-top: 0; }
.ef__est { margin: 8px 0 0; font-size: 12px; color: var(--ink-3); } .cap + .ef__est { text-align: center; }
.ef__lab { margin: 16px 0 12px !important; padding-top: 14px; border-top: 1px solid var(--line); }
.ef__day { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.ef__day b { display: block; font-size: 21px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; }
.ef__day span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink-2); }
@keyframes ef-out { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ef-in { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
@keyframes ef-roof { 50% { opacity: 0.16; } }
.still .ef__run, .still .ef__roof { animation: none; } .still .ef__run { stroke-dashoffset: 55; }
@media (prefers-reduced-motion: reduce) { .ef__run, .ef__roof { animation: none; } .ef__run { stroke-dashoffset: 55; } }

/* ---- Your system: the dark model home (2026-11-20). Pictures from blender-b/model.py; a part that is on glows green. ---- */
.info section.card.mhc { overflow: hidden; }
.mh { position: relative; margin: -4px -18px 0; overflow: hidden; }
.mh__in { position: absolute; left: 0; width: 100%; }
.mh__pics { position: absolute; inset: 0; mix-blend-mode: screen; } /* black in the pictures is see-through: the card and its border show */
.mh__pics img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mh__glow { mix-blend-mode: screen; animation: mh-breathe 4.5s ease-in-out infinite; }
.mh__glow.is-low { opacity: 0.4; animation: none; } .mh__glow.is-home { opacity: 0.22; animation: none; }
.mh__in svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.mh__wire { fill: none; stroke: rgba(245, 243, 238, 0.2); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.mh__wire.is-on { stroke: rgba(25, 194, 106, 0.5); } .mh__wire.is-on.grid { stroke: rgba(245, 243, 238, 0.36); }
.mh__run { fill: none; stroke: var(--green); stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 20 80; filter: drop-shadow(0 0 3px rgba(25, 194, 106, 0.95)); animation: ef-out 3.6s linear infinite; }
.mh__run--in { animation-name: ef-in; }
.mh__run.grid { stroke: #f5f3ee; filter: drop-shadow(0 0 3px rgba(245, 243, 238, 0.7)); }
.mh__tag { position: absolute; text-align: center; white-space: nowrap; pointer-events: none; }
.mh__tag b { display: block; font-size: 14px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.mh__tag span { display: block; margin-top: 2px; font-size: 9.5px; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(245, 243, 238, 0.52); }
.mh__tag::after { content: ""; position: absolute; left: 50%; width: 1px; height: 13px; background: rgba(245, 243, 238, 0.3); }
.mh__tag--up { transform: translate(-50%, -100%); padding-bottom: 17px; } .mh__tag--up::after { bottom: 0; }
.mh__tag--down { transform: translate(-50%, 0); padding-top: 17px; } .mh__tag--down::after { top: 0; }
.mh__tag.r { transform: translate(-76%, -100%); } .mh__tag.r::after { left: 76%; }
.mh__tag.off b { color: rgba(245, 243, 238, 0.45); font-weight: 400; }
.mhc .card__say { margin-top: 4px; border-top: 0; padding-top: 0; }
@keyframes mh-breathe { 50% { opacity: 0.86; } }
.still .mh__run, .still .mh__glow { animation: none; } .still .mh__run { stroke-dashoffset: 40; }
@media (prefers-reduced-motion: reduce) { .mh__run, .mh__glow { animation: none; } .mh__run { stroke-dashoffset: 40; } }
.mh__pics { -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 84%, transparent); } /* no hard top or bottom edge on the picture */

/* the model home's numbers: one row under the picture, same order every time (2026-11-20) */
.mh__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; margin-top: 10px; text-align: center; }
.mh__row > div { flex: 1 1 auto; min-width: 0; }
.mh__row b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.mh__row span { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; color: rgba(245, 243, 238, 0.52); }
.mh__row .off b { color: rgba(245, 243, 238, 0.42); font-weight: 400; }
.mhc .card__say { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mh__pics { -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); }

/* ---- Your panels (its own page, 2026-11-20): the roof as outline tiles, in the same language as the model home.
   Each tile is a hairline frame, see-through, with a green level inside for what it made today. No blue. ---- */
.card .array.array--line { margin: 4px 0 0; gap: 7px; transform: none; }
.array--line .pv { aspect-ratio: 1 / 1.3; border-radius: 7px; overflow: hidden; background: rgba(245, 243, 238, 0.025); box-shadow: inset 0 0 0 1px rgba(200, 210, 225, 0.3); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); animation: pvl-in 0.5s var(--ease) var(--d) both; }
.array--line .pv::before { inset: 0; background: linear-gradient(rgba(200, 210, 225, 0.12), rgba(200, 210, 225, 0.12)) 50% 0 / 1px 100% no-repeat, linear-gradient(rgba(200, 210, 225, 0.12), rgba(200, 210, 225, 0.12)) 0 33.3% / 100% 1px no-repeat, linear-gradient(rgba(200, 210, 225, 0.12), rgba(200, 210, 225, 0.12)) 0 66.6% / 100% 1px no-repeat; }
.array--line .pv::after { display: none; }
.array--line .pv i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--o) * 100%); background: linear-gradient(180deg, rgba(25, 194, 106, 0.34), rgba(25, 194, 106, 0.1)); border-top: 1px solid var(--green); transform-origin: bottom; animation: pvl-fill 0.9s var(--ease) calc(var(--d) + 0.15s) both; }
.array--line .pv em { position: absolute; left: 6px; top: 5px; font-style: normal; font-size: 10px; color: rgba(245, 243, 238, 0.5); }
.array--line .pv.is-on { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--green), 0 8px 18px -8px rgba(25, 194, 106, 0.6); }
.array--line .pv.is-on em { color: var(--ink); }
.array--line .pv.down { box-shadow: inset 0 0 0 1.5px var(--amber); } .array--line .pv.down i { height: 100%; background: rgba(255, 176, 32, 0.16); border-top: 0; }
.array--line .pv.off i { display: none; }
@keyframes pvl-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pvl-fill { from { transform: scaleY(0); } }
.still .array--line .pv, .still .array--line .pv i { animation: none; }
@media (prefers-reduced-motion: reduce) { .array--line .pv, .array--line .pv i { animation: none; } }
/* Home: the green light drifting behind the cards was too loud (owner, 2026-11-20). It is now a faint neutral light; the idea is still open. */
[data-view="home"] .below::before { background: rgba(245, 243, 238, 0.055); }
/* one arrow everywhere (2026-11-20): the green round arrow from Home, on every row that opens a page */
.kit .ic--chev, .row.go .ic--chev { flex: none; width: 24px; height: 24px; padding: 5.5px; border-radius: 50%; background: var(--green); color: #03170c; stroke-width: 2.4; box-shadow: 0 0 12px rgba(25, 194, 106, 0.45); }

/* the model home's numbers, second layout (2026-11-20): a short list, one line each */
.mh__list { margin: 6px 0 -6px; }
.mh__li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.mh__li i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(25, 194, 106, 0.7); }
.mh__li span { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); }
.mh__li em { margin-left: 8px; font-style: normal; font-size: 13px; color: var(--ink-2); }
.mh__li b { font-size: 16px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.mh__li.off i { background: rgba(245, 243, 238, 0.22); box-shadow: none; }
.mh__li.off span, .mh__li.off b { color: rgba(245, 243, 238, 0.45); font-weight: 400; }

/* ---- Your panels, second look (2026-11-20): each tile drawn as a real panel: black cells, fine cell lines, a metal frame, a soft
   sheen across the glass. All the same height, so the roof lines up. The panel's number sits on it; what it made today is under it. ---- */
.card .array.array--real { margin: 2px 0 0; gap: 12px 8px; transform: none; padding: 14px 10px 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(245, 243, 238, 0.045), rgba(245, 243, 238, 0.015)); box-shadow: inset 0 0 0 1px var(--line); }
.array--real .pv { aspect-ratio: auto; overflow: visible; border-radius: 0; background: none; box-shadow: none; display: block; padding: 0; text-align: center; animation: pvl-in 0.5s var(--ease) var(--d) both; }
.array--real .pv::before, .array--real .pv::after { display: none; }
.array--real .pv i { position: relative; display: block; aspect-ratio: 1 / 1.62; border-radius: 3px; border: 2px solid #7d838c; border-top-color: #a3a9b2; border-bottom-color: #5c6169; overflow: hidden;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.05) 100%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(25% - 1px), rgba(140, 160, 195, 0.28) calc(25% - 1px), rgba(140, 160, 195, 0.28) 25%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(12.5% - 1px), rgba(140, 160, 195, 0.28) calc(12.5% - 1px), rgba(140, 160, 195, 0.28) 12.5%),
    linear-gradient(165deg, #131b2c, #070a12 75%);
  box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.9); transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease; }
.array--real .pv em { position: absolute; left: 4px; top: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; font-style: normal; font-size: 10.5px; font-weight: 600; line-height: 17px; color: #fff; background: rgba(5, 6, 9, 0.72); }
.array--real .pv small { display: block; margin-top: 6px; font-size: 12px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.array--real .pv.is-on { transform: none; box-shadow: none; }
.array--real .pv.is-on i { transform: translateY(-4px); border-color: var(--green); box-shadow: 0 10px 18px -8px rgba(25, 194, 106, 0.7); }
.array--real .pv.is-on small { color: var(--green); }
.array--real .pv.down i { border-color: var(--amber); } .array--real .pv.down small { color: var(--amber); }
.array--real .pv.off i { opacity: 0.45; }
.still .array--real .pv { animation: none; }
@media (prefers-reduced-motion: reduce) { .array--real .pv { animation: none; } }
/* Home: "Today's production" stays on one line (2026-11-20): the first of the three numbers gets a little more room */
[data-view="home"] .tally { grid-template-columns: 1.32fr 1fr 1fr; }
[data-view="home"] .tally > div > span { white-space: nowrap; letter-spacing: -0.01em; }
/* the list, tidied (2026-11-20): every line is set the same way. Only the dot and the number tell on from off. */
.mh__li span, .mh__li.off span { font-size: 15px; font-weight: 400; color: rgba(245, 243, 238, 0.86); }
.mh__li b, .mh__li.off b { font-size: 15.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.mh__li.off b { color: rgba(245, 243, 238, 0.4); }
.mh__li.off i { background: none; box-shadow: inset 0 0 0 1.5px rgba(245, 243, 238, 0.3); }
/* ---- Home's house, live (2026-11-24): the energy lines on the photo. Hairlines; a short light runs along the ones in use. ---- */
.pic.parts { pointer-events: none; }
.hf__wire { fill: none; stroke: rgba(245, 243, 238, 0.22); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.hf__wire.is-on { stroke: rgba(25, 194, 106, 0.45); } .hf__wire.is-on.grid { stroke: rgba(245, 243, 238, 0.34); }
.hf__run { fill: none; stroke: var(--green); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 16 84; filter: drop-shadow(0 0 10px rgba(25, 194, 106, 0.95)); animation: ef-out 4s linear infinite; }
.hf__run--in { animation-name: ef-in; }
.hf__run.grid { stroke: #f5f3ee; filter: drop-shadow(0 0 10px rgba(245, 243, 238, 0.7)); }
.still .hf__run { animation: none; stroke-dashoffset: 40; }
@media (prefers-reduced-motion: reduce) { .hf__run { animation: none; stroke-dashoffset: 40; } }
/* Home's line, quieter (2026-11-24): one hairline, a small soft light, no glow */
.hf__wire, .hf__wire.is-on, .hf__wire.is-on.grid { stroke: rgba(245, 243, 238, 0.26); stroke-width: 2.5; }
.hf__run { stroke-width: 5; stroke-dasharray: 12 88; filter: none; opacity: 0.9; animation-duration: 3.2s; }
.hf__run.grid { filter: none; }
/* Home's cards, with depth (2026-11-24: "hazy, dull, no depth"). The drifting lights behind them are off: they were the haze.
   Each card is now a solid dark pane: lit along its top edge, shaded toward the bottom, lifted off the page by a real shadow. */
@media (max-width: 899.98px) {
  [data-view="home"] .below::before, [data-view="home"] .below::after { display: none; }
  [data-view="home"] .door, [data-view="home"] .tally, [data-view="home"] .below .sig {
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #1f2023, #131315 62%, #0e0e10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 -18px 24px -18px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(0, 0, 0, 0.9), 0 14px 26px -10px rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  [data-view="home"] .tally > div + div { border-left-color: rgba(255, 255, 255, 0.07); box-shadow: -1px 0 0 rgba(0, 0, 0, 0.6); }
  [data-view="home"] .tally .mini i { background: rgba(245, 243, 238, 0.5); }
  [data-view="home"] .tally .mini i.later { background: rgba(245, 243, 238, 0.14); }
  [data-view="home"] .tally .lvl { box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7); }
  [data-view="home"] .sig__msg { background: linear-gradient(180deg, #2c2d31, #1d1e21); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 10px -4px rgba(0, 0, 0, 0.8); }
}
/* ---- Home, reorganised (2026-11-24): the checks count, four ticks, three doors ---- */
.cnt { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); } .cnt b { font-weight: 500; color: var(--ink); }
.chks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.chk { display: block; padding: 14px 4px 12px; border-radius: 18px; text-align: center; color: var(--ink);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 55%), linear-gradient(180deg, #1f2023, #131315 62%, #0e0e10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 22px -10px rgba(0, 0, 0, 0.85); transition: transform 0.2s var(--ease); }
.chk:active { transform: scale(0.97); }
.chk i { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 9px; border-radius: 50%; color: var(--green); box-shadow: inset 0 0 0 2px var(--green), 0 0 14px rgba(25, 194, 106, 0.32); }
.chk .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.chk b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chk span { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.chk.warn i { color: var(--amber); box-shadow: inset 0 0 0 2px var(--amber), 0 0 14px rgba(255, 176, 32, 0.3); } .chk.warn span { color: var(--amber); }
[data-view="home"] .chks + .tally { margin-top: 10px; }
.go3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.go3 a { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 14px 10px 14px 13px; border-radius: 18px; font-size: 14px; font-weight: 500; color: var(--ink);
  background: linear-gradient(180deg, #1f2023, #121214); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 10px 20px -10px rgba(0, 0, 0, 0.85); transition: transform 0.2s var(--ease); }
.go3 a:active { transform: scale(0.97); }
.go3 .ic--chev { flex: none; width: 20px; height: 20px; padding: 4.5px; border-radius: 50%; background: var(--green); color: #03170c; stroke-width: 2.6; }
[data-view="home"] .below .sig { margin-top: 10px; }

/* ---- Home, redrawn (2026-11-24, approved from mockups/v9-1.png): one bar that says "Normal", then four boxes built the same way
   (a name, one big line, one small line, a picture along the bottom). The old Home's styles above are kept for ?home=old. */
[data-view="home"] .first.hm-first { min-height: 0; padding: 0; } .hm-first:empty { display: none; }
.hm-first .soft { margin: 0 2px 14px; }
.hm-sys, .hm-t { position: relative; display: block; border-radius: 22px; color: var(--ink); overflow: hidden; background: linear-gradient(180deg, #1b1e25, #111319);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 30px -18px rgba(0, 0, 0, 0.9); transition: transform 0.2s var(--ease); }
.hm-sys:active, .hm-t:active { transform: scale(0.98); }
.hm .ic--chev { flex: none; width: 26px; height: 26px; padding: 6.5px; border-radius: 50%; background: rgba(25, 194, 106, 0.16); color: var(--green); stroke-width: 2.4; }
.hm-sys { display: flex; align-items: center; gap: 14px; padding: 22px 18px; }
.hm-sys .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(25, 194, 106, 0.9); }
.hm-sys p { flex: 1; margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.hm-sys p > span { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); } .hm-sys p > span span { display: inline; }
.hm-sys.late .dot { background: var(--amber); box-shadow: 0 0 14px rgba(255, 176, 32, 0.9); }
.hm-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.hm-t { padding: 15px 16px 16px; min-height: clamp(170px, 21.2vh, 198px); }
.hm-t small { display: block; font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-2); }
.hm-t > .ic--chev { position: absolute; right: 14px; top: 13px; }
.hm-t b { display: block; margin-top: 12px; font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-t b span { display: inline; margin: 0; font-size: inherit; color: inherit; }
.hm-t b i { font-style: normal; font-size: 15px; font-weight: 400; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.hm-t .s { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; } .hm-t .s span { display: inline; }
.hm-t.warn .s { color: var(--amber); }
.hm-t .mini, .hm-foot { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 44px; }
.hm-t .mini { display: flex; align-items: flex-end; gap: 3px; }
.hm-t .mini i { flex: 1; min-width: 0; border-radius: 2px; background: rgba(25, 194, 106, 0.85); }
.hm-t .mini i.later { background: rgba(245, 243, 238, 0.14); } .hm-t .mini i.now { background: var(--green); box-shadow: 0 0 8px rgba(25, 194, 106, 0.7); }
.hm-t[href="#saved"] .mini i:not(.now):not(.later) { opacity: 0.45; }
.hm-foot { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.3; color: var(--green); }
.hm-meter { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 9px; color: var(--ink-2); } .hm-meter em { font-style: normal; font-weight: 500; color: var(--green); }
.hm-meter u { display: block; height: 10px; border-radius: 6px; background: rgba(245, 243, 238, 0.12); overflow: hidden; text-decoration: none; }
.hm-meter u i { display: block; height: 100%; min-width: 4px; border-radius: 6px; background: var(--green); box-shadow: 0 0 10px rgba(25, 194, 106, 0.6); }
.hm-on { font-style: normal; } .hm-on.is-on { color: var(--green); font-weight: 500; } .hm-on:not(.is-on) + .hm-till { display: none; }
.hm-live { position: relative; flex: none; display: block; width: 44px; height: 44px; } .hm .hm-live .face { display: block; width: 44px; height: 44px; }
.hm-live > i { position: absolute; right: -2px; top: -2px; width: 13px; height: 13px; border-radius: 50%; background: #6b665e; box-shadow: 0 0 0 3px #14161c; }
.hm-live.is-on > i { background: var(--green); animation: hm-pulse 2s ease-in-out infinite; }
@keyframes hm-pulse { 0%, 100% { box-shadow: 0 0 0 3px #14161c, 0 0 0 3px rgba(25, 194, 106, 0.5); } 50% { box-shadow: 0 0 0 3px #14161c, 0 0 0 9px rgba(25, 194, 106, 0); } }
.hm-live:not(.is-on) ~ .hm-r1, .hm-live.is-on ~ .hm-r0 { display: none; } .hm-live:not(.is-on) ~ .hm-r0 { color: var(--ink-2); }
.still .hm-live > i { animation: none; } @media (prefers-reduced-motion: reduce) { .hm-live > i { animation: none; } }
.card--sig .sig { margin: 0; }
@media (min-width: 900px) { .hm-first:empty + .below.hm { padding-top: 76px; } }
.watched .sig { margin: 0 0 18px; }
/* Home's line, livelier (2026-11-24: "a bit too quiet"): the line glows, two lights run along it, the ends breathe, the rings beat faster */
.hf__wire.is-on { stroke: rgba(25, 194, 106, 0.5); stroke-width: 3; } .hf__wire.is-on.grid { stroke: rgba(245, 243, 238, 0.42); stroke-width: 3; }
.hf__run { stroke-width: 7; stroke-dasharray: 9 41; opacity: 1; filter: drop-shadow(0 0 8px rgba(25, 194, 106, 0.95)); animation-duration: 2.4s; }
.hf__run.grid { filter: drop-shadow(0 0 8px rgba(245, 243, 238, 0.8)); }
.hf__node { fill: var(--green); filter: drop-shadow(0 0 10px rgba(25, 194, 106, 0.95)); transform-box: fill-box; transform-origin: center; animation: hf-node 1.6s ease-in-out infinite; }
.hf__node.n2 { animation-delay: 0.8s; } .hf__node.grid { fill: #f5f3ee; filter: drop-shadow(0 0 10px rgba(245, 243, 238, 0.8)); }
@keyframes hf-node { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.55); opacity: 1; } }
.fx .ping { stroke-width: 4; animation-duration: 2.4s; } .fx .ping.p2 { animation-delay: 1.2s; }
.still .hf__node { animation: none; } @media (prefers-reduced-motion: reduce) { .hf__node { animation: none; } }
/* The Normal dot beats in time with the rings on the house (2026-11-24): same 2.4 seconds, same two rings */
.hm-sys .dot { position: relative; animation: hm-dot 2.4s ease-in-out infinite; }
.hm-sys .dot::before, .hm-sys .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--green); animation: hm-ring 2.4s ease-out infinite; }
.hm-sys .dot::after { animation-delay: 1.2s; }
.hm-sys.late .dot::before, .hm-sys.late .dot::after { box-shadow: 0 0 0 1.5px var(--amber); }
@keyframes hm-ring { from { transform: scale(1); opacity: 0.9; } 70%, to { transform: scale(3.2); opacity: 0; } }
@keyframes hm-dot { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
.still .hm-sys .dot, .still .hm-sys .dot::before, .still .hm-sys .dot::after { animation: none; } .still .hm-sys .dot::before, .still .hm-sys .dot::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hm-sys .dot, .hm-sys .dot::before, .hm-sys .dot::after { animation: none; } .hm-sys .dot::before, .hm-sys .dot::after { opacity: 0; } }
@keyframes hm-ring { from { transform: scale(1); opacity: 0.9; } 70%, to { transform: scale(2.5); opacity: 0; } } /* smaller, so the ring never touches the word */
/* Right now: the dot beside each thing that is running pulses, a ring going out every 2.4 seconds like the rings on Home's house
   (2026-11-24). Each one starts a little after the one above, so the list ripples. A thing that is off keeps its still, hollow dot. */
.mh__li:not(.off) i { position: relative; }
.mh__li:not(.off) i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--green); animation: hm-ring 2.4s ease-out infinite; }
.mh__li:nth-child(2) i::after { animation-delay: 0.3s; } .mh__li:nth-child(3) i::after { animation-delay: 0.6s; } .mh__li:nth-child(4) i::after { animation-delay: 0.9s; } .mh__li:nth-child(5) i::after { animation-delay: 1.2s; }
.still .mh__li i::after { animation: none; opacity: 0; } @media (prefers-reduced-motion: reduce) { .mh__li i::after { animation: none; opacity: 0; } }
/* Both houses move the same way (2026-11-24): the house on Your system gets the same two running lights, on the same 2.4-second beat, as Home's */
.mh__run { stroke-dasharray: 9 41; animation-duration: 2.4s; }
.hm-foot .hm-r1 { color: var(--ink); } /* "Replies within the hour" in white (owner, 2026-11-24) */
/* Your panels, all black and glossy (owner, 2026-11-24: "the panel color is so old"): black glass, a black frame, the faintest cell
   lines, a band of gloss, and a slow light that crosses each panel in turn. The blue-grey look above is kept, overridden here. */
.array--real .pv i { border: 1.5px solid #1b1d22; border-top-color: #3b3e46; border-bottom-color: #0b0c0f; border-radius: 4px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.05) 33%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(16.66% - 1px), rgba(255, 255, 255, 0.055) calc(16.66% - 1px), rgba(255, 255, 255, 0.055) 16.66%),
    linear-gradient(90deg, rgba(0, 0, 0, 0) calc(50% - 0.5px), rgba(255, 255, 255, 0.055) calc(50% - 0.5px), rgba(255, 255, 255, 0.055) calc(50% + 0.5px), rgba(0, 0, 0, 0) calc(50% + 0.5px)),
    linear-gradient(160deg, #101216, #030304 72%);
  box-shadow: 0 12px 18px -9px #000, inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.array--real .pv i::after { content: ""; position: absolute; inset: -20% -70%; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 43%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0) 57%); transform: translateX(-75%); animation: pv-shine 7s ease-in-out calc(var(--d) * 4 + 1.2s) infinite; }
@keyframes pv-shine { 0% { transform: translateX(-75%); } 20%, 100% { transform: translateX(75%); } }
.array--real .pv em { background: rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.still .array--real .pv i::after { animation: none; } @media (prefers-reduced-motion: reduce) { .array--real .pv i::after { animation: none; } }
/* Your panels, tighter (owner, 2026-11-24): a fine, even grid like a real panel's cells (6 across, 10 down), and no shine lines:
   the gloss band and the moving light are both off. */
.array--real .pv i { background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(16.666% - 1px), rgba(255, 255, 255, 0.075) calc(16.666% - 1px), rgba(255, 255, 255, 0.075) 16.666%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(10% - 1px), rgba(255, 255, 255, 0.075) calc(10% - 1px), rgba(255, 255, 255, 0.075) 10%),
    linear-gradient(160deg, #101216, #030304 72%); }
.array--real .pv i::after { display: none; }
/* Your panels, third pass (owner, 2026-11-24): only hair-thin lines running top to bottom, barely there; dark glass with a soft,
   wide sheen (no hard shine line); and a frame you can see: brushed dark metal, lit along the top edge. */
.array--real .pv i { border: 2.5px solid #34373e; border-top-color: #565a63; border-left-color: #40434b; border-bottom-color: #1d1f24; border-radius: 4px;
  background:
    radial-gradient(120% 70% at 18% 0%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(200deg, rgba(120, 150, 210, 0.07), rgba(0, 0, 0, 0) 55%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(6.25% - 0.5px), rgba(255, 255, 255, 0.045) calc(6.25% - 0.5px), rgba(255, 255, 255, 0.045) 6.25%),
    linear-gradient(170deg, #0d0f13, #020203 75%);
  box-shadow: 0 12px 18px -9px #000, inset 0 0 0 1px rgba(0, 0, 0, 0.9), inset 0 1px 0 1px rgba(255, 255, 255, 0.05); }
/* The three-number rows, in step with Home (owner, 2026-11-24: "text doesn't seem lined up with the overall page aesthetic"):
   the same bold figures as Home's boxes, three even columns, a hairline between them. Used on Your panels, Money saved, Equipment and Service. */
.card .trio { gap: 0; }
.card .trio > div { padding: 0 0 0 16px; border-left: 1px solid var(--line); } .card .trio > div:first-child { padding-left: 0; border-left: 0; }
.card .trio b { font-size: 30px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.card .trio span { margin-top: 7px; font-size: 13px; color: var(--ink-2); }
/* Your panels: every line shows now (owner, 2026-11-24: "the grid lines are not all there"). The lines were half a pixel wide and
   spaced by percent, so the screen dropped some. Now each is one whole pixel, one every 6 pixels, all the same. */
.array--real .pv i { background:
    radial-gradient(120% 70% at 18% 0%, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(200deg, rgba(120, 150, 210, 0.07), rgba(0, 0, 0, 0) 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 6px) 3px 0,
    linear-gradient(170deg, #0d0f13, #020203 75%); }
/* Your panels, fourth pass (owner, 2026-11-24: "more lines. darker glass more shine"): a line every 3 pixels (twice as many),
   glass that goes to true black, and a brighter, still soft, light in the top corner with a faint answer in the bottom corner. */
.array--real .pv i { background:
    radial-gradient(130% 62% at 12% -4%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.09) 38%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(90% 45% at 100% 104%, rgba(150, 175, 230, 0.12), rgba(255, 255, 255, 0) 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 3px) 1px 0,
    linear-gradient(175deg, #06070a, #000 60%);
  box-shadow: 0 12px 18px -9px #000, inset 0 0 0 1px #000, inset 0 1px 0 1px rgba(255, 255, 255, 0.09); }
/* Home's four boxes, one voice (owner, 2026-11-24: "make the text in each box match"): every small line under the big one is the
   same grey, and every line of words along the bottom is the same white. Green is left to the pictures: bars, meter, the live dot. */
.hm-t .s, .hm-t .s .hm-on, .hm-t .s .hm-on.is-on { color: var(--ink-2); font-weight: 400; }
.hm-t.warn .s { color: var(--amber); }
.hm-foot, .hm-meter, .hm-meter em, .hm-foot .hm-r1 { color: var(--ink); font-weight: 400; font-size: 13px; }
.hm-live:not(.is-on) ~ .hm-r0 { color: var(--ink); }

/* ---- The three buttons along the bottom: Home, System, Service (2026-11-24, approved from mockups/tabs-home.png). A dark glass
   bar; the one for where you are is lit green. Phones: fixed to the bottom of the screen, and every page leaves room for it.
   Wide screens: it rides at the bottom of the right-hand column. */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 7px; border-radius: 26px; background: rgba(22, 24, 30, 0.82); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 18px 34px -12px rgba(0, 0, 0, 0.9); z-index: 30; }
.tabs[hidden] { display: none; }
.tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 0; border-radius: 20px; font-size: 13.5px; font-weight: 500; color: rgba(245, 243, 238, 0.62); transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease); }
.tabs a:active { transform: scale(0.96); }
.tabs a .ic { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: #04130b; background: var(--green); font-weight: 600; }
@media (max-width: 899px) {
  .tabs { position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .app.has-tabs .info { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .app.has-tabs[data-view="page"] .info { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  /* Home, a little tighter, so the house keeps its size above the bar */
  .hm .hm-sys { padding: 15px 18px; } .hm .hm-sys p { font-size: 27px; }
  .hm .hm-t { min-height: clamp(152px, 17.8vh, 166px); padding-top: 13px; } .hm .hm-t b { margin-top: 9px; font-size: 36px; } .hm .hm-t .s { margin-top: 4px; }
  .hm .hm-t .mini, .hm .hm-foot { height: 32px; bottom: 14px; } .hm .hm-meter { gap: 6px; }
  .hm .hm-live, .hm .hm-live .face { width: 32px; height: 32px; } .hm .hm-foot br { display: none; }
}
@media (min-width: 900px) { .tabs { position: sticky; bottom: 16px; margin: 16px 16px 0; } }
/* Short phones (an iPhone SE): Home tighter still, so the house is not squeezed out by the bar */
@media (max-width: 899px) and (max-height: 720px) {
  .hm .hm-sys { padding: 11px 16px; } .hm .hm-sys p { font-size: 23px; } .hm-g { gap: 8px; margin-top: 8px; }
  .hm .hm-t { min-height: 132px; padding: 11px 14px 12px; } .hm .hm-t b { margin-top: 6px; font-size: 30px; } .hm .hm-t .s { margin-top: 3px; font-size: 12.5px; }
  .hm .hm-t > .ic--chev { top: 9px; right: 10px; width: 22px; height: 22px; padding: 5.5px; }
  .hm .hm-t .mini, .hm .hm-foot { left: 14px; right: 14px; height: 24px; bottom: 11px; font-size: 12px; } .hm .hm-meter { gap: 4px; } .hm .hm-meter u { height: 7px; }
  .hm .hm-live, .hm .hm-live .face { width: 24px; height: 24px; } .hm-live > i { width: 9px; height: 9px; }
  .tabs { padding: 5px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); } .tabs a { padding: 9px 0; }
  .app.has-tabs .info { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  [data-view="home"] .below.hm { padding-top: 14px; }
}

/* ---- Brighter (owner, 2026-11-24: "the app on my phone looks dim, even with the brightness up"). The look stays dark, but nothing
   is left murky: the small grey words are much lighter, the cards are lifted off the black, the lines between things show, the green
   is a shade brighter, and the evening and night pictures of the house are lit up a little. ---- */
:root { --ink-2: rgba(245, 243, 238, 0.8); --ink-3: rgba(245, 243, 238, 0.6); --line: rgba(245, 243, 238, 0.17); --green: #22d97c; --bg: #08090b; }
.info section.card { background: linear-gradient(180deg, rgba(245, 243, 238, 0.125), rgba(245, 243, 238, 0.075)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.hm-sys, .hm-t { background: linear-gradient(180deg, #2a2e38, #1b1e26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 18px 30px -18px rgba(0, 0, 0, 0.9); }
.tabs { background: rgba(38, 41, 50, 0.9); } .tabs a { color: rgba(245, 243, 238, 0.82); }
.hm .ic--chev { background: rgba(34, 217, 124, 0.24); }
.lab { color: rgba(245, 243, 238, 0.66); } .note { color: rgba(245, 243, 238, 0.62); }
.mh__li.off b { color: rgba(245, 243, 238, 0.6); } .mh__li.off i { box-shadow: inset 0 0 0 1.5px rgba(245, 243, 238, 0.5); }
.hm-t .mini i.later { background: rgba(245, 243, 238, 0.24); } .hm-meter u { background: rgba(245, 243, 238, 0.2); } .bars i.later { background: rgba(245, 243, 238, 0.2); }
[data-wx="clear"][data-sky="night"] .scene__in .pic { filter: brightness(1.32) saturate(1.1); }
[data-wx="clear"][data-sky="dusk"] .scene__in .pic { filter: brightness(1.16) saturate(1.06); }
.scene__fade { background: linear-gradient(180deg, rgba(5, 4, 4, 0.18), rgba(5, 4, 4, 0) 16%, rgba(5, 4, 4, 0) 70%, rgba(8, 9, 11, 0.7) 89%, var(--bg) 98%); }
.row b span { color: inherit; } .row b.ok { color: var(--green); } .row b.warn { color: var(--amber); } /* Status rows: the value keeps its own colour; Online is green, running late is amber (2026-11-24) */

/* The logo shows on Home (and at sign-in) only (owner, 2026-11-24). On every other page it is off, and on phones the "‹ Home" link
   moves up into the row it left, so the page starts higher. The name and the account button stay where they were. */
[data-view="page"] .top .logo { display: none; }
[data-view="page"] .top .tag { margin-left: auto; }
@media (max-width: 899px) {
  [data-view="page"] .top { pointer-events: none; } [data-view="page"] .top > * { pointer-events: auto; }
  [data-view="page"] .info { padding-top: calc(max(16px, env(safe-area-inset-top)) + 12px); }
  [data-view="page"] .info > .back { margin-bottom: 30px; }
}
@media (max-width: 899px) { [data-view="page"] .info { padding-top: max(17px, calc(env(safe-area-inset-top) + 1px)); } } /* the back link on the same line as the name */
/* The quick replies: the row slides sideways, and its right edge fades out so it is plain there is more (2026-11-24) */
.chips { -webkit-overflow-scrolling: touch; touch-action: pan-x; overscroll-behavior-x: contain; cursor: grab; scroll-padding: 0 var(--pad);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 44px), rgba(0, 0, 0, 0) 100%); }
.chips::-webkit-scrollbar { display: none; } .chips::after { content: ""; flex: none; width: 28px; }
/* The name shows on Home only, like the logo (owner, 2026-11-24). On other pages the account button stays, on its own at the right. */
[data-view="page"] .top .tag { display: none; } [data-view="page"] .top .who { margin-left: auto; }
/* The bottom bar, polished (2026-11-24): a page slides under it and melts into the dark, with no hard edge; the lit button has a
   soft glow and a highlight along its top; the bar itself is a touch more solid so nothing shows through. */
.tabs__fade { display: none; }
@media (max-width: 899px) {
  .app.has-tabs[data-view="page"] .tabs__fade { display: block; position: fixed; z-index: 29; left: 0; right: 0; bottom: 0; height: calc(126px + env(safe-area-inset-bottom, 0px)); pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 9, 11, 0) 0%, rgba(8, 9, 11, 0.72) 42%, var(--bg) 78%); }
}
.tabs { background: rgba(34, 37, 46, 0.94); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 16px 32px -10px rgba(0, 0, 0, 0.95); }
.tabs a.on { box-shadow: 0 8px 18px -8px rgba(34, 217, 124, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.tabs a.on .ic { stroke-width: 2.1; }

/* ---- Richer, not just lighter (owner, 2026-11-24: "it sort of looks faded overall"). The earlier brightening lifted everything to
   grey. Now: the page goes back to a true deep black, the words stay bright, the cards are deep blue glass instead of flat grey,
   the daytime photo gets its contrast and colour back, and the app gains one warm colour: sun-gold for what the roof makes.
   Green keeps one meaning (good / money / live); gold means sun. ---- */
:root { --bg: #040506; --sun: #ffd24a; --green: #1fdc7a; --ink-2: rgba(240, 243, 250, 0.78); --ink-3: rgba(240, 243, 250, 0.58); --line: rgba(170, 195, 255, 0.16); }
.info section.card { background: linear-gradient(180deg, rgba(96, 128, 205, 0.2), rgba(70, 96, 165, 0.1)); box-shadow: inset 0 0 0 1px rgba(150, 178, 245, 0.17), inset 0 1px 0 rgba(200, 220, 255, 0.14), 0 16px 30px -20px rgba(0, 0, 0, 0.9); }
.hm-sys, .hm-t { background: linear-gradient(180deg, #1d2536, #10151f); box-shadow: inset 0 1px 0 rgba(190, 212, 255, 0.2), inset 0 0 0 1px rgba(150, 178, 245, 0.12), 0 18px 30px -18px rgba(0, 0, 0, 0.95); }
.tabs { background: rgba(22, 28, 42, 0.95); box-shadow: inset 0 1px 0 rgba(190, 212, 255, 0.2), inset 0 0 0 1px rgba(150, 178, 245, 0.12), 0 16px 32px -10px rgba(0, 0, 0, 0.95); }
.app.has-tabs[data-view="page"] .tabs__fade { background: linear-gradient(180deg, rgba(4, 5, 6, 0) 0%, rgba(4, 5, 6, 0.72) 42%, var(--bg) 78%); }
.scene__fade { background: linear-gradient(180deg, rgba(4, 5, 6, 0.14), rgba(4, 5, 6, 0) 16%, rgba(4, 5, 6, 0) 72%, rgba(4, 5, 6, 0.72) 90%, var(--bg) 98%); }
.seg { background: rgba(120, 150, 220, 0.12); } .seg [aria-pressed="true"] { background: rgba(170, 195, 255, 0.24); }
.kit__ic { background: rgba(31, 220, 122, 0.16); }
/* the photo of the house: day and morning get their punch back */
[data-wx="clear"][data-sky="day"] .scene__in .pic { filter: contrast(1.14) saturate(1.38) brightness(1.03); }
[data-wx="clear"][data-sky="morning"] .scene__in .pic { filter: contrast(1.1) saturate(1.26) brightness(1.04); }
[data-wx="clear"][data-sky="dusk"] .scene__in .pic { filter: brightness(1.14) saturate(1.2) contrast(1.05); }
[data-wx="clear"][data-sky="night"] .scene__in .pic { filter: brightness(1.3) saturate(1.2) contrast(1.04); }
/* sun-gold: everything that counts what the roof made */
.bars i { background: var(--sun); opacity: 1; } .bars i.later { background: rgba(170, 195, 255, 0.16); } .bars i.now { box-shadow: 0 0 12px rgba(255, 210, 74, 0.6); }
#prod[data-kind="cash"] .bars i:not(.later) { background: var(--green); } #prod[data-kind="cash"] .bars i.now { box-shadow: 0 0 12px rgba(31, 220, 122, 0.6); }
.hm-t[href="#production"] .mini i:not(.later) { background: var(--sun); } .hm-t[href="#production"] .mini i.now { box-shadow: 0 0 9px rgba(255, 210, 74, 0.75); }
.hm-t .mini i.later { background: rgba(170, 195, 255, 0.2); } .hm-meter u { background: rgba(170, 195, 255, 0.18); }
.hm-t[href="#production"] > .ic--chev { background: rgba(255, 210, 74, 0.2); color: var(--sun); }

/* ---- Polish the owner had not asked for, approved 2026-11-24 ---- */
/* 1. page titles as heavy as the numbers */
.big { font-weight: 600; letter-spacing: -0.045em; }
.today__n { font-weight: 600; } .today__n em { font-weight: 400; }
/* 2. the Production and Money saved charts stand tall now that the page has room */
[data-view="page"] #prod .bars { height: clamp(150px, 26vh, 230px); margin-top: 20px; gap: 5px; } [data-view="page"] #prod .bars i { border-radius: 4px; } [data-view="page"] #prod .bars--many { gap: 2px; }
/* 3. "Replies within / the hour": the break sits where it reads right */
.hm .hm-foot br { display: inline; } .hm .hm-foot { line-height: 1.2; }
/* 4. "‹ Home" at the top of a page repeated the Home button at the bottom: off wherever the bar shows (it stays on the message
      page, which has no bar). Links back to anywhere else ("‹ Your system", "‹ Service") stay. */
.app.has-tabs .info > .back[href="#home"] { display: none; }
@media (max-width: 899px) { .app.has-tabs .info > .back[href="#home"] + * { margin-top: 44px; } }
/* Taken back (owner, 2026-11-24: "idk about that orange / gold ... the big bar box in production, throwing me off"):
   the charts are green again everywhere, and the Production and Money saved charts are back to their small size. */
.bars i, .hm-t[href="#production"] .mini i:not(.later), #prod[data-kind="cash"] .bars i:not(.later) { background: var(--green); }
.bars i.later { background: rgba(170, 195, 255, 0.16); }
.bars i.now, #prod[data-kind="cash"] .bars i.now { box-shadow: 0 0 12px rgba(31, 220, 122, 0.6); } .hm-t[href="#production"] .mini i.now { box-shadow: 0 0 9px rgba(31, 220, 122, 0.75); }
.hm-t[href="#production"] > .ic--chev { background: rgba(34, 217, 124, 0.24); color: var(--green); }
[data-view="page"] #prod .bars { height: 56px; margin-top: 14px; gap: 4px; } [data-view="page"] #prod .bars i { border-radius: 3px; } [data-view="page"] #prod .bars--many { gap: 2px; }
/* Production's "Right now" box (2026-11-24, approved from mockups/prod-now.png) */
.pn__top { display: flex; align-items: baseline; gap: 10px; }
.pn__top b { font-size: 54px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; } .pn__top b em { font-style: normal; font-size: 19px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-left: 6px; }
.pn__live { margin-left: auto; align-self: center; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.pn__live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: rgba(240, 243, 250, 0.4); }
.pn__live.is-on { color: var(--green); } .pn__live.is-on i { background: var(--green); box-shadow: 0 0 12px rgba(31, 220, 122, 0.8); }
.pn__live.is-on i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--green); animation: hm-ring 2.4s ease-out infinite; }
.pn__split { display: flex; gap: 3px; height: 10px; margin: 18px 0 14px; } .pn__split i { min-width: 6px; border-radius: 6px; background: var(--green); } .pn__split i:nth-child(2) { opacity: 0.62; } .pn__split i:nth-child(3) { opacity: 0.36; }
.pn__rest { margin: 12px 0 14px; font-size: 14.5px; color: var(--ink-2); }
.pn__go { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; } .pn__go div { padding-left: 14px; border-left: 1px solid var(--line); } .pn__go div:first-child { padding-left: 0; border-left: 0; }
.pn__go b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; } .pn__go span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.still .pn__live i::after { animation: none; opacity: 0; } @media (prefers-reduced-motion: reduce) { .pn__live i::after { animation: none; opacity: 0; } }
.rows--kit { margin-top: 18px; } .rows--kit .row:last-child { padding-bottom: 0; } /* the panel and optimizer names under the Today numbers (2026-11-24) */

.chatback { display: none; }
@media (max-width: 899px) { .app:has(.info > .thread) .info > .back { visibility: hidden; } .app:has(.info > .thread) .top .chatback { display: inline-flex; align-items: center; gap: 2px; margin-left: -6px; padding: 8px 10px 8px 0; color: var(--ink); font-size: 16px; } .chatback .ic { transform: scaleX(-1); }
  /* the message page is exactly the part of the screen the keyboard leaves free: the bar stays on top, the box at the bottom, only the conversation scrolls */
  html.chatting, html.chatting body { overflow: hidden; height: 100%; }
  html.chatting .app { position: fixed; left: 0; right: 0; top: 0; height: var(--vvh, 100%); min-height: 0; transform: translateY(var(--vvo, 0px)); }
  html.chatting .side { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html.chatting.typing .chatbar { padding-bottom: 10px; } }
