/* Settings v1 (Phase 1, task 2). Figma 18121:5238. DS classes first; every local rule is tagged DS-GAP (no DS component) or LAYOUT. */
html { font-synthesis-weight: none; }
:root { --set-pad: 40px; }
body.nuf { margin: 0; position: relative; min-height: 100vh; background: var(--surface-overlay-0); /* 2026-11-11 (Rijul): same near-white page as every app screen (was overlay-2 #EAEFEF) */ color: var(--type-primary); font: var(--body-md); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.nuf *, body.nuf *::before, body.nuf *::after { box-sizing: border-box; }
/* WP chrome (copied from nuf-v3 flow.css + prototype.css, fixed like real wp-admin) */
.nuf-wp-bar, .nuf-wp-side { position: fixed; background: #1E1E1E; /* DS-GAP: figma #1E1E1E */ font-family: Helvetica, Arial, sans-serif; }
.nuf-wp-bar { left: 0; top: 0; width: 100%; height: 32px; z-index: 50; }
.nuf-wp-side { left: 0; top: 0; bottom: 0; width: 160px; z-index: 40; }
.nuf-wp-active { position: absolute; left: 0; top: 226px; width: 160px; height: 34px; background: var(--button-primary); }
.nuf-wp-ico { position: absolute; display: block; max-width: none; }
.nuf-wp-lbl { position: absolute; font-size: 14px; line-height: 21px; color: var(--neutral-white); white-space: nowrap; }
.nuf-wp-lbl--on { font-weight: 500; }
.p-wp-toggle { display: none; }
main.set { margin: 32px 0 0 160px; max-width: 1280px; min-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface-overlay-0); }
:where(.set) :where(h1, h2, h3, p) { margin: 0; }
.set-nav { width: 100%; }
/* DS-GAP: active gear (Figma orange gear, no DS .on state on .ds-navicon) */
.ds-navicon.on { color: var(--brand-100); }
.ds-navicon.on:hover { color: var(--brand-100); }
.set-body { padding: 32px var(--set-pad) 32px; flex: 1; }
.set-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 60px; margin-bottom: 24px; } /* Figma 18121:6782: 60px row, gap 20, centred */
.set-head__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.set-h1 { font: var(--heading-xl); color: var(--type-primary); }
.set-sub { font: var(--body-md); color: var(--type-secondary); }
.set-tut { white-space: nowrap; }
.set-list { display: flex; flex-direction: column; gap: 16px; }
/* Text link at Figma size: button/med-14M, 14px icon, gap 5 (DS .lnk-wp is the 12px xs trigger link) */
.lnk-wp.set-lnk { cursor: pointer; font: var(--btn-md); gap: 5px; padding: 2px 4px; }
.lnk-wp.set-lnk .fa { width: 14px; height: 14px; }
.set-tut { gap: 4px; }
/* Section = DS .card; Figma 17882:17269: padding 24/20, header-to-body gap 24 */
.set-sec { display: flex; flex-direction: column; gap: 0; padding: 23px 19px; } /* Figma strokes sit inside: padding minus the DS 1px border keeps every inner offset */
.set-sec__head { display: flex; align-items: flex-start; gap: 20px; }
.set-sec__lead { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.set-sec__head .icotile { --icotile-size: 49px; flex: none; }
.set-sec__head .icotile > .fa { font-size: 16px; } /* Figma glyph 16px inside the 49px tile */
.set-sec__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.set-sec__title { display: flex; align-items: center; gap: 6px; font: var(--heading-md); color: var(--type-primary); }
.set-sec__desc { font: var(--body-md); color: var(--type-secondary); }
.set-sec__aside { display: flex; align-items: center; gap: 20px; flex: none; align-self: center; }
/* DS-GAP: stroked 32px collapse container (Figma 17882:17271: white, 1px stroke-tertiary, r4, FA caret 16px) */
.set-collapse.icon-only { flex: none; width: 32px; height: 32px; padding: 0; border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-sm); background: var(--surface-screen); color: var(--type-primary); font-size: 16px; }
.set-collapse.icon-only:hover { background: var(--surface-overlay-1); }
.set-sec.is-closed .set-collapse .fa { transform: rotate(180deg); }
.set-sec__body { display: grid; grid-template-rows: 1fr; } /* LAYOUT: motion.css animates the rows */
.set-sec__in { min-height: 0; }
.set-sec__c { display: flex; flex-direction: column; padding-top: 24px; } /* header-to-body gap 24 lives here so a collapsed body takes no space */

