/* iv-next r2 (Rijul's notes 2026-11-13; r1 in archive/r1-2026-11-13): fresh layout for step 1. Layout, surface and spacing only; every control is a DS component or the shared ivs-* parts (iv1.css). */
body:has(.ivn-page) .rs-crumb { display: none; }
body.nuf.rs-light:has(.ivn-page), body:has(.ivn-page) main.rs { background: var(--neutral-75); }
.view.ivn-page { display: block; padding: 24px 32px 32px; min-width: 0; }
.ivn-wrap { --top: 104px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; min-width: 0; }
.ivn-left, .ivn-right { min-width: 0; }
.ivn-card { background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-16); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); min-width: 0; box-sizing: border-box; }
.ivn-page .field-error { font: 400 13px/18px var(--font); color: var(--action-error); }
.ivn-page .field-error[hidden] { display: none; }

/* ---- the in-card header (r2: one light title line, the step, a hairline progress as the bottom edge) ---- */
.ivn-top__t:focus { outline: none; }

/* ---- the preview card ---- */
.ivn-pv { padding: 24px; display: flex; flex-direction: column; }
.ivn-pv__w { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; min-width: 0; }
.ivn-pv__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.ivn-pv__tt { display: grid; gap: 2px; min-width: 0; }
.ivn-pv__t { margin: 0; font: 500 16px/24px var(--font); color: var(--type-primary); }
.ivn-pv__t--eb { font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--type-secondary); }
.ivn-pv__sub { margin: 0; font: 400 13px/18px var(--font); color: var(--type-secondary); }
.ivn-pv__h--tabs { min-height: 0; }
.ivn-pv__trow { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1.5px solid var(--stroke-tertiary); margin-top: -4px; }
.ivn-pv__trow .ds-tabs { border: 0; }
.ivn-pv__sg { display: flex; justify-content: center; margin-top: -4px; }
.ivn-pv__b { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; min-width: 0; }
.ivn-pv__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ivn-pv__f--c { justify-content: center; }

/* r2: no stage background; the browser sits on the white card */
.ivn-stage { position: relative; flex: 1 1 auto; display: grid; place-items: center; box-sizing: border-box; padding: 4px 0; min-height: 0; min-width: 0; }
.ivn-stage > .ais-win { align-self: center; }
.ivn-stage--2 { padding-bottom: 52px; }
.ivn-stage--5 { padding: 48px 0 52px; }
.ivn-stage__p { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; }
.ivn-stage__p--r { left: auto; right: 0; bottom: 4px; }
.ivn-stage__s { position: absolute; top: 0; left: 0; }
.ivn-pv__hd { display: grid; gap: 12px; }
.ivn-pv--5 .ivn-pv__w { gap: 0; }

/* device icons: fa-desktop / fa-mobile come from the DS icons.css (added by the DS Agent 2026-11-13) */
.ivn-dev .seg-in { display: inline-flex; align-items: center; gap: 6px; }
.ivn-pv__tabs button { display: inline-flex; align-items: center; gap: 6px; }

/* window chrome, five treatments */

