/* ============================================================================
   SETUP → MY SETUP IN THE NEW LOOK, AND ONE FRAME FOR EVERY SETUP VIEW — the owner's list of 18 Nov 2026 (D-0471 ¶22, R-729: "This
   window still has old themed blocks and windows and buttons. Also … the switch between the 2 windows are not smooth, the alignment
   of the screen is off."). NEW PACE ONLY: every rule starts with html[data-new-pace]. Script: 69 (unchanged but one class), 99i
   (tags each view's outer box data-setup-view).
     · ONE FRAME: My Setup was drawn in 69's frame (.pg > .pg-body: 18px in), My Profile and Admin in the older one (.page: 22px/26px)
       — the chips moved 26px sideways and 22px down between views. All of them now take the places' frame (as Insights): the chips
       at the content's edge, the first card under them; "My Profile · Your account details" is not repeated under the chip that
       says it;
     · My Setup's blocks (their only look was retro.css: dashed rows, square ticks, 2px boxes, square tags): the steps a quiet list
       with hairlines and a round tick in the person's colour when done; each mailbox a hairline card, its address large, its line
       in the second text colour, "Connected" the green chip used elsewhere, the actions outline buttons with Remove last, in red.
   Guard: test/setup-place-smoke.mjs (no hard 2px or dashed border on My Setup; the chips and the content's edge do not move).
   ============================================================================ */
html[data-new-pace] .page[data-setup-view]{padding:0 0 var(--np-space-7)}
html[data-new-pace] .pg[data-setup-view] > .pg-body{padding:0 0 var(--np-space-7)}
html[data-new-pace] [data-setup-view="profile"] > .ph{display:none}
/* the chips' own margins collapse through a block frame (.page) but not a flex one (.pg) — 14px apart; set on the row instead */
html[data-new-pace] [data-setup-view] > .setup-place{margin:var(--np-space-3) 0 var(--np-space-4)}
html[data-new-pace] [data-setup-view] > .setup-place > .np-chips{margin:0}

/* section headings: the same size as the first card's ("Your mailboxes" was 14px) */
html[data-new-pace] [data-setup-view="mysetup"] .fd-form > .fd-row > .fs-14.fd-strong,html[data-new-pace] [data-setup-view="mysetup"] .fd-form > .fd-row > div > .fs-14.fd-strong{font:700 var(--np-text-xl)/1.3 var(--font);color:var(--fx-text)}

/* the steps: a quiet list */
html[data-new-pace] .ms-step{gap:var(--np-space-3_5);padding:var(--np-space-3) 0;border-top:1px solid var(--border)}
html[data-new-pace] .ms-step:first-of-type{border-top:0}
html[data-new-pace] .fd-hint + .ms-step{margin-top:var(--np-space-2)}
html[data-new-pace] .ms-num{width:28px;height:28px;border:1px solid var(--border2);border-radius:50%;background:transparent;color:var(--fx-text2);font:700 var(--np-text-md)/1 var(--font)}
html[data-new-pace] .ms-step.is-done .ms-num{background:var(--fx-main);border-color:transparent;color:var(--fx-on-main)}
html[data-new-pace] .ms-step .fd-strong{font:600 var(--np-text-lg)/1.3 var(--font)}

/* each mailbox: a hairline card row */
html[data-new-pace] .ms-box{gap:var(--np-space-2_5);margin:var(--np-space-3) 0 0;padding:var(--np-space-4) var(--np-space-4_5);border:1px solid var(--border);border-radius:var(--np-round-lg);background:var(--card-solid);box-shadow:none}
html[data-new-pace] .ms-box .fs-14.fd-strong{font:600 var(--np-text-lg)/1.3 var(--font);overflow-wrap:anywhere}
html[data-new-pace] .ms-box .fd-hint{color:var(--fx-text2)}
html[data-new-pace] .ms-for{font:400 var(--np-text-md)/1.5 var(--font);color:var(--fx-text2)}
html[data-new-pace] .ms-for strong{color:var(--fx-text);font-weight:600}
html[data-new-pace] .ms-for.is-none{background:transparent;color:var(--fx-amber)}
html[data-new-pace] .ms-for.is-none strong{color:var(--fx-amber)}
html[data-new-pace] .ms-tag{padding:var(--np-space-0_5) var(--np-space-2_5);border:0;border-radius:var(--np-round-pill);font:700 var(--np-text-sm)/1.4 var(--font);background:var(--hover);color:var(--fx-text2)}
html[data-new-pace] .ms-tag.is-ok{color:var(--fx-green);background:color-mix(in srgb,var(--fx-green) 15%,transparent)}
html[data-new-pace] .ms-tag.is-warn{color:var(--fx-amber);background:color-mix(in srgb,var(--fx-amber) 15%,transparent)}
html[data-new-pace] .ms-box > .fd-row:last-child{gap:var(--np-space-2);flex-wrap:wrap}
html[data-new-pace] .ms-box .btn.ms-remove{margin-left:auto;color:var(--fx-red)}

