/* ════════════════════════════════════════════════════════════
   onboarding-v2.css — 온보딩·튜토리얼 재설계 (claude design 이식)
   - 모든 규칙은 .nf-onb 루트로 네임스페이스 (기존 .onboarding-container 충돌 방지)
   - 색/타이포는 style.css 의 :root 토큰 사용 (새 색 만들지 않음)
   ════════════════════════════════════════════════════════════ */

/* 풀스크린 surface */
.nf-onb {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--c-bg, #f1f5f9);
  color: var(--c-text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.nf-onb.hidden { display: none; }
.nf-onb * { box-sizing: border-box; }

/* fade/slide — transform-only (숨김 탭에서 멈춰도 콘텐츠 보이게) */
.nf-onb .scene { position: absolute; inset: 0; }
@keyframes nfo-sIn  { from { transform: translateY(9px); }  to { transform: translateY(0); } }
@keyframes nfo-sInL { from { transform: translateX(16px); } to { transform: translateX(0); } }
@keyframes nfo-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.nf-onb .anim-up { animation: nfo-sIn .26s var(--ease) both; }
.nf-onb .anim-l  { animation: nfo-sInL .28s var(--ease) both; }

/* ── 공용 프리미티브 ── */
.nf-onb .wmark { display: block; }
.nf-onb .sbadge { display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-weight: 800; font-size: 12px; line-height: 1; }
.nf-onb .gtag { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; font-size: 10px; font-weight: 800; }
.nf-onb .kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--c-primary); background: var(--c-primary-bg); padding: 6px 12px; border-radius: 999px; }

/* buttons */
.nf-onb .b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--dur) var(--ease); white-space: nowrap; }
.nf-onb .b-pri { background: var(--c-primary); color: #fff; padding: 13px 24px; box-shadow: 0 2px 8px rgba(109,69,232,.32); }
.nf-onb .b-pri:hover { background: var(--c-primary-h); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(109,69,232,.32); }
.nf-onb .b-pri:disabled { background: #c7cdd6; box-shadow: none; cursor: not-allowed; transform: none; }
.nf-onb .b-ghost { background: transparent; color: var(--c-text-sec); padding: 13px 18px; }
.nf-onb .b-ghost:hover { background: var(--c-bg); color: var(--c-text); }
.nf-onb .b-out { background: #fff; color: var(--c-text); border: 1px solid var(--c-border); padding: 12px 20px; }
.nf-onb .b-out:hover { border-color: var(--c-primary-l); color: var(--c-primary-h); background: var(--c-primary-bg); }
.nf-onb .b-lg { font-size: 15px; padding: 15px 28px; }
.nf-onb .b-sm { font-size: 12.5px; padding: 9px 16px; }
.nf-onb .b-block { width: 100%; }

/* fields */
.nf-onb .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.nf-onb .field > label { font-size: 12.5px; font-weight: 600; color: var(--c-text-sec); }
.nf-onb .field .opt { color: var(--c-text-muted); font-weight: 400; }
.nf-onb .inp, .nf-onb .sel { width: 100%; font-family: inherit; font-size: 14px; color: var(--c-text); background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.nf-onb .inp:focus, .nf-onb .sel:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(109,69,232,.12); }
.nf-onb .sel:disabled { background: var(--c-bg-sec); color: var(--c-text-muted); }

/* progress — segmented bar */
.nf-onb .prog { display: flex; align-items: center; gap: 0; }
.nf-onb .prog-seg { flex: 1; height: 5px; border-radius: 999px; background: var(--c-border); position: relative; overflow: hidden; }
.nf-onb .prog-seg + .prog-seg { margin-left: 6px; }
.nf-onb .prog-seg .fill { position: absolute; inset: 0; background: var(--c-primary); transform-origin: left; border-radius: 999px; transition: transform .4s var(--ease); }

/* numbered step rail */
.nf-onb .rail { display: flex; flex-direction: column; gap: 3px; }
.nf-onb .rail-group-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--c-text-muted); padding: 14px 12px 6px; }
.nf-onb .rail-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; cursor: default; transition: background .18s; }
.nf-onb .rail-item .ix { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: var(--c-bg-el); color: var(--c-text-muted); border: 1.5px solid transparent; transition: all .2s var(--ease); }
.nf-onb .rail-item .tx { font-size: 13px; font-weight: 600; color: var(--c-text-sec); }
.nf-onb .rail-item .tx small { display: block; font-size: 11px; font-weight: 400; color: var(--c-text-muted); margin-top: 1px; }
.nf-onb .rail-item.done .ix { background: var(--c-success); color: #fff; }
.nf-onb .rail-item.active { background: var(--c-primary-bg); }
.nf-onb .rail-item.active .ix { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(109,69,232,.14); }
.nf-onb .rail-item.active .tx { color: var(--c-primary-h); }

/* ── PATH (시작 방법 선택) ── */
.nf-onb .path-wrap { height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 52px 40px; }
.nf-onb .path-head { text-align: center; max-width: 560px; margin-bottom: 34px; }
.nf-onb .path-head h1 { font-size: 28px; font-weight: 850; letter-spacing: -.03em; margin: 16px 0 10px; }
.nf-onb .path-head h1 .nm { color: var(--c-primary); }
.nf-onb .path-head p { font-size: 15px; color: var(--c-text-sec); line-height: 1.6; }
.nf-onb .path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 860px; }
.nf-onb .path-card { position: relative; background: #fff; border: 1.5px solid var(--c-border); border-radius: var(--radius-lg); padding: 26px 22px 22px;
  cursor: pointer; transition: all .2s var(--ease); display: flex; flex-direction: column; text-align: left; }
