/* #883 Nest PR 5: a roof survey's Property (redesign 28, 29), Elements (30 to 31), Roof set-up (32) and the schedules (40,
   40b, 40c). Only under the switch: every rule starts with html[data-phone-nest][data-app-design="flow"][data-nest-roof],
   and data-nest-roof is set by assets/phone-nest-roof.js 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 a roof survey's Property or Elements shows. 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-roof.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-roof] { --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-roof][data-nest-os="android"] { --ph-nest-safe: max(16px, env(safe-area-inset-bottom)); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body { background: var(--nest-mist); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .ph-sticky { background: var(--nest-mist); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] 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-roof] 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-roof] 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-roof] 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-roof] 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-roof] body .ph-top:has(#back) #status:empty { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .ph-top #nest-roof-search {
  grid-column: 3; grid-row: 1 / -1; justify-self: end; position: relative; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: none; color: var(--nest-teal); box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .ph-top #nest-roof-search[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .ph-top #nest-roof-search .ph-nest-icon { width: 22px; height: 22px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .ph-top #nest-roof-search::after { content: ""; position: absolute; inset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .ph-top #nest-roof-search:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof][data-nest-os="android"] body .ph-top:has(#back) { min-height: 64px; grid-template-columns: 48px minmax(0, 1fr) 48px; padding: env(safe-area-inset-top) 8px 0 4px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof][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-roof][data-nest-os="android"] body .ph-top:has(#back) #title { font-size: 22px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof][data-nest-os="android"] body .ph-top:has(#back) #status { text-align: left; padding-left: 4px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #nest-roof-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-roof] body .ph-main { padding-top: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) {
  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-roof] body :is(#property, #elements)[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .ph-nest-hide { display: none !important; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body .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-roof] body .ph-nest-icon { display: block; flex: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(p, h2, h3, h4) { margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .ph-nest-eyebrow { margin: 0 0 -6px; font: 600 12px/1 var(--nest-text); letter-spacing: .06em; text-transform: uppercase; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .ph-nest-help { margin: 0; font: 400 12px/16px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(.ph-small, .ph-nest-small) { margin: 0; font: 400 12px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .ph-nest-h3 { margin: 0; font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .ph-nest-mono { font-family: var(--nest-mono); font-weight: 500; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #flow-voice-unavailable { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }

/* fields: label 600 13 px Ink soft over a 48 px white box, 2 px corners, 16 px text; focus Teal border and ring */
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) 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-roof] body :is(#property, #elements) label .ph-opt { font-weight: 400; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) label:has(> :is(input, textarea, select)):not(.ph-nest-searchbox) > :is(input, textarea, select, .ph-error, div) { flex: 1 0 100%; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), 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-roof] body :is(#property, #elements) textarea { padding: 12px; min-height: 64px; resize: vertical; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(input, textarea, select)::placeholder { color: var(--nest-faint); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(input, textarea, select):focus { outline: 0; border-color: var(--nest-teal); box-shadow: 0 0 0 1px var(--nest-teal); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(input, textarea, select):invalid:not(:placeholder-shown) { border-color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) input[type="date"] { font-family: var(--nest-mono); font-weight: 500; font-size: 16px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .ph-error { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-danger); }

/* 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-roof] body :is(#property, #elements) :is(button, label.ph-photo-btn):where(:not(.ph-nest-disc, .ph-nest-ghead, :is(.ph-roof-item, .ph-item), .ph-nest-layeropen, .ph-nest-main, [aria-pressed], .ph-nest-done, .ph-primary)) {
  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-roof] body :is(#property, #elements) :is(button, label.ph-photo-btn):where(:not(.ph-nest-disc, .ph-nest-ghead, :is(.ph-roof-item, .ph-item), .ph-nest-layeropen, .ph-nest-main, [aria-pressed], .ph-nest-done, .ph-primary))::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) button:disabled { color: #8FB0AB; cursor: default; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) button[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(button, label.ph-photo-btn):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(button, label) .ph-nest-icon { width: 18px; height: 18px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) button.ph-danger { color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements button.ph-secondary:where(:not([aria-pressed])) { height: 36px; min-height: 36px; padding: 0 14px; background: var(--nest-notice); color: var(--nest-teal); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements button.ph-secondary:where(:not([aria-pressed])):disabled { color: #8FB0AB; }

/* the one pinned main action (rule 1) and the bar behind it */
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #nest-roof-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--ph-nest-safe) + 62px);
  background: var(--nest-mist); border-top: 1px solid var(--nest-line); pointer-events: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #nest-roof-bar { height: calc(var(--ph-nest-safe) + 110px); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #next-elements,
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements > button.ph-primary[data-tab="report"],
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements #nest-roof-done {
  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"][data-nest-roof] body :is(#next-elements, #elements > button.ph-primary, #nest-roof-done):focus-visible { outline: 2px solid var(--nest-deep); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements #nest-roof-done[hidden], html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements #nest-roof-done { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-workflow-actions { position: static; z-index: auto; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }

/* cards: Card #F8F9F6, 1 px Line, 2 px corners, 14 px padding */
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(.ph-nest-card, .flow-property-essential, .ph-property-cover, .ph-nest-roofrow, .ph-nest-sched, .ph-nest-layers, .ph-nest-reading) {
  margin: 0; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none;
}

/* ---------- Property (28, 29) ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property > .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-roof="property"] body #property #site-open { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-screen-title { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-nest-eyebrow { margin: 0 0 -6px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-layout { display: flex; flex-direction: column; gap: 14px; margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential > * { grid-column: 1 / -1; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential > .ph-nest-half { grid-column: auto; }
/* owner fix 2 (10 Nov): on a phone each of the two has the full width, Inspection date over Surveyor: side by side the
   Surveyor box was too narrow for a name beside its microphone ("Cameron fras"). From 600 px wide they stay side by side. */
@media (max-width: 599px) {
  html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential > .ph-nest-half { grid-column: 1 / -1; }
}
/* (the card is a flex item sized by its content: with the two half-width boxes gone its content no longer reached the full width
   and the card ended short of the right edge, so the card is told the full width itself: one right edge with the Next button) */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential { box-sizing: border-box; width: 100%; align-self: stretch; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential > h2 { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential textarea { min-height: 64px; }
/* #906 (owner, 9 Nov): boxes with a microphone. The app wraps such a box in .ph-flow-voice-field, so the label's box is not
   its direct child: these give that label the same Nest field look (label over a 48 px box), keep every label's lines at the
   top (so Inspection date and Surveyor start on one line, same top, same height), put the microphone inside the box (a 36 px
   pill, vertically centred in a one-line box, bottom right in a text box, the text stopping before it) and gather Clear, Undo
   and the dictation words on one line under the box: the microphone box and its line are the shared field look
   (assets/phone-nest-field.css and .js, #883 fields batch), the same on every Nest screen. The label rule below is #906's,
   as it was (roof surveys; a building survey's Property has the same one in assets/phone-nest-building.css, #901). */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"]:not([data-nest-kind="building"]) body #property label:has(> :is(input, textarea, select, .ph-flow-voice-field)) {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; align-content: flex-start; 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-roof="property"] body #property .flow-property-essential { align-items: start; }
/* owner fix 2 (10 Nov): the date sits in its box as the text in every other box does: vertically centred, left, the same
   font, size and 12 px side padding, on a roof and a building survey. iPhone draws the value in an inner part
   (::-webkit-date-and-time-value) that it centres sideways and gives its own margin; with the box set to display: block that
   part sat at the top. The box is a flex row, centred, and the inner part is told left with no margin. Each -webkit- part has
   its own rule (a browser that does not know one drops only that rule). */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential input[type="date"] {
  display: flex; align-items: center; justify-content: flex-start; box-sizing: border-box; width: 100%; min-width: 0; height: 48px; min-height: 48px; margin: 0; padding: 0 12px;
  -webkit-appearance: none; appearance: none; font: 400 16px/1.35 var(--nest-text); color: var(--nest-ink); text-align: left;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential input[type="date"]::-webkit-date-and-time-value { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; text-align: left; line-height: 1.35; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential input[type="date"]::-webkit-datetime-edit { flex: 1 1 auto; margin: 0; padding: 0; text-align: left; line-height: 1.35; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-essential input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }
/* #906: on Property the breadcrumb is the one word "Survey", with no link: the tabs above say where you are, and it no
   longer sticks over the fields while the page scrolls */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property > .ph-capture-breadcrumb { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-photo { margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-photo { width: 100%; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-property-cover { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 4px; padding: 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-property-cover > :is(.ph-nest-coverhead, input) { grid-column: 1 / -1; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-property-cover > #cover-btn { grid-column: 3; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-nest-coverhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-nest-coverhead h2 { font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-nest-coverhead .ph-small { text-align: right; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #cover, html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #cover > div { display: contents; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #cover > img { grid-column: 1 / -1; display: block; width: 100%; height: 140px; object-fit: cover; border: 1px solid var(--nest-line); border-radius: 2px; background: var(--nest-faint); margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #cover > div > [role="status"] { grid-column: 1; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #cover > div > button { grid-column: 2; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #cover > div > button, html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #cover-btn { font-size: 15px; height: 36px; min-height: 36px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more { margin: 0; padding: 0; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more > summary {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; list-style: none; cursor: pointer; font: inherit; color: var(--nest-ink); border: 0; background: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more > summary::-webkit-details-marker { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more > summary::marker { content: ""; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more > summary::before, html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more > summary::after { display: none; content: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more > summary:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more > .ph-form { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 12px 14px 14px; border: 0; border-top: 1px solid var(--nest-line); background: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .flow-property-more[open] > summary .ph-nest-chev .ph-nest-icon { transform: rotate(180deg); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #inspection-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #inspection-type 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-roof="property"] body #property #inspection-type button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; height: auto; padding: 8px 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-roof="property"] body #property #inspection-type button small { font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property #inspection-type button[aria-pressed="true"] { border-color: var(--nest-teal); box-shadow: 0 0 0 1px var(--nest-teal); background: var(--nest-notice); }

/* folded rows: the shared row button (title, value line, count, chevron) */
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) :is(.ph-nest-disc, .flow-property-more > summary) .ph-nest-main { flex: 1; min-width: 0; display: block; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .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-roof] body :is(#property, #elements) .ph-nest-d { display: block; margin-top: 2px; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .ph-nest-chev { flex: none; display: flex; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) .ph-nest-chev .ph-nest-icon { width: 20px; height: 20px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .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-roof] body #elements .ph-nest-disc:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-disc .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-roof] body #elements .ph-nest-disc[aria-expanded="true"] .ph-nest-chev .ph-nest-icon { transform: rotate(180deg); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .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-roof] body #elements .ph-nest-discbody[hidden] { display: none; }

/* ---------- Elements (30, 30b to d): roof row, progress, groups of single rows with a rating chip ---------- */
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements > .ph-progress, html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements > #counts { display: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements > #roof-subtabs { margin: 0; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements > #sections { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements > #sections > * { margin: 0; animation: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements #sections > details.ph-premium-roof-details { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-roofrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 6px 10px 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-roofmark { flex: none; display: flex; align-items: center; justify-content: center; width: 24px; color: var(--nest-teal); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-roofmark .ph-nest-icon { width: 22px; height: 22px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-roofrow > .ph-nest-main {
  position: relative; flex: 1; min-width: 0; display: block; height: auto; min-height: 44px; margin: 0; padding: 0; 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-roof] body #elements .ph-nest-roofrow > .ph-nest-main:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-roofrow .ph-nest-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-trail { flex: none; display: flex; align-items: center; gap: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-choose { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-choose .ph-nest-icon { width: 18px; height: 18px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-choose select.roof-select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; opacity: 0; cursor: pointer; border: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-choose:has(select:focus-visible) { outline: 2px solid var(--nest-teal); outline-offset: -2px; border-radius: 999px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-iconbtn {
  position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--nest-teal);
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-iconbtn::after { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-iconbtn .ph-nest-icon { width: 20px; height: 20px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-progress { display: flex; flex-direction: column; gap: 6px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-pbar { height: 4px; background: #D6DDD8; border-radius: 2px; overflow: hidden; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-pbar i { display: block; height: 100%; background: var(--nest-teal); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-pcnt { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-pcnt b { color: var(--nest-soft); font-weight: 600; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections > .ph-section { display: flex; flex-direction: column; gap: 8px; margin: 0; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections > .ph-section[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections > .ph-section > h2 { margin: 0; padding: 0; font: inherit; border: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-ghead {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; height: auto; margin: 0; padding: 6px 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; color: var(--nest-ink); cursor: pointer;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-ghead:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-gname { 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-roof] body #elements .ph-nest-ghead .ph-nest-cnt { display: inline-flex; align-items: center; gap: 6px; font: 400 13px/1 var(--nest-text); color: var(--nest-muted); white-space: nowrap; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-ghead .ph-nest-icon { width: 18px; height: 18px; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #elements .ph-nest-ghead[aria-expanded="true"] .ph-nest-icon { transform: rotate(180deg); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections > .ph-section > .ph-list { display: block; margin: 0; padding: 0; gap: 0; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections > .ph-section > .ph-list[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections .ph-section button:is(.ph-roof-item, .ph-item) {
  position: relative; display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; width: 100%; min-height: 56px; 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"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections .ph-section button:is(.ph-roof-item, .ph-item) + button:is(.ph-roof-item, .ph-item) { border-top: 1px solid var(--nest-line); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections .ph-section button:is(.ph-roof-item, .ph-item)[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections .ph-section button:is(.ph-roof-item, .ph-item)[aria-current="true"] { background: var(--nest-notice); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections .ph-section button:is(.ph-roof-item, .ph-item):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections .ph-section button:is(.ph-roof-item, .ph-item)::after, html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections .ph-section button:is(.ph-roof-item, .ph-item)::before { display: none; content: none; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-nest-lead { flex: none; display: flex; align-items: center; justify-content: center; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-nest-main { flex: 1; min-width: 0; display: block; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) b { display: block; padding: 0; font: 600 16px/1.3 var(--nest-text); color: var(--nest-ink); overflow: hidden; text-overflow: ellipsis; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) small { display: block; margin: 2px 0 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-nest-ok { color: var(--nest-norepair); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-nest-chev .ph-nest-icon { width: 18px; height: 18px; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"])[data-nest-os="android"] body #elements #sections :is(.ph-roof-item, .ph-item) .ph-nest-chev { display: none; }
/* the rating chip: 24 x 24, 2 px corners, 700 13 px; unrated is a dashed empty square */
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-chip {
  position: static; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-width: 0; margin: 0; padding: 0;
  border: 0; border-radius: 2px; font: 700 13px/1 var(--nest-text); color: #fff; box-shadow: none; flex: none;
}
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-chip.r3 { background: var(--nest-urgent); color: #fff; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-chip.r2 { background: var(--nest-repair); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-chip.r1 { background: var(--nest-norepair); color: #fff; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-chip.rni { background: var(--nest-ni); color: #fff; font-size: 10px; letter-spacing: .02em; }
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements #sections :is(.ph-roof-item, .ph-item) .ph-chip.rtodo { background: transparent; border: 1.5px dashed #AEB7B2; color: transparent; }

/* ---------- search (31): the app's own field under the bar, with Cancel; schedules and the roof row hidden ---------- */
html[data-phone-nest][data-app-design="flow"]:is([data-nest-roof="elements"], [data-nest-roof="setup"]) body #elements[data-nest-search="off"] > .ph-part-search, html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements > .ph-part-search { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements[data-nest-search="on"] > .ph-part-search {
  position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 0; padding: 0; background: none; font: inherit;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-part-search .ph-nest-searchbox {
  flex: 1; min-width: 0; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 10px;
  background: var(--nest-field); border: 1px solid var(--nest-teal); border-radius: 2px; box-shadow: 0 0 0 1px var(--nest-teal);
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-part-search .ph-nest-searchbox > .ph-nest-icon { width: 18px; height: 18px; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-part-search .ph-nest-searchbox input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { flex: 1 1 auto; min-height: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-part-search .ph-nest-searchbox input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus { box-shadow: none; border: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-part-search .ph-nest-cancel { align-self: center; font-size: 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-part-search .ph-part-search-empty { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 14px/20px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-part-search .ph-part-search-empty[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements[data-nest-search="on"] #sections > :not(.ph-section, .ph-nest-searchnote, .ph-part-search) { display: none !important; }

/* ---------- the schedules (30b, 40, 40b, 40c): folded rows with their counts ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-sched { display: block; padding: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-sched-eyebrow { margin-bottom: -6px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-sched .ph-nest-disc .ph-nest-d { white-space: normal; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody > .ph-block, html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody > details > .ph-block {
  display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody > .ph-block + .ph-block { padding-top: 12px; border-top: 1px solid var(--nest-line); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody > .ph-block.flow-measured-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody > .ph-block.flow-measured-card > * { grid-column: 1 / -1; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody > .ph-block.flow-measured-card > label.flow-measure-field { grid-column: auto; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-cardhead h3 { font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-divider { height: 1px; background: var(--nest-line); margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody .ph-photos { display: flex; flex-direction: column; gap: 10px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody .ph-photo { display: flex; flex-direction: column; gap: 6px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody .ph-photo img { max-width: 100%; border-radius: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody :is(.roof-plan, .item-plan, .roof-crop) { border-radius: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-discbody .roof-buildup-title { font: 600 15px/1.3 var(--nest-text); }
/* a core's layers: one compact row each, the fields open under a tapped layer */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layers { display: block; padding: 4px 12px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layers > .roof-layer { 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-roof="elements"] body #elements .ph-nest-layers > .roof-layer + .roof-layer { border-top: 1px solid var(--nest-line); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layerrow { display: flex; align-items: center; gap: 4px; min-height: 44px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layeropen {
  flex: 1; min-width: 0; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; height: auto; margin: 0; padding: 4px 0;
  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-roof="elements"] body #elements .ph-nest-layeropen:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layerk { font: 500 12px/1 var(--nest-mono); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layerv { font: 400 15px/1.3 var(--nest-text); color: var(--nest-ink); overflow-wrap: anywhere; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-mm { font: 500 13px/1 var(--nest-mono); color: var(--nest-muted); }
/* a box the app has refused: the folded line says so, in the danger colour */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-mm.ph-nest-bad { font: 600 13px/1.2 var(--nest-text); color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-disc .ph-nest-cnt.ph-nest-bad { font-weight: 600; color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-reading .ph-nest-disc .ph-nest-d.ph-nest-bad { font-weight: 600; color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layertools { flex: none; display: flex; align-items: center; gap: 4px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layertools button { width: 32px; height: 32px; min-height: 32px; padding: 0; color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layertools button.ph-secondary { background: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layertools button.ph-danger { color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layertools button:disabled { color: #C2CBC6; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layerbody { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 12px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-layerbody[hidden] { display: none; }
/* the instrument reading: one folded row; reading and unit two to a row when open */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-reading { display: block; padding: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-readingbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-readingbody > * { grid-column: 1 / -1; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-readingbody > .ph-nest-half { grid-column: auto; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"] body #elements .ph-nest-readingbody[hidden] { display: none; }

/* ---------- Roof set-up (32): the roof's details on their own screen ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #tabs, html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements > button.ph-primary[data-tab="report"], html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements > #roof-subtabs { display: none !important; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements #sections > :not(details.ph-premium-roof-details) { display: none !important; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements #sections > details.ph-premium-roof-details { display: block; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements #sections > details.ph-premium-roof-details > summary { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-roof-details { 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-roof="setup"] body #elements .ph-nest-setupcard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-setupcard > * { grid-column: 1 / -1; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-setupcard > .ph-nest-half { grid-column: auto; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-choosefield { display: flex; flex-direction: column; gap: 6px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-lbl { font: 600 13px/1.2 var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-roof-details > :is(h3, .roof-crop, p.ph-small) { margin: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-roof-details > h3 { font: 600 15px/1.3 var(--nest-text); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-aux {
  position: fixed; z-index: 21; left: var(--ph-nest-side); right: var(--ph-nest-right); bottom: calc(var(--ph-nest-safe) + 60px);
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-aux:not(:has(.ph-danger)) { justify-content: flex-end; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-aux button { align-self: center; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements { padding-bottom: calc(var(--ph-nest-safe) + 124px); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="setup"] body #elements .ph-nest-aux #roof-add { height: 36px; min-height: 36px; padding: 0 14px; background: var(--nest-notice); color: var(--nest-teal); }

/* Android: the arrow back of the platform's own app bar (HANDOVER rule 12); the button keeps its name "Back" */
html[data-phone-nest][data-app-design="flow"][data-nest-roof][data-nest-os="android"] body .ph-top:has(#back) #back { font-size: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof][data-nest-os="android"] body .ph-top:has(#back) #back::before { content: "\2190"; font: 400 26px/1 var(--nest-text); color: var(--nest-teal); }

/* ---------- #883 Nest PR 9: a whole-building survey (62 to 64, 67). data-nest-kind="building" is set with data-nest-roof by
   assets/phone-nest-roof.js; everything above applies to both kinds. A building survey has no roof row and no schedules;
   its count line and bar are the screen's own (#counts), replaced by the progress box at the top of #sections. ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"][data-nest-kind="building"] body #elements #sections :is(.ph-item) > .ph-go,
html[data-phone-nest][data-app-design="flow"][data-nest-roof="elements"][data-nest-kind="building"] body #elements #sections :is(.ph-item) > div:empty { display: none; }
/* the site plan and its photos on plans: one folded row (63), opened to the plan's own view and the finder's folded row (64) */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-plan {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; height: auto; margin: 0; padding: 10px 14px;
  background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none; text-align: left; font: inherit; color: var(--nest-ink); cursor: pointer;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-plan .ph-nest-d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-plan:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-plan[aria-expanded="true"] { border-bottom-color: transparent; border-radius: 2px 2px 0 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-plan[aria-expanded="true"] .ph-nest-chev .ph-nest-icon { transform: rotate(180deg); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #site-plan[data-nest-folded="yes"] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #site-plan[data-nest-folded="no"] {
  display: flex; flex-direction: column; gap: 14px; margin: -14px 0 0; padding: 12px 14px 14px; background: var(--nest-card); border: 1px solid var(--nest-line);
  border-top: 0; border-radius: 0 0 2px 2px; box-shadow: inset 0 1px 0 var(--nest-line); animation: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #site-plan .ph-nest-about { font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #site-plan #nest-building-find { background: var(--nest-field); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #site-plan #nest-building-find + #nest-building-finder { margin-top: -14px; background: var(--nest-field); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #site-plan .roof-plan { margin: 0; border: 1px solid var(--nest-line); border-radius: 2px; }
/* while the finder is open and a position waits: Confirm position pinned (assets/phone-nest-site.css), Next a small text button above it */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"][data-nest-building-aux] body #nest-roof-bar { height: calc(var(--ph-nest-safe) + 102px); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"][data-nest-building-aux] body #property { padding-bottom: calc(var(--ph-nest-safe) + 116px); }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"][data-nest-building-aux] body #property #next-elements {
  left: auto; right: var(--ph-nest-right); bottom: calc(var(--ph-nest-safe) + 60px); height: 32px; min-height: 32px; padding: 0 8px;
  background: none; color: var(--nest-teal); font: 600 14px/1 var(--nest-text);
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"][data-nest-building-aux] body #property #next-elements::before { content: " ›" / ""; order: 2; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"][data-nest-building-aux] body #property #next-elements::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}
/* inside the site plan row: Choose or take a site plan as a small pale pill; the finder's field as one white box with the
   search icon inside (the field rules above would otherwise draw a second box round the input) */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #site-plan button.ph-nest-pill {
  height: 36px; min-height: 36px; padding: 0 14px; background: var(--nest-notice); color: var(--nest-teal); font: 600 15px/1 var(--nest-text);
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-finder .ph-nest-field input {
  flex: 1; min-width: 0; width: auto; height: 46px; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none;
}
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-finder .ph-nest-field button { width: 40px; height: 40px; min-height: 40px; padding: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"][data-nest-kind="building"] body #property #nest-building-finder .site-map-actions button.ph-nest-pill { height: 36px; min-height: 36px; padding: 0 14px; background: var(--nest-notice); }

/* phone_element_overlay's "Survey › Parts" trail: under Nest the title, Back and the tabs say where you are (as the part
   sheet, #891) */
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) > .ph-capture-breadcrumb { display: none; }

/* #883 PR 9: on a wide screen (tablet, desktop) the screen keeps Flow's centred column, 760 px less its 18 px sides, in line
   with the instruction line, the tabs and the pinned button; on a phone the column is wider than the screen, so nothing moves */
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body :is(#property, #elements) { box-sizing: border-box; max-width: 724px; margin-inline: auto; }
/* no cover photo yet (67): the app's line across the card, then Choose or take a photo as a small pale pill under it */
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-property-cover > #cover > p.ph-small { grid-column: 1 / -1; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof="property"] body #property .ph-property-cover:has(> #cover > p.ph-small) > #cover-btn {
  grid-column: 1 / -1; justify-self: start; height: 36px; min-height: 36px; padding: 0 14px; background: var(--nest-notice); color: var(--nest-teal);
}

html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #property .ph-property-address textarea { resize: none; min-height: 72px !important; padding: 12px 14px; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #property select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%231F5B5B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
html[data-phone-nest][data-app-design="flow"][data-nest-roof] body #property select:has(option[value=""]:checked) { color: var(--nest-faint); }
