/* Guided onboarding wizard.
   Layout follows the approved prototype; every colour and face comes from the
   tokens already defined in app.css so the wizard cannot drift from the product. */

.ob-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.ob-hero h1 { font: 700 30px/1.2 "IBM Plex Sans"; margin: 4px 0 6px; letter-spacing: -.02em; }
.ob-hero p { margin: 0; color: var(--muted); font-size: 13px; }
.ob-saved { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ob-saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ob-hero-actions { display: flex; align-items: center; gap: 12px; }
.ob-demo { white-space: nowrap; }

.ob-layout { display: grid; grid-template-columns: 236px 1fr; gap: 18px; align-items: start; }

/* stepper */
.ob-steps { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 12px; display: grid; gap: 2px; position: sticky; top: 96px; }
.ob-step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 8px; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; width: 100%; font: inherit; }
.ob-step:hover { background: var(--sunk); }
.ob-step.active { background: var(--accent-soft); }
.ob-step b { display: block; font-size: 13px; }
.ob-step small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.ob-num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--white); }
.ob-step.active .ob-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.ob-step.done .ob-num { background: var(--deep); border-color: var(--deep); color: #fff; }

/* panel */
.ob-panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; display: flex; flex-direction: column; min-height: 560px; }
.ob-panel-head { padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.ob-panel-head h2 { font: 700 21px "IBM Plex Sans"; margin: 6px 0 4px; letter-spacing: -.015em; }
.ob-panel-head p { margin: 0; font-size: 13px; color: var(--muted); }
.ob-content { padding: 22px 26px; flex: 1; display: grid; gap: 16px; align-content: start; }
.ob-foot { padding: 15px 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ob-progress-text { font-size: 11px; color: var(--muted); }
.ob-btns { display: flex; gap: 8px; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* choice cards */
.ob-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ob-choice { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--white); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: .16s; display: block; width: 100%; }
.ob-choice:hover { border-color: var(--accent); }
.ob-choice.selected { border: 2px solid var(--accent); background: var(--accent-soft); padding: 15px; }
.ob-choice b { display: block; font-size: 14px; }
.ob-choice p { font-size: 12px; color: var(--muted); line-height: 1.45; margin: 5px 0 0; }
.ob-icon { font-size: 21px; display: block; margin-bottom: 8px; }
.ob-tag { position: absolute; right: 10px; top: 10px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 6px; border-radius: 6px; }
.ob-choice.selected .ob-tag { background: var(--white); }
.ob-choice.pack { cursor: default; display: grid; gap: 10px; }
.ob-pack-toggle { border: 0; background: none; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ob-pack-toggle:disabled { cursor: default; }
.ob-pack-meta { display: flex; gap: 18px; margin: 0; }
.ob-pack-meta dt { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ob-pack-meta dd { margin: 2px 0 0; font-size: 12px; font-weight: 600; }

/* fields */
.ob-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ob-field { display: grid; gap: 6px; }
.ob-field.full, .full { grid-column: 1 / -1; }
.ob-field label { font-size: 11px; font-weight: 700; color: var(--muted); }
.req { color: var(--red); }
.ob-error { margin: 0; font-size: 11px; color: var(--red); font-weight: 600; }
.ob-static { border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; font-size: 13px; background: var(--sunk); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ob-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; text-align: left; }
.ob-link:hover { text-decoration: underline; }

/* chips */
.ob-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ob-chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; background: var(--white); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.ob-chip:hover { border-color: var(--accent); }
.ob-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* connection */
.ob-example { border: 1px solid var(--line); border-radius: 11px; padding: 15px; background: var(--sunk); }
.ob-example b { font-size: 13px; }
.ob-example p { margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.ob-example pre { margin: 0; overflow-x: auto; font-size: 12px; line-height: 1.6; }
.ob-example code { background: none; padding: 0; }
.ob-conn { display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.ob-conn p { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ob-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.ob-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ob-status.testing i { background: var(--amber); animation: ob-pulse 1s infinite; }
.ob-status.success { color: var(--accent); } .ob-status.success i { background: #2d755d; }
.ob-status.failed { color: var(--red); } .ob-status.failed i { background: var(--red); }
@keyframes ob-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ob-status.testing i { animation: none; } }

/* risk */
.ob-riskbox { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 17px; background: var(--sunk); }
.ob-riskbox.tier-high, .ob-riskbox.tier-critical { border-color: #e6c9a2; background: #fdf7ee; }
.ob-gauge { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: auto; position: relative;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--line) 0); }
.ob-gauge::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--white); }
.ob-gauge span { position: relative; z-index: 1; font: 700 20px "IBM Plex Sans"; }
.ob-riskbox h3 { margin: 0 0 4px; font-size: 15px; }
.ob-riskbox p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.ob-factors { margin: 0; padding-left: 16px; font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.ob-questions { display: grid; gap: 12px; }
.ob-question { border: 1px solid var(--line); border-radius: 11px; padding: 14px; margin: 0; }
.ob-question.invalid { border-color: var(--red); }
.ob-question legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.ob-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ob-panel-inset { border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.ob-panel-inset h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ob-control-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 12px; }
.ob-override { display: grid; gap: 8px; margin-top: 8px; }

/* evaluation */
.ob-empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--line); border-radius: 12px; }
.ob-empty h3 { margin: 0 0 6px; font-size: 16px; }
.ob-empty p { margin: 0 auto 16px; font-size: 13px; color: var(--muted); max-width: 52ch; }
.ob-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; max-width: 320px; margin: 0 auto; }
.ob-progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.ob-scorecards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ob-score { border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.ob-score small { display: block; color: var(--muted); font-size: 10px; }
.ob-score b { display: block; font: 700 19px "IBM Plex Sans"; margin-top: 4px; }
.ob-score.warn b { color: var(--amber); }
.ob-bar { height: 5px; border-radius: 5px; background: var(--line); margin-top: 9px; overflow: hidden; }
.ob-bar i { display: block; height: 100%; background: #2d755d; }
.ob-score.warn .ob-bar i { background: var(--amber); }
.ob-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ob-table th { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ob-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ob-table td small { color: var(--muted); }
.ob-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-table tr.row-block { background: #fdf3f3; }
.ob-table tr.row-warn { background: #fdf9f1; }
.ob-pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.ob-pill.pass { background: #e4f1e9; color: #2d755d; }
.ob-pill.warn { background: #f8eddc; color: #9a6828; }
.ob-pill.block { background: #fae7e5; color: #a24646; }
.ob-pill.out { background: #e9edf3; color: #646e80; }

/* notices */
.ob-notice { border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: 12.5px; line-height: 1.55; background: var(--sunk); }
.ob-notice.good { background: #edf8f3; border-color: #bfe4d4; color: #21664c; }
.ob-notice.bad { background: #fdf3f3; border-color: #eccccc; color: #8c3a3a; }
.ob-notice ul { margin: 6px 0 0; padding-left: 18px; }

/* review */
.ob-ready { display: grid; grid-template-columns: 1fr 250px; gap: 20px; align-items: start; }
.ob-ready-list { display: grid; }
.ob-ready-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ob-ready-row .ok { color: #2d755d; font-weight: 700; }
.ob-ready-row .bad { color: var(--red); font-weight: 700; }
.ob-ready-row .pending { color: var(--amber); font-weight: 700; }
.ob-summary { background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.ob-summary h3 { margin: 0 0 12px; font-size: 14px; }
.ob-summary dl { margin: 0; display: grid; gap: 10px; }
.ob-summary dt { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* No text-transform: names display exactly as entered; enum values are labelled in the renderer. */
.ob-summary dd { margin: 2px 0 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }

/* success */
.ob-success { text-align: center; padding: 56px 24px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.ob-success-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e4f1e9; color: #2d755d; font-size: 24px; margin: 0 auto 16px; }
.ob-success h1 { font: 700 26px "IBM Plex Sans"; margin: 0 0 8px; }
.ob-success p { color: var(--muted); font-size: 13px; max-width: 60ch; margin: 0 auto 8px; }
.ob-lifecycle { display: flex; justify-content: center; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.ob-stage { border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 11px; text-transform: capitalize; color: var(--muted); }
.ob-stage.current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ob-success .ob-btns { justify-content: center; margin-top: 18px; }

/* focus + responsive */
.ob-step:focus-visible, .ob-choice:focus-visible, .ob-chip:focus-visible, .ob-link:focus-visible,
.ob-pack-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

@media (max-width: 1100px) {
  .ob-layout { grid-template-columns: 1fr; }
  .ob-steps { position: static; display: flex; overflow-x: auto; gap: 6px; }
  .ob-step { min-width: 168px; flex: none; }
  .ob-scorecards { grid-template-columns: 1fr 1fr; }
  .ob-ready { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ob-cards, .ob-grid, .ob-subgrid { grid-template-columns: 1fr; }
  .ob-field.full, .full { grid-column: auto; }
  .ob-hero { flex-direction: column; align-items: flex-start; }
  .ob-panel-head, .ob-content, .ob-foot { padding-left: 16px; padding-right: 16px; }
  .ob-conn { flex-direction: column; align-items: flex-start; }
  .ob-riskbox { grid-template-columns: 84px 1fr; }
  .ob-foot { flex-wrap: wrap; }
}
