/* 셋업 위자드 (#setup-wizard, setup-wizard.js): PAGE_PATTERNS H '안내 설정'.
   A flow that covers the window: the brand's ink stage for its three covers (the sign-in page's stage tokens) and, for
   its steps, a frame of its own -- a top line with the four stages, a rail of the stage's steps, the step, and a foot
   that stays (이전 · 안내 · 건너뛰기 · 다음). One headline and one primary button a step.
   Values are click-tokens.css's alone: no hex, no px type size, radius or shadow is written here. The controls are
   click-parts.css's (.lx-btn, .lx-chip, .lx-opt, .lx-card, .lx-note, .lx-in, .lx-sw); this sheet places them and
   draws only what is the wizard's own (the stage, the stepper, the rail, the question rows, the foot).
   The handoff's sizes that the system holds smaller stay the system's (DESIGN_SYSTEM D-02: card 12, control 34/40). */

/* ── The layer: over the console while the screen is on view, under what floats (dialogs, toasts) ── */
html[data-setup-wizard] body { overflow: hidden; }
.sw { position: fixed; inset: 0; z-index: calc(var(--z-floatbar) + 1); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-app); color: var(--ink); font: var(--fw-regular) var(--fs-body)/var(--lh-body) var(--font-sans); }
.sw :is(h1, h2, h3, p, ol, ul, dl, dd) { margin: 0; }
.sw :is(ol, ul) { padding: 0; list-style: none; }
.sw-mono { font-family: var(--font-mono); font-weight: var(--fw-medium); letter-spacing: var(--ls-mono-label); text-transform: uppercase; }
.sw .ck-i { display: block; flex: none; width: var(--icon-md); height: var(--icon-md); fill: currentColor; }
.sw-flip .ck-i { transform: scaleX(-1); }

/* ── The stage: intro and the two Let's Click covers ── */
.sw[data-frame="stage"] { background: var(--brand-ink); color: var(--brand-cloud); }
.sw-stage { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-6); min-height: 100%; padding: 96px var(--sp-6) 104px; overflow: hidden; text-align: center; }
.sw-stage > * { position: relative; z-index: 2; }
.sw-stage-top { position: absolute; top: var(--sp-6); left: 0; right: 0; display: flex; justify-content: space-between; gap: var(--sp-4); padding: 0 clamp(20px, 4vw, 56px); color: var(--brand-ink-label); font-size: var(--fs-3xs); }
.sw-stage-foot { position: absolute; bottom: var(--sp-6); left: 0; right: 0; padding: 0 clamp(20px, 4vw, 56px); color: var(--brand-ink-label); font-size: var(--fs-xs); text-align: left; }
.sw-wm { display: block; width: auto; height: clamp(72px, 10vw, 132px); color: var(--brand-cloud); }
.sw-wm .sw-wm-bolt { fill: var(--brand-yellow); }
.sw-kicker { color: var(--brand-yellow); font-size: var(--fs-2xs); }
.sw-stage-h { max-width: 900px; color: var(--brand-cloud); font-size: var(--fs-display); font-weight: var(--fw-heavy); line-height: 1.12; letter-spacing: var(--ls-display); word-break: keep-all; }
.sw-stage-h > span { display: block; }
.sw-stage-sub { max-width: 540px; color: var(--brand-ink-body); font-size: var(--fs-display-sub); line-height: var(--lh-relaxed); word-break: keep-all; }
.sw-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(880px, 100%); margin-top: var(--sp-4); text-align: left; }
.sw-act { display: flex; flex-direction: column; gap: var(--sp-1); padding: 0 var(--sp-5); border-left: 1px solid var(--brand-ink-line); }
.sw-act-k { color: var(--brand-ink-label); font-size: var(--fs-3xs); }
.sw-act[data-now] .sw-act-k { color: var(--brand-yellow); }
.sw-act b { color: var(--brand-cloud); font-size: var(--fs-section); font-weight: var(--fw-bold); }
.sw-act span:last-child { color: var(--brand-ink-label); font-size: var(--fs-xs); line-height: var(--lh-relaxed); word-break: keep-all; }
.sw-stage-do { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.sw button.sw-go { display: inline-flex; align-items: center; gap: var(--sp-8); min-height: 52px; padding: 0 var(--sp-5) 0 var(--sp-6); border: 0; border-radius: 0; background: var(--brand-yellow); color: var(--brand-ink); font: var(--fw-bold) var(--fs-section)/var(--lh-body) var(--font-sans); cursor: pointer; }
.sw button.sw-go:hover { background: var(--brand-yellow-hover); }
.sw button.sw-go .ck-i { width: var(--icon-lg); height: var(--icon-lg); }
.sw button.sw-later { min-height: 52px; padding: 0 var(--sp-5); border: 1px solid var(--brand-ink-line); border-radius: 0; background: transparent; color: var(--brand-cloud); font: var(--fw-semibold) var(--fs-body)/var(--lh-body) var(--font-sans); cursor: pointer; }
.sw button.sw-later:hover { border-color: var(--brand-ink-label); }
.sw-stage :is(.sw-go, .sw-later):focus-visible { outline: 2px solid var(--brand-yellow); outline-offset: 3px; }
.sw-stage-note { color: var(--brand-ink-label); font-size: var(--fs-xs); }
/* The aligned bars low at the right: the brand's yellow, then the two greys of the sign-in stage. */
.sw-bars { position: absolute; z-index: 1; right: -4vw; bottom: -12vh; display: flex; align-items: flex-end; gap: clamp(8px, 1.6vw, 28px); height: 86vh; pointer-events: none; transform: skewX(-18deg); transform-origin: bottom right; }
.sw-bars > i { display: block; width: clamp(40px, 6.4vw, 96px); }
.sw-bars > i:nth-child(1) { height: 78%; background: linear-gradient(var(--brand-yellow), var(--brand-yellow-hover)); }
.sw-bars > i:nth-child(2) { height: 64%; background: linear-gradient(var(--brand-ink-body), var(--brand-ink-label)); }
.sw-bars > i:nth-child(3) { height: 52%; background: linear-gradient(var(--brand-bolt-mid), var(--brand-bolt-low)); }
.sw-bars > i:nth-child(4) { height: 40%; background: var(--brand-bolt-low); }

/* ── The steps' frame: top line ── */
.sw-top { position: sticky; top: 0; z-index: 3; flex: none; display: flex; align-items: center; gap: var(--sp-4); height: 64px; padding: 0 clamp(16px, 2.4vw, 32px); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: saturate(1.6) blur(12px); }
.sw-brand { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.sw-brand .sw-wm { height: 24px; color: var(--brand-ink); }
.sw-stage-top .sw-brand .sw-wm { color: var(--brand-cloud); }
.sw-stage-top .sw-brand-line, .sw-stage-top .sw-brand-name { display: none; }
.sw-brand-line { width: 1px; height: 18px; background: var(--border-strong); }
.sw-brand-name { color: var(--muted); font-size: var(--fs-4xs); white-space: nowrap; }
.sw-stages { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sw-stages > li { display: flex; align-items: center; gap: 6px; flex: none; }
.sw-stages > li + li::before { content: ""; width: 20px; height: 1px; background: var(--border-strong); }
.sw-stage-pill { display: flex; align-items: center; gap: var(--sp-2); height: var(--ctl-h); padding: 0 var(--sp-3) 0 6px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; }
.sw-stage-pill > i { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: var(--r-pill); background: var(--divider-soft); color: var(--muted); font: var(--fw-semibold) var(--fs-4xs)/1 var(--font-mono); font-style: normal; }
.sw-stage-pill[aria-current="step"] { border-color: var(--brand-ink); background: var(--brand-ink); color: var(--surface); }
.sw-stage-pill[aria-current="step"] > i { background: var(--brand-yellow); color: var(--brand-ink); }
.sw-stage-pill[data-done] { color: var(--ink-2); }
.sw-stage-pill[data-done] > i { background: var(--st-managed-bg); color: var(--st-managed-fg); }
.sw-top-end { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.sw-saved { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.sw-saved .ck-i { width: var(--icon); height: var(--icon); color: var(--st-managed); }
.sw-saved[data-state="failed"] .ck-i { color: var(--st-unmanaged); }
.sw-saved[data-state="saving"] .ck-i { color: var(--faint); }

/* ── The rail: the stage on view and its steps ── */
.sw-frame { display: grid; flex: 1 0 auto; grid-template-columns: 268px minmax(0, 1fr); min-height: 0; }
.sw-rail { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 22px; height: calc(100vh - 64px); height: calc(100dvh - 64px); padding: 28px var(--sp-4) var(--sp-6); overflow-y: auto; border-right: 1px solid var(--border); background: var(--bg-sidebar); }
.sw-rail-head { display: flex; flex-direction: column; gap: 6px; padding: 0 var(--sp-2); }
.sw-rail-k { color: var(--muted); font-size: var(--fs-4xs); }
.sw-rail-t { color: var(--ink); font-size: var(--fs-drawer-title); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); }
.sw-rail-d { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-relaxed); word-break: keep-all; }
.sw-rail-steps { display: flex; flex-direction: column; gap: 2px; }
.sw button.sw-rail-step { display: flex; align-items: center; gap: var(--sp-3); width: 100%; padding: 10px; border: 1px solid transparent; border-radius: var(--r-inner); background: transparent; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer; }
.sw button.sw-rail-step:hover { background: var(--surface); }
.sw button.sw-rail-step[aria-current="step"] { border-color: var(--brand-ink); background: var(--surface); color: var(--ink); }
.sw-rail-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: var(--r-ctl); background: var(--divider-soft); color: var(--muted); font: var(--fw-semibold) var(--fs-3xs)/1 var(--font-mono); }
.sw-rail-n .ck-i { width: var(--icon); height: var(--icon); }
.sw-rail-step[aria-current="step"] .sw-rail-n { background: var(--brand-ink); color: var(--brand-yellow); }
.sw-rail-step[data-state="done"] .sw-rail-n { background: var(--st-managed-bg); color: var(--st-managed-fg); }
.sw-rail-w { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.sw-rail-w > b { font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.sw-rail-step[aria-current="step"] .sw-rail-w > b { font-weight: var(--fw-semibold); }
.sw-rail-w > span { color: var(--muted); font-size: var(--fs-3xs); }
.sw-rail-step > .ck-i { width: var(--icon); height: var(--icon); color: var(--faint); }
.sw-rail-note { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: auto; padding: var(--sp-4); border-radius: var(--r-card); background: var(--brand-ink); color: var(--brand-ink-body); font-size: var(--fs-xs); line-height: var(--lh-relaxed); word-break: keep-all; }
.sw-rail-note > b { display: flex; align-items: center; gap: var(--sp-2); color: var(--brand-yellow); font-size: var(--fs-4xs); }
.sw-rail-note > b .ck-i { width: var(--icon); height: var(--icon); }

/* ── The step ── */
.sw-col { display: flex; flex-direction: column; min-width: 0; }
/* The step's column. The Portal's own <main> holds the wizard, so this is not another one. */
.sw-main { flex: 1 0 auto; padding: clamp(20px, 3vw, 44px) clamp(16px, 3vw, 48px) 48px; }
.sw-body { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 1120px; margin: 0 auto; }
.sw-head { display: flex; flex-direction: column; gap: var(--sp-3); }
.sw-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: var(--fs-xs); }
.sw-head-step { font-size: var(--fs-3xs); }
.sw-head-who { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); }
.sw-head-who .ck-i { width: var(--icon-sm); height: var(--icon-sm); }
.sw-h { color: var(--ink); font-size: var(--fs-display-h); font-weight: var(--fw-bold); line-height: var(--lh-tight); letter-spacing: var(--ls-head); text-wrap: balance; word-break: keep-all; }
/* The headline takes the focus when a step is arrived at, so a reader starts there; it is not a control and draws no ring. */
.sw .sw-h:is(:focus, :focus-visible) { outline: 0; }
.sw-lede { max-width: 680px; color: var(--ink-3); font-size: var(--fs-section); line-height: var(--lh-relaxed); text-wrap: pretty; word-break: keep-all; }
.sw-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: var(--sp-6); }
.sw-stack { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }

/* A card of rows: its head line, then a row a question or a setting (name at the left, its controls at the right). */
.sw .lx-card.sw-rows { padding: 0; overflow: hidden; }
.sw-rows-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); padding: 14px var(--sp-6); background: var(--bg-head); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-rows-h > span:last-child:not(:first-child) { color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.sw-rowq { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--divider-soft); }
.sw-rowq-n { display: flex; flex: 1 1 180px; flex-direction: column; gap: var(--sp-1); max-width: 260px; }
.sw-rowq-n > i { color: var(--muted); font: var(--fw-medium) var(--fs-4xs)/var(--lh-body) var(--font-mono); font-style: normal; }
.sw-rowq-n > b { color: var(--ink); font-size: var(--fs-section); font-weight: var(--fw-semibold); line-height: var(--lh-snug); word-break: keep-all; }
.sw-rowq-n > span { color: var(--muted); font-size: var(--fs-2xs); line-height: var(--lh-body); word-break: keep-all; }
.sw-rowq-c { display: flex; flex: 2 1 320px; flex-direction: column; gap: 10px; min-width: 0; }
.sw-picks { display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--sp-2); }
.sw-picks .lx-chip .ck-i { width: var(--icon-sm); height: var(--icon-sm); }
.sw-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-2); }
.sw .lx-opt.sw-opt { flex-direction: column; gap: var(--sp-1); }
.sw-opt > b { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; }
.sw-opt > b .ck-i { visibility: hidden; }
.sw-opt:is([aria-checked="true"], [aria-pressed="true"]) > b .ck-i { visibility: visible; }
.sw-opt > span { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-snug); word-break: keep-all; }
.sw-hint { display: flex; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-relaxed); word-break: keep-all; }
.sw-hint .ck-i { width: var(--icon); height: var(--icon); margin-top: 2px; color: var(--faint); }
.sw-count { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-inner); background: var(--surface); }
.sw-count > button { display: grid; place-items: center; width: 44px; height: 48px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.sw-count > button:disabled { color: var(--faint); cursor: not-allowed; }
.sw-count > input { width: 64px; height: 48px; padding: 0; border: 0; border-inline: 1px solid var(--divider-soft); background: transparent; color: var(--ink); font: var(--fw-bold) var(--fs-kpi-sm)/1 var(--font-sans); text-align: center; }
.sw-count > input::placeholder { color: var(--faint); }
.sw-count-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); color: var(--ink-3); font-size: var(--fs-sm); }

