/* Phone survey (app/phone.html): phone-first, big targets, one thing per screen. Sits on tokens.css. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden wins over display: flex or grid on buttons, links and the tabs */
html, body { margin: 0; background: var(--bg); color: var(--text-strong); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body { padding-bottom: env(safe-area-inset-bottom); }
.ph-sticky { position: sticky; top: 0; z-index: 10; }
.ph-top { flex-wrap: wrap; display: flex; align-items: center; gap: 10px; min-height: 56px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--brand); color: #f4f7f6; }
.ph-back { background: none; border: 0; color: inherit; font-size: 2.125rem; line-height: 1; padding: 0 8px 4px 0; cursor: pointer; }
.ph-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-brand { font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-egg); }
.ph-title strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.ph-status { font-size: 0.75rem; color: var(--brand-egg); overflow-wrap: anywhere; }
.ph-main { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.ph-login-brand, .ph-login-premium-title { display: none; }
.ph-account-group { display: contents; }
.ph-account-group > summary { display: none; }
.ph-account-label, .ph-account-limitations { display: none; }
.ph-account-premium-title { display: none; }
.ph-notice:empty { display: none; }
.ph-notice { background: var(--surface-inset); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; font-size: 0.875rem; margin: 0 0 14px; }
h1 { font-family: var(--font-display); font-size: 1.625rem; margin: 6px 0 8px; }
h2 { font-family: var(--font-display); font-size: 1.1875rem; margin: 0 0 10px; }
h3 { font-size: 0.9375rem; margin: 4px 0; }
.ph-lead { font-size: 0.9375rem; line-height: 1.5; color: var(--text-body); margin: 0 0 16px; }
.ph-small { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.45; margin: 4px 0 10px; }
.ph-opt { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
.ph-form { display: grid; gap: 16px; }
.ph-forgot { color: var(--accent); justify-self: start; padding: 8px 0; }
html[data-brand="surveynest"] .ph-forgot { color: var(--sn-teal); justify-self: center; min-height: 44px; display: flex; align-items: center; font-weight: 600; text-decoration: none; }
.ph-form label, .ph-more label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; }
input, textarea, select { width: 100%; font: 1rem/1.4 var(--font-body); color: var(--text-strong); background: #fff;
  border: 1px solid var(--line-bright); border-radius: 10px; padding: 12px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--brand-egg); border-color: var(--accent); }
.ph-primary, .ph-secondary, .ph-danger { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px;
  border-radius: 12px; font: 600 1rem var(--font-body); cursor: pointer; text-decoration: none; border: 0; padding: 0 16px; }
.ph-primary { background: var(--accent); color: var(--on-accent); }
.ph-secondary { background: #fff; color: var(--accent); border: 2px solid var(--accent); }
.ph-danger { background: none; color: var(--rag-high); min-height: 44px; font-weight: 500; }
.ph-primary:disabled { opacity: .55; }
.ph-link { box-sizing: border-box; }
/* #91 voice notes: the microphone beside a note box */
.ph-mic { display: block; margin: 6px 0 0 auto; min-height: 44px; padding: 0 14px; border-radius: 22px; background: #fff; color: var(--accent); border: 1px solid var(--accent); font: inherit; }
.ph-voice-undo { min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--accent); border: 1px solid var(--accent); font: inherit; }
.ph-voice-status { display: block; font-size: .875rem; color: var(--text-muted); }
.ph-mic.listening { background: var(--accent); color: #fff; }
.ph-card { background: var(--surface-card); border: 1px solid var(--line-card); border-radius: 14px; padding: 16px; margin-bottom: 18px; }
.ph-list { display: grid; gap: 10px; margin: 0 0 16px; }
.ph-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface-card);
  border: 1px solid var(--line-card); border-radius: 14px; padding: 14px; font: inherit; color: inherit; cursor: pointer; }
