/* Transaction Pipeline deal page and new-deal wizard (see app.js renderAgentPropertyEdit
   and renderNewDealWizard). Designed in Figma: page "Transaction Pipeline", frames
   "Deal page / top", "Deal page / bottom" and "New deal wizard". Every colour is a
   money.css token so the pages follow the app's light and dark themes. */

/* ---- page ---- */
.pd, .ndw { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pd-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--m-muted); align-self: flex-start; }
.pd-back:hover { color: var(--m-ink); }
.pd-back svg.i { width: 14px; height: 14px; }
.pd-card { min-width: 0; }
.pd-card.flush > .m-card-head { padding: 16px 20px 0; }
.pd-body { padding: 0 20px 16px; }
.pd-card-foot { padding: 12px 20px; border-top: 1px solid var(--m-line-soft); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-card-foot .grow { flex: 1; }
.pd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pd-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.pd-note { font-size: 11.5px; color: var(--m-faint); line-height: 1.55; }
.pd-note code { font-size: 11px; background: var(--m-surface-2); padding: 1px 5px; border-radius: 4px; }
.pd-link { color: var(--m-accent); font-weight: 500; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; }
.pd-link:hover { text-decoration: underline; }
.pd-link.muted { color: var(--m-faint); font-weight: 400; }
.pd-x { color: var(--m-faint); }
.pd-x:hover { color: var(--m-neg); }
.pd .hidden-file-input { display: none; }
.pd .site-link { color: var(--m-accent); }
.pd .empty-note, .ndw .empty-note { color: var(--m-faint); font-size: 12.5px; }
.pd-sep { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--m-line-soft); font-size: 12.5px; color: var(--m-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pd-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.ndw-client { margin-top: 10px; }

/* ---- hero ---- */
.pd-hero { display: flex; gap: 24px; align-items: flex-start; padding: 22px 24px; flex-wrap: wrap; }
.pd-hero-main { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 6px; }
.pd-eyebrow { font-size: 12px; font-weight: 500; color: var(--m-faint); }
.pd-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-titlerow .m-title { word-break: break-word; }
.pd-sub { font-size: 13px; color: var(--m-muted); overflow-wrap: anywhere; }
.pd-stats { display: flex; gap: 14px 40px; flex-wrap: wrap; padding-top: 14px; }
.pd-stat .lbl { font-size: 11.5px; font-weight: 500; color: var(--m-faint); }
.pd-stat .v { font-size: 19px; font-weight: 700; margin-top: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-stat .v.accent { color: var(--m-accent); } .pd-stat .v.warn { color: var(--m-warn); } .pd-stat .v.neg { color: var(--m-neg); } .pd-stat .v.pos { color: var(--m-pos); } .pd-stat .v.faint { color: var(--m-faint); font-weight: 600; }

/* ---- stage stepper ---- */
.pd-steps { overflow-x: auto; margin: 0 -4px; padding: 6px 4px 2px; }
.pd-stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); }
.pd-step { display: flex; flex-direction: column; gap: 8px; padding-right: 10px; min-width: 0; }
.pd-step .rail { display: flex; align-items: center; gap: 6px; }
.pd-step .dot { width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--m-surface); color: var(--m-faint); border: 1.5px solid var(--m-line); }
.pd-step .dot svg.i { width: 12px; height: 12px; stroke-width: 2.6; }
.pd-step .bar { flex: 1; height: 2px; border-radius: 1px; background: var(--m-line); }
.pd-step:last-child .bar { display: none; }
.pd-step .nm { font-size: 11.5px; font-weight: 500; color: var(--m-muted); line-height: 1.3; }
.pd-step .dt { font-size: 11px; color: var(--m-faint); }
.pd-step.done .dot { background: var(--m-pos); border-color: var(--m-pos); color: #fff; }
.pd-step.done .bar { background: var(--m-pos); }
.pd-step.done .nm { color: var(--m-ink); }
.pd-step.current .dot { background: var(--m-accent); border-color: var(--m-accent); color: #fff; box-shadow: 0 0 0 4px var(--m-accent-soft); }
.pd-step.current .nm { color: var(--m-ink); font-weight: 600; }
.pd-step.current .dt { color: var(--m-accent); font-weight: 600; }
.pd-step.na .dot { background: var(--m-surface-2); border-style: dashed; }
.pd-step.na .bar { background: color-mix(in srgb, var(--m-pos) 50%, transparent); }
.pd-step.na .nm { text-decoration: line-through; text-decoration-color: var(--m-faint); }

/* ---- key dates ---- */
.pd-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pd-tile { border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; background: var(--m-surface); }
.pd-tile .lbl { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--m-faint); line-height: 1.3; }
.pd-tile .val { font-size: 18px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pd-tile .val.none { font-size: 14px; font-weight: 600; color: var(--m-faint); }
.pd-tile.current { border-color: var(--m-accent); box-shadow: inset 0 0 0 .5px var(--m-accent); }
.pd-tile.na { background: color-mix(in srgb, var(--m-surface-2) 60%, transparent); border-style: dashed; }
.pd-tile.na .val { color: var(--m-faint); }
.pd-tile input { width: 100%; font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); outline: none; }
.pd-tile input:focus { border-color: var(--m-accent); box-shadow: 0 0 0 3px var(--m-accent-soft); }

/* ---- next tasks ---- */
.pd-tasks { display: flex; flex-direction: column; }
.pd-task { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--m-line-soft); min-width: 0; }
.pd-task .box { width: 15px; height: 15px; border: 1.5px solid var(--m-line); border-radius: 4px; flex-shrink: 0; background: var(--m-surface); }
.pd-task .main { flex: 1; min-width: 0; }
.pd-task .t { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.pd-task .s { font-size: 11px; color: var(--m-faint); margin-top: 2px; overflow-wrap: anywhere; }
.pd-task .when { font-size: 11.5px; color: var(--m-muted); white-space: nowrap; }
.pd-task.empty { color: var(--m-faint); font-size: 12.5px; }

/* ---- email drafts (tcDraftHtml markup, shared with the drafts page) ---- */
.pd-drafts { display: flex; flex-direction: column; gap: 10px; }
.pd .tp-drafts { background: transparent; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 10px; }
.pd .tp-draft { background: color-mix(in srgb, var(--m-surface-2) 70%, transparent); border: 1px solid var(--m-line-soft); border-radius: 10px; padding: 12px 14px; }
.pd .tp-draft .subj { font-size: 13px; font-weight: 600; color: var(--m-ink); }
.pd .tp-draft .to { font-size: 12px; color: var(--m-muted); word-break: break-word; }
.pd .tp-draft .when { font-size: 11.5px; color: var(--m-faint); }
.pd .tp-draft .acts { gap: 6px; margin-top: 10px; }
.pd .tp-draft .tp-btn { font-size: 12px; padding: 6px 10px; border-radius: 8px; font-weight: 500; }
.pd .tp-draft textarea, .pd .tp-draft input.subj-edit { background: var(--m-surface); color: var(--m-ink); border-color: var(--m-line); }
.pd .tp-draft-empty { padding: 12px 14px; font-size: 12.5px; color: var(--m-faint); background: color-mix(in srgb, var(--m-surface-2) 60%, transparent); border-radius: 10px; }
.pd .tp-note { font-size: 11.5px; color: var(--m-faint); margin-top: 0; }
.pd .tp-note code { background: var(--m-surface-2); }

/* ---- people on the deal ---- */
.pd-parties { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pd-party { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--m-line); border-radius: 12px; min-width: 0; }
.pd-party .av { width: 34px; height: 34px; border-radius: 999px; background: var(--m-accent-soft); color: var(--m-accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.pd-party .main { min-width: 0; flex: 1; }
.pd-party .role { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--m-faint); display: flex; align-items: center; gap: 6px; }
.pd-party .nm { font-size: 13px; font-weight: 600; margin-top: 2px; word-break: break-word; }
.pd-party .ln { font-size: 11.5px; color: var(--m-muted); margin-top: 1px; word-break: break-word; }
.pd-party .ln a { color: var(--m-accent); }
.pd-party.missing { border-style: dashed; background: color-mix(in srgb, var(--m-surface-2) 60%, transparent); align-items: center; }
.pd-party.missing .av { background: var(--m-surface); color: var(--m-faint); border: 1px solid var(--m-line); font-size: 15px; font-weight: 600; }

/* ---- tabs ---- */
.pd-tabs { margin-top: 4px; }

/* ---- fields and add forms ---- */
.pd-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.pd-fields + .pd-fields { margin-top: 10px; }
.pd-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pd-field > span { font-size: 11px; font-weight: 500; color: var(--m-muted); }
.pd-field.wide { grid-column: 1 / -1; }
.pd-field input:not([type=checkbox]):not([type=file]), .pd-field select, .pd-field textarea, .ndw textarea {
  width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); outline: none; min-width: 0;
}
.pd-field input:focus, .pd-field select:focus, .pd-field textarea:focus, .ndw textarea:focus { border-color: var(--m-accent); box-shadow: 0 0 0 3px var(--m-accent-soft); }
.pd-field input[type=file] { font-size: 12px; color: var(--m-muted); max-width: 100%; }
.pd-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--m-muted); cursor: pointer; }
.pd-check input { width: 15px; height: 15px; accent-color: var(--m-accent); }
.pd-add { border: 1.5px dashed var(--m-line); border-radius: 12px; padding: 14px 16px; background: color-mix(in srgb, var(--m-surface-2) 50%, transparent); display: flex; flex-direction: column; gap: 12px; }
.pd-add-head { display: flex; align-items: center; gap: 10px; }
.pd-add-head .t { font-size: 13px; font-weight: 600; }
.pd-add-head .s { font-size: 11.5px; color: var(--m-muted); margin-top: 1px; }
.pd-add-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-card > .pd-add, .pd-body > .pd-add { margin-top: 14px; }
.pd-card-foot .pd-add { flex: 1; }

