/* #912 Journey lane 2 (P1): parts open in place, the part rows, Home and Account. Every rule needs html[data-pj="on"] (set by
   assets/phone-journey.js only while phone_journey, phone_ui_nest and phone_ui_flow are on), so with the switch off nothing here
   applies. The open part is the app's own #element, styled by assets/phone-nest-part.css as the sheet; while it is in place
   (html[data-pj-part="open"]) the rules below take away what makes it a sheet: the fixed position and shade, the title bar,
   the copied tabs and the pinned Done. Nest rules: pills 999 px, every other edge 2 px, Archivo / Plex, 44 pt targets.
   Look: records/JOURNEY-PLAN-2026-11-09/prototype/index.html (.grp, .list, .li, .chip, .expand, the green Done). */

/* ---------- the part rows (a roof's Elements on the Roofs page) ---------- */
html[data-pj="on"] body .pj-parts { margin: 0; }
/* F6g: a group's heading is a quiet label in the text face (the rows lead), 20 px under the card above and 8 px over its own
   card, with how many of its parts are rated beside it; the first one sits 12 px under the counts line */
html[data-pj="on"] body .pj-parts-group {
  margin: 20px 0 8px; padding: 0; font: 600 15px/20px var(--nest-text); font-stretch: normal; letter-spacing: 0; color: var(--nest-soft);
  scroll-margin-top: calc(var(--pj-chrome, 52px) + 64px);
}
html[data-pj="on"] body .pj-parts-counts + .pj-parts-group { margin-top: 12px; }
html[data-pj="on"] body .pj-parts-gcount { font-weight: 400; color: var(--nest-muted); white-space: nowrap; }
/* F6g: the counts line says what each colour means: "7 of 28 rated" on its own line, then each rating as square + words */
html[data-pj="on"] body .pj-parts-counts { display: grid; grid-template-columns: repeat(2, max-content); align-items: center; gap: 2px 20px; margin: 4px 0 0; font: 400 13px/20px var(--nest-text); color: var(--nest-soft); }
html[data-pj="on"] body .pj-parts-rated { grid-column: 1 / -1; font: 600 15px/20px var(--nest-text); color: var(--nest-ink); }
html[data-pj="on"] body .pj-parts-count { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
html[data-pj="on"] body .pj-parts-count > i { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
html[data-pj="on"] body .pj-parts-c3 > i { background: var(--nest-urgent); }
html[data-pj="on"] body .pj-parts-c2 > i { background: var(--nest-repair); }
html[data-pj="on"] body .pj-parts-c1 > i { background: var(--nest-norepair-dot); }
html[data-pj="on"] body .pj-parts-cni > i { background: var(--nest-ni); }
html[data-pj="on"] body .pj-parts-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html[data-pj="on"] body .pj-parts-list { margin: 0; background: var(--nest-card); border: 1px solid var(--nest-line); border-radius: 2px; }
/* F6g: one row rhythm: 64 px rows (!important: phone.css sets 48 px !important on branded buttons; a long name grows its own row), 16 px gutters, the chevron on the right gutter; a row the
   app jumps to stops clear of the sticky tabs and of the pinned main button */
html[data-pj="on"] body .pj-parts-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px !important; margin: 0; padding: 10px 12px 10px 16px;
  border: 0; border-top: 1px solid var(--nest-line); border-radius: 0 !important; background: none; box-shadow: none;
  color: var(--nest-ink); font: 400 15px/1.35 var(--nest-text); text-align: left; cursor: pointer;
  scroll-margin-top: calc(var(--pj-chrome, 52px) + 64px); scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom));
}
html[data-pj="on"] body .pj-parts-list > .pj-parts-row:first-child { border-top: 0; }
html[data-pj="on"] body .pj-parts-row:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
html[data-pj="on"] body .pj-parts-chip { width: 30px; height: 30px; }
/* F6g: an unrated part's box is lighter (smaller, a thin dashed line) and keeps the rated chip's 30 px slot, so names line up */
html[data-pj="on"] body .pj-parts-chip.nest-todo { width: 22px; height: 22px; margin: 0 4px; border: 1px dashed var(--nest-line); }
html[data-pj="on"] body :is(.pj-parts-row, .pj-parts-acctrow) .pj-parts-main { flex: 1; min-width: 0; display: block; }
html[data-pj="on"] body :is(.pj-parts-row, .pj-parts-acctrow) .pj-parts-name { display: block; font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-pj="on"] body :is(.pj-parts-row, .pj-parts-acctrow) .pj-parts-sub { display: block; margin-top: 2px; font: 400 13px/1.35 var(--nest-text); color: var(--nest-muted); }
html[data-pj="on"] body :is(.pj-parts-row, .pj-parts-acctrow) .pj-parts-chev { flex: none; display: flex; width: 22px; height: 22px; color: var(--nest-teal); }
html[data-pj="on"] body :is(.pj-parts-row, .pj-parts-acctrow) .pj-parts-chev svg { width: 22px; height: 22px; transition: transform .15s; }
html[data-pj="on"] body .pj-parts-row[aria-expanded="true"] .pj-parts-chev svg { transform: rotate(-90deg); }
/* a building survey's own row while its part is open (assets/phone-nest-roof.js's chevron) */
html[data-pj="on"] body #sections button.ph-item[data-pj-open] .ph-nest-chev svg { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { html[data-pj="on"] body .pj-parts-chev svg { transition: none; } }