/* A step's panels (the design's white section): a head, then lines a rule apart; a line is what leads it, its name and
   what is said of it, and its controls at the right. */
.sw .lx-card.sw-panel { padding: 0; overflow: hidden; }
.sw-panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 18px var(--sp-6); }
.sw-panel-h > div:first-child { display: flex; flex: 1 1 260px; flex-direction: column; gap: 3px; min-width: 0; }
.sw-panel-h p { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-body); word-break: keep-all; }
.sw-panel-b { display: flex; flex-direction: column; gap: var(--sp-3); padding: 0 var(--sp-6) var(--sp-5); }
.sw-panel-h + .sw-panel-b { margin-top: -4px; }
.sw-panel > .sw-panel-b:first-child { padding-top: var(--sp-5); }
.sw-panel-b + .sw-line, .sw-panel-b + .sw-panel-b { border-top: 1px solid var(--divider-soft); }
.sw-panel-b + .sw-panel-b { padding-top: var(--sp-4); }
.sw-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--divider-soft); }
.sw-panel > .sw-line:first-child { border-top: 0; }
.sw-line[data-tone="high"] { background: var(--primary-wash); }
.sw-line > .ck-i { flex: none; width: var(--icon-lg); height: var(--icon-lg); color: var(--ink-3); }
.sw-line-t { display: flex; flex: 1 1 220px; flex-direction: column; gap: 3px; min-width: 0; }
.sw-line-t > b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink); font-size: var(--fs-body); font-weight: var(--fw-semibold); line-height: var(--lh-snug); word-break: keep-all; overflow-wrap: anywhere; }
.sw-line-t > span { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-body); word-break: keep-all; }
.sw-line[data-tone="warn"] .sw-line-t > span { color: var(--st-unmanaged-fg); }
.sw-line-end { min-width: 90px; margin-left: auto; color: var(--ink-3); font-size: var(--fs-xs); text-align: right; }
.sw-line-below { flex: 1 0 100%; min-width: 0; }
/* A fold straight in a panel (U200 W2 세부 조건): its head on the panel's own left line, its rows the panel's lines. */
.sw-fold > summary { padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--divider-soft); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
/* U42 C5: the relay root's risk facts stand under its words, past the line's icon (its width and the line's column gap). */
.sw-relay-risk { display: grid; margin: 0; padding-left: calc(var(--icon-lg) + var(--sp-5)); }
.sw-relay-dom { display: block; }
.sw-relay-dom + .sw-relay-dom { margin-top: var(--sp-1); }
.sw-relay-dom > .lx-sub { display: inline; }
.sw-tile { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--r-inner); background: var(--bg-app); color: var(--ink-2); }
.sw-tile .ck-i { width: var(--icon-lg); height: var(--icon-lg); }
.sw-high { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--st-unmanaged-bg); color: var(--st-unmanaged-fg); font-size: var(--fs-3xs); font-weight: var(--fw-bold); font-style: normal; }
.sw-bad { display: flex; align-items: flex-start; gap: 6px; color: var(--st-unmanaged-fg); font-size: var(--fs-xs); line-height: var(--lh-body); word-break: keep-all; }
.sw-bad .ck-i { flex: none; width: var(--icon); height: var(--icon); margin-top: 1px; }
.sw-banner { display: flex; gap: var(--sp-3); padding: var(--sp-4) 18px; border: 1px solid transparent; border-radius: var(--r-card); font-size: var(--fs-sm); line-height: var(--lh-body); word-break: keep-all; }
.sw-banner > .ck-i { flex: none; width: var(--icon-lg); height: var(--icon-lg); }
.sw-banner > div { display: flex; flex-direction: column; gap: var(--sp-1); }
.sw-banner b { font-weight: var(--fw-bold); }
.sw-banner[data-tone="warn"] { border-color: var(--warn-banner-line); background: var(--warn-banner-bg); color: var(--warn-banner-fg); }
.sw-banner[data-tone="ok"] { background: var(--st-managed-bg); color: var(--st-managed-fg); }
.sw-quote { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-inner); background: var(--bg-app); color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-relaxed); white-space: pre-line; word-break: keep-all; }
.sw-find { width: min(320px, 100%); }
.sw-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; gap: var(--sp-4); }