/* tables of editable rows */
.pd .m-table td { vertical-align: middle; }
.pd .m-table input[type=text], .pd .m-table input[type=number], .pd .m-table input[type=email], .pd .m-table select { width: 100%; }
.pd .m-table input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--m-accent); }
.pd-table .c-file { white-space: nowrap; }
.pd-table .c-file .pd-link + .pd-link { margin-left: 10px; }
.pd-table .c-act { width: 40px; text-align: right; }

/* ---- stage editor (details tab) ---- */
.pd-stage-list { display: flex; flex-direction: column; margin-top: 12px; }
.pd-stage-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 130px auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--m-line-soft); }
.pd-stage-row .dot { width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--m-line); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.pd-stage-row .dot svg.i { width: 11px; height: 11px; stroke-width: 2.6; }
.pd-stage-row.done .dot { background: var(--m-pos); border-color: var(--m-pos); }
.pd-stage-row.current .dot { background: var(--m-accent); border-color: var(--m-accent); }
.pd-stage-row .nm { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-stage-row input { width: 100%; font: inherit; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); }
@media (max-width: 620px) { .pd-stage-row { grid-template-columns: 22px minmax(0, 1fr); } .pd-stage-row input, .pd-stage-row .m-btn { grid-column: 2; justify-self: start; } }

