/* #883 Nest PR 8: after sending (redesign 53 to 61): the report screen (#view) in each state, and the Report a problem sheet.
   Only under the switch: the screen's rules start with html[data-phone-nest][data-app-design="flow"][data-nest-after], and data-nest-after is set by assets/phone-nest-after.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 the
   report screen shows; the sheet's rules start with html[data-phone-nest] and match only the .ph-nest-problem sheet that
   assets/report-problem.js draws under Nest. With the switch off nothing here matches. Values are reference/sn.css's
   (tokens --nest-* from assets/phone-nest.css). Icons on the app's own buttons are masks (their words are the app's and
   are rewritten on each redraw), from reference/html's icons. */

/* ---------- top bar ("Survey", the save line under it), instruction line, Mist page ---------- */
/* the pinned button and the row above it keep 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-after] { --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-after][data-nest-os="android"] { --ph-nest-safe: max(16px, env(safe-area-inset-bottom)); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body { background: var(--nest-mist); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body .ph-sticky { background: var(--nest-mist); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] 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-after] 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-after] 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-after] 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-after] 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-after] body .ph-top:has(#back) #status:empty { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-after][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-after][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-after][data-nest-os="android"] body .ph-top:has(#back) #title { font-size: 22px; }
html[data-phone-nest][data-app-design="flow"][data-nest-after][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); the button keeps its name "Back" */
html[data-phone-nest][data-app-design="flow"][data-nest-after][data-nest-os="android"] body .ph-top:has(#back) #back { font-size: 0; }
html[data-phone-nest][data-app-design="flow"][data-nest-after][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-after] body #nest-after-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-after] body #nest-after-instruction[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body .ph-main { padding-top: 0; }

/* ---------- the screen: a status block (icon, tag, name, the app's line), then the rest of the app's own pieces ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view:not([hidden]) {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; margin: 0 auto; padding: 12px 0 calc(var(--ph-nest-safe) + 72px);
  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-after][data-nest-after-aux] body #view:not([hidden]) { padding-bottom: calc(var(--ph-nest-safe) + 126px); }
/* #1230 (Android walk, B39): the room for the pinned bar is kept at the end of the page itself, not only at the end of this
   block, so anything the app or a lane puts after it on the page (Progress reports, Back to your surveys, the sign-off pieces)
   can always scroll clear of the bar */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body .ph-main { padding-bottom: calc(var(--ph-nest-safe) + 72px); }
html[data-phone-nest][data-app-design="flow"][data-nest-after][data-nest-after-aux] body .ph-main { padding-bottom: calc(var(--ph-nest-safe) + 126px); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view:not([hidden]), html[data-phone-nest][data-app-design="flow"][data-nest-after][data-nest-after-aux] body #view:not([hidden]) { padding-bottom: 12px; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view > * { margin: 0; max-width: 100%; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view .ph-nest-after-icon {
  display: flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--nest-notice); color: var(--nest-teal);
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view .ph-nest-after-icon svg { display: block; width: 28px; height: 28px; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view .ph-nest-after-icon.ph-nest-warn { background: var(--nest-danger-bg); color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-status { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view .ph-nest-after-tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--nest-notice); border-radius: 2px; background: var(--nest-notice);
  font: 600 12px/1 var(--nest-text); letter-spacing: 0; text-transform: none; color: var(--nest-teal); white-space: nowrap;
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view .ph-nest-after-tag.ph-nest-warn { background: var(--nest-danger-bg); border-color: #E3B9B4; color: var(--nest-danger); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view .ph-nest-after-tag[hidden] { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-title {
  margin: 0; font: 750 30px/1.1 var(--nest-disp); font-stretch: 118%; letter-spacing: -.015em; color: var(--nest-ink); overflow-wrap: anywhere;
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-text { margin: 0; padding: 0; border: 0; background: none; font: 400 16px/24px var(--nest-text); color: var(--nest-ink); }
/* Needs help: the app's line is a warning notice (56) */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view[data-report-state="attention"] #view-text,
html[data-phone-nest][data-app-design="flow"][data-nest-after="attention"] body #view #view-text, html[data-phone-nest][data-app-design="flow"][data-nest-after="retry"] body #view #view-text, html[data-phone-nest][data-app-design="flow"][data-nest-after="failed"] body #view #view-text {
  display: flex; gap: 10px; align-items: flex-start; align-self: stretch; padding: 10px 12px; border: 0; border-radius: 2px; background: var(--nest-danger-bg);
  font: 400 14px/20px var(--nest-text); color: var(--nest-danger);
}
html[data-phone-nest][data-app-design="flow"][data-nest-after="attention"] body #view #view-text::before, html[data-phone-nest][data-app-design="flow"][data-nest-after="retry"] body #view #view-text::before, html[data-phone-nest][data-app-design="flow"][data-nest-after="failed"] body #view #view-text::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v4M12 17.5h.01'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v4M12 17.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(.ph-small, #view-wait, #notification-status, #view-edit-help) { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view [hidden] { display: none !important; }

/* the report tile (57): the app's own cover, a card with the SurveyNest mark, "Report" and the name · PDF */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-cover:not([hidden]) {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; align-self: stretch;
  width: auto; min-height: 0; margin: 0; padding: 12px 14px; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none; color: var(--nest-ink);
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-cover .ph-cover-mark { grid-row: 1 / 3; width: 44px; height: 44px; padding: 8px; box-sizing: border-box; border-radius: 2px; background: var(--nest-deep); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-cover .ph-cover-line { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-cover strong { grid-column: 2; margin: 0; font: 600 16px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-cover-title { grid-column: 2; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); overflow-wrap: anywhere; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-cover-title::after { content: " \00B7  PDF"; }

/* ---------- buttons: small text buttons by default (rule 2), pale pills for the common second taps, 44 pt hit areas ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(button, a.ph-primary, a.ph-secondary, a.ph-link):not(.ph-nest-pin) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; 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;
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(button, a.ph-primary, a.ph-secondary, a.ph-link):not(.ph-nest-pin)::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-after] body #view :is(#view-retry, #view-unlock, #view-notify, #view-save, #view a[href^="tel:"], #view a[href^="mailto:"], #view-edit-report):not(.ph-nest-pin) {
  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-after] body #view button:disabled { color: #8FB0AB; cursor: default; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(button, a):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-help:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
/* ready: "‹ Back to your surveys" is a small text button under the tile */
html[data-phone-nest][data-app-design="flow"][data-nest-after="ready"] body #view > #view-home:not(.ph-nest-pin)::before { content: "\2039"; font: 600 16px/1 var(--nest-text); }
/* button icons: mail, phone, download, share */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(#view a[href^="mailto:"], #view a[href^="tel:"], #view-save, #view-link)::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view a[href^="mailto:"]::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view a[href^="tel:"]::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-save::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M8 11l4 4 4-4'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M8 11l4 4 4-4'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-phone-nest][data-app-design="flow"][data-nest-after="ready"] body #view #view-link::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M8 8l4-4 4 4'/%3E%3Cpath d='M5 12v8h14v-8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M8 8l4-4 4 4'/%3E%3Cpath d='M5 12v8h14v-8'/%3E%3C/svg%3E") center / contain no-repeat; }
html[data-phone-nest][data-app-design="flow"][data-nest-after="ready"] body #view #view-link.ph-nest-pin::before, html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-premium-help a.ph-nest-pin::before { width: 20px; height: 20px; }

/* ---------- the one pinned main action (rule 1), the row of small actions above it, and the bar behind them ---------- */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(#view-home, #view-link, #view-retry, #view-unlock, #view-send-retry, #view a[href^="mailto:"]).ph-nest-pin {
  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; gap: 8px;
  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; text-decoration: none; opacity: 1;
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(#view-home, #view-link, #view-retry, #view-unlock, #view-send-retry, #view a[href^="mailto:"]).ph-nest-pin:disabled { background: #8FB0AB; color: #fff; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(#view-home, #view-link, #view-retry, #view-unlock, #view-send-retry, #view a[href^="mailto:"]).ph-nest-pin:focus-visible { outline: 2px solid var(--nest-deep); outline-offset: 2px; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #nest-after-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: 44px; margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted);
}
html[data-phone-nest][data-app-design="flow"][data-nest-after]:not([data-nest-after-aux]) body #view #nest-after-aux { display: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #nest-after-aux > :only-child { margin-left: auto; }
/* #1230: Save to this phone and Report a problem with this report did not fit side by side at phone width and ran into each
   other: the pill keeps its size and the long text button takes the rest, wrapping onto two lines, right-aligned */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #nest-after-aux > #view-save { flex: none; }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #nest-after-aux > #view-report-problem:not(:only-child) {
  flex: 0 1 auto; min-width: 0; height: auto; min-height: 32px; white-space: normal; text-align: right; line-height: 18px;
}
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #nest-after-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-after][data-nest-after-aux] body #view #nest-after-bar { height: calc(var(--ph-nest-safe) + 116px); }
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #view #view-sign-off { align-self: stretch; }

/* ---------- Report a problem with this report (58 to 61): a Nest bottom sheet, drawn by assets/report-problem.js ---------- */
html[data-phone-nest] .nest-sheet.ph-nest-problem { max-height: calc(100dvh - 24px); overflow: auto; max-width: 760px; margin: 0 auto; font: 400 16px/1.4 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-head .nest-btn.nest-icon { position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: none; display: flex; align-items: center; justify-content: center; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-head .nest-btn.nest-icon::after { content: ""; position: absolute; inset: -2px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-head .nest-btn.nest-icon svg { width: 22px; height: 22px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem :is(h2, p, fieldset, legend) { margin: 0; }
html[data-phone-nest] .nest-sheet.ph-nest-problem fieldset { border: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem legend { padding: 0; margin: 0 0 8px; font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-card { display: flex; flex-direction: column; }
html[data-phone-nest] .nest-sheet.ph-nest-problem label.nest-radio { position: relative; display: flex; gap: 12px; align-items: flex-start; width: 100%; min-height: 44px; margin: 0; padding: 12px 14px; border: 0; background: none; cursor: pointer; font-weight: 400; }
html[data-phone-nest] .nest-sheet.ph-nest-problem label.nest-radio > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; pointer-events: none; }
html[data-phone-nest] .nest-sheet.ph-nest-problem label.nest-radio .nest-rb { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--nest-muted); margin-top: 1px; display: flex; align-items: center; justify-content: center; background: var(--nest-field); }
html[data-phone-nest] .nest-sheet.ph-nest-problem label.nest-radio > input:checked + .nest-rb { border-color: var(--nest-teal); }
html[data-phone-nest] .nest-sheet.ph-nest-problem label.nest-radio > input:checked + .nest-rb::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--nest-teal); }
html[data-phone-nest] .nest-sheet.ph-nest-problem label.nest-radio > input:focus-visible + .nest-rb { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .ph-nest-problem-invalid label.nest-radio .nest-rb { border-color: var(--nest-danger); box-shadow: 0 0 0 1px var(--nest-danger); }
html[data-phone-nest] .nest-sheet.ph-nest-problem label.nest-radio .nest-t { font: 600 16px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-err { margin: 0; display: flex; gap: 6px; align-items: flex-start; font: 400 13px/18px var(--nest-text); color: var(--nest-danger); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-err svg, html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-notice svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 2px; font: 400 14px/20px var(--nest-text); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-notice.nest-warn { background: var(--nest-danger-bg); color: var(--nest-danger); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-notice svg { width: 18px; height: 18px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem :is(.nest-err, .nest-notice)[hidden] { display: none; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field { display: flex; flex-direction: column; gap: 6px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field > label { display: flex; gap: 6px; align-items: baseline; margin: 0; font: 600 13px/1.2 var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field > label .nest-opt { font-weight: 400; color: var(--nest-muted); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field textarea {
  display: block; box-sizing: border-box; width: 100%; min-height: 64px; margin: 0; padding: 12px 56px 12px 12px; border: 1px solid var(--nest-line); border-radius: 2px;
  background: var(--nest-field); box-shadow: none; font: 400 16px/1.35 var(--nest-text); color: var(--nest-ink); resize: none;
}
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field textarea::placeholder { color: var(--nest-faint, #6B7570); opacity: 1; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field textarea:focus { outline: 0; border-color: var(--nest-teal); box-shadow: 0 0 0 1px var(--nest-teal); }
html[data-phone-nest] .nest-sheet.ph-nest-problem :is(.nest-help, .nest-tiny) { margin: 0; font: 400 12px/16px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-instr { margin: 0; font: 400 14px/20px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-lead { margin: 0; font: 400 16px/24px var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-small { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-actions .nest-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; font: 600 15px/1 var(--nest-text); white-space: nowrap; padding: 0 14px; background: none; color: var(--nest-teal); }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-actions .nest-btn.nest-primary { width: 100%; height: 52px; background: var(--nest-teal); color: #fff; font-size: 17px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-actions .nest-btn.nest-primary:disabled { background: #8FB0AB; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-actions .nest-btn.nest-text { min-width: 88px; height: 44px; padding: 0 8px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-actions .nest-btn:focus-visible { outline: 2px solid var(--nest-deep); outline-offset: 2px; }
/* the app's own microphone (phone-dictation.js, where the phone dictates): a 36 px pale pill inside the box, bottom right */
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field :is(.ph-flow-voice-field, .ph-voice-field) { position: relative; display: block; width: 100%; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field .ph-mic {
  position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; min-width: 36px; min-height: 36px; margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: var(--nest-notice); color: var(--nest-teal); display: inline-flex; align-items: center; justify-content: center; box-shadow: none;
}
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field .ph-mic::after { content: ""; position: absolute; inset: -4px; }
/* phone.css's long button:not(...) rule outweighs any plain selector here: the pill corner is kept with !important */
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field .ph-mic { border-radius: 999px !important; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field .ph-mic svg { width: 18px; height: 18px; }
html[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field .ph-mic[aria-pressed="true"] { background: var(--nest-teal); color: #fff; }
/* phone_compact_layout (on at the test server) forces 48 px on every button with !important; under Nest the drawn sizes stand
   on these screens, each with a 44 pt hit area (its ::after), as on #889 and #890 */
html.phone-compact-layout[data-phone-nest][data-app-design="flow"][data-nest-after] body #view :is(button, a.ph-link):not(.ph-nest-pin) { min-width: 0 !important; min-height: 0 !important; }
html.phone-compact-layout[data-phone-nest] .nest-sheet.ph-nest-problem .nest-field .ph-mic { min-width: 36px !important; min-height: 36px !important; }
html.phone-compact-layout[data-phone-nest] .nest-sheet.ph-nest-problem .nest-head .nest-btn.nest-icon { min-width: 40px !important; min-height: 40px !important; }
html.phone-compact-layout[data-phone-nest] .nest-sheet.ph-nest-problem .nest-actions .nest-btn.nest-text { min-height: 44px !important; }

/* #1230 (Android walk): a line arriving at the top of the report screen ("Saved … to …", "Not saved.") pushed every button down
   while a finger was on its way, so a tap meant for one hit the next. Here the line shows as a toast just above the pinned bar
   instead, over the page, and nothing under the finger moves. Lines with a control in them keep the app's own overlay. */
html[data-phone-nest][data-app-design="flow"][data-nest-after] body #notice:not(:empty):not(.is-working):not(.is-overlay) {
  position: fixed; z-index: 22; left: var(--ph-nest-side); right: var(--ph-nest-right); bottom: calc(var(--ph-nest-safe) + 72px); margin: 0;
  padding: 10px 12px; border: 0; border-radius: 2px; background: var(--nest-deep); color: #fff; font: 400 14px/20px var(--nest-text);
  box-shadow: 0 2px 8px rgba(15, 46, 45, .25);
}
html[data-phone-nest][data-app-design="flow"][data-nest-after][data-nest-after-aux] body #notice:not(:empty):not(.is-working):not(.is-overlay) { bottom: calc(var(--ph-nest-safe) + 126px); }