.ph-item b { display: block; font-size: 1rem; }
.ph-item small { display: block; color: var(--text-muted); font-size: 0.8125rem; margin-top: 3px; }
.ph-item .ph-go { margin-left: auto; font-size: 1.5rem; color: var(--text-muted); }
.ph-chip { flex-shrink: 0; min-width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; color: #fff; }
.ph-chip.g0 { background: #2f7d4f; } .ph-chip.g1 { background: #2a6fb0; } .ph-chip.g2 { background: #c5871a; color: #0a0a0c; } .ph-chip.g3 { background: #b23636; }
.ph-tag { flex-shrink: 0; font-size: 0.75rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--surface-inset); color: var(--text-body); }
.ph-tag.sent { background: #fff4dd; color: #7a4b12; } .ph-tag.ready { background: var(--ok-quiet); color: var(--ok); }
.ph-tag.refused { background: #fdeeea; color: #8a2c12; }   /* #846: not sent, the server asked for a change */
#send-refused h2 { font-size: 1.125rem; margin-top: 0; }
#send-refused #send-refused-reason { font-weight: 600; overflow-wrap: anywhere; }
#send-refused :is(.ph-primary,.ph-secondary) { width: 100%; margin-top: 8px; min-height: 48px; border-radius: 999px; }   /* owner rule: buttons fully rounded */
.ph-choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 8px; }
.ph-choice legend { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.ph-choice button { min-height: 64px; border-radius: 12px; border: 2px solid var(--line-bright); background: #fff; font: 600 0.9375rem var(--font-body);
  color: var(--text-strong); cursor: pointer; padding: 8px; text-align: left; }
.ph-choice button small { display: block; font-weight: 400; font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.ph-choice button[aria-pressed="true"] { border-color: var(--accent); background: #eef6f4; box-shadow: inset 0 0 0 1px var(--accent); }
.ph-block { background: var(--surface-card); border: 1px solid var(--line-card); border-radius: 14px; padding: 14px; }
.ph-photo-btn { font-weight: 600 !important; display: flex !important; }
.ph-hide { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ph-photos { display: grid; gap: 12px; margin-top: 12px; }
.ph-burst { position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column; background: var(--bg); }
.ph-burst-header, .ph-burst-actions { padding: 16px; background: var(--bg); }
.ph-burst-header { padding-top: max(16px, env(safe-area-inset-top)); }
.ph-burst-actions { display: grid; gap: 10px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.ph-burst-actions { margin-top: auto; }
.ph-burst-premium { overflow-y: auto; background: var(--brand); color: var(--surface-card); }
.ph-burst-premium .ph-burst-header, .ph-burst-premium .ph-burst-actions { background: transparent; }
.ph-burst-premium .ph-burst-header { padding: max(24px, env(safe-area-inset-top)) 20px 16px; }
.ph-burst-premium .ph-burst-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ph-burst-premium h2 { margin: 16px 0 4px; overflow-wrap: anywhere; }
.ph-burst-premium p { line-height: 1.5; }
.ph-burst-premium [role="status"] { font-size: 1.125rem; font-weight: 600; }
.ph-burst-premium [role="alert"]:not(:empty) { background: var(--surface-card); color: var(--rag-high); padding: 12px; }
.ph-burst-premium .ph-burst-actions { padding: 16px 20px max(20px, env(safe-area-inset-bottom)); }
.ph-burst-premium .ph-primary { background: var(--surface-card); color: var(--brand); }
.ph-burst-premium .ph-secondary { background: transparent; color: var(--surface-card); border-color: var(--surface-card); }
.ph-photo-review { position: fixed; inset: 0; z-index: 10001; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); gap: 12px; }
.ph-photo-review-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ph-photo-review-header h2 { margin: 0; }
.ph-photo-review-header button { width: auto; }
.ph-photo-review-body { display: grid; gap: 10px; }
.ph-photo-review-body img { width: 100%; max-height: 25vh; object-fit: contain; }
.ph-photo-review-actions { display: flex; gap: 10px; margin-top: auto; }
.ph-photo-review .ph-photo-review-actions { position: sticky; bottom: -16px; background: var(--bg); padding: 8px 0 max(16px, env(safe-area-inset-bottom)); }
.ph-photo-review :is(button) { min-height: 48px; border-radius: 999px; }
.ph-photo-review-actions button { flex: 1; }
html[data-phone-premium="on"] .ph-premium-review-body .ph-premium-review-tags { display: flex; overflow-x: auto; gap: 8px; min-width: 0; max-width: 100%; }
html[data-phone-premium="on"] .ph-premium-review-tags button { flex: none; width: auto; min-width: 44px; padding-inline: 16px; }
html[data-phone-premium="on"] .ph-premium-review-tags button[aria-pressed="true"] { background: var(--sn-signal); color: var(--sn-deep-teal); border-color: var(--sn-signal); }
html[data-phone-premium="on"] .ph-premium-review-body img { max-height: 32vh; }
html[data-phone-premium="on"] .ph-premium-review-label { margin: 0; font-weight: 700; }
html[data-phone-premium="on"] .ph-premium-review-hint { margin: 0; }
html[data-phone-premium="on"] .ph-premium-review-body :is(input, textarea) { min-height: 44px; width: 100%; }
html[data-phone-premium="on"] .ph-photo-review { background: var(--sn-deep-teal, #0f2e2d); color: var(--sn-on-dark, #f8f9f6); }
html[data-phone-premium="on"] .ph-photo-review > [role="status"]:empty { display: none; }
html[data-phone-premium="on"] .ph-photo-review .ph-secondary { background: transparent; color: var(--sn-on-dark, #f8f9f6); border-color: var(--sn-line-on-dark, #2b5553); }
html[data-phone-premium="on"] .ph-photo-review .ph-premium-review-tags button[aria-pressed="true"] { background: var(--sn-signal-light, #2dd4bf); border-color: var(--sn-signal-light, #2dd4bf); color: var(--sn-deep-teal, #0f2e2d); }
html[data-phone-premium="on"] .ph-photo-review .ph-photo-review-actions { background: var(--sn-deep-teal, #0f2e2d); }
html[data-phone-premium="on"] .ph-premium-review-body :is(input, textarea) { border-radius: 2px; }
#photo-review-warning button { min-height: 48px; border-radius: 999px; }
#element-photos .ph-burst-launch, .ph-burst .ph-primary, .ph-burst .ph-secondary { border-radius: 9999px; }
.ph-photo { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.ph-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--surface-inset); }
.ph-photo .ph-photo-fields { display: grid; gap: 6px; }
.ph-photo > .ph-photo-location { grid-column: 1 / -1; }
.ph-photo input, .ph-photo textarea { padding: 8px 10px; font-size: 1rem; }
.ph-photo .ph-danger { min-height: 32px; justify-content: flex-start; padding: 0; font-size: 0.8125rem; }
.ph-more { background: var(--surface-card); border: 1px solid var(--line-card); border-radius: 14px; padding: 12px 14px; }
.ph-more summary { font-weight: 600; font-size: 0.9375rem; cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 6px; }
.ph-more[open] > summary { margin-bottom: 12px; }
.ph-more > label, .ph-more > .ph-block { margin-bottom: 12px; }
.ph-checks { display: grid; gap: 8px; }
.ph-checks label { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.ph-checks input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.ph-error { color: var(--rag-high); font-weight: 600; font-size: 0.875rem; margin: 0; }
.ph-foot { text-align: center; font-size: 0.875rem; color: var(--text-muted); }
.ph-foot a { color: var(--accent); }
.ph-empty { color: var(--text-muted); font-size: 0.875rem; }
.ph-screen > button + button, .ph-screen > .ph-link + button, .ph-form > button + button { margin-top: 12px; }
/* Survey Nest v2: tabs, progress, ratings, defects, recommendations */
.ph-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  background: var(--brand); padding: 0 10px 8px; gap: 6px; }
/* Four tabs (roof surveys with moisture readings): equal widths while every label fits whole, a second row when the text
   is too large for one, never a word split or a sideways scroll (#20). */
.ph-tabs.ph-tabs-roof { display: flex; flex-wrap: wrap; }
.ph-tabs.ph-tabs-roof button { flex: 1 1 0; min-width: max-content; padding: 4px 8px; white-space: nowrap; }
.ph-tabs button[hidden] { display: none; }
.ph-tabs button { min-height: 40px; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #f4f7f6; font: 600 0.9375rem var(--font-body); cursor: pointer; }
.ph-tabs button[aria-current="true"] { background: #f4f7f6; color: var(--brand); }
.ph-progress { height: 8px; border-radius: 99px; background: var(--surface-inset); overflow: hidden; margin: 4px 0 8px; }
.ph-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.ph-counts { font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 16px; }
.ph-section { margin-bottom: 18px; }
.ph-chip.r3 { background: #b23636; } .ph-chip.r2 { background: #c5871a; color: #0a0a0c; } .ph-chip.r1 { background: #2f7d4f; } .ph-chip.rni { background: #6e6e78; font-size: 0.75rem; }
.ph-chip.rtodo { background: #fff; border: 2px dashed var(--line-bright); }
.ph-rating button.r3[aria-pressed="true"] { border-color: #b23636; background: #fbeeee; box-shadow: inset 0 0 0 1px #b23636; }
.ph-rating button.r2[aria-pressed="true"] { border-color: #c5871a; background: #fdf4e6; box-shadow: inset 0 0 0 1px #c5871a; }
.ph-rating button.r1[aria-pressed="true"] { border-color: #2f7d4f; background: #edf6f0; box-shadow: inset 0 0 0 1px #2f7d4f; }
.ph-cover img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; filter: grayscale(1); margin-bottom: 10px; }
.ph-defects { display: grid; gap: 12px; }
#defect-group { display: contents; }
.ph-defect { display: grid; gap: 10px; }
.ph-defect h3 { margin: 0; }
.ph-recs { display: grid; gap: 14px; margin-bottom: 12px; }
.ph-rec { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-card); }
.ph-rec-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 8px; }
.ph-rec-row label { display: grid; gap: 4px; font-size: 0.8125rem; font-weight: 600; }
.ph-rec-row select { padding: 10px; font-size: 1rem; }
.ph-rec .ph-danger { min-height: 32px; justify-content: flex-start; padding: 0; font-size: 0.8125rem; }
/* Your account: sign out, delete (LITE-APP §3 row 8) */
.ph-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.ph-danger-solid { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 12px; border: 0;
  background: var(--rag-high); color: #fff; font: 600 1rem var(--font-body); cursor: pointer; }
.ph-danger-solid:disabled { opacity: .55; }
.ph-gap { margin: 18px 0; display: grid; gap: 4px; }
#pro-address { overflow-wrap: anywhere; }
#pro-link { gap: 10px; }
/* Privacy and support pages (app/privacy.html, app/support.html) */
.ph-doc h2 { margin: 26px 0 8px; }
.ph-doc h3 { margin: 18px 0 4px; }
.ph-doc p, .ph-doc li { font-size: 0.9375rem; line-height: 1.55; color: var(--text-body); margin: 0 0 10px; }
.ph-doc ul { padding-left: 20px; margin: 0 0 10px; }
.ph-doc a { color: var(--accent); }
/* The name in the top bar: one word, SurveyNest (the mark shows only in the SurveyNest look below; one app for every plan, D16.25) */
.ph-brand .ph-name { font-weight: inherit; }
.sn-only { display: none !important; }

/* ---------- The SurveyNest look (survey-nest-brand/README.md; the kit vendored in assets/surveynest/) ----------
   Everything below applies only under html[data-brand="surveynest"]: the store app's own page has it (mobile/scripts/
   build-www.mjs writes it), and on the web only the Pro chat's surveynest_brand switch sets it, so a page without it looks
   exactly as before (the Mac demo, until 5 Oct). Drawn as the Lite launch film drew these same screens
   (videos/survey-nest-launch-reel/films/lite90.css): a Deep teal header with the mark, Mist screens, Card surfaces, 2 px
   corners, 1 px hairlines, Signal edges on what is active; buttons are pills (the kit's rule since 29 Sep). Ratings keep
   the kit's functional colours and appear only on ratings. */

html[data-brand="surveynest"] .sn-only { display: revert !important; }
html[data-brand="surveynest"], html[data-brand="surveynest"] body { background: var(--sn-mist); color: var(--sn-ink); font-family: var(--sn-font-text); }
html[data-brand="surveynest"] .ph-top { background: var(--sn-deep-teal); color: var(--sn-on-dark); align-items: flex-end; padding-bottom: 12px;
  min-height: calc(74px + env(safe-area-inset-top)); }
html[data-brand="surveynest"] .ph-brand { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; letter-spacing: .02em; text-transform: none; color: var(--sn-on-dark); }
html[data-brand="surveynest"] .ph-brand img { display: block !important; width: 20px; height: 20px; flex: none; }
html[data-brand="surveynest"] .ph-brand .ph-name { font-family: var(--sn-font-display); font-stretch: var(--sn-display-stretch); font-weight: var(--sn-display-weight); }
html[data-brand="surveynest"] .ph-title strong { font-family: var(--sn-font-display); font-stretch: var(--sn-display-stretch); font-weight: var(--sn-display-weight); font-size: 1.3125rem; margin-top: 8px; }
html[data-brand="surveynest"] .ph-status { font: 500 0.6875rem/1.2 var(--sn-font-data); letter-spacing: .08em; text-transform: uppercase; color: var(--sn-signal-light); }
html[data-brand="surveynest"] .ph-back { color: var(--sn-on-dark); }
html[data-brand="surveynest"] .ph-tabs { background: var(--sn-deep-teal); padding: 0 12px 12px; }
html[data-brand="surveynest"] .ph-tabs button { border-radius: var(--sn-radius); background: rgba(248, 249, 246, .1); color: var(--sn-on-dark); font-family: var(--sn-font-text); }
html[data-brand="surveynest"] .ph-tabs button[aria-current="true"] { background: var(--sn-card); color: var(--sn-teal); box-shadow: inset 0 -3px 0 var(--sn-signal); }
html[data-brand="surveynest"] .ph-notice { background: var(--sn-notice, var(--sn-card)); border-left: var(--sn-active-edge) solid var(--sn-signal); border-radius: var(--sn-radius); color: var(--sn-ink); }
html[data-brand="surveynest"] h1, html[data-brand="surveynest"] h2 { font-family: var(--sn-font-display); font-stretch: var(--sn-display-stretch); font-weight: var(--sn-display-weight); color: var(--sn-ink); }
html[data-brand="surveynest"] h1 { font-size: 1.6875rem; line-height: 1.12; margin: 6px 0 10px; }
html[data-brand="surveynest"] h2 { font-size: 1.1875rem; }
html[data-brand="surveynest"] .ph-lead { font-size: 1rem; color: var(--sn-ink-soft, var(--sn-ink)); }
html[data-brand="surveynest"] .ph-small, html[data-brand="surveynest"] .ph-opt, html[data-brand="surveynest"] .ph-empty,
html[data-brand="surveynest"] .ph-foot { color: var(--sn-muted); }
html[data-brand="surveynest"] .ph-counts { font: 500 0.75rem/1.4 var(--sn-font-data); letter-spacing: .04em; color: var(--sn-muted); }
html[data-brand="surveynest"] input, html[data-brand="surveynest"] textarea, html[data-brand="surveynest"] select {
  font-family: var(--sn-font-text); color: var(--sn-ink); background: var(--sn-field, var(--sn-card)); border: 1px solid var(--sn-line); border-radius: var(--sn-radius); }
html[data-brand="surveynest"] input:focus, html[data-brand="surveynest"] textarea:focus, html[data-brand="surveynest"] select:focus {
  outline: none; border-color: var(--sn-teal); box-shadow: 0 0 0 3px rgba(20, 184, 166, .35); }
html[data-brand="surveynest"] .ph-primary, html[data-brand="surveynest"] .ph-secondary, html[data-brand="surveynest"] .ph-danger-solid {
  border-radius: var(--sn-radius-pill); font-family: var(--sn-font-text); min-height: 54px; }
html[data-brand="surveynest"] .ph-primary { background: var(--sn-teal); color: var(--sn-on-dark); }
html[data-brand="surveynest"] .ph-secondary { background: var(--sn-field, var(--sn-card)); color: var(--sn-teal); border: 1px solid var(--sn-teal); }
html[data-brand="surveynest"] .ph-danger { color: var(--sn-urgent); }
html[data-brand="surveynest"] .ph-danger-solid { background: var(--sn-urgent); color: #FFFFFF; }
html[data-brand="surveynest"] .ph-error { color: var(--sn-urgent); }
html[data-brand="surveynest"] :is(button, a, summary, input[type="checkbox"]):focus-visible { outline: 2px solid var(--sn-focus); outline-offset: 2px; }
html[data-brand="surveynest"] .ph-top :is(button, a):focus-visible, html[data-brand="surveynest"] .ph-tabs button:focus-visible { outline-color: var(--sn-focus-on-dark); }
html[data-brand="surveynest"] :is(.ph-card, .ph-block, .ph-item, .ph-more) { background: var(--sn-card); border: 1px solid var(--sn-line); border-radius: var(--sn-radius); }
html[data-brand="surveynest"] .ph-item small, html[data-brand="surveynest"] .ph-item .ph-go { color: var(--sn-muted); }
html[data-brand="surveynest"] .ph-tag { font: 500 0.625rem/1.2 var(--sn-font-data); letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; border-radius: var(--sn-radius);
  border: 1px solid var(--sn-line); background: transparent; color: var(--sn-muted); }
html[data-brand="surveynest"] .ph-tag.sent { color: var(--sn-ink); background: #FBF4E4; border-color: var(--sn-repair); }
html[data-brand="surveynest"] .ph-tag.ready { color: var(--sn-on-dark); background: var(--sn-teal); border-color: var(--sn-teal); }
html[data-brand="surveynest"] .ph-tag.refused { color: #8a2c12; background: #FDEEEA; border-color: #c4532b; }
html[data-brand="surveynest"] .ph-chip { border-radius: var(--sn-radius); font-family: var(--sn-font-data); }
html[data-brand="surveynest"] .ph-chip.r3 { background: var(--sn-urgent); }
html[data-brand="surveynest"] .ph-chip.r2 { background: var(--sn-repair); color: var(--sn-ink); }
html[data-brand="surveynest"] .ph-chip.r1 { background: var(--sn-no-repair); color: #0a0a0c; }
html[data-brand="surveynest"] .ph-chip.rni { background: var(--sn-not-inspected); color: var(--sn-ink); }
html[data-brand="surveynest"] .ph-chip.rtodo { background: var(--sn-field, var(--sn-card)); border: 1.5px dashed var(--sn-line); }
html[data-brand="surveynest"] .ph-choice button { border-radius: var(--sn-radius); border: 1px solid var(--sn-line); background: var(--sn-field, var(--sn-card)); color: var(--sn-ink); font-family: var(--sn-font-text); }
html[data-brand="surveynest"] .ph-choice button small { color: var(--sn-muted); }
html[data-brand="surveynest"] .ph-choice button[aria-pressed="true"] { border-color: var(--sn-teal); background: rgba(20, 184, 166, .12); box-shadow: inset 3px 0 0 var(--sn-signal); }
html[data-brand="surveynest"] .ph-rating button.r3[aria-pressed="true"] { border-color: var(--sn-urgent); background: #FBEDEA; box-shadow: inset 3px 0 0 var(--sn-urgent); }
html[data-brand="surveynest"] .ph-rating button.r2[aria-pressed="true"] { border-color: var(--sn-repair); background: #FBF4E4; box-shadow: inset 3px 0 0 var(--sn-repair); }
html[data-brand="surveynest"] .ph-rating button.r1[aria-pressed="true"] { border-color: var(--sn-no-repair); background: #EAF3ED; box-shadow: inset 3px 0 0 var(--sn-no-repair); }
html[data-brand="surveynest"] .ph-progress { border-radius: 1px; background: #D5DDDA; }
html[data-brand="surveynest"] .ph-progress-bar { background: var(--sn-signal); }
html[data-brand="surveynest"] .ph-photo img, html[data-brand="surveynest"] .ph-cover img { border-radius: var(--sn-radius); }
html[data-brand="surveynest"] .ph-rec { border-bottom-color: var(--sn-line); }
html[data-brand="surveynest"] .ph-foot a, html[data-brand="surveynest"] .ph-linkbtn, html[data-brand="surveynest"] .ph-doc a { color: var(--sn-teal); }
/* Image-relative reference pins and ordered core layers; no physical scale inferred. */
.roof-plan{position:relative;width:100%;margin:1rem 0}
.roof-plan>img{width:100%;height:auto;display:block}
.roof-pin{position:absolute;transform:translate(-50%,-50%);background:#1e3b38;color:white;padding:.3rem .5rem;border-radius:.3rem;font-size:.8rem;pointer-events:none}
.roof-pin.needs-review{background:#8b4c00}
.roof-layer{border-left:.35rem solid #347d78}

/* Native dialog where available; the scoped fallback also supports iOS 15.0–15.3. */
.ph-element-reminder:not([open]) { display: none; }
.ph-reminder-shade { position: fixed; inset: 0; z-index: 10000; background: rgb(0 0 0 / 55%); }
.ph-element-reminder.ph-reminder-fallback { display: block; position: fixed; z-index: 10001;
  top: 50%; left: 0; right: 0; margin: 0 auto; transform: translateY(-50%); }
.ph-element-reminder.ph-reminder-fallback button:focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.ph-element-reminder { width: min(30rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
  overflow: auto; padding: 1.25rem; border: 1px solid var(--line-card); border-radius: 4px;
  background: var(--surface-card); color: var(--text-strong); font: inherit; line-height: 1.5; }
.ph-element-reminder::backdrop { background: rgb(0 0 0 / 55%); }
.ph-element-reminder h2 { font-size: 1.3rem; }
.ph-element-reminder p { margin: 0 0 1rem; }
.ph-element-reminder li { margin: .4rem 0; overflow-wrap: anywhere; }
.ph-reminder-actions { display: grid; gap: .75rem; }
.ph-element-reminder button { font-size: 1rem; padding: .75rem 1rem; }
.ph-element-reminder button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
html[data-brand="surveynest"] .ph-element-reminder { background: var(--sn-card); color: var(--sn-ink);
  border-color: var(--sn-line); font-family: var(--sn-font-text); }
html[data-brand="surveynest"] .ph-element-reminder button:focus-visible { outline-color: var(--sn-teal); }
html[data-brand="surveynest"][data-theme="dark"] .ph-element-reminder {
  background: var(--surface-card); color: var(--text-strong); border-color: var(--line-card); }
html[data-theme="dark"] .ph-element-reminder button:focus-visible { outline-color: var(--text-strong); }

/* TIM-V37 BP-08: the AI wording suggestion under an element's notes. */
.ph-ai{display:grid;gap:8px;margin:4px 0 8px}
.ph-ai-actions{display:flex;flex-wrap:wrap;gap:8px}
/* TIM-V37 REQ-11: the site plan's roof labels; while one is being moved the others shrink to dots. */
.sp-plan.sp-moving .sp-label:not(.sp-current){width:10px;height:10px;padding:0;font-size:0;border-radius:50%;overflow:hidden}
.sp-plan .sp-label.sp-current{outline:2px dashed #fff;outline-offset:2px}
.sp-roofs{list-style:none;padding:0;margin:8px 0;display:grid;gap:8px}
.sp-roofs li{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
/* TIM-V37 BP-02: the signature box and the saved signature (Your account). */
.ph-signature-pad{display:block;width:100%;max-width:600px;aspect-ratio:3/1;height:auto;background:#fff;border:1px dashed var(--line-card,#b8c4c2);border-radius:10px;touch-action:none;margin:8px 0}
.ph-signature-saved{display:block;max-width:100%;max-height:120px;background:#fff;border-radius:8px;margin:8px 0}
.ph-signature-actions{display:flex;flex-wrap:wrap;gap:8px}

/* #28: store plan choices, billed amount prominent and store-provided. */
#plans-options .ph-choice { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 14px; margin: 0 0 10px; border: 1px solid var(--line-card); border-radius: 2px; background: var(--surface-card); }
#plans-options .ph-choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
#plans-options .ph-choice > span { font-weight: 700; font-size: 1.08rem; text-align: right; }
#plans-options .ph-choice > small { grid-column: 2 / 4; }
#plan-card button { margin-right: 12px; }
/* Site-plan crop: the image uses the same view in the report. */
.roof-crop { position: relative; overflow: hidden; width: 100%; touch-action: none; background: #eee; }
.roof-crop img { position: absolute; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.roof-crop .roof-crop-sizer { position: static; display: block; width: 100%; visibility: hidden; }
/* Item placement uses image-relative positions, even when zoomed. */
.item-plan { overflow:hidden; touch-action:none; }
.item-plan-layer { position:relative; transform-origin:center; }
.item-plan img { display:block; width:100%; user-select:none; -webkit-user-select:none; -webkit-user-drag:none; }
.item-plan-pin { position:absolute; transform:translate(-50%,-50%); background:#1e3b38; color:white; border-radius:.3rem; padding:.4rem; cursor:grab; user-select:none; }
.item-plan-pin[hidden] { display:none; }
.item-plan-dot { position:absolute; transform:translate(-50%,-50%); width:.55rem; height:.55rem; border-radius:50%; background:#1e3b38; pointer-events:none; }

/* #54: tap targets for locally configured finding suggestions. */
.ph-finding-suggestions { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 12px; }
.ph-finding-suggestion { min-height:44px; padding:8px 12px; border:1px solid var(--sn-line, #b9b9bf); border-radius:2px; background:var(--sn-field, #fff); color:var(--sn-ink, #0a0a0c); cursor:pointer; }
.ph-finding-suggestion:focus-visible { outline:2px solid var(--sn-signal, #007d77); outline-offset:2px; }
/* My own quick notes (phone_my_notes): the same chips, "+ Add your own" dashed, and one box with Save note / Cancel */
.ph-my-notes { margin: 0; }
.ph-my-notes .ph-my-note-add, .ph-my-notes .ph-my-note-edit { border-style: dashed !important; }
.ph-my-notes .ph-my-note-remove { border-color: var(--sn-danger, #b3261e) !important; color: var(--sn-danger, #b3261e) !important; }
.ph-my-note-form { display: grid; gap: 8px; margin: 8px 0 12px; }
.ph-my-note-form > input { width: 100%; min-height: 48px; box-sizing: border-box; font-size: 16px; }
.ph-my-note-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-my-note-actions > button { min-height: 48px; border-radius: 999px; }
.ph-my-note-said { margin: 0; min-height: 18px; }
/* Keep the keyboard focus on a visually hidden file picker visible on its label. */
.ph-photo-btn:has(+ .ph-hide:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Large text needs the full viewport for the survey. */
html.ph-large-text .ph-sticky { position: static; }

/* Native phone shell: the same data and controls, arranged for one-handed use. */
html[data-brand="surveynest"] { -webkit-tap-highlight-color: transparent; }
html[data-brand="surveynest"] .ph-top { min-height: calc(52px + env(safe-area-inset-top, 0px)); align-items: center; padding: calc(4px + env(safe-area-inset-top, 0px)) 16px 4px; }
html[data-brand="surveynest"] .ph-title { display: block; }
html[data-brand="surveynest"] .ph-title strong { display: block; margin: 0; font-size: 1.125rem; }
html[data-brand="surveynest"] .ph-brand { display: none; }
html[data-brand="surveynest"][data-phone-screen="home"] .ph-brand { display: flex; }
html[data-brand="surveynest"][data-phone-screen="home"] .ph-title strong { display: none; }
html[data-brand="surveynest"] .ph-back { min-width: 44px; min-height: 44px; padding: 0; text-align: left; }
html[data-brand="surveynest"] .ph-tabs { display: flex; gap: 0; padding: 0 12px 6px; }
html[data-brand="surveynest"] .ph-tabs button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 4px; background: transparent; border-radius: 0; }
html[data-brand="surveynest"] .ph-tabs button[aria-current="true"] { background: transparent; color: var(--sn-on-dark); box-shadow: inset 0 -3px 0 var(--sn-signal); }
html[data-brand="surveynest"] .ph-tabs.ph-tabs-roof { flex-wrap: wrap; }
html[data-brand="surveynest"] .ph-tabs.ph-tabs-roof button { min-width: max-content; }
html[data-brand="surveynest"] #home h1 { font-size: 1.5rem; margin: 4px 0 16px; }
html[data-brand="surveynest"] #home.has-surveys > .ph-lead { display: none; }
html[data-brand="surveynest"] #home { padding-bottom: calc(var(--ph-home-nav-height, 64px) + 90px); }
html[data-brand="surveynest"] #surveys { gap: 0; border-top: 1px solid var(--sn-line); }
html[data-brand="surveynest"] #surveys .ph-survey-row { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
html[data-brand="surveynest"] #surveys .ph-survey-row > .ph-item { grid-column: 1 / -1; grid-row: 1; }
html[data-brand="surveynest"] #surveys .ph-survey-row > .ph-block { grid-column: 1 / -1; }
html[data-brand="surveynest"] #surveys .ph-item { min-height: 78px; border-width: 0 0 1px; padding-right: 56px; border-radius: 0; }
html[data-brand="surveynest"] #surveys .ph-item > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
html[data-brand="surveynest"] #surveys .ph-survey-row > .ph-linkbtn { display: none; }
.ph-row-more { display: none; }
html[data-brand="surveynest"] .ph-row-more { display: block; position: static; grid-column: 2; grid-row: 1; min-width: 48px; min-height: 78px; border: 0; background: transparent; color: var(--sn-teal); font-size: 1.5rem; }
html[data-brand="surveynest"] #new-survey-open { display: flex; position: fixed; z-index: 9; bottom: calc(var(--ph-home-nav-height, 64px) + 8px); left: 16px; width: calc(100% - 32px); border-radius: var(--sn-radius); }
#new-survey-open, .ph-sheet-heading, .ph-grabber { display: none; }
html[data-brand="surveynest"] #new-survey-sheet { display: none; position: fixed; inset: 0; z-index: 10000; background: rgb(0 0 0 / 55%); align-items: end; }
html[data-brand="surveynest"] #new-survey-sheet.is-open { display: flex; }
html[data-brand="surveynest"] .ph-new-sheet-body { width: 100%; max-height: calc(100dvh - 1rem); overflow: auto; background: var(--sn-card); padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
html[data-brand="surveynest"] .ph-grabber { display: block; width: 36px; height: 4px; margin: 0 auto 14px; background: var(--sn-line); }
html[data-brand="surveynest"] .ph-sheet-heading { display: flex; align-items: center; justify-content: space-between; }
html[data-brand="surveynest"] .ph-sheet-heading button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.5rem; color: var(--sn-ink); }
html[data-brand="surveynest"] #new-form { border: 0; padding: 0; margin: 0; }
html[data-brand="surveynest"] #new-form .ph-primary { border-radius: var(--sn-radius); }
html[data-brand="surveynest"] .ph-home-nav { display: flex; position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; padding: 0 4px env(safe-area-inset-bottom, 0px); background: var(--sn-card); border-top: 1px solid var(--sn-line); }
html[data-brand="surveynest"] .ph-home-nav[hidden] { display: none; }
html[data-brand="surveynest"] .ph-home-nav :is(button, a) { flex: 1; min-height: 64px; display: flex; align-items: center; justify-content: center; text-align: center; border: 0; background: transparent; color: var(--sn-teal); font: 600 .75rem/1.2 var(--sn-font-text); text-decoration: none; padding: 8px 4px; }
html[data-brand="surveynest"] #element { padding-bottom: 150px; }
html[data-brand="surveynest"] #element .ph-defects:empty, html[data-brand="surveynest"] #element #finding-suggestions:empty { display: none; }
html[data-brand="surveynest"] .ph-capture-actions { position: fixed; z-index: 8; bottom: 0; left: 0; right: 0; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--sn-card); border-top: 1px solid var(--sn-line); }
html[data-brand="surveynest"] .ph-capture-actions > button { border-radius: var(--sn-radius); }
html[data-brand="surveynest"] .ph-rating button[aria-pressed="true"] { border-width: 2px; }
html[data-brand="surveynest"] .ph-rating button.r3[aria-pressed="true"] { background: var(--sn-urgent); color: var(--sn-on-dark); }
html[data-brand="surveynest"] .ph-rating button.r2[aria-pressed="true"] { background: var(--sn-repair); color: var(--sn-ink); }
html[data-brand="surveynest"] .ph-rating button.r1[aria-pressed="true"] { background: var(--sn-card); color: var(--sn-ink); border: 3px solid var(--sn-no-repair); box-shadow: inset 5px 0 0 var(--sn-no-repair); }
html[data-brand="surveynest"] .ph-rating button[aria-pressed="true"] small { color: inherit; }
html[data-brand="surveynest"] .ph-element-reminder { position: fixed; inset: auto 0 0; width: 100%; max-width: none; max-height: calc(100dvh - 1rem); margin: 0; border-radius: 0; padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
html[data-brand="surveynest"] .ph-element-reminder.ph-reminder-fallback { top: auto; bottom: 0; transform: none; }
html[data-brand="surveynest"] .ph-element-reminder .ph-grabber { margin-bottom: 16px; }
html[data-brand="surveynest"] .ph-element-reminder ul { list-style: none; padding: 0; border-top: 1px solid var(--sn-line); }
html[data-brand="surveynest"] .ph-element-reminder li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--sn-line); }
html[data-brand="surveynest"] :is(button, a, .ph-photo-btn) { touch-action: manipulation; -webkit-touch-callout: none; }
html[data-brand="surveynest"] :is(button, a, .ph-photo-btn):active { filter: brightness(.9); }
html[data-brand="surveynest"] :is(button, .ph-photo-btn) { -webkit-user-select: none; user-select: none; }

html[data-brand="surveynest"].ph-sheet-open { overflow: hidden; }
html[data-brand="surveynest"] .ph-home-nav [aria-current="page"] { box-shadow: inset 0 3px 0 var(--sn-signal); }
html[data-brand="surveynest"] .ph-rating button.rni[aria-pressed="true"] { background: var(--sn-not-inspected); color: var(--sn-ink); }
html[data-brand="surveynest"] .ph-element-reminder :is(.ph-primary,.ph-secondary) { border-radius: var(--sn-radius); }

html[data-brand="surveynest"].ph-keyboard-open .ph-capture-actions { display: none; }

html[data-brand="surveynest"] .ph-survey-date { display: block; margin-top: 4px; color: var(--sn-muted); font: 500 .6875rem/1.3 var(--sn-font-data); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  html[data-brand="surveynest"] .ph-screen.ph-push:not(#element):not(#property) > :not(#new-survey-open):not(.ph-new-sheet),
  html[data-brand="surveynest"] #element.ph-push > .ph-form > :not(.ph-capture-actions) { animation: ph-push .18s var(--sn-ease); }
  html[data-brand="surveynest"] .ph-screen.ph-pop:not(#element):not(#property) > :not(#new-survey-open):not(.ph-new-sheet),
  html[data-brand="surveynest"] #element.ph-pop > .ph-form > :not(.ph-capture-actions) { animation: ph-pop .18s var(--sn-ease); }
  @keyframes ph-push { from { opacity: .8; translate: 12px 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes ph-pop { from { opacity: .8; translate: -12px 0; } to { opacity: 1; translate: 0 0; } }
}

html[data-brand="surveynest"] #account { padding-bottom: calc(var(--ph-home-nav-height, 64px) + 24px); }
html[data-brand="surveynest"] .ph-rating button[aria-pressed="true"] { position: relative; padding-right: 28px; }
html[data-brand="surveynest"] .ph-rating button[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 8px; font-weight: 700; }
html[data-brand="surveynest"] .ph-home-nav :is(button, a) { flex-direction: column; gap: 3px; }
html[data-brand="surveynest"] .ph-home-nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; stroke-linejoin: miter; }
.ph-home-nav svg { display: none; }
html[data-phone-usability="on"] .ph-home-nav { display: flex; position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; padding: 4px 4px env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid #d5e1df; }
html[data-phone-usability="on"] .ph-home-nav[hidden] { display: none; }
html[data-phone-usability="on"] .ph-home-nav :is(button, a) { flex: 1; min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: #14514d; font: 600 .8rem/1.2 sans-serif; text-decoration: none; }
html[data-phone-usability="on"] .ph-home-nav [aria-current="page"] { background: #e2f1ec; }
html[data-phone-usability="on"] .ph-survey-delete { min-width: 48px; min-height: 48px; border-radius: 999px; }
html[data-phone-usability="on"] #consent :is(button.ph-primary, button.ph-secondary) { border-radius: 999px; }
html[data-brand="surveynest"] .ph-home-nav svg { display: block; }

/* Owner direction, 1 Nov 2026: action buttons use one themeable rounded shape. */

html[data-brand="surveynest"] button:not(.ph-item):not(.ph-premium-row):not(.ph-row-more):not(.ph-back):not(#new-survey-close):not(.ph-tabs button):not(.ph-roof-subtabs button):not(.ph-home-nav button):not(.ph-choice button) {
  border-radius: var(--sn-button-radius, var(--sn-radius-pill));
}
html[data-brand="surveynest"] :is(a.ph-primary, a.ph-secondary, .ph-photo-btn) { border-radius: var(--sn-button-radius, var(--sn-radius-pill)); }

/* Survey workflow: grouped fields and continuous building or roof part lists. */
html[data-brand="surveynest"] #elements .ph-section .ph-list { gap: 0; border-top: 1px solid var(--sn-line); }
html[data-brand="surveynest"] #elements .ph-section .ph-item { min-height: 68px; border-width: 0 0 1px; border-radius: 0; }
html[data-brand="surveynest"] #elements .ph-section .ph-item > div { min-width: 0; overflow-wrap: anywhere; }
html[data-brand="surveynest"] #elements .ph-section .ph-item:active { background: var(--surface-inset); }
html[data-brand="surveynest"] #elements .ph-roof-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
html[data-brand="surveynest"] #elements .ph-roof-item b { grid-column: 1; overflow-wrap: anywhere; }
html[data-brand="surveynest"] #elements .ph-roof-item small { grid-column: 1; margin: 0; }
html[data-brand="surveynest"] #elements .ph-roof-item::after { content: ""; width: 6px; height: 6px; border-top: var(--sn-hairline) solid var(--sn-muted); border-right: var(--sn-hairline) solid var(--sn-muted); transform: rotate(45deg); grid-column: 2; grid-row: 1 / span 2; align-self: center; }
html[data-brand="surveynest"] #property { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
html[data-brand="surveynest"] #property > .ph-form { gap: 0; }
html[data-brand="surveynest"] #property > .ph-form > label:not(.ph-photo-btn) { padding: 12px 14px; background: var(--sn-card); border-bottom: 1px solid var(--sn-line); }
html[data-brand="surveynest"] #property > .ph-form > .ph-block { margin-bottom: 16px; }
html.phone-compact-layout #property > .ph-form > .ph-property-address,
html.phone-compact-layout #property > .ph-form > .ph-property-postcode { order: -2; }
html.phone-compact-layout #property > .ph-form > .ph-property-cover { order: -1; }
html.phone-compact-layout :is(#property,#element,#report,#moisture) .ph-form { gap: 10px; }
html.phone-compact-layout #property > .ph-form { gap: 0; }
html.phone-compact-layout #property > .ph-form > label:not(.ph-photo-btn) { padding-block: 8px; }
html.phone-compact-layout #property > .ph-form > .ph-property-address { padding-bottom: 6px; border-bottom: 0; }
html.phone-compact-layout #property > .ph-form > .ph-property-postcode { padding-top: 6px; margin-bottom: 12px; }
html.phone-compact-layout #property > .ph-form > .ph-block { margin-bottom: 10px; }
html.phone-compact-layout #defect-group { display: grid; gap: 10px; padding: 12px; background: var(--surface-card); border: 1px solid var(--line-card); }
html.phone-compact-layout #elements .ph-section { margin-bottom: 10px; }
html.phone-compact-layout #elements .ph-section .ph-item { min-height: 56px; padding-block: 8px; }
html.phone-compact-layout :is(button,summary,a.ph-link,.ph-photo-btn) { min-width: 48px !important; min-height: 48px !important; }
html.phone-compact-layout :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) { min-height: 48px; }
html.phone-compact-layout :is(#element-sheet-close,#new-survey-close) { width: 48px; height: 48px; }
html.phone-compact-layout .ph-checks label { min-height: 48px; }
html[data-brand="surveynest"] .ph-workflow-actions { position: fixed; z-index: 8; inset: auto 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--sn-card); border-top: var(--sn-hairline) solid var(--sn-line); }
html[data-brand="surveynest"].ph-keyboard-open .ph-workflow-actions { display: none; }
html[data-brand="surveynest"] #report .ph-form > .ph-block { border-left: 0; border-right: 0; }
html[data-brand="surveynest"] #report .ph-more summary { min-height: 44px; }

@media (prefers-reduced-motion: no-preference) {
  html[data-brand="surveynest"] #property.ph-push > .ph-form > :not(.ph-workflow-actions) { animation: ph-push .18s var(--sn-ease); }
  html[data-brand="surveynest"] #property.ph-pop > .ph-form > :not(.ph-workflow-actions) { animation: ph-pop .18s var(--sn-ease); }
}

/* Account uses grouped settings with usable actions instead of empty card space. */
html[data-brand="surveynest"] #account > h1 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html[data-brand="surveynest"] #account > .ph-lead { margin: 4px 0 24px; }
html[data-brand="surveynest"] #account > :is(.ph-block,.ph-card),
html[data-brand="surveynest"]:not([data-phone-premium="on"]) #account > .ph-account-group > .ph-block { border: 0; border-top: var(--sn-hairline) solid var(--sn-line); border-bottom: var(--sn-hairline) solid var(--sn-line); padding: 16px; margin: 0 0 24px; gap: 12px; }
html[data-brand="surveynest"]:not([data-phone-premium="on"]) #account button.ph-premium-row { border-radius: var(--sn-button-radius, var(--sn-radius-pill)); }
html[data-brand="surveynest"] #plan-card > p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
html[data-brand="surveynest"] #plan-card > p:empty { display: none; }
html[data-brand="surveynest"] #plan-card > button { min-height: 48px; margin: 0; padding: 10px 16px; border: var(--sn-hairline) solid var(--sn-line); background: var(--sn-field, var(--sn-card)); text-decoration: none; font-weight: 600; }
html[data-brand="surveynest"] #plan-card-title { font-weight: 600; }
html[data-brand="surveynest"] #plan-card-count { font-family: var(--sn-font-data); font-variant-numeric: tabular-nums; }
html[data-brand="surveynest"] #profile-form { gap: 0; }
html[data-brand="surveynest"] #profile-form > label { padding: 12px 0; border-top: var(--sn-hairline) solid var(--sn-line); }
html[data-brand="surveynest"] #profile-form > :is(button,p) { margin-top: 12px; }
html[data-brand="surveynest"] #profile-form > p:empty { margin: 0; }
html[data-brand="surveynest"] #account .ph-signature-pad { border-radius: var(--sn-radius); border-color: var(--sn-muted); }

/* Field capture keeps related observations together without card nesting. */
html[data-brand="surveynest"] .ph-roof-details { border: 0; border-block: var(--sn-hairline) solid var(--sn-line); gap: 12px; padding: 16px; }
html[data-brand="surveynest"] .ph-roof-details > label { border-top: var(--sn-hairline) solid var(--sn-line); padding-top: 12px; }
html[data-brand="surveynest"] .ph-roof-details :is(input,textarea) { font-variant-numeric: tabular-nums; }
html[data-brand="surveynest"] #moisture { gap: 12px; }
html[data-brand="surveynest"] #moisture > p { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
html[data-brand="surveynest"] #moisture > h2 { margin: 8px 0 0; }
html[data-brand="surveynest"] #moisture > .ph-block { border: 0; border-block: var(--sn-hairline) solid var(--sn-line); padding: 16px; margin-top: 12px; }
html[data-brand="surveynest"] #moisture > .ph-form { gap: 0; }
html[data-brand="surveynest"] #moisture > .ph-form > label { padding: 12px 0; border-bottom: var(--sn-hairline) solid var(--sn-line); }
html[data-brand="surveynest"] #moisture > .ph-form > button { margin-top: 16px; }
html[data-brand="surveynest"] #moisture :is([data-reading="value"],[data-meter="unit"]) { font-family: var(--sn-font-data); font-variant-numeric: tabular-nums; }
html[data-brand="surveynest"] #moisture :is([role="status"],[role="alert"]):empty { margin: 0; }

/* Touch surface: preserve zoom and selectable content, suppress only control callouts. */
html[data-brand="surveynest"][data-phone-screen],
html[data-brand="surveynest"][data-phone-screen] body { overscroll-behavior: none; }
html[data-brand="surveynest"][data-phone-screen] { scrollbar-width: none; }
html[data-brand="surveynest"][data-phone-screen]::-webkit-scrollbar { display: none; }
html[data-brand="surveynest"] .ph-screen :is(input,textarea,select) { font-size: max(1rem, var(--sn-body)); }
html[data-brand="surveynest"] .ph-screen :is(input,textarea)::placeholder { color: var(--sn-muted); opacity: 1; }
/* owner fix 3 (10 Nov): while words are being heard the box shows only the live copy drawn over it (assets/phone-flow-voice.js,
   .ph-flow-voice-preview): never its grey example text, and never its own text a second time. assets/app-design.css says the
   same, but each Nest screen's own box and ::placeholder colours (rules with ids) outranked it, so the heard words were drawn
   through the example text. !important: this is a state (only while .has-partial is set), it must win on every screen. */
html[data-app-design="flow"] .ph-flow-voice-field.has-partial > :is(input, textarea)::placeholder { color: transparent !important; opacity: 0 !important; }
html[data-app-design="flow"] .ph-flow-voice-field.has-partial > :is(input, textarea) { color: transparent !important; -webkit-text-fill-color: transparent !important; caret-color: transparent !important; }
html[data-brand="surveynest"] .ph-screen :is(button,summary,.ph-link,.ph-photo-btn):not(.ph-primary):not(.ph-secondary):not(.ph-danger-solid) { min-height: 44px; }
html[data-brand="surveynest"] .ph-checks label { min-height: 44px; align-items: center; }
html[data-brand="surveynest"].phone-compact-layout .ph-checks label { min-height: 48px; }
html[data-brand="surveynest"].phone-compact-layout #report .ph-choice button { border-radius: var(--sn-button-radius, var(--sn-radius-pill)); padding: 20px 24px; }
html[data-brand="surveynest"].phone-compact-layout.ph-keyboard-open :is(.ph-workflow-actions,.ph-capture-actions) { display: flex; bottom: var(--ph-keyboard-inset, 0px); }
html[data-brand="surveynest"].phone-compact-layout.ph-keyboard-open #property { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px) + var(--ph-keyboard-inset, 0px)); }
html[data-brand="surveynest"].phone-compact-layout.ph-keyboard-open #element.ph-element-overlay { padding-bottom: calc(150px + var(--ph-keyboard-inset, 0px)); }
html.phone-compact-layout.ph-keyboard-open :is(#property,#element) :is(input,textarea,select) { scroll-margin-bottom: calc(var(--ph-keyboard-inset, 0px) + 100px); }
html.phone-compact-layout.ph-keyboard-open #element.ph-element-overlay.ph-save-feedback-on :is(input,textarea,select) { scroll-margin-bottom: 100px; }
html[data-brand="surveynest"] .ph-home-nav a { -webkit-user-select: none; user-select: none; }
html[data-brand="surveynest"] :is(.ph-new-sheet-body,.ph-element-reminder) { overscroll-behavior: contain; }
html[data-brand="surveynest"] .ph-screen button:disabled { opacity: .55; cursor: default; }
html[data-brand="surveynest"] .ph-screen button:disabled:active { filter: none; }
html[data-brand="surveynest"] .ph-main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (prefers-reduced-motion: reduce) {
  html[data-brand="surveynest"] .ph-progress-bar { transition: none; }
}

/* Entry and plan screens retain their exact consent and purchase wording. */
html[data-brand="surveynest"] :is(#login-form,#details-form) { gap: 0; }
html[data-brand="surveynest"] :is(#login-form,#details-form) > label { padding: 12px 14px; background: var(--sn-card); border-bottom: var(--sn-hairline) solid var(--sn-line); }
html[data-brand="surveynest"] :is(#login-form,#details-form) > :is(button,p) { margin-top: 16px; }
html[data-brand="surveynest"] :is(#login,#details) > .ph-lead { margin-bottom: 24px; }
html[data-brand="surveynest"] #plans-options .ph-choice { grid-template-columns: 24px minmax(0,1fr); padding: 16px; gap: 6px 10px; margin: 0; border: 0; border-bottom: var(--sn-hairline) solid var(--sn-line); border-radius: 0; }
html[data-brand="surveynest"] #plans-options .ph-choice:first-child { border-top: var(--sn-hairline) solid var(--sn-line); }
html[data-brand="surveynest"] #plans-options .ph-choice input { width: 20px; height: 20px; accent-color: var(--sn-teal); }
html[data-brand="surveynest"] #plans-options .ph-choice > :is(span,small) { grid-column: 2; text-align: left; }
html[data-brand="surveynest"] #plans-options .ph-choice > span { font: 500 .9375rem/1.5 var(--sn-font-data); font-variant-numeric: tabular-nums; }
html[data-brand="surveynest"] #plans-options .ph-choice:has(input:checked) { box-shadow: inset 3px 0 0 var(--sn-signal); }
html[data-brand="surveynest"] #plans-options .ph-choice:has(input:focus-visible) { outline: 2px solid var(--sn-teal); outline-offset: -2px; }
html[data-brand="surveynest"] #plans-options > .ph-small { margin-top: 16px; }
html[data-brand="surveynest"] :is(#consent,#text-checks) > .ph-small { font-size: 1rem; line-height: 1.6; }
html[data-brand="surveynest"] :is(#plans,#consent,#text-checks) .ph-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Detailed observations share the app type system and a single grouping level. */
html[data-brand="surveynest"] .ph-finding-suggestion { font: 500 .875rem/1.4 var(--sn-font-text); color: var(--sn-ink); }
html[data-brand="surveynest"] .ph-status { color: var(--sn-on-dark); }
html[data-brand="surveynest"] .ph-defect { border-inline: 0; padding: 16px 0; background: transparent; }
html[data-brand="surveynest"] .ph-defect h3 { font-family: var(--sn-font-data); font-size: .875rem; }
html[data-brand="surveynest"] .roof-layer { background: transparent; border-inline: 0; border-bottom: 0; padding: 12px 0 0; }
html[data-brand="surveynest"] .roof-layer h4 { margin: 0 0 12px; font: 500 .875rem/1.4 var(--sn-font-data); }
html[data-brand="surveynest"] .roof-layer label { margin-bottom: 12px; }
html[data-brand="surveynest"] [data-item-card] { border-inline: 0; margin-bottom: 16px; }
html[data-brand="surveynest"] [data-item-card] h3 { margin: 0; overflow-wrap: anywhere; }
html[data-brand="surveynest"] [data-measure], html[data-brand="surveynest"] [data-layer="thickness"] { font-family: var(--sn-font-data); font-variant-numeric: tabular-nums; }
html[data-brand="surveynest"] #view-sign-off .ph-signoff-body > .ph-block { border: 0; border-block: var(--sn-hairline) solid var(--sn-line); padding: 12px 0; background: transparent; }
html[data-brand="surveynest"] #view-sign-off .ph-signoff-body > p { margin: 0; line-height: 1.5; }
html[data-brand="surveynest"] #view-sign-off label:has(#sign-off-confirm) { padding-block: 12px; min-height: 44px; }
html[data-brand="surveynest"] #sign-off-confirm { accent-color: var(--sn-teal); flex-shrink: 0; }
html[data-brand="surveynest"] #sign-off-words label { display: grid; gap: 8px; padding-block: 12px; border-top: var(--sn-hairline) solid var(--sn-line); }
/* Reserve rating colours for ratings; errors and destructive actions use explicit words. */
html[data-brand="surveynest"] .ph-error { color: var(--sn-ink); border-left: 3px solid var(--sn-ink); padding: 8px 12px; background: var(--sn-card); }
html[data-brand="surveynest"] .ph-danger { color: var(--sn-ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-brand="surveynest"] .ph-danger-solid { background: var(--sn-ink); color: var(--sn-on-dark); }
html[data-brand="surveynest"] .ph-tag.sent { color: var(--sn-ink); background: var(--sn-card); border-color: var(--sn-line); }
html[data-brand="surveynest"] :is(.roof-pin,.item-plan-pin) { background: var(--sn-deep-teal); color: var(--sn-on-dark); border-radius: var(--sn-radius); font-family: var(--sn-font-data); }
html[data-brand="surveynest"] .roof-pin.needs-review { background: var(--sn-card); color: var(--sn-ink); border: 2px dashed var(--sn-ink); }
html[data-brand="surveynest"] .ph-progress { background: var(--sn-line); }
html[data-brand="surveynest"] :is(input,textarea,select):focus { box-shadow: none; outline: 2px solid var(--sn-teal); outline-offset: 2px; }

/* Final state audit: recovery actions and long field choices remain legible. */
html[data-brand="surveynest"] #photo-recovery:not([hidden]) { display: grid; gap: 12px; padding: 16px; margin-bottom: 20px; border-left: 3px solid var(--sn-ink); background: var(--sn-card); }
html[data-brand="surveynest"] #photo-recovery p { margin: 0; line-height: 1.5; }
html[data-brand="surveynest"] #photo-lost:not([hidden]) { display: grid; gap: 12px; padding: 16px; margin-bottom: 20px; border-left: 3px solid var(--sn-ink); background: var(--sn-card); }
html[data-brand="surveynest"] #photo-lost p { margin: 0; line-height: 1.5; }
html[data-brand="surveynest"] #photo-recovery button:disabled { opacity: .5; cursor: default; }
html[data-brand="surveynest"] #photo-recovery button:disabled:active { filter: none; }
html[data-brand="surveynest"] .ph-rec-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
html[data-brand="surveynest"] #asbestos-items > .ph-block { border-inline: 0; padding: 16px 0; background: transparent; display: grid; gap: 12px; }
html[data-brand="surveynest"] #asbestos-items > .ph-block h3 { margin: 0; }
html[data-brand="surveynest"] #copy-text-said:empty { display: none; }
html[data-brand="surveynest"] .roof-crop { background: var(--sn-mist); }
html[data-brand="surveynest"] .item-plan-dot { background: var(--sn-deep-teal); }
html[data-brand="surveynest"] .sp-plan .sp-label.sp-current { outline-color: var(--sn-on-dark); }
html[data-brand="surveynest"] .ph-signature-saved { border-radius: var(--sn-radius); }

/* Legal and purchase actions wrap as complete targets, without loose separators. */
html[data-brand="surveynest"] #plans .ph-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
html[data-brand="surveynest"] #plans .ph-foot > :is(a,button){flex:0 0 auto;max-width:100%;min-height:44px;display:inline-flex;align-items:center}

/* Readable help and legal pages, also opened from the installed app. */
html[data-brand="surveynest"] body:has(.ph-doc){color:var(--sn-ink);font-family:var(--sn-font-text)}
html[data-brand="surveynest"] body:has(.ph-doc) .ph-top{border-bottom:1px solid var(--sn-line);padding:calc(16px + env(safe-area-inset-top)) max(20px,env(safe-area-inset-left)) 16px;min-height:80px;background:var(--sn-card);color:var(--sn-ink)}
html[data-brand="surveynest"] body:has(.ph-doc) .ph-title{max-width:760px;width:100%;margin:auto}
html[data-brand="surveynest"] body:has(.ph-doc) .ph-title::before{content:"";display:block;width:152px;height:30px;margin-bottom:12px;background:url("surveynest/logo/lockup-horizontal.svg") left center/contain no-repeat}
html[data-brand="surveynest"] .ph-doc{max-width:800px;padding:28px max(20px,env(safe-area-inset-left)) 48px;margin:auto}
html[data-brand="surveynest"] .ph-doc :is(p,li){color:var(--sn-ink-soft);font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
html[data-brand="surveynest"] .ph-doc h1{font-size:1.75rem;margin:0 0 16px}
html[data-brand="surveynest"] .ph-doc h2{padding-top:20px;border-top:1px solid var(--sn-line);margin-top:28px}
html[data-brand="surveynest"] .ph-doc h3{font-family:var(--sn-font-text);font-size:1rem;font-weight:600}
html[data-brand="surveynest"] .ph-doc a{color:var(--sn-teal);text-underline-offset:3px}
html[data-brand="surveynest"] .ph-doc a:focus-visible{outline:2px solid var(--sn-focus);outline-offset:3px}

/* REQ-24/26: the core location plan and each core's own location picture. Sharp edges; the pin marks the place on the picture only. */
.core-crop .core-crop-pin{left:50%;top:50%}
.core-location{margin:12px 0}
.core-location h4{margin:0 0 6px}
/* REQ-25: a core's build-up, top to bottom. Sharp edges; the swatch is the layer component's colour only. */
.roof-buildup{border:1px solid var(--sn-line,#d2dfdd);background:#fff;color:#16302f;margin:4px 0 8px}
.roof-buildup-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:stretch}
.roof-buildup-row+.roof-buildup-row{border-top:1px solid var(--sn-line,#d2dfdd)}
.roof-buildup-swatch{display:block;border-right:1px solid var(--sn-line,#d2dfdd)}
.roof-buildup-name{align-self:center;padding:6px 10px;font-size:.875rem;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.roof-buildup-name span{display:block;color:#50676a}
.roof-buildup-mm{align-self:center;padding:6px 10px;font:500 .875rem/1.3 var(--sn-font-data,monospace);white-space:nowrap}
.roof-buildup-title{margin:12px 0 6px}

/* #699: the saved image is independent of the live map. */
.site-map { height: 320px; width: 100%; margin: 1rem 0; }
.site-picture-viewport { max-height: 55vh; overflow: auto; touch-action: none; overscroll-behavior: contain; }
.site-picture-viewport .sp-plan { min-width: 100%; }
.sp-outlines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sp-plan .sp-draggable { pointer-events: auto; touch-action: none; cursor: grab; }
.sp-plan.sp-drawing .sp-draggable { pointer-events: none; }
.sp-outline { fill: rgba(90, 96, 102, .25); stroke: #5a6066; stroke-width: 2; vector-effect: non-scaling-stroke; }
.sp-outline { pointer-events: visiblePainted; cursor: pointer; }
.sp-outlines.is-drawing .sp-outline { pointer-events: none; }
.sp-outline[data-rating="1"] { fill: rgba(36, 139, 91, .3); stroke: #248b5b; }
.sp-outline[data-rating="2"] { fill: rgba(197, 132, 0, .3); stroke: #9a6500; }
.sp-outline[data-rating="3"] { fill: rgba(193, 55, 50, .3); stroke: #b22c2c; }
.sp-outline-drawing { fill: none; stroke: #007b70; stroke-width: 2; vector-effect: non-scaling-stroke; }
.site-map-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-map-actions button { min-height: 48px; border-radius: 999px; }
/* #905: the site plan's zoom row, one line under the picture in every look: Zoom in, Zoom out, Fit to screen and the level */
.site-map-actions.site-plan-zoom { align-items: center; margin: .5rem 0; }   /* wraps only with large text */
.site-map-actions.site-plan-zoom > button { flex: 1 1 auto; width: auto; margin: 0; padding-inline: .75rem; white-space: nowrap; }
.site-plan-zoom-level { flex: none; min-width: 3.5ch; text-align: center; font-variant-numeric: tabular-nums; }

.site-map-frame { position: relative; }
/* #876: one address box with suggestions; each suggestion is a full-width tappable row (Round 02 shapes). */
.site-address-label { display: block; font-weight: 600; }
.site-address-label input { display: block; width: 100%; margin-top: 4px; }
.site-address-list { list-style: none; margin: .25rem 0 .75rem; padding: 0; border: 1px solid var(--sn-line, #d2dfdd); border-radius: 12px; overflow: hidden; background: var(--surface-card, #fff); }
.site-address-list[hidden] { display: none; }
.site-address-list li + li { border-top: 1px solid var(--sn-line, #d2dfdd); }
.site-address-option { display: block; width: 100%; min-height: 48px; padding: .625rem .875rem; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.site-address-option:focus-visible { outline: 3px solid var(--brand-egg, #007b70); outline-offset: -3px; }
.site-live-outlines { position:absolute; top:1rem; left:0; width:100%; height:320px; pointer-events:none; }
.site-live-outlines.is-drawing .sp-outline, .site-live-outlines.is-drawing .site-live-label { pointer-events:none; }
.site-live-label { fill:white; stroke:#1e3b38; stroke-width:4px; paint-order:stroke; font-size:14px; font-weight:600; text-anchor:middle; pointer-events:auto; touch-action:none; cursor:grab; }
.site-map-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: white; font-size: 2rem; font-weight: bold; text-shadow: 0 0 3px black, 0 0 3px black; pointer-events: none; }
.site-map[hidden] + .site-map-centre { display: none; }
/* Search hides rows without rebuilding them or disturbing the survey draft. */
#elements .ph-section[hidden], #elements .ph-item[hidden] { display: none; }
.ph-part-search { display: block; position: sticky; top: var(--ph-header-height, 80px); z-index: 2; background: var(--bg); margin: 16px 0; font-weight: 600; }
.ph-part-search input { display: block; width: 100%; margin-top: 4px; }
.ph-part-search-empty:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.ph-part-search-empty span { overflow-wrap: anywhere; }
.ph-part-search-empty button { width: auto; flex: 0 0 auto; border-radius: 999px; }
/* Compact dictation controls retain a 48px touch target. */
.ph-mic[data-compact] { display: inline-block; width: 48px; min-height: 48px; padding: 0; margin: 6px 6px 0 0; }
.ph-voice-clear { min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--accent); border: 1px solid var(--accent); font: inherit; }
/* The brand's general screen button rule must not shrink these gloved-use targets. */
html[data-brand="surveynest"] .ph-screen :is(button.ph-mic[data-compact], button.ph-voice-clear, button.ph-voice-undo):not(.ph-primary):not(.ph-secondary):not(.ph-danger-solid) { min-height: 48px; min-width: 48px; }
/* Measured items stay compact until the surveyor opens one. */
#element-items:not(:empty) > div { display: grid; gap: 12px; }
.ph-item-detail { border: 1px solid var(--line-card); background: var(--surface-card); }
.ph-item-detail > summary { cursor: pointer; min-height: 48px; padding: 12px; line-height: 24px; overflow-wrap: anywhere; }
.ph-item-detail > .ph-block { border: 0; border-top: 1px solid var(--line-card); border-radius: 0; }
#element-items button { border-radius: 9999px; }

/* Overview photo actions stay easy to hit and Undo remains available after saving. */
#element-photos .ph-photo .ph-danger { min-height: 48px; padding: 0 12px; border-radius: 999px; }
#element-photos .ph-notice button { min-height: 48px; border-radius: 999px; }
#element-photos .ph-photo-btn { border-radius: 999px; }
#element .ph-capture-actions button { border-radius: 999px; }
html[data-phone-premium="on"] {
  --phone-premium-teal: #1F5C5B;
  --phone-premium-deep-teal: #0F2E2D;
  --phone-premium-signal: #14B8A6;
  --phone-premium-mist: #EAEEEC;
  --phone-premium-card: #F8F9F6;
  --phone-premium-ink: #1F2A33;
  --phone-premium-muted: #5D6A70;
  --phone-premium-line: #C9CFC9;
  --phone-premium-space-1: 4px;
  --phone-premium-space-2: 8px;
  --phone-premium-space-3: 12px;
  --phone-premium-space-4: 16px;
  --phone-premium-space-5: 20px;
  --phone-premium-space-6: 24px;
  --phone-premium-space-8: 32px;
  --phone-premium-space-10: 40px;
  --phone-premium-space-12: 48px;
  --phone-premium-title: 32px;
  --phone-premium-heading: 16px;
  --phone-premium-body: 16px;
  --phone-premium-secondary: 13px;
  --phone-premium-label: 12px;
}
html[data-phone-premium="on"] .ph-premium-button {
  min-height: 50px; padding: 0 var(--phone-premium-space-5); border: 1px solid var(--phone-premium-teal);
  border-radius: 999px; font: 600 var(--phone-premium-body) var(--sn-font-text); cursor: pointer;
}
html[data-phone-premium="on"] .ph-premium-button--primary { background: var(--phone-premium-teal); color: white; }
html[data-phone-premium="on"] .ph-premium-button--secondary { background: transparent; color: var(--phone-premium-teal); }
html[data-phone-premium="on"] .ph-premium-button--quiet { background: transparent; border-color: transparent; color: var(--phone-premium-teal); }
html[data-phone-premium="on"] .ph-premium-card,
html[data-phone-premium="on"] .ph-premium-empty,
html[data-phone-premium="on"] .ph-premium-sheet { background: var(--phone-premium-card); color: var(--phone-premium-ink); border: 1px solid var(--phone-premium-line); border-radius: 2px; padding: var(--phone-premium-space-4); }
html[data-phone-premium="on"] .ph-premium-row { min-height: 56px; display: flex; align-items: center; gap: var(--phone-premium-space-3); padding: var(--phone-premium-space-3) var(--phone-premium-space-4); border: 0; border-bottom: 1px solid var(--phone-premium-line); border-radius: 0; background: var(--phone-premium-card); color: var(--phone-premium-ink); font: 600 var(--phone-premium-body) var(--sn-font-text); }
html[data-phone-premium="on"] .ph-premium-sheet { border-radius: 2px; }
html[data-brand="surveynest"][data-phone-premium="on"] body:has(#home:not([hidden])) { background: var(--phone-premium-mist); }
html[data-brand="surveynest"][data-phone-premium="on"] body:has(#home:not([hidden])) .ph-top { background: var(--phone-premium-mist); color: var(--phone-premium-ink); }
html[data-brand="surveynest"][data-phone-premium="on"] body:has(#home:not([hidden])) .ph-brand { visibility: hidden; }
html[data-brand="surveynest"][data-phone-premium="on"] #home > h1 { color: var(--phone-premium-ink); font-size: var(--phone-premium-title); margin: 24px 0 20px; }
html[data-brand="surveynest"][data-phone-premium="on"] #surveys { border: 0; display: grid; gap: 20px; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-home-group h2 { margin: 0 4px 8px; color: var(--phone-premium-muted); font: 700 var(--phone-premium-label) var(--sn-font-text); letter-spacing: .08em; text-transform: uppercase; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-home-rows { padding: 0; overflow: hidden; }
html[data-brand="surveynest"][data-phone-premium="on"] #surveys .ph-item { background: var(--phone-premium-card); color: var(--phone-premium-ink); border-color: var(--phone-premium-line); }
html[data-phone-premium="on"] #survey-search-open { display: block; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--phone-premium-teal); font-size: 30px; }
html[data-phone-premium="on"] #survey-search-open[hidden] { display: none; }
html[data-phone-premium="on"] #survey-search-box:not([hidden]) { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
html[data-phone-premium="on"] #survey-search-box label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html[data-phone-premium="on"] #survey-search-box input { min-width: 0; flex: 1; min-height: 44px; }
html[data-phone-premium="on"] #survey-search-close { min-height: 44px; border-radius: 999px; }
html[data-phone-premium="on"] #home-offline:not([hidden]) { border-left: 3px solid var(--phone-premium-signal); background: var(--phone-premium-card); color: var(--phone-premium-ink); padding: 14px 16px; }
html[data-phone-premium="on"] #surveys .ph-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: currentColor; }
html[data-brand="surveynest"][data-phone-premium="on"] #new-survey-open { left: auto; right: 16px; width: auto; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--phone-premium-teal); color: white; }
html[data-brand="surveynest"][data-phone-premium="on"] #new-survey-open::before { content: '+'; font-size: 24px; margin-right: 10px; }
.ph-kind-choices, .ph-close-cancel { display: none; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-new-sheet-body { border: 0; border-radius: 0; background: var(--phone-premium-card); }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-sheet-heading { position: relative; justify-content: center; min-height: 48px; margin-bottom: 20px; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-sheet-heading button { position: absolute; left: 0; width: auto; padding: 0 8px; border-radius: 999px; font: 600 var(--phone-premium-body) var(--sn-font-text); color: var(--phone-premium-teal); }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-close-symbol, html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-select { display: none; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-close-cancel { display: inline; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; border: 0; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices legend { margin-bottom: 8px; font-weight: 600; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices label { display: block; position: relative; min-width: 0; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices span { display: flex; flex-direction: column; min-height: 64px; padding: 10px; border: 1px solid var(--phone-premium-line); background: white; color: var(--phone-premium-ink); }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices small { color: var(--phone-premium-muted); font-size: var(--phone-premium-label); }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices input:checked + span { border: 2px solid var(--phone-premium-teal); background: var(--phone-premium-mist); padding: 9px; }
html[data-brand="surveynest"][data-phone-premium="on"] .ph-kind-choices input:focus-visible + span { outline: 3px solid var(--phone-premium-signal); outline-offset: 2px; }
html[data-brand="surveynest"][data-phone-premium="on"] #new-form input[name="site"] { border-radius: 0; }
html[data-brand="surveynest"][data-phone-premium="on"] #new-form .ph-primary { border-radius: 999px; background: var(--phone-premium-teal); color: white; min-height: 50px; }
html[data-brand="surveynest"][data-phone-premium="on"] #notice.ph-no-signal { border-left: 3px solid var(--phone-premium-signal); border-radius: 0; background: var(--phone-premium-card); color: var(--phone-premium-ink); padding: 14px 16px; font: 400 var(--phone-premium-body)/1.45 var(--sn-font-text); }
html[data-phone-premium="on"] .ph-tabs,
html[data-brand="surveynest"][data-phone-premium="on"] .ph-tabs.ph-tabs-roof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0;
  background: var(--phone-premium-deep-teal);
}
html[data-phone-premium="on"] .ph-tabs button,
html[data-brand="surveynest"][data-phone-premium="on"] .ph-tabs.ph-tabs-roof button {
  min-width: 0; min-height: 44px; padding: 2px 0; border: 0; border-radius: 0;
  background: transparent; color: #B9D3CD; font: 600 14px var(--sn-font-text);
}
html[data-phone-premium="on"] .ph-tabs button[aria-current="true"],
html[data-brand="surveynest"][data-phone-premium="on"] .ph-tabs.ph-tabs-roof button[aria-current="true"] {
  color: white; background: linear-gradient(#163f3d, #163f3d) center / 100% 40px no-repeat;
  box-shadow: inset 0 -3px 0 var(--phone-premium-signal);
}
html[data-phone-premium="on"] .ph-tabs #premium-site-tab { grid-column: 1; grid-row: 1; }
html[data-phone-premium="on"] .ph-tabs button[data-tab="property"] { grid-column: 2; grid-row: 1; }
html[data-phone-premium="on"] .ph-tabs button[data-tab="elements"] { grid-column: 3; grid-row: 1; }
html[data-phone-premium="on"] .ph-tabs button[data-tab="report"] { grid-column: 4; grid-row: 1; }
html[data-phone-premium="on"] .ph-tabs button:disabled { opacity: .6; cursor: not-allowed; }
html[data-phone-premium="on"][data-phone-screen="login"] .ph-sticky { display: none; }
html[data-phone-premium="on"][data-phone-screen="login"] .ph-main { padding-top: 0; }
html[data-phone-premium="on"] .ph-login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin: 0 -16px 30px; padding: calc(100px + env(safe-area-inset-top)) 28px 126px; background: var(--phone-premium-deep-teal); color: white; }
html[data-phone-premium="on"] .ph-login-brand strong { font: 700 2rem var(--sn-font-display); }
html[data-phone-premium="on"] .ph-login-brand strong::after { content: ''; display: block; width: 120px; margin-top: 20px; border-top: 2px dashed var(--phone-premium-signal); }
html[data-phone-premium="on"] .ph-login-brand p { margin: 0; color: #B9D3CD; }
html[data-phone-premium="on"][data-phone-screen="login"] body { min-height: 100svh; background: var(--phone-premium-mist); }
html[data-phone-premium="on"] :is(#login, .ph-signup) h1 { font: 700 var(--phone-premium-title)/1.12 var(--sn-font-display); margin: 0 0 22px; }
html[data-phone-premium="on"] .ph-login-old-title, html[data-phone-premium="on"] #login > .ph-lead { display: none; }
html[data-phone-premium="on"] .ph-login-premium-title { display: inline; }
html[data-phone-premium="on"] :is(#login, .ph-signup) input:not([type="checkbox"]) { border-radius: 2px; }
html[data-brand="surveynest"][data-phone-premium="on"] #login-form { gap: 16px; }
html[data-brand="surveynest"][data-phone-premium="on"] #login-form > label { padding: 0; background: transparent; border: 0; }
html[data-brand="surveynest"][data-phone-premium="on"] #login-form > button { margin-top: 0; }
html[data-phone-premium="on"] :is(#login, .ph-signup) .ph-primary { border-radius: 999px; background: var(--phone-premium-teal); }
html[data-phone-premium="on"] #login #notice:not(:empty) { border-left-color: var(--sn-urgent); color: var(--phone-premium-ink); }
html[data-phone-premium="on"][data-phone-screen="account"] body { background: var(--phone-premium-mist); }
html[data-phone-premium="on"] #account h1 { font-size: var(--phone-premium-title); }
html[data-phone-premium="on"] .ph-account-old-title { display: none; }
html[data-phone-premium="on"] .ph-account-premium-title { display: inline; }
html[data-brand="surveynest"][data-phone-premium="on"] #account > h1 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
html[data-phone-premium="on"] .ph-account-group { display: block; margin-bottom: 12px; }
html[data-phone-premium="on"] .ph-account-group:has(> [hidden]) { display: none; }
html[data-phone-premium="on"] .ph-account-group > summary { display: flex; align-items: center; min-height: 56px; padding: 16px; background: var(--phone-premium-card); border: 1px solid var(--phone-premium-line); color: var(--phone-premium-ink); font-weight: 600; cursor: pointer; }
html[data-phone-premium="on"] .ph-account-group > summary::after { content: '›'; margin-left: auto; font-size: 24px; }
html[data-phone-premium="on"] #account .ph-block { background: var(--phone-premium-card); border: 1px solid var(--phone-premium-line); border-radius: 2px; }
html[data-phone-premium="on"] #account .ph-primary, html[data-phone-premium="on"] #account .ph-secondary, html[data-phone-premium="on"] #account .ph-danger { border-radius: 999px; }
html[data-phone-premium="on"] #account input, html[data-phone-premium="on"] #account textarea { border-radius: 2px; }
html[data-phone-premium="on"] #plan-card .ph-premium-row { width: 100%; text-align: left; text-decoration: none; cursor: pointer; }
html[data-phone-premium="on"][data-phone-screen="plans"] body { background: var(--phone-premium-mist); }
html[data-phone-premium="on"] #plans .ph-primary, html[data-phone-premium="on"] #plans .ph-secondary { border-radius: 999px; }
html[data-phone-premium="on"] #plans .ph-choice { background: var(--phone-premium-card); border: 1px solid var(--phone-premium-line); border-radius: 2px; padding: 16px; min-height: 56px; }
html[data-phone-premium="on"] #plans .ph-plan-links { text-align: left; }
html[data-phone-premium="on"] #plans .ph-plan-links .ph-premium-row { width: 100%; text-decoration: none; cursor: pointer; }
html[data-phone-premium="on"][data-phone-screen="account"] .ph-sticky { display: none; }
html[data-phone-premium="on"][data-phone-screen="account"] .ph-main { padding-top: calc(28px + env(safe-area-inset-top)); }
html[data-phone-premium="on"] #account { display: flex; flex-direction: column; color: var(--phone-premium-ink); }
html[data-phone-premium="on"] #account > * { order: 10; }
html[data-phone-premium="on"] #account > h1 { order: 0; }
html[data-phone-premium="on"] #account-who { order: 1; }
html[data-phone-premium="on"] #account-plan-label { order: 2; }
html[data-phone-premium="on"] #plan-card { order: 3; }
html[data-phone-premium="on"] #account-report-label { order: 4; }
html[data-phone-premium="on"] #account > .ph-account-group:has(#signature-block) { order: 5; }
html[data-phone-premium="on"] #account > .ph-account-group:has(#profile-form) { order: 6; }
html[data-phone-premium="on"] #account-limitations { order: 7; }
html[data-phone-premium="on"] #account-phone-label { order: 8; }
html[data-phone-premium="on"] #account > .ph-account-group:has(#photo-location-account) { order: 9; }
html[data-phone-premium="on"] .ph-account-label { display: block; margin: 0 4px 8px; color: var(--phone-premium-muted); font: 600 var(--phone-premium-label) var(--sn-font-text); letter-spacing: .08em; text-transform: uppercase; }
html[data-phone-premium="on"] #account:not(:has(#photo-location-account:not([hidden]))) #account-phone-label { display: none; }
html[data-phone-premium="on"] .ph-account-limitations { display: flex; width: 100%; margin-bottom: 22px; text-align: left; cursor: pointer; }
html[data-phone-premium="on"] .ph-account-limitations::after { content: '›'; margin-left: auto; font-size: 24px; }
html[data-phone-premium="on"] #account > h1 { margin: 0 0 18px; }
html[data-phone-premium="on"] #account-who { display: flex; align-items: center; gap: 12px; min-height: 80px; margin-bottom: 22px; font-size: var(--phone-premium-body); color: var(--phone-premium-ink); }
html[data-phone-premium="on"] #account-who::before { content: attr(data-initials); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--phone-premium-signal); color: var(--phone-premium-deep-teal); font: 700 14px var(--sn-font-text); }
html[data-phone-premium="on"] #plan-card, html[data-brand="surveynest"][data-phone-premium="on"] #plan-card { padding: 0; margin-bottom: 22px; }
html[data-phone-premium="on"] #plan-card h2 { margin: 0; padding: 16px 16px 4px; }
html[data-phone-premium="on"] #plan-card > p { margin: 0; padding: 4px 16px; overflow-wrap: anywhere; }
html[data-phone-premium="on"] #plan-card > p:empty { display: none; }
html[data-phone-premium="on"] #plan-card-title { font-weight: 600; font-size: var(--phone-premium-body); }
html[data-phone-premium="on"] #plan-card-count, html[data-phone-premium="on"] #plan-card-note { color: var(--phone-premium-muted); font-size: var(--phone-premium-secondary); }
html[data-phone-premium="on"] #account .ph-account-group > summary { font-size: var(--phone-premium-body); }
html[data-phone-premium="on"] #plans h1 { font-size: var(--phone-premium-title); }
html[data-phone-premium="on"] #plans-message { border-radius: 2px; background: var(--phone-premium-card); color: var(--phone-premium-ink); }
html[data-brand="surveynest"][data-phone-premium="on"] #plans-options .ph-choice { margin: 0 0 12px; border: 1px solid var(--phone-premium-line); border-radius: 2px; background: var(--phone-premium-card); }
html[data-brand="surveynest"][data-phone-premium="on"] #plans-options .ph-choice:has(input:checked) { border: 2px solid var(--phone-premium-teal); box-shadow: none; }
html[data-phone-premium="on"] #plans .ph-plan-links .ph-premium-row::after { content: '›'; margin-left: auto; font-size: 24px; color: var(--phone-premium-muted); }
html[data-phone-premium="on"] .ph-roof-subtabs { display: flex; gap: var(--phone-premium-space-5); margin-bottom: var(--phone-premium-space-4); }
html[data-phone-premium="on"] .ph-roof-subtabs button { min-height: 44px; padding: 0 0 8px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--phone-premium-muted); font: 600 var(--phone-premium-body) var(--sn-font-text); cursor: pointer; }
html[data-phone-premium="on"] .ph-roof-subtabs button[aria-current="true"] { border-bottom-color: var(--phone-premium-signal); color: var(--phone-premium-ink); }
html[data-phone-premium="on"] #moisture { color: var(--phone-premium-ink); }
html[data-phone-premium="on"] .ph-moisture-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: var(--phone-premium-space-2); }
html[data-phone-premium="on"] .ph-moisture-totals .ph-premium-card { border: 0; border-top: 3px solid var(--phone-premium-teal); border-radius: 0; padding: var(--phone-premium-space-3); min-width: 0; }
html[data-phone-premium="on"] .ph-moisture-totals .ph-moisture-normal { border-color: var(--sn-no-repair); }
html[data-phone-premium="on"] .ph-moisture-totals .ph-moisture-elevated { border-color: var(--sn-repair); }
html[data-phone-premium="on"] .ph-moisture-totals .ph-moisture-high { border-color: var(--sn-urgent); }
html[data-phone-premium="on"] .ph-moisture-totals .ph-moisture-unassessed { border-color: var(--sn-not-inspected); }
html[data-phone-premium="on"] .ph-moisture-totals strong, html[data-phone-premium="on"] .ph-moisture-totals span { display: block; overflow-wrap: anywhere; }
html[data-phone-premium="on"] .ph-moisture-totals strong { font-size: 24px; }
html[data-phone-premium="on"] .ph-moisture-totals span { font-size: var(--phone-premium-secondary); }
html[data-phone-premium="on"] .ph-moisture-meter summary { justify-content: space-between; cursor: pointer; }
html[data-phone-premium="on"] .ph-moisture-meter summary span { text-align: right; overflow-wrap: anywhere; }
html[data-phone-premium="on"] .ph-moisture-readings h2 { font-size: var(--phone-premium-label); text-transform: uppercase; letter-spacing: .08em; }
html[data-phone-premium="on"] .ph-moisture-readings .ph-premium-row { display: flex; flex-wrap: wrap; justify-content: space-between; }
html[data-phone-premium="on"] .ph-moisture-readings .ph-premium-row p { flex: 1 1 180px; margin: 0; overflow-wrap: anywhere; }
html[data-phone-premium="on"] .ph-moisture-reading-content { display: grid; grid-template-columns: minmax(48px, auto) minmax(0, 1fr) auto; align-items: center; gap: var(--phone-premium-space-3); width: 100%; }
html[data-phone-premium="on"] .ph-moisture-value { font: 500 13px var(--sn-font-data); overflow-wrap: anywhere; }
html[data-phone-premium="on"] .ph-moisture-place { min-width: 0; overflow-wrap: anywhere; }
html[data-phone-premium="on"] .ph-moisture-place strong, html[data-phone-premium="on"] .ph-moisture-place span { display: block; }
html[data-phone-premium="on"] .ph-moisture-place span { color: var(--phone-premium-muted); font-weight: 400; }
html[data-phone-premium="on"] .ph-moisture-result { border: 1px solid currentColor; padding: 4px; font: 500 12px var(--sn-font-data); overflow-wrap: anywhere; }
html[data-phone-premium="on"] .ph-moisture-readings button { min-height: 44px; border-radius: 999px; }
html[data-phone-premium="on"] .ph-moisture-entry summary { display: flex; align-items: center; justify-content: center; list-style: none; }
html[data-phone-premium="on"] .ph-moisture-entry summary::-webkit-details-marker { display: none; }

html:not([data-phone-premium="on"]) #report .ph-report-section { display: contents; }
html:not([data-phone-premium="on"]) #report .ph-report-section > summary { display: none; }
html:not([data-phone-premium="on"]) #report .ph-report-value { display: none; }
html[data-phone-premium="on"] #report .ph-report-value { display: block; color: var(--phone-premium-muted); font-size: .875rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-phone-premium="on"] #report .ph-report-section > summary, html[data-phone-premium="on"] #report .ph-more > summary { display: block; padding: 14px 28px 14px 0; position: relative; }
html[data-phone-premium="on"] #report .ph-report-section > summary::after, html[data-phone-premium="on"] #report .ph-more > summary::after { content: '›'; position: absolute; right: 0; top: 12px; font-size: 28px; color: var(--phone-premium-muted); }
html[data-phone-premium="on"] #report .ph-report-condition { order: -6; margin-top: 34px; }
html[data-phone-premium="on"] #report .ph-report-condition::before, html[data-phone-premium="on"] #report .ph-report-recs::before { position: absolute; margin-top: -27px; color: var(--phone-premium-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
html[data-phone-premium="on"] #report .ph-report-condition::before { content: 'OVERALL'; }
html[data-phone-premium="on"] #report .ph-report-opinion { order: -5; }
html[data-phone-premium="on"] #report .ph-report-recs { order: -4; margin-top: 34px; }
html[data-phone-premium="on"] #report .ph-report-recs::before { content: 'SECTIONS'; }
html[data-phone-premium="on"] #report .ph-report-asbestos { order: -3; }
html[data-phone-premium="on"] #report .ph-report-limits { order: -2; }
html[data-phone-premium="on"] #report .ph-report-format { order: -1; }
html[data-phone-premium="on"] #report .ph-form { gap: 0; padding-bottom: 90px; }
html[data-phone-premium="on"] #report #report-draft-banner:not([hidden]) { order: -7; padding: 16px; border-left: 3px solid var(--phone-premium-signal); background: var(--phone-premium-card); color: var(--phone-premium-ink); font-weight: 600; }
html[data-phone-premium="on"] #report .ph-report-section,
html[data-phone-premium="on"] #report .ph-more { background: var(--phone-premium-card); border: 0; border-bottom: 1px solid var(--phone-premium-line); border-radius: 0; padding: 0 16px; }
html[data-phone-premium="on"] #report .ph-report-section > summary,
html[data-phone-premium="on"] #report .ph-more > summary { min-height: 56px; cursor: pointer; font-weight: 600; }
html[data-phone-premium="on"] #report .ph-report-section > summary::after { content: '›'; font-size: 28px; color: var(--phone-premium-muted); }
html[data-phone-premium="on"] #report .ph-report-section[open] { padding-bottom: 16px; }
html[data-phone-premium="on"] #report .ph-form > :not(.ph-report-section):not(.ph-more):not(#send-btn) { margin-top: 16px; }
html[data-phone-premium="on"] #report #send-btn { position: sticky; bottom: 12px; z-index: 2; margin-top: 16px; border-radius: 999px; }
html[data-phone-premium="on"] #report :is(#full-report,#copy-text) { justify-content: flex-start; min-height: 48px; padding: 12px 16px; background: var(--phone-premium-card); color: var(--phone-premium-teal); border: 0; border-bottom: 1px solid var(--phone-premium-line); border-radius: 0; text-align: left; }
html[data-phone-premium="on"] #report #copy-text { border-radius: 999px; }
html[data-phone-premium="on"] #report #use-ai-box label { min-height: 48px; align-items: center; justify-content: space-between; flex-direction: row-reverse; }
html[data-phone-premium="on"] #report #use-ai { appearance: none; position: relative; width: 48px; height: 28px; margin: 0; border: 2px solid var(--phone-premium-muted); border-radius: 999px; background: var(--phone-premium-card); }
html[data-phone-premium="on"] #report #use-ai::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--phone-premium-muted); }
html[data-phone-premium="on"] #report #use-ai:checked { background: var(--phone-premium-teal); border-color: var(--phone-premium-teal); }
html[data-phone-premium="on"] #report #use-ai:checked::after { left: 23px; background: white; }
html[data-phone-premium="on"] #report #use-ai:focus-visible { outline: 3px solid var(--phone-premium-signal); outline-offset: 3px; }
html[data-phone-premium="on"] #report .ph-grade button { border-radius: 999px; }
html[data-phone-premium="on"] #view[data-report-state="ready"] { color: var(--phone-premium-ink); }
html[data-phone-premium="on"] #view-premium-status:not([hidden]) { display: inline-block; margin: 8px 0 16px; padding: 6px 10px; background: var(--phone-premium-card); color: var(--phone-premium-teal); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
html[data-phone-premium="on"] #view-title { font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
html[data-phone-premium="on"] #view-premium-cover:not([hidden]) { display: flex; flex-direction: column; gap: 8px; width: 132px; min-height: 186px; margin: 20px 0 28px; padding: 16px 14px; background: #0d302e; color: white; box-shadow: 0 12px 24px #102e2b24; overflow-wrap: anywhere; }
html[data-phone-premium="on"] #view-premium-cover .ph-cover-mark { width: 24px; height: 24px; }
html[data-phone-premium="on"] #view-premium-cover .ph-cover-line { color: var(--phone-premium-signal); }
html[data-phone-premium="on"] #view-premium-cover strong { margin-top: auto; font-size: 15px; }
html[data-phone-premium="on"] #view-premium-cover-title { font-size: 12px; }
html[data-phone-premium="on"] #view :is(.ph-primary,.ph-secondary) { border-radius: 999px; min-height: 48px; }
html[data-phone-premium="on"] #view[data-report-state="ready"] #view-link:not([hidden]) { position: sticky; bottom: 12px; z-index: 2; }
html[data-phone-premium="on"] #view[data-report-state="attention"] #view-premium-status { color: var(--rag-high); }
html[data-phone-premium="on"] #view[data-report-state="attention"] #view-text { padding: 20px; border-left: 4px solid var(--rag-high); background: var(--phone-premium-card); }
html[data-phone-premium="on"] #view-premium-help:not([hidden]) { display: grid; gap: 12px; margin: 24px 0; }
html[data-phone-premium="on"] #view:is([data-report-state="ready"],[data-report-state="attention"]):not([hidden]) { display: flex; flex-direction: column; min-height: calc(100dvh - 84px); }
html[data-phone-premium="on"] #view[data-report-state="ready"] #view-link:not([hidden]) { margin-top: auto; }
html[data-phone-premium="on"] #view[data-report-state="attention"] #view-premium-help:not([hidden]) { margin-top: auto; }
.site-snapshot-image { display: block; width: 100%; height: auto; }
.site-snapshot-image[hidden] { display: none; }
html[data-phone-premium="on"] #site-first { background: var(--phone-premium-mist); }
html[data-phone-premium="on"] #site-first-plan .site-picture-viewport { margin-bottom: var(--phone-premium-space-4); }
html[data-phone-premium="on"] #site-first-plan .site-picture-empty { min-height: 220px; display: grid; place-items: center; background: #dce8e4; color: #163f3d; margin-bottom: var(--phone-premium-space-4); }
html[data-phone-premium="on"] #site-first-plan [data-site-plan-choose] { border-radius: 9999px; }
html[data-phone-premium="on"] .site-snapshot-choices:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--phone-premium-space-3); }
html[data-phone-premium="on"] .site-snapshot-choices button { width: 100%; min-height: 72px; padding: 12px; white-space: normal; }
html[data-phone-premium="on"] #site-map-controls > div:not([hidden]) { margin-bottom: var(--phone-premium-space-4); }
html[data-phone-premium="on"] #site-map-controls .site-snapshot-image { margin-top: var(--phone-premium-space-3); }
html[data-phone-premium="on"] .site-snapshot-arrows:not([hidden]) { display: grid; grid-template-columns: repeat(4, 1fr); }
html[data-phone-premium="on"] .site-snapshot-arrows button { min-width: 44px; }
html[data-phone-premium="on"] #property { background: var(--phone-premium-mist); }
html[data-phone-premium="on"] #property > .ph-form > * { order: 0; }
html[data-phone-premium="on"] #property > .ph-form > .ph-property-cover { background: var(--phone-premium-card); border-radius: 0; }
html[data-phone-premium="on"] #property > .ph-form > .ph-property-address::before,
html[data-phone-premium="on"] #property > .ph-form > label:has([data-p="inspection_date"])::before,
html[data-phone-premium="on"] #property > .ph-form > label:has([data-p="occupancy"])::before { display: block; grid-column: 1 / -1; color: var(--phone-premium-muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin: 8px 0; }
html[data-phone-premium="on"] #property > .ph-form > .ph-property-address::before { content: 'Property'; }
html[data-phone-premium="on"] #property > .ph-form > label:has([data-p="inspection_date"])::before { content: 'Inspection'; }
html[data-phone-premium="on"] #property > .ph-form > label:has([data-p="occupancy"])::before { content: 'Conditions'; }
html[data-phone-premium="on"] #property > .ph-form > label:not(.ph-photo-btn) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; min-height: 56px; }
html[data-phone-premium="on"] #property > .ph-form > label:not(.ph-photo-btn) :is(input,textarea,select) { width: 100%; min-width: 0; min-height: 44px; margin: 0; }
html[data-phone-premium="on"] #property > .ph-form > label:not(.ph-photo-btn) .ph-opt { grid-column: 1; }
html[data-phone-premium="on"] #property .ph-cover img { border-radius: 0; filter: none; }
/* New Flow-only nodes must also stay hidden when its optional stylesheet is unavailable. */
.ph-flow-only, .ph-flow-wordmark { display: none; }

/* The website report builder requires a separate sign-in in the store app. */
html.phone-store #full-report, html.phone-store #conflict-report { display: none !important; }

/* #848 Lite sign-up: the sign-in screen's look (Flow and Round 02 shapes from the shared rules), at 320 px and 200% text. */
.ph-signup-offer { margin-top: 20px; display: grid; gap: 8px; }
.ph-signup-offer .ph-small { margin: 0; }
.ph-signup .ph-form label { overflow-wrap: anywhere; }
.ph-signup .ph-signup-terms label { display: flex; gap: 10px; align-items: flex-start; }
.ph-signup .ph-signup-terms input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; }
.ph-signup #signup-code-email { overflow-wrap: anywhere; }
.ph-signup input[name="code"] { letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.ph-signup > .ph-secondary { width: 100%; margin-top: 12px; }
html[data-brand="surveynest"] #signup-form, html[data-brand="surveynest"] #signup-code-form { gap: 16px; }
html[data-brand="surveynest"] #signup-form > label, html[data-brand="surveynest"] #signup-code-form > label { padding: 0; background: transparent; border: 0; }
html[data-phone-premium="on"] :is(.ph-signup, #signup-offer) .ph-secondary { border-radius: 999px; }
.ph-signup .ph-signup-terms a, .ph-signup .ph-foot .ph-linkbtn { color: var(--sn-teal, inherit); }
.ph-signup input:not([type="checkbox"]) { border-radius: 2px; }

/* Your account: Updated terms row (shown only while the updated terms are not accepted) */
.ph-account-terms { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0 0 24px; padding: 12px 16px; text-align: left; cursor: pointer; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.ph-account-terms::after { content: '\203A'; margin-left: auto; font-size: 24px; line-height: 1; }
html[data-brand="surveynest"]:not([data-phone-premium="on"]) #account button.ph-account-terms { border: 0; border-top: var(--sn-hairline) solid var(--sn-line); border-bottom: var(--sn-hairline) solid var(--sn-line); border-radius: 0; background: var(--sn-card); color: var(--sn-ink); }
html[data-phone-premium="on"] #account-terms { order: 1; margin-bottom: 22px; }
html[data-phone-premium="on"] #account-terms::after { color: var(--phone-premium-muted); }

/* The site plan's own buttons (Place on plan, Remove the site plan, Zoom) must not touch each other. */
.site-plan-zoom { margin-top: 12px; }
[data-site-plan-remove], [data-site-plan-undo] { display: block; width: 100%; margin-top: 12px; }

/* #975 P3b: a Location row (Location, where the pin is, Place on plan / Move pin) on a defect, a part and a core; phone_item_pins only */
.pin-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; }
.pin-loc > .pin-loc-label { flex-basis: 100%; font-weight: 700; }
.pin-loc > .pin-loc-status { flex: 1 1 auto; min-width: 0; }
.pin-loc > .pin-loc-btn { flex: 0 0 auto; }

/* THE WORKING SIGN on the new-survey Start button (assets/phone-flow.js writes "Starting survey…" and sets aria-busy on the form): a spinner before the words */
#new-form[aria-busy="true"] [type="submit"]::before { content: ""; display: inline-block; box-sizing: border-box; width: 1em; height: 1em; margin: 0 .55em -.15em 0; border: .17em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sn-spin .8s linear infinite; }
/* THE WORKING SIGN on the AI help buttons: their own words ("Tidying your notes…") and the "Thinking…" line under them get a spinner (they are
   disabled only while the suggestion is being asked for) */
.ph-thinking:not([hidden])::before, #ai-suggest-ask:disabled::before, .ph-ai [data-ai-ask]:disabled::before { content: ""; display: inline-block; box-sizing: border-box; width: 1em; height: 1em; margin: 0 .55em -.15em 0; border: .17em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sn-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { #new-form[aria-busy="true"] [type="submit"]::before, .ph-thinking:not([hidden])::before, #ai-suggest-ask:disabled::before, .ph-ai [data-ai-ask]:disabled::before { animation-duration: 2.4s; } }
/* WORK GOING ON IN THE BACKGROUND: the app's two lines (the notice under the header, the status in it) when they say what is happening ("Opening…",
   "Adding photo 1 of 3…", "Saving…") show a spinner before the words and, after ten seconds, "This can take a minute." (phone.js: workingLine) */
#notice.is-working::before, #status.is-working::before { content: ""; display: inline-block; box-sizing: border-box; width: 1em; height: 1em; margin: 0 .5em -.15em 0; border: .17em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sn-spin .8s linear infinite; }
#notice.is-working[data-slow]::after, #status.is-working[data-slow]::after { content: " " attr(data-slow); }
@media (prefers-reduced-motion: reduce) { #notice.is-working::before, #status.is-working::before { animation-duration: 2.4s; } }
#notice.is-working:not(.is-overlay) { pointer-events: none; }   /* a sentence with no control in it: a tap goes to what is under it */
#notice.is-working, #notice.is-overlay { position: fixed; top: var(--ph-notice-top, env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 9; margin: 0; box-shadow: 0 2px 10px rgb(0 0 0 / 18%); }   /* in view wherever the page is scrolled to; it keeps its place in the flow, so nothing moves */
/* THE WORKING SIGN on the plan buttons: the Buy button is disabled only while the purchase is being set up (its own words say what is happening) */
#plans-buy:disabled::before { content: ""; display: inline-block; box-sizing: border-box; width: 1em; height: 1em; margin: 0 .55em -.15em 0; border: .17em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sn-spin .8s linear infinite; }

/* "Sign off this report" on the Report ready screen is a CLEAR SECONDARY BUTTON in every look (the Nest look drew it as a plain text link, and the
   Simulator look at #1110 could not tell it was tappable): the same height as the primary, full width, outlined, a pill. "Open your report" is the
   primary; in the Nest look it sits in a bar at the foot of the screen by design (thumb-friendly), with the working sign inside it. */
html body #view #view-sign-open { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 54px; margin: 12px 0 0; padding: 10px 20px; border: 2px solid #1f5c5b; border-radius: 999px; background: #fff; color: #1f5c5b; font: inherit; font-weight: 700; text-decoration: none; }
html body #view #view-sign-open[hidden] { display: none; }
html body #view #view-sign-open:disabled { opacity: .6; }
html[data-phone-nest] body #view #view-sign-open { min-height: 52px; }   /* the Nest look's primary is 52 high */
/* The sign-off is a bottom sheet over the Report ready screen (assets/phone-sign-off.js): a dim cover, and a panel that fills most
   of the screen with its own scroll and a Close. The safe-area spacing is kept at the top and the foot. */
#view-sign-off.ph-signoff-dim { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: rgb(0 0 0 / 45%); }
#view-sign-off.ph-signoff-dim[hidden] { display: none; }
#view-sign-off .ph-signoff-panel { box-sizing: border-box; margin: 0; padding: 0; border: 0; width: 100%; height: calc(100% - max(48px, env(safe-area-inset-top))); display: flex; flex-direction: column; background: var(--bg, #fff); color: var(--ink, #16242b); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 24px rgb(0 0 0 / 25%); }
.ph-signoff-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px 8px; border-bottom: 1px solid var(--line, #d3d9d5); }
.ph-signoff-head h2 { flex: 1; min-width: 0; margin: 0; font-size: 1.125rem; }
.ph-signoff-head .ph-signoff-close { flex: none; width: auto; min-height: 44px; margin: 0; padding: 8px 20px; border-radius: 999px; }
.ph-signoff-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px max(20px, env(safe-area-inset-bottom)); }
.ph-signoff-body > *, .ph-signoff-body p, .ph-signoff-body h3 { margin: 0; }
html[data-sign-sheet="on"] body { overflow: hidden; }

/* A BUTTON THAT IS WORKING (busy-sign.js: aria-busy and data-sn-busy, NOT disabled, so none of this file's :disabled rules reach it): it looks dimmed and
   shows the working cursor in every look of the app, whatever that look does to a button. */
html body :is(button, a, input).sn-busy[aria-busy="true"] { opacity: 1 !important; filter: saturate(.55) brightness(1.1); cursor: progress !important; }   /* dimmed by its colour, not by fading its words: the label stays as readable as it was */