/* ---- client updates feed ---- */
.pd-feed { display: flex; flex-direction: column; margin-top: 12px; }
.pd-feed-row { display: grid; grid-template-columns: 8px 76px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--m-line-soft); }
.pd-feed-row .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--m-accent); }
.pd-feed-row input { width: 100%; font: inherit; font-size: 12.5px; padding: 5px 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--m-ink); }
.pd-feed-row input.date { font-size: 11.5px; font-weight: 600; color: var(--m-faint); }
.pd-feed-row input:hover, .pd-feed-row input:focus { border-color: var(--m-line); background: var(--m-surface); outline: none; }
.pd-composer { display: flex; gap: 8px; align-items: center; }
.pd-composer input { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-surface); color: var(--m-ink); outline: none; }
.pd-composer input:focus { border-color: var(--m-accent); box-shadow: 0 0 0 3px var(--m-accent-soft); }

/* ---- offers ---- */
/* app.js paints the zone's inline colours while a file is dragged over it; the
   tokens win here, and the "dragging" colour it sets is picked up as a highlight. */
.pd-drop { border: 1.5px dashed color-mix(in srgb, var(--m-accent) 45%, transparent) !important; background: color-mix(in srgb, var(--m-accent-soft) 55%, transparent) !important; border-radius: 12px; padding: 18px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: border-color .15s, background .15s; }
.pd-drop[style*="111, 143, 79"], .pd-drop[style*="6f8f4f"] { border-color: var(--m-accent) !important; background: var(--m-accent-soft) !important; }
.pd-drop .t { font-size: 13.5px; font-weight: 600; }
.pd-drop .s { font-size: 12px; color: var(--m-muted); max-width: 520px; line-height: 1.5; }
.pd-drop .m-btn { margin-top: 8px; }
.pd-drop .hint { font-size: 11px; color: var(--m-faint); margin-top: 4px; }
.pd-offers { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.pd-offer { border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pd-offer.rec { border-color: var(--m-accent); box-shadow: inset 0 0 0 .5px var(--m-accent); }
.pd-offer-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-offer-top .pd-field { flex: 1; min-width: 200px; }
.pd-offer-top .acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pd-net { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--m-muted); padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--m-pos-soft) 60%, transparent); }
.pd-net b { font-size: 15px; color: var(--m-pos); font-variant-numeric: tabular-nums; }
.pd-net .k { color: var(--m-faint); font-size: 11.5px; }

