/* Valuehub Connectors portal shell. Same construction as Valuehub HQ (web/app.css): tokens from brand.css, Poppins,
   navy sidebar on desktop, 56px top bar with a drawer under 1024px, 16px gutters on phones. No inline styles (CSP). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.55; }
h1 { font-size: 1.6rem; font-weight: 600; margin: 0 0 .25rem; color: var(--navy); }
h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .35rem; color: var(--navy); }
h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .4rem; color: var(--navy); }
p { margin: 0 0 .75rem; }
a { color: var(--blue-dark); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.badge-flag { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 600; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 999px; margin-right: .4rem; }

/* ── Sign-in (HQ auth style) ── */
body.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(0,161,224,.35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #001a36 100%); color: #fff; }
.auth-card { width: 100%; max-width: 420px; text-align: center; padding: 36px 32px 32px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.auth-logo { display: block; margin: 0 auto 8px; height: auto; }
.auth-card h1 { color: #fff; font-size: 1.5rem; }
.auth-sub { color: rgba(255,255,255,.78); margin-bottom: 1.5rem; }
.auth-note { color: rgba(255,255,255,.7); font-size: .85rem; margin: 1.25rem 0 0; }
.auth-error { background: rgba(200,50,45,.25); border: 1px solid rgba(255,120,110,.5); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.auth-foot { margin-top: 20px; color: rgba(255,255,255,.5); font-size: .8rem; }
.btn-ms { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .85rem 1rem; border-radius: 10px; border: 0; font: inherit; cursor: pointer;
  background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; transition: transform .08s ease, box-shadow .15s ease; }
.btn-ms:hover:not(:disabled) { box-shadow: 0 6px 20px rgba(0,161,224,.45); transform: translateY(-1px); }
.btn-ms:disabled { opacity: .55; cursor: not-allowed; }
.ms-mark { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.ms-mark i { width: 9px; height: 9px; display: block; }
.ms-mark i:nth-child(1) { background: #f25022; } .ms-mark i:nth-child(2) { background: #7fba00; } .ms-mark i:nth-child(3) { background: #00a4ef; } .ms-mark i:nth-child(4) { background: #ffb900; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: rgba(255,255,255,.5); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-top: 1px solid rgba(255,255,255,.18); }
.lg-field { display: block; text-align: left; margin-bottom: 12px; }
.lg-field span { display: block; font-size: .8rem; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.lg-field input { width: 100%; font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; }
.lg-field input::placeholder { color: rgba(255,255,255,.4); }
.auth-card .coming-soon { font-size: .72rem; font-weight: 500; color: var(--muted); background: var(--pale); border-radius: 999px; padding: .1rem .5rem; }

/* ── App shell ── */
body.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-top { display: flex; align-items: center; }
.side-brand { display: flex; align-items: flex-end; gap: .4rem; text-decoration: none; color: #fff; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.12); flex: 1; }
.side-brand img { width: 96px; height: auto; }
.side-brand span { font-weight: 700; color: var(--blue); letter-spacing: .06em; padding-bottom: 14px; font-size: .8rem; }
.side-drawer { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; flex: 1; }
.side-nav a { padding: .6rem .8rem; border-radius: 8px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; display: flex; align-items: center; justify-content: space-between; }
.side-nav a:hover { background: rgba(255,255,255,.08); }
.side-nav a.is-active { background: rgba(0,161,224,.22); color: #fff; box-shadow: inset 3px 0 0 var(--blue); }
.side-nav a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.nav-group { margin: 14px 0 4px; padding: 0 .8rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.nav-count { background: var(--yellow); color: var(--navy); border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 0 .45rem; }
.side-user { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 8px 0; font-size: .85rem; }
.side-user-name { font-weight: 600; color: #fff; display: block; overflow: hidden; text-overflow: ellipsis; }
.side-user-role { color: rgba(255,255,255,.6); margin-bottom: .4rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.main { padding: 28px 32px 48px; min-width: 0; }
.banner { background: var(--pale); border: 1px solid #cfe9f8; color: var(--navy); border-radius: var(--radius); padding: .6rem .9rem; margin-bottom: 20px; font-size: .9rem; }
.banner-bad { background: #fde2e0; border-color: #f3b4b0; color: #7a1612; }
.banner-warn { background: #fff8d6; border-color: #f3dc7a; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { margin: 0; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; box-shadow: var(--shadow); }
.nav-toggle, .nav-backdrop { display: none; }
.nav-progress { position: fixed; top: 0; left: 0; z-index: 2000; height: 3px; width: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, var(--blue), var(--yellow)); }
.nav-progress.is-active { opacity: 1; animation: nav-progress 12s cubic-bezier(.1,.7,.1,1) forwards; }
.nav-progress.is-done { width: 100%; opacity: 0; transition: opacity .35s ease .1s; }
@keyframes nav-progress { from { width: 0; } 15% { width: 40%; } 40% { width: 70%; } to { width: 94%; } }
.spinner { display: inline-block; width: 1em; height: 1em; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -.15em; }
@keyframes spin { to { transform: rotate(360deg); } }
button.is-busy { cursor: progress; opacity: .75; }

/* ── Buttons ── */
.btn { font: inherit; font-weight: 500; padding: .5rem .95rem; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.btn:hover { border-color: var(--blue); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { padding: .28rem .6rem; font-size: .82rem; border-radius: 7px; }

/* ── Cards, grids, tiles ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { margin-bottom: .6rem; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .08s ease, border-color .15s ease; }
a.card:hover { border-color: var(--blue); transform: translateY(-1px); }
.card-accent { border-top: 4px solid var(--accent, var(--blue)); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cols-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.col-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile b { display: block; font-size: 1.6rem; font-weight: 600; color: var(--navy); line-height: 1.2; }
.tile span { color: var(--muted); font-size: .82rem; }
.tile-ok b { color: var(--ok); } .tile-warn b { color: var(--warn); } .tile-down b { color: var(--bad); }
.needs-you { background: #fff8d6; border: 1px solid #f3dc7a; }
.needs-you h2 { color: var(--navy); }
.section { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); margin: 0; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; } .list li { padding: .5rem 0; border-bottom: 1px solid var(--line); } .list li:last-child { border-bottom: 0; }
pre { background: #0f2438; color: #e6f1fb; border-radius: 10px; padding: 12px 14px; overflow: auto; font-size: .78rem; margin: 0 0 .75rem; max-height: 320px; white-space: pre-wrap; overflow-wrap: anywhere; }
pre.key { background: var(--pale); color: var(--navy); border: 1px solid #cfe9f8; user-select: all; }
.md p { margin: 0 0 .5rem; } .md code { background: var(--pale); padding: .05rem .3rem; border-radius: 4px; font-size: .85em; } .md ul, .md ol { margin: 0 0 .5rem; padding-left: 1.2rem; }

/* ── Tables ── */
.table-wrap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--pale); }
td a { text-decoration: none; font-weight: 500; }
.key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--muted); white-space: nowrap; }
td input[type=text], td select { padding: .3rem .5rem; font-size: .88rem; }
tr.is-unmatched td { background: #fff8d6; } tr.is-ignored td { color: var(--muted); text-decoration: line-through; }

/* ── Chips and health ── */
.chip { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 500; white-space: nowrap; background: #e8eef4; color: #3d4f61; }
.chip-active, .chip-ok, .chip-connected, .chip-passed, .chip-done, .chip-published, .chip-ga { background: #daf3e6; color: #12683f; }
.chip-testing, .chip-running, .chip-beta, .chip-queued { background: #e3f4fd; color: #00699a; }
.chip-warn, .chip-expiring, .chip-degraded, .chip-provisioning, .chip-paused, .chip-alpha, .chip-optional { background: #fff3c4; color: #7a5b00; }
.chip-down, .chip-error, .chip-failed, .chip-expired, .chip-revoked, .chip-critical, .chip-bad { background: #fde2e0; color: #9b1c17; }
.chip-retired, .chip-deprecated, .chip-cancelled, .chip-skipped { background: #eee; color: #777; text-decoration: line-through; }
.chip-draft, .chip-configuring, .chip-pending, .chip-todo, .chip-unknown { background: #e8eef4; color: #3d4f61; }
.chip-shared { background: var(--pale); color: var(--navy); border: 1px solid #cfe9f7; } .chip-dedicated { background: var(--navy); color: #fff; } .chip-external { background: #ece6ff; color: #4b32a8; }
.chip-role, .chip-admin { background: var(--navy); color: #fff; } .chip-operator { background: #e3f4fd; color: #00699a; } .chip-viewer { background: #e8eef4; color: #3d4f61; }
.health { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: middle; }
.health-warn { background: var(--warn); } .health-down { background: var(--bad); } .health-unknown { background: #b8c4d0; }

/* ── Forms, filters, modal, toast ── */
.field { display: block; margin-bottom: 12px; min-width: 0; }
.field > span { display: block; font-size: .82rem; font-weight: 500; margin-bottom: 4px; color: var(--navy); }
.field small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; }
.field .err { display: block; color: var(--bad); font-size: .78rem; margin-top: 3px; }
.field-check { display: flex; align-items: center; gap: 8px; } .field-check > span { margin: 0; order: 2; }
.field-radio label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
input[type=text], input[type=url], input[type=number], input[type=search], input[type=email], input[type=password], select, textarea { font: inherit; width: 100%; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
textarea { resize: vertical; min-height: 80px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.form-group { margin-top: 10px; } .form-group h3 { margin-top: 6px; }
details.advanced summary { cursor: pointer; color: var(--blue-dark); font-size: .9rem; margin: 6px 0 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters input, .filters select { width: auto; min-width: 150px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,26,54,.55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 16px; padding: 24px; width: 100%; max-width: 560px; box-shadow: 0 24px 64px rgba(0,26,54,.35); }
.modal h2 { font-size: 1.2rem; margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.form-error { color: var(--bad); font-size: .88rem; margin: 8px 0 0; }
#toast-root { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--navy); color: #fff; padding: .65rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-size: .9rem; max-width: 360px; }
.toast-error { background: var(--bad); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a, .tabs button { font: inherit; background: none; border: 0; border-bottom: 3px solid transparent; padding: .5rem .8rem; color: var(--muted); text-decoration: none; cursor: pointer; font-weight: 500; }
.tabs .is-active { color: var(--navy); border-bottom-color: var(--blue); }

/* ── Wizard (docs/05 §4) ── */
.stepper { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.step-chip { font: inherit; font-size: .82rem; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: .3rem .7rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.step-chip[aria-current="step"] { border-color: var(--blue); color: var(--navy); background: var(--pale); font-weight: 600; }
.step-chip.is-done { color: var(--ok); border-color: #bfe6d0; } .step-chip.is-failed { color: var(--bad); border-color: #f3b4b0; } .step-chip.is-skipped { text-decoration: line-through; } .step-chip:disabled { opacity: .5; cursor: default; }
.wizard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.last-run { font-size: .82rem; color: var(--muted); }
.flow-line { display: flex; align-items: center; gap: 10px; padding: .5rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; } .flow-line:last-child { border-bottom: 0; }
.flow-line strong { min-width: 180px; }
.map-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ── Responsive shell (HQ rules) ── */
@media (max-width: 900px) { .cols-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1024px) {
  body.shell { grid-template-columns: 1fr; padding-top: 56px; }
  .side { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: 56px; padding: 0 8px 0 4px; flex-direction: row; align-items: center; overflow: visible; box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 4px 16px rgba(0,26,54,.25); }
  .side-top { flex: 1; gap: .25rem; }
  .side-brand { border: 0; padding: 0; align-items: center; gap: .35rem; }
  .side-brand img { width: 44px; } .side-brand span { padding-bottom: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
  .nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: rgba(255,255,255,.12); }
  .side-drawer { position: fixed; top: 56px; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 1150; background: var(--navy); padding: 12px 14px 20px; overflow-y: auto; transform: translateX(-104%); transition: transform .22s ease; box-shadow: 8px 0 32px rgba(0,26,54,.35); }
  body.nav-open .side-drawer { transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 56px 0 0 0; z-index: 1100; background: rgba(0,26,54,.5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .side-nav a { padding: .7rem .8rem; font-size: 1rem; }
  .main { padding: 20px 20px 48px; }
}
@media (max-width: 760px) {
  .main { padding: 16px 16px 32px; }
  h1 { font-size: 1.35rem; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .page-head .page-actions .btn { flex: 1 1 auto; justify-content: center; }
  .filters input, .filters select { width: 100%; min-width: 0; } .filters > * { flex: 1 1 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .tile b { font-size: 1.3rem; }
  th, td { padding: .55rem .7rem; }
  .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; }
  .modal-actions .btn { flex: 1 1 auto; justify-content: center; }
  #toast-root { left: 12px; right: 12px; bottom: 16px; } .toast { max-width: none; }
  .wizard-foot { position: sticky; bottom: 0; background: var(--bg); padding-bottom: 8px; }
  .flow-line strong { min-width: 0; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .nav-progress.is-active { animation: none; width: 100%; opacity: .85; } .side-drawer { transition: none; } }

/* ── Quick setup (onboard + guided page) ── */
.qpanel { margin-bottom: 16px; }
.qpanel h2 { display: flex; align-items: center; gap: .6rem; }
.qnum { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; flex: 0 0 30px; }
.qnum-done { background: var(--ok); } .qnum-failed { background: var(--bad); } .qnum-warn { background: var(--warn); } .qnum-skipped { background: #b8c4d0; }
.conn-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.conn-card { font: inherit; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: inherit; transition: border-color .15s ease, transform .08s ease; }
.conn-card:hover { border-color: var(--blue); transform: translateY(-1px); }
.conn-card.is-selected { border-color: var(--blue); background: var(--pale); box-shadow: 0 0 0 3px rgba(0,161,224,.18); }
.conn-mark { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--accent, var(--blue)); font-size: 1.1rem; }
.conn-name { font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.radio-pill { display: inline-flex; align-items: center; gap: 6px; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: .9rem; }
.radio-pill:has(:checked) { border-color: var(--blue); background: var(--pale); color: var(--navy); font-weight: 500; }
.btn-lg { padding: .75rem 1.3rem; font-size: 1rem; border-radius: 11px; }
.field.compact { margin: 0; min-width: 220px; } .field.compact select, .field.compact input { width: auto; min-width: 220px; }
.qprogress { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.qprogress-track { flex: 1; height: 8px; border-radius: 999px; background: #e3eaf1; overflow: hidden; }
.qprogress-bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--ok)); min-width: 8px; transition: width .4s ease; }
.qprogress > span { flex: 0 0 auto; color: var(--muted); }
.qsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.qstep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.qstep.is-next { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,161,224,.15), var(--shadow); }
.qstep.is-failed { border-color: #f3b4b0; }
.qstep-head { display: flex; align-items: flex-start; gap: 14px; } .qstep-head h2 { margin: 0; } .qstep-head p { margin: 0; }
.qstep-body { margin: 12px 0 0 44px; } .qstep-body p { margin: 0 0 .6rem; }
.qstep-body .row { margin-top: 8px; }
.qlive { border-color: #bfe6d0; background: #f2fbf6; margin-bottom: 18px; } .qlive h2 { color: var(--ok); }
.subcard { margin-top: 14px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; } .subcard h3 { margin-bottom: .3rem; }
.problem { background: #fff8d6; border: 1px solid #f3dc7a; border-radius: 10px; padding: .6rem .8rem; margin: 8px 0; color: var(--navy); }
.problem strong { display: block; } .problem .fix { margin-top: 4px; }
.who { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .08rem .45rem; border-radius: 999px; background: var(--yellow); color: var(--navy); margin-right: .3rem; }
.who-valuehub { background: var(--navy); color: #fff; } .who-customer { background: #e3f4fd; color: #00699a; }
.check-list li { padding: .45rem 0; }
.qdot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; font-weight: 700; color: #fff; background: #b8c4d0; vertical-align: middle; }
.qdot-ok { background: var(--ok); } .qdot-bad { background: var(--bad); } .qdot-none { background: #e3eaf1; }
.tiles-inline { margin: 6px 0 10px; grid-template-columns: repeat(4, minmax(90px, 1fr)); max-width: 560px; }
.missing { margin: 0 0 .6rem; padding-left: 1.2rem; } .missing li { margin: .15rem 0; }
.store-list li { padding: .45rem 0; }
@media (max-width: 760px) { .qstep-body { margin-left: 0; } .qstep { padding: 14px 14px; } .tiles-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } .field.compact, .field.compact select, .field.compact input { width: 100%; min-width: 0; } }