.nf-onb .path-card:hover { border-color: var(--c-primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.nf-onb .path-card .pc-ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.nf-onb .path-card h3 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 7px; }
.nf-onb .path-card p { font-size: 13px; color: var(--c-text-sec); line-height: 1.6; flex: 1; }
.nf-onb .path-card .pc-go { margin-top: 16px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--c-primary); }
.nf-onb .path-card .pc-tag { position: absolute; top: 16px; right: 16px; font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--c-primary-bg); color: var(--c-primary); }
.nf-onb .path-card.rec { border-color: var(--c-primary-l); }
.nf-onb .path-foot { margin-top: 28px; }

/* step header (shared) */
.nf-onb .step-h { margin-bottom: 26px; }
.nf-onb .step-h .ix { font-size: 12px; font-weight: 700; color: var(--c-primary); letter-spacing: .4px; margin-bottom: 10px; }
.nf-onb .step-h h1 { font-size: 27px; font-weight: 850; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 9px; }
.nf-onb .step-h p { font-size: 14.5px; color: var(--c-text-sec); line-height: 1.6; }

/* ── 인원 스테퍼 ── */
.nf-onb .count-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 14px 0 8px; }
.nf-onb .stepper { display: flex; align-items: center; gap: 20px; }
.nf-onb .stepper button { width: 48px; height: 48px; border-radius: 14px; border: 1.5px solid var(--c-border); background: #fff; cursor: pointer;
  font-size: 24px; color: var(--c-text-sec); display: flex; align-items: center; justify-content: center; transition: all .15s var(--ease); }
