/* #916 Journey lane 6, phone half: only lane 6's own elements (class prefix pj6-, attribute data-pj6). Fields, buttons and
   units use the other lanes' classes (pj-field, pj-drop, pj-unit, pj-sub), so they look the same and meet the 44 pt targets. */
.pj6-note { margin: 4px 0 10px; font-size: 13px; line-height: 1.4; color: var(--muted, #5F6966); }
.pj6-gallery { margin: 0 0 14px; }
/* The gallery's thumbnails, × and count line are the journey's shared photo block (#961, assets/phone-journey-parts.css,
   .pj-photos-*): three across, 1 px line, 2 px corners, 8 px gap, a 28 px dark × inside a 44 px target, above two dashed drop
   targets 52 px high with 2 px corners (the prototype's .dropbtn). phone.css rounds every button under the brand and sets
   min-height 48 px !important in the compact layout, so the shape and height here are !important. */
html[data-pj="on"] body #journey .pj6-gallery .pj6-drop-row { margin: 0; }
html[data-pj="on"] body #journey .pj6-gallery .pj6-drop { min-height: 52px !important; border-radius: 2px !important; }
/* what the last action did, with Undo as the prototype's text button */
html[data-pj="on"] body #journey .pj6-gallery .pj6-said { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--nest-muted, #5D6A70); }
html[data-pj="on"] body #journey .pj6-gallery .pj6-said[hidden] { display: none; }
html[data-pj="on"] body #journey .pj6-gallery .pj6-undo { min-height: 44px !important; margin: 0; padding: 0 4px; border: 0; border-radius: 999px !important; background: none; box-shadow: none;
  color: var(--nest-teal, #1F5C5B); font: 600 15px/1.2 var(--nest-text, system-ui, sans-serif); cursor: pointer; }
.pj6-field select, .pj6-field input, .pj6-field textarea { width: 100%; box-sizing: border-box; min-height: 44px; }
/* A core layer is the prototype's one row (.layer .l2: material, mm and % as 1.6fr 1fr 1fr). Lane 4's row is two columns, so
   with the % box in it the row takes a third; the box fills its cell. */
html[data-pj="on"] body #journey .pj-roofs .pj-layer-fields:has(.pj6-moist) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
.pj6-moist { min-width: 0; }
.pj6-moist input { width: 100%; box-sizing: border-box; min-height: 44px; }
html[data-pj="on"] body #journey .pj-roofs .pj-layer-fields:has(.pj6-moist) .pj-unit input:not([type="checkbox"]):not([type="file"]) { padding-right: 34px; padding-left: 8px; }
.pj6-span { grid-column: 1 / -1; }

html[data-pj="on"] body #journey .pj-roofs .pj-roof-details { gap: 12px; }
html[data-pj="on"] body #journey .pj-roofs .pj-roof-details > .pj-field { grid-column: 1 / -1; }
html[data-pj="on"] body #journey .pj-roofs .pj-roof-details > .pj6-half { grid-column: auto; }
html[data-pj="on"] body #journey .pj6-pick { position: relative; display: block; min-width: 0; }
html[data-pj="on"] body #journey .pj6-pick-value { display: block; box-sizing: border-box; min-height: 44px; padding: 10px 36px 10px 12px; border: 1px solid var(--nest-line, #c9cfc9); border-radius: 2px; background: white; line-height: 1.3; overflow-wrap: anywhere; }
html[data-pj="on"] body #journey .pj6-pick-value::after { content: '▾'; position: absolute; right: 12px; top: 10px; color: var(--nest-teal, #1f5c5b); }
html[data-pj="on"] body #journey .pj6-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
html[data-pj="on"] body #journey .pj6-pick:focus-within { outline: 2px solid var(--nest-teal, #1f5c5b); }
/* Give the material value the full row so long component names remain readable. */
html[data-pj="on"] body #journey .pj-roofs .pj-layer-fields:has(.pj6-moist) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-pj="on"] body #journey .pj-roofs .pj-layer-fields > .pj-layer-field:first-child { grid-column: 1 / -1; }
