/* SurveyNest phone redesign "Nest" (owner, 8 Nov 2026; #883). Presentation only, and only while the phone_ui_nest switch is
   on: every rule below is scoped to [data-phone-nest], which assets/app-design.js sets on <html> when /me names both
   phone_ui_flow and phone_ui_nest. With the switch off nothing here matches, so the phone is exactly today's Flow app.

   Part 1 (generated) is the designer's reference/sn.css with every class prefixed nest- (.card -> .nest-card) and
   data-os renamed data-nest-os, and its tokens renamed --nest-* (--teal -> --nest-teal); regenerate it with tools/nest/build-phone-nest-css.mjs, never edit it by hand.
   Part 2 (hand-written) bridges the Nest tokens into today's Flow screens until each screen is rebuilt (PRs 2 to 10),
   retires the Flow teal #166052 and the old #1e3b38 under the switch, and gives every small control a 44 pt hit area.

   Fonts: Archivo (titles and headings), IBM Plex Sans (everything else) and IBM Plex Mono (dates, references, counts and
   the saved time) are bundled with their SIL OFL licences in assets/surveynest/fonts and declared by
   assets/surveynest/tokens.css, which the phone loads first. No web fonts or CDN: the phone works offline. */

/* ---- BEGIN generated from reference/sn.css by tools/nest/build-phone-nest-css.mjs: do not edit by hand ---- */
/* SurveyNest phone app redesign, 8 Nov 2026.
   Brand tokens from brand/css/surveynest-tokens.css. Pill buttons; every other corner 2px. */
[data-phone-nest]{
  --nest-teal:#1F5C5B; --nest-deep:#0F2E2D; --nest-signal:#14B8A6;
  --nest-mist:#EAEEEC; --nest-card:#F8F9F6; --nest-field:#FFFFFF; --nest-line:#C9CFC9; --nest-notice:#E3EDEA;
  --nest-ink:#1F2A33; --nest-soft:#3B4A47; --nest-muted:#5D6A70; --nest-faint:#6B7570;
  --nest-danger:#A83232; --nest-danger-bg:#FBF1EF;
  --nest-urgent:#C2412D; --nest-repair:#C99416; --nest-norepair:#37814F; --nest-norepair-dot:#3C8C5A; --nest-ni:#6B7570;
  --nest-disp:"Archivo","IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --nest-text:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --nest-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
}
:where([data-phone-nest] :is([class^="nest-"],[class*=" nest-"]), [data-phone-nest] :is([class^="nest-"],[class*=" nest-"]) *){box-sizing:border-box}
:where([data-phone-nest] button:is([class^="nest-"],[class*=" nest-"]), [data-phone-nest] :is([class^="nest-"],[class*=" nest-"]) button){font:inherit;color:inherit;cursor:pointer}
:where([data-phone-nest] button:is([class^="nest-"],[class*=" nest-"]), [data-phone-nest] :is([class^="nest-"],[class*=" nest-"]) button),:where([data-phone-nest] input:is([class^="nest-"],[class*=" nest-"]), [data-phone-nest] :is([class^="nest-"],[class*=" nest-"]) input),:where([data-phone-nest] textarea:is([class^="nest-"],[class*=" nest-"]), [data-phone-nest] :is([class^="nest-"],[class*=" nest-"]) textarea){-webkit-appearance:none;appearance:none}
:where([data-phone-nest] a:is([class^="nest-"],[class*=" nest-"]), [data-phone-nest] :is([class^="nest-"],[class*=" nest-"]) a){color:var(--nest-teal)}
:where([data-phone-nest] :is([class^="nest-"],[class*=" nest-"]) svg){display:block}

