/* Products and Watch dialogs (public/rooms/products.js, public/rooms/watch.js). The pages themselves are built from the
   one-glance pieces (public/rooms/room-fit.js, room-layout.css .rv-g-*); what is here dresses the content of their
   centred dialogs (public/room-ui.js openDialog): the facts, the timelines, the fixes' Yes / No, Coverage's steps and
   the Products filter and folded sections. Theme tokens only (public/theme.css). */
.pw-d *{box-sizing:border-box}
:where(.pw-d) :where(h1,h2,h3,p,ol,ul,dl,dd){margin:0;padding:0}
:where(.pw-d) :where(ol,ul){list-style:none}
:where(.pw-d) button{font:inherit;color:inherit;background:none;border:0;text-align:left;cursor:pointer}
.pw-d .mono{font-family:var(--mono);font-size:var(--t-meta);letter-spacing:0;font-variant-numeric:tabular-nums}
.pw-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border-radius:var(--r-ctl);color:var(--ink);font-weight:var(--w-mid);white-space:nowrap;text-decoration:none}
.pw-btn:hover{text-decoration:underline;text-underline-offset:3px}
.pw-btn.pri{background:var(--accent);color:var(--accent-ink)}
.pw-btn b{color:var(--muted);font:var(--w-mid) var(--t-meta)/20px var(--body)}
.pw-btn[disabled]{opacity:.55;cursor:default}
.pw-chev{flex:none;width:16px;height:16px;color:var(--muted)}
.pw-facts{margin-top:12px;border-top:1px solid var(--line)}
.pw-facts > div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:8px 0;border-bottom:1px solid var(--line)}
.pw-facts dt{color:var(--muted);flex:none}
.pw-facts dd{text-align:right;min-width:0;overflow-wrap:break-word}
.pw-facts dd b{font-weight:var(--w-strong)}
.pw-facts dd span{display:block;color:var(--muted)}

/* Dialog content (inside room-ui's .rv-dialog) */
.pw-d{line-height:24px}
.pw-d h3{font:var(--w-strong) var(--t-section)/24px var(--display);color:var(--ink);margin:24px 0 8px}
.pw-d > h3:first-child,.pw-d > .pw-lede:first-child{margin-top:0}
.pw-d .pw-facts{margin-top:8px}
.pw-d .pw-lede{color:var(--muted)}
.pw-d .pw-lede b{color:var(--ink);font-weight:var(--w-strong)}
.pw-d a{color:var(--accent);text-underline-offset:4px}
.pw-d .pw-link{display:inline-flex;align-items:center;min-height:44px}
.pw-d .pw-item{padding:12px 0;border-bottom:1px solid var(--line)}
.pw-d .pw-item:first-of-type{border-top:1px solid var(--line)}
.pw-d .pw-item > p:first-child{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px}
.pw-d .pw-item .k{font-weight:var(--w-mid);overflow-wrap:break-word}
.pw-d .pw-item .v{color:var(--muted);text-align:right}
.pw-d .pw-item .v b,.pw-d .pw-item .k b{color:var(--ink);font-weight:var(--w-strong)}
.pw-d .pw-item .w{margin-top:12px;color:var(--muted)}
.pw-d .pw-item .w+.w{margin-top:4px}
.pw-d .pw-tl{margin-top:8px;padding-left:12px;border-left:2px solid var(--line)}
.pw-d .pw-tl li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:0 16px;padding:4px 0}
.pw-d .pw-tl li > span:first-child{min-width:0;overflow-wrap:break-word}
.pw-d .pw-tl li > span + span{color:var(--muted)}
.pw-d .pw-tl li.now > span:first-child{font-weight:var(--w-strong)}
.pw-d .pw-tl .lk{color:var(--accent)}
.pw-d .pw-more{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:16px;color:var(--muted)}
.pw-d .pw-more b{color:var(--ink);font-weight:var(--w-strong)}
.pw-d.pw-filter{display:flex;flex-direction:column;gap:20px}
.pw-d.pw-filter label{display:flex;flex-direction:column;gap:8px;color:var(--muted)}
.pw-d.pw-filter input{min-height:44px;padding:0 12px;border:1px solid var(--line2);border-radius:8px;background:var(--bg);color:var(--ink)}
.pw-d.pw-filter fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.pw-d.pw-filter legend{padding:0 0 8px;color:var(--muted)}
.pw-d.pw-filter fieldset button{min-height:44px;padding:0 14px;border-radius:8px;border:1px solid var(--line2);color:var(--muted);font-weight:var(--w-mid)}
.pw-d.pw-filter fieldset button[aria-pressed=true]{border-color:var(--ink);background:var(--bg3);color:var(--ink)}

