
/* ONBOARDING-LIVE-r1 diagnostics */
.onb-live-screen{
  min-height:100dvh;
  background:#f6f6f7;
  color:#111;
  display:flex;
  justify-content:center;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.onb-live-card{
  width:min(430px,100%);
  min-height:100dvh;
  background:#fff;
  padding:18px 16px calc(22px + env(safe-area-inset-bottom));
}
.onb-live-head{
  display:grid;
  grid-template-columns:38px 1fr;
  gap:10px;
  align-items:start;
}
.onb-live-head button{
  width:36px;
  height:36px;
  border:0;
  border-radius:50%;
  background:#f4f4f5;
  color:#111;
  font-size:28px;
}
.onb-live-kicker{
  color:#a1a1aa;
  font-size:11px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin:2px 0 8px;
}
.onb-live-head h1{
  margin:0;
  font-size:24px;
  line-height:1.05;
  font-weight:950;
}
.onb-live-head p{
  margin:9px 0 0;
  color:#71717a;
  font-size:13px;
  line-height:1.42;
  font-weight:650;
}
.onb-live-summary{
  margin:18px 0 12px;
  display:grid;
  gap:8px;
}
.onb-live-summary div,
.onb-live-step{
  border:1px solid #e8e8eb;
  border-radius:14px;
  background:#fff;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.onb-live-summary span,
.onb-live-step span{
  color:#71717a;
  font-size:12px;
  font-weight:850;
}
.onb-live-summary b,
.onb-live-step b{
  color:#111;
  font-size:12px;
  line-height:1.2;
  font-weight:950;
  text-align:right;
}
.onb-live-step.is-active{
  border-color:rgba(255,196,0,.62);
  background:#fff8d7;
}
.onb-live-ok,
.onb-live-issues{
  border-radius:16px;
  padding:12px;
  font-size:12px;
  line-height:1.35;
  font-weight:800;
}
.onb-live-ok{
  border:1px solid rgba(34,197,94,.32);
  background:#e7f8ee;
  color:#15803d;
}
.onb-live-issues{
  border:1px solid rgba(239,68,68,.34);
  background:#fff0f0;
  color:#b91c1c;
  display:grid;
  gap:7px;
}
.onb-live-section{
  margin-top:16px;
}
.onb-live-section h2{
  margin:0 0 8px;
  font-size:14px;
  font-weight:950;
}
.onb-live-steps{
  display:grid;
  gap:7px;
}
.onb-live-section pre{
  max-height:260px;
  overflow:auto;
  border:1px solid #e8e8eb;
  border-radius:14px;
  background:#111;
  color:#f8f8f9;
  padding:12px;
  font-size:11px;
  line-height:1.4;
}
.onb-live-actions{
  position:sticky;
  bottom:0;
  margin-top:16px;
  padding:12px 0 0;
  display:grid;
  gap:8px;
  background:linear-gradient(180deg,rgba(255,255,255,0),#fff 18%);
}
.onb-live-actions button{
  min-height:44px;
  border-radius:14px;
  border:1px solid #e8e8eb;
  background:#fff;
  color:#111;
  font-size:13px;
  font-weight:950;
}
.onb-live-actions button:first-child{
  background:#ffc400;
  border-color:#ffc400;
}
@media (min-width:768px){
  .onb-live-card{
    min-height:calc(100dvh - 32px);
    margin:16px 0;
    border:1px solid #e8e8eb;
    border-radius:28px;
    box-shadow:0 24px 70px rgba(15,23,42,.10);
  }
}


/* ONBOARDING-LIVE-r2 route matrix */
.onb-live-role{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  margin-bottom:10px;
}
.onb-live-role button{
  min-height:34px;
  border:1px solid #e8e8eb;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:12px;
  font-weight:950;
}
.onb-live-role button.is-active{
  background:#ffc400;
  border-color:#ffc400;
}
.onb-live-routes{
  display:grid;
  gap:7px;
}
.onb-live-route{
  width:100%;
  min-height:50px;
  border:1px solid #e8e8eb;
  border-radius:14px;
  background:#fff;
  color:#111;
  padding:9px 10px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:3px 10px;
  align-items:center;
  text-align:left;
}
.onb-live-route span{
  font-size:12px;
  font-weight:950;
}
.onb-live-route small{
  color:#71717a;
  font-size:10.5px;
  line-height:1.2;
  font-weight:750;
}
.onb-live-route b{
  grid-row:1/3;
  grid-column:2;
  padding:4px 8px;
  border-radius:999px;
  background:#f4f4f5;
  color:#71717a;
  font-size:10px;
  font-weight:950;
}
.onb-live-route.is-ok{
  border-color:rgba(34,197,94,.34);
  background:#f7fff9;
}
.onb-live-route.is-ok b{
  background:#e7f8ee;
  color:#15803d;
}
.onb-live-route.is-bad{
  border-color:rgba(239,68,68,.34);
  background:#fff7f7;
}
.onb-live-route.is-bad b{
  background:#fff0f0;
  color:#b91c1c;
}
.onb-live-actions--matrix{
  position:static;
  background:none;
  grid-template-columns:1fr;
}
.onb-live-actions--matrix button:first-child{
  background:#ffc400;
}


/* ONBOARDING-LIVE-r3 fallback and report */
.onb-live-report-actions{
  margin-top:14px;
  display:grid;
  gap:8px;
}
.onb-live-report-actions button{
  min-height:42px;
  border:1px solid #e8e8eb;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-size:12px;
  font-weight:950;
}
.onb-live-report-actions button:first-child{
  background:#ffc400;
  border-color:#ffc400;
}
.onb-live-fallback-screen{
  min-height:100dvh;
  background:#f6f6f7;
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.onb-live-fallback-card{
  width:min(430px,100%);
  border:1px solid #e8e8eb;
  border-radius:28px;
  background:#fff;
  padding:18px;
  box-shadow:0 24px 70px rgba(15,23,42,.10);
}
.onb-live-fallback-kicker{
  color:#a1a1aa;
  font-size:11px;
  line-height:1;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
  margin:0 0 8px;
}
.onb-live-fallback-card h1{
  margin:0;
  font-size:24px;
  line-height:1.08;
  font-weight:950;
}
.onb-live-fallback-card p{
  margin:10px 0 14px;
  color:#71717a;
  font-size:13px;
  line-height:1.4;
  font-weight:650;
}
.onb-live-fallback-box{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:8px 10px;
  border:1px solid rgba(239,68,68,.34);
  border-radius:16px;
  background:#fff0f0;
  padding:12px;
  margin-bottom:14px;
}
.onb-live-fallback-box span{
  color:#71717a;
  font-size:12px;
  font-weight:900;
}
.onb-live-fallback-box b{
  color:#111;
  font-size:12px;
  line-height:1.25;
  font-weight:950;
  word-break:break-word;
}
.onb-live-fallback-card button{
  width:100%;
  min-height:44px;
  border-radius:14px;
  border:1px solid #e8e8eb;
  background:#fff;
  color:#111;
  font-size:13px;
  font-weight:950;
  margin-top:8px;
}
.onb-live-fallback-card button:first-of-type{
  background:#ffc400;
  border-color:#ffc400;
}