/* net sheet summary (netSheetSummaryHtml is shared with the client card and
   uses inline light colours, so they are mapped onto tokens here) */
.pd-ns div { color: var(--m-ink) !important; border-color: var(--m-line) !important; }
.pd-ns div[style*="font-size:12px"], .pd-ns div[style*="font-size:11.5px"], .pd-ns span[style*="color"] { color: var(--m-faint) !important; }
.pd-ns div[style*="font-size:19px"] { color: var(--m-pos) !important; }
.pd-ns div[style*="border-top:2px"] { border-top-color: var(--m-ink) !important; }

/* showings, open houses */
.pd-blocks { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.pd-block { border: 1px solid var(--m-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pd-block-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-block-top .grow { flex: 1; }
.pd-details summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--m-muted); padding: 2px 0; }
.pd-details[open] summary { margin-bottom: 10px; }
.pd-details .pd-sublabel { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--m-faint); margin: 10px 0 6px; }
.pd-review { padding: 8px 0; border-top: 1px solid var(--m-line-soft); display: flex; gap: 10px; align-items: flex-start; }
.pd-review .main { flex: 1; min-width: 0; }
.pd-review .nm { font-size: 12.5px; font-weight: 600; }
.pd-review .stars { color: var(--m-warn); margin-left: 6px; letter-spacing: 1px; }
.pd-review .tx { font-size: 12px; color: var(--m-muted); margin-top: 2px; }