/* Watch's fixes: the owner's Yes / No, unchanged in meaning (a pressed Yes is the one accent: armed) */
.pw-d .fx{padding:12px 0;border-bottom:1px solid var(--line)}
.pw-d .fx .fw{font-weight:var(--w-mid);overflow-wrap:break-word}
.pw-d .fx[data-state=never] .fw::after{content:" · waiting on you";font-weight:var(--w-row);color:var(--muted)}
.pw-d .fx .fr{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:8px}
.pw-d .yn{display:flex;gap:8px}
.pw-d .ctl{min-height:44px;min-width:72px;padding:0 16px;border-radius:10px;border:1px solid var(--line2);background:none;color:var(--muted);font-weight:var(--w-mid);text-align:center}
.pw-d .ctl:hover{color:var(--ink)}
.pw-d .ctl[aria-pressed=true]{color:var(--ink);border-color:var(--muted)}
.pw-d .ctl[data-answer=yes][aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.pw-d .fm{display:flex;flex-wrap:wrap;gap:0 12px;color:var(--muted);font-family:var(--body);font-size:var(--t-row)}
.pw-d .fm b{font-weight:var(--w-strong);color:var(--ink)}
.pw-d .fp{margin-top:24px;font:var(--w-mid) var(--t-meta)/16px var(--body);color:var(--muted)}
.pw-d .fp:first-child{margin-top:0}

/* Coverage's steps, in a business's dialog and a step's own. State is fill, edge and shape, never colour alone: on
   time a filled mark, late a half-filled one, never heard an empty dashed box; a failing step is set in ink */
.pw-cov-ink{color:var(--ink);font-weight:var(--w-strong)}
.pw-cov-m{flex:none;display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;border:1px solid var(--muted);border-radius:2px}
:is([data-state=lit] > .pw-cov-m,.pw-cov-m[data-state=lit]){background:var(--muted)}
:is([data-state=dim] > .pw-cov-m,.pw-cov-m[data-state=dim]){background:linear-gradient(to top,var(--muted) 50%,transparent 50%)}
:is([data-state=dark] > .pw-cov-m,.pw-cov-m[data-state=dark]){border-style:dashed}
:is([data-failing] > .pw-cov-m){background:var(--ink);border-color:var(--ink)}
.pw-cov-d h3{margin-top:20px}
.pw-cov-steps{border-bottom:1px solid var(--line)}
.pw-d .pw-cov-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto 16px;align-items:center;column-gap:12px;width:100%;min-height:48px;padding:12px 0;border-top:1px solid var(--line);color:var(--ink);text-align:left;line-height:20px}
.pw-d .pw-cov-step .pw-cov-m{margin:0}
.pw-d .pw-cov-step:hover .pw-cov-sw{text-decoration:underline;text-underline-offset:4px}
.pw-d .pw-cov-step[data-state=dark] .pw-cov-sw{color:var(--muted)}
.pw-cov-sw{min-width:0;overflow-wrap:break-word}
.pw-cov-sr{color:var(--muted);text-align:right}
.pw-cov-keyd{display:flex;flex-wrap:wrap;gap:4px 20px;margin-top:20px;color:var(--muted)}
.pw-cov-back{margin-top:20px}
@media (max-width:699px){
  .pw-d .pw-cov-step{line-height:24px;grid-template-columns:auto minmax(0,1fr) 16px;grid-template-areas:"m w c" ". s c";row-gap:0}
  .pw-d .pw-cov-step .pw-cov-m{grid-area:m}
  .pw-cov-sw{grid-area:w}
  .pw-cov-sr{grid-area:s;text-align:left}
  .pw-d .pw-cov-step > .pw-chev{grid-area:c}
}


/* THE MAP (public/rooms/products.js "the map"): Chris's six products as a day book's entries. One ruled line a product:
   its name at the left, then a mark in each department's column, the column heads written once above the lines. On a
   wide page Build's column holds its five, each under its own short head; under 720 of the page's width Build is one
   mark. A mark is its state in fill and shape, never colour alone: yes filled, partly half filled, no an empty ring.
   A product's own page shows its one line, without the name the headline already says. */