/* ---------- the open part, in place under its row ---------- */
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element.ph-element-overlay {
  position: static; inset: auto; z-index: auto; width: auto; max-height: none; overflow: visible; overscroll-behavior: auto;
  margin: 0; padding: 14px 14px 16px; background: var(--nest-field); border: 0; border-top: 1px solid var(--nest-line); border-radius: 0;
  box-shadow: none; animation: none;
}
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element.ph-element-overlay > .ph-form {
  padding: 0; gap: 14px;
}
/* the sheet's title bar, its copied tabs, its instruction line and save line go: the list's own top bar stays. Errors stay. */
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element-sheet-header {
  position: static; display: block; min-height: 0; padding: 0; margin: 0; background: none;
}
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element-sheet-header > :not(#element-sheet-error),
html[data-pj="on"][data-pj-part="open"] body #element > #nest-part-bar { display: none !important; }
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element-sheet-error { padding: 0 0 8px; }
/* Done: at the end of the part, green (the owner's choice), not pinned */
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element > .ph-form > .ph-capture-actions {
  position: static; left: auto; right: auto; bottom: auto; z-index: auto;
}
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element [data-pj-done] {
  background: var(--nest-norepair-dot, #3C8C5A); border-color: var(--nest-norepair-dot, #3C8C5A); color: #fff;
}
html[data-pj="on"][data-pj-part="open"] body #element .pj-parts-still { margin: 0; font: 400 14px/20px var(--nest-text); color: var(--nest-soft); }
html[data-pj="on"][data-pj-part="open"] body #element .pj-parts-still[hidden] { display: none; }
/* E6 part 2b: the line as a button that opens the list for this part (phone_gaps_list): a quiet pill, 44 px to tap */
html[data-pj="on"][data-pj-part="open"] body #element .pj-parts-still .pj-parts-still-open { display: inline-flex; align-items: center; width: auto; min-height: 44px !important; margin: 0; padding: 0 18px; border: 1px solid var(--nest-line); border-radius: 999px !important; background: var(--nest-field, #F8F9F6); box-shadow: none; color: var(--nest-teal, #1F5C5B); font: 600 15px/1 var(--nest-text); }
/* today's reminder is answered for the line above: it never shows over the list, except when the local save failed (then it
   shows exactly as the app made it, with its message, Go back and Dismiss, which tries again) */
html[data-pj="on"][data-pj-part="open"]:not([data-pj-save-failed]) body #element-reminder,
html[data-pj="on"][data-pj-part="open"]:not([data-pj-save-failed]) body #element-reminder-shade { display: none !important; }
/* the sheet's page padding for its pinned button is not needed in place */
html[data-pj="on"][data-pj-part="open"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element.ph-element-overlay { padding-bottom: 16px; }

/* the module's tabs keep their square underline while a part is open (the part sheet's styles round every button) */
html[data-pj="on"][data-pj-part] body .pj-tab { border-radius: 0 !important; }

/* lane 6's slot under the rating buttons (#916): nothing shows while it is empty */
html[data-pj="on"] body #element .pj-parts-slot:empty { display: none; }

/* ---------- a part's moisture reading ---------- */
html[data-pj="on"] body #element .pj-parts-moisture { display: flex; flex-direction: column; gap: 10px; }
html[data-pj="on"] body #element .pj-parts-label { margin: 0; font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-pj="on"] body #element .pj-parts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* the fields take the part's own field look (assets/phone-nest-part.css: label over a white box, 2 px corners) */
html[data-pj="on"] body #element .pj-parts-flabel { font: inherit; color: inherit; }
html[data-pj="on"] body #element .pj-parts-reading {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0 6px 10px; border-left: 3px solid var(--nest-teal); background: var(--nest-card);
}
html[data-pj="on"] body #element .pj-parts-reading-v { flex: none; font: 500 15px/1.2 var(--nest-mono); color: var(--nest-ink); }
html[data-pj="on"] body #element .pj-parts-reading-t { flex: 1; min-width: 0; font: 400 14px/1.3 var(--nest-text); color: var(--nest-soft); }
html[data-pj="on"] body #element .pj-parts-textbtn {
  flex: none; min-height: 44px; min-width: 44px; margin: 0; padding: 0 10px; border: 0; border-radius: 999px !important; background: none; box-shadow: none;
  font: 600 14px/1 var(--nest-text); color: var(--nest-teal);
}
html[data-pj="on"] body #element .pj-parts-danger { color: var(--nest-danger); }
html[data-pj="on"] body #element .pj-parts-pill {
  align-self: flex-start; min-height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px !important; background: var(--nest-notice); box-shadow: none;
  font: 600 15px/1 var(--nest-text); color: var(--nest-teal);
}
/* #949: the meter, asked for in place with the first reading */
html[data-pj="on"] body #element .pj-parts-meter { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--nest-line); border-radius: 2px; background: var(--nest-card); }
html[data-pj="on"] body #element .pj-parts-meter[hidden] { display: none; }
html[data-pj="on"] body #element .pj-parts-hint { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-pj="on"] body #element .pj-parts-error { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-danger); }
html[data-pj="on"] body #element .pj-parts-error:empty,
html[data-pj="on"] body #element .pj-parts-said:empty { display: none; }
html[data-pj="on"] body #element .pj-parts-said { margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }

/* ---------- under the switch: the "Survey › ..." bar and the Parts | Moisture row go ---------- */
html[data-pj="on"] body :is(.ph-capture-breadcrumb, #element-breadcrumb, #roof-subtabs) { display: none !important; }

/* ---------- Home: titles on two lines at most, no rating strip on the rows; My buildings lives in Account ---------- */
html[data-pj="on"] body #home #surveys .ph-survey-row .ph-item > div > b {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
html[data-pj="on"] body #home #surveys .ph-strip,
html[data-pj="on"] body #home > #my-buildings-open { display: none !important; }

/* ---------- Account: My buildings as a row ---------- */
html[data-pj="on"] body .pj-parts-acctrow {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; margin: 0 0 16px; padding: 12px 14px;
  border: 1px solid var(--nest-line); border-radius: 2px !important; background: var(--nest-card); box-shadow: none;
  color: var(--nest-ink); text-align: left; cursor: pointer;
}
html[data-pj="on"] body .pj-parts-acctrow:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
/* with Nest's Account the row sits above Sign out and Delete your account (Nest arranges its own cards; order only moves them visually) */
html[data-pj="on"][data-nest-acct="account"] body #nest-acct > #pj-parts-buildings { order: 1; margin: 0; }
html[data-pj="on"][data-nest-acct="account"] body #nest-acct > #pj-parts-buildings ~ #nest-acct-actions,
html[data-pj="on"][data-nest-acct="account"] body #nest-acct > #nest-acct-actions:has(~ #pj-parts-buildings) { order: 2; }

/* ---------- photos (#961): a part's, a defect's, a core's, a roof's overview ----------
   One block wherever a list of photos shows under the switch (assets/phone-journey-parts.js photoBlock): thumbnails three
   across with a × and an upload mark each, the line that says what the last action did (with Undo), "Take a photo" and
   "Choose photos" side by side (the prototype's dashed 52 px drop targets, 2 px corners), then the count line. The look is
   the prototype's .photos / .ph / .dropbtn and Tim's gallery. The classes are this lane's own, so shape and size are
   !important: Nest's part sheet rounds every button and the compact layout sets 48 px on them, both with more weight. */
html[data-pj="on"] body .pj-photos { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; }
html[data-pj="on"] body .pj-photos-heading { margin: 0; font: 600 15px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-pj="on"] body .pj-photos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
html[data-pj="on"] body .pj-photos-grid[hidden] { display: none; }
html[data-pj="on"] body .pj-photos-tile {
  position: relative; box-sizing: border-box; min-width: 0; width: auto; height: auto; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--nest-line); border-radius: 2px; background: #E6EAE8;
}
html[data-pj="on"] body .pj-photos .pj-photos-open {
  position: absolute; inset: 0; display: block; box-sizing: border-box; width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; cursor: pointer;
}
html[data-pj="on"] body .pj-photos .pj-photos-open::after { content: none !important; }
html[data-pj="on"] body .pj-photos .pj-photos-open img {
  display: block; width: 100% !important; height: 100% !important; max-height: none !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; object-fit: cover;
}
html[data-pj="on"] body .pj-photos .pj-photos-open:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
/* remove: the prototype's 28 px dark circle 4 px in from the corner, drawn inside a 44 px target */
html[data-pj="on"] body .pj-photos .pj-photos-x {
  position: absolute; top: 0; right: 0; left: auto; bottom: auto; box-sizing: border-box; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: none !important;
  color: transparent !important; font-size: 0 !important; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
html[data-pj="on"] body .pj-photos .pj-photos-x::before {
  content: '\00D7'; position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 999px;
  background: rgba(15, 46, 45, .8); color: #fff; font: 400 16px/28px var(--nest-text, system-ui, sans-serif); text-align: center;
}
html[data-pj="on"] body .pj-photos .pj-photos-x::after { content: none !important; }
html[data-pj="on"] body .pj-photos .pj-photos-x:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: -2px; }
/* the upload mark, bottom left: "Saving…" then a tick; "Waiting" with no signal; a failed one is a "Try again" button */
html[data-pj="on"] body .pj-photos .pj-photos-mark {
  position: absolute; left: 4px; bottom: 4px; top: auto; right: auto; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  width: auto !important; height: 22px !important; min-width: 0 !important; min-height: 0 !important; max-width: calc(100% - 8px); margin: 0 !important; padding: 0 8px !important;
  border: 0 !important; border-radius: 999px !important; background: rgba(15, 46, 45, .8) !important; box-shadow: none !important;
  color: #fff !important; font: 600 11px/22px var(--nest-text, system-ui, sans-serif) !important; white-space: nowrap; pointer-events: none;
}
html[data-pj="on"] body .pj-photos .pj-photos-tile[data-pj-state="saved"] .pj-photos-mark {
  width: 22px !important; padding: 0 !important; background: var(--nest-norepair-dot, #3C8C5A) !important;
}
html[data-pj="on"] body .pj-photos .pj-photos-tile[data-pj-state="saved"] .pj-photos-mark::before {
  content: ''; width: 10px; height: 5px; margin-top: -3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}
html[data-pj="on"] body .pj-photos .pj-photos-tile[data-pj-state="failed"] .pj-photos-mark {
  height: 28px !important; padding: 0 10px !important; background: var(--nest-danger, #A83232) !important; font-size: 12px !important; line-height: 28px !important; pointer-events: auto; cursor: pointer;
}
/* the Try again button's target is 44 px high inside the thumbnail */
html[data-pj="on"] body .pj-photos .pj-photos-tile[data-pj-state="failed"] .pj-photos-mark::after { content: '' !important; position: absolute; inset: -12px -4px -4px -4px; }
html[data-pj="on"] body .pj-photos .pj-photos-tile[data-pj-state="failed"] .pj-photos-mark:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
/* what the last action did, with Undo as a text button */
html[data-pj="on"] body .pj-photos .pj-photos-said,
html[data-pj="on"] body .pj-photos .pj-photos-review {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; padding: 0; font: 400 14px/1.4 var(--nest-text); color: var(--nest-muted);
}
html[data-pj="on"] body .pj-photos .pj-photos-said[hidden] { display: none; }
html[data-pj="on"] body .pj-photos .pj-photos-undo {
  position: relative; width: auto !important; height: auto !important; min-width: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 4px !important;
  border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: none !important;
  color: var(--nest-teal) !important; font: 600 15px/1.2 var(--nest-text) !important; cursor: pointer;
}
html[data-pj="on"] body .pj-photos .pj-photos-undo::after { content: none !important; }
html[data-pj="on"] body .pj-photos .pj-photos-btns { display: flex; gap: 8px; margin: 0; padding: 0; }
html[data-pj="on"] body .pj-photos .pj-photos-btn {
  position: relative; flex: 1 1 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: auto !important; min-width: 0 !important;
  height: auto !important; min-height: 52px !important; margin: 0 !important; padding: 0 8px !important;
  border: 1.5px dashed var(--nest-line) !important; border-radius: 2px !important; background: none !important; box-shadow: none !important;
  color: var(--nest-teal) !important; font: 600 15px/1.2 var(--nest-text) !important; text-align: center; cursor: pointer;
}
html[data-pj="on"] body .pj-photos .pj-photos-btn::after { content: none !important; }
html[data-pj="on"] body .pj-photos :is(.pj-photos-btn, .pj-photos-undo):focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }
html[data-pj="on"] body .pj-photos .pj-photos-count { margin: 0; padding: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-pj="on"] body .pj-photos .pj-photos-count[hidden] { display: none; }

/* a part's Photos: the app's own photo box holds the block, and its own controls (the fold "Overview photos", the add pills,
   the photo cards, its notice) stay in the page unseen: they still do the work (the file box, Remove, Undo) */
/* (:not(#x):not(#y) only adds weight: Nest's part sheet and a building part's layout show these pills with !important) */
html[data-pj="on"] body #element-photos[data-pj-photos] > :not(.pj-photos):not(#x):not(#y) { display: none !important; }
html[data-pj="on"][data-phone-nest][data-app-design="flow"][data-nest-part] body #element #element-photos[data-pj-photos]:not(#x) {
  display: block; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
}
/* a defect's photos: the same block in the defect's card, in place of the app's add pill and photo cards */
html[data-pj="on"] body #element .ph-defect[data-pj-photos] > :is(label.ph-photo-btn, .ph-photos):not(#x):not(#y) { display: none !important; }
html[data-pj="on"] body #element .ph-defect[data-pj-photos] > .pj-photos { order: 0; }

