:root { color-scheme: light; --ink: #233044; --muted: #687589; --line: #dce4eb; --accent: #285f64; --paper: #fff; --danger: #a42d38; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: #f5f7f8; color: var(--ink); font: 17px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .58; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #387e9d; outline-offset: 4px; }
.skip-link { position: absolute; z-index: 5; top: -100px; left: 20px; padding: 12px; background: white; }
.skip-link:focus { top: 10px; }
.site-header { max-width: 1440px; min-height: 108px; padding: 14px 48px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-height: 80px; max-width: 100%; text-decoration: none; flex-shrink: 0; border-radius: 8px; }
.brand-lockup { display: block; width: 102.4px; max-width: 100%; height: 80px; object-fit: contain; object-position: left center; }
.account { display: flex; gap: 16px; align-items: center; min-width: 0; }
.account-email { overflow-wrap: anywhere; font-size: 16px; }
.phase-rail { display: grid; grid-template-columns: repeat(3, 1fr); height: 3px; opacity: .85; }
.phase-rail i:nth-child(1) { background: #d7bc5b; }
.phase-rail i:nth-child(2) { background: #61b68b; }
.phase-rail i:nth-child(3) { background: #c96269; }
.preview-notice { padding: 8px 24px; text-align: center; color: #647182; background: #edf1f4; font-size: 14px; }
main { width: min(1280px, calc(100% - 96px)); margin: 64px auto 88px; min-height: calc(100vh - 320px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.08; font-weight: 720; letter-spacing: -1.7px; }
h2 { font-size: 28px; line-height: 1.23; letter-spacing: -.6px; }
h3 { font-size: 20px; line-height: 1.3; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.2px; font-size: 14px; color: var(--accent); font-weight: 720; margin-bottom: 22px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 500px; margin-top: 24px; }
.entry { display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: start; padding-top: 30px; }
.intro { padding: 28px 0; }
.intro-copy { max-width: 550px; }
.intro-notes { display: grid; gap: 24px; margin-top: 44px; max-width: 480px; }
.intro-note { display: flex; gap: 15px; align-items: start; }
.note-mark { display: block; flex: 0 0 7px; height: 38px; border-radius: 5px; margin-top: 4px; background: #9ab7ba; }
.intro-note:nth-child(2) .note-mark { background: #d7c98a; }
.intro-note strong { display: block; font-size: 17px; font-weight: 650; }
.intro-note p { font-size: 16px; color: var(--muted); margin-top: 3px; }
.card { border: 1px solid var(--line); border-radius: 24px; background: var(--paper); padding: 36px; box-shadow: 0 16px 42px -32px #23304450; min-width: 0; }
.entry-card { background: linear-gradient(145deg, #fff 50%, #f2f7f6); }
.card-symbol { width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center; margin-bottom: 28px; color: var(--accent); background: #eaf2f1; font-size: 32px; }
.card-copy { color: var(--muted); margin-top: 14px; }
.invitation-hint { background: #f2f5f7; border: 1px solid #e4eaee; border-radius: 14px; padding: 19px 20px; margin-top: 30px; }
.invitation-hint strong { display: block; font-weight: 650; }
.invitation-hint p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.field { margin-top: 28px; }
.field-label { display: block; font-weight: 650; margin-bottom: 9px; }
.recipient { padding: 14px 16px; background: #f3f6f8; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.help { margin-top: 9px; color: var(--muted); font-size: 15px; }
.otp { width: 100%; min-height: 60px; border: 1px solid #adbecb; border-radius: 12px; color: var(--ink); background: white; padding: 10px 16px; font-size: 28px; letter-spacing: 6px; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 50px; border-radius: 12px; border: 1px solid transparent; padding: 12px 20px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; line-height: 1.3; text-decoration: none; font-weight: 650; cursor: pointer; color: white; background: var(--accent); }
.button:hover:not(:disabled) { background: #204e52; }
.button-secondary { color: var(--ink); background: #edf2f5; border-color: #dbe4ea; }
.button-secondary:hover:not(:disabled) { background: #e2eaf0; }
.button-quiet { background: transparent; color: var(--muted); border-color: var(--line); font-size: 16px; }
.button-quiet:hover:not(:disabled) { background: #eaf0f3; }
.button-wide { width: 100%; }
.message { margin-top: 20px; border-radius: 12px; padding: 14px 16px; overflow-wrap: anywhere; background: #edf4f2; color: #305e52; }
.message-error { color: var(--danger); background: #fff0f1; border: 1px solid #f0ced2; }
.loading { display: flex; gap: 13px; align-items: center; justify-content: center; min-height: 240px; color: var(--muted); }
.spinner { display: inline-block; width: 21px; height: 21px; border: 2px solid #d3dfe2; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.pending-status { margin-top: 24px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.page-heading .eyebrow { margin-bottom: 13px; }
.page-heading h1 { font-size: 42px; }
.page-description { color: var(--muted); margin-top: 14px; max-width: 660px; }
.object-list { display: grid; gap: 28px; }
.object-card { padding: 30px; }
.object-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.object-name { overflow-wrap: anywhere; }
.object-tag { font-size: 14px; color: var(--muted); background: #f0f4f6; border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.board-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.board { border: 1px solid #dfe7eb; border-radius: 16px; padding: 22px; background: linear-gradient(135deg, #f7f9fa, #fff); min-width: 0; }
.board h3 { overflow-wrap: anywhere; }
.board-status { display: flex; gap: 9px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 15px; }
.neutral-dot { width: 9px; height: 9px; border-radius: 50%; background: #a4b0bd; flex-shrink: 0; }
.points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.points li { padding: 7px 11px; background: #edf2f4; border-radius: 8px; font-size: 15px; overflow-wrap: anywhere; max-width: 100%; }
.empty-card { max-width: 620px; }
.section-notice { margin-top: 24px; color: var(--muted); font-size: 16px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1440px; padding: 25px 48px; margin: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.noscript { margin: 40px; }
.demo-badge { border: 1px solid #d2b84c; border-radius: 999px; background: #fff9dc; padding: 5px 10px; color: #6b5810; font-size: 14px; font-weight: 700; }
.landing-actions .button { flex: 1 1 180px; }
.demo-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.demo-heading > div:not(.demo-heading-actions) { min-width: 0; flex: 1 1 auto; }
.demo-heading .eyebrow { margin-bottom: 8px; }
.demo-heading-actions { margin-left: auto; }
.demo-summary { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; color: var(--muted); }
.demo-summary strong { margin-left: 12px; color: var(--ink); font-size: 26px; }
.demo-summary strong:first-child { margin-left: 0; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.demo-device { --phase: #dfc638; position: relative; display: grid; grid-template-rows: auto 5px minmax(170px, 1fr) auto; min-width: 0; overflow: hidden; border: 1px solid #d5e0ea; border-radius: 13px; background: linear-gradient(150deg, color-mix(in srgb, var(--phase) 9%, white), white 66%); padding: 13px 14px 10px; }
.demo-device header, .demo-device footer, .demo-indicators, .demo-control-state { display: flex; align-items: center; }
.demo-device header { min-width: 0; justify-content: space-between; gap: 8px; }
.demo-device h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 25px; color: #172436; }
.demo-indicators { flex: 0 0 auto; gap: 9px; }
.demo-mode { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #8daac1; border-radius: 6px; background: #e8f0f6; color: #386785; font-weight: 700; }
.demo-state-ring { display: inline-block; width: 33px; height: 33px; flex: 0 0 33px; border: 3px solid #288153; border-radius: 50%; background: #edf0f3; }
.demo-state-ring.is-off { border-color: #b52c31; background: #b52c31; }
.demo-phase-rail { height: 5px; margin-top: 5px; border-radius: 5px; background: var(--phase); }
.demo-device:has(.phase-L2) { --phase: #40986a; }
.demo-device:has(.phase-L3) { --phase: #d55458; }
.demo-phase-rail.phase-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; background: transparent; }
.demo-phase-rail.phase-three i { border-radius: 5px; background: #dfc638; }
.demo-phase-rail.phase-three i:nth-child(2) { background: #40986a; }
.demo-phase-rail.phase-three i:nth-child(3) { background: #d55458; }
.demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 12px 8px; padding: 18px 0 10px; }
.demo-measure { min-width: 0; text-align: left; font-variant-numeric: tabular-nums; }
.demo-measure strong { display: block; color: #172436; font-size: 29px; line-height: 1; white-space: nowrap; }
.demo-measure small { margin-left: 2px; font-size: 17px; font-weight: 650; }
.demo-measure > span { display: block; margin-top: 5px; color: var(--muted); font-size: 15px; line-height: 1; }
.demo-device footer { justify-content: space-between; gap: 8px; color: #5a6d82; font-size: 14px; }
.demo-device footer span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-card-open { position: absolute; z-index: 1; inset: 0; width: 100%; border: 0; background: transparent; color: transparent; cursor: pointer; }
.demo-card-open:focus-visible { outline: 3px solid #387e9d; outline-offset: -4px; }
.demo-detail { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.demo-detail-card, .demo-settings-card { padding: 24px; border-radius: 16px; }
.demo-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.demo-detail-grid .demo-measure { border: 1px solid #e0e7ee; border-radius: 10px; background: #f6f8fa; padding: 16px; }
.demo-control-state { gap: 12px; margin-top: 20px; font-size: 20px; }
.button-danger { border-color: #efc9cc; color: #a42d38; background: #fff2f3; }
.button-danger:hover:not(:disabled) { background: #fbe4e6; }
.demo-settings-card { margin-bottom: 16px; }
.demo-device-list { display: grid; gap: 8px; margin-top: 18px; }
.demo-device-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #e0e7ee; border-radius: 11px; padding: 12px 14px; }
.demo-device-row > div { display: grid; min-width: 0; }
.demo-device-row strong { font-size: 18px; }
.demo-device-row span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.email-input { width: 100%; min-height: 58px; border: 1px solid #adbecb; border-radius: 12px; background: white; padding: 10px 14px; color: var(--ink); font-size: 20px; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; line-height: 1.35; }
.consent input { width: 24px; height: 24px; flex: 0 0 24px; margin: 0; }
.consent a { color: #245e78; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-page { max-width: 900px; }
.legal-card { margin-top: 28px; }
.legal-card h2 { margin-top: 28px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin-top: 10px; color: var(--muted); }
@media (min-width: 681px) {
  html.demo-active .site-header, html.demo-active .site-footer, html.demo-active main { max-width: 932px; }
  html.demo-active main { width: min(932px, calc(100% - 48px)); margin-top: 34px; }
  html.demo-active .demo-heading h1 { font-size: 38px; }
  html.demo-active .demo-device { padding-inline: 11px; }
  html.demo-active .demo-device h2 { font-size: 22px; }
  html.demo-active .demo-measure strong { font-size: 25px; }
  html.demo-active .demo-measure small { font-size: 15px; }
}
@media (max-width: 900px) {
  .site-header { padding: 14px 28px; }
  main { width: calc(100% - 56px); margin-top: 36px; }
  .entry { gap: 34px; grid-template-columns: 1fr 1fr; }
  .card { padding: 26px; }
  h1 { font-size: 38px; }
  .lead { font-size: 18px; }
  .intro-notes { margin-top: 32px; }
  .site-footer { padding: 24px 28px; }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { min-height: 96px; padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
  .brand { min-height: 72px; }
  .brand-lockup { width: 92.16px; height: 72px; }
  .account { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .account-email { min-width: 0; }
  .account .button { grid-column: 1 / -1; width: 100%; }
  main { width: calc(100% - 32px); margin: 28px auto 48px; }
  .entry { display: flex; flex-direction: column; gap: 24px; padding: 0; }
  /* On a phone the invitation is the task, not the introductory headline. */
  .entry-invitation .intro, .entry-invitation .card-symbol { display: none; }
  .entry-invitation .field { margin-top: 20px; }
  .intro { padding: 6px 8px; }
  h1 { font-size: 35px; letter-spacing: -1px; }
  .lead { margin-top: 16px; }
  .intro-notes { display: none; }
  .eyebrow { margin-bottom: 14px; }
  .entry .card { width: 100%; }
  .card { padding: 26px 22px; border-radius: 19px; }
  .card-symbol { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 22px; }
  h2 { font-size: 26px; }
  .page-heading { display: block; margin-bottom: 24px; }
  .page-heading h1 { font-size: 35px; }
  .page-heading > .button { margin-top: 20px; }
  .object-heading { gap: 12px; }
  .object-tag { display: none; }
  .board-list { grid-template-columns: 1fr; }
  .board { padding: 20px; }
  .site-footer { padding: 22px 20px; flex-wrap: wrap; font-size: 14px; }
  .demo-heading { align-items: flex-start; flex-wrap: wrap; }
  .demo-heading h1 { overflow-wrap: anywhere; font-size: 31px; letter-spacing: -1px; }
  .demo-heading .button { min-width: 50px; padding-inline: 13px; }
  .demo-heading-actions { width: 100%; margin-left: 0; }
  .demo-heading-actions .button { width: 100%; }
  .demo-grid, .demo-detail { grid-template-columns: 1fr; }
  .demo-device { min-height: 330px; }
  .demo-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-measure strong { font-size: 28px; }
  .demo-device-row { align-items: stretch; flex-direction: column; }
  .demo-device-row .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.invitation-list { display: grid; gap: 16px; margin: 24px 0; }
.invitation-list > h2 { margin: 0; font-size: 24px; }
.invitation-card { display: grid; gap: 12px; border-left: 4px solid #357c9c; }
.invitation-card h3, .invitation-card p { margin: 0; overflow-wrap: anywhere; }
.invitation-card h3 { font-size: 25px; }
.invitation-card > .button { justify-self: start; margin-top: 4px; }
.board-open { display: flex; flex-direction: column; width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.board-open:focus-visible { outline: 3px solid #377f99; outline-offset: 3px; }
.board-open:hover { border-color: #8fb3c3; }
.board-open .board-summary { margin: 12px 0 0; line-height: 1.5; font-size: 15px; color: #8e4c31; }
.board-status[data-state="online"] .neutral-dot { background: #348b61; }
.board-connection { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 17px; color: var(--muted); }
.board-connection::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #a0afbb; }
.board-connection[data-state="online"]::before { background: #348b61; }
.board-page-heading .eyebrow { margin-top: 24px; }
.board-overview { margin: 0 0 10px; line-height: 1.5; color: #8e4c31; }
.board-updated { margin-bottom: 22px; }
.board-view #breakerList.cloud-readings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); gap: 16px; }
.board-view #breakerList.cloud-readings .energy-card { grid-template-rows: 36px 5px minmax(190px, 1fr) 22px; padding: 12px 16px; border-radius: 16px; }
.board-view #breakerList.cloud-readings .energy-card-head { gap: 10px; }
.board-view #breakerList.cloud-readings .energy-card-name { font-size: 23px; }
.board-view #breakerList.cloud-readings .energy-card-open { cursor: pointer; }
.board-view #breakerList.cloud-readings .energy-card-open:focus-visible { outline: 3px solid #387e9d; outline-offset: -4px; }
@media (max-width: 1120px) { .board-view #breakerList.cloud-readings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .board-view #breakerList.cloud-readings { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