/* Providers (Figma 17890:1691): head row + rows, name column 220, gap 12 */
.set-thead { display: flex; align-items: center; gap: 12px; padding: 11px 16px; margin-bottom: 16px; background: var(--surface-overlay-0); border-top: 1px solid var(--stroke-tertiary); border-bottom: 1px solid var(--stroke-tertiary); font: var(--btn-sm); color: var(--type-tertiary); } /* DS-GAP: table head */
.set-th-n { flex: 0 0 220px; } .set-th-s { flex: 1; min-width: 0; } .set-th-x { flex: 0 0 20px; height: 19px; }
.set-plist { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.set-prow { list-style: none; display: flex; align-items: center; gap: 12px; padding: 15px; }
.set-prow__n { flex: 0 0 220px; display: flex; align-items: center; gap: 12px; min-width: 0; font: var(--heading-sm); color: var(--type-primary); }
.set-prow__n img { width: 40px; height: 40px; border-radius: var(--radius-sm); flex: none; object-fit: cover; }
.set-prow__s { flex: 1; min-width: 0; display: flex; align-items: center; height: 20px; }
.set-prow__a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 24px; }
.set-prow__a .btn-text.icon-only { width: 24px; height: 24px; padding: 0; color: var(--stroke-primary); } /* Figma 24px icon boxes */
.set-prow__a .btn-text.icon-only:hover { color: var(--type-secondary); }
.set-prow__a .btn-text.icon-only .fa { font-size: 12px; } /* Figma row action glyphs 12-13px */
.set-prow__a .btn-text.icon-only .fa-plug { font-size: 13px; }
.set-prow__a .btn-text.del:not(:disabled):hover, .set-prow__a .btn-text.del:not(:disabled):focus-visible { color: var(--action-error); } /* DS-GAP: test dot (86) */
.set-spin { width: 12px; height: 12px; animation: set-rot .9s linear infinite; }
@keyframes set-rot { to { transform: rotate(360deg); } }
.lnk-wp.set-add { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 12px; padding: 17px 15px; gap: 4px; border: 1px dashed var(--stroke-secondary); border-radius: var(--radius-md); background: var(--surface-screen); } /* DS-GAP: dashed add tile (Figma 17890:1749) */
.lnk-wp.set-add:hover { border-color: var(--brand-100); background: var(--surface-screen); }
.set-add:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
/* Customer experience tiles (Figma 17882:17442): 278 wide, padding 20/16, block-to-link gap 32, icon-to-text gap 24, icon 31px */
.set-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.set-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 19px 15px; }
.set-tile__blk { display: flex; flex-direction: column; gap: 24px; }
.set-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.set-tile__ic { font-size: 31px; color: var(--type-secondary); }
.set-tile__txt { display: flex; flex-direction: column; gap: 4px; min-height: 77px; }
.set-tile__t { font: var(--heading-sm); color: var(--type-primary); }
.set-tile__d { font: var(--body-sm); color: var(--type-secondary); }
.set-tile .lnk-wp { align-self: flex-start; margin: -3px 0 -3px -4px; }
/* Avatar (Figma 17907:40269): panel overlay-1, p16, gap 20, 80px tile, buttons gap 12 */
.set-av { display: flex; align-items: center; gap: 20px; padding: 15px; background: var(--surface-overlay-1); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-md); } /* DS-GAP: avatar panel */
.set-av__img { width: 80px; height: 80px; display: grid; place-items: center; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-md); overflow: hidden; flex: none; }
.set-av__img img { width: 100%; height: 100%; object-fit: cover; }
.set-av__img .fa { font-size: 36px; color: var(--stroke-primary); }
.set-av__btns { display: flex; gap: 12px; flex-wrap: wrap; }
/* Footer bar */
.set-foot { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px var(--set-pad); background: var(--surface-screen); box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .06); }
/* Modals: Figma widths (DS-GAP: .tpldialog has 346/480/640 only) */
.tplmodal[hidden] { display: none; }
.tpldialog.w600 { width: 600px; } .tpldialog.w800 { width: 800px; }
.tpldialog { max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); }
.set-mbody .inp[readonly], .set-mbody .inp { text-overflow: ellipsis; }
/* Modal parts (Figma 18121:6945): padding 32 (connection modals 24 sides), head gap 4 (title 22 / sub 16), divider with 20 above and below */
.tpldialog { --mpx: 32px; --mpy: 32px; }
.tpldialog.pad24 { --mpx: 24px; } .tpldialog.pad28 { --mpx: 28px; }
.set-mh { position: relative; padding: var(--mpy) var(--mpx) 20px; margin: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex: none; } /* DS-GAP: head with subtitle */
.set-mh::after { content: ""; position: absolute; left: var(--mpx); right: var(--mpx); bottom: 0; height: 1px; background: var(--stroke-tertiary); }
.set-mh > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.set-mh .mx { font-size: 18px; line-height: 1.5; }
.set-mh h2 { font: var(--heading-lg); color: var(--type-primary); }
.set-mh p { font: var(--body-lg); color: var(--type-secondary); }
.set-mf { position: relative; justify-content: flex-start; gap: 12px; padding: 20px var(--mpx) var(--mpy); border-top: 0; } /* DS-GAP: left-aligned foot per Figma */
.set-mf::before { content: ""; position: absolute; top: 0; left: var(--mpx); right: var(--mpx); height: 1px; background: var(--stroke-tertiary); }
.set-mbody { padding: 20px var(--mpx); overflow-y: auto; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 24px; }
.set-mbody > .ds-note { margin-bottom: -4px; }
.set-mbody .inp { width: 100%; }
.set-prev { display: flex; flex-direction: column; gap: 16px; }
.set-prev .set-back { align-self: flex-start; }
.set-prev__box { border: 1px solid var(--stroke-secondary); border-radius: var(--radius-md); overflow: hidden; }
.set-prev__sub { padding: 12px 20px; background: var(--surface-overlay-0); font: var(--body-lg); color: var(--type-secondary); }
.set-prev__sub b { font-weight: 500; color: var(--type-primary); }
.set-prev__txt { padding: 24px 20px; font: var(--body-lg); color: var(--type-primary); line-height: 1.6; white-space: pre-wrap; }
.set-test { display: flex; gap: 12px; }
.set-test .inp { flex: 1; }
/* DS-GAP: TinyMCE-style editor (no DS rich-text editor) */
.set-ed { border: 1px solid var(--stroke-secondary); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-screen); }
.set-ed__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 6px 8px; background: var(--surface-overlay-0); border-bottom: 1px solid var(--stroke-tertiary); font: 400 12px/1.4 var(--font); color: var(--type-secondary); }
.set-ed__bar + .set-ed__bar { padding-top: 4px; }
.set-ed__bar button { border: 0; background: none; font: inherit; color: inherit; padding: 4px 8px; cursor: pointer; border-radius: var(--radius-sm); }
.set-ed__bar button:hover { background: var(--surface-overlay-1); }
.set-ed__bar .menu::after { content: " ▾"; font-size: 8px; }
.set-ed__bar .para { border: 1px solid var(--stroke-secondary); background: var(--surface-screen); }
.set-ed__bar .menu.para { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; } .set-ed__bar .menu.para::after { content: ""; width: 10px; height: 6px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0.75 0.75 5 5 9.25 0.75' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0.75 0.75 5 5 9.25 0.75' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; } /* r16: equal padding left and right, mask chevron (no glyph side bearing) */
.set-ed__bar b, .set-ed__bar i { font-size: 12px; }
.set-ed__area { min-height: 220px; max-height: 300px; overflow-y: auto; padding: 16px; font: 400 14px/1.6 var(--font); color: var(--type-primary); outline: none; }
.set-ed__area:focus-visible { outline: 4px solid var(--stroke-tertiary); outline-offset: -4px; }
.set-ed__area p { margin: 0 0 14px; }
/* Shortcodes accordion (DS-GAP) */
.set-sc { background: var(--surface-overlay-1); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-sm); }
.set-sc__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 12px 16px; border: 0; background: none; font: var(--btn-md); color: var(--type-primary); cursor: pointer; }
.set-sc__btn:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: -2px; }
.set-sc__btn .fa { font-size: 14px; transition: transform .18s; } .set-sc.is-open .set-sc__btn .fa { transform: rotate(180deg); }
.set-sc__list { display: grid; grid-template-rows: 0fr; } .set-sc.is-open .set-sc__list { grid-template-rows: 1fr; }
.set-sc__in { min-height: 0; } .set-sc__c { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.set-sc__row { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center; }
.set-sc__code { display: flex; align-items: stretch; justify-content: space-between; height: 40px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-sm); font: 400 14px/1 var(--font); color: var(--type-secondary); }
.set-sc__code span { padding: 0 12px; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-sc__code button { width: 24px; height: 24px; margin: 7px; border: 0; border-radius: var(--radius-sm); background: var(--button-primary); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 12px; }
.set-sc__code button:hover { background: var(--button-primary-hover); }
.set-sc__code button:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
.set-sc__d { font: var(--body-md); color: var(--type-secondary); }
/* Landing page picker */
.set-lp h3 { font: var(--btn-md); font-weight: 500; line-height: 1.4; color: var(--type-primary); margin-bottom: 12px; }
.set-lp + .set-lp { border-top: 1px solid var(--stroke-tertiary); padding-top: 20px; }
.set-opts { display: flex; gap: 8px; margin-bottom: 16px; align-items: stretch; } /* DS-GAP: 3 option buttons with icon (DS .ds-seg is a joined bar). Figma 17913:3904: equal flex, 12px padding, left aligned */
.set-opt { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 11px; min-height: 44px; text-align: left; border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-sm); background: var(--surface-screen); font: var(--btn-sm); font-size: 12px; line-height: 1.6; color: var(--type-primary); cursor: pointer; }
.set-opt__ic { width: 20px; height: 20px; border-radius: 2px; display: grid; place-items: center; background: var(--surface-overlay-1); color: var(--type-secondary); font-size: 12px; flex: none; } /* DS-GAP: option glyph tile */
.set-opt:hover { border-color: var(--stroke-secondary); }
.set-opt[aria-checked="true"], .set-opt[aria-checked="true"]:hover { border-color: var(--button-primary); box-shadow: inset 0 0 0 .5px var(--button-primary); } /* 1.5px selected edge, no second ring */
.set-opt[aria-checked="true"] .set-opt__ic { background: var(--brand-10); color: var(--brand-100); }
.set-opt:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.set-opt[aria-checked="true"]:focus-visible { outline: none; } /* the selected edge is the single state */
.set-pick { position: relative; }
.set-pickbtn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 40px; padding: 0 12px; text-align: left; cursor: pointer; }
.set-menu { margin-top: 4px; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-md); box-shadow: 0 4px 24px rgba(0,0,0,.12); padding: 8px; }