/* 0-2: a list of names -- what it is at the left, the names held and the field that adds one at the right. */
.sw-field { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 22px var(--sp-6); border-top: 1px solid var(--divider-soft); }
.sw-field:first-child { border-top: 0; }
.sw-field-n { display: flex; flex: 1 1 200px; flex-direction: column; gap: var(--sp-1); max-width: 260px; }
.sw-field-n > b { color: var(--ink); font-size: var(--fs-section); font-weight: var(--fw-semibold); }
.sw-field-n > span { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-body); word-break: keep-all; }
.sw-field-c { display: flex; flex: 2 1 320px; flex-direction: column; gap: 10px; min-width: 0; }
.sw-vals { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-val { display: inline-flex; align-items: center; gap: 6px; min-height: var(--pill-h); padding: 0 6px 0 11px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--bg-app); color: var(--ink); overflow-wrap: anywhere; }
.sw-val > i { padding: 0 6px; border-radius: var(--r-xs); background: var(--warn-banner-bg); color: var(--warn-banner-fg); font: var(--fw-semibold) var(--fs-3xs)/1.6 var(--font-sans); }
.sw-val > button { display: grid; flex: none; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--muted); cursor: pointer; }
.sw-val > button:hover:not(:disabled) { background: var(--border); color: var(--ink); }
.sw-val > button:disabled { color: var(--faint); cursor: not-allowed; }
.sw-val > button:focus-visible { outline: 2px solid var(--select-ring); outline-offset: 1px; }
.sw-val > button .ck-i { width: var(--icon-sm); height: var(--icon-sm); }
.sw-add { display: flex; gap: var(--sp-2); }
.sw-add > .lx-in { flex: 1; min-width: 0; }
.sw-record { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-inner); background: var(--bg-subtle); }
.sw-record > p:first-child { color: var(--ink-3); font-size: var(--fs-xs); line-height: var(--lh-body); word-break: keep-all; }
.sw-record dl { display: flex; flex-direction: column; gap: var(--sp-1); }
.sw-record dl > div { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.sw-record dt { flex: none; width: 96px; color: var(--muted); font-size: var(--fs-xs); }
.sw-record dd { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.sw-list { display: flex; flex-direction: column; color: var(--ink-2); font-size: var(--fs-sm); }
.sw-list > li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--divider-soft); font-weight: var(--fw-semibold); }
.sw-list .ck-i { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--st-managed); }

/* 0-3: the ways a roster comes, one card each. */
.sw-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.sw .lx-card.sw-way { display: flex; flex-direction: column; gap: 14px; min-height: 132px; padding: 18px; }
.sw-way-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.sw-way-mark { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: var(--r-inner); background: var(--brand-ink); color: var(--surface); font-size: var(--fs-section); font-weight: var(--fw-heavy); font-style: normal; }
.sw-way-t { display: flex; flex-direction: column; gap: 3px; }
.sw-way-t > b { color: var(--ink); font-size: var(--fs-section); font-weight: var(--fw-bold); }
.sw-way-t > span { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-body); word-break: keep-all; }

/* 0-5: the values that stay, a rule's action now and its target, the advised one marked. */
.sw-kept { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--divider); color: var(--ink-2); font-size: var(--fs-sm); }
.sw-kept > b { display: flex; align-items: center; gap: var(--sp-2); color: var(--ink); font-weight: var(--fw-bold); }
.sw-kept > b .ck-i { width: var(--icon-md); height: var(--icon-md); }
.sw-kept > span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.sw-kept > span > i { display: inline-flex; align-items: center; height: var(--chip-h); padding: 0 8px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: var(--fs-2xs); font-weight: var(--fw-bold); font-style: normal; }
.sw-kept > small { flex: 1 1 220px; color: var(--muted); font-size: var(--fs-xs); text-align: right; word-break: keep-all; }
.sw-now { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.sw-now .ck-i { width: var(--icon); height: var(--icon); }
.sw-now .lx-tag { color: var(--ink-2); font-weight: var(--fw-bold); }
.sw-seg > button { position: relative; white-space: nowrap; }
.sw-seg > button:disabled { color: var(--faint); cursor: not-allowed; }
.sw .sw-seg > button[aria-pressed="true"], .sw .sw-seg > button[aria-pressed="true"]:hover { background: var(--brand-ink); color: var(--surface); }
.sw-rec { position: absolute; top: -7px; right: -4px; padding: 0 4px; border-radius: var(--r-xs); background: var(--brand-yellow); color: var(--brand-ink); font: var(--fw-bold) var(--fs-4xs)/1.45 var(--font-sans); }
.sw-panel-h .sw-count > button { width: 34px; height: var(--ctl-h); }
.sw-panel-h .sw-count > input { width: 48px; height: var(--ctl-h); font-size: var(--fs-body); }

/* 0-6: where the deployment starts, and what that comes to on ink. */
.sw-scopes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.sw .sw-scopes > .lx-opt { padding: 18px; }
.sw-scopes + .sw-picks, .sw-scopes + .sw-find { margin-top: calc(var(--sp-3) * -1); }
.sw-picks .lx-chip .lx-n { opacity: .7; }
.sw-band { display: flex; flex-wrap: wrap; border-radius: var(--r-card); background: var(--brand-ink); color: var(--brand-cloud); overflow: hidden; }
.sw-band > div { display: flex; flex: 1 1 200px; flex-direction: column; gap: 6px; padding: var(--sp-5) var(--sp-6); border-right: 1px solid var(--brand-ink-line); }
.sw-band > div:last-child { border-right: 0; }
.sw-band i { color: var(--brand-ink-label); font: var(--fw-medium) var(--fs-4xs)/var(--lh-body) var(--font-mono); font-style: normal; letter-spacing: .14em; }
.sw-band [data-tone="go"] > i { color: var(--brand-yellow); }
.sw-band b { font-size: var(--fs-kpi); font-weight: var(--fw-heavy); letter-spacing: var(--ls-head); line-height: var(--lh-tight); }
.sw-band span { font-size: var(--fs-section); font-weight: var(--fw-semibold); line-height: var(--lh-body); word-break: keep-all; }
.sw-band small { color: var(--brand-ink-label); font-size: inherit; font-weight: var(--fw-medium); }

/* 0-7: how far the first collection is, three figures over their bars. */
.sw .lx-card.sw-meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-5) var(--sp-8); padding: 22px var(--sp-6); }
.sw-meter { display: flex; flex-direction: column; gap: 10px; }
.sw-meter > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }
.sw-meter > div > b { color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-meter > div > span { color: var(--faint); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-meter > div > span > b { color: var(--ink); font-size: var(--fs-kpi-sm); font-weight: var(--fw-heavy); }
.sw-meter progress { appearance: none; width: 100%; height: 10px; border: 0; border-radius: var(--r-pill); background: var(--divider-soft); overflow: hidden; }
.sw-meter progress::-webkit-progress-bar { border-radius: var(--r-pill); background: var(--divider-soft); }
.sw-meter progress::-webkit-progress-value { border-radius: var(--r-pill); background: var(--brand-ink); }
.sw-meter progress::-moz-progress-bar { border-radius: var(--r-pill); background: var(--brand-ink); }
.sw-meter progress[data-kind="preview"]::-webkit-progress-value { background: var(--brand-yellow); }
.sw-meter progress[data-kind="preview"]::-moz-progress-bar { background: var(--brand-yellow); }
.sw-meter progress[data-kind="installed"]::-webkit-progress-value { background: repeating-linear-gradient(-45deg, var(--faint) 0 4px, var(--border-strong) 4px 8px); }
.sw-meter progress[data-kind="installed"]::-moz-progress-bar { background: repeating-linear-gradient(-45deg, var(--faint) 0 4px, var(--border-strong) 4px 8px); }
.sw-reflect-say { color: var(--ink-3); font-size: var(--fs-sm); line-height: var(--lh-body); word-break: keep-all; }
.sw-reflect > p.sw-reflect-say { padding-top: 0; border-top: 0; }

/* What the answers lead to, beside the questions. */
.sw-reflect { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--sp-4); }
.sw-reflect-h { display: flex; align-items: center; gap: var(--sp-2); color: var(--ink); font-size: var(--fs-body); font-weight: var(--fw-bold); }
.sw-reflect-h > i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--brand-ink); color: var(--brand-yellow); }
.sw-reflect-h > i .ck-i { width: var(--icon); height: var(--icon); }
.sw-reflect dl { display: flex; flex-direction: column; gap: var(--sp-3); }
.sw-reflect dt { color: var(--muted); font-size: var(--fs-2xs); }
.sw-reflect dd { color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-snug); word-break: keep-all; }
.sw-reflect dd > small { display: block; color: var(--muted); font-size: var(--fs-2xs); font-weight: var(--fw-regular); }
.sw-reflect > p { padding-top: var(--sp-3); border-top: 1px solid var(--divider-soft); color: var(--muted); font-size: var(--fs-2xs); line-height: var(--lh-body); }

