:root {
  --ink: #122b3d;
  --soft: #52687a;
  --muted: #71838e;
  --line: #dbe4e8;
  --surface: #fff;
  --canvas: #eef3f5;
  --blue: #355c91;
  --blue-dark: #284b79;
  --green: #087961;
  --warning: #94620b;
  --danger: #a7362e;
  font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.5; }
button,input { font: inherit; }
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 8px 12px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 74px; padding: 0 clamp(20px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px 3px 13px 3px; background: var(--blue); color: #fff; font-weight: 900; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 17px; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--soft); font-size: 12px; font-weight: 800; text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }
.shell { width: min(1380px,calc(100% - 34px)); margin: 0 auto; padding: 27px 0 48px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-size: 12px; font-weight: 850; text-decoration: none; }
.page-head { margin: 14px 0 20px; padding: 27px 30px; display: flex; align-items: end; justify-content: space-between; gap: 25px; border-radius: 16px; background: linear-gradient(135deg,#183d57,#355c91); color: #fff; box-shadow: 0 18px 45px rgb(25 56 80 / 18%); }
.eyebrow { margin: 0 0 6px; color: #cce7ff; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.page-head h1 { margin: 0; font-size: clamp(30px,4vw,48px); letter-spacing: -.04em; }
.page-head p:last-child { max-width: 760px; margin: 7px 0 0; color: rgb(255 255 255 / 72%); }
.page-controls { min-width: min(620px,50vw); display: grid; grid-template-columns: minmax(220px,1fr) minmax(280px,1fr); gap: 12px; }
.lookup-control > label,.date-control > label { display: block; margin-bottom: 6px; color: #cce7ff; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.lookup-control > div,.date-control > div { display: flex; gap: 7px; }
.lookup-control input,.date-control input { min-width: 0; min-height: 43px; padding: 8px 10px; border: 0; border-radius: 8px; background: #fff; color: var(--ink); }
.lookup-control input { width: 100%; }
.button { min-height: 43px; padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 850; cursor: pointer; }
.button-primary { background: #fff; color: var(--blue); }
.button:disabled { cursor: wait; opacity: .62; }
.message,.notice { margin-bottom: 15px; padding: 12px 15px; border-radius: 9px; }
.message { border: 1px solid #efbeb9; background: #fff1ef; color: var(--danger); }
.notice { border: 1px solid #c8d8e2; background: #f5f9fc; color: var(--soft); }
.load-progress { margin-bottom: 16px; padding: 16px 18px; border: 1px solid #c8d8e2; border-radius: 13px; background: #fff; box-shadow: 0 8px 26px rgb(18 43 61 / 5%); }
.load-progress > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.load-progress h2 { margin: 0; font-size: 16px; }
.load-progress .eyebrow { color: var(--blue); }
.load-progress > header > span { min-width: 52px; padding: 4px 8px; border-radius: 99px; background: #edf3f7; color: var(--blue); font-size: 10px; font-weight: 900; text-align: center; }
.load-progress ol { margin: 13px 0 0; padding: 0; display: grid; gap: 7px; list-style: none; }
.load-progress li { min-height: 38px; display: grid; grid-template-columns: 12px minmax(0,1fr); align-items: start; gap: 9px; color: var(--muted); }
.load-progress li > i { width: 9px; height: 9px; margin-top: 5px; border: 2px solid #9baab3; border-radius: 50%; }
.load-progress li strong,.load-progress li span { display: block; }
.load-progress li strong { color: var(--soft); font-size: 10px; }
.load-progress li span { margin-top: 1px; font-size: 10px; }
.load-progress li.done > i { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 3px #dff1eb; }
.load-progress li.active > i { border-color: var(--blue); animation: progress-pulse 1s ease-in-out infinite alternate; }
@keyframes progress-pulse { to { box-shadow: 0 0 0 5px rgb(53 92 145 / 18%); } }
.checks-panel { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 26px rgb(18 43 61 / 5%); }
.checks-heading { margin-bottom: 13px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.checks-heading .eyebrow { margin-bottom: 3px; color: var(--blue); }
.checks-heading h2 { margin: 0; font-size: 18px; }
.checks-heading > span { color: var(--muted); font-size: 10px; font-weight: 750; }
.checks-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.check-card { min-width: 0; padding: 13px; display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafb; }
.check-card > i { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #9aa9b1; box-shadow: 0 0 0 3px #e7ecef; }
.check-card span,.check-card strong,.check-card small { display: block; }
.check-card span { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.check-card strong { margin-top: 2px; font-size: 13px; }
.check-card small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.check-card.pass { border-color: #b9ded2; background: #f2faf7; }
.check-card.pass > i { background: #15956f; box-shadow: 0 0 0 3px #d8f1e8; }
.check-card.fail { border-color: #efc2bd; background: #fff6f4; }
.check-card.fail > i { background: var(--danger); box-shadow: 0 0 0 3px #f9dfdc; }
.check-card.warn { border-color: #ead5a6; background: #fffbf0; }
.check-card.warn > i { background: #d28a17; box-shadow: 0 0 0 3px #fff0ce; }
.summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.summary article { padding: 15px 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.summary span,.summary small { display: block; color: var(--muted); }
.summary span { font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.summary strong { display: block; margin: 2px 0; font-size: 25px; }
.summary small { font-size: 10px; }
.inventory-panel { margin-bottom: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 8px 26px rgb(18 43 61 / 5%); }
.inventory-heading { padding: 17px 19px; display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.inventory-heading .eyebrow { color: var(--blue); }
.inventory-heading h2 { margin: 0; font-size: 18px; }
.inventory-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.inventory-actions { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.inventory-table { border: 0; }
.inventory-table td:first-child strong,.inventory-table td:first-child small,.inventory-table td:last-child small { display: block; }
.inventory-table td:first-child small,.inventory-table td:last-child small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.comparison-table td { min-width: 145px; }
.comparison-table td:nth-child(2),.comparison-table td:nth-child(4) { min-width: 220px; }
.comparison-table td small,.zerofy-device small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.zerofy-device + .zerofy-device { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.comparison-badge { display: inline-flex; padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 900; }
.comparison-badge.comparison-match { background: #dff3eb; color: var(--green); }
.comparison-badge.comparison-difference { background: #fff0d4; color: var(--warning); }
.comparison-badge.comparison-info { background: #e7f0f7; color: var(--blue); }
.comparison-difference > td { background: #fffdf7; }
.comparison-info > td { background: #f8fbfd; }
.missing-copy { color: var(--warning); font-size: 10px; font-weight: 800; }
.muted-value { color: var(--muted); font-size: 10px; }
.meter-status { display: inline-flex; padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 900; }
.meter-active { background: #dff3eb; color: var(--green); }
.meter-inactive { background: #e7f0f7; color: var(--blue); }
.meter-unknown { background: #edf0f2; color: var(--muted); }
.inventory-empty { padding: 22px 19px; color: var(--muted); }
.users { display: grid; gap: 17px; }
.user-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 9px 30px rgb(18 43 61 / 6%); }
.user-head { padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.user-identity { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #e4edf7; color: var(--blue); font-weight: 900; }
.user-head h2 { margin: 0; font-size: 20px; }
.user-head p { margin: 2px 0 0; color: var(--muted); }
.external-link { padding: 8px 11px; border: 1px solid #c9d8e3; border-radius: 7px; color: var(--blue); font-size: 11px; font-weight: 850; text-decoration: none; }
.user-facts { padding: 15px 22px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; border-bottom: 1px solid var(--line); }
.fact { min-width: 0; padding: 10px 11px; border-radius: 8px; background: #f4f7f9; }
.fact span { display: block; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.fact strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font-size: 12px; }
.dwelling { padding: 21px 22px 23px; }
.dwelling + .dwelling { border-top: 8px solid var(--canvas); }
.dwelling-title { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.dwelling-title h3 { margin: 0; font-size: 17px; }
.dwelling-title p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.date-badge { padding: 4px 8px; border-radius: 99px; background: #e4edf7; color: var(--blue); font-size: 10px; font-weight: 850; }
.energy-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; }
.energy-card { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.energy-card span { display: block; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.energy-card strong { display: block; margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.outcome-row { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.outcome { padding: 7px 9px; border-radius: 7px; background: #eef5f2; color: var(--green); font-size: 11px; font-weight: 800; }
.section-title { margin: 20px 0 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section-title h4 { margin: 0; font-size: 14px; }
.section-title span { color: var(--muted); font-size: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 9px 10px; background: #f1f5f7; color: var(--muted); font-size: 9px; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 10px; border-top: 1px solid var(--line); vertical-align: top; }
td code { color: var(--blue); font-family: ui-monospace,Consolas,monospace; font-size: 10px; }
.service-row { background: #fbfcfd; }
.service-name { font-weight: 850; }
.badge { display: inline-flex; padding: 3px 7px; border-radius: 99px; background: #e2f3ed; color: var(--green); font-size: 9px; font-weight: 850; }
.badge.off { background: #edf0f2; color: var(--muted); }
.inline-errors { margin-top: 13px; padding: 10px 12px; border-left: 3px solid #d28a17; background: #fff8e8; color: var(--warning); font-size: 11px; }
.empty-state { padding: 55px 20px; border: 1px dashed #bdcbd2; border-radius: 13px; background: #fff; text-align: center; }
.empty-state span { width: 60px; height: 60px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 16px; background: #e4edf7; color: var(--blue); font-weight: 900; }
.empty-state h2 { margin: 0; }
.empty-state p { margin: 6px 0 0; color: var(--muted); }
footer { min-height: 65px; padding: 0 clamp(20px,5vw,72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
@media (max-width: 980px) { .page-head { align-items: stretch; flex-direction: column; } .page-controls { min-width: 0; } .checks-grid,.summary { grid-template-columns: repeat(2,1fr); } .user-facts { grid-template-columns: repeat(2,1fr); } .energy-grid { grid-template-columns: repeat(3,1fr); } .inventory-heading { align-items: flex-start; flex-direction: column; } }
@media (max-width: 680px) { .site-header { padding: 11px 16px; align-items: flex-start; } .brand-copy small { display: none; } .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 13px; } .shell { width: calc(100% - 16px); } .page-head { padding: 21px 18px; } .page-controls { grid-template-columns: 1fr; } .lookup-control > div,.date-control > div { align-items: stretch; flex-direction: column; } .checks-heading { align-items: flex-start; flex-direction: column; } .checks-grid,.summary,.user-facts,.energy-grid { grid-template-columns: 1fr 1fr; } .user-head { align-items: flex-start; flex-direction: column; } .dwelling { padding: 18px 14px; } footer { padding: 15px 18px; align-items: flex-start; flex-direction: column; } }
