/* #883 Nest PR 7: a roof survey's Report tab and Generate report (redesign 42, 42b, 43 to 48, 52) and Plans (49 to 51, 70).
   Only under the switch: every rule starts with html[data-phone-nest][data-app-design="flow"][data-nest-report], which
   assets/phone-nest-report.js sets only while Nest is on (assets/app-design.js sets data-phone-nest only when /me names
   phone_ui_flow and phone_ui_nest) and one of these screens shows. The Generate your report? sheet's rules also need
   [data-nest-report="report"] (a roof survey's Report) and #send-confirm[data-nest-sheet], which the script sets on the
   app's own sheet only there: a building survey's sheet stays today's. With the switch off nothing here matches. Values are reference/sn.css's (tokens --nest-* from
   assets/phone-nest.css). The elements are the app's own; the arrangement hooks (.ph-nest-*) come from
   assets/phone-nest-report.js. No url(), no web fonts. */

/* ---------- every screen here: Mist page, top bar with "Saved 10:30" under the title, instruction line ---------- */
/* the pinned button keeps to Flow's centred column (760 px less its 18 px sides) on a wide screen */
html[data-phone-nest][data-app-design="flow"][data-nest-report] { --ph-nest-safe: max(34px, env(safe-area-inset-bottom)); --ph-nest-side: max(18px, env(safe-area-inset-left), calc(50% - 362px)); --ph-nest-right: max(18px, env(safe-area-inset-right), calc(50% - 362px)); }
html[data-phone-nest][data-app-design="flow"][data-nest-report][data-nest-os="android"] { --ph-nest-safe: max(16px, env(safe-area-inset-bottom)); }
html[data-phone-nest][data-app-design="flow"][data-nest-report] body { background: var(--nest-mist); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-sticky { background: var(--nest-mist); }
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-top:has(#back) {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: 1fr auto auto 1fr; align-items: center; gap: 0;
  min-height: 44px; padding: env(safe-area-inset-top) 6px 0; background: var(--nest-mist); color: var(--nest-ink); border: 0; box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-top:has(#back) #back {
  grid-column: 1; grid-row: 1 / -1; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; background: none;
  color: var(--nest-teal); font: 400 34px/1 var(--nest-text); display: flex; align-items: center; justify-content: center;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-top:has(#back) .ph-title { grid-column: 2; grid-row: 2; min-width: 0; display: block; text-align: center; }
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-top:has(#back) #title {
  display: block; margin: 0; font: 700 17px/1.2 var(--nest-disp); font-stretch: 110%; letter-spacing: -.01em; color: var(--nest-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-top:has(#back) #status {
  grid-column: 2; grid-row: 3; margin: 3px 0 0; font: 500 11px/1 var(--nest-mono); letter-spacing: 0; text-transform: none; color: var(--nest-muted); text-align: center;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-top:has(#back) #status:empty { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report][data-nest-os="android"] body .ph-top:has(#back) { min-height: 64px; padding: env(safe-area-inset-top) 8px 0 4px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report][data-nest-os="android"] body .ph-top:has(#back) .ph-title { text-align: left; padding-left: 4px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report][data-nest-os="android"] body .ph-top:has(#back) #title { font-size: 22px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report][data-nest-os="android"] body .ph-top:has(#back) #status { text-align: left; padding-left: 4px; }
/* Android: the arrow back of the platform's own app bar (HANDOVER rule 12, as #890); the button keeps its name "Back" */
html[data-phone-nest][data-app-design="flow"][data-nest-report][data-nest-os="android"] body .ph-top:has(#back) #back { font-size: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report][data-nest-os="android"] body .ph-top:has(#back) #back::before { content: "\2190"; font: 400 26px/1 var(--nest-text); color: var(--nest-teal); }
html[data-phone-nest][data-app-design="flow"][data-nest-report] body #nest-report-instruction {
  margin: 0; padding: 6px var(--ph-nest-right) 10px var(--ph-nest-side); font: 400 14px/20px var(--nest-text); color: var(--nest-soft); background: var(--nest-mist);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-main { padding-top: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report] body .ph-nest-icon { display: block; flex: none; }

/* ---------- Report (42, 42b, 47, 52) ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report {
  display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 12px 0 0; background: none; border: 0; box-shadow: none;
  font: 400 16px/1.4 var(--nest-text); color: var(--nest-ink); animation: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report[hidden] { display: none; }
/* on a wide screen the Report keeps to the same centred column as the tabs and the pinned button (Flow's 760 px less its sides) */
html[data-phone-nest][data-app-design="flow"][data-nest-report] body :is(#report, #updated-terms, #plans) { box-sizing: border-box; width: auto; max-width: 724px; margin-inline: auto; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(p, h2, h3) { margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #flow-voice-unavailable { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report > .ph-form { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report > .ph-form > .flow-screen-title { display: none; }
/* the app's Draft line: a small tag */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #report-draft-banner {
  align-self: flex-start; display: inline-flex; align-items: center; height: 22px; margin: 0; padding: 0 8px; border: 0; border-radius: 2px; box-shadow: none;
  background: var(--nest-notice); color: var(--nest-teal); font: 600 10.5px/1 var(--nest-text); letter-spacing: .06em; text-transform: uppercase;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #report-draft-banner[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-layout { display: block; margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-finish { display: none; }

/* cards: Card #F8F9F6, 1 px Line, 2 px corners */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(.flow-report-editor, .ph-nest-card) {
  display: block; margin: 0; padding: 0; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none;
}
/* folded rows: the app's own <details>, one open at a time, its <summary> the row (title, value line, count, chevron) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) {
  position: relative; display: block; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits):not([hidden]) ~ :is(.ph-report-section, .ph-report-limits) { border-top: 1px solid var(--nest-line); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) > summary {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 10px 14px; list-style: none; cursor: pointer;
  border: 0; background: none; font: inherit; color: var(--nest-ink);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) > summary::-webkit-details-marker { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) > summary::marker { content: ""; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) > summary::before,
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) > summary::after { display: none; content: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) > summary:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits) > summary .ph-report-value { display: none; }
/* a row with an icon button beside it leaves it room on the right (the button sits over the row, outside the summary) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > .ph-nest-rowtool:not([hidden]) + :is(.ph-report-section, .ph-report-limits) > summary { padding-right: 62px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > .ph-nest-rowtool {
  position: absolute; z-index: 1; right: 6px; width: 40px; height: 40px; min-height: 40px; margin: 6px 0 0; padding: 0; border: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: none; color: var(--nest-teal); box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > .ph-nest-rowtool[data-nest-for="condition"] { color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > .ph-nest-rowtool[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > .ph-nest-rowtool .ph-nest-icon { width: 22px; height: 22px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > .ph-nest-rowtool::after { content: ""; position: absolute; inset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > .ph-nest-rowtool:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor { position: relative; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-main { flex: 1; min-width: 0; display: block; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-t { display: block; font: 600 16px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-d { display: block; margin-top: 2px; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-cnt { flex: none; font: 500 13px/1 var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-chev { flex: none; display: flex; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-chev .ph-nest-icon { width: 20px; height: 20px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report details[open] > summary .ph-nest-chev .ph-nest-icon,
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-disc[aria-expanded="true"] .ph-nest-chev .ph-nest-icon { transform: rotate(180deg); }
/* a row's body: padded 12 14 14 under a 1 px rule */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[open] { padding: 0 14px 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[open] > :not(summary):not([hidden]) { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[open] > label:not([hidden]) { flex-direction: row; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[open] > :is(p, button):not([hidden]) { display: block; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[open] > button:not([hidden]) { display: inline-flex; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[open] > div:empty { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor > :is(.ph-report-section, .ph-report-limits)[open] > summary {
  margin: 0 -14px; border-bottom: 1px solid var(--nest-line); padding-left: 14px;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(.flow-report-editor, .ph-nest-discbody, .ph-nest-after) .ph-block { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor .ph-block[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .flow-report-editor :is(.ph-report-recs, .ph-report-asbestos) .ph-block > h2 { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(.ph-small, .ph-nest-help) { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-help:focus { outline: 2px solid var(--nest-teal); outline-offset: 2px; }

/* fields: label 600 13 px Ink soft over a white box, 2 px corners, 16 px text; focus Teal border and ring */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report label:has(> :is(input, textarea, select)) {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  font: 600 13px/1.2 var(--nest-text); color: var(--nest-soft); min-width: 0;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report label[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report label .ph-opt { font-weight: 400; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report label:has(> :is(input, textarea, select)) > :is(input:not([type="checkbox"]), textarea, select, div) { flex: 1 0 100%; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 0 12px; border: 1px solid var(--nest-line); border-radius: 2px;
  background-color: var(--nest-field); box-shadow: none; font: 400 16px/1.35 var(--nest-text); color: var(--nest-ink);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report textarea { padding: 12px; min-height: 88px; resize: vertical; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-report-limits textarea { min-height: 64px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(input, textarea, select)::placeholder { color: var(--nest-faint); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(input, textarea, select):focus { outline: 0; border-color: var(--nest-teal); box-shadow: 0 0 0 1px var(--nest-teal); }

/* buttons: small text buttons by default (rule 2), small pale pills for the common second taps, 44 pt hit areas */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(button, a.ph-link):where(:not(.ph-nest-disc, .ph-nest-rowtool, #send-btn, #overall-grade button)) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; height: 32px; min-height: 32px; margin: 0; padding: 0 8px;
  border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--nest-teal); font: 600 14px/1 var(--nest-text); letter-spacing: 0;
  white-space: nowrap; text-align: center; text-decoration: none; opacity: 1; align-self: flex-start;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(button, a.ph-link):where(:not(.ph-nest-disc, .ph-nest-rowtool, #send-btn, #overall-grade button))::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
/* the two the app styles by id (its full-report link and Copy the report as text) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(#copy-text, #full-report) {
  justify-content: center; width: auto; height: 32px; min-height: 32px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px; background: none; box-shadow: none;
  color: var(--nest-teal); font: 600 14px/1 var(--nest-text);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report button[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(button, a):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report :is(#add-rec, #asbestos-add) { height: 36px; min-height: 36px; padding: 0 14px; background: var(--nest-notice); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report button.ph-danger { color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report button:disabled:not(#send-btn) { color: #8FB0AB; }
/* the overall grade: the app's A to D choices as rows (tap the chosen one again to clear it) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade legend { padding: 0 0 6px; font: 600 13px/1.2 var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 48px; height: auto; margin: 0; padding: 10px 12px;
  border: 1px solid var(--nest-line); border-radius: 2px; background: var(--nest-field); color: var(--nest-ink); font: 600 15px/1.3 var(--nest-text); text-align: left; box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade button small { font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade button[aria-pressed="true"] { border-color: var(--nest-teal); box-shadow: 0 0 0 1px var(--nest-teal); background: var(--nest-notice); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade button:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }

/* What happens when you generate: a folded row of its own */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-disc {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; height: auto; margin: 0; padding: 10px 14px;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; font: inherit; color: var(--nest-ink); cursor: pointer;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-disc:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-discbody { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px 14px; border-top: 1px solid var(--nest-line); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-discbody[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-discbody .ph-checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; font: 400 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-after:empty { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-after #consistency-review:not([hidden]) {
  padding: 14px; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-after #consistency-review[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-after #consistency-review h2 { font: 700 16px/1.3 var(--nest-disp); font-stretch: 110%; color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-after #consistency-review #consistency-send {
  height: 36px; min-height: 36px; padding: 0 14px; background: var(--nest-notice); color: var(--nest-teal); border: 0; border-radius: 999px;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-spacer { flex: none; margin-top: -14px; }

/* the bar: the app's error lines (47), the reports count with Copy the report as text, then Generate report pinned (rule 1) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 8px;
  padding: 10px var(--ph-nest-right) var(--ph-nest-safe) var(--ph-nest-side); background: var(--nest-mist); border-top: 1px solid var(--nest-line);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar .ph-nest-errs { display: flex; flex-direction: column; gap: 8px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar .ph-nest-errs:not(:has(> :not([hidden]))) { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar .ph-error {
  display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 10px; background: var(--nest-danger-bg); border: 1px solid #E3B9B4; border-radius: 2px;
  font: 400 13px/18px var(--nest-text); color: var(--nest-danger);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar .ph-error[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar .ph-error .ph-nest-icon { width: 16px; height: 16px; margin-top: 1px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar .ph-nest-aux {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; font: 400 13px/18px var(--nest-text); color: var(--nest-muted);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #ai-count-send { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #ai-count-send[hidden] { display: block; visibility: hidden; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #copy-text { align-self: center; margin-left: auto; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar .ph-nest-said:not(:has(> :not(:empty))) { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #copy-text-said { text-align: right; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; min-height: 52px; margin: 0; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--nest-teal); color: #fff; font: 600 17px/1 var(--nest-text); letter-spacing: 0; box-shadow: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn:disabled { background: #8FB0AB; color: #fff; opacity: 1; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn:focus-visible { outline: 2px solid var(--nest-deep); outline-offset: 2px; }
/* 52: the busy button, a spinner and "Generating your report…" */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn[data-nest-busy]::before {
  content: ""; display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  box-sizing: border-box; animation: ph-nest-spin .9s linear infinite;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn[data-nest-busy]::after { content: "…"; margin-left: -8px; }
@keyframes ph-nest-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn[data-nest-busy]::before { animation: none; }
}

/* ---------- Generate your report? (43 to 46): the app's sheet (#send-confirm), only over a roof survey's Report ---------- */
/* a bottom sheet: Card, 1 px Line top, 18 px sides, 36 x 4 grabber, Archivo 22 px title, the scrim behind it */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"].ph-send-confirm-open body:has(#send-confirm[data-nest-sheet])::after {
  content: ""; position: fixed; inset: 0; z-index: 44; background: rgba(15, 46, 45, .42); pointer-events: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet].ph-send-confirm {
  display: flex; flex-direction: column; gap: 12px; padding: 8px 18px max(34px, env(safe-area-inset-bottom)); background: var(--nest-card);
  border: 0; border-top: 1px solid var(--nest-line); border-radius: 0; box-shadow: none; color: var(--nest-ink); font: 400 16px/1.4 var(--nest-text); animation: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"][data-nest-os="android"] #send-confirm[data-nest-sheet].ph-send-confirm { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-header { position: static; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; background: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-grabber { width: 36px; height: 4px; margin: 0 auto 2px; border-radius: 2px; background: #B9C3BD; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-grabber::after { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 12px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-heading h2 { margin: 0; font: 700 22px/1.15 var(--nest-disp); font-stretch: 110%; letter-spacing: -.01em; color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-heading button {
  position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; min-height: 40px; margin: -8px -8px 0 0; padding: 0;
  border: 0; border-radius: 999px !important; background: none; color: var(--nest-muted); font-size: 0; box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-heading button .ph-nest-icon { width: 22px; height: 22px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-heading button::after { content: ""; position: absolute; inset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-overlay-heading button:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-nest-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-nest-sheetinstr { margin: 0; font: 400 14px/20px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-send-confirm-body { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-send-confirm-line { margin: 0; font: 400 15px/22px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-send-confirm-line[hidden] { display: none; }
/* the no-signal line: a notice with the offline icon (45); red when the updated terms must be accepted first (46) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] #send-confirm-offline:not([hidden]) {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--nest-notice); border-radius: 2px; font: 400 14px/20px var(--nest-text); color: var(--nest-soft);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] #send-confirm-offline .ph-nest-icon { display: block; flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--nest-teal); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet][data-offline="terms"] #send-confirm-offline:not([hidden]) { background: var(--nest-danger-bg); color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet][data-offline="terms"] #send-confirm-offline .ph-nest-icon { color: var(--nest-danger); }
/* #883 fields batch: the no-signal line only while the phone has no signal (assets/phone-nest-report.js signal) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet][data-nest-online] #send-confirm-offline { display: none; }
/* actions: Generate report, then Cancel as text, then Cancel's line in small print under it */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-send-confirm-actions { order: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 0; padding: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] .ph-send-confirm-body > p:has(+ .ph-send-confirm-actions) { order: 2; font: 400 12px/16px var(--nest-text); color: var(--nest-muted); text-align: center; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] #send-confirm-go {
  width: 100%; height: 52px; min-height: 52px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px !important; background: var(--nest-teal); color: #fff;
  font: 600 17px/1 var(--nest-text); box-shadow: none; white-space: nowrap;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] #send-confirm-go:disabled { background: #8FB0AB; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] #send-confirm-cancel {
  width: auto; height: 44px; min-height: 44px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px !important; background: none; color: var(--nest-teal);
  font: 600 15px/1 var(--nest-text); box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet] :is(#send-confirm-go, #send-confirm-cancel):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
@media (min-width: 768px) {
  html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] #send-confirm[data-nest-sheet].ph-send-confirm { border: 1px solid var(--nest-line); border-radius: 2px; padding-bottom: 24px; }
}

/* ---------- Updated terms (48) and Plans (49 to 51, 70) ---------- */
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) {
  display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 12px 0 calc(var(--ph-nest-safe) + 76px); background: none; border: 0; box-shadow: none;
  font: 400 16px/1.4 var(--nest-text); color: var(--nest-ink); animation: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"][data-nest-plans-aux] body #plans { padding-bottom: calc(var(--ph-nest-safe) + 116px); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans)[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) > * { margin: 0; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) > [hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) > h1 {
  font: 750 30px/1.1 var(--nest-disp); font-stretch: 118%; letter-spacing: -.015em; color: var(--nest-ink);
}
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) .ph-lead { font: 400 15px/22px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) .ph-small { font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="terms"] body #updated-terms #updated-terms-disclosure { font: 400 16px/24px var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="terms"] body #updated-terms > .ph-small { font: 400 15px/22px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) .ph-error { display: flex; gap: 6px; font: 400 13px/18px var(--nest-text); color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) .ph-error[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) .ph-foot { font: 400 15px/22px var(--nest-text); color: var(--nest-soft); text-align: left; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) a { color: var(--nest-teal); text-decoration: underline; text-underline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="terms"] body #updated-terms .ph-foot a { position: relative; display: inline-block; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="terms"] body #updated-terms .ph-foot a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
/* the bar behind the pinned button */
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body .ph-nest-backdrop {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--ph-nest-safe) + 62px); margin: 0;
  background: var(--nest-mist); border-top: 1px solid var(--nest-line); pointer-events: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"][data-nest-plans-aux] body .ph-nest-backdrop { height: calc(var(--ph-nest-safe) + 102px); }
/* the one pinned main action (rule 1) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="terms"] body #updated-terms #updated-terms-accept,
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"][data-nest-plans-pin="buy"] body #plans #plans-buy,
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"][data-nest-plans-pin="update"] body #plans #plans-update,
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"][data-nest-plans-pin="back"] body #plans #plans-back {
  position: fixed; z-index: 21; left: var(--ph-nest-side); right: var(--ph-nest-right); bottom: var(--ph-nest-safe); display: flex; align-items: center; justify-content: center;
  width: auto; height: 52px; min-height: 52px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px; background: var(--nest-teal); color: #fff;
  font: 600 17px/1 var(--nest-text); letter-spacing: 0; box-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms-accept, #plans-buy, #plans-update, #plans-back):disabled { background: #8FB0AB; color: #fff; opacity: 1; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-report="terms"], [data-nest-report="plans"]) body :is(#updated-terms, #plans) button:focus-visible { outline: 2px solid var(--nest-deep); outline-offset: 2px; }
/* Back to the survey / Back to Your account: a small text button above the pinned one when it is not the main action;
   Send without AI (shown only under the older terms) on the left of the same row */
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"]:not([data-nest-plans-pin="back"]) body #plans #plans-back,
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-send {
  position: fixed; z-index: 21; bottom: calc(var(--ph-nest-safe) + 62px); display: inline-flex; align-items: center; justify-content: center; width: auto; height: 32px; min-height: 32px;
  margin: 0; padding: 0 8px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--nest-teal); font: 600 14px/1 var(--nest-text); white-space: nowrap;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"]:not([data-nest-plans-pin="back"]) body #plans #plans-back { right: calc(var(--ph-nest-right) - 8px); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-send { left: calc(var(--ph-nest-side) - 8px); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-send[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"]:not([data-nest-plans-pin="back"]) body #plans #plans-back::after,
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-send::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
/* Plans: the store's message as a notice (red when something went wrong), the month's count as a red tag */
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans :is(#plans-message, #plans-extra):not([hidden]) {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--nest-notice); border: 0; border-radius: 2px; box-shadow: none;
  font: 400 14px/20px var(--nest-text); color: var(--nest-soft);
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-extra:not([hidden]) { display: block; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-extra a { position: relative; font-weight: 500; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-extra a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-message .ph-nest-icon { width: 18px; height: 18px; margin-top: 1px; color: var(--nest-teal); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-message.ph-nest-warn { background: var(--nest-danger-bg); color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-message.ph-nest-warn .ph-nest-icon { color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-count:not([hidden]) {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 2px; background: var(--nest-danger-bg);
  font: 500 13px/1 var(--nest-text); color: var(--nest-danger); letter-spacing: 0;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-count .ph-nest-icon { width: 14px; height: 14px; }
/* the two plans as radio rows in one card, the price in the data font */
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice {
  position: relative; display: block; margin: 0; padding: 14px 14px 14px 48px; min-height: 44px; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 0;
  box-shadow: none; font: 400 16px/1.3 var(--nest-text); color: var(--nest-ink); cursor: pointer; text-align: left;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice:first-child { border-radius: 2px 2px 0 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice + label.ph-choice { margin-top: -15px; border-radius: 0 0 2px 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice:has(input:checked) { background: var(--nest-notice); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice input[type="radio"] {
  position: absolute; left: 14px; top: 15px; width: 22px; height: 22px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--nest-muted);
  border-radius: 50%; background: var(--nest-field); box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice input[type="radio"]:checked { border-color: var(--nest-teal); background: radial-gradient(circle, var(--nest-teal) 0 5.5px, var(--nest-field) 6px); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice input[type="radio"]:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice b { display: block; font: 600 16px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice > span { display: block; margin-top: 2px; font: 500 15px/1.4 var(--nest-mono); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice small { display: inline; margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice small:empty { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice small + small:not(:empty)::before { content: " · "; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-options > label.ph-choice > span + small { display: inline-block; margin-top: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans #plans-renewal { font: 400 12px/16px var(--nest-text); color: var(--nest-muted); }
/* Restore purchases, Manage subscription, Terms of use, Privacy policy: one small link row */
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans .ph-plan-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font: 400 13px/20px var(--nest-text); text-align: left; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans .ph-plan-links > :is(a, button) {
  position: relative; display: inline; width: auto; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: var(--nest-teal); font: 400 13px/20px var(--nest-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans .ph-plan-links > :is(a, button)::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="plans"] body #plans .ph-plan-links > :is(a, button):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }

html[data-pj="on"][data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-what .ph-nest-d { white-space: normal; overflow: visible; }

html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #report-draft-banner { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #overall-grade.ph-nest-grade button { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-grade-select { width: 100%; min-height: 48px; border: 1px solid var(--nest-line); border-radius: 2px; font: 400 16px var(--nest-text); background: var(--nest-card); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-nest-grade-description { margin: 0; font: 400 14px/20px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #ai-opinion { text-align: left; margin: 8px 0 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #ai-opinion button { min-height: 44px; }

html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report .ph-report-recs > summary { align-items: center; }
/* ONE spinner: the working sign (assets/busy-sign.js, a spinner span inside the button) is the one the app shows on every button; while it is on, this
   button's own spinner and dots are not drawn (the Nest look drew both, and "Generating your report" showed two spinners) */
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn[data-nest-busy][data-sn-busy="1"]::before,
html[data-phone-nest][data-app-design="flow"][data-nest-report="report"] body #report #nest-report-bar #send-btn[data-nest-busy][data-sn-busy="1"]::after { content: none; display: none; }