/* e-signature rows and legacy cards that are shared with the client views */
.pd .pill { background: var(--m-surface-2); color: var(--m-muted); }
.pd .pill.Signed, .pd .pill.Toured, .pd .pill.Confirmed { background: var(--m-pos-soft); color: var(--m-pos); }
.pd .pill.Awaiting, .pd .pill.Requested { background: var(--m-warn-soft); color: var(--m-warn); }
.pd .pill.Scheduled { background: var(--m-accent-soft); color: var(--m-accent); }
.pd .pill.Declined { background: var(--m-neg-soft); color: var(--m-neg); }
.pd-legacy .card { border-radius: 14px; padding: 18px 20px; }
.pd-legacy .update-mini { border-color: var(--m-line-soft); }
.pd-legacy .update-mini .who, .pd-legacy .update-mini .txt { color: var(--m-ink); }
.pd-legacy .showing-form input, .pd-legacy .showing-form select { background: var(--m-surface) !important; color: var(--m-ink) !important; border-color: var(--m-line) !important; }
.pd-legacy .showing-form button { background: var(--m-accent); color: #fff; border: 0; border-radius: 8px; }

/* ---- new deal wizard ---- */
.ndw-body { display: grid; grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ndw-rail { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.ndw-rail .m-sectionlabel { padding: 0 8px 6px; }
.ndw-step { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; min-width: 0; }
.ndw-step .dot { width: 24px; height: 24px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 1.5px solid var(--m-line); color: var(--m-faint); background: var(--m-surface); }
.ndw-step .dot svg.i { width: 12px; height: 12px; stroke-width: 2.6; }
.ndw-step .main { min-width: 0; }
.ndw-step .t { font-size: 12.5px; font-weight: 600; }
.ndw-step .s { font-size: 11px; color: var(--m-faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ndw-step.done .dot { background: var(--m-pos); border-color: var(--m-pos); color: #fff; }
.ndw-step.current { background: var(--m-accent-soft); }
.ndw-step.current .dot { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.ndw-step.current .t { color: var(--m-accent); }
.ndw-step.warn .dot { background: var(--m-warn); border-color: var(--m-warn); color: #fff; }
.ndw-step.warn .s { color: var(--m-warn); }
.ndw-step.todo .t { color: var(--m-muted); }
.ndw-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ndw-paste { width: 100%; min-height: 260px; resize: vertical; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 12.5px !important; }
.ndw-sublabel { font-size: 11.5px; font-weight: 500; color: var(--m-faint); margin: 14px 0 8px; }
.ndw-dates { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ndw-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ndw-foot .grow { flex: 1; }
.ndw-sum { position: sticky; top: 76px; display: flex; flex-direction: column; }
.ndw-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--m-line-soft); font-size: 12px; }
.ndw-kv span { color: var(--m-muted); flex-shrink: 0; }
.ndw-kv b { font-weight: 600; text-align: right; min-width: 0; word-break: break-word; }
.ndw-kv b.none { color: var(--m-faint); font-weight: 500; }
.ndw-start { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--m-accent-soft); color: var(--m-accent); font-size: 12px; font-weight: 500; }
.ndw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ndw-list li { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid var(--m-line-soft); font-size: 12.5px; color: var(--m-muted); }
.ndw-list li svg.i { color: var(--m-pos); width: 14px; height: 14px; }
.ndw .m-warn { margin-top: 10px; }

/* ---- narrow screens ---- */
@media (max-width: 1100px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .ndw-body { grid-template-columns: minmax(0, 1fr); }
  .ndw-rail, .ndw-sum { position: static; }
  .ndw-rail { flex-direction: row; overflow-x: auto; }
  .ndw-rail .m-sectionlabel { display: none; }
  .ndw-step { flex-shrink: 0; }
}
@media (max-width: 980px) { .pd-two { grid-template-columns: minmax(0, 1fr); } }
/* On a phone five labelled steps do not fit a row, and the third one was cut
   off at the edge. Show the steps as numbered dots and name only the one
   you are on. */
@media (max-width: 700px) {
  .ndw-rail { overflow: hidden; gap: 6px; align-items: center; }
  .ndw-step { padding: 6px; flex-shrink: 1; }
  .ndw-step:not(.current) .main { display: none; }
  .ndw-step.current { flex: 1 1 auto; }
  .ndw-step.current .s { display: none; }
}
@media (max-width: 620px) {
  .pd-hero { padding: 18px; }
  .pd-stats { gap: 12px 24px; }
  .pd-feed-row { grid-template-columns: 8px 64px minmax(0, 1fr) auto; }
}