/* ── The foot ── */
.sw-foot { position: sticky; bottom: 0; z-index: 2; flex: none; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(10px); }
.sw-foot-in { display: flex; align-items: center; gap: var(--sp-3); max-width: 1216px; margin: 0 auto; padding: var(--sp-3) clamp(16px, 3vw, 48px); }
.sw-foot .lx-btn { height: var(--ctl-h-lg); padding: 0 var(--sp-4); font-size: var(--fs-body); }
.sw-foot-hint { flex: 1; min-width: 0; color: var(--muted); font-size: var(--fs-sm); text-align: right; text-wrap: pretty; word-break: keep-all; }
.sw-foot .lx-btn.sw-next[data-tone="go"] { border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--brand-ink); }
.sw-foot .lx-btn.sw-next[data-tone="go"]:hover { border-color: var(--brand-yellow-hover); background: var(--brand-yellow-hover); }

/* ── Narrow: the rail folds under 980, the side column drops under 1240, the stepper names only its stage under 1400 ── */
@media (max-width: 1399px) {
  .sw-stage-pill:not([aria-current="step"]) > span { display: none; }
  .sw-stage-pill:not([aria-current="step"]) { padding: 0 6px; }
}
@media (max-width: 1239px) {
  .sw-split { grid-template-columns: minmax(0, 1fr); }
  .sw-reflect { position: static; }
}
@media (max-width: 979px) {
  .sw-frame { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .sw-rail { position: static; flex-direction: row; align-items: center; gap: var(--sp-3); height: auto; padding: var(--sp-3) var(--sp-4); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .sw-rail-head, .sw-rail-note, .sw-rail-w > span { display: none; }
  .sw-rail-steps { flex-direction: row; }
  .sw button.sw-rail-step { width: auto; padding: 6px 10px 6px 6px; white-space: nowrap; }
  .sw button.sw-rail-step:not([aria-current="step"]) .sw-rail-w { display: none; }
  .sw-brand-line, .sw-brand-name, .sw-saved > span { display: none; }
  .sw-acts { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .sw-bars { height: 46vh; opacity: .5; }
  .sw-foot-hint { display: none; }
  .sw-foot-in { justify-content: space-between; }
}

/* ── Motion: the stage arrives once; nothing moves for a person who asked for less ── */
@keyframes sw-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sw-bolt { 0% { opacity: 0; transform: translateY(-120%) scale(1.4); } 60% { opacity: 1; transform: translateY(6%) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes sw-bar { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .sw-stage[data-arrive] > :not(.sw-bars) { animation: sw-up var(--dur) var(--ease) both; animation-duration: 520ms; }
  .sw-stage[data-arrive] > :nth-child(3) { animation-delay: 120ms; }
  .sw-stage[data-arrive] > :nth-child(4) { animation-delay: 220ms; }
  .sw-stage[data-arrive] > :nth-child(5) { animation-delay: 320ms; }
  .sw-stage[data-arrive] > :nth-child(6) { animation-delay: 420ms; }
  .sw-stage[data-arrive] > :nth-child(n+7) { animation-delay: 520ms; }
  .sw-stage[data-arrive] .sw-wm-bolt { transform-box: fill-box; transform-origin: center; animation: sw-bolt 620ms var(--ease) 380ms both; }
  .sw-stage[data-arrive] .sw-bars > i { animation: sw-bar 700ms var(--ease) both; }
  .sw-stage[data-arrive] .sw-bars > i:nth-child(2) { animation-delay: 90ms; }
  .sw-stage[data-arrive] .sw-bars > i:nth-child(3) { animation-delay: 180ms; }
  .sw-stage[data-arrive] .sw-bars > i:nth-child(4) { animation-delay: 270ms; }
}

/* 1단계 (setup-wizard-start.js). 1-1: the brand's ink card (the stage, expected → found, the products, the tools counted
   apart), the figures beside it and when they are confirmed. */
.sw-reveal { position: relative; overflow: hidden; padding: clamp(24px, 3.2vw, 44px); border-radius: var(--r-card); background: var(--brand-ink); color: var(--brand-cloud); }
.sw-bolts { position: absolute; right: -24px; bottom: -40px; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; }
.sw-bolts > svg { display: block; width: auto; height: 250px; fill: var(--brand-yellow); }
.sw-bolts > svg:nth-child(2) { height: 210px; opacity: .85; }
.sw-bolts > svg:nth-child(3) { height: 176px; fill: var(--brand-bolt-mid); }
.sw-bolts > svg:nth-child(4) { height: 146px; fill: var(--brand-bolt-low); }
.sw-reveal-in { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.sw-reveal-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sw-reveal-chip { display: inline-flex; align-items: center; height: var(--chip-h); padding: 0 9px; background: var(--brand-yellow); color: var(--brand-ink); font-size: var(--fs-2xs); font-weight: var(--fw-heavy); }
.sw-reveal-basis { color: var(--brand-ink-body); font: var(--fw-medium) var(--fs-3xs)/var(--lh-body) var(--font-mono); letter-spacing: .08em; }
.sw-reveal-basis time { color: inherit; }
.sw-reveal-n { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(16px, 2.4vw, 32px); }
.sw-reveal-n > span { display: flex; flex-direction: column; gap: 6px; }
.sw-reveal-n i { color: var(--brand-ink-label); font: var(--fw-medium) var(--fs-4xs)/var(--lh-body) var(--font-mono); font-style: normal; letter-spacing: var(--ls-mono-label); }
.sw-reveal-n [data-now] i { color: var(--brand-yellow); }
.sw-reveal-n b { color: var(--brand-bolt-mid); font-size: var(--fs-figure-lead); font-weight: var(--fw-heavy); letter-spacing: -0.05em; line-height: .9; }
.sw-reveal-n [data-now] b { color: var(--brand-yellow); font-size: var(--fs-figure-hero); letter-spacing: -0.06em; line-height: .82; }
.sw-reveal-n b > small { margin-left: 4px; font-size: .32em; letter-spacing: 0; }
.sw-reveal-n [data-now] b > small { margin-left: 6px; font-size: .26em; }
.sw-reveal-n > .ck-i { flex: none; width: var(--icon-lg); height: var(--icon-lg); margin-bottom: 10px; color: var(--brand-yellow); }
.sw-reveal-h { margin: 0; color: var(--brand-cloud); font-size: var(--fs-figure-line); font-weight: var(--fw-bold); letter-spacing: var(--ls-head); line-height: var(--lh-snug); text-wrap: balance; word-break: keep-all; }
.sw-reveal-h > span { color: var(--brand-yellow); }
.sw-reveal-p { margin: 0; color: var(--brand-ink-body); font-size: var(--fs-sm); line-height: var(--lh-body); }
.sw-reveal-find .sw-find { border-color: var(--brand-ink-line); background: transparent; color: var(--brand-cloud); }
.sw-prods { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-kind { display: grid; gap: var(--sp-2); }
.sw-kind-h { margin: 0; color: var(--brand-ink-label); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-prod { display: inline-flex; align-items: center; gap: 6px; height: var(--pill-h); padding: 0 11px; border: 1px solid var(--brand-ink-line); color: var(--brand-cloud); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-prod[data-open] { border-color: var(--brand-yellow); color: var(--brand-yellow); }
.sw-prod > i { font: var(--fw-medium) var(--fs-4xs)/1 var(--font-mono); font-style: normal; letter-spacing: .06em; opacity: .85; }
.sw-reveal-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) 28px; padding-top: 18px; border-top: 1px solid var(--brand-ink-line); color: var(--brand-ink-body); font-size: var(--fs-sm); }
.sw-reveal-kinds b { color: var(--brand-cloud); font-size: var(--fs-section); }
.sw-reveal-apart { color: var(--brand-ink-label); }
.sw-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.sw .lx-card.sw-fig { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); }
.sw-fig-k { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-fig-k > .ck-i { flex: none; width: var(--icon-sm); height: var(--icon-sm); }
.sw-fig .lx-fig > small { margin-left: 3px; color: var(--faint); font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0; }
.sw-fig-s { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-body); word-break: keep-all; }
.sw .lx-card.sw-tl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) 28px; padding: var(--sp-5) var(--sp-6); }
.sw-tl-track { display: flex; flex: 1 1 440px; align-items: flex-start; } /* under ~760 of card the note drops below the track */
.sw-tl-end { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 6px; }
.sw-tl-end[data-last] { align-items: flex-end; text-align: right; }
.sw-tl-end b { font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.sw-tl-end span { color: var(--faint); font-size: var(--fs-3xs); }
.sw-tl-dot { box-sizing: border-box; width: 14px; height: 14px; border: 3px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface); }
.sw-tl-dot[data-on] { border-color: var(--brand-yellow); background: var(--brand-ink); }
.sw-tl-bar { flex: 1; height: 0; margin: 6px 10px 0; border-top: 2px dashed var(--border-strong); }
.sw-tl-track[data-done] .sw-tl-bar { border-top-style: solid; border-top-color: var(--brand-ink); }
.sw-tl-note { flex: 1 1 280px; margin: 0; color: var(--ink-3); font-size: var(--fs-sm); line-height: var(--lh-relaxed); word-break: keep-all; }

/* 1-2: the figures as chips, the tools waiting as cards with their facts, each area with how it takes effect. */
.sw-kchips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sw-kchip { display: inline-flex; align-items: center; gap: 10px; height: var(--ctl-h-lg); padding: 0 14px; border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-kchip b { color: var(--ink); font-size: var(--fs-kpi-sm); font-weight: var(--fw-heavy); }
.sw-kchip[data-tone="go"] { border-color: var(--brand-yellow); background: var(--brand-yellow); color: var(--brand-ink); }
.sw-sect { display: flex; flex-direction: column; gap: var(--sp-3); }
.sw-sect-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); }
.sw-sect-h > span { flex: 1 1 240px; color: var(--faint); font-size: var(--fs-xs); text-align: right; word-break: keep-all; }
.sw .lx-card.sw-dcard { display: flex; flex-direction: column; gap: 14px; padding: 18px var(--sp-5); border-color: var(--warn-banner-line); }
.sw-dcard-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); }
.sw-dcard-t { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); min-width: 0; }
.sw-dcard-t > b { font-family: var(--font-mono); font-size: var(--fs-section); font-weight: var(--fw-semibold); word-break: break-all; }
.sw-dcard-do { display: flex; flex: none; align-items: flex-end; gap: var(--sp-2); }
.sw-dcard-pick { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
.sw-dcard-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.sw-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-radius: var(--r-inner); background: var(--bg-head); }
.sw-facts > div { display: flex; flex-direction: column; gap: var(--sp-1); padding: 10px 14px; border-right: 1px solid var(--divider-soft); }
.sw-facts > div:last-child { border-right: 0; }
.sw-facts dt { color: var(--faint); font: var(--fw-medium) var(--fs-4xs)/var(--lh-body) var(--font-mono); letter-spacing: .08em; }
.sw-facts dd { margin: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-mode { display: inline-flex; flex: none; align-items: center; gap: var(--sp-1); height: var(--badge-h); padding: 0 var(--sp-2); border-radius: var(--r-pill); background: var(--divider-soft); color: var(--ink-3); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); white-space: nowrap; }
.sw-mode[data-mode="now"] { background: var(--brand-yellow); color: var(--brand-ink); }
.sw-mode .ck-i { width: var(--icon-sm); height: var(--icon-sm); }
.sw-line-end > .sw-mode + .lx-btn, .sw-line-end > .lx-st + .lx-btn, .sw-line-end > .lx-btn + .lx-btn { margin-left: var(--sp-2); }
.sw-arow > .sw-line-end { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: var(--sp-3); }