/* the width is shared out: the name a little wider than one mark's column, Build's five a column each */
.pr-helm{--pr-cn:minmax(160px,1.4fr);--pr-c1:minmax(0,1fr);--pr-c2:minmax(0,1fr);--pr-cb:minmax(0,5fr);display:flex;flex-direction:column;gap:4px;min-width:0}
.pr-hh,.pr-hr{display:grid;grid-template-columns:var(--pr-cn) var(--pr-c1) var(--pr-c2) var(--pr-cb);align-items:center;column-gap:0}
.pr-hh{align-items:end;color:var(--muted);font-size:var(--t-meta);line-height:16px;font-weight:var(--w-mid);text-align:center}
.pr-hh > span{padding-bottom:4px}
.pr-hbt{display:block;margin:0 0 4px;padding-bottom:4px;border-bottom:1px solid var(--line2)}
.pr-five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;justify-items:center;width:100%}
.pr-hh .pr-five > span{white-space:nowrap}
.pr-one{display:none}
.pr-hrows{border-block:1px solid var(--line)}
.pr-hr{min-height:48px}
.pr-hr + .pr-hr{border-top:1px solid var(--line)}
.pr-hr > [role=cell]{align-self:stretch;display:flex;align-items:center}
.pr-hn{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;min-width:0;padding:6px 12px 6px 0;text-align:left}
.pr-hr .pr-hn > :first-child{font-weight:var(--w-strong);color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
.pr-hr .pr-hn a:hover{text-decoration:underline;text-underline-offset:3px}
.pr-pk{color:var(--muted);font-size:var(--t-meta);line-height:16px}
.pr-hr.is-parked .pr-hn > :first-child{color:var(--muted)}
.pr-hl{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:2px;padding:0;border:0;border-radius:8px;background:none;color:var(--ink)}
.pr-hl:hover{background:var(--bg3)}
.pr-hl .pr-five > span{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px}
/* the mark: 12px, filled, half filled or an empty ring */
.pr-m{flex:none;display:inline-block;width:12px;height:12px;border-radius:50%;box-sizing:border-box}
.pr-m[data-s=yes]{background:var(--ink)}
.pr-m[data-s=partly]{background:linear-gradient(90deg,var(--ink) 50%,transparent 50%);box-shadow:inset 0 0 0 1.5px var(--ink)}
.pr-m[data-s=no]{box-shadow:inset 0 0 0 1.5px var(--muted)}
/* not read: a dash, never a No (DESIGN.md One glance 5) */
.pr-m[data-s=unread]{height:2px;border-radius:1px;background:var(--muted)}
/* a product's own page: its one line at the column's width, no name column (the headline says it) */
.pr-helm.is-solo :is(.pr-hh,.pr-hr){grid-template-columns:var(--pr-c1) var(--pr-c2) var(--pr-cb)}
/* Parked beside a parked product's headline, as on its line of the map */
.pr-hlpk{color:var(--muted);font-size:var(--t-row);line-height:20px}
.pr-helm.is-solo .pr-hn{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0 0 0 0)}
/* Websites, in its dialog: the Filter above the lights */
.pw-d .pr-st{display:flex;gap:8px;margin-bottom:16px}
/* the Review, History and Personal lists in their dialog take the page's phone layout when the dialog is narrow */
.pr-fold{container:glance / inline-size}
/* a count line that opens nothing is plain text: no hand, no underline */
.pr-page span.rv-g-cl{cursor:default}
.pr-page span.rv-g-cl:hover .rv-g-cll{text-decoration:none}
/* blue is the selected place and the main action only: a line that needs a look is said in ink */
.pr-page .rv-g-clv.need{color:var(--ink);font-weight:var(--w-strong)}
@container glance (max-width:719px){
  .pr-helm{--pr-cn:minmax(0,1fr);--pr-c1:48px;--pr-c2:68px;--pr-cb:48px}
  .pr-hr{min-height:44px}
  .pr-hn{column-gap:8px;padding-right:4px}
  .pr-hr .pr-hn > :first-child{overflow-wrap:normal}
  .pr-hbt{margin:0;padding:0;border:0}
  .pr-five{display:none}
  .pr-one{display:flex}
  .pr-hl{margin:0}
  /* a product's own page: its three marks share the column's width */
  .pr-helm.is-solo{--pr-c1:minmax(0,1fr);--pr-c2:minmax(0,1fr);--pr-cb:minmax(0,1fr)}
  /* on the phone the count lines stay one a row, each with its arrow, so every line that opens looks it */
  .pr-page .rv-g-counts{display:block}
  .pr-page .rv-g-counts li + li{border-top:1px solid var(--line)}
  .pr-page .rv-g-counts .rv-g-cl{flex-direction:row;align-items:center;gap:12px;min-height:44px;padding:0}
  .pr-page .rv-g-counts .rv-g-cl .rv-chev{display:block}
  .pr-page .rv-g-counts .rv-g-clv{max-width:60%;text-align:right;font-size:var(--t-row);line-height:20px}
  .pr-page .rv-g-counts .rv-g-wide{display:inline}
  .pr-page .rv-g-counts .rv-g-narrow{display:none}
}

/* a mark's reason, in its dialog: the mark, the words and why, the answer at the right; each part under its name */
.pw-d .pr-dl > li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;column-gap:12px;align-items:start;padding:10px 0;border-top:1px solid var(--line)}
.pw-d .pr-dl > li:last-child{border-bottom:1px solid var(--line)}
.pw-d > .pr-dl:first-child > li:first-child{border-top:0;padding-top:0}
.pr-dialog h2[tabindex='-1']:focus{outline:none}
.pw-d .pr-dl .pr-m{margin-top:6px}
.pr-dw b{display:block;font-weight:var(--w-mid)}
.pr-dw span{display:block;color:var(--muted)}
.pr-dv{color:var(--muted);text-align:right}
.pw-d .pr-who{margin-top:16px}
.pw-d h3.pr-ph{margin:24px 0 8px;font:var(--w-strong) var(--t-section)/24px var(--display);color:var(--ink)}
.pw-d h3.pr-ph span{margin-left:8px;font-weight:var(--w-row);font-size:var(--t-meta);color:var(--muted)}
/* an app's console links beside Back (Roque Ventures has two): they wrap rather than push the page sideways on a phone */
.rv-g-tools:has([data-console]){flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;row-gap:8px}

.wt-dialog .rv-dialog-head h2:focus {outline:none;}