/* ---- r2 settings parts ---- */
/* follow-ups */
.ivn-fu { display: grid; gap: 16px; }
.ivn-tr { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ivn-tr__t { display: grid; gap: 2px; min-width: 0; }
.ivn-tr__t b { font: 500 14px/20px var(--font); color: var(--type-primary); }
.ivn-tr__t span { font: 400 13px/18px var(--font); color: var(--type-secondary); }
.ivn-tr--rule { padding-top: 20px; border-top: 1px solid var(--stroke-tertiary); }
.ivn-ai { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--radius-8); background: var(--neutral-25); font: 400 13px/20px var(--font); color: var(--type-secondary); }
.ivn-ai > .fa { color: var(--brand-300); margin-top: 4px; }
.ivn-ai b { font-weight: 500; color: var(--type-primary); }
.ivn-ai .chip { margin-left: 4px; vertical-align: 1px; }
.ivn-rg { display: grid; gap: 14px; }
.ivn-ro { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ivn-ro .ds-radio { margin-top: 2px; }
.ivn-ro__t { display: grid; gap: 2px; }
.ivn-ro__t b { font: 500 14px/20px var(--font); color: var(--type-primary); }
.ivn-ro__t span { font: 400 13px/18px var(--font); color: var(--type-secondary); }
.ivn-rg__x { display: grid; gap: 8px; margin-left: 32px; }
/* multiselect (local build from DS parts: input shell, ds-check, inp, btn-text; DS-GAP) */
.ivn-ms { display: grid; gap: 6px; min-width: 0; }
.ivn-ms__c { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px 8px 14px; border: 1px solid var(--stroke-secondary); border-radius: var(--radius-4); background: var(--surface-screen); font: 400 14px/20px var(--font); color: var(--type-primary); text-align: left; cursor: pointer; transition: border-color var(--m-fast) var(--m-ease); }
.ivn-ms__c:hover { border-color: var(--neutral-300); }
.ivn-ms__c:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
.ivn-ms.is-open .ivn-ms__c { border-color: var(--brand-200); }
.ivn-ms__v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ivn-ms__v.is-ph { color: var(--type-tertiary); }
.ivn-ms__n { flex: none; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; display: inline-grid; place-items: center; border-radius: var(--radius-full); background: var(--neutral-75); font: 500 12px/1 var(--font); color: var(--type-secondary); }
.ivn-ms__a { flex: none; color: var(--type-secondary); display: inline-flex; transition: transform var(--m-base) var(--m-ease); }
.ivn-ms.is-open .ivn-ms__a { transform: rotate(180deg); }
.ivn-ms__p { border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-8); box-shadow: 0 4px 24px rgba(0, 0, 0, .08); background: var(--surface-screen); animation: ivnIn var(--m-base) var(--m-ease); }
.ivn-ms__p[hidden] { display: none; }
@keyframes ivnIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ivn-ms__l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 12px 14px; }
.ivn-ms__o { display: flex; align-items: center; gap: 10px; min-height: 32px; font: 400 14px/20px var(--font); color: var(--type-primary); cursor: pointer; }
.ivn-ms__add { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--stroke-tertiary); }
.ivn-ms__add .inp { flex: 1; min-width: 0; }
/* capture toggles */
.ivn-cap { list-style: none; margin: 0; padding: 0; border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-8); }
.ivn-cap__r { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.ivn-cap__r + .ivn-cap__r { border-top: 1px solid var(--stroke-tertiary); }
.ivn-cap__t { display: grid; gap: 1px; min-width: 0; }
.ivn-cap__t b { font: 500 14px/20px var(--font); color: var(--type-primary); }
.ivn-cap__t span { font: 400 12px/16px var(--font); color: var(--type-secondary); }
.ivn-page .tog:disabled { opacity: .5; cursor: not-allowed; }

/* ---- round 3: steps 2 to 5 (layout and spacing only; controls are DS components or the shared ivs-* parts) ---- */
.ivn-on { margin: 16px 28px 0; }
.ivn-on:focus { outline: none; }
.ivn-secs .ivs-rows { display: grid; }
.ivn-secs .ivs-r__c .px .inp { width: 80px; }
.ivn-secs .ivs-r__c .ds-seg { max-width: 100%; }
.ivn-secs .ivs-r__c .ics { justify-content: flex-end; }
.ivn-secs .ivs-r__c .ivs-f { width: 100%; }
.ivn-secs .ds-seg { max-width: 100%; }
.ivn-secs .ds-seg .seg-in { padding-inline: 16px; }
.ivn-secs .ds-seg > label { min-width: 0; }
.ivn-secs .ds-seg .seg-in { white-space: nowrap; }
.ivn-add { justify-self: start; margin-left: -12px; }
.ivn-secs .ivs-f .ds-select { max-width: 360px; }
.ivn-secs .two > .ivs-f .inp { width: 100%; }
.ivn-secs .sw-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* trigger rules: a bordered list, each rule on one line */
.ivn-rl { list-style: none; margin: 0; padding: 0; border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-8); }
.ivn-rl__r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; min-height: 56px; box-sizing: border-box; transition: opacity var(--m-base) var(--m-ease); }
.ivn-rl__r + .ivn-rl__r { border-top: 1px solid var(--stroke-tertiary); }
.ivn-rl__r.is-off { opacity: .55; }
.ivn-rl__v { display: inline-flex; align-items: center; gap: 8px; color: var(--type-secondary); font: 400 14px/20px var(--font); }
.ivn-rl__v .inp { width: 72px; padding-inline: 10px; }
.ivn-pgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; padding: 14px 16px; border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-8); }
@container (max-width: 560px) { .ivn-pgs { grid-template-columns: minmax(0, 1fr); } }
.ivn-secs .two { gap: 16px; }
.ivn-secs .sumline { margin: 0; }
.ivn-secs .lockl { margin: 0; }
/* set 3 and set 4 give the controls less room: stack the label-left rows */
/* preview: the page picker, the visit timeline, the redirect frame, the email page */
.ivn-pgsel { min-width: 168px; max-width: 220px; }
.ivn-pgsel .ds-select { width: 100%; }
.ivn-pv .ivn-tl { flex: none; width: 100%; max-width: 520px; margin: 0 auto; padding: 0; border: 0; box-shadow: none; background: transparent; gap: 8px; }
.ivn-pv .ivn-tl .tlw__top { justify-content: space-between; }
.ivn-pv .ivn-tl .tlw__c { margin: 0; font: 400 13px/18px var(--font); }
.ivs-pg .fab.is-c { inset: 0; margin: auto; width: fit-content; height: fit-content; transform-origin: center; align-items: center; }
.ivs-pg .fab.is-l { right: auto; left: var(--ox, 16px); }
.ivs-pg .fab.is-r { right: var(--ox, 16px); }
.ivs-pg .fab { bottom: var(--oy, 16px); }
.ivs-pg .fab.is-c { bottom: 0; }
.ivn-rd { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 20px 24px; border-radius: var(--radius-12); background: var(--neutral-25); box-shadow: 0 0 0 1px var(--stroke-tertiary); color: var(--type-secondary); font: 400 13px/18px var(--font); }
.ivn-rd b { font-weight: 500; color: var(--type-primary); font-size: 14px; }
.ivs-pg.ivn-mailpg { position: static; overflow: visible; }
.ivn-mail { position: static; inset: auto; pointer-events: auto; padding: 20px; }
.ivs-pg .pg__ov.is-late .fab__l { opacity: 0; }
@media (max-width: 640px) {
  .ivn-on { margin: 12px 16px 0; }
  .ivn-rl__r, .ivn-pgs { padding-inline: 12px; }
  .ivn-pgsel { max-width: none; flex: 1; }
}
.ivn-secs .ivs-f > .ds-seg, .ivn-secs .ivs-f > .ivn-ms { justify-self: start; }
.ivs-pg .win--thx .win__b { height: auto; }
@media (max-width: 640px) { .ivn-dev--3 .ivn-dev__t { display: none; } }