/* a photo opened from its thumbnail: a sheet from the bottom (Nest's photo sheet, 38) */
html[data-pj="on"] body dialog.pj-photo-sheet {
  position: fixed; inset: auto 0 0 0; box-sizing: border-box; width: auto; height: auto; max-width: none; max-height: calc(100dvh - 24px); margin: 0; overflow-y: auto;
  flex-direction: column; gap: 12px; padding: 8px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); background: var(--nest-card); color: var(--nest-ink);
  border: 0; border-top: 1px solid var(--nest-line); border-radius: 0; box-shadow: none; font: 400 16px/1.4 var(--nest-text);
}
html[data-pj="on"] body dialog.pj-photo-sheet[open] { display: flex; }
html[data-pj="on"] body dialog.pj-photo-sheet::backdrop { background: rgba(15, 46, 45, .42); }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-grab { flex: none; width: 36px; height: 4px; margin: 0 auto 2px; border-radius: 2px; background: #B9C3BD; }
html[data-pj="on"] body dialog.pj-photo-sheet > header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0; padding: 0; border: 0; background: none; }
html[data-pj="on"] body dialog.pj-photo-sheet > header h2 { margin: 0; font: 700 22px/1.15 var(--nest-disp); font-stretch: 110%; letter-spacing: -.01em; color: var(--nest-ink); }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-sub { margin: 4px 0 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-x {
  flex: none; width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; margin: -6px -10px 0 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 999px !important; background: none !important; box-shadow: none !important; color: var(--nest-muted) !important; font: 400 26px/44px var(--nest-text) !important; cursor: pointer;
}
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-body { flex: none; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-body > img {
  display: block; box-sizing: border-box; width: 100%; height: auto; min-height: 120px; max-height: 46dvh; margin: 0; object-fit: contain;
  border: 1px solid var(--nest-line); border-radius: 2px; background: #E6EAE8;
}
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-note { display: flex; flex-direction: column; gap: 6px; margin: 0; font: 600 14px/1.3 var(--nest-text); color: var(--nest-ink); }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-note :is(input, textarea) {
  box-sizing: border-box; width: 100%; min-height: 48px; margin: 0; padding: 12px; border: 1px solid var(--nest-line); border-radius: 2px; background: var(--nest-field);
  color: var(--nest-ink); font: 400 16px/1.35 var(--nest-text); box-shadow: none;
}
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-note :is(input, textarea):focus { outline: 2px solid var(--nest-teal); outline-offset: -1px; }
/* the dictation microphone the store app adds to a note box sits in the box's right edge, as on the part */
html[data-pj="on"] body dialog.pj-photo-sheet .ph-flow-voice-field { position: relative; display: block; }
html[data-pj="on"] body dialog.pj-photo-sheet .ph-flow-voice-field :is(input, textarea) { padding-right: 52px; }
html[data-pj="on"] body dialog.pj-photo-sheet .ph-flow-voice-field .ph-mic { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--nest-teal); }
/* the app's own location and Place on plan line */
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-pin { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-pin > :is(span, p) { flex: 1 1 auto; margin: 0; font: 400 13px/18px var(--nest-text); color: var(--nest-muted); }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-pin > p { flex-basis: 100%; }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-pin > span:empty { display: none; }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-pin > button:not(.ph-linkbtn) {
  flex: none; width: auto; height: 44px; min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--nest-notice); box-shadow: none;
  color: var(--nest-teal); font: 600 15px/1 var(--nest-text); cursor: pointer;
}
html[data-pj="on"] body dialog.pj-photo-sheet .ph-ai { margin: 0; }
html[data-pj="on"] body dialog.pj-photo-sheet .ph-ai button {
  width: auto; min-height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--nest-notice); box-shadow: none; color: var(--nest-teal); font: 600 15px/1 var(--nest-text);
}
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-remove {
  align-self: flex-start; width: auto !important; min-height: 44px !important; margin: 0 0 0 -8px !important; padding: 0 8px !important; border: 0 !important; border-radius: 999px !important;
  background: none !important; box-shadow: none !important; color: var(--nest-danger) !important; font: 600 15px/1 var(--nest-text) !important; cursor: pointer;
}
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-actions { flex: none; display: flex; flex-direction: column; margin: 0; padding: 4px 0 max(16px, env(safe-area-inset-bottom)); }
html[data-pj="on"] body dialog.pj-photo-sheet .pj-photo-sheet-done {
  display: flex; align-items: center; justify-content: center; width: 100% !important; height: 52px !important; min-height: 52px !important; margin: 0 !important; padding: 0 14px !important;
  border: 0 !important; border-radius: 999px !important; background: var(--nest-teal) !important; box-shadow: none !important; color: #fff !important; font: 600 17px/1 var(--nest-text) !important; cursor: pointer;
}
html[data-pj="on"] body dialog.pj-photo-sheet button:focus-visible { outline: 2px solid var(--nest-teal); outline-offset: 2px; }

/* F11: a whole-building part's thumbnails carry their × in the corner exactly as a roof part's do (the app's Nest part sheet had
   set the button back to position: relative, so it dropped below the picture), and the selected rating pill has no second tick
   drawn over its words (the fill already says it is chosen; a roof part's pill has none) */
html[data-pj="on"] body #element .pj-photos .pj-photos-tile > button.pj-photos-x:not(#x) { position: absolute; top: 0; right: 0; left: auto; bottom: auto; }
html[data-pj="on"] body #element .ph-rating button[aria-pressed="true"]::after { content: none !important; }
