/* Hardware Assessments — Section 508 device/equipment audits. Shared suite shell
   from app-chrome.css + menu.js + assistant.js; this styles the list view
   (Summary/Inventory/Procurement), the device view + its five sub-tabs, and the
   3-step add-device wizard. Fonts: Poppins (headings) + Mulish (body). Outcome,
   severity, status and conformance claims are text + colour (+ tick/cross), never
   colour alone. */

:root {
  --hw-navy: #16273F; --hw-ink: #33404F; --hw-muted: #5B6675; --hw-faint: #8791A0;
  --hw-line: #EAEDF3; --hw-line-soft: #F1F4F8; --hw-red: #E8402A; --hw-blue: #2F6FE0;
  --hw-green: #1FA97A; --hw-amber: #B5762F; --hw-shadow: 0 4px 16px rgba(18,38,63,0.05);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Mulish', system-ui, sans-serif; color: var(--hw-ink); background: linear-gradient(180deg, #F6F4FB 0%, #F1F6F6 100%); }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-shell .rm-header-inner, .app-shell .rm-footer-inner { max-width: 90%; }
@keyframes hwFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hwShimmer { 0% { background-position: -450px 0; } 100% { background-position: 450px 0; } }

.hw-shell { flex: 1; width: 100%; }
.hw-prompt { text-align: center; color: var(--hw-faint); font-size: 15px; padding: 60px 20px; }
.hw-error { max-width: 90%; margin: 32px auto; padding: 34px; text-align: center; color: #C0392B; background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; }
.hw-empty-soft { padding: 28px 22px; text-align: center; color: var(--hw-faint); font-size: 14px; background: #fff; border: 1px dashed #D5DDE8; border-radius: 16px; }
.hw-cell-muted { font-size: 13.5px; color: var(--hw-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Hero ---- */
.hw-hero, .hw-dhero { background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0)); border-bottom: 1px solid var(--hw-line); }
.hw-hero-inner, .hw-dhero-inner { max-width: 90%; margin: 0 auto; padding: 28px 32px 22px; }
.hw-hero-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.hw-title { font-family: 'Poppins'; font-weight: 700; font-size: 30px; margin: 0; letter-spacing: -0.5px; color: var(--hw-navy); }
.hw-subtitle { font-family: 'Mulish'; font-weight: 500; font-size: 14.5px; color: var(--hw-muted); line-height: 1.55; margin: 8px 0 0; max-width: 780px; }
.hw-body { max-width: 90%; margin: 0 auto; padding: 26px 32px 56px; animation: hwFade .35s ease both; }

/* ---- Buttons + pills + chips ---- */
.hw-btn { appearance: none; cursor: pointer; font-family: 'Poppins'; font-weight: 700; font-size: 13.5px; border-radius: 11px; padding: 10px 16px; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.hw-btn-primary { background: var(--hw-red); color: #fff; box-shadow: 0 6px 16px rgba(232,64,42,0.24); }
.hw-btn-primary:hover { background: #d3381f; }
.hw-btn-primary:disabled { opacity: .5; cursor: default; box-shadow: none; }
.hw-btn-ghost { background: #fff; color: var(--hw-muted); border-color: #E4E9F1; }
.hw-btn-ghost:hover:not(:disabled) { background: #F7F9FC; }
.hw-btn-ghost:disabled { opacity: .5; cursor: default; }
.hw-new { flex: 0 0 auto; }
.hw-pill { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins'; font-weight: 700; font-size: 12px; border: 1px solid; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.hw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hw-chip { appearance: none; cursor: pointer; font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--hw-muted); background: #fff; border: 1.5px solid #E4E9F1; border-radius: 999px; padding: 7px 14px; }
.hw-chip.on { font-weight: 700; }
.hw-tag { display: inline-flex; align-items: center; gap: 5px; font-family: 'Poppins'; font-weight: 600; font-size: 12px; border: 1px solid; border-radius: 9px; padding: 5px 11px; }

/* ---- Tab band ---- */
.hw-tabband { background: #fff; border-bottom: 1px solid var(--hw-line); position: sticky; top: 0; z-index: 20; }
.hw-tabband-inner { max-width: 90%; margin: 0 auto; padding: 0 32px; display: flex; gap: 26px; }
.hw-tab { appearance: none; background: none; border: none; cursor: pointer; font-family: 'Poppins'; font-weight: 600; font-size: 16px; color: var(--hw-faint); padding: 18px 2px; border-bottom: 3px solid transparent; }
.hw-tab:hover { color: var(--hw-navy); }
.hw-tab.active { font-weight: 700; color: var(--hw-navy); border-bottom-color: var(--hw-red); }

/* ---- Cards + section heads ---- */
.hw-card { background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--hw-shadow); }
.hw-card-h { font-family: 'Poppins'; font-weight: 700; font-size: 16px; color: var(--hw-navy); margin-bottom: 14px; }
.hw-mt { margin-top: 22px; }
.hw-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 4px 0 16px; }
.hw-sec-head h2 { font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: var(--hw-navy); margin: 0; }
.hw-sec-head span { font-size: 13px; color: var(--hw-faint); }
.hw-ftile { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.hw-ftile-sm { width: 34px; height: 34px; border-radius: 10px; }

/* ---- Summary ---- */
.hw-sum-top { display: grid; grid-template-columns: minmax(340px, 1fr) 1.4fr; gap: 20px; margin-bottom: 20px; }
.hw-cov-body { display: flex; align-items: center; gap: 24px; }
.hw-donut-wrap { position: relative; flex: 0 0 auto; width: 132px; height: 132px; }
.hw-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hw-donut-num { font-family: 'Poppins'; font-weight: 800; font-size: 28px; color: var(--hw-navy); line-height: 1; }
.hw-donut-sub { font-size: 11px; color: var(--hw-faint); margin-top: 3px; }
.hw-brk-list { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.hw-brk { display: flex; align-items: center; gap: 10px; }
.hw-brk-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.hw-brk-label { flex: 1; font-size: 13.5px; color: var(--hw-muted); }
.hw-brk-val { font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--hw-navy); }
.hw-istats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hw-istats-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.hw-istat { background: #FAFBFD; border: 1px solid var(--hw-line); border-radius: 14px; padding: 15px 16px; }
.hw-istat-top { display: flex; align-items: center; gap: 8px; }
.hw-istat-label { font-family: 'Poppins'; font-weight: 700; font-size: 12.5px; color: var(--hw-faint); }
.hw-istat-val { font-family: 'Poppins'; font-weight: 800; font-size: 28px; line-height: 1; margin-top: 6px; }
.hw-istat-sub { font-size: 12px; color: var(--hw-faint); margin-top: 5px; }
.hw-dbars { display: flex; flex-direction: column; gap: 12px; }
.hw-dbar-row { display: flex; align-items: center; gap: 14px; }
.hw-dbar-label { flex: 0 0 160px; font-family: 'Poppins'; font-weight: 600; font-size: 13px; color: var(--hw-navy); }
.hw-dbar-count { flex: 0 0 70px; font-size: 12.5px; color: var(--hw-faint); }
.hw-dbar-track { flex: 1; height: 10px; border-radius: 999px; background: #EDF0F5; overflow: hidden; }
.hw-dbar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#B5462F,#E0862A); }
.hw-sum-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.hw-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hw-panel-head h2 { font-family: 'Poppins'; font-weight: 700; font-size: 16px; color: var(--hw-navy); margin: 0; }
.hw-panel-head span { font-size: 12.5px; color: var(--hw-faint); }
.hw-na { display: flex; flex-direction: column; }
.hw-na-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 4px; border: none; border-bottom: 1px solid var(--hw-line-soft); background: none; cursor: pointer; text-align: left; }
.hw-na-row:last-child { border-bottom: none; }
.hw-na-row:hover { background: #FBFCFE; }
.hw-na-sev { flex: 0 0 auto; min-width: 66px; text-align: center; font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; border: 1px solid; border-radius: 999px; padding: 4px 9px; }
.hw-na-main { flex: 1; min-width: 0; }
.hw-na-name { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--hw-navy); }
.hw-na-sub { display: block; font-size: 12px; color: var(--hw-faint); }
.hw-na-prog { flex: 0 0 130px; display: flex; align-items: center; gap: 8px; }
.hw-na-pct { font-family: 'Poppins'; font-weight: 700; font-size: 12px; color: var(--hw-navy); }
.hw-progress-track { flex: 1; display: block; height: 8px; border-radius: 999px; background: #EDF0F5; overflow: hidden; }
.hw-progress-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#2F6FE0,#5B9BF0); }
.hw-phases { display: flex; flex-direction: column; gap: 13px; }
.hw-phase-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--hw-muted); margin-bottom: 6px; }
.hw-phase-top span:first-child { font-family: 'Poppins'; font-weight: 600; color: var(--hw-navy); }
.hw-types { display: flex; flex-direction: column; gap: 10px; }
.hw-type-row { display: flex; align-items: center; gap: 12px; }
.hw-type-main { flex: 1; min-width: 0; }
.hw-type-label { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 13.5px; color: var(--hw-navy); }
.hw-type-sub { display: block; font-size: 12px; color: var(--hw-faint); }

/* ---- Inventory ---- */
.hw-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hw-search { position: relative; display: inline-flex; align-items: center; }
.hw-search svg { position: absolute; left: 13px; }
.hw-search input { padding: 10px 14px 10px 38px; border: 1px solid #DCE1E9; border-radius: 12px; font-family: 'Mulish'; font-size: 14px; color: var(--hw-navy); min-width: 300px; outline: none; background: #fff; }
.hw-search input:focus-visible { border-color: var(--hw-blue); box-shadow: 0 0 0 3px rgba(47,111,224,0.15); }
.hw-table { background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; box-shadow: var(--hw-shadow); overflow: hidden; }
.hw-thead, .hw-drow { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1.1fr) minmax(0,1fr) 130px 140px 28px; gap: 16px; align-items: center; }
.hw-thead { padding: 13px 24px; background: #FAFBFD; border-bottom: 1px solid var(--hw-line); font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--hw-faint); }
.hw-drow { padding: 13px 24px; border: none; border-bottom: 1px solid var(--hw-line-soft); background: none; width: 100%; cursor: pointer; text-align: left; }
.hw-drow:last-child { border-bottom: none; }
.hw-drow:hover { background: #FBFCFE; }
.hw-dvend { display: flex; align-items: center; gap: 11px; min-width: 0; }
.hw-dvend-text { min-width: 0; }
.hw-dvend-name { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--hw-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-dvend-model { display: block; font-size: 12px; color: var(--hw-faint); }
.hw-chev { color: #C3CBD8; font-size: 22px; text-align: right; }

/* ---- Procurement ---- */
.hw-proc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.hw-badge { display: inline-flex; font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; color: var(--hw-blue); background: #EAF1FC; border: 1px solid #D3E2FA; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.hw-reqs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hw-req { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--hw-ink); line-height: 1.5; }
.hw-req-tick { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: #E7F7F1; color: #1FA97A; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.hw-clause { margin: 0 0 16px; padding: 14px 16px; background: #FAFBFD; border-left: 3px solid var(--hw-red); border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.6; color: var(--hw-ink); }
.hw-proc-actions { display: flex; gap: 9px; }
.hw-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.hw-vcard { background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--hw-shadow); }
.hw-vcard-top { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.hw-vavatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Poppins'; font-weight: 800; font-size: 14px; color: #fff; }
.hw-vcard-id { flex: 1; min-width: 0; }
.hw-vcard-name { font-family: 'Poppins'; font-weight: 700; font-size: 15.5px; color: var(--hw-navy); }
.hw-vcard-meta { font-size: 12.5px; color: var(--hw-faint); }
.hw-vcard-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hw-stars { color: #E0A21E; font-size: 15px; letter-spacing: 2px; }
.hw-vcard-lead { font-size: 12.5px; color: var(--hw-muted); }
.hw-claims { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.hw-vcard-kv { font-size: 13px; color: var(--hw-ink); line-height: 1.5; margin-top: 8px; }
.hw-vcard-kv b { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--hw-faint); margin-bottom: 2px; }

/* ---- Device header ---- */
.hw-back { appearance: none; background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins'; font-weight: 600; font-size: 13.5px; color: var(--hw-blue); padding: 0; margin-bottom: 14px; }
.hw-dhead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hw-dhead-id { flex: 1; min-width: 0; }
.hw-dtitle { font-family: 'Poppins'; font-weight: 700; font-size: 24px; color: var(--hw-navy); margin: 0 0 4px; letter-spacing: -0.4px; }
.hw-dmeta { font-size: 13px; color: var(--hw-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-dcomp { text-align: right; }
.hw-dcomp-val { font-family: 'Poppins'; font-weight: 800; font-size: 22px; line-height: 1.1; }
.hw-dcomp-sub { font-size: 12px; color: var(--hw-faint); margin-top: 2px; }

/* ---- Device details ---- */
.hw-specs-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.hw-kv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 0; }
.hw-kv { margin: 0; }
.hw-kv dt { font-family: 'Poppins'; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--hw-faint); margin-bottom: 3px; }
.hw-kv dd { margin: 0; font-size: 13.5px; color: var(--hw-navy); }
.hw-spec-sub { font-family: 'Poppins'; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--hw-faint); margin: 18px 0 8px; }
.hw-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.hw-known { font-size: 13.5px; color: var(--hw-muted); line-height: 1.55; margin: 0; }
.hw-docs { display: flex; flex-direction: column; gap: 9px; }
.hw-doc { display: flex; align-items: center; gap: 10px; background: #FBFCFE; border: 1px solid var(--hw-line); border-radius: 11px; padding: 11px 13px; }
.hw-doc-label { flex: 1; font-size: 13px; color: var(--hw-navy); font-weight: 600; font-family: 'Poppins'; }
.hw-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.hw-photo { width: 120px; height: 78px; border-radius: 11px; border: 1.5px dashed #CBD4E0; display: flex; align-items: center; justify-content: center; background: #FBFCFE; font-size: 12px; color: var(--hw-faint); }
.hw-photo-sm { width: 64px; height: 52px; }

/* ---- Assessment (questionnaire) ---- */
.hw-assess { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.hw-secnav { position: sticky; top: 74px; background: #fff; border: 1px solid var(--hw-line); border-radius: 16px; padding: 12px; box-shadow: var(--hw-shadow); }
.hw-secnav-head { font-family: 'Poppins'; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--hw-faint); padding: 6px 10px 10px; }
.hw-navrow { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 10px; border: none; cursor: pointer; background: transparent; font-family: 'Poppins'; font-weight: 600; font-size: 13.5px; color: var(--hw-muted); text-align: left; }
.hw-navrow:hover { background: #F7F9FC; }
.hw-navrow.active { background: #EEF3FF; color: var(--hw-navy); font-weight: 700; }
.hw-navmark { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #CBD4E0; color: #fff; font-size: 11px; font-weight: 800; }
.hw-navmark.done { background: var(--hw-green); border: none; }
.hw-navname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-navcount { flex: 0 0 auto; font-family: 'Poppins'; font-weight: 700; font-size: 11px; color: #C0392B; background: #FCECEC; border-radius: 999px; padding: 2px 8px; }
.hw-qcol { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hw-sechdr { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border: 1px solid var(--hw-line); border-radius: 16px; padding: 18px 22px; box-shadow: var(--hw-shadow); }
.hw-sechdr-name { font-family: 'Poppins'; font-weight: 700; font-size: 18px; color: var(--hw-navy); }
.hw-sechdr-sub { font-size: 13px; color: var(--hw-faint); margin-top: 2px; }
.hw-sechdr-prog { display: flex; align-items: center; gap: 12px; flex: 0 0 240px; }
.hw-sechdr-pct { font-family: 'Poppins'; font-weight: 700; font-size: 13px; color: var(--hw-navy); }
.hw-qcard { background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--hw-shadow); }
.hw-qcard.issue { border-color: #F5DED8; }
.hw-qtop { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 13px; }
.hw-qnum { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Poppins'; font-weight: 800; font-size: 14px; }
.hw-qhdr { flex: 1; min-width: 0; }
.hw-qname { font-family: 'Poppins'; font-weight: 700; font-size: 15.5px; color: var(--hw-navy); }
.hw-qref { font-size: 12px; color: var(--hw-faint); margin-top: 2px; }
.hw-qreq { margin: 0 0 10px; padding: 11px 15px; background: #FAFBFD; border-left: 3px solid #C9DDFB; border-radius: 0 10px 10px 0; font-size: 13.5px; line-height: 1.55; color: var(--hw-ink); }
.hw-qtest { font-size: 12.5px; color: var(--hw-muted); margin-bottom: 12px; }
.hw-qtest b { font-family: 'Poppins'; font-weight: 700; color: var(--hw-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; margin-right: 5px; }
.hw-qq { font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--hw-navy); margin-bottom: 12px; }
.hw-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.hw-opt { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 11px; padding: 10px 15px; cursor: pointer; font-family: 'Poppins'; font-weight: 600; font-size: 13.5px; color: var(--hw-navy); }
.hw-opt:hover { border-color: #CBD6E4; }
.hw-opt.sel { background: #EEF3FF; border-color: #C9DDFB; font-weight: 700; }
.hw-radio { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #CBD4E0; }
.hw-radio.on { background: var(--hw-blue); border: none; box-shadow: inset 0 0 0 3px #fff; }
.hw-issue { margin-top: 18px; padding: 18px; border: 1px solid #F5DED8; background: #FEF8F6; border-radius: 14px; }
.hw-issue-title { font-family: 'Poppins'; font-weight: 700; font-size: 13px; color: #C0392B; margin-bottom: 12px; }
.hw-bfield-wide { margin-bottom: 12px; }
.hw-bgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.hw-blabel { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 12.5px; color: #3B4757; margin-bottom: 6px; }
.hw-input { width: 100%; padding: 10px 13px; font-family: 'Mulish'; font-size: 14px; color: var(--hw-navy); background: #fff; border: 1.5px solid #E4E9F1; border-radius: 10px; outline: none; }
.hw-input:focus { border-color: var(--hw-blue); box-shadow: 0 0 0 3px rgba(47,111,224,0.12); }
.hw-textarea { min-height: 70px; resize: vertical; }
.hw-help { appearance: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #CBD4E0; background: #fff; color: var(--hw-muted); font-size: 11px; font-weight: 700; margin-left: 4px; }
.hw-help-text { font-size: 12.5px; color: var(--hw-muted); background: #EEF3FF; border-radius: 8px; padding: 8px 11px; margin-bottom: 8px; }
.hw-addphoto { padding: 8px 14px; }
.hw-secnav-foot { display: flex; justify-content: space-between; gap: 12px; }

/* ---- Current → required blocks ---- */
.hw-cvr { display: flex; align-items: stretch; gap: 12px; margin-bottom: 12px; }
.hw-cvr-cur, .hw-cvr-req { flex: 1; border-radius: 11px; padding: 10px 13px; font-family: 'Poppins'; font-weight: 700; font-size: 14px; }
.hw-cvr-cur { background: #FCECEC; color: #C0392B; }
.hw-cvr-req { background: #E7F7F1; color: #1FA97A; }
.hw-cvr span { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 10.5px; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0.7; margin-bottom: 3px; }

/* ---- Issues ---- */
.hw-ifilters { margin-bottom: 18px; }
.hw-igrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 18px; }
.hw-icard { background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--hw-shadow); }
.hw-icard-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 12px; }
.hw-isev { flex: 0 0 auto; min-width: 66px; text-align: center; font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; border: 1px solid; border-radius: 999px; padding: 4px 9px; }
.hw-icard-hdr { flex: 1; min-width: 0; }
.hw-icard-title { font-family: 'Poppins'; font-weight: 700; font-size: 15.5px; color: var(--hw-navy); }
.hw-icard-meta { font-size: 12.5px; color: var(--hw-faint); margin-top: 2px; }
.hw-icard-pills { display: flex; gap: 7px; margin-bottom: 12px; }
.hw-icard-desc { font-size: 13.5px; color: var(--hw-muted); line-height: 1.5; margin: 0 0 12px; }
.hw-icard-fn { margin-bottom: 12px; }
.hw-icard-fn-label { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--hw-faint); margin-bottom: 6px; }
.hw-icard-foot { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid var(--hw-line-soft); font-size: 13px; color: var(--hw-muted); }
.hw-icard-foot b { font-family: 'Poppins'; color: var(--hw-navy); }

/* ---- Remediation ---- */
.hw-acards { display: flex; flex-direction: column; gap: 18px; }
.hw-acard { background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--hw-shadow); }
.hw-acard-top { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 14px; }
.hw-acard-hdr { flex: 1; min-width: 0; }
.hw-acard-title { font-family: 'Poppins'; font-weight: 700; font-size: 16px; color: var(--hw-navy); }
.hw-acard-meta { font-size: 12.5px; color: var(--hw-faint); margin-top: 2px; }
.hw-fixopts-label { font-family: 'Poppins'; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--hw-faint); margin-bottom: 9px; }
.hw-fixopts { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.hw-fixopt { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: #FBFCFE; border: 1.5px solid #EAEDF3; border-radius: 13px; padding: 14px 16px; cursor: pointer; }
.hw-fixopt.sel { background: #EEF3FF; border-color: #C9DDFB; }
.hw-fixopt-main { flex: 1; min-width: 0; }
.hw-fixopt-title { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 13.5px; color: var(--hw-navy); }
.hw-fixopt-note { display: block; font-size: 12.5px; color: var(--hw-muted); margin-top: 2px; }
.hw-fixopt-facts { flex: 0 0 auto; text-align: right; }
.hw-fixopt-cost { display: block; font-family: 'Poppins'; font-weight: 800; font-size: 15px; color: var(--hw-navy); }
.hw-fixopt-facts span:last-child { font-size: 11.5px; color: var(--hw-faint); }
.hw-acard-facts { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--hw-line-soft); font-size: 12.5px; color: var(--hw-muted); margin-bottom: 12px; }
.hw-acard-facts b { font-family: 'Poppins'; color: var(--hw-navy); font-weight: 700; }
.hw-acard-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hw-acard-status-label { font-family: 'Poppins'; font-weight: 700; font-size: 12px; color: var(--hw-faint); }
.hw-seg-group { display: inline-flex; gap: 4px; background: #F1F4F9; border-radius: 9px; padding: 4px; }
.hw-seg { appearance: none; border: none; cursor: pointer; font-family: 'Poppins'; font-weight: 600; font-size: 12px; padding: 6px 11px; border-radius: 7px; background: transparent; color: var(--hw-muted); }
.hw-seg.on { background: var(--hw-blue); color: #fff; }

/* ---- Reports ---- */
.hw-reports { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.hw-rdoc { background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; padding: 30px 34px; box-shadow: var(--hw-shadow); }
.hw-rdoc-kicker { font-family: 'Poppins'; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--hw-red); }
.hw-rdoc-title { font-family: 'Poppins'; font-weight: 800; font-size: 24px; color: var(--hw-navy); margin-top: 4px; }
.hw-rdoc-sub { font-size: 13px; color: var(--hw-faint); margin-top: 3px; }
.hw-rov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.hw-rov { background: #FAFBFD; border: 1px solid var(--hw-line); border-radius: 12px; padding: 14px; text-align: center; }
.hw-rov-val { font-family: 'Poppins'; font-weight: 800; }
.hw-rov-label { font-size: 11.5px; color: var(--hw-faint); margin-top: 4px; }
.hw-rsec { margin-top: 22px; }
.hw-rsec h4 { font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--hw-navy); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--hw-red); display: inline-block; }
.hw-rfind { padding: 12px 0; border-bottom: 1px solid var(--hw-line-soft); }
.hw-rfind:last-child { border-bottom: none; }
.hw-rfind-title { font-family: 'Poppins'; font-weight: 700; font-size: 14px; color: var(--hw-navy); }
.hw-rfind-impact { font-size: 13px; color: var(--hw-muted); margin: 3px 0; line-height: 1.5; }
.hw-rfind-fix { font-size: 12.5px; color: var(--hw-ink); }
.hw-rrecs { display: flex; flex-direction: column; gap: 12px; }
.hw-rrec { background: #FAFBFD; border: 1px solid var(--hw-line); border-radius: 12px; padding: 12px 15px; }
.hw-rrec-top { display: flex; align-items: baseline; justify-content: space-between; font-family: 'Poppins'; font-weight: 700; font-size: 13.5px; color: var(--hw-navy); }
.hw-rrec-items { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--hw-muted); line-height: 1.6; }
.hw-rtotal { text-align: right; font-size: 13.5px; color: var(--hw-muted); margin-top: 10px; }
.hw-rtotal b { font-family: 'Poppins'; font-size: 16px; color: var(--hw-navy); }
.hw-rlist { margin: 0; padding-left: 18px; font-size: 13px; color: var(--hw-ink); line-height: 1.7; }
.hw-rgen { position: sticky; top: 74px; background: #fff; border: 1px solid var(--hw-line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--hw-shadow); }
.hw-rgen-h { font-family: 'Poppins'; font-weight: 700; font-size: 16px; color: var(--hw-navy); margin-bottom: 14px; }
.hw-rgen-label { font-family: 'Poppins'; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--hw-faint); margin: 16px 0 8px; }
.hw-rtypes { display: flex; flex-direction: column; gap: 8px; }
.hw-rtype { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 11px; padding: 11px 14px; cursor: pointer; }
.hw-rtype.sel { background: #FEF4F2; border-color: #F3B9AE; }
.hw-rtype .hw-radio.on { background: var(--hw-red); }
.hw-rtype-name { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 13px; color: var(--hw-navy); }
.hw-rtype-desc { display: block; font-size: 11.5px; color: var(--hw-faint); margin-top: 1px; }
.hw-rincs { display: flex; flex-direction: column; gap: 8px; }
.hw-rinc { display: flex; align-items: center; gap: 11px; appearance: none; background: none; border: none; cursor: pointer; font-family: 'Mulish'; font-size: 13.5px; color: var(--hw-ink); padding: 3px 0; text-align: left; }
.hw-check { flex: 0 0 auto; width: 19px; height: 19px; border-radius: 6px; border: 2px solid #CBD4E0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; }
.hw-check.on { background: var(--hw-blue); border: none; }
.hw-rgen-actions { display: flex; gap: 9px; margin-top: 18px; }
.hw-rgen-actions .hw-btn { flex: 1; }

/* ---- Skeleton + toast ---- */
.hw-skel { background: linear-gradient(90deg, #eef1f6 25%, #f6f8fb 50%, #eef1f6 75%); background-size: 900px 100%; animation: hwShimmer 1.4s infinite; border: none; height: 280px; }
.hw-save-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--hw-navy); color: #fff; font-family: 'Poppins'; font-weight: 700; font-size: 13px; padding: 10px 18px; border-radius: 999px; z-index: 120; box-shadow: 0 8px 24px rgba(18,38,63,0.28); }

/* ---- Wizard ---- */
.hw-wizard-overlay { position: fixed; inset: 0; background: rgba(18,38,63,0.46); z-index: 95; animation: hwFade .2s ease; }
.hw-wizard { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); width: 620px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); background: #fff; border-radius: 20px; z-index: 96; box-shadow: 0 30px 80px rgba(18,38,63,0.34); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.hw-wizard.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.hw-wz-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.hw-wz-kicker { font-family: 'Poppins'; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--hw-red); }
.hw-wz-title { font-family: 'Poppins'; font-weight: 700; font-size: 20px; color: var(--hw-navy); margin-top: 3px; }
.hw-wz-close { appearance: none; background: #F1F4F9; border: none; cursor: pointer; width: 34px; height: 34px; border-radius: 9px; font-size: 15px; color: var(--hw-muted); flex: 0 0 auto; }
.hw-wz-bars { display: flex; gap: 6px; padding: 0 24px 4px; }
.hw-wz-bar { flex: 1; height: 5px; border-radius: 999px; background: #EAEDF3; }
.hw-wz-bar.on { background: var(--hw-red); }
.hw-wz-body { flex: 1; overflow-y: auto; padding: 18px 24px 8px; }
.hw-wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--hw-line); }
.hw-wz-step { font-size: 12.5px; color: var(--hw-faint); font-family: 'Poppins'; font-weight: 600; }
.hw-wz-btns { display: flex; gap: 9px; }
.hw-field { margin-bottom: 14px; }
.hw-label { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 13px; color: #3B4757; margin-bottom: 7px; }
.hw-field .hw-input { padding: 11px 14px; background: #F6F8FC; }
.hw-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hw-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hw-check-grid-1 { grid-template-columns: 1fr; }
.hw-check-card { display: flex; align-items: center; gap: 10px; appearance: none; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 11px; padding: 10px 13px; cursor: pointer; font-family: 'Mulish'; font-size: 13.5px; color: var(--hw-navy); text-align: left; }
.hw-check-card.sel { background: #EEF3FF; border-color: #C9DDFB; }
.hw-warn { font-size: 13px; line-height: 1.5; border-radius: 11px; padding: 12px 15px; border: 1px solid; }
.hw-warn-ok { color: #1F8A5B; background: #E7F7F1; border-color: #CDEDE1; }
.hw-warn-warn { color: #B5762F; background: #FCF6E4; border-color: #F1E7C4; }
.hw-warn-bad { color: #C0392B; background: #FCECEC; border-color: #F5D5D5; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .hw-sum-top, .hw-sum-grid, .hw-specs-grid, .hw-proc-grid, .hw-reports { grid-template-columns: 1fr; }
  .hw-rgen { position: static; order: -1; }
  .hw-istats-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hw-assess { grid-template-columns: 1fr; }
  .hw-secnav { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .hw-secnav-head { display: none; }
  .hw-navrow { width: auto; flex: 0 0 auto; }
  .hw-igrid, .hw-vgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hw-istats { grid-template-columns: 1fr; }
  .hw-hero-inner, .hw-dhero-inner, .hw-body, .hw-tabband-inner { padding-left: 18px; padding-right: 18px; }
  .hw-thead { display: none; }
  .hw-drow { grid-template-columns: 1fr auto; }
  .hw-drow .hw-cell-muted { display: none; }
  .hw-rov-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-form-2, .hw-check-grid { grid-template-columns: 1fr; }
}