/* ---- round 4 (2026-11-14) ---- */
.ivn-rg__x { animation: ivnIn var(--m-base) var(--m-ease); }
.ivn-rl__n { flex: 1 0 100%; padding: 4px 0 4px 32px; }
.ivn-rl__r:has(.ivn-rl__n) { padding-bottom: 12px; }
.ivn-secs .ivn-rg__x > .ivs-f { gap: 8px; }
/* visual choice tiles: a label around a hidden radio or checkbox, a mini render, a title */
@container (max-width: 620px) { .ivts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* offsets on one row */
.ivn-offs .ivs-r__c { display: flex; gap: 16px; flex-wrap: wrap; }
.ivn-off { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/18px var(--font); color: var(--type-secondary); }
/* page picker (Phase 1 Settings pattern: set-pickbtn, set-menu) */
.ivn-pkw { gap: 10px; }
.ivn-pk { position: relative; max-width: 460px; }
.ivn-pk .set-pickbtn { width: 100%; }
.ivn-pk .set-pickbtn[aria-expanded="true"] .fa { transform: rotate(180deg); }
.ivn-pk .set-pickbtn .fa { transition: transform var(--m-base) var(--m-ease); }
.ivn-pk__m { animation: ivnIn var(--m-base) var(--m-ease); }
.ivn-pk__m[hidden] { display: none; }
.ivn-pk__m ul { max-height: 224px; overflow-y: auto; }
.ivn-pk__m li[hidden] { display: none; }
.ivn-pk__n { margin: 8px 8px 4px; }
.ivn-pkp { color: var(--type-tertiary); font-size: 12px; }
.tagchip .ivn-pkp { color: inherit; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .ivn-rg__x, .ivn-pk__m, .ivn-seg__b i, .ivt { animation: none; transition: none; } }
@media (max-width: 640px) { .ivts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ivn-top { padding-inline: 16px; } }

/* ======================================================================================================
   round 5 (2026-11-15, research/BRIEF-r5-2026-11-15.md): shell (3), hd (4), rows (3), ico (5), full-width sticky footer,
   control widths. Classes are reusable by finder-next: .ivn-shell--N, .ivn-hd--N, .ivn-rows--N, .ivn-top, .ivn-main, .ivn-foot, .ivn-lb/.ivn-lt/.ivn-tbl.
   Type scale: page title 20/28, step title 18/26 with an overline, section title 16/24 + 13/20 lead, field label 14/20, help 13/20, all Rubik 500 or less.
   ====================================================================================================== */
.view.ivn-page { display: flex; flex-direction: column; min-height: calc(100vh - var(--ivn-vt, 132px)); padding-top: 24px; padding-bottom: 0; }
.ivn-wrap { display: block; width: 100%; max-width: 1500px; margin: 0 auto; padding-bottom: 24px; --pvh: calc(100vh - var(--ivn-off, 200px) - var(--ivn-foot, 64px) - 16px); }
.ivn-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* top container: page title, step overline + step name, step segments (or the stepper) */

/* main card: settings left, preview right */
.ivn-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); min-width: 0; background: var(--surface-screen); border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-16); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ivn-left { min-width: 0; }
.ivn-col2 { min-width: 0; border-left: 1px solid var(--stroke-tertiary); }
.ivn-right { position: sticky; top: calc(var(--ivn-vt, 132px) + 16px); min-width: 0; }
.ivn-main .ivn-pv { height: var(--pvh); min-height: 480px; padding: 24px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.ivn-pv__b { flex: 1 1 0; }
.ivn-set__body { padding: 24px 28px 28px; }
.ivn-on { margin: 0 0 16px; }

/* the full-width sticky footer bar */

/* sections: shared (title 16/24, lead 13/20, fields 16px apart) */
.ivn-secs { display: grid; gap: 16px; min-width: 0; }
.ivn-s { min-width: 0; }
.ivn-s__t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ivn-s__t b, .ivn-s__gt { margin: 0; font: 500 16px/24px var(--font); color: var(--type-primary); }
.ivn-s__lead { margin: 0; font: 400 13px/20px var(--font); color: var(--type-secondary); }

/* ---- control widths: selects fit their content (160 to 320, set in js), short inputs 120, name or email 360, long text full ---- */
.ivn-secs .ivs-r__c .ds-select { width: auto; }
.ivn-secs .ivs-r__c .inp { max-width: 360px; }
.ivn-secs .ivs-r__c .px .inp, .ivn-secs .ivn-xv .inp, .ivn-secs .sw-hex .inp { width: 120px; }
.ivn-secs input[type="time"] { width: 140px; }
.ivn-secs .two:has(input[type="time"]) { grid-template-columns: repeat(2, 140px); }
.ivn-secs #i-cfg-nemail, .ivn-secs #i-cfg-label, .ivn-secs #i-cfg-ctaText, .ivn-secs #i-cfg-nextLabel { max-width: 360px; }
.ivn-secs .ivn-ms { width: min(100%, 360px); }
.ivn-pk { max-width: 320px; }
.ivn-pgsel { min-width: 0; max-width: none; }
.ivn-r--wide { grid-template-columns: minmax(0, 1fr) auto; }
.ivn-xv { display: inline-flex; align-items: center; gap: 8px; color: var(--type-secondary); font: 400 14px/20px var(--font); }


/* ---- r6: launcher icons: the filled set from ai-shared/launcher-icons.js (AIS_ICONS), sized per place ---- */
.ico { display: inline-flex; line-height: 0; color: inherit; }
.ico svg { display: block; }
.vp__i.ico { flex: none; }
.vp .ico { color: var(--pt); }
.ics { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ics .ic { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-12); background: var(--neutral-75); color: var(--neutral-600); cursor: pointer; transition: box-shadow var(--m-fast) var(--m-ease), background-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease); }
.ics .ic:hover { background: var(--neutral-50); color: var(--brand-300); }
.ics .ic.is-on { background: var(--brand-10); color: var(--brand-300); box-shadow: 0 0 0 2px var(--brand-100); }
.ics .ic:has(:focus-visible) { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 3px; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .ivn-main, .ivn-shell--3 .ivn-main { grid-template-columns: minmax(0, 1fr); }
  .ivn-col2 { border-left: 0; border-top: 1px solid var(--stroke-tertiary); }
  .ivn-shell--2 .ivn-col2 { border-top: 0; }
  .ivn-shell--3 .ivn-col2 { border-radius: 0 0 15px 15px; }
  .ivn-right { position: static; }
  .ivn-main .ivn-pv, .ivn-shell--2 .ivn-main .ivn-pv { height: auto; min-height: 0; overflow: visible; }
  .ivn-pv__b, .ivn-stage { flex: none; }
  .ivn-stage { padding: 16px 0; } .ivn-stage--2 { padding-bottom: 56px; } .ivn-stage--5 { padding: 48px 0 56px; }
  .ivn-sp__l { display: none; } .ivn-sp__i.is-cur .ivn-sp__l { display: inline; }
}
@media (max-width: 640px) {
  .view.ivn-page { padding-top: 16px; }
  .ivn-top { padding: 12px 16px; }
  .ivn-top__top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ivn-top__r { width: 100%; justify-content: space-between; gap: 12px; }
  .ivn-top__s { padding-left: 0; border-left: 0; }
  .ivn-seg__b { width: 24px; }
  .ivn-sp { flex-wrap: wrap; row-gap: 4px; } .ivn-sp__i + .ivn-sp__i::before { width: 10px; margin: 0 2px; }
  .ivn-set__body { padding: 16px; }
  .ais-card__b { padding: 16px; } .ais-card__bd { padding: 16px; }
  .ivn-s2 .ivn-s__bd { padding-left: 0; }
  .ivn-main .ivn-pv { padding: 16px; }
  .ivn-shell--2 .ivn-col2 { padding: 12px; }
  .ivn-ms__l { grid-template-columns: minmax(0, 1fr); }
  .ivs-r { grid-template-columns: minmax(0, 1fr); } .ivs-r__c { justify-content: flex-start; }
  .ivn-pv__trow, .ivn-pv__f { flex-wrap: wrap; }
  .ivn-lt { grid-template-columns: minmax(0, 1fr); }
  .ais-row { flex-wrap: wrap; } .ais-row__x { order: 3; flex: 1 0 100%; padding-left: 44px; }
  .ivn-secs .two, .ivn-secs .two:has(input[type="time"]) { grid-template-columns: minmax(0, 1fr); }
  .ivn-ics-wrap, .ics--s1 { max-width: 100%; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .ics--s5 .ic:hover .ico { animation: none; } .ivn-lt__c, .ics--s4 .ic, .ics--s1 .ic { transition: none; } }


/* ======================================================================================================
   round 6 (2026-11-16, research/BRIEF-r6-2026-11-16.md): shared parts live in ../../ai-shared/ai-shared.css (.ais-*); this file keeps the layout only.
   ====================================================================================================== */
.ivn-s__bd { display: grid; gap: 20px; min-width: 0; }
.ivn-secs .ivs-lab { font: 500 14px/20px var(--font); }
.ivn-secs .ivs-help { font: 400 13px/20px var(--font); }
.ivn-lt__c .ais-it { grid-area: it; justify-self: start; }
.ivn-lt__c.is-on .ais-it { background: var(--surface-screen); }
.ivn-tbl .ais-it { width: 24px; height: 24px; }
/* shells 4 and 6: the strip is the top of the main card (6: its hairline is the progress bar) */
.ivn-shell--4 .ivn-main .ivn-pv { height: calc(var(--pvh) - 49px); }
.ivn-shell--6 .ais-strip { grid-column: 1 / -1; }
.ivn-shell--6 .ivn-main .ivn-pv { height: calc(var(--pvh) - 60px); }
.ivn-shell--4 .ivn-main { overflow: visible; }
.ivn-shell--4 .ivn-prog { border-radius: var(--radius-16) var(--radius-16) 0 0; }
.ivn-shell--6 .ivn-col2 { border-left: 1px solid var(--stroke-tertiary); }
@media (max-width: 1100px) { .ivn-shell--6 .ivn-main .ivn-pv { height: auto; } .ivn-shell--6 .ivn-col2 { border-left: 0; } }
@media (max-width: 520px) { .ais-strip { padding: 12px 16px; min-height: 52px; } .ais-strip__n { font-size: 16px; line-height: 24px; } }
/* preview stage (the window frames are in ai-shared) */
.ivn-stage--2 .ais-win, .ivn-stage--5 .ais-win { max-width: 520px; }
.ivn-fxc { display: inline-flex; align-items: center; gap: 8px; }
.ivs-r__c:has(.ais-fxn) { display: grid; justify-items: start; gap: 6px; }
.ivn-secs .ivs-r__c .ais-fxn { max-width: 260px; }
.ivn-secs .ais-grp--dep .ivs-r:first-child { padding-top: 0; }
.ivn-secs .ais-color { max-width: 100%; }
.ivn-secs .ivs-f > .ais-tiles, .ivn-secs .ivs-f > .ais-color { margin-top: 2px; }
.ais-tile .vp--th { transform: scale(.5); }
.ais-tile .ivm, .ais-tile .ivq { box-shadow: 0 4px 12px -2px rgba(16, 24, 40, .14); border-radius: var(--radius-8); }
.ais-tile .ivm { width: 120px; height: 72px; grid-template-rows: 12px 1fr; }
.ais-tile .ivq { width: 96px; height: 70px; }
.ais-tile .ivm__bar { background: var(--neutral-50); }
.ivn-secs .ivn-lt, .ivn-secs .ais-rows { margin: 0; }
.ivn-secs .ais-tabs > .ds-tabs { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .ais-tile .ivm { transition: none; } }

/* mini renders inside the tiles (the soft shadow replaces the stroke) */
.ivm { display: grid; grid-template-rows: 10px 1fr; width: 112px; height: 56px; border-radius: var(--radius-4); background: var(--surface-screen); box-shadow: 0 0 0 1px var(--stroke-secondary); overflow: hidden; }
.ivm__bar { display: flex; align-items: center; gap: 3px; padding: 0 5px; background: var(--neutral-75); }
.ivm__bar i { width: 3px; height: 3px; border-radius: var(--radius-full); background: var(--neutral-300); }
.ivm__pg { position: relative; }
.ivm__dot { position: absolute; bottom: 5px; width: 14px; height: 14px; border-radius: var(--radius-full); background: var(--pa); }
.ivm__dot.is-l { left: 6px; } .ivm__dot.is-r { right: 6px; }
.ivq { display: grid; align-content: start; gap: 5px; width: 84px; height: 58px; padding: 0 0 6px; border-radius: var(--radius-8); background: var(--surface-screen); box-shadow: 0 0 0 1px var(--stroke-secondary), 0 4px 10px rgba(16, 24, 40, .08); overflow: hidden; }
.ivq__h { height: 12px; background: var(--pa); }
.ivq__m { height: 6px; width: 44px; margin-left: 8px; border-radius: var(--radius-full); background: var(--neutral-75); }
.ivq__m.is-v { width: 30px; margin-left: auto; margin-right: 8px; background: var(--brand-25); }
.ivq__in { height: 8px; margin: 1px 8px 0; border-radius: var(--radius-4); box-shadow: inset 0 0 0 1px var(--stroke-secondary); }
.ivq.is-dark { background: var(--neutral-600); box-shadow: 0 4px 10px rgba(16, 24, 40, .2); }
.ivq.is-dark .ivq__m { background: rgba(255, 255, 255, .24); }
.ivq.is-dark .ivq__m.is-v { background: rgba(255, 255, 255, .5); }
.ivq.is-dark .ivq__in { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.ais-rows > li + li { border-top: 1px solid var(--stroke-tertiary); }
.ais-tv:has(.ais-it) .ais-tv__s { padding-left: 44px; }

/* ======================================================================================================
   round 7: launcher style pickers (lsty 1..5), launcher details structures (ldet 1..5), attention, preview switch
   ====================================================================================================== */
.ais-grp--dep { padding: 0; background: none; border-radius: 0; }
.ais-grp--dep + .ais-grp, .ais-grp + .ais-grp--dep { border-top: 1px solid var(--stroke-tertiary); padding-top: 20px; }
/* icon pickers */
.ics--sm { gap: 8px; }
.ic__i { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
/* preview switch: the DS segmented control, small, the same height as the Play interview button */
.ivn-dev .seg-in { height: 28px; padding: 4px 12px; }
.ivn-pv__h > .ivn-dev { flex: none; }
/* preview widget host (ai-shared/widget.js) */
.ivn-aisw { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 36px 18px 18px; /* r9 note 3: top 36 as before, left, right and bottom halved to 18 */ pointer-events: auto; min-width: 0; }
.ivn-aisw .aisw { width: 380px; max-width: none; }
.ivn-aisw .aisw[data-dev=mobile] { width: 320px; }
.ivn-pv #ivs-play { height: 30px; } .ivn-dev .seg-in { height: 30px; }

/* ======================================================================================================
   round 8 (2026-11-16, research/BRIEF-r8-2026-11-16.md): the final interviewer. Layout only; the parts are in ../../ai-shared (ais-*).
   ====================================================================================================== */
/* section cards: Leads proportions (tinted header, 24px side padding, rows 16px apart) */
.ivn-secs { gap: 12px; } /* r9 R5: 8px less between section cards */
.ais-card__bd { padding: 20px 24px 24px; gap: 20px; }
.ivn-secs .ais-sets, .ivn-secs .ais-rows { margin: 0; }
.ivn-secs .ais-set__c .inp:not(.sm) { max-width: 360px; }
.ivn-secs .ais-set__c .ivs-f { width: 300px; max-width: 100%; }
.ivn-secs .ais-set__c .ivs-f .inp { width: 100%; }
.ivn-secs .ais-set__c .ds-seg { max-width: 100%; }
.ivn-secs .ais-set__c .field-error { margin: 0; }
.ivn-secs .ais-set__c:has(.ais-fxn) { flex-wrap: wrap; }
.ivn-secs .ais-set__c input[type="time"] { width: 130px; }
.ivn-off { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/18px var(--font); color: var(--type-secondary); }
/* launcher rows (the old inspector spacing): 32px icon tiles, 28px swatches, tight rows; 4px more air around each divider */
.ais-sets--compact .ais-set { padding: 16px 0; min-height: 64px; } /* r9 R4: 4px more above and below each divider */
.ais-sets--compact .ais-set:first-child { padding-top: 4px; }
.ais-sets--compact .ais-set:last-child { padding-bottom: 4px; }
.ais-grp--dep { padding: 0; background: none; border-radius: 0; }
.ics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.ics--sm .ic { width: 32px; height: 32px; border-radius: var(--radius-4); }
.ics .ic.is-on, .ics--sm .ic.is-on { box-shadow: 0 0 0 1.5px var(--brand-100); }
.ic__i { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ivn-secs .ais-grp > .ivs-f > .ais-tiles { margin-top: 4px; }
.ivn-secs .ais-grp__t { margin-bottom: 2px; }
.ivn-secs .lockl { margin: 12px 0 0; }
.ivn-secs .ds-note { margin: 12px 0 0; }
.ais-sets + .ds-note { margin-top: 20px; }
.ais-tabs__p > .ais-sets { padding-top: 4px; }
.ais-tabs__p > .ais-sets .ais-set:first-child { padding-top: 8px; }
.ais-card--head .ais-card__bd .ais-tabs__p, .ais-card--head .ais-card__bd > .ais-sets { padding-top: 0; }
/* preview: Desktop/Mobile + Play interview share the header row; the window sits right under it and extra height grows below (note 7) */
.ivn-stage { display: grid; align-content: start; justify-items: center; place-items: initial; justify-items: center; padding: 0; }
.ivn-stage > .ais-win { align-self: start; }
.ivn-pv__a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ivn-pv__h { flex-wrap: wrap; }
.ivn-pv { padding-top: 20px; }
@media (max-width: 1100px) { .ivn-stage { padding: 0; } }
@media (max-width: 640px) { .ais-card__bd { padding: 16px; } .ivn-pv__h { align-items: flex-start; } .ivn-pv__a { justify-content: flex-start; } }
.ais-tile .vp--th { transform: none; zoom: .5; }
.ais-grp__t + .ais-sets { margin-top: 8px; }

/* 2026-11-16 Rijul: the preview hugs the idle widget (12px top and bottom). During Play the window keeps that height and its body scrolls, as a real widget does on a short screen. */
.ivn-aisw .aisw-win { display: flex; flex-direction: column; max-height: var(--winh, none); }
.ivn-aisw .aisw-hd { flex: none; }
.ivn-aisw .aisw-body { min-height: 0; overflow-y: auto; scrollbar-width: thin; }

/* ================= Round 9 (2026-11-16, research/BRIEF-r9-2026-11-16.md) ================= */
/* note 1: the launcher text and Send to inputs hug their text (AISH.auto); the field wrapper no longer fixes 300px */
.ivn-secs .ais-set__c .ivs-f--auto { width: auto; max-width: 100%; display: grid; justify-items: end; gap: 4px; }
.ivn-secs .ais-set__c .ivs-f--auto .inp { width: auto; max-width: 100%; }
/* note 4: head cards (R2) keep the body tight under the divider */
.ais-card--head .ais-card__bd { padding: 20px 24px; }
.ivn-secs .ais-card--head .ds-note { margin: 0; }
.ais-card--head .ais-card__bd > .ais-sets .ais-set:first-child { padding-top: 0; }
.ivn-secs .ais-card--head .ais-card__lead .ais-fxn { display: block; margin-top: 4px; }
/* note 6: time selects (DS select, half-hour slots) */
.ivn-secs .ds-select.ais-time { min-width: 0; }
.ivn-secs .ais-time [role=listbox] { max-height: 264px; overflow-y: auto; }
/* confirm dialog (notes 7 and 8): even 24px padding, summary rows with icon tiles */
.ais-modal .tpldialog.ivn-conf { width: 600px; max-width: 100%; }
.ivn-conf .tpl-head { padding: 24px 24px 20px; align-items: flex-start; }
.ivn-conf .tpl-body { padding: 24px; gap: 20px; }
.ivn-conf .tpl-foot { padding: 16px 24px; }
/* r10c: hero preview + label/value list */
.ivn-cf__stage { display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: var(--radius-12); background: var(--brand-10); border: 1px solid var(--brand-15); overflow: hidden; }
.ivn-cf__box { position: relative; flex: none; overflow: hidden; pointer-events: none; }
.ivn-cf__w { position: absolute; top: 0; left: 0; transform-origin: 0 0; width: 380px; }
.ivn-cf { margin: 0; padding: 0; display: grid; }
.ivn-cf__r { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; align-items: baseline; }
.ivn-cf__r + .ivn-cf__r { border-top: 1px solid var(--stroke-tertiary); }
.ivn-cf__r:first-child { padding-top: 0; }
.ivn-cf__r dt { font: 400 13px/20px var(--font); color: var(--type-secondary); }
.ivn-cf__r dd { margin: 0; font: 400 14px/20px var(--font); color: var(--type-primary); min-width: 0; }
.ivn-cf__n { margin: 0; display: flex; align-items: center; gap: 8px; font: 400 13px/20px var(--font); color: var(--type-secondary); }
.ivn-cf__n .fa { color: var(--green-100); }
.ais-modal .tpldialog.is-busy { width: 424px; } .ais-modal .tpldialog.is-busy .tpl-body { padding: 40px 32px; }
@media (max-width: 520px) { .ivn-conf .tpl-head { padding: 20px 16px 16px; } .ivn-conf .tpl-body { padding: 16px; } .ivn-conf .tpl-foot { padding: 12px 16px; } .ais-modal .tpldialog.is-busy .tpl-body { padding: 32px 20px; } }
.ivn-conf .fm-hd { display: grid; gap: 4px; }
.ivn-conf .rs-dlg-title { margin: 0; font: var(--heading-sm); color: var(--type-primary); }
.ivn-conf .fm-sub { margin: 0; font: var(--body-md); color: var(--type-secondary); }

/* note 5: day chips, equal space above and below the text (DS .tagchip is 2.6px / 1.4px for its 20px chip; this is a 28px chip, text centred on the cap height) */
.ivn-days { gap: 6px; }
.ivn-days .tagchip { height: 28px; padding: 0 12px; }
.ivn-days .tagchip .main { line-height: 16px; padding: 6px 0; margin: 0; }

/* r9b: success notice (title, summary, Pause), toast above the footer */
.ivn-on { display: flex; align-items: center; gap: 12px; }
.ivn-on__t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ivn-on__t b { font-weight: 500; }
.ivn-on__p { flex: none; margin-left: auto; }
.toast { bottom: 88px; }

/* ===== round 10 ===== */
/* note 5: the main card hugs its content (it is as tall as the taller column, never stretched to the viewport); the preview hugs its widget page and is sticky only while the settings column is taller than the visible area (.is-stick, set in ivn.js stick()). The footer stays the full-width sticky bar. */
.view.ivn-page { min-height: 0; }
.ivn-shell--6 .ivn-main .ivn-pv, .ivn-main .ivn-pv { height: auto; min-height: 0; }
.ivn-pv__b, .ivn-stage { flex: none; }
.ivn-right { position: static; align-self: start; }
.ivn-right.is-stick { position: sticky; will-change: auto; }
.ivn-col2 { display: block; }
@media (max-width: 1100px) { .ivn-right, .ivn-right.is-stick { position: static; } }
/* note 13: a look change settles softly (not the full pop) */
.aisw.is-upd .aisw-win, .aisw.is-upd .aisw-lrow { animation: ivnUpd .26s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes ivnUpd { from { opacity: .72; transform: scale(.992); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aisw.is-upd .aisw-win, .aisw.is-upd .aisw-lrow { animation: none; } }
/* note 9: banners in the flow */
.ivn-secs .ds-banner.ais-bn { margin: 12px 0 0; }
.ais-sets + .ds-banner.ais-bn { margin-top: 20px; }
.ivn-secs .ais-card--head .ds-banner.ais-bn { margin: 0; }
.ivn-secs .ais-grp > .ds-banner.ais-bn { margin: 0; }
.ais-set__x .ds-banner.ais-bn { margin: 0; }
.ais-card--head .ais-card__bd:has(> .ds-banner:only-child) { padding: 16px 24px; }
/* note 8: pages picker */
.ivn-pkw { display: grid; gap: 16px; min-width: 0; }
.ivn-pk { position: relative; max-width: none; width: 100%; }
.ivn-pk .inp-act { width: 100%; }
.ivn-pk .inp-act .inp { width: 100%; }
.ivn-pk .set-menu.ivn-pk__m { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; }
.ivn-pl { border: 1px solid var(--stroke-tertiary); border-radius: var(--radius-8); background: var(--surface-screen); overflow: hidden; min-width: 0; }
.ivn-pl__h { padding: 10px 16px; font: 500 13px/20px var(--font); color: var(--type-secondary); background: var(--neutral-25); border-bottom: 1px solid var(--stroke-tertiary); }
.ivn-pl__l { list-style: none; margin: 0; padding: 0; max-height: 264px; overflow-y: auto; }
.ivn-pl__r { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 8px 8px 16px; }
.ivn-pl__r + .ivn-pl__r { border-top: 1px solid var(--stroke-tertiary); }
.ivn-pl__t { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.ivn-pl__t b { font: 500 14px/20px var(--font); color: var(--type-primary); }
.ivn-pl__t .ivn-pkp { font-size: 13px; color: var(--type-tertiary); overflow-wrap: anywhere; }
.ivn-pl__e { display: grid; justify-items: center; gap: 4px; padding: 24px 16px; text-align: center; color: var(--type-tertiary); }
.ivn-pl__e b { font: 500 14px/20px var(--font); color: var(--type-primary); }
.ivn-pl__e span { font: 400 13px/20px var(--font); color: var(--type-secondary); }
.ivn-pl__e .fa { margin-bottom: 4px; }
/* note 3: theme seg with icons */
.ais-set__c .ds-seg .seg-in .fa { font-size: 14px; }
.ais-set__c .ds-seg .seg-in { gap: 8px; }
html:has(.ivn-page) { scrollbar-gutter: stable; } /* r10: the preview scale depends on the column width, so a scrollbar appearing must not change it */
/* the preview header stays one row at every width, so the card height never changes with the Play label (Play interview, Stop, Replay interview) */
.ivn-pv__h { flex-wrap: nowrap; }
#ivs-play { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .ivn-dev .ivn-dev__t { display: none; } }

/* 2026-11-16: mobile preview, 12px side padding so the card can be bigger */
.ais-win--m .ivn-aisw { padding-left: 12px; padding-right: 12px; }