/* ---------- frame ---------- */
:where([data-phone-nest]) .nest-phone{position:relative;overflow:hidden;display:flex;flex-direction:column;background:var(--nest-mist);color:var(--nest-ink);
  font:400 16px/1.4 var(--nest-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:where([data-phone-nest]) .nest-phone[data-nest-os="ios"]{width:440px;height:956px}
:where([data-phone-nest]) .nest-phone[data-nest-os="android"]{width:412px;height:915px}
:where([data-phone-nest]) .nest-safe-top{flex:none;height:54px}
:where([data-phone-nest]) [data-nest-os="android"] .nest-safe-top{height:24px}
:where([data-phone-nest]) .nest-safe-bottom{flex:none;height:34px}
:where([data-phone-nest]) [data-nest-os="android"] .nest-safe-bottom{height:16px}
:where([data-phone-nest]) .nest-ios-only{display:none}:where([data-phone-nest]) [data-nest-os="ios"] .nest-ios-only{display:block}
:where([data-phone-nest]) .nest-and-only{display:none}:where([data-phone-nest]) [data-nest-os="android"] .nest-and-only{display:block}
:where([data-phone-nest]) .nest-and-only.nest-inline,:where([data-phone-nest]) [data-nest-os="ios"] .nest-ios-only.nest-inline{display:inline-flex}
:where([data-phone-nest]) [data-nest-os="android"] .nest-ios-only.nest-inline{display:none}

/* ---------- top bar ---------- */
:where([data-phone-nest]) .nest-topbar{flex:none;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;height:44px;padding:0 6px}
:where([data-phone-nest]) .nest-topbar.nest-wide{grid-template-columns:minmax(0,1fr) auto;padding:0 18px 0 18px}
:where([data-phone-nest]) .nest-topbar .nest-title{text-align:center;font:700 17px/1.2 var(--nest-disp);font-stretch:110%;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-topbar .nest-trail{display:flex;justify-content:flex-end;align-items:center;gap:2px}
:where([data-phone-nest]) [data-nest-os="android"] .nest-topbar{height:64px;grid-template-columns:48px minmax(0,1fr) auto;padding:0 8px 0 4px}
:where([data-phone-nest]) [data-nest-os="android"] .nest-topbar.nest-wide{grid-template-columns:minmax(0,1fr) auto;padding:0 8px 0 16px}
:where([data-phone-nest]) [data-nest-os="android"] .nest-topbar .nest-title{text-align:left;font-size:22px;padding-left:4px}
:where([data-phone-nest]) .nest-topbar .nest-sub{display:block;font:500 11px/1 var(--nest-mono);color:var(--nest-muted);text-align:center;margin-top:3px;letter-spacing:0}
:where([data-phone-nest]) [data-nest-os="android"] .nest-topbar .nest-sub{text-align:left}
:where([data-phone-nest]) .nest-brand{display:inline-flex;align-items:center;gap:8px;color:var(--nest-teal)}
:where([data-phone-nest]) .nest-brand .nest-wm{font:750 20px/1 var(--nest-disp);font-stretch:118%;letter-spacing:.01em;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-brand svg{width:26px;height:26px}
:where([data-phone-nest]) .nest-wordmark-big{display:flex;align-items:center;gap:10px}
:where([data-phone-nest]) .nest-wordmark-big svg{width:34px;height:34px}
:where([data-phone-nest]) .nest-wordmark-big .nest-wm{font:750 26px/1 var(--nest-disp);font-stretch:118%;letter-spacing:.01em;color:var(--nest-ink)}
/* search mode */
:where([data-phone-nest]) .nest-searchbar{display:flex;align-items:center;gap:8px;padding:0 18px 8px}
:where([data-phone-nest]) .nest-searchbar .nest-box{flex:1;display:flex;align-items:center;gap:8px;height:40px;padding:0 10px;background:var(--nest-field);border:1px solid var(--nest-teal);border-radius:2px;box-shadow:0 0 0 1px var(--nest-teal)}
:where([data-phone-nest]) .nest-searchbar .nest-box>svg{width:18px;height:18px;color:var(--nest-muted);flex:none}
:where([data-phone-nest]) .nest-searchbar .nest-box input{flex:1;min-width:0;border:0;outline:0;background:none;font:400 16px var(--nest-text);color:var(--nest-ink);padding:0}
:where([data-phone-nest]) .nest-searchbar .nest-box .nest-clear{width:28px;height:28px;border:0;background:none;color:var(--nest-muted);display:flex;align-items:center;justify-content:center;padding:0}

/* ---------- instruction line ---------- */
:where([data-phone-nest]) .nest-instr{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:6px 18px 10px;font-size:14px;line-height:20px;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-instr .nest-status{flex:none;font:500 12px/20px var(--nest-mono);color:var(--nest-muted)}
:where([data-phone-nest]) .nest-instr.nest-strong{color:var(--nest-ink);font-weight:500}

/* ---------- survey tabs ---------- */
:where([data-phone-nest]) .nest-tabs{flex:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 18px;border-bottom:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-tabs.nest-n4{grid-template-columns:repeat(4,minmax(0,1fr))}
:where([data-phone-nest]) .nest-tabs button{height:42px;background:none;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;font:600 15px/1 var(--nest-text);color:var(--nest-muted);padding:0;white-space:nowrap}
:where([data-phone-nest]) .nest-tabs.nest-n4 button{font-size:14px}
:where([data-phone-nest]) .nest-tabs button[aria-selected="true"]{color:var(--nest-teal);border-bottom-color:var(--nest-teal)}

/* ---------- content ---------- */
:where([data-phone-nest]) .nest-content{flex:1;min-height:0;overflow:hidden;position:relative}
:where([data-phone-nest]) .nest-content>.nest-inner{display:flex;flex-direction:column;gap:14px;padding:12px 18px 28px}
:where([data-phone-nest]) .nest-content.nest-dim>.nest-inner{opacity:.85}
:where([data-phone-nest]) .nest-stack{display:flex;flex-direction:column;gap:14px}
:where([data-phone-nest]) .nest-stack.nest-tight{gap:8px}
:where([data-phone-nest]) .nest-hrow{display:flex;align-items:center;gap:8px}
:where([data-phone-nest]) .nest-hrow.nest-between{justify-content:space-between}
:where([data-phone-nest]) .nest-hrow.nest-end{justify-content:flex-end}
:where([data-phone-nest]) .nest-hrow.nest-wrap{flex-wrap:wrap}
:where([data-phone-nest]) .nest-spacer{flex:1}

/* type */
:where([data-phone-nest]) .nest-h1{font:750 30px/1.1 var(--nest-disp);font-stretch:118%;letter-spacing:-.015em;color:var(--nest-ink);margin:0}
:where([data-phone-nest]) .nest-h2{font:700 18px/1.25 var(--nest-disp);font-stretch:110%;letter-spacing:-.01em;color:var(--nest-ink);margin:0}
:where([data-phone-nest]) .nest-h3{font:600 15px/1.3 var(--nest-text);color:var(--nest-ink);margin:0}
:where([data-phone-nest]) .nest-eyebrow{font:600 12px/1 var(--nest-text);letter-spacing:.06em;text-transform:uppercase;color:var(--nest-muted);margin:0}
:where([data-phone-nest]) .nest-p{margin:0;font-size:15px;line-height:22px;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-p.nest-lead{font-size:16px;line-height:24px;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-small{margin:0;font-size:13px;line-height:18px;color:var(--nest-muted)}
:where([data-phone-nest]) .nest-tiny{margin:0;font-size:12px;line-height:16px;color:var(--nest-muted)}
:where([data-phone-nest]) .nest-mono{font-family:var(--nest-mono);font-weight:500}
:where([data-phone-nest]) .nest-ink{color:var(--nest-ink)} :where([data-phone-nest]) .nest-muted{color:var(--nest-muted)} :where([data-phone-nest]) .nest-teal{color:var(--nest-teal)}
:where([data-phone-nest]) .nest-link{color:var(--nest-teal);text-decoration:underline;text-underline-offset:2px}
:where([data-phone-nest]) .nest-center{text-align:center}

/* ---------- buttons ---------- */
:where([data-phone-nest]) .nest-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;font:600 15px/1 var(--nest-text);white-space:nowrap;padding:0 14px;height:36px;background:none;color:var(--nest-teal);text-decoration:none}
:where([data-phone-nest]) .nest-btn svg{width:18px;height:18px;flex:none}
:where([data-phone-nest]) .nest-btn.nest-primary{width:100%;height:52px;background:var(--nest-teal);color:#fff;font-size:17px}
:where([data-phone-nest]) .nest-btn.nest-primary svg{width:20px;height:20px}
:where([data-phone-nest]) .nest-btn.nest-primary.nest-danger{background:var(--nest-danger)}
:where([data-phone-nest]) .nest-btn.nest-primary.nest-dark{background:var(--nest-ink)}
:where([data-phone-nest]) .nest-btn.nest-primary[disabled],:where([data-phone-nest]) .nest-btn.nest-primary.nest-disabled{background:#8FB0AB;color:#fff}
:where([data-phone-nest]) .nest-btn.nest-primary.nest-busy{background:#8FB0AB}
:where([data-phone-nest]) .nest-btn.nest-secondary{background:var(--nest-notice);color:var(--nest-teal);font-size:14px;height:36px}
:where([data-phone-nest]) .nest-btn.nest-secondary.nest-full{width:100%;height:44px;font-size:15px}
:where([data-phone-nest]) .nest-btn.nest-outline{border:1px solid var(--nest-teal);color:var(--nest-teal);background:var(--nest-field);font-size:14px}
:where([data-phone-nest]) .nest-btn.nest-text{padding:0 8px;font-size:15px}
:where([data-phone-nest]) .nest-btn.nest-text.nest-sm{font-size:14px;height:32px}
:where([data-phone-nest]) .nest-btn.nest-text.nest-danger{color:var(--nest-danger)}
:where([data-phone-nest]) .nest-btn.nest-text.nest-muted{color:var(--nest-soft)}
:where([data-phone-nest]) .nest-btn.nest-icon{width:40px;height:40px;padding:0;color:var(--nest-teal)}
:where([data-phone-nest]) .nest-btn.nest-icon svg{width:22px;height:22px}
:where([data-phone-nest]) .nest-btn.nest-icon.nest-filled{background:var(--nest-notice)}
:where([data-phone-nest]) .nest-btn.nest-icon.nest-sm{width:32px;height:32px}:where([data-phone-nest]) .nest-btn.nest-icon.nest-sm svg{width:18px;height:18px}
:where([data-phone-nest]) .nest-btn.nest-icon.nest-mutedc{color:var(--nest-muted)}
:where([data-phone-nest]) .nest-btn.nest-chip{height:34px;padding:0 14px;border:1px solid var(--nest-line);background:var(--nest-field);color:var(--nest-ink);font-weight:600;font-size:14px}
:where([data-phone-nest]) .nest-btn.nest-chip[aria-pressed="true"]{background:var(--nest-teal);border-color:var(--nest-teal);color:#fff}
:where([data-phone-nest]) .nest-seg{display:inline-flex;gap:8px}
:where([data-phone-nest]) .nest-spinner{display:inline-block;vertical-align:middle;width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;flex:none;margin-right:8px}

/* ---------- bottom bar ---------- */
:where([data-phone-nest]) .nest-bottombar{flex:none;display:flex;flex-direction:column;gap:8px;padding:10px 18px 0;border-top:1px solid var(--nest-line);background:var(--nest-mist)}
:where([data-phone-nest]) .nest-bottombar.nest-plain{border-top:0}
:where([data-phone-nest]) .nest-bottombar .nest-aux{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px;font-size:13px;line-height:18px;color:var(--nest-muted)}
:where([data-phone-nest]) .nest-bottombar .nest-aux.nest-end{justify-content:flex-end}
:where([data-phone-nest]) .nest-bottombar .nest-aux.nest-center{justify-content:center}
:where([data-phone-nest]) .nest-bottombar .nest-err{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;background:var(--nest-danger-bg);border:1px solid #E3B9B4;border-radius:2px;font-size:13px;line-height:18px;color:var(--nest-danger)}
:where([data-phone-nest]) .nest-bottombar .nest-err svg{width:16px;height:16px;flex:none;margin-top:1px}
:where([data-phone-nest]) .nest-bottombar .nest-pair{display:flex;gap:10px;align-items:center}
:where([data-phone-nest]) .nest-bottombar .nest-pair .nest-btn.nest-primary{flex:1;width:auto}

/* ---------- tab bar ---------- */
:where([data-phone-nest]) .nest-tabbar{flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:50px;border-top:1px solid var(--nest-line);background:var(--nest-card)}
:where([data-phone-nest]) .nest-tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:none;border:0;font:500 10px/1 var(--nest-text);color:var(--nest-muted);padding:4px 0 0}
:where([data-phone-nest]) .nest-tabbar button svg{width:24px;height:24px}
:where([data-phone-nest]) .nest-tabbar button[aria-selected="true"]{color:var(--nest-teal)}
:where([data-phone-nest]) .nest-tabbar .nest-ind{display:flex;align-items:center;justify-content:center}
:where([data-phone-nest]) [data-nest-os="android"] .nest-tabbar{height:80px;border-top:0;background:var(--nest-notice)}
:where([data-phone-nest]) [data-nest-os="android"] .nest-tabbar button{font-size:12px;gap:4px;color:var(--nest-soft)}
:where([data-phone-nest]) [data-nest-os="android"] .nest-tabbar .nest-ind{width:64px;height:32px;border-radius:999px}
:where([data-phone-nest]) [data-nest-os="android"] .nest-tabbar button[aria-selected="true"] .nest-ind{background:rgba(31,92,91,.16)}
:where([data-phone-nest]) [data-nest-os="android"] .nest-tabbar button[aria-selected="true"]{color:var(--nest-teal);font-weight:600}
:where([data-phone-nest]) .nest-fab{position:absolute;right:16px;bottom:96px;height:56px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--nest-teal);color:#fff;font:600 15px var(--nest-text);display:inline-flex;align-items:center;gap:10px;box-shadow:0 6px 16px rgba(15,46,45,.28)}
:where([data-phone-nest]) .nest-fab svg{width:22px;height:22px}

/* ---------- cards, rows, disclosure ---------- */
:where([data-phone-nest]) .nest-card{background:var(--nest-card);border:1px solid var(--nest-line);border-radius:2px}
:where([data-phone-nest]) .nest-card.nest-pad{padding:14px}
:where([data-phone-nest]) .nest-card.nest-white{background:var(--nest-field)}
:where([data-phone-nest]) .nest-card>.nest-row+.nest-row,:where([data-phone-nest]) .nest-card>.nest-disc-wrap+.nest-row,:where([data-phone-nest]) .nest-card>.nest-row+.nest-disc-wrap,:where([data-phone-nest]) .nest-card>.nest-disc-wrap+.nest-disc-wrap,:where([data-phone-nest]) .nest-list>.nest-row+.nest-row{border-top:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-disc-row{display:flex;align-items:center;flex-direction:row-reverse;padding-right:0}
:where([data-phone-nest]) .nest-disc-row>.nest-btn{margin-right:6px}
:where([data-phone-nest]) .nest-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 14px;background:none;border:0;text-align:left;color:inherit}
:where([data-phone-nest]) .nest-row.nest-static{cursor:default}
:where([data-phone-nest]) .nest-row .nest-lead{flex:none;display:flex;align-items:center;justify-content:center}
:where([data-phone-nest]) .nest-row .nest-main{flex:1;min-width:0;background:none;border:0;padding:0;text-align:left;font:inherit;color:inherit;display:block}
:where([data-phone-nest]) .nest-row .nest-t{font:600 16px/1.3 var(--nest-text);color:var(--nest-ink);overflow:hidden;text-overflow:ellipsis}
:where([data-phone-nest]) .nest-row .nest-d{font-size:13px;line-height:18px;color:var(--nest-muted);margin-top:2px}
:where([data-phone-nest]) .nest-row .nest-d .nest-ok{color:var(--nest-norepair)}
:where([data-phone-nest]) .nest-row .nest-trail{flex:none;display:flex;align-items:center;gap:6px}
:where([data-phone-nest]) .nest-row .nest-chev{color:var(--nest-muted);flex:none}
:where([data-phone-nest]) .nest-row .nest-chev svg{width:18px;height:18px}
:where([data-phone-nest]) [data-nest-os="android"] .nest-row.nest-nav .nest-chev{display:none}
:where([data-phone-nest]) .nest-row.nest-sel{background:var(--nest-notice)}
/* disclosure row */
:where([data-phone-nest]) .nest-disc{display:flex;align-items:center;gap:12px;flex:1;min-width:0;width:100%;min-height:52px;padding:10px 14px;background:none;border:0;text-align:left;color:inherit}
:where([data-phone-nest]) .nest-disc .nest-main{flex:1;min-width:0}
:where([data-phone-nest]) .nest-disc .nest-t{font:600 16px/1.3 var(--nest-text);color:var(--nest-ink)}
:where([data-phone-nest]) .nest-disc .nest-d{font-size:13px;line-height:18px;color:var(--nest-muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where([data-phone-nest]) .nest-disc .nest-d.nest-wrapok{white-space:normal}
:where([data-phone-nest]) .nest-disc .nest-cnt{flex:none;font:500 13px var(--nest-text);color:var(--nest-muted)}
:where([data-phone-nest]) .nest-disc .nest-chev{color:var(--nest-muted);flex:none;transition:none}
:where([data-phone-nest]) .nest-disc .nest-chev svg{width:20px;height:20px}
:where([data-phone-nest]) .nest-disc[aria-expanded="true"] .nest-chev svg{transform:rotate(180deg)}
:where([data-phone-nest]) .nest-disc-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--nest-line);padding-top:12px}
:where([data-phone-nest]) .nest-group{display:flex;flex-direction:column;gap:8px}
:where([data-phone-nest]) .nest-group .nest-ghead{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;background:none;border:0;padding:6px 0;text-align:left}
:where([data-phone-nest]) .nest-group .nest-ghead .nest-h3{font-family:var(--nest-disp);font-stretch:110%;font-weight:700;font-size:16px}
:where([data-phone-nest]) .nest-group .nest-ghead .nest-cnt{font-size:13px;color:var(--nest-muted);display:inline-flex;align-items:center;gap:6px}
:where([data-phone-nest]) .nest-group .nest-ghead .nest-cnt svg{width:18px;height:18px;color:var(--nest-muted)}
:where([data-phone-nest]) .nest-group .nest-ghead[aria-expanded="true"] .nest-cnt svg{transform:rotate(180deg)}

/* ---------- tags & chips ---------- */
:where([data-phone-nest]) .nest-tag{display:inline-flex;align-items:center;height:22px;padding:0 7px;border:1px solid var(--nest-line);border-radius:2px;font:600 10.5px/1 var(--nest-text);letter-spacing:.07em;text-transform:uppercase;color:var(--nest-soft);background:var(--nest-card);white-space:nowrap}
:where([data-phone-nest]) .nest-tag.nest-ready{background:var(--nest-teal);border-color:var(--nest-teal);color:#fff}
:where([data-phone-nest]) .nest-tag.nest-sent{color:var(--nest-soft)}
:where([data-phone-nest]) .nest-tag.nest-draft{color:var(--nest-muted)}
:where([data-phone-nest]) .nest-tag.nest-status{text-transform:none;letter-spacing:0;font-size:12px;height:24px;padding:0 9px;background:var(--nest-notice);border-color:var(--nest-notice);color:var(--nest-teal);font-weight:600}
:where([data-phone-nest]) .nest-tag.nest-status.nest-warn{background:var(--nest-danger-bg);border-color:#E3B9B4;color:var(--nest-danger)}
:where([data-phone-nest]) .nest-pill-note{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:2px;background:var(--nest-notice);font:500 13px var(--nest-text);color:var(--nest-soft)}
:where([data-phone-nest]) .nest-pill-note.nest-warn{background:var(--nest-danger-bg);color:var(--nest-danger)}
:where([data-phone-nest]) .nest-pill-note svg{width:14px;height:14px}
:where([data-phone-nest]) .nest-rc{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:2px;font:700 13px/1 var(--nest-text);color:#fff;flex:none}
:where([data-phone-nest]) .nest-rc.nest-r3{background:var(--nest-urgent)}
:where([data-phone-nest]) .nest-rc.nest-r2{background:var(--nest-repair);color:var(--nest-ink)}
:where([data-phone-nest]) .nest-rc.nest-r1{background:var(--nest-norepair)}
:where([data-phone-nest]) .nest-rc.nest-ni{background:var(--nest-ni);font-size:10px;letter-spacing:.02em}
:where([data-phone-nest]) .nest-rc.nest-todo{background:transparent;border:1.5px dashed #AEB7B2}
:where([data-phone-nest]) .nest-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
:where([data-phone-nest]) .nest-dot.nest-r3{background:var(--nest-urgent)}:where([data-phone-nest]) .nest-dot.nest-r2{background:var(--nest-repair)}:where([data-phone-nest]) .nest-dot.nest-r1{background:var(--nest-norepair-dot)}:where([data-phone-nest]) .nest-dot.nest-ni{background:var(--nest-ni)}

/* ---------- rating chooser ---------- */
:where([data-phone-nest]) .nest-ratings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
:where([data-phone-nest]) .nest-ratings button{height:44px;border-radius:999px;border:1px solid var(--nest-line);background:var(--nest-field);font:600 15px var(--nest-text);color:var(--nest-ink);display:flex;align-items:center;justify-content:center;gap:8px;padding:0 10px}
:where([data-phone-nest]) .nest-ratings button .nest-n{font-family:var(--nest-mono);font-weight:500;font-size:14px}
:where([data-phone-nest]) .nest-ratings button[aria-pressed="true"]{border-color:transparent;color:#fff}
:where([data-phone-nest]) .nest-ratings button[aria-pressed="true"] .nest-dot{background:rgba(255,255,255,.85)}
:where([data-phone-nest]) .nest-ratings button[aria-pressed="true"].nest-r3{background:var(--nest-urgent)}
:where([data-phone-nest]) .nest-ratings button[aria-pressed="true"].nest-r2{background:var(--nest-repair);color:var(--nest-ink)}
:where([data-phone-nest]) .nest-ratings button[aria-pressed="true"].nest-r2 .nest-dot{background:rgba(31,42,51,.55)}
:where([data-phone-nest]) .nest-ratings button[aria-pressed="true"].nest-r1{background:var(--nest-norepair)}
:where([data-phone-nest]) .nest-ratings button[aria-pressed="true"].nest-ni{background:var(--nest-ni)}
:where([data-phone-nest]) .nest-rating-desc{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:18px;color:var(--nest-muted);min-height:18px}
:where([data-phone-nest]) .nest-rating-desc b{color:var(--nest-soft);font-weight:600}

/* ---------- progress ---------- */
:where([data-phone-nest]) .nest-progress{display:flex;flex-direction:column;gap:6px}
:where([data-phone-nest]) .nest-progress .nest-bar{height:4px;background:#D6DDD8;border-radius:2px;overflow:hidden}
:where([data-phone-nest]) .nest-progress .nest-bar i{display:block;height:100%;background:var(--nest-teal)}
:where([data-phone-nest]) .nest-progress .nest-cnt{font-size:13px;line-height:18px;color:var(--nest-muted);display:flex;flex-wrap:wrap;gap:4px 10px}
:where([data-phone-nest]) .nest-progress .nest-cnt b{color:var(--nest-soft);font-weight:600}

/* ---------- fields ---------- */
:where([data-phone-nest]) .nest-field{display:flex;flex-direction:column;gap:6px}
:where([data-phone-nest]) .nest-field>label,:where([data-phone-nest]) .nest-field>.nest-lbl{font:600 13px/1.2 var(--nest-text);color:var(--nest-soft);display:flex;gap:6px;align-items:baseline}
:where([data-phone-nest]) .nest-field .nest-opt{font-weight:400;color:var(--nest-muted)}
:where([data-phone-nest]) .nest-box{position:relative;display:flex;align-items:center;gap:8px;min-height:48px;background:var(--nest-field);border:1px solid var(--nest-line);border-radius:2px;padding:0 12px;font-size:16px;line-height:1.35;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-box input,:where([data-phone-nest]) .nest-box textarea{flex:1;min-width:0;border:0;outline:0;background:none;font:400 16px/1.35 var(--nest-text);color:var(--nest-ink);padding:0;margin:0;resize:none}
:where([data-phone-nest]) .nest-box input::placeholder,:where([data-phone-nest]) .nest-box textarea::placeholder,:where([data-phone-nest]) .nest-box .nest-ph{color:var(--nest-faint)}
:where([data-phone-nest]) .nest-box.nest-focus{border-color:var(--nest-teal);box-shadow:0 0 0 1px var(--nest-teal)}
:where([data-phone-nest]) .nest-box.nest-error{border-color:var(--nest-danger);box-shadow:0 0 0 1px var(--nest-danger)}
:where([data-phone-nest]) .nest-box.nest-ro{background:var(--nest-card)}
:where([data-phone-nest]) .nest-box .nest-mono{font-family:var(--nest-mono);font-weight:500;font-size:15px}
:where([data-phone-nest]) .nest-box .nest-ic{flex:none;color:var(--nest-muted);display:flex}
:where([data-phone-nest]) .nest-box .nest-ic svg{width:20px;height:20px}
:where([data-phone-nest]) .nest-box.nest-area{align-items:flex-start;padding:12px 56px 12px 12px;min-height:88px}
:where([data-phone-nest]) .nest-box.nest-area.nest-short{min-height:64px}
:where([data-phone-nest]) .nest-box.nest-area .nest-mic{position:absolute;right:8px;bottom:8px}
:where([data-phone-nest]) .nest-mic{width:36px;height:36px;border-radius:999px;background:var(--nest-notice);color:var(--nest-teal);display:inline-flex;align-items:center;justify-content:center;border:0;padding:0;flex:none}
:where([data-phone-nest]) .nest-mic svg{width:18px;height:18px}
:where([data-phone-nest]) .nest-mic.nest-live{background:var(--nest-teal);color:#fff}
:where([data-phone-nest]) .nest-help{margin:0;font-size:12px;line-height:16px;color:var(--nest-muted)}
:where([data-phone-nest]) .nest-err{margin:0;display:flex;gap:6px;align-items:flex-start;font-size:13px;line-height:18px;color:var(--nest-danger)}
:where([data-phone-nest]) .nest-err svg{width:16px;height:16px;flex:none;margin-top:1px}
:where([data-phone-nest]) .nest-select .nest-box{justify-content:space-between;cursor:pointer}
:where([data-phone-nest]) .nest-select .nest-box .nest-ic svg{width:18px;height:18px}
:where([data-phone-nest]) .nest-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where([data-phone-nest]) .nest-check{display:flex;gap:12px;align-items:flex-start;background:none;border:0;padding:0;text-align:left;font-size:15px;line-height:22px;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-check .nest-bx{flex:none;width:24px;height:24px;border:1.5px solid var(--nest-muted);border-radius:2px;margin-top:-1px;display:flex;align-items:center;justify-content:center;color:#fff;background:var(--nest-field)}
:where([data-phone-nest]) [data-nest-os="ios"] .nest-check .nest-bx{border-radius:50%}
:where([data-phone-nest]) .nest-check .nest-bx.nest-on{background:var(--nest-teal);border-color:var(--nest-teal)}
:where([data-phone-nest]) .nest-check .nest-bx.nest-error{border-color:var(--nest-danger);box-shadow:0 0 0 1px var(--nest-danger)}
:where([data-phone-nest]) .nest-check .nest-bx svg{width:14px;height:14px}
:where([data-phone-nest]) .nest-radio{display:flex;gap:12px;align-items:flex-start;width:100%;background:none;border:0;padding:12px 14px;text-align:left}
:where([data-phone-nest]) .nest-radio .nest-rb{flex:none;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--nest-muted);margin-top:1px;display:flex;align-items:center;justify-content:center;background:var(--nest-field)}
:where([data-phone-nest]) .nest-radio .nest-rb.nest-on{border-color:var(--nest-teal)}
:where([data-phone-nest]) .nest-radio .nest-rb.nest-on i{width:12px;height:12px;border-radius:50%;background:var(--nest-teal)}
:where([data-phone-nest]) .nest-radio .nest-rb.nest-error{border-color:var(--nest-danger);box-shadow:0 0 0 1px var(--nest-danger)}
:where([data-phone-nest]) .nest-radio .nest-main{flex:1;min-width:0}
:where([data-phone-nest]) .nest-radio .nest-t{font:600 16px/1.3 var(--nest-text);color:var(--nest-ink)}
:where([data-phone-nest]) .nest-radio .nest-price{font:500 15px/1.4 var(--nest-mono);color:var(--nest-ink);margin-top:2px}
:where([data-phone-nest]) .nest-radio .nest-d{font-size:13px;line-height:18px;color:var(--nest-muted);margin-top:2px}
:where([data-phone-nest]) .nest-radio.nest-sel{background:var(--nest-notice)}
:where([data-phone-nest]) .nest-toggle{flex:none;width:46px;height:28px;border-radius:999px;background:#B9C3BD;position:relative}
:where([data-phone-nest]) .nest-toggle.nest-on{background:var(--nest-teal)}
:where([data-phone-nest]) .nest-toggle i{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff}
:where([data-phone-nest]) .nest-toggle.nest-on i{left:21px}

/* ---------- notices ---------- */
:where([data-phone-nest]) .nest-notice{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;background:var(--nest-notice);border-radius:2px;font-size:14px;line-height:20px;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-notice svg{width:18px;height:18px;flex:none;margin-top:1px;color:var(--nest-teal)}
:where([data-phone-nest]) .nest-notice.nest-warn{background:var(--nest-danger-bg);color:var(--nest-danger)}
:where([data-phone-nest]) .nest-notice.nest-warn svg{color:var(--nest-danger)}
:where([data-phone-nest]) .nest-notice.nest-quiet{background:none;padding:0}
:where([data-phone-nest]) .nest-notice .nest-lnk{color:var(--nest-teal);text-decoration:underline;text-underline-offset:2px;font-weight:500}

/* ---------- sheets, dialogs ---------- */
:where([data-phone-nest]) .nest-scrim{position:absolute;inset:0;background:rgba(15,46,45,.42)}
:where([data-phone-nest]) .nest-sheet{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:12px;padding:8px 18px 0;background:var(--nest-card);border-top:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-sheet .nest-grab{width:36px;height:4px;border-radius:2px;background:#B9C3BD;margin:0 auto 2px}
:where([data-phone-nest]) .nest-sheet .nest-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
:where([data-phone-nest]) .nest-sheet .nest-head .nest-title{font:700 22px/1.15 var(--nest-disp);font-stretch:110%;letter-spacing:-.01em;color:var(--nest-ink);margin:0}
:where([data-phone-nest]) .nest-sheet .nest-head .nest-crumb{font-size:13px;line-height:18px;color:var(--nest-muted);margin-top:4px}
:where([data-phone-nest]) .nest-sheet .nest-instr{padding:0;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-sheet .nest-actions{display:flex;flex-direction:column;gap:2px;padding-top:4px;align-items:center}
:where([data-phone-nest]) .nest-sheet .nest-actions .nest-btn.nest-text{height:44px}
:where([data-phone-nest]) .nest-sheet .nest-safe{height:34px;flex:none}
:where([data-phone-nest]) [data-nest-os="android"] .nest-sheet .nest-safe{height:16px}
:where([data-phone-nest]) .nest-sheet .nest-list .nest-row{padding-left:0;padding-right:0}
/* iOS action sheet */
:where([data-phone-nest]) .nest-asheet{position:absolute;left:10px;right:10px;bottom:10px;display:flex;flex-direction:column;gap:8px}
:where([data-phone-nest]) .nest-asheet .nest-grp{background:var(--nest-card);border-radius:2px;overflow:hidden;border:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-asheet .nest-msg{padding:14px 16px;text-align:center;font-size:13px;line-height:18px;color:var(--nest-muted);border-bottom:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-asheet .nest-act{display:block;width:100%;height:56px;background:none;border:0;font:400 20px var(--nest-text);color:var(--nest-teal)}
:where([data-phone-nest]) .nest-asheet .nest-act.nest-danger{color:var(--nest-danger)}
:where([data-phone-nest]) .nest-asheet .nest-act.nest-bold{font-weight:600}
:where([data-phone-nest]) .nest-asheet .nest-safe{height:24px}
/* Android dialog */
:where([data-phone-nest]) .nest-dialog{position:absolute;left:26px;right:26px;top:50%;transform:translateY(-50%);background:var(--nest-card);border-radius:2px;padding:24px;display:flex;flex-direction:column;gap:14px;box-shadow:0 10px 30px rgba(15,46,45,.3)}
:where([data-phone-nest]) .nest-dialog .nest-title{font:700 22px/1.2 var(--nest-disp);font-stretch:110%;margin:0}
:where([data-phone-nest]) .nest-dialog .nest-body{margin:0;font-size:14px;line-height:20px;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-dialog .nest-actions{display:flex;justify-content:flex-end;gap:4px;padding-top:6px}

/* ---------- plan, map, photos ---------- */
:where([data-phone-nest]) .nest-plan{position:relative;background:var(--nest-card);border:1px solid var(--nest-line);border-radius:2px;overflow:hidden}
:where([data-phone-nest]) .nest-plan svg.nest-map{width:100%;height:auto;display:block}
:where([data-phone-nest]) .nest-plan .nest-zoom{position:absolute;right:8px;bottom:8px;display:flex;flex-direction:column;gap:6px}
:where([data-phone-nest]) .nest-plan .nest-zoom .nest-btn{width:36px;height:36px;background:var(--nest-field);border:1px solid var(--nest-line);color:var(--nest-teal);box-shadow:0 2px 6px rgba(15,46,45,.12)}
:where([data-phone-nest]) .nest-plan .nest-hint{position:absolute;left:8px;bottom:8px;background:rgba(248,249,246,.95);border:1px solid var(--nest-line);border-radius:2px;padding:4px 8px;font-size:12px;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-plan .nest-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:200px;color:var(--nest-muted);text-align:center;padding:16px}
:where([data-phone-nest]) .nest-plan .nest-empty svg{width:36px;height:36px;color:#AEB7B2}
:where([data-phone-nest]) .nest-plan .nest-empty p{margin:0;font-size:13px;line-height:18px}
:where([data-phone-nest]) .nest-plan .nest-pin{position:absolute;width:26px;height:26px;border-radius:50%;background:var(--nest-teal);color:#fff;font:700 13px/1 var(--nest-text);display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 1px 4px rgba(15,46,45,.3);transform:translate(-50%,-50%);padding:0}
:where([data-phone-nest]) .nest-plan .nest-pin.nest-sel{background:var(--nest-signal);color:var(--nest-deep);width:32px;height:32px;border-color:var(--nest-deep)}
:where([data-phone-nest]) .nest-mapbox{position:relative;border:1px solid var(--nest-line);border-radius:2px;overflow:hidden;background:#D9E0D8}
:where([data-phone-nest]) .nest-mapbox svg{width:100%;height:auto;display:block}
:where([data-phone-nest]) .nest-mapbox .nest-cross{position:absolute;left:50%;top:50%;width:28px;height:28px;transform:translate(-50%,-50%);color:#fff;filter:drop-shadow(0 0 2px rgba(0,0,0,.6))}
:where([data-phone-nest]) .nest-mapbox .nest-attr{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 8px;background:rgba(248,249,246,.92);font-size:10px;line-height:14px;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-mapbox .nest-attr .nest-btn{width:22px;height:22px;color:var(--nest-soft)}
:where([data-phone-nest]) .nest-mapbox .nest-attr .nest-btn svg{width:16px;height:16px}
:where([data-phone-nest]) .nest-mapbox .nest-fail{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:180px;color:var(--nest-muted);text-align:center;padding:16px}
:where([data-phone-nest]) .nest-mapbox .nest-fail svg{width:32px;height:32px;color:#AEB7B2}
:where([data-phone-nest]) .nest-mapbox .nest-fail p{margin:0;font-size:13px;line-height:18px}
:where([data-phone-nest]) .nest-thumb{flex:none;width:72px;height:72px;border-radius:2px;overflow:hidden;background:#6B7570;border:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-thumb svg{width:100%;height:100%;display:block}
:where([data-phone-nest]) .nest-thumb.nest-lg{width:100%;height:170px}
:where([data-phone-nest]) .nest-thumb.nest-sq{width:56px;height:56px}
:where([data-phone-nest]) .nest-photo-card{display:flex;gap:12px;align-items:flex-start}
:where([data-phone-nest]) .nest-photo-card .nest-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
:where([data-phone-nest]) .nest-photo-card .nest-main .nest-hrow.nest-between{flex-wrap:wrap;row-gap:2px}
:where([data-phone-nest]) .nest-photo-card .nest-main .nest-hrow.nest-between>.nest-small{white-space:nowrap;flex:1}
:where([data-phone-nest]) .nest-suggest{background:var(--nest-field);border:1px solid var(--nest-line);border-top:0;border-radius:0 0 2px 2px;margin-top:-6px}
:where([data-phone-nest]) .nest-suggest button{display:block;width:100%;text-align:left;background:none;border:0;padding:12px 12px;font-size:15px;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-suggest button+button{border-top:1px solid var(--nest-line)}

/* ---------- choice cards ---------- */
:where([data-phone-nest]) .nest-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
:where([data-phone-nest]) .nest-choice button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px;min-height:116px;background:var(--nest-field);border:1px solid var(--nest-line);border-radius:2px;text-align:left}
:where([data-phone-nest]) .nest-choice button[aria-checked="true"]{border-color:var(--nest-teal);box-shadow:inset 0 0 0 1px var(--nest-teal);background:var(--nest-notice)}
:where([data-phone-nest]) .nest-choice .nest-ic{color:var(--nest-teal);margin-bottom:8px}
:where([data-phone-nest]) .nest-choice .nest-ic svg{width:26px;height:26px}
:where([data-phone-nest]) .nest-choice .nest-t{font:600 16px/1.3 var(--nest-text);color:var(--nest-ink)}
:where([data-phone-nest]) .nest-choice .nest-d{font-size:13px;line-height:18px;color:var(--nest-muted)}

/* ---------- misc ---------- */
:where([data-phone-nest]) .nest-divider{height:1px;background:var(--nest-line)}
:where([data-phone-nest]) .nest-kv{display:flex;flex-direction:column;gap:4px}
:where([data-phone-nest]) .nest-kv .nest-k{font-size:12px;line-height:16px;color:var(--nest-muted)}
:where([data-phone-nest]) .nest-kv .nest-v{font-size:15px;line-height:20px;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-status-block{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
:where([data-phone-nest]) .nest-status-block .nest-icon{width:56px;height:56px;border-radius:50%;background:var(--nest-notice);color:var(--nest-teal);display:flex;align-items:center;justify-content:center}
:where([data-phone-nest]) .nest-status-block .nest-icon svg{width:28px;height:28px}
:where([data-phone-nest]) .nest-status-block .nest-icon.nest-warn{background:var(--nest-danger-bg);color:var(--nest-danger)}
:where([data-phone-nest]) .nest-report-tile{display:flex;align-items:center;gap:12px;padding:12px 14px}
:where([data-phone-nest]) .nest-report-tile .nest-mk{width:44px;height:44px;border-radius:2px;background:var(--nest-deep);display:flex;align-items:center;justify-content:center}
:where([data-phone-nest]) .nest-report-tile .nest-mk svg{width:28px;height:28px}
:where([data-phone-nest]) .nest-linkrow{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;line-height:20px}
:where([data-phone-nest]) .nest-linkrow a{color:var(--nest-teal);text-decoration:underline;text-underline-offset:2px}
:where([data-phone-nest]) .nest-linkrow .nest-sep{color:var(--nest-line)}
:where([data-phone-nest]) .nest-step{font:500 12px/1 var(--nest-mono);color:var(--nest-muted)}
:where([data-phone-nest]) .nest-plan-choice .nest-radio{padding:14px}
:where([data-phone-nest]) .nest-plan-choice .nest-radio+.nest-radio{border-top:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-layer{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0}
:where([data-phone-nest]) .nest-layer+.nest-layer{border-top:1px solid var(--nest-line)}
:where([data-phone-nest]) .nest-layer .nest-k{font:500 12px/1 var(--nest-mono);color:var(--nest-muted)}
:where([data-phone-nest]) .nest-layer .nest-v{font-size:15px;color:var(--nest-ink)}
:where([data-phone-nest]) .nest-layer .nest-v .nest-mm{font:500 13px var(--nest-mono);color:var(--nest-muted)}
:where([data-phone-nest]) .nest-code-boxes{display:flex;gap:8px}
:where([data-phone-nest]) .nest-code-boxes span{flex:1;height:52px;border:1px solid var(--nest-line);border-radius:2px;background:var(--nest-field);display:flex;align-items:center;justify-content:center;font:500 22px var(--nest-mono);color:var(--nest-ink)}
:where([data-phone-nest]) .nest-code-boxes span.nest-focus{border-color:var(--nest-teal);box-shadow:0 0 0 1px var(--nest-teal)}
:where([data-phone-nest]) .nest-hero-wm{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
:where([data-phone-nest]) .nest-deleted-head{background:var(--nest-deep);color:#F8F9F6;padding:0 18px;height:52px;display:flex;align-items:center}
:where([data-phone-nest]) .nest-deleted-head .nest-wm{font:750 20px/1 var(--nest-disp);font-stretch:118%;color:#F8F9F6;letter-spacing:.01em}
/* ---- END generated from reference/sn.css ---- */

/* ===================== Part 2: hand-written bridge (only under the switch) ===================== */

/* Retire the Flow teal (#166052) and the old dashboard teal (#1e3b38): today's screens pick up the brand Teal. */
html[data-phone-nest] {
  --flow-accent: #1F5C5B;
  --flow-ring: #1F5C5B;
  --brand: #1F5C5B;
  --accent: #1F5C5B;
  --accent-hover: #0F2E2D;
  --chip-active-bg: #1F5C5B;
  --sn-teal: #1F5C5B;
}
html[data-phone-nest] .roof-pin,
html[data-phone-nest] .item-plan-pin,
html[data-phone-nest] .item-plan-dot { background: #1F5C5B; }
html[data-phone-nest] .site-live-label { stroke: #1F5C5B; }

/* 44 pt touch targets (HANDOVER rule 11): small pills, icon buttons, tabs, group heads, tick boxes, row buttons and the
   microphone keep their drawn size, with an invisible hit area of at least 44 x 44 centred on them. :where() adds no
   specificity, so a piece that sn.css positions (the floating button, plan pins, the microphone in a text box) keeps it. */
:where([data-phone-nest]) :where(.nest-btn, .nest-mic, .nest-searchbar .nest-clear, .nest-pin, .nest-tabs button, .nest-ghead, .nest-check, .nest-row .nest-main) { position: relative; }
:where([data-phone-nest]) :where(.nest-btn, .nest-mic, .nest-searchbar .nest-clear, .nest-pin, .nest-fab, .nest-tabs button, .nest-ghead, .nest-check, .nest-row .nest-main)::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}

/* Overlays opened by assets/phone-nest.js (confirm and sheet): over the whole screen in the app, over the frame in a
   gallery frame. Named nest-overlay, never nest-layer: sn.css's .layer (now .nest-layer) is a core sample's layer row. */
:where([data-phone-nest]) .nest-overlay { position: fixed; inset: 0; z-index: 1000; }
:where([data-phone-nest]) .nest-phone > .nest-overlay { position: absolute; }
:where([data-phone-nest]) .nest-disc-body[hidden], :where([data-phone-nest]) .nest-group [hidden] { display: none; }

/* ===================== Part 3: Home 08-14 and the New survey sheet 15-17 (#883 PR 3) ===================== */
/* Platform chrome (HANDOVER rule 12) keys on the one platform marker the shared pieces use, [data-nest-os] on an element
   inside html[data-phone-nest] (the gallery frame; app-wide in the app from #885), never on a per-screen marker.
   Today's Home and New survey markup (phone.html, phone.js, phone-flow.js), laid out and styled as the redesign under the
   switch. Values from reference/sn.css (the generated part 1 above); same controls, same calls. The .ph-nest-only pieces
   (brand, icons, instruction lines, step counter, clear search) are hidden without the switch. */
html:not([data-phone-nest]) .ph-nest-only { display: none !important; }
html[data-phone-nest][data-brand][data-app-design="flow"] {
  --nest-teal:#1F5C5B; --nest-deep:#0F2E2D; --nest-mist:#EAEEEC; --nest-card:#F8F9F6; --nest-field:#FFFFFF; --nest-line:#C9CFC9;
  --nest-notice:#E3EDEA; --nest-ink:#1F2A33; --nest-soft:#3B4A47; --nest-muted:#5D6A70; --nest-danger:#A83232; --nest-danger-bg:#FBF1EF;
  --nest-disp:"Archivo","IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --nest-text:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --nest-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --nest-tabbar: 50px; --nest-safe-bottom: max(34px, env(safe-area-inset-bottom, 0px));
}
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] { --nest-tabbar: 80px; --nest-safe-bottom: max(16px, env(safe-area-inset-bottom, 0px)); }
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"],
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"] body { background: var(--nest-mist); }

/* ---- top bar: mark and wordmark left, search right (44 px iPhone, 64 px Android) ---- */
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"] .ph-top {
  min-height: calc(44px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 18px 0; align-items: center;
  background: var(--nest-mist); color: var(--nest-ink);
}
/* Android's drawn edges (16 px, search 8 px) on a phone; wider than a phone the mark and search line up with the list in the
   centred column, as on iPhone (#883 switch-on polish: this rule is more specific than the column rule below, so it carries the
   column too) */
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"] [data-nest-os="android"] .ph-top { min-height: calc(64px + env(safe-area-inset-top, 0px)); padding-left: max(16px, calc((100vw - 560px) / 2 + 18px)); padding-right: max(8px, calc((100vw - 560px) / 2 + 18px)); }
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"] .ph-top .ph-flow-wordmark,
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"] .ph-top #title { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-nest-brand { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"] .ph-nest-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--nest-teal); }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-nest-brand svg { display: block; width: 26px; height: 26px; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-nest-wm { font: 750 20px/1 var(--nest-disp); font-stretch: 118%; letter-spacing: .01em; color: var(--nest-ink); }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-open {
  position: fixed; z-index: 11; top: calc(env(safe-area-inset-top, 0px) + 2px); right: max(18px, calc((100vw - 560px) / 2 + 18px)); float: none; margin: 0;
  width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--nest-teal);
  font-size: 0; display: flex; align-items: center; justify-content: center;
}
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] #survey-search-open { top: calc(env(safe-area-inset-top, 0px) + 12px); right: max(8px, calc((100vw - 560px) / 2 + 18px)); }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-open[hidden],
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-open[aria-expanded="true"] { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-open svg { width: 22px; height: 22px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-open::after { content: ""; position: absolute; inset: -2px; }

/* ---- the Home screen: title with the free-reports tag, one instruction line, then the list ---- */
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-main:has(> #home:not([hidden])) { max-width: 560px; margin: 0 auto; padding: 0 18px; }
/* wider than a phone (tablet, desktop browser): Home stays one centred 560 px column, as Flow keeps it; the top bar's brand and
   search line up with the list inside it, 18 px in as on a phone (#883 switch-on polish), and the pinned button with the column
   (the tab bar is capped at 736 px, as in Flow). max() keeps phones at 18 px (acceptance on #886, desktop 1280 x 800) */
html[data-phone-nest][data-brand][data-app-design="flow"][data-phone-screen="home"] .ph-top { padding-left: max(18px, calc((100vw - 560px) / 2 + 18px)); padding-right: max(18px, calc((100vw - 560px) / 2 + 18px)); }

html[data-phone-nest][data-brand][data-app-design="flow"] #home:not([hidden]) {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 0;
  padding: 12px 0 calc(var(--nest-tabbar) + var(--nest-safe-bottom) + 90px);
  font: 400 16px/1.4 var(--nest-text); color: var(--nest-ink);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > * { flex: 0 0 100%; min-width: 0; order: 10; margin: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #survey-search-open { flex: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #survey-search-box { order: 1; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > h1 {
  order: 2; flex: 1 1 auto; width: auto; margin: 0; font: 750 30px/1.1 var(--nest-disp); font-stretch: 118%; letter-spacing: -.015em; color: var(--nest-ink);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #ai-count-home {
  order: 3; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 2px;
  background: var(--nest-notice); font: 500 13px/1 var(--nest-text); color: var(--nest-soft); margin: 0;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #ai-count-home[hidden] { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #ai-count-home svg { width: 14px; height: 14px; flex: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #ai-count-home.ph-nest-warn { background: var(--nest-danger-bg); color: var(--nest-danger); }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > .ph-nest-instr { order: 4; margin: 28px 0 14px; padding: 0; font-size: 14px; line-height: 20px; color: var(--nest-soft); }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(.ph-flow-only.ph-lead, .ph-home-existing-intro) { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(#home-offline, #notice, #home-details, #payment-home, #photo-location-setup, #flow-create-banner) { order: 5; margin-top: 14px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #my-buildings-open { order: 6; margin-top: 14px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #surveys { order: 7; margin-top: 14px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > [hidden],
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #notice:empty { display: none; }

/* notices: no signal (13), the general line, details and payment (quiet notice, 18 px icon) */
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(#home-offline, #notice, #home-details, #payment-home, #flow-create-banner) {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 0; border-radius: 2px; box-shadow: none;
  background: var(--nest-notice); color: var(--nest-soft); font: 400 14px/20px var(--nest-text);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #home-offline { display: block; position: relative; padding-left: 40px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #home-offline[hidden] { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #home-offline svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--nest-teal); }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(#home-details, #payment-home) { display: block; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(#home-details, #payment-home)[hidden] { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home .ph-linkbtn {
  min-height: 0; padding: 0; border: 0; background: none; color: var(--nest-teal); font: 500 14px/20px var(--nest-text);
  text-decoration: underline; text-underline-offset: 2px; position: relative;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home .ph-linkbtn::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #photo-location-setup {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #photo-location-setup[hidden] { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #photo-location-setup h2 { margin: 0; font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-brand][data-app-design="flow"] #photo-location-setup .ph-small { margin: 0; font-size: 13px; line-height: 18px; color: var(--nest-muted); }
html[data-phone-nest][data-brand][data-app-design="flow"] #home :is(#photo-location-allow, #my-buildings-open, #flow-create-banner .ph-secondary, #surveys .ph-secondary) {
  width: auto; min-height: 0; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; box-shadow: none;
  background: var(--nest-notice); color: var(--nest-teal); font: 600 14px/1 var(--nest-text); position: relative;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #my-buildings-open { flex: none; justify-self: start; }
/* #1230: Progress reports and Reports (the progress lane's two entries on this screen) sit under the survey list as two rows of one
   card, as Account's rows: title on the left, the grey chevron on iPhone (none on Android). They were loose buttons above and below
   the list. Each is the lane's own button; only its place and look change. */
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(#progress-reports-open, #progress-written-reports) {
  order: 8; flex: 0 0 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; height: auto; min-height: 52px !important; margin: 0; padding: 10px 14px; border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none;
  background: var(--nest-card); color: var(--nest-ink); font: 600 16px/1.3 var(--nest-text); text-align: left; text-decoration: none;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #progress-reports-open { margin-top: 24px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #progress-written-reports { order: 9; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #progress-reports-open + #progress-written-reports,
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #progress-reports-open ~ #progress-written-reports { margin-top: -1px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(#progress-reports-open, #progress-written-reports)::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--nest-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
html[data-phone-nest][data-brand][data-app-design="flow"][data-nest-os="android"] #home > :is(#progress-reports-open, #progress-written-reports)::after { content: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > :is(#progress-reports-open, #progress-written-reports):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home :is(#photo-location-allow, #my-buildings-open, #flow-create-banner .ph-secondary, #surveys .ph-secondary)::after { content: ""; position: absolute; inset: -4px 0; }

/* ---- the list: eyebrow labels and cards of rows (09); tags; the draft's ⋯; chevrons on iPhone only ---- */
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys { display: flex; flex-direction: column; gap: 14px; border: 0; padding: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-home-group { display: flex; flex-direction: column; gap: 8px; margin: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-home-group h2 {
  margin: 0; font: 600 12px/1 var(--nest-text); letter-spacing: .06em; text-transform: uppercase; color: var(--nest-muted);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-home-rows {
  display: block; padding: 0; margin: 0; overflow: visible; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-home-rows > :is(.ph-item, .ph-survey-row) + :is(.ph-item, .ph-survey-row) { border-top: 1px solid var(--nest-line); }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-survey-row { display: flex; align-items: center; background: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-survey-row.ph-nest-sel,
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-survey-row.ph-nest-sel > .ph-item { background: var(--nest-notice); }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-survey-row > :is(.ph-linkbtn, .ph-block) { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-item {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; width: 100%; min-height: 56px; margin: 0; padding: 10px 14px;
  background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left; color: var(--nest-ink); font: 400 16px/1.4 var(--nest-text);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-survey-row > .ph-item { padding-right: 6px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-item > div { flex: 1; min-width: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-item b { display: block; font: 600 16px/1.3 var(--nest-text); color: var(--nest-ink); overflow: hidden; text-overflow: ellipsis; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-item small { display: inline; margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-item b + small { display: inline-block; margin-top: 2px; }
/* the last-edit date stays (nothing removed), on the detail line in IBM Plex Mono */
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-item .ph-survey-date { display: block; margin: 0; font: 400 12px/18px var(--nest-mono); color: var(--nest-muted); white-space: nowrap; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-item .ph-strip { border-radius: 0 !important; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-tag {
  display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 7px; margin: 0; border: 1px solid var(--nest-line); border-radius: 2px;
  font: 600 10.5px/1 var(--nest-text); letter-spacing: .07em; text-transform: uppercase; color: var(--nest-muted); background: var(--nest-card);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-tag::before { content: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-tag.sent { color: var(--nest-soft); background: var(--nest-card); border-color: var(--nest-line); }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-tag.ready { color: #fff; background: var(--nest-teal); border-color: var(--nest-teal); }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-tag.refused { color: var(--nest-danger); background: var(--nest-danger-bg); border-color: #E3B9B4; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-go {
  flex: none; display: block; width: 18px; height: 18px; margin: 0; font-size: 0; line-height: 0; color: var(--nest-muted);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-go svg { display: block; width: 18px; height: 18px; }
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] #surveys .ph-go,
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-survey-row .ph-go { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-row-more {
  position: relative; flex: none; display: block; width: 32px; height: 32px; min-width: 0; min-height: 0; margin: 0 8px 0 0; padding: 0;
  border: 0; border-radius: 999px; background: none; color: var(--nest-muted); font-size: 0;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-row-more[hidden] { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-row-more svg { display: block; width: 18px; height: 18px; margin: 7px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-row-more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
/* empty (08) and no results (11) */
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-empty { margin: 0; font: 400 15px/22px var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-nest-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-nest-empty p { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-nest-empty .ph-nest-empty-title { font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
/* #1230: the empty card reads as a designed empty state, not a lone line: the survey icon over the words, centred, with air */
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-nest-empty { align-items: center; gap: 12px; padding: 36px 18px; text-align: center; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-nest-empty::before {
  content: ""; width: 40px; height: 40px; background: var(--nest-teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4zM7 9h10M7 13h10M7 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4zM7 9h10M7 13h10M7 17h6'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-nest-empty .ph-nest-empty-title { font-size: 16px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #surveys > .ph-error { margin: 0; color: var(--nest-danger); font: 400 14px/20px var(--nest-text); }

/* ---- search (10, 11): under the wordmark, with its own Clear and Cancel ---- */
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #survey-search-box:not([hidden]) { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin: -4px 0 12px; position: relative; }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-box label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-box input {
  flex: 1; min-width: 0; height: 44px; min-height: 0; margin: 0; padding: 0 48px 0 36px; border: 1px solid var(--nest-teal); border-radius: 2px; box-shadow: 0 0 0 1px var(--nest-teal); outline: 0;
  font: 400 16px var(--nest-text); color: var(--nest-ink); -webkit-appearance: none; appearance: none; background: var(--nest-field);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-box .ph-nest-search-icon { position: absolute; left: 10px; top: 13px; width: 18px; height: 18px; color: var(--nest-muted); pointer-events: none; z-index: 1;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-clear {
  position: absolute; right: 78px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 999px; background: none;
  color: var(--nest-muted); display: flex; align-items: center; justify-content: center;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-clear svg { width: 20px; height: 20px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-clear::after,
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
html[data-phone-nest][data-brand][data-app-design="flow"] #survey-search-close {
  position: relative; flex: none; width: 70px; height: 32px; min-height: 0; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--nest-teal); font: 600 14px/1 var(--nest-text);
}

/* ---- New survey: pinned above the tab bar on iPhone, an extended floating button on Android ---- */
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #new-survey-open {
  position: fixed; z-index: 9; left: max(18px, calc((100vw - 560px) / 2)); right: max(18px, calc((100vw - 560px) / 2)); width: auto; bottom: calc(var(--nest-tabbar) + var(--nest-safe-bottom)); margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; min-height: 0; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--nest-teal); color: #fff; font: 600 17px/1 var(--nest-text); box-shadow: none;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #new-survey-open::before { content: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #home > #new-survey-open svg { width: 20px; height: 20px; flex: none; }
html[data-phone-nest][data-brand][data-app-design="flow"]:not(.ph-flow-creating)[data-phone-screen="home"] [data-nest-os="ios"] #home:not([hidden])::after {
  content: ""; position: fixed; z-index: 8; left: 0; right: 0; bottom: calc(var(--nest-tabbar) + var(--nest-safe-bottom)); height: 62px; background: var(--nest-mist); pointer-events: none;
}
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] #home > #new-survey-open {
  left: auto; right: 16px; bottom: calc(var(--nest-tabbar) + var(--nest-safe-bottom)); height: 56px; padding: 0 20px 0 16px; gap: 10px;
  font-size: 15px; box-shadow: 0 6px 16px rgba(15,46,45,.28);
}
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] #home > #new-survey-open svg { width: 22px; height: 22px; }

/* ---- tab bar: iPhone 50 px on Card, Android 80 px navigation bar with pill indicators ---- */
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-home-nav {
  left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 736px; padding: 0 0 var(--nest-safe-bottom); gap: 0; height: auto;
  border: 0; border-top: 1px solid var(--nest-line); border-radius: 0; box-shadow: none; background: var(--nest-card);
}
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-home-nav :is(button, a) {
  flex: 1 1 0; min-width: 0; height: 50px; min-height: 0; margin: 0; padding: 4px 0 0; gap: 3px; border: 0; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; background: none; color: var(--nest-muted); font: 500 10px/1 var(--nest-text); text-decoration: none;
}
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-home-nav svg { width: 24px; height: 24px; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-home-nav [aria-current="page"] { color: var(--nest-teal); background: none; box-shadow: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] .ph-home-nav { border-top: 0; background: var(--nest-notice); }
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] .ph-home-nav :is(button, a) { height: 80px; padding: 0; gap: 4px; font-size: 12px; color: var(--nest-soft); }
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] .ph-home-nav svg { width: 64px; height: 32px; padding: 4px 20px; border-radius: 999px; box-sizing: border-box; }
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] .ph-home-nav [aria-current="page"] { color: var(--nest-teal); font-weight: 600; }
html[data-phone-nest][data-brand][data-app-design="flow"] [data-nest-os="android"] .ph-home-nav [aria-current="page"] svg { background: rgba(31,92,91,.16); }

/* ---- New survey sheet (15 to 17): a bottom sheet over the scrim, step 1 of 2 and 2 of 2 ---- */
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-sheet.is-open { align-items: flex-end; justify-content: stretch; background: rgba(15,46,45,.42); }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body {
  display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 12px; row-gap: 12px; align-content: flex-start;
  width: 100%; height: auto; max-height: calc(100dvh - 24px); margin: 0; overflow-y: auto;
  padding: 8px 18px var(--nest-safe-bottom); border: 0; border-top: 1px solid var(--nest-line); border-radius: 0; box-shadow: none;
  background: var(--nest-card); color: var(--nest-ink); font: 400 16px/1.4 var(--nest-text);
}
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body > *,
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form > *,
html[data-phone-nest][data-brand][data-app-design="flow"] #flow-create-recovery > * { flex: 0 0 100%; min-width: 0; margin: 0; order: 20; }
html[data-phone-nest][data-brand][data-app-design="flow"] :is(.ph-sheet-heading, #new-form, #flow-create-recovery) { display: contents; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body .ph-grabber { display: block; order: 0; flex: 0 0 100%; height: 4px; margin: 0 0 -2px; background: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body .ph-grabber::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto; border-radius: 2px; background: #B9C3BD; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-heading {
  order: 2; flex: 0 0 100%; min-height: 0; display: block; font: 700 24px/1.15 var(--nest-disp); font-stretch: 110%; letter-spacing: -.01em; color: var(--nest-ink); outline: 0;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-step { order: 1; flex: 0 0 100%; font: 600 12px/1 var(--nest-text); letter-spacing: .06em; color: var(--nest-muted); margin-bottom: -8px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-instruction { order: 3; margin: 2px 0 14px; padding: 0; font-size: 14px; line-height: 20px; color: var(--nest-soft); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-instruction:empty { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices { order: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices label { display: block; position: relative; min-width: 0; margin: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices label > span {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-height: 116px; padding: 14px;
  background: var(--nest-field); border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none; text-align: left;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices input:checked + span { padding: 14px; border: 1px solid var(--nest-teal); box-shadow: inset 0 0 0 1px var(--nest-teal); background: var(--nest-notice); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices input:focus-visible + span { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices svg { display: block; width: 26px; height: 26px; margin: 0 0 8px; color: var(--nest-teal); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices b { display: block; font: 600 16px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-choices small { display: block; margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-new-property { order: 4; display: flex; flex-direction: column; gap: 6px; font: 600 13px/1.3 var(--nest-text); color: var(--nest-soft); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-new-property input {
  width: 100%; height: 48px; min-height: 48px; margin: 0; padding: 0 12px; border: 1px solid var(--nest-line); border-radius: 2px; box-shadow: none;
  background: var(--nest-field); font: 400 16px var(--nest-text); color: var(--nest-ink); outline: 0;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-new-property input:focus { border-color: var(--nest-teal); box-shadow: 0 0 0 1px var(--nest-teal); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-error {
  order: 5; position: relative; padding: 10px 12px 10px 40px; border: 1px solid #E3B9B4; border-radius: 2px; background: var(--nest-danger-bg); color: var(--nest-danger); font: 400 14px/20px var(--nest-text);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #new-error[hidden] { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-error::before {
  content: "!"; position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; box-sizing: border-box; border: 1.9px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font: 700 11px/1 var(--nest-text);
}
/* the one filled button, then small text buttons: Back to survey type and Cancel (or Check survey list and Return to surveys) */
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form :is(#flow-new-next, [type="submit"]) {
  order: 6; display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; min-height: 0; margin-top: 4px; padding: 0 14px;
  border: 0; border-radius: 999px; box-shadow: none; background: var(--nest-teal); color: #fff; font: 600 17px/1 var(--nest-text); opacity: 1;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form :is(#flow-new-next, [type="submit"]):disabled { background: #8FB0AB; color: #fff; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form[aria-busy="true"] [type="submit"]::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; box-sizing: border-box;
}
html[data-phone-nest][data-brand][data-app-design="flow"] #flow-create-recovery > .ph-secondary { order: 7; flex: 0 0 auto; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form #flow-new-back { order: 8; flex: 0 0 auto; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-close { order: 9; flex: 0 0 auto; margin-left: auto; }
/* 17: Check survey list and Return to surveys share a row; Back to survey type goes under them */
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body:has(#flow-create-recovery > *) #new-form #flow-new-back { order: 10; flex: 0 0 100%; justify-content: flex-start; }
html[data-phone-nest][data-brand][data-app-design="flow"] [data-flow-step="type"] #new-survey-close { flex: 0 0 100%; margin-left: 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body :is(#flow-new-back, #new-survey-close) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: auto; height: 32px; min-width: 0; min-height: 0; padding: 0 8px;
  border: 0; border-radius: 999px; box-shadow: none; background: none; color: var(--nest-teal); font: 600 14px/1 var(--nest-text);
}
html[data-phone-nest][data-brand][data-app-design="flow"] [data-flow-step="type"] .ph-new-sheet-body #new-survey-close,
html[data-phone-nest][data-brand][data-app-design="flow"] [data-flow-step="type"] #new-survey-close { height: 44px; font-size: 15px; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form #flow-new-back::before { content: "‹ "; white-space: pre; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body :is(#flow-new-back, #new-survey-close):disabled { color: var(--nest-soft); opacity: .6; }
html[data-phone-nest][data-brand][data-app-design="flow"] .ph-new-sheet-body :is(#flow-new-back, #new-survey-close)::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: 44px; transform: translate(-50%, -50%); }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-close .ph-close-symbol { display: none; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-close .ph-close-cancel { display: inline; }
html[data-phone-nest][data-brand][data-app-design="flow"] #flow-create-recovery > .ph-secondary {
  position: relative; width: auto; height: 36px; min-height: 0; padding: 0 14px; border: 0; border-radius: 999px; box-shadow: none;
  background: var(--nest-notice); color: var(--nest-teal); font: 600 14px/1 var(--nest-text);
}
html[data-phone-nest][data-brand][data-app-design="flow"] #flow-create-recovery > .ph-secondary::after { content: ""; position: absolute; inset: -4px 0; }
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-sheet[data-flow-step="type"] #new-form :is(.ph-new-property, [type="submit"], #flow-new-back),
html[data-phone-nest][data-brand][data-app-design="flow"] #new-survey-sheet[data-flow-step="property"] #new-form :is(.ph-kind-choices, #flow-new-next),
html[data-phone-nest][data-brand][data-app-design="flow"] #new-form .ph-kind-select { display: none; }

html[data-phone-nest][data-brand][data-app-design="flow"] #surveys .ph-draft-detail { display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* #1230: the Progress reports screens (drawn in a shadow root by assets/phone-progress-visit-v2.js, styled by
   assets/phone-progress-visit-v2.css) take the Nest tokens and shapes. A page's own rules on a shadow host win over the
   shadow's :host rules, so these values reach inside; the shadow stylesheet reads the --pp-* ones and falls back to its own. */
html[data-phone-nest][data-app-design="flow"] :is(.visit-v2, .visit-v2-editor) {
  --teal: var(--nest-teal); --teal-d: var(--nest-deep); --tint: var(--nest-notice); --ink: var(--nest-ink); --mut: var(--nest-muted);
  --line: var(--nest-line); --bg: var(--nest-mist); --card: var(--nest-card); --page: var(--nest-mist);
  --pp-font: var(--nest-text); --pp-title-font: var(--nest-disp); --pp-title-spacing: -0.015em;
  --pp-bar: var(--nest-mist); --pp-bar-ink: var(--nest-ink); --pp-bar-link: var(--nest-teal); --pp-bar-sub: var(--nest-muted); --pp-bar-sub-opacity: 1;
  --pp-bar-line: 1px solid var(--nest-line);
  --pp-brand: url("surveynest/logo/lockup-horizontal.svg");   /* the dark logo on the light header (the reversed one was white on Mist) */
  --pp-pri-height: 52px;
  --pp-danger: var(--nest-danger);   /* #1230: Discard in the app's destructive red (.ph-danger) */
  --pp-pill: 999px; --pp-radius: 2px; --pp-card-line: 1px solid var(--nest-line); --pp-doc-line: var(--nest-line);
}


/* #1230: the cover photo preview shows the photo as taken (it was drawn in black and white, which the report does not do), with
   Nest's 2 px corners */
html[data-phone-nest][data-app-design="flow"] .ph-cover img { filter: none; border-radius: 2px; }

/* #1230 (Android walk): offline, Surveys says "No signal" once (its own line); the general notice's "No signal…" is not repeated */
html[data-phone-nest][data-brand][data-app-design="flow"].ph-home-offline[data-phone-screen="home"] :is(#home > #notice, #notice).ph-no-signal { display: none; }

/* #1230 (Android walk, B18): with the keyboard open, a focused notes box on a roof part scrolled up under the sticky title and
   tabs. The browser keeps this much room above (and below) a box it scrolls into view, so the box stays below the header. */
html[data-phone-nest][data-app-design="flow"] .ph-main :is(textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select) {
  scroll-margin-top: 150px; scroll-margin-bottom: 96px;
}

/* #1230 (iPhone walk 2, item 5): with the keyboard up, the tab bar (Surveys, Account) and Account's pinned See plans floated
   mid-screen over the form; they step aside while typing, as the survey screens' bottom actions already do */
html[data-phone-nest][data-app-design="flow"].ph-keyboard-open :is(#home-nav, #nest-acct-bar) { display: none; }