/* the sender & signature window's parts */
html[data-new-pace] .ms-preview{border:1px solid var(--border);border-radius:var(--np-round-lg);padding:var(--np-space-3) var(--np-space-3_5)}
html[data-new-pace] .ms-toolbar{gap:var(--np-space-1);border:1px solid var(--border);border-bottom:0;border-radius:var(--np-round-lg) var(--np-round-lg) 0 0;padding:var(--np-space-1_5) var(--np-space-2)}
html[data-new-pace] .ms-toolbar + .ms-preview{border-radius:0 0 var(--np-round-lg) var(--np-round-lg)}
html[data-new-pace] .ms-tb{border:1px solid var(--border2);border-radius:var(--np-round-sm);background:var(--card-solid)}
html[data-new-pace] .ms-logo-thumb,html[data-new-pace] .ms-swatch{border:1px solid var(--border);border-radius:var(--np-round-sm)}

/* R-2070: the signature's two choices ("PACE builds it" / "Paste my own"), the box, and the notes under it */
html[data-new-pace] .ms-sig-seg{display:grid;width:100%;margin:var(--np-space-1) 0 var(--np-space-2)}
html[data-new-pace] .ms-sig-seg > button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--np-space-0_5);padding:var(--np-space-2) var(--np-space-3);white-space:normal;text-align:center}
html[data-new-pace] .ms-sig-seg small{font:400 var(--np-text-min)/1.3 var(--font);color:var(--fx-text2)}
html[data-new-pace] .ms-sig.is-own{border-style:dashed;border-width:2px}
html[data-new-pace] .ms-sig.is-built{cursor:default}
html[data-new-pace] .ms-tb-end{margin-left:auto}
html[data-new-pace] .ms-sig-was{background:color-mix(in srgb,var(--fx-amber) 14%,var(--card-solid))}
html[data-new-pace] .ms-sig table{width:auto;table-layout:auto}   /* a pasted signature keeps its own widths (the app styles a table to fill its box) */

/* R-2071: the mailbox's other signatures, each with a title, and which one New emails / Replies start with */
html[data-new-pace] .ms-other-label{margin-top:var(--np-space-5)}
html[data-new-pace] .ms-other{border:1px solid var(--border);border-radius:var(--np-round-lg);padding:var(--np-space-2_5) var(--np-space-3);background:var(--card-solid);margin-top:var(--np-space-2)}
html[data-new-pace] .ms-other-hd{gap:var(--np-space-2);margin-bottom:var(--np-space-2)}
html[data-new-pace] .ms-other-hd > .fd-strong{margin-right:auto}
html[data-new-pace] .ms-other-show{min-height:0;max-height:140px;overflow:auto}
html[data-new-pace] .ms-other.is-editing{border-style:dashed}
html[data-new-pace] .ms-other.is-editing #ms-other-editor{min-height:84px}
html[data-new-pace] .ms-other-btns{justify-content:flex-end;gap:var(--np-space-2);margin-top:var(--np-space-2)}
html[data-new-pace] .ms-other-add{margin-top:var(--np-space-2_5)}
html[data-new-pace] .ms-other-defs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--np-space-2_5)}
html[data-new-pace] .ms-other-def{display:flex;flex-direction:column;gap:var(--np-space-1)}