/* 1-3: the people by the judgement as one bar, and what each area changes as a table. */
.sw .lx-card.sw-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5) var(--sp-10); padding: var(--sp-6); }
.sw-share-n { display: flex; flex-direction: column; gap: var(--sp-2); }
.sw-share-n > span { color: var(--ink-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-share-fig { font-size: var(--fs-figure-lead); font-weight: var(--fw-heavy); letter-spacing: -0.05em; line-height: .9; }
.sw-share-fig > small { margin-left: 2px; color: var(--faint); font-size: .36em; letter-spacing: 0; }
.sw-share-b { display: flex; flex: 1 1 360px; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.sw-sbar { display: flex; gap: 2px; height: 14px; overflow: hidden; border-radius: var(--r-pill); background: var(--divider-soft); }
.sw-sbar > i, .sw-skey i { display: block; background: var(--faint); }
.sw-skey { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin: 0; padding: 0; list-style: none; color: var(--ink-3); font-size: var(--fs-xs); }
.sw-skey li { display: inline-flex; align-items: center; gap: 6px; }
.sw-skey i { width: 10px; height: 10px; border-radius: var(--r-xs); }
.sw-skey b { color: var(--ink); }
:is(.sw-sbar, .sw-skey) [data-part="managed"] i, .sw-sbar > i[data-part="managed"] { background: var(--st-managed); }
:is(.sw-sbar, .sw-skey) [data-part="partial"] i, .sw-sbar > i[data-part="partial"] { background: var(--st-partial); }
:is(.sw-sbar, .sw-skey) [data-part="in_remediation"] i, .sw-sbar > i[data-part="in_remediation"] { background: var(--st-review); }
:is(.sw-sbar, .sw-skey) [data-part="unmanaged"] i, .sw-sbar > i[data-part="unmanaged"] { background: var(--st-unmanaged); }
.sw-skey [data-part="unknown"] i, .sw-sbar > i[data-part="unknown"] { background: repeating-linear-gradient(135deg, var(--faint) 0 3px, var(--divider-soft) 3px 6px); }
.sw .lx-card.sw-tcard { padding: 0; overflow: hidden; }
.sw-tscroll { overflow-x: auto; }
.sw-t { width: 100%; border-collapse: collapse; }
.sw .sw-t :is(th, td) { padding-left: var(--sp-5); padding-right: var(--sp-5); text-align: left; vertical-align: middle; word-break: keep-all; }
.sw .sw-t thead th { background: var(--bg-head); }
/* A row's own name is a row header (th scope=row): it reads as its row's first cell, not as a column's head. */
.sw .sw-t tbody th { padding-top: var(--row-pad); padding-bottom: var(--row-pad); border-bottom-color: var(--divider-soft); color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-bold); white-space: nowrap; }
.sw .sw-t .sw-t-n { text-align: right; font-weight: var(--fw-bold); white-space: nowrap; }
.sw-banner[data-tone="plain"] { background: var(--divider-soft); color: var(--ink-3); }

/* 1-4: each area numbered with its state, the one button in the card; what cannot be undone and the record beside. */
.sw .lx-card.sw-apply { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sw-apply-h { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--divider); }
.sw-apply-h > span { color: var(--ink-3); font-size: var(--fs-sm); line-height: var(--lh-body); word-break: keep-all; }
.sw-arow { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--divider-soft); }
.sw-arow-n { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--divider-soft); color: var(--ink-3); font: var(--fw-semibold) var(--fs-3xs)/1 var(--font-mono); }
.sw-arow-s { color: var(--faint); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-arow-s[data-set] { color: var(--st-managed-fg); }
.sw-apply-do { padding: var(--sp-5) var(--sp-6); }
.sw-apply-go { width: 100%; justify-content: center; }
.sw-side.sw-reflect { position: static; }
.sw-side-list { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding-left: 0; list-style: none; color: var(--ink-3); font-size: var(--fs-sm); line-height: var(--lh-body); word-break: keep-all; }
.sw-side-list > li::before { content: '· '; }

/* 홈의 이어 하기: one line above 홈's own root while the wizard has a step to do (setup-wizard.js resumeHtml). */
.sw-resume { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-6); margin-bottom: var(--sp-4); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--primary-line); border-radius: var(--r-card); background: var(--primary-tint); color: var(--primary-ink); }
.sw-resume .sw-wm { flex: none; height: 18px; color: var(--brand-ink); }
.sw-resume > div { display: flex; flex: 1 1 300px; flex-direction: column; gap: var(--sp-1); min-width: 0; word-break: keep-all; }
.sw-resume b { font-size: var(--fs-section); font-weight: var(--fw-bold); }
.sw-resume span { color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-body); }
.sw-resume .lx-btn .ck-i { width: var(--icon-md); height: var(--icon-md); }

/* 1단계 on a narrow screen: the bolts step back behind the figures. */
@media (max-width: 979px) {
  .sw-bolts { right: -12px; bottom: -20px; opacity: .45; }
  .sw-bolts > svg { height: 132px; }
  .sw-bolts > svg:nth-child(2) { height: 112px; }
  .sw-bolts > svg:nth-child(3) { height: 94px; }
  .sw-bolts > svg:nth-child(4) { height: 78px; }
}