.nf-onb .stepper button:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-bg); }
.nf-onb .stepper .val { font-size: 60px; font-weight: 850; letter-spacing: -.04em; min-width: 130px; text-align: center; font-variant-numeric: tabular-nums; line-height: 1; }
.nf-onb .stepper .val .u { font-size: 22px; font-weight: 700; color: var(--c-text-muted); margin-left: 6px; }
.nf-onb .count-presets { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nf-onb .count-chip { border: 1px solid var(--c-border); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600;
  color: var(--c-text-sec); cursor: pointer; transition: all .15s var(--ease); }
.nf-onb .count-chip:hover { border-color: var(--c-primary-l); color: var(--c-primary); }
.nf-onb .count-chip.on { background: var(--c-primary-bg); border-color: var(--c-primary); color: var(--c-primary); }

/* ── 등급 배분 ── */
.nf-onb .grade-list { display: flex; flex-direction: column; gap: 14px; }
.nf-onb .grade-row { display: grid; grid-template-columns: 132px 1fr 54px; align-items: center; gap: 14px; }
.nf-onb .grade-meta { display: flex; align-items: center; gap: 9px; }
.nf-onb .grade-meta .nm { font-size: 13.5px; font-weight: 700; }
.nf-onb .grade-meta .ds { font-size: 11px; color: var(--c-text-muted); }
.nf-onb .grade-row input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--c-bg-el); cursor: pointer; }
.nf-onb .grade-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 3px solid var(--c-primary); box-shadow: var(--shadow); cursor: pointer; }
.nf-onb .grade-cnt { font-size: 16px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.nf-onb .grade-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 6px 0 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.nf-onb .grade-bar span { transition: flex-grow .3s var(--ease); }
.nf-onb .grade-sum { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; background: var(--c-bg-sec);
  font-size: 13px; font-weight: 600; }
.nf-onb .grade-sum.bad { background: var(--c-danger-bg); color: var(--c-danger); }
.nf-onb .grade-sum.ok { background: var(--c-success-bg); color: #15803d; }
.nf-onb .grade-sum .v { font-variant-numeric: tabular-nums; font-weight: 800; }

/* ── staffing matrix ── */
.nf-onb .staff-grid { display: grid; gap: 8px; }
.nf-onb .staff-row { display: grid; grid-template-columns: 120px 1fr 1fr; align-items: center; gap: 10px; }
.nf-onb .staff-row.head { color: var(--c-text-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 0 2px; }
.nf-onb .staff-lab { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; }
.nf-onb .staff-cell { display: flex; align-items: center; }
.nf-onb .num-field { display: flex; align-items: center; width: 100%; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; background: #fff; }
.nf-onb .num-field button { width: 34px; height: 40px; border: none; background: var(--c-bg-sec); color: var(--c-text-sec); cursor: pointer; font-size: 17px; transition: background .15s; }
.nf-onb .num-field button:hover { background: var(--c-primary-bg); color: var(--c-primary); }
.nf-onb .num-field input { flex: 1; border: none; text-align: center; font-family: inherit; font-size: 15px; font-weight: 700; min-width: 0; color: var(--c-text); background: transparent; }
.nf-onb .num-field input:focus { outline: none; }
.nf-onb .feas { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-top: 16px; }
.nf-onb .feas.ok { background: var(--c-success-bg); color: #15803d; }
.nf-onb .feas.warn { background: var(--c-warning-bg); color: #b45309; }
/* staffing — mode segmented (light) */
.nf-onb .staff-mode { display: inline-flex; background: var(--c-bg-sec); border: 1px solid var(--c-border); border-radius: 8px; padding: 3px; gap: 2px; margin-bottom: 18px; }
.nf-onb .staff-mode button { border: none; background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--c-text-sec); padding: 7px 15px; border-radius: 6px; cursor: pointer; transition: all .15s var(--ease); }
.nf-onb .staff-mode button:hover { color: var(--c-text); }
.nf-onb .staff-mode button.on { background: #fff; color: var(--c-primary); box-shadow: var(--shadow); }
/* staffing — 요일별 grid */
.nf-onb .staff-dow { display: flex; flex-direction: column; gap: 8px; }
.nf-onb .sd-row { display: grid; grid-template-columns: 92px repeat(7, 1fr); align-items: center; gap: 5px; }
.nf-onb .sd-row.sd-head span { font-size: 11px; font-weight: 700; color: var(--c-text-muted); text-align: center; }
.nf-onb .sd-head span.we { color: var(--s-eve); }
.nf-onb .staff-lab.sm { font-size: 12.5px; gap: 6px; }
.nf-onb .num-sm { width: 100%; min-width: 0; border: 1px solid var(--c-border); border-radius: 7px; padding: 9px 3px; text-align: center; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--c-text); background: #fff; }
.nf-onb .num-sm:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(109,69,232,.12); }
.nf-onb .num-sm.we { background: var(--c-bg-sec); }

/* ── rules ── */
.nf-onb .rule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nf-onb .rule-card { display: flex; gap: 12px; padding: 15px 16px; border: 1px solid var(--c-border-l); border-radius: 12px; background: var(--c-bg-sec); transition: all .18s var(--ease); }
.nf-onb .rule-card:hover { border-color: var(--c-primary-l); background: #fff; box-shadow: var(--shadow); }
.nf-onb .rule-card .ic { width: 38px; height: 38px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--c-border-l); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nf-onb .rule-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.nf-onb .rule-card p { font-size: 12px; color: var(--c-text-sec); line-height: 1.5; }

/* ── Flow B — 2-pane workspace ── */
.nf-onb .ws { display: grid; grid-template-columns: 252px 1fr 380px; grid-template-rows: minmax(0, 1fr); height: 100%; }
.nf-onb .ws-rail { border-right: 1px solid var(--c-border); background: var(--c-bg-sec); padding: 22px 16px; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.nf-onb .ws-rail .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; padding: 0 8px 16px; }
.nf-onb .ws-rail .logo .fl { color: var(--c-primary); }
.nf-onb .ws-rail .rail { flex: 1; }
.nf-onb .ws-rail .ws-help { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border-radius: 10px; background: #fff; border: 1px solid var(--c-border-l); margin-top: 14px; }
.nf-onb .ws-rail .ws-help .qi { width: 22px; height: 22px; border-radius: 7px; flex: none; background: var(--c-primary-bg); color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.nf-onb .ws-rail .ws-help p { font-size: 11.5px; color: var(--c-text-sec); line-height: 1.5; }
.nf-onb .ws-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.nf-onb .ws-top { flex: none; padding: 18px 30px 0; }
.nf-onb .ws-prog-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nf-onb .ws-prog-row .pp { font-size: 12px; font-weight: 700; color: var(--c-text-muted); }
.nf-onb .ws-content { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 30px 26px; }
.nf-onb .ws-content .step-h h1 { font-size: 23px; }
.nf-onb .ws-foot { flex: none; border-top: 1px solid var(--c-border-l); padding: 14px 30px; display: flex; align-items: center; justify-content: space-between; }
.nf-onb .ws-foot-r { display: flex; align-items: center; gap: 10px; }
.nf-onb .b-text { background: transparent; color: var(--c-text-muted); padding: 13px 8px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.nf-onb .b-text:hover { color: var(--c-text-sec); }
.nf-onb .ws-preview { border-left: 1px solid var(--c-border); background: linear-gradient(180deg, #fbfcfe, #f4f6fb); padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.nf-onb .ws-preview .pv-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--c-text-muted); display: flex; align-items: center; gap: 7px; }
.nf-onb .ws-preview .pv-lbl .live { display: inline-flex; align-items: center; gap: 5px; color: var(--c-success); }
.nf-onb .ws-preview .pv-lbl .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); animation: nfo-pulse 1.6s infinite; }
.nf-onb .pv-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.nf-onb .pv-stat .s { background: #fff; border: 1px solid var(--c-border-l); border-radius: 10px; padding: 11px 13px; position: relative; overflow: hidden; }
.nf-onb .pv-stat .s::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c-primary); }
.nf-onb .pv-stat .s.g::before { background: var(--c-success); } .nf-onb .pv-stat .s.v::before { background: var(--s-night); } .nf-onb .pv-stat .s.b::before { background: var(--c-info); }
.nf-onb .pv-stat .s .l { font-size: 10.5px; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .3px; }
.nf-onb .pv-stat .s .v { font-size: 22px; font-weight: 850; line-height: 1.1; margin-top: 3px; font-variant-numeric: tabular-nums; }
.nf-onb .pv-stat .s .d { font-size: 10.5px; color: var(--c-text-muted); margin-top: 2px; }
.nf-onb .pv-donut { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--c-border-l); border-radius: 12px; padding: 14px 16px; }
.nf-onb .pv-donut .leg { display: flex; flex-direction: column; gap: 6px; }
.nf-onb .pv-donut .leg span { font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.nf-onb .pv-donut .leg i { width: 9px; height: 9px; border-radius: 3px; }
/* preview — month block + generic card */
.nf-onb .pv-month { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.nf-onb .pv-month .pm { background: #fff; border: 1px solid var(--c-border-l); border-radius: 10px; padding: 11px 13px; }
.nf-onb .pv-month .pl { font-size: 10.5px; font-weight: 600; color: var(--c-text-muted); }
.nf-onb .pv-month .pv { font-size: 21px; font-weight: 850; margin-top: 3px; font-variant-numeric: tabular-nums; }
.nf-onb .pv-month .pv small { font-size: 12px; font-weight: 700; color: var(--c-text-muted); margin-left: 2px; }
.nf-onb .pv-card { background: #fff; border: 1px solid var(--c-border-l); border-radius: 12px; padding: 13px 14px; }
.nf-onb .pv-card-h { font-size: 11.5px; font-weight: 700; color: var(--c-text-sec); display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.nf-onb .pv-leg { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-onb .pv-leg span { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--c-text-muted); }
.nf-onb .pv-leg i { width: 8px; height: 8px; border-radius: 2px; }

/* coverage bars */
.nf-onb .cov-bars { padding: 2px 0 0; }
.nf-onb .cb-row { display: flex; align-items: flex-end; gap: 6px; }
.nf-onb .cb-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.nf-onb .cb-stack { width: 60%; max-width: 22px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; overflow: hidden; background: var(--c-bg-el); }
.nf-onb .cb-stack > div { width: 100%; transition: height .3s var(--ease); }
.nf-onb .cb-lab { font-size: 10.5px; font-weight: 600; color: var(--c-text-muted); }
.nf-onb .cb-lab.we { color: var(--s-eve); }
.nf-onb .cb-num { font-size: 11px; font-weight: 800; color: var(--c-text); font-variant-numeric: tabular-nums; }

/* ── enroll / pending (staff) ── */
.nf-onb .simple { height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 48px 40px; }
.nf-onb .simple-card { width: 460px; max-width: 100%; }
.nf-onb .simple-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--c-text-sec); cursor: pointer; margin-bottom: 20px; padding: 0; }
.nf-onb .simple-back:hover { color: var(--c-primary); }
.nf-onb .simple h1 { font-size: 25px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 8px; }
.nf-onb .simple > .sub { font-size: 14px; color: var(--c-text-sec); margin-bottom: 26px; line-height: 1.6; }
.nf-onb .pending-icon { width: 76px; height: 76px; border-radius: 22px; background: var(--c-warning-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.nf-onb .pending-info { background: var(--c-bg-sec); border: 1px solid var(--c-border-l); border-radius: 12px; padding: 4px 16px; margin: 22px 0; }
.nf-onb .pending-info .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.nf-onb .pending-info .row + .row { border-top: 1px solid var(--c-border-l); }
.nf-onb .pending-info .row .l { font-size: 12.5px; color: var(--c-text-muted); font-weight: 600; }
.nf-onb .pending-info .row .v { font-size: 13.5px; font-weight: 700; }
.nf-onb .pending-steps { display: flex; flex-direction: column; gap: 0; margin: 24px 0; }
.nf-onb .pstep { display: flex; gap: 13px; }
.nf-onb .pstep .pdot { display: flex; flex-direction: column; align-items: center; }
.nf-onb .pstep .pdot .d { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.nf-onb .pstep .pdot .line { flex: 1; width: 2px; background: var(--c-border); margin: 3px 0; min-height: 22px; }
.nf-onb .pstep:last-child .pdot .line { display: none; }
.nf-onb .pstep .pt { padding-bottom: 22px; }
.nf-onb .pstep .pt .h { font-size: 13.5px; font-weight: 700; }
.nf-onb .pstep .pt .s { font-size: 12px; color: var(--c-text-muted); margin-top: 2px; line-height: 1.5; }
.nf-onb .pstep.done .d { background: var(--c-success); color: #fff; } .nf-onb .pstep.done .line { background: var(--c-success); }
.nf-onb .pstep.now .d { background: var(--c-primary); color: #fff; box-shadow: 0 0 0 4px rgba(109,69,232,.16); }
.nf-onb .pstep.todo .d { background: var(--c-bg-el); color: var(--c-text-muted); }

/* ── ready screen ── */
.nf-onb .ready-wrap { height: 100%; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 34px 40px; }
.nf-onb .ready-card { width: 560px; max-width: 100%; text-align: center; }
.nf-onb .ready-icon { width: 74px; height: 74px; border-radius: 22px; background: var(--c-primary-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.nf-onb .ready-card h1 { font-size: 26px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 10px; }
.nf-onb .ready-card > p { font-size: 14.5px; color: var(--c-text-sec); line-height: 1.65; margin-bottom: 24px; }
.nf-onb .ready-card > p b { color: var(--c-text); }
.nf-onb .ready-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.nf-onb .ready-summary .rs { background: #fff; border: 1px solid var(--c-border-l); border-radius: 12px; padding: 13px 8px; box-shadow: var(--shadow); }
.nf-onb .ready-summary .rs .v { font-size: 21px; font-weight: 850; font-variant-numeric: tabular-nums; }
.nf-onb .ready-summary .rs .v small { font-size: 12px; color: var(--c-text-muted); font-weight: 700; }
.nf-onb .ready-summary .rs .l { font-size: 10.5px; color: var(--c-text-muted); font-weight: 600; margin-top: 3px; }
.nf-onb .ready-next-lbl { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--c-text-muted); margin-bottom: 10px; }
.nf-onb .ready-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; text-align: left; }
.nf-onb .rstep { display: flex; gap: 13px; align-items: flex-start; background: var(--c-bg-sec); border: 1px solid var(--c-border-l); border-radius: 12px; padding: 14px 16px; }
.nf-onb .rstep .rn { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.nf-onb .rstep .h { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.nf-onb .rstep .s { font-size: 12.5px; color: var(--c-text-sec); margin-top: 3px; line-height: 1.5; }
.nf-onb .rtag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--c-bg-el); color: var(--c-text-muted); }
.nf-onb .rtag-rec { background: var(--c-primary-bg); color: var(--c-primary); }
.nf-onb .ready-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }

/* misc */
.nf-onb .spacer { flex: 1; }
.nf-onb .muted { color: var(--c-text-muted); }
.nf-onb .hint-line { font-size: 12px; color: var(--c-text-muted); margin-top: 14px; line-height: 1.5; }

/* 좁은 화면 — 미리보기 숨김(태블릿 이하), 단일 컬럼 */
@media (max-width: 1100px) {
  .nf-onb .ws { grid-template-columns: 220px 1fr; }
  .nf-onb .ws-preview { display: none; }
}
@media (max-width: 760px) {
  .nf-onb .ws { grid-template-columns: 1fr; }
  .nf-onb .ws-rail { display: none; }
  .nf-onb .path-grid { grid-template-columns: 1fr; }
  .nf-onb .ready-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════════════════════
   LOGIN 2-pane — 기존 로그인(auth.js)에 2분할 레이아웃 적용
   (.login-container 는 .nf-onb 와 별개 컨테이너라 비-네임스페이스)
   ════════════════════════════════════════════════════════════ */
.login-container.login-2pane {
    background: var(--c-bg, #f1f5f9);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 0; align-items: stretch; justify-content: stretch;
}
.login-2pane .login-brand {
    width: 460px; flex: none; position: relative; overflow: hidden; color: #fff;
    background: var(--grad-sidebar); display: flex; flex-direction: column; justify-content: space-between; padding: 46px 44px;
}
.login-2pane .login-brand::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(620px 360px at 28% 6%, rgba(167,139,250,.34), transparent 62%),
                radial-gradient(520px 320px at 92% 96%, rgba(41,210,226,.18), transparent 60%);
}
.login-2pane .login-brand > * { position: relative; }
.login-2pane .lb-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.login-2pane .lb-logo .fl { color: #a78bfa; }
.login-2pane .lb-hero h1 { font-size: 34px; font-weight: 850; line-height: 1.22; letter-spacing: -.03em; margin: 16px 0 12px; color: #fff; }
.login-2pane .lb-hero .tagline { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: #8b95ad; }
.login-2pane .lb-mascot { margin: 6px 0 22px; }
.login-2pane .lb-foot { font-size: 12px; color: #5b6680; }

.login-2pane .login-stage { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px; overflow-y: auto; }
/* 우측 폼: 글래스 카드 → 평면화(폼 영역처럼) */
.login-2pane .login-card {
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: none; border: none; border-radius: 0; max-width: 380px; padding: 8px 0; animation: none;
}
/* 좌측 브랜드와 중복되는 빌딩 로고 아이콘 숨김, 텍스트만 유지 */
.login-2pane .login-card .login-logo svg { display: none; }
.login-2pane .login-card .login-logo h1 { font-size: 22px; }

@media (max-width: 860px) {
    .login-2pane .login-brand { display: none; }
    .login-2pane .login-stage { padding: 24px; }
    /* 좁은 화면: 어두운 모달 배경 복원(브랜드 패널 없을 때 가독성) */
    .login-container.login-2pane { background: rgba(15,23,42,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .login-2pane .login-card { background: rgba(255,255,255,.97); border-radius: 20px; padding: 28px 22px; max-width: 400px; box-shadow: 0 24px 48px rgba(0,0,0,.2); }
    .login-2pane .login-card .login-logo svg { display: block; }
}

/* ── STEP 0: 근무 형태 (아키타입 + 근무유형 편집) ── */
.nf-onb .ws-arch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.nf-onb .ws-arch-card { text-align: left; border: 1.5px solid var(--c-border); background: #fff; border-radius: 14px; padding: 14px 14px 12px; cursor: pointer; transition: .15s; }
.nf-onb .ws-arch-card:hover { border-color: var(--c-primary-l); transform: translateY(-1px); }
.nf-onb .ws-arch-card.on { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(109,69,232,.12); }
.nf-onb .ws-arch-h { font-size: 15px; font-weight: 800; margin-bottom: 3px; }
.nf-onb .ws-arch-d { font-size: 12.5px; color: var(--c-text-sec); margin-bottom: 8px; }
.nf-onb .ws-arch-r { font-size: 11.5px; color: var(--c-primary); font-weight: 600; }
.nf-onb .ws-arch-custom { cursor: default; }

.nf-onb .ws-shf-editor-h { font-size: 13px; font-weight: 700; color: var(--c-text-sec); margin-bottom: 10px; }
.nf-onb .ws-shf-empty { color: var(--c-text-muted); font-size: 13.5px; padding: 18px; text-align: center; border: 1px dashed var(--c-border); border-radius: 12px; }
.nf-onb .ws-shf-row { border: 1px solid var(--c-border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.nf-onb .ws-shf-row.is-night { background: linear-gradient(0deg, rgba(124,58,237,.03), rgba(124,58,237,.03)); border-color: #ddd6fe; }
.nf-onb .ws-shf-main { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.nf-onb .ws-shf-badge { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.nf-onb .ws-shf-f { display: flex; flex-direction: column; gap: 3px; }
.nf-onb .ws-shf-f span { font-size: 11px; color: var(--c-text-muted); font-weight: 600; }
.nf-onb .ws-shf-f input { border: 1px solid var(--c-border); border-radius: 8px; padding: 7px 9px; font-size: 13px; }
.nf-onb .ws-shf-name input { width: 90px; }
.nf-onb .ws-shf-sym input { width: 52px; text-align: center; }
.nf-onb .ws-shf-beh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-border); }
.nf-onb .ws-night-tog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.nf-onb .ws-night-tog input { width: 15px; height: 15px; cursor: pointer; }
.nf-onb .ws-rec { font-size: 10.5px; font-weight: 700; color: var(--c-primary); background: rgba(109,69,232,.1); border-radius: 6px; padding: 1px 6px; margin-left: 2px; }
.nf-onb .ws-beh-hint { font-size: 11.5px; color: var(--c-text-muted); }
.nf-onb .ws-adv-tog { margin-left: auto; border: 1px solid var(--c-border); background: #fff; border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--c-text-sec); }
.nf-onb .ws-adv-tog.on { border-color: var(--c-primary-l); color: var(--c-primary); }
.nf-onb .ws-shf-adv { margin-top: 10px; padding: 11px 12px; background: var(--c-surface-2, #f8fafc); border-radius: 10px; }
.nf-onb .ws-shf-adv-lbl { font-size: 12px; font-weight: 700; color: var(--c-text-sec); margin-bottom: 9px; }
.nf-onb .ws-shf-adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; }
.nf-onb .ws-advf { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; color: var(--c-text-sec); }
.nf-onb .ws-advf > span { font-size: 11.5px; font-weight: 600; color: var(--c-text-muted); }
.nf-onb .ws-advf-in { display: inline-flex; align-items: center; gap: 6px; }
.nf-onb .ws-advf input { width: 56px; border: 1px solid var(--c-border); border-radius: 7px; padding: 6px 8px; font-size: 13px; text-align: center; }
.nf-onb .ws-advf i { font-style: normal; color: var(--c-text-muted); font-size: 11.5px; }

/* ── STEP 4: H14 팀 위계(숙련도 보장) ── */
.nf-onb .ws-h14 { margin-top: 16px; border: 1px solid var(--c-border); border-radius: 12px; padding: 13px 15px; background: #fff; }
.nf-onb .ws-h14.on { border-color: #ddd6fe; background: linear-gradient(0deg, rgba(124,58,237,.025), rgba(124,58,237,.025)); }
.nf-onb .ws-h14-tog { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; cursor: pointer; }
.nf-onb .ws-h14-tog input { width: 16px; height: 16px; cursor: pointer; }
.nf-onb .ws-h14-bar { display: flex; align-items: center; gap: 12px; margin: 12px 0 10px; }
.nf-onb .ws-h14-note { font-size: 12px; color: var(--c-text-sec); margin: 0; flex: 1; }
.nf-onb .ws-h14-grid { display: flex; flex-direction: column; gap: 10px; }
.nf-onb .ws-h14-shift { border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.nf-onb .ws-h14-shift-h { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.nf-onb .ws-tmrow { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.nf-onb .ws-tmrow-lbl { width: 96px; flex: 0 0 96px; font-size: 12px; color: var(--c-text-sec); font-weight: 600; }
.nf-onb .ws-tmrow-cells { display: flex; gap: 6px; }
.nf-onb .ws-tmrow-cells input { width: 48px; border: 1px solid var(--c-border); border-radius: 7px; padding: 5px 6px; font-size: 13px; text-align: center; }
.nf-onb .ws-tmrow-cells.seven input { width: 36px; padding: 5px 3px; }
.nf-onb .ws-tmrow-head .ws-tmrow-cells span { width: 48px; text-align: center; font-size: 11px; font-weight: 700; color: var(--c-text-muted); }
.nf-onb .ws-tmrow-head .ws-tmrow-cells.seven span { width: 36px; }
.nf-onb .ws-tmrow-cells .we, .nf-onb .ws-tmrow-head .we { color: var(--c-danger, #ef4444); }
.nf-onb .ws-tm-desc { font-size: 12px; color: var(--c-primary); font-weight: 600; margin-top: 6px; }

/* ── STEP 5: 근무 전환 원칙 (H4 · H3 매트릭스 · S9) ── */
.nf-onb .ws-rule-block { margin-bottom: 20px; }
.nf-onb .ws-rule-h { font-size: 14px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.nf-onb .ws-h4 { display: flex; align-items: center; gap: 10px; }
.nf-onb .ws-h4 button { width: 34px; height: 34px; border: 1px solid var(--c-border); background: #fff; border-radius: 9px; font-size: 18px; cursor: pointer; color: var(--c-text-sec); }
.nf-onb .ws-h4 button:hover { border-color: var(--c-primary-l); color: var(--c-primary); }
.nf-onb .ws-h4-v { font-size: 19px; font-weight: 800; min-width: 56px; text-align: center; }
.nf-onb .ws-h4-v small { font-size: 12px; font-weight: 600; color: var(--c-text-muted); margin-left: 2px; }

.nf-onb .ws-h3-matrix { display: inline-flex; flex-direction: column; gap: 6px; border: 1px solid var(--c-border); border-radius: 12px; padding: 12px; background: #fff; }
.nf-onb .ws-h3-row { display: flex; align-items: center; gap: 6px; }
.nf-onb .ws-h3-head span { width: 44px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--c-text-muted); }
.nf-onb .ws-h3-corner { width: 110px !important; text-align: left !important; font-size: 11px !important; }
.nf-onb .ws-h3-from { width: 110px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.nf-onb .ws-h3-cell { width: 44px; height: 36px; border-radius: 8px; border: 1px solid var(--c-border); background: #fff; font-size: 15px; cursor: pointer; }
.nf-onb .ws-h3-cell.no { background: #fef2f2; border-color: #fecaca; }
.nf-onb .ws-h3-cell.ok { background: #f0fdf4; border-color: #bbf7d0; }
.nf-onb .ws-h3-cell.na { border: none; background: transparent; color: var(--c-text-muted); cursor: default; }

.nf-onb .ws-pat-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.nf-onb .ws-pat { border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 12px; }
.nf-onb .ws-pat.no { background: #fef2f2; border-color: #fecaca; }
.nf-onb .ws-pat.ok { background: #f0fdf4; border-color: #bbf7d0; }
.nf-onb .ws-pat-h { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.nf-onb .ws-pat-list { display: flex; flex-wrap: wrap; gap: 5px; }
.nf-onb .ws-pat-list span { font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.7); border-radius: 6px; padding: 2px 7px; }
.nf-onb .ws-pat-list i { font-size: 11.5px; color: var(--c-text-muted); }

.nf-onb .ws-s9-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nf-onb .ws-s9-chip { border: 1.5px solid var(--c-border); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--c-text-sec); }
.nf-onb .ws-s9-chip.on { border-color: var(--c-primary); background: var(--c-primary-bg); color: var(--c-primary-h); }
.nf-onb .ws-s9-w { display: flex; align-items: center; gap: 12px; }
.nf-onb .ws-s9-w-lbl { font-size: 12.5px; color: var(--c-text-sec); font-weight: 600; }
.nf-onb .ws-seg { display: inline-flex; border: 1px solid var(--c-border); border-radius: 9px; overflow: hidden; }
.nf-onb .ws-seg button { border: none; background: #fff; padding: 7px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--c-text-sec); border-right: 1px solid var(--c-border); }
.nf-onb .ws-seg button:last-child { border-right: none; }
.nf-onb .ws-seg button.on { background: var(--c-primary); color: #fff; }

/* ── STEP 7: S9 기피 패턴 직접 입력 빌더 ── */
.nf-onb .ws-s9-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.nf-onb .ws-s9-none { color: var(--c-text-muted); font-size: 13px; padding: 14px; text-align: center; border: 1px dashed var(--c-border); border-radius: 10px; }
.nf-onb .ws-s9-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--c-border); border-radius: 10px; background: #fff; }
.nf-onb .ws-s9-row.off { opacity: .5; }
.nf-onb .ws-s9-en { border: none; background: none; font-size: 13px; color: var(--c-primary); cursor: pointer; }
.nf-onb .ws-s9-seq { display: flex; align-items: center; gap: 6px; flex: 1; }
.nf-onb .ws-s9-del { border: none; background: none; color: var(--c-text-muted); font-size: 13px; cursor: pointer; }
.nf-onb .ws-s9-del:hover { color: var(--c-danger, #ef4444); }
.nf-onb .ws-s9-tok { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 700; background: var(--c-primary-bg); color: var(--c-primary-h); }
.nf-onb .ws-s9-tok.off { background: #f3f4f6; color: #6b7280; }
.nf-onb .ws-s9-arrow { color: var(--c-text-muted); font-size: 12px; }
.nf-onb .ws-s9-builder { border: 1px solid var(--c-border); border-radius: 12px; padding: 14px; background: var(--c-surface-2, #f8fafc); margin-bottom: 16px; }
.nf-onb .ws-s9-draft { min-height: 36px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border: 1px dashed var(--c-border); border-radius: 9px; background: #fff; margin-bottom: 11px; }
.nf-onb .ws-s9-draft-empty { color: var(--c-text-muted); font-size: 12.5px; }
.nf-onb .ws-s9-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.nf-onb .ws-s9-tokbtn { min-width: 38px; height: 36px; border: 1px solid var(--c-border); background: #fff; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.nf-onb .ws-s9-tokbtn:hover { border-color: var(--c-primary-l); color: var(--c-primary); }
.nf-onb .ws-s9-tokbtn.off { color: #6b7280; }
.nf-onb .ws-s9-actions { display: flex; gap: 8px; }
.nf-onb .ws-s9-actions button { border: 1px solid var(--c-border); background: #fff; border-radius: 8px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--c-text-sec); }
.nf-onb .ws-s9-actions button:disabled { opacity: .45; cursor: not-allowed; }
.nf-onb .ws-s9-actions button.pri { margin-left: auto; background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.nf-onb .ws-s9-more { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--c-border); color: var(--c-text-sec); font-weight: 500; }
