/* Consistent guided-flow polish */
.quick-section-label{grid-column:1/-1;margin:10px 0 0;padding:8px 2px 2px;color:var(--muted);font-size:.7rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;border-top:1px solid var(--line)}
.quick-section-label:first-child{margin-top:0;border-top:0}
.nb-v5-wizard-steps button:disabled{cursor:not-allowed;opacity:.48}
.nb-v5-wizard-steps button:not(:disabled){cursor:pointer}
.nb-v5-wizard-steps button.skipped{opacity:.62}.nb-v5-wizard-steps button.skipped span{background:#e8e3ea;color:#756b79}
.nb-v5-wizard-steps button[aria-current="step"]{box-shadow:inset 0 0 0 1px color-mix(in srgb,#7c3aed 28%,transparent)}
.debt-wizard-progress button:disabled{cursor:not-allowed;opacity:.52}
.debt-wizard-progress button[aria-current="step"] span{color:#881337;font-weight:850}
.nb-v5-step-intro h3:focus,.debt-step-intro h3:focus{outline:3px solid color-mix(in srgb,#7c3aed 24%,transparent);outline-offset:5px;border-radius:5px}
.nb-wizard-field-error{grid-column:1/-1;margin:8px 0 0;padding:10px 12px;border-left:4px solid #b42318;border-radius:8px;background:#fff1f0;color:#8f1712;font-size:.82rem;font-weight:750}
[aria-invalid="true"]{border-color:#b42318!important;box-shadow:0 0 0 3px rgba(180,35,24,.12)!important}
.nb-wizard-decision{width:min(680px,calc(100vw - 28px))}
.nb-wizard-decision .nb-v5-dialog-shell{grid-template-rows:auto minmax(0,1fr)}
.nb-wizard-decision-body{padding:22px}.nb-wizard-decision-body>p{margin:0;color:var(--muted);line-height:1.55}
.nb-wizard-decision-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}
.nb-wizard-decision-actions>div{display:flex;gap:9px}.nb-wizard-discard{color:#9f1239}

/* Modern person wizard */
.nb-person-dialog{width:min(1040px,calc(100vw - 28px))}
.nb-person-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.nb-person-status-grid .nb-v5-choice{min-height:112px;padding:14px}
.nb-person-skip-note{display:flex;align-items:center;gap:10px 18px;flex-wrap:wrap;margin-top:16px;padding:15px 17px;border:1px solid #d8d0dc;border-radius:15px;background:#faf8fb}
.nb-person-skip-note span{color:var(--muted)}
.nb-person-skip-note.review{justify-content:space-between}
.nb-person-optional{grid-column:1/-1;border:1px solid var(--border);border-radius:15px;background:#fbf9fc}
.nb-person-optional summary{cursor:pointer;padding:13px 15px;font-weight:800}
.nb-person-optional>.nb-v5-form-grid{padding:0 15px 15px}
.nb-person-split{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}
.nb-person-estimate{position:sticky;top:0;padding:20px;border-radius:18px;background:linear-gradient(145deg,#2f1937,#54335e);color:#fff;box-shadow:0 18px 38px rgba(47,25,55,.18)}
.nb-person-estimate>span,.nb-person-estimate>small{display:block;color:#dbcce0}
.nb-person-estimate>strong{display:block;margin:8px 0 0;font-size:2rem;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.nb-person-estimate dl{display:grid;gap:8px;margin:18px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.nb-person-estimate dl div{display:flex;justify-content:space-between;gap:12px}
.nb-person-estimate dt{color:#d9c9df}.nb-person-estimate dd{margin:0;font-weight:800;font-variant-numeric:tabular-nums}
.nb-person-estimate.take-home{background:linear-gradient(145deg,#173b35,#28594f)}
.nb-person-customize{margin-top:16px}
.nb-person-deductions{display:grid;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}
.nb-person-deduction-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.nb-person-deduction-head>div{display:grid;gap:3px}.nb-person-deduction-head span{color:var(--muted);font-size:.78rem}
.nb-person-deduction{display:grid;grid-template-columns:minmax(130px,1fr) 100px 100px 120px 105px auto;gap:7px;align-items:center}
.nb-person-deduction input,.nb-person-deduction select{width:100%;min-width:0;border:1px solid #d9cfdd;border-radius:9px;padding:9px;background:#fff;font:inherit}
.nb-person-empty{padding:13px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);text-align:center}
.nb-person-review-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:15px;align-items:center;margin-bottom:16px;padding:18px;border-radius:18px;background:linear-gradient(135deg,color-mix(in srgb,var(--person-accent) 12%,white),#fff);border:1px solid color-mix(in srgb,var(--person-accent) 28%,white)}
.nb-person-review-avatar{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:var(--person-accent);color:#fff}
.nb-person-review-avatar svg{width:27px;height:27px}.nb-person-review-hero h3{margin:2px 0;font-size:1.4rem}.nb-person-review-hero p,.nb-person-review-hero span{margin:0;color:var(--muted)}
.nb-person-review-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}

/* Debt: essentials-first, compact context, progressive modules */
.nb-debt-context{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:center;padding-top:2px}
.nb-debt-context>div{display:grid}.nb-debt-context>div span{color:var(--muted);font-size:.68rem}.nb-debt-context>div strong{font-size:.95rem}
.nb-debt-context dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0}
.nb-debt-context dl div{min-width:0;padding:7px 9px;border-radius:9px;background:#f7f4f8}
.nb-debt-context dt{color:var(--muted);font-size:.62rem}.nb-debt-context dd{margin:2px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.75rem;font-weight:800;font-variant-numeric:tabular-nums}
.nb-debt-module{padding:0;gap:0;overflow:hidden}
.nb-debt-module>.nb-debt-module-toggle{width:100%;border:0;background:#fff;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;color:inherit;font:inherit;cursor:pointer}
.nb-debt-module-toggle>span{display:grid;gap:3px}.nb-debt-module-toggle small{color:var(--muted);font-weight:400}.nb-debt-module-toggle b{font-size:1.2rem;color:#9f1239}
.nb-debt-module.has-error{border-color:#b42318;box-shadow:0 0 0 3px rgba(180,35,24,.1)}
.nb-debt-module.has-error .nb-debt-module-toggle small{color:#8f1712;font-weight:750}
.nb-debt-module>h4,.nb-debt-module>.debt-panel-head{display:none}
.nb-debt-module>:not(.nb-debt-module-toggle){margin:0 16px 16px}
.nb-debt-module.is-collapsed>:not(.nb-debt-module-toggle){display:none}
.debt-company-profile{display:grid;gap:14px;padding:18px}.debt-company-profile .debt-panel-head{align-items:start}.debt-company-profile .debt-panel-head p{margin:4px 0 0;color:var(--muted);font-size:.9rem}.debt-company-profile-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.debt-company-profile-summary{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #ddd6fe;border-radius:14px;background:#faf8ff}.debt-company-profile-summary .company-mark{flex:0 0 auto}.debt-company-profile-summary>div{display:grid;gap:3px;min-width:0}.debt-company-profile-summary span{color:var(--muted);font-size:.86rem;overflow-wrap:anywhere}.debt-company-profile-summary .text-button{margin-left:auto}.debt-company-override{padding:2px 0}.debt-company-overrides{padding-top:2px}
.nb-debt-ready{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;border:1px solid #b7dfc8;border-radius:15px;background:#f1fbf6}
.nb-debt-ready>div{display:grid;gap:3px}.nb-debt-ready span{color:#42695a;font-size:.8rem}
.debt-missing-item .text-button{margin-left:auto}
.nb-debt-draft-action{border-color:transparent!important;background:transparent!important;box-shadow:none!important}

@media(max-width:900px){
  .nb-person-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nb-person-split{grid-template-columns:1fr}.nb-person-estimate{position:static}
  .nb-person-deduction{grid-template-columns:repeat(2,minmax(0,1fr))}.nb-person-deduction .icon-button{justify-self:start}
}
@media(max-width:680px){
  .nb-v5-wizard-steps button,.nb-v5-wizard-foot button,.nb-person-dialog .icon-button,.debt-wizard-footer button,.debt-wizard-header .icon-button,.nb-debt-module-toggle,.nb-wizard-decision button{min-height:44px}
  .debt-company-profile-controls{grid-template-columns:1fr}.debt-company-profile-controls button{width:100%}.debt-company-profile-summary{align-items:flex-start;flex-wrap:wrap}.debt-company-profile-summary .text-button{margin-left:0}
  .nb-person-status-grid{grid-template-columns:1fr}
  .nb-person-review-hero{grid-template-columns:auto minmax(0,1fr)}.nb-person-review-hero>.text-button{grid-column:1/-1;justify-self:start}
  .nb-person-deduction{grid-template-columns:1fr}
  .nb-debt-context{grid-template-columns:1fr;gap:8px}.nb-debt-context dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .debt-wizard-progress{display:none!important}
  .nb-debt-ready{align-items:stretch;flex-direction:column}.nb-debt-ready button{width:100%}
  .nb-wizard-decision{width:100vw;height:100dvh;max-height:none;border-radius:0}
  .nb-wizard-decision-actions{align-items:stretch;flex-direction:column-reverse}
  .nb-wizard-decision-actions>div{display:grid}.nb-wizard-decision-actions button{width:100%}
}
@media(prefers-reduced-motion:reduce){.nb-person-dialog *,.nb-debt-module *{transition:none!important;animation:none!important}}
.nb-draft-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid rgba(148,163,184,.2)}
.nb-draft-choice strong,.nb-draft-choice span{display:block}.nb-draft-choice span{font-size:.82rem;color:var(--muted,#64748b);margin-top:3px}.nb-draft-choice>div:last-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.danger{color:#b91c1c!important}