/* 2-1: the rules observed down the side, the one picked as the brand's ink card, by destination and its reports below. */
.sw-obs { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; gap: var(--sp-5); }
.sw-rlist { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.sw .lx-card.sw-rpick { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: var(--sp-4) 18px; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sw .lx-card.sw-rpick[aria-current="true"] { border-color: var(--brand-ink); outline: 1px solid var(--brand-ink); }
.sw-rpick-t { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.sw-rpick-t > b { font-size: var(--fs-body); font-weight: var(--fw-bold); word-break: keep-all; }
.sw-rpick-st { display: inline-flex; flex: none; align-items: center; gap: var(--sp-2); }
.sw-rpick-s, .sw-rlist-left { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-body); }
.sw-oink { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 2.6vw, 32px); border-radius: var(--r-card); background: var(--brand-ink); color: var(--brand-cloud); }
.sw-oink-k { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-4); color: var(--brand-yellow); font: var(--fw-medium) var(--fs-3xs)/var(--lh-body) var(--font-mono); letter-spacing: .08em; }
.sw-oink-k > span + span { color: var(--brand-ink-label); }
.sw-oink-n { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4) clamp(24px, 3vw, 44px); }
.sw-oink-f { display: flex; flex-direction: column; gap: 6px; }
.sw-oink-f > span { color: var(--brand-ink-label); font-size: var(--fs-xs); }
.sw-oink-f > b { color: var(--brand-cloud); font-size: var(--fs-figure-line); font-weight: var(--fw-heavy); letter-spacing: -0.03em; line-height: 1; }
.sw-oink-f[data-lead] > b { color: var(--brand-yellow); font-size: var(--fs-figure-lead); letter-spacing: -0.05em; line-height: .9; }
.sw-oink-f > b > small { margin-left: 3px; font-size: .5em; letter-spacing: 0; }
.sw-oink-f[data-lead] > b > small { font-size: .32em; }
.sw-oink-by { margin: 0; color: var(--brand-ink-body); font-size: var(--fs-sm); }
.sw-oink-by b { color: var(--brand-cloud); }
.sw-oink-p { margin: 0; max-width: 680px; color: var(--brand-ink-body); font-size: var(--fs-sm); line-height: var(--lh-body); word-break: keep-all; }
.sw .lx-card.sw-owait { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-6); }
.sw-owait > div { display: flex; flex-direction: column; gap: var(--sp-1); min-width: 0; word-break: keep-all; }
.sw-owait b { font-size: var(--fs-section); font-weight: var(--fw-bold); }
.sw-owait span { color: var(--ink-3); font-size: var(--fs-sm); line-height: var(--lh-body); }
.sw-owait-i { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--r-pill); background: var(--divider-soft); color: var(--ink-3); }
.sw-owait[data-state="enforced"] .sw-owait-i { background: var(--st-managed-bg); color: var(--st-managed-fg); }
.sw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: var(--sp-4); }
.sw-two .sw-line-t { flex-basis: 140px; }
.sw-two .sw-line-end { min-width: 0; }

/* 2-2: a card for each rule whose observation ended, four choices across, and what the one chosen does. */
.sw .lx-card.sw-dec { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-5) var(--sp-6); }
.sw-dec-h { display: flex; flex-direction: column; gap: var(--sp-1); }
.sw-dec-h > b { font-size: var(--fs-section); font-weight: var(--fw-bold); word-break: keep-all; }
.sw-dec-h > span { color: var(--muted); font-size: var(--fs-xs); }
.sw .lx-seg.sw-dopts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
.sw-dopts > button { height: var(--ctl-h-lg); justify-content: center; }
.sw-dec-effect { margin: 0; color: var(--ink-3); font-size: var(--fs-sm); line-height: var(--lh-body); word-break: keep-all; }

@media (max-width: 1239px) {
  .sw-obs, .sw-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 979px) {
  .sw .lx-seg.sw-dopts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* U206: approved decision rows, linked summaries and factor tables; mock notes omitted. */
/* U206 셋업 위자드 재설계 시안 (디자인 4990, 11-17). Tokens and shared parts only (click-tokens.css · click-parts.css);
   this sheet is the mock's own placement and will move into setup-wizard.css when built. No hex, no px type size. */

/* the frame's column fills its track (the mock page has no portal shell around it) */
.sw-col  { width: 100%; }
.sw-main  { box-sizing: border-box; width: 100%; }
.sw-body  { box-sizing: border-box; }
.sw-body .sw-meter-l { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); }

/* head: one line of place, the headline, one lede */
.sw-body .sw-head { display: flex; flex-direction: column; gap: var(--sp-2); }
.sw-body .sw-place { color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.sw-body .sw-h { font-size: var(--fs-title); font-weight: var(--fw-bold); letter-spacing: var(--ls-tight); line-height: var(--lh-snug); word-break: keep-all; }
.sw-body .sw-lede { color: var(--ink-3); font-size: var(--fs-lead); line-height: var(--lh-relaxed); word-break: keep-all; }

.sw-body .sw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-6); align-items: start; }
.sw-body .sw-stack { display: flex; flex-direction: column; gap: var(--sp-5); min-width: 0; }
.sw-body .sw-card { padding: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.sw-body .sw-card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--divider-soft); }
.sw-body .sw-card-t { font-size: var(--fs-lead); font-weight: var(--fw-semibold); }
.sw-body .sw-card-s { color: var(--muted); font-size: var(--fs-xs); }
.sw-body .sw-card-b { padding: var(--sp-2) var(--sp-5) var(--sp-4); }

/* a decision row: what · how many (a link to the filtered list) · the choice · Click's pick */
.sw-body .sw-dec { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--divider-soft); }
.sw-body .sw-dec:last-child { border-bottom: 0; }
.sw-body .sw-dec-w { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sw-body .sw-dec-t { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-body .sw-dec-n { color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.sw-body .sw-dec-s { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-body .sw-why { color: var(--muted); font-size: var(--fs-xs); }

/* a choice of two to four: the shared segment, Click's pick marked once above it */
.sw-body .sw-pick { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sw-body .sw-seg { display: inline-flex; padding: 3px; border-radius: var(--r-ctl); background: var(--divider); }
.sw-body .sw-seg button { height: 30px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-xs); background: transparent; color: var(--ink-3); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; white-space: nowrap; }
.sw-body .sw-seg button[aria-pressed="true"], .sw-body .sw-seg button[aria-pressed="true"]:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-seg); }
.sw-body .sw-seg button[data-tone="block"][aria-pressed="true"] { color: var(--st-unmanaged-ink, var(--ink)); }
.sw-body .sw-rec { position: static; display: inline-flex; align-items: center; gap: 4px; padding: 0; border-radius: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-2xs); font-weight: var(--fw-semibold); }
.sw-body .sw-rec::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--brand-yellow); border: 1px solid var(--ink); box-sizing: border-box; }

/* the side: what this choice comes to, in figures; each figure opens its list */
.sw-body .sw-side { position: sticky; top: calc(64px + var(--sp-6)); display: flex; flex-direction: column; gap: var(--sp-4); }
.sw-body .sw-sum { padding: var(--sp-5); border-radius: var(--r-card); background: var(--brand-ink); color: var(--brand-cloud); }
.sw-body .sw-sum-k { color: var(--brand-ink-label); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-body .sw-sum-rows { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.sw-body .sw-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); color: var(--brand-ink-body); font-size: var(--fs-sm); }
.sw-body .sw-sum-row b { color: var(--brand-cloud); font-size: var(--fs-kpi-sm); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.sw-body .sw-sum-row[data-tone="block"] b { color: var(--brand-yellow); }
.sw-body .sw-sum-row b > .lx-lk { color: inherit; }
.sw-body .sw-sum-foot { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--brand-ink-line); color: var(--brand-ink-label); font-size: var(--fs-xs); line-height: var(--lh-relaxed); }
.sw-body .sw-links { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.sw-body .sw-link { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--divider-soft); color: var(--ink-2); font-size: var(--fs-sm); text-decoration: none; }
.sw-body .sw-link:last-child { border-bottom: 0; }
.sw-body .sw-link:hover { background: var(--bg-subtle); }
.sw-body .sw-link b { flex: none; color: var(--ink); font-weight: var(--fw-semibold); white-space: nowrap; }
.sw-body .sw-link .ck-i { width: var(--icon-sm); height: var(--icon-sm); color: var(--muted); }
.sw-body .sw-link-v { display: inline-flex; align-items: center; gap: var(--sp-2); min-width: 0; color: var(--muted); font-size: var(--fs-xs); text-align: right; overflow-wrap: anywhere; }