.set-menu ul { list-style: none; margin: 8px 0 0; padding: 0; }
.set-menu li button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px; font: var(--body-md); color: var(--type-primary); cursor: pointer; border-radius: var(--radius-sm); }
.set-menu li button:hover, .set-menu li button:focus-visible { background: var(--surface-overlay-0); outline: none; }
.set-chk, .set-del { width: 40px; flex: none; border: 1px solid; border-radius: var(--radius-sm); background: var(--surface-screen); cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.set-chk { border-color: var(--action-success); color: var(--action-success); } .set-chk:hover { background: var(--action-success); color: #fff; }
.set-del { border-color: var(--action-error); color: var(--action-error); } .set-del:hover { background: var(--red-10); }
.set-row { display: flex; gap: 8px; }
.set-row .inp, .set-row .inp-act { flex: 1; min-width: 0; }
.set-eye { width: 40px; border: 0; border-left: 1px solid var(--stroke-secondary); background: none; cursor: pointer; color: var(--type-secondary); font-size: 16px; display: grid; place-items: center; }
/* Provider grid */
.set-pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.set-pcard { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 12px; text-align: left; font: var(--btn-sm); color: var(--type-primary); cursor: pointer; background: var(--surface-screen); }
.set-pcard img { width: 60px; height: 60px; border-radius: var(--radius-md); object-fit: cover; }
.set-pcard[aria-checked="true"] { box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--brand-100); }
.set-pcard:disabled { cursor: not-allowed; }
.set-pcard .chip { position: absolute; right: 8px; top: 8px; }
.set-pcard:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
/* confirm = Figma 17907:35163: 32/20 padding, icon 64, title 18/M, 8 to body, 24 to buttons, buttons hug with 12 between */
.set-conf p { font: var(--body-md); color: var(--type-secondary); margin-bottom: 8px; }
.set-conf .tpl-confirm { margin-bottom: -8px; }
.set-conf .tpl-btns { gap: 12px; } .set-conf .tpl-btns > * { flex: none; }
.set-sp { display: flex; flex-direction: column; gap: 8px; }
/* WP media modal mock (DS-GAP, WordPress-owned, "will remain the same") */
.wpm { position: fixed; inset: 0; z-index: var(--layer-modal); background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; font-family: "Open Sans", Helvetica, Arial, sans-serif; }
.wpm[hidden] { display: none; }
.p-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- responsive ---- */
@media (max-width: 1279px) { .set-pgrid { grid-template-columns: repeat(4, 1fr); } .set-sc__row { grid-template-columns: 200px 1fr; } }
@media (max-width: 1023px) { :root { --set-pad: 16px; } .set-head { flex-wrap: wrap; } .set-tut { margin-top: 0; } .set-sec__head { flex-wrap: wrap; } .set-prow { flex-wrap: wrap; gap: 8px; } .set-prow__n { flex-basis: 200px; } .set-th-n { flex-basis: 232px; } .set-pgrid { grid-template-columns: repeat(3, 1fr); } .set-sc__row { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 959px) { .nuf-wp-side { width: 36px; } .nuf-wp-side .nuf-wp-lbl { display: none; } .nuf-wp-active { width: 36px; } main.set { margin-left: 36px; } }
@media (max-width: 782px) {
  .nuf-wp-bar { height: 46px; } .nuf-wp-bar .nuf-wp-ico, .nuf-wp-bar .nuf-wp-lbl { margin-top: 7px; }
  .p-wp-toggle { display: grid; place-items: center; position: absolute; right: 8px; top: 7px; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--neutral-white); cursor: pointer; }
  .nuf-wp-side { top: 46px; width: 190px; transform: translateX(-100%); transition: transform 200ms ease-out; } .nuf-wp-side .nuf-wp-lbl { display: block; } .nuf-wp-active { width: 190px; }
  body.p-wpmenu-open .nuf-wp-side { transform: none; }
  main.set { margin: 46px 0 0; }
  .tplmodal { padding: 16px; } .set-mh, .set-mbody { padding-inline: 16px; } .tpl-foot { flex-wrap: wrap; } .tpl-foot > * { flex: 1 1 100%; }
  .set-opts { flex-direction: column; } .set-pgrid { grid-template-columns: repeat(2, 1fr); } .set-foot { flex-wrap: wrap; } .set-av { flex-wrap: wrap; }
  .wpm__side { display: none; }
}
@media (prefers-reduced-motion: reduce) { .set-spin, .nuf-wp-side { animation: none; transition: none; } .set-collapse svg { transition: none; } }
.icotile > i { font-size: 22px; line-height: 1; }
.set-ed__bar b, .set-ed__area b, .set-ed__area strong { font-weight: 500; }
.ds-tip[data-tip]:after { z-index: 60; }
.tpl-foot[hidden] { display: none; }

:where(#modal-root) :where(h1, h2, h3, p) { margin: 0; } /* modal host sits outside .set: reset UA margins so title and subtext keep the 4px Figma gap */
.set-ed__bar .fa { font-size: 13px; }
.set-ed__bar button { line-height: 1; }
.set-mbody .inp-act .act .fa, .set-eye .fa { font-size: 16px; }
.set-pickbtn .fa { font-size: 12px; }
.set-chk .fa { font-size: 16px; }
.set-del .fa { font-size: 14px; }
.rcpchip .x .fa { font-size: 10px; }
.set-av__btns .btn-wp, .set-av__btns .btn-wpo, .set-foot .btn-wp, .set-foot .btn-wpo { padding-block: 7px; min-height: 36px; } /* Figma 36px buttons */
.set-ed__area:empty::before { content: attr(data-ph); color: var(--type-tertiary); }
[hidden] { display: none !important; }

/* ---- S-batch 2026-10-30 (Figma QA) ---- */
.set-tile__ic { font-size: 20px; margin: 5.5px 0; } /* 20px Regular glyph; the margin keeps Figma's 31px frame. DS .fa now sizes width by glyph */

.set-testing { gap: 4px; } .set-testing:hover { background: var(--bc-0); color: var(--bc-400); cursor: default; }
.set-prow:hover, .set-prow:focus-within, .set-prow.is-hot { border-color: var(--brand-100); }
.set-prow__a .btn-text.del:not(:disabled) { color: var(--stroke-primary); }
.set-prow__a .btn-text.del:not(:disabled):hover { color: var(--action-error); }
.set-sec__aside { align-self: flex-start; }
.set-nav { position: sticky; top: 32px; z-index: 30; }
.set-mbody .ds-note:not(.md) { font-size: 12px; } /* the template info note uses the DS .ds-note.neutral.md (DSN-2026-11-01, Figma 17894:7472) */
.set-mbody .ds-note .lnk-wp { font-size: 12px; text-decoration: underline; padding: 0; }
.set-mbody { padding-bottom: 24px; } .set-mf { padding-top: 24px; }
.set-mbody .rcpfield { min-height: 49px; }
.set-lp .inp[readonly] { background: var(--surface-screen); color: var(--type-primary); } /* DS-GAP: filled value is a white field */
.set-pickbtn { padding: 0 0 0 12px; height: 40px; overflow: hidden; }
.set-pickbtn__t { flex: 1; text-align: left; color: var(--type-tertiary); }
.set-pickbtn__c { align-self: stretch; width: 48px; display: grid; place-items: center; border-inline-start: 1px solid var(--stroke-tertiary); font-size: 14px; color: var(--type-primary); }
.set-menu .inp-act .act { padding: 0 12px; }
.set-menu .inp-act .act .fa { font-size: 16px; }
.tpl-iconcircle.warn { background: var(--yellow-10); color: var(--yellow-100); }
.set-conf { padding: 32px 20px; overflow: visible; } .set-conf .tpl-confirm { white-space: nowrap; }
.set-ed__bar .menu::after { content: " \25BE"; font-size: 12px; }
.set-ed__area { font-size: 13px; line-height: 22px; } .set-ed__area p { margin: 0 0 22px; }
.set-prev__sub { display: flex; align-items: center; min-height: 54px; padding-block: 0; }
.set-prev .field-help { font: var(--body-md); }
.set-prev > div:last-child { border-top: 1px solid var(--stroke-tertiary); padding-top: 20px; }
.set-sc__btn { min-height: 50px; padding-block: 0; }
/* WP media modal (Figma 16046): 1118 x 723 */
.wpm__box { width: min(1118px, 100%); height: min(723px, calc(100vh - 32px)); background: #fff; display: flex; flex-direction: column; font-size: 11px; color: #1d2327; }
.wpm__h { display: flex; justify-content: space-between; align-items: center; padding: 0 11px; height: 34px; font-size: 14px; font-weight: 500; flex: none; }
.wpm__h button { border: 0; background: none; cursor: pointer; font-size: 12px; color: #1d2327; }
.wpm__tabs { display: flex; padding: 0 11px; border-bottom: 1px solid #dcdcde; flex: none; }
.wpm__tabs button { border: 0; background: none; padding: 7px 7px 6px; font-size: 11px; cursor: pointer; border-bottom: 2px solid transparent; color: #1d2327; } .wpm__tabs .on { border: 1px solid #dcdcde; border-bottom-color: #fff; margin-bottom: -1px; } .wpm__tabs .blue { color: #3858e9; }
.wpm__main { display: flex; flex: 1; min-height: 0; }
.wpm__body { flex: 1; min-width: 0; padding: 8px 11px; overflow: auto; }
.wpm__filters { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.wpm__l { display: block; font-size: 9px; color: #8c8f94; margin-bottom: 2px; }
.wpm__sel { height: 22px; font-size: 11px; border: 1px solid #8c8f94; border-radius: 2px; padding: 0 6px; background: #fff; }
.wpm__srch { width: 117px; } .wpm__in { width: 100%; border: 0; border-bottom: 1px solid #8c8f94; height: 22px; font-size: 11px; outline: 0; }
.wpm__grid { display: flex; gap: 8px; flex-wrap: wrap; align-content: flex-start; }
.wpm__it { position: relative; width: 94px; height: 94px; border: 0; padding: 0; background: #eee; cursor: pointer; overflow: hidden; text-align: left; } .wpm__it img { width: 100%; height: 62px; object-fit: cover; display: block; }
.wpm__it span { display: block; padding: 3px 6px; font-size: 9px; line-height: 12px; font-weight: 500; background: #fff; height: 32px; overflow: hidden; }
.wpm__it[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 5px #3858e9; }
.wpm__it[aria-checked="true"]::after { content: "\2713"; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; background: #3858e9; color: #fff; display: grid; place-items: center; font-size: 11px; }
.wpm__side { width: 198px; border-left: 1px solid #dcdcde; background: #f6f7f7; padding: 17px 12px; font-size: 9px; overflow: auto; flex: none; }
.wpm__side h4 { margin: 0 0 8px; font-size: 9px; font-weight: 500; color: #50575e; text-transform: uppercase; }
.wpm__side > img { width: 80px; height: 80px; object-fit: cover; display: block; margin-bottom: 8px; }
.wpm__meta { display: flex; flex-direction: column; font-size: 9px; line-height: 12px; padding-bottom: 12px; border-bottom: 1px solid #dcdcde; margin-bottom: 12px; } .wpm__meta b { font-weight: 500; word-break: break-all; } .wpm__meta a { color: #3858e9; } .wpm__meta a.del { color: #d63638; }
.wpm__form { display: flex; flex-direction: column; gap: 8px; }
.wpm__form label { display: grid; grid-template-columns: 52px 1fr; gap: 6px; align-items: start; color: #50575e; text-align: right; }
.wpm__form textarea, .wpm__form input { width: 100%; border: 1px solid #8c8f94; border-radius: 2px; font-size: 9px; padding: 3px 6px; font-family: inherit; } .wpm__form textarea { height: 30px; }
.wpm__form input[readonly] { background: #f0f0f1; color: #8c8f94; }
.wpm__hint { margin: 0 0 0 58px; font-size: 9px; line-height: 12px; color: #50575e; } .wpm__hint a { color: #3858e9; }
.wpm__copy { margin-left: 58px; align-self: flex-start; border: 1px solid #3858e9; background: #fff; color: #3858e9; font-size: 8px; padding: 2px 5px; border-radius: 2px; cursor: pointer; }
.wpm__f { display: flex; justify-content: flex-end; padding: 7px 10px; border-top: 1px solid #dcdcde; flex: none; }
.wpm__f button { background: #3858e9; color: #fff; border: 0; padding: 5px 11px; border-radius: 2px; font-size: 9px; font-weight: 500; cursor: pointer; } .wpm__f button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 782px) { .set-nav { top: 46px; } }

/* Full-width fix (Rijul 2026-10-30): the white nav spans the whole WP content area; content is capped at 1500px. */
main.set { max-width: none; }
main.set .set-body { padding-inline: max(var(--set-pad, 40px), calc((100% - 1500px) / 2)); }

/* Feedback round: whole-header toggle, hover outline (same as the focused card), footer modes */
.set-sec:hover { box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--brand-100); } /* LAYOUT: mirrors DS .card.focused so hover = focused = open outline */
.set-sec__head[role="button"] { cursor: pointer; border-radius: var(--radius-sm); }
.set-sec__head[role="button"]:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 6px; }
.set-foot #foot-save { margin-left: auto; }
.set-foot [hidden] { display: none; }

/* No phantom page scroll: stop the content margin collapsing through body, and keep closed menus out of the flow */
body { display: flow-root; }
.ds-ctxmenu:not(.visible) { position: fixed; top: 0; left: 0; visibility: hidden; }

/* notifications popover: layout only */
.wpm__lnk { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 9px; line-height: 12px; color: #3858e9; text-decoration: underline; cursor: pointer; } .wpm__lnk.del { color: #d63638; }
.set-ed__area.is-outlined * { outline: 1px dashed var(--stroke-secondary); }

/* nav icon tooltips: right-aligned so they never widen the page */
.ds-navicon.ds-tip:after { left: auto; right: 0; transform: none; }

.set-conf .tpl-btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; max-width: 100%; align-self: center; gap: 12px; } /* equal-width pair: the wider label sets both */
.set-conf .tpl-btns > * { flex: none; white-space: nowrap; }

/* ===== Context menu = Leads Figma 12921:101211: menu padding 12 0, radius 8; items 40 high, 12 / 16 padding, 16px icon, 4 gap ===== */
.ds-ctxmenu { padding: 12px 0; border-radius: var(--radius-md); box-shadow: 0 4px 24px rgba(0, 0, 0, .12); }
.ds-ctxitem { height: 40px; min-height: 40px; padding: 0 16px 0 12px; gap: 4px; }
.ds-ctxitem .fa, .ds-ctxitem svg { width: 16px; height: 16px; font-size: 12px; margin: 0; flex: none; display: inline-grid; place-items: center; } /* 16px icon box, 12px glyph, as Figma */
.ds-ctxitem svg { padding: 2px; box-sizing: border-box; }
.ds-ctxitem .fa { width: 14px; height: 14px; font-size: 14px; margin: 0 1px; } /* 14px glyph centred in its 16px box */
.ds-ctxmenu:focus { outline: none; }

/* ===== Polish round: square head rows, even chip padding, filter tag field, 14px subtexts, 4px video close ===== */
.dash-thead, .rs-crow.head, .rs-group__head, .dash-card > .dash-thead { border-radius: 0; }
.chip, .tagchip, .dash-tag { padding-top: 1px; padding-bottom: 3px; } /* Rubik sits low in its line box: nudge the text up 1px so the gaps match */
.dash-tag { height: 23px; box-sizing: border-box; padding-top: 0; padding-bottom: 2px; }
.rs-fpanel .ofl-q { position: relative; display: block; width: 100%; }
.rs-fpanel .ofl-q .inp { display: block; width: 100%; padding-left: 36px; }
.rs-fpanel .ofl-q .fa { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--type-tertiary); pointer-events: none; }
.ofl-sugg[hidden] { display: none; }
.rs-sub, .dash-sub, .set-sub, .proto .rs-sub { font: var(--body-md); }

.set-thead { border: 1px solid var(--stroke-tertiary); border-radius: 0; }
.ds-navicon.ds-tip:after { left: 50%; right: auto; transform: translateX(-50%); }
/* the bell sits 12px further in so its centred tooltip stays inside the window */
.ds-topnav-actions { margin-right: 12px; }
.tpldialog.lp-modal .set-mbody { overflow: visible; } /* the landing picker menu floats over the modal, it never resizes it */
.tpldialog.lp-modal .set-menu { position: absolute; left: 0; right: 0; z-index: 30; }
.set-pick { position: relative; }
.tpldialog.lp-modal .set-lp { position: relative; } .tpldialog.lp-modal .set-lp:has(.set-menu:not([hidden])) { z-index: 40; }
.tpldialog.lp-modal .set-menu { background: var(--surface-screen); }

.set-ed__area.is-error { box-shadow: inset 0 0 0 1px var(--stroke-error); }

/* R11 items 10-11 (Figma 18121:6391 testing, 6602 success, 10882 after): icon buttons in a connection row keep no background on hover, only the glyph colour moves to WP action blue (delete stays red); the result is the button itself. */
.set-prow__a .btn-text.icon-only:hover, .set-prow__a .btn-text.icon-only:focus-visible { background: transparent; color: var(--button-primary); }
.set-prow__a .btn-text.del:not(:disabled):hover, .set-prow__a .btn-text.del:not(:disabled):focus-visible { background: transparent; color: var(--action-error); }
.set-prow__a .btn-text.set-ok, .set-prow__a .btn-text.set-ok:hover { color: var(--action-success); }
.set-prow__a .btn-text.set-ok .fa { font-size: 13px; }
.set-prow__a .set-result { gap: 4px; cursor: default; pointer-events: none; }
.set-prow__a .set-result .fa { font-size: 12px; }
.set-prow__a .btn-text.icon-only { transition: color var(--mo-fast) var(--mo-in); }

/* Approval landing preview link: the eye is an anchor to landing.html */
a.set-eye { text-decoration: none; box-sizing: border-box; }

/* deep link #email: brief brand outline on the email service card */
.set-sec { transition: box-shadow .4s ease; } .set-sec.is-flash { box-shadow: 0 0 0 3px var(--brand-100); }

/* S1: no-connection state, inline provider grid (Figma 17905:13907). Layout only: the cards are DS .card, selected look is the chooser's. */
/* Figma specs: panel overlay-1 + stroke-tertiary, 8 radius, 24 padding; 16 gap between cards; 20 above the button; card 12 padding, 8 radius; 40px logo tile, 4 radius, 8 gap to the name */
.set-pick { display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--surface-overlay-1, #f3f6f6); border: 1px solid var(--stroke-tertiary, #eaefef); border-radius: var(--radius-8, 8px); }
.set-pgrid--inline { gap: 16px; }
.set-pgrid--inline .set-pcard { flex-direction: row; align-items: center; gap: 8px; padding: 11px; min-width: 0; overflow-wrap: anywhere; background: var(--surface-screen, #fff); border: 1px solid var(--stroke-tertiary, #eaefef); border-radius: var(--radius-8, 8px); }
.set-pgrid--inline .set-pcard img { width: 40px; height: 40px; flex: none; border-radius: var(--radius-4, 4px); }
@media (max-width: 599px) { .set-pick { padding: 16px; } .set-pgrid--inline { gap: 12px; } }
.set-pgrid--inline .set-pcard[aria-checked="true"] { border-color: transparent; box-shadow: inset 0 0 0 1.5px var(--brand-100); } /* Figma: 1.5px brand stroke, no shadow */
.set-pick__act { display: flex; }
.set-conns[hidden], .set-pick[hidden] { display: none; }
.set-pgrid--inline .set-pcard { font: var(--btn-md); } /* Figma 14 medium */

/* S1 connect dialog (ported from nuf-v3/css/prototype.css: Connect modal + success view). Local rules are layout and the success artwork only. */
.proto .tpl-head .p-dlg-title { margin: 0; font: inherit; color: var(--type-primary); }
.proto .p-field { display: block; }
.proto .p-field .inp { display: block; }
.proto .tpl-foot .p-change { margin-right: auto; }
.proto .p-ok-body { margin: 0; font: var(--body-md); color: var(--type-secondary); }
.proto .nuf-ok__art { position: relative; width: 183.88px; height: 127.51px; margin: 0 auto; }
.proto .nuf-ok__confetti { position: absolute; left: 0; top: 0; width: 183.88px; height: 127.51px; display: block; }
.proto .nuf-ok__check { position: absolute; left: 54.94px; top: 26.18px; width: 73.26px; height: 73.26px; display: block; }
.nuf-spin { animation: ds-spin .8s linear infinite; }
.proto .btn-wp.is-loading { pointer-events: none; cursor: progress; background: var(--button-primary); color: var(--neutral-white); } /* DS-GAP: D-G1 (Button loading) */
.proto .p-dlg-success.is-in .nuf-ok__check { animation: p-pop 420ms cubic-bezier(.2, 1.4, .4, 1) both; }
.proto .p-dlg-success.is-in .nuf-ok__confetti { animation: p-fade 480ms ease-out 120ms both; }
.proto .p-dlg-success.is-in .tpl-confirm, .proto .p-dlg-success.is-in .p-ok-body, .proto .p-dlg-success.is-in #p-done { animation: p-fade 240ms ease-out both; }
@keyframes p-pop { from { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes p-fade { from { opacity: 0; } to { opacity: 1; } }
.proto .p-dialog:focus { outline: none; }
.proto #p-ok-email { overflow-wrap: anywhere; }
.proto .p-note a { color: var(--button-primary); text-decoration: underline; } /* DS-GAP: D-G14 inline link */
.proto .p-note a:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.proto .p-note a[aria-disabled="true"] { pointer-events: none; color: var(--type-tertiary); }
.proto .p-dialog.sm.is-success { width: 364px; max-width: 90vw; }
.proto #p-success .tpl-body { gap: 0; }
.proto #p-success .nuf-ok__art { margin-bottom: 16px; }
.proto #p-success #dlg-ok-title { margin: 0 0 4px; }
.proto #p-success #p-done { margin-top: 24px; }
.p-dlg-connect, .p-dlg-success { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .nuf-spin { animation: none; } .proto .p-dlg-success.is-in :is(.nuf-ok__check, .nuf-ok__confetti, .tpl-confirm, .p-ok-body, #p-done) { animation: none; } }

/* Saif r4, local until approved (Figma 18121:5955, Rijul 2026-11-04): every tile is grey (neutral-50 fill, 1px #EAEFEF border drawn inside so the tile
   never shifts, neutral-600 glyph), also on hover. Only an expanded card turns orange (brand-10 fill, brand-100 glyph). Admin notifications never expands, so it stays grey. */
.set-sec__lead > .icotile { background: var(--neutral-50); color: var(--neutral-600); box-shadow: inset 0 0 0 1px #EAEFEF; transition: background-color var(--mo-md, .24s) ease, color var(--mo-md, .24s) ease, box-shadow var(--mo-md, .24s) ease; }
.set-sec:has(> .set-sec__head[aria-expanded="true"]) .set-sec__head .icotile { background: var(--brand-10); color: var(--brand-100); box-shadow: inset 0 0 0 1px transparent; }
@media (prefers-reduced-motion: reduce) { .set-sec__lead > .icotile { transition: none; } }
/* Saif r1, local until approved: "Tutorial" tag on the tutorial items of the Capture and Display menus (same as 10-reskin/css/saif-r1.css) */
.ds-menu a:has(.sr1-tut-tag) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sr1-tut-tag { flex: none; }
/* required and optional fields (Rijul 2026-11-05): a red * after needed labels, a muted "(optional)" after the rest */
.sr11-req { margin-left: 2px; color: var(--red-200, #A73636); font-weight: 500; }
.sr11-opt { font-weight: 400; color: var(--type-secondary); }