/* chips that count and open (the product's link between menus) */
.sw-body .sw-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); text-decoration: none; white-space: nowrap; }
.sw-body .sw-chip b { color: var(--ink); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.sw-body .sw-chip:hover { border-color: var(--border-strong); }
.sw-body .sw-chip i { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--st-review); }
.sw-body .sw-chip i[data-st="managed"] { background: var(--st-managed); }
.sw-body .sw-chip i[data-st="unmanaged"] { background: var(--st-unmanaged); }
.sw-body .sw-chip i[data-st="partial"] { background: var(--st-partial); }
.sw-body .sw-chip i[data-st="none"] { background: var(--faint); }

/* figures: the impact meter, the factor rows */
.sw-body .sw-meter { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-6); align-items: center; padding: var(--sp-5) var(--sp-6); }
.sw-body .sw-meter-n { display: flex; align-items: baseline; gap: var(--sp-2); font-size: var(--fs-display); font-weight: var(--fw-heavy); letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; }
.sw-body .sw-meter-n small { color: var(--muted); font-size: var(--fs-kpi-sm); font-weight: var(--fw-semibold); }
.sw-body .sw-meter-to { color: var(--st-managed); }
.sw-body .sw-meter-arrow { color: var(--faint); font-size: var(--fs-kpi-sm); }
.sw-body .sw-bar { display: flex; height: 10px; overflow: hidden; border-radius: var(--r-pill); background: var(--divider); }
.sw-body .sw-bar span { display: block; height: 100%; }
/* S3 gives the managed-state code; reuse the existing state palette. */
.sw-body .sw-bar > [data-part="managed"] { background: var(--st-managed); }
.sw-body .sw-bar > [data-part="partial"] { background: var(--st-partial); }
.sw-body .sw-bar > [data-part="in_remediation"] { background: var(--st-review); }
.sw-body .sw-bar > [data-part="unmanaged"] { background: var(--st-unmanaged); }
.sw-body .sw-bar > [data-part="unknown"] { background: repeating-linear-gradient(135deg, var(--faint) 0 3px, var(--divider-soft) 3px 6px); }
.sw-body .sw-bar-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-3); }
.sw-body .sw-fac { display: grid; grid-template-columns: minmax(0, 1.4fr) 90px minmax(0, 1fr) 150px; align-items: center; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--divider-soft); font-size: var(--fs-sm); }
.sw-body .sw-fac:last-child { border-bottom: 0; }
.sw-body .sw-fac-h { color: var(--muted); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide, 0); }
.sw-body .sw-fac-t { display: flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-semibold); }
.sw-body .sw-fac-n { font-variant-numeric: tabular-nums; }
.sw-body .sw-gain { color: var(--st-managed); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.sw-body .sw-gain[data-none] { color: var(--faint); font-weight: var(--fw-medium); }
.sw-body .sw-fac-do { display: flex; justify-content: flex-end; }

/* the switch row (a factor changed in place) */
.sw-body .sw-sw { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.sw-body .sw-sw span[role="switch"] { position: relative; width: 32px; height: 18px; border-radius: var(--r-pill); background: var(--primary); }
.sw-body .sw-sw span[role="switch"]::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: var(--r-pill); background: var(--surface); }
.sw-body .sw-sw span[role="switch"][aria-checked="false"] { background: var(--border-strong); }
.sw-body .sw-sw span[role="switch"][aria-checked="false"]::after { right: auto; left: 2px; }

/* the confirm list: what changes, before → after, how it applies */
.sw-body .sw-chg { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto auto; align-items: center; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--divider-soft); font-size: var(--fs-sm); }
.sw-body .sw-chg:last-child { border-bottom: 0; }
.sw-body .sw-chg-t { font-weight: var(--fw-semibold); }
.sw-body .sw-chg-v { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; color: var(--ink-2); }
.sw-body .sw-chg-v s { color: var(--faint); text-decoration: none; }
.sw-body .sw-chg-v .ck-i { width: var(--icon-sm); height: var(--icon-sm); color: var(--faint); }
.sw-body .sw-mode { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); background: var(--divider); color: var(--ink-2); font-size: var(--fs-2xs); font-weight: var(--fw-semibold); white-space: nowrap; }
.sw-body .sw-mode[data-mode="now"] { background: var(--primary-tint); color: var(--ink); }
.sw-body .sw-edit { color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-decoration: none; }
.sw-body .sw-edit:hover { color: var(--ink); }
.sw-body .sw-fold { border-top: 1px solid var(--divider-soft); }
.sw-body .sw-fold > summary { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) 0; color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; list-style: none; }
.sw-body .sw-fold > summary::-webkit-details-marker { display: none; }
.sw-body .sw-fold > summary .ck-i { width: var(--icon-sm); height: var(--icon-sm); }
.sw-body .sw-go { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-5); border-top: 1px solid var(--divider-soft); }
.sw-body .sw-go p { color: var(--muted); font-size: var(--fs-xs); line-height: var(--lh-relaxed); }

/* discovery: the product grid and the four clickable tiles */
.sw-body .sw-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-6); align-items: end; padding: var(--sp-6); border-radius: var(--r-card); background: var(--brand-ink); color: var(--brand-cloud); }
.sw-body .sw-hero h2 { color: var(--brand-cloud); font-size: var(--fs-display-h); font-weight: var(--fw-bold); line-height: 1.3; word-break: keep-all; }
.sw-body .sw-hero h2 em { color: var(--brand-yellow); font-style: normal; }
.sw-body .sw-hero-k { margin-bottom: var(--sp-3); color: var(--brand-ink-label); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-body .sw-hero-vs { display: flex; gap: var(--sp-6); text-align: right; }
.sw-body .sw-hero-vs div { display: flex; flex-direction: column; gap: 2px; color: var(--brand-ink-label); font-size: var(--fs-xs); }
.sw-body .sw-hero-vs b { color: var(--brand-cloud); font-size: var(--fs-kpi); font-weight: var(--fw-bold); }
.sw-body .sw-hero-vs div:last-child b { color: var(--brand-yellow); }
.sw-body .sw-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); }
.sw-body .sw-prod-foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-3); }
.sw-body .sw-prod-foot > .lx-lk { margin-inline-start: auto; }
.sw-body .sw-prod { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-ctl); background: var(--surface); font-size: var(--fs-sm); text-decoration: none; color: var(--ink); }
.sw-body .sw-prod small { display: block; color: var(--muted); font-size: var(--fs-2xs); }
.sw-body .sw-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.sw-body .sw-tile { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; }
.sw-body .sw-tile:hover { border-color: var(--border-strong); }
.sw-body .sw-tile-t { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-body .sw-tile-t .ck-i { width: var(--icon-sm); height: var(--icon-sm); color: var(--muted); }
.sw-body .sw-tile b { font-size: var(--fs-kpi); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.sw-body .sw-tile b small { margin-left: 2px; color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

/* the sensitive-data matrix */
.sw-body .sw-mx { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--sp-4); }
.sw-body .sw-qs { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--sp-3) var(--sp-5); align-items: center; padding: var(--sp-4) 0; border-bottom: 1px solid var(--divider-soft); }
.sw-body .sw-qs:last-child { border-bottom: 0; }
.sw-body .sw-qs-t { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-body .sw-qs-o { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-body .sw-opt { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.sw-body .sw-opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.sw-body .sw-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); background: var(--surface); }
.sw-body .sw-tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-xs); background: var(--divider); font-size: var(--fs-xs); }
.sw-body .sw-in input { flex: 1; min-width: 120px; height: 26px; padding: 0; border: 0; outline: 0; box-shadow: none; font: inherit; font-size: var(--fs-sm); background: transparent; }
.sw-body .sw-st { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-medium); white-space: nowrap; }
.sw-body .sw-st i { width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--st-managed); }
.sw-body .sw-st i[data-st="none"] { background: var(--faint); }
.sw-body .sw-st[data-standing]::before { content: ''; display: block; width: 8px; height: 8px; border-radius: var(--r-pill); background: var(--st-managed); }
.sw-body .sw-st[data-standing="expected"]::before { background: var(--faint); }
.sw-body .sw-st:is([data-standing="review"], [data-standing="blocked"])::before { background: var(--st-unmanaged); }
.sw-body .sw-cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.sw-body .sw-pkg { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.sw-body .sw-pkg-t { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-lead); font-weight: var(--fw-semibold); }
.sw-body .sw-pkg p { color: var(--muted); font-size: var(--fs-xs); }
.sw-body .sw-pkg-do { display: flex; gap: var(--sp-2); margin-top: auto; }
.sw-body .sw-dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.sw-body .sw-dir a { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-4); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.sw-body .sw-dir a[data-on] { border-color: var(--ink); }
.sw-body .sw-dir small { color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.sw-body .sw-rule { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-bottom: 1px solid var(--divider-soft); font-size: var(--fs-sm); }
.sw-body .sw-rule:last-child { border-bottom: 0; }
.sw-body .sw-rule > span:not(:first-child) { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
.sw-body .sw-grid { grid-template-columns: minmax(0, 1fr); }
.sw-body .sw-side { position: static; }
.sw-body .sw-tiles, .sw-body .sw-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sw-body .sw-chg { grid-template-columns: minmax(0, 1fr) auto; }
.sw-body .sw-chg-v { grid-column: 1 / -1; grid-row: 2; }
.sw-body .sw-cards2 { grid-template-columns: minmax(0, 1fr); }
.sw-body .sw-qs { grid-template-columns: minmax(0, 1fr); }
.sw-body .sw-hero { grid-template-columns: minmax(0, 1fr); }
.sw-body .sw-hero-vs { text-align: left; }
}
.sw-body .sw-place { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.sw-body .sw-lock { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 var(--sp-3); border-radius: var(--r-ctl); background: var(--divider); color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-body .sw-lock .ck-i { width: var(--icon-sm); height: var(--icon-sm); }
.sw-body .sw-sub { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); background: var(--bg-subtle); }
.sw-body .sw-sub-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-xs); }
.sw-body .sw-sub-row b { font-weight: var(--fw-semibold); }
.sw-body .sw-kv { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--divider-soft); font-size: var(--fs-sm); }
.sw-body .sw-kv:last-child { border-bottom: 0; }
.sw-body .sw-kv-v { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--ink-2); }

.sw-body .sw-fac6 { grid-template-columns: minmax(0, 1.3fr) 80px minmax(0, 1.1fr) 80px 130px 110px; }
@media (max-width: 1100px) {
  .sw-body .sw-fac6 {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr) minmax(0, 1.2fr) repeat(3, minmax(0, .7fr));
    gap: var(--sp-2);
  }
  .sw-body .sw-fac6 > span { min-width: 0; overflow-wrap: anywhere; }
}

/* The compact frame keeps the place visible even when a step supplies its own headline. */
.sw-head { gap: var(--sp-3); }
.sw-head > div:last-child:not(.sw-head-meta) { display: flex; flex-direction: column; gap: var(--sp-3); }
.sw-head > div.sr-only { display: block; }
.sw-head-step { font-size: var(--fs-xs); }
.sw-head-decisions { margin-left: auto; }
.sw-h { font-size: var(--fs-title); }
.sw-lede { font-size: var(--fs-lead); }
.sw-foot-in { justify-content: space-between; }
.sw-foot-in > .sw-next, .sw-foot-blocked { margin-left: auto; }
.sw-foot-blocked { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-3); color: var(--muted); font-size: var(--fs-xs); }
.sw-foot span.sw-next { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--muted); font-size: var(--fs-sm); }
.sw-body .sw-meter-pair { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: var(--sp-5); }
.sw-body .sw-prod { height: auto; min-height: var(--ctl-h); }
.sw-body .sw-meter-l { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--sp-2); }
.sw-body .sw-meter-l > .sw-meter-n { font-size: var(--fs-display); }
.sw-body .sw-meter-n { justify-content: flex-start; }
.sw-body .sw-meter-n > small { font-size: var(--fs-kpi-sm); }
/* U206 2단계 (setup-wizard-again.js): what the mock's sheet does not hold -- the ink card's figures are links, a label
   with its ?, the rules table and the fold's lines, 2-3's 자세히 as a press and each rule's change under its line. */
.sw-body .sw-hero a { color: inherit; text-decoration: underline; text-decoration-color: var(--brand-ink-line); text-underline-offset: 4px; }
.sw-body .sw-metric-filter { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.sw-body .sw-metric-filter[aria-pressed="true"] { text-decoration-style: double; }
.sw-body button.sw-chip:is([aria-pressed="true"], [aria-expanded="true"]) { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.sw-body button.sw-chip:is([aria-pressed="true"], [aria-expanded="true"]) b { color: inherit; }
.sw-body .sw-hero-vs > div > span { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--sp-1); }
.sw-body .sw-rules { display: flex; flex-direction: column; }
.sw-body .sw-card-b > .sw-why { padding: var(--sp-3) 0; }
.sw-body .sw-fold-b { display: flex; flex-direction: column; padding-bottom: var(--sp-2); }
.sw-body button.sw-edit { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); cursor: pointer; }
.sw-body .sw-chg-more { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--sp-1); margin: 0; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-ctl); background: var(--bg-subtle); color: var(--ink-2); font-size: var(--fs-xs); list-style: none; }
.sw-body .sw-go > .sw-banner, .sw-body .sw-go > .sw-bad { flex: 1; }
@media (max-width: 767px) {
  .sw-stage-h { font-size: var(--fs-display-h); }
  .sw-head-meta { gap: var(--sp-2); }
  .sw-head-decisions { width: 100%; margin-left: 0; }
  .sw-body .sw-grid, .sw-body .sw-meter, .sw-body .sw-hero { grid-template-columns: minmax(0, 1fr); }
  .sw-body .sw-dec { grid-template-columns: minmax(0, 1fr); }
  .sw-body .sw-pick { align-items: flex-start; }
  .sw-body .sw-seg { max-width: 100%; flex-wrap: wrap; }
  .sw-body .sw-prods { grid-template-columns: minmax(0, 1fr); }
  .sw-body .sw-card-h { flex-wrap: wrap; }
  .sw-body .sw-fac6 { grid-template-columns: minmax(0, 1fr) auto; }
  .sw-body .sw-fac6 > :nth-child(3) { display: block; }
  .sw-body .sw-fac6 > :first-child { grid-column: 1 / -1; }
}
/* U206 0단계 (setup-wizard-prepare.js): what the mock's sheet does not hold -- a fold as a press (a details element
   closes under every press made inside it), the row's value line and what stands under it, a tag field's row with
   its dot, a pending name, the preview's head and rows that are presses, a count that opens the rules, the owner's
   head over the conditions and the package's numbered steps. */
.sw-body .sw-fold-h { display: flex; align-items: center; gap: var(--sp-2); width: 100%; padding: var(--sp-3) 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-align: left; cursor: pointer; }
.sw-body .sw-fold-h .ck-i { width: var(--icon-sm); height: var(--icon-sm); transition: transform var(--dur) var(--ease); }
.sw-body .sw-fold[data-open] > .sw-fold-h .ck-i { transform: rotate(180deg); }
.sw-body .sw-fold-h:hover { color: var(--ink); }
.sw-body .sw-fold[data-card] { padding: 0 var(--sp-5); border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.sw-body .sw-dec-v { color: var(--ink-2); font-size: var(--fs-sm); }
.sw-body .sw-dec-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.sw-body .sw-dec-below { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.sw-body .sw-why[data-tone="warn"] { color: var(--st-partial-fg); }
.sw-body .sw-kvs { display: flex; flex-direction: column; padding: 0 var(--sp-4); border-radius: var(--r-ctl); background: var(--bg-subtle); }
.sw-body .sw-qs-c { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.sw-body .sw-inrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.sw-body .sw-inrow > .sw-in { flex: 1; min-width: 0; }
.sw-body .sw-in-count { flex: none; width: 160px; }
.sw-body .sw-tag > button { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.sw-body .sw-tag > button .ck-i { width: var(--icon-sm); height: var(--icon-sm); }
.sw-body .sw-tag > button:hover { color: var(--ink); }
.sw-body .sw-tag[data-state="pending"] > i { color: var(--st-partial-fg); font-size: var(--fs-2xs); font-style: normal; font-weight: var(--fw-semibold); }
.sw-body .sw-st i[data-st="wait"] { background: var(--st-partial); }
.sw-body .sw-links-h { margin: 0; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--divider-soft); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-body button.sw-link { width: 100%; border-width: 0 0 1px; border-style: solid; border-color: var(--divider-soft); background: none; font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.sw-body button.sw-link:last-child { border-bottom: 0; }
.sw-body button.sw-dec-n { padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.sw-body .sw-sub-h { margin: 0; color: var(--ink-3); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.sw-body .sw-pkg-steps { list-style: decimal inside; display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin: 0; padding-left: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: var(--lh-body); word-break: keep-all; }
@media (max-width: 767px) {
  .sw-body .sw-in-count { width: 100%; }
}
/* The user's design (Click Setup Wizard.html; K08 11-20 "원본 그대로"): the stage and step marks in the mono capitals of
   the design (STAGE 00 · STEP 01 / 07), the step's headline at the design's size over a lede of 15px. The words stay
   the catalog's; only how they are set changes. */
.sw-rail-k, .sw-head-step { font-family: var(--font-mono); font-size: var(--fs-4xs); font-weight: var(--fw-medium); letter-spacing: var(--ls-mono-label); text-transform: uppercase; }
.sw-h, .sw-body .sw-h { font-size: var(--fs-display-h); font-weight: var(--fw-bold); letter-spacing: var(--ls-head); line-height: var(--lh-tight); }
.sw-lede, .sw-body .sw-lede { max-width: 680px; color: var(--ink-3); font-size: var(--fs-section); line-height: var(--lh-relaxed); }
@media (max-width: 767px) {
  .sw-h, .sw-body .sw-h { font-size: var(--fs-kpi); }
}
