.uc-hero-layout{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:center;
  gap:var(--hx-space-5);
  margin-top:0;
}

.uc-hero-copy,
.uc-hero-panel,
.uc-workflow,
.uc-workflow-screen,
.uc-screen-content,
.uc-workflow-panel,
.uc-section-intro,
.uc-ai-layout,
.uc-ai-checks,
.uc-model-boundary,
.uc-migration-step,
.uc-responsibility,
.uc-checklist>*{
  min-width:0;
}

.uc-hero-lead{
  max-width:42rem;
  margin-bottom:var(--hx-space-3);
  font-size:var(--hx-text-lg);
}

.uc-hero-actions{
  margin-top:var(--hx-space-3);
}

.uc-hero-panel{
  overflow:hidden;
  border:1px solid var(--hx-line-strong);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-surface);
  box-shadow:var(--hx-shadow);
}

.uc-panel-bar{
  display:flex;
  align-items:center;
  gap:var(--hx-space-1);
  padding:var(--hx-space-2);
  border-bottom:1px solid var(--hx-line);
  background:var(--hx-gray);
}

.uc-panel-bar>span{
  flex:0 0 auto;
  width:.65rem;
  height:.65rem;
  border-radius:50%;
  background:var(--hx-primary);
}

.uc-panel-bar strong{
  min-width:0;
  overflow:hidden;
  margin-right:auto;
  color:var(--hx-ink);
  font-size:var(--hx-text-xs);
  text-overflow:ellipsis;
  white-space:nowrap;
}

.uc-panel-bar b{
  color:var(--hx-success);
  font-size:var(--hx-text-xs);
}

.uc-hero-pipeline{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--hx-space-2);
  padding:var(--hx-space-3);
}

.uc-hero-pipeline>div{
  min-width:0;
  padding:var(--hx-space-2);
  border:1px solid var(--hx-line);
  border-radius:var(--hx-radius-sm);
}

.uc-pipeline-state{
  display:inline-flex;
  margin-bottom:var(--hx-space-1);
  color:var(--hx-primary-hover);
  font-family:var(--hx-font-mono);
  font-size:var(--hx-text-xs);
  font-weight:750;
}

.uc-hero-pipeline p{
  margin-bottom:.2rem;
  font-size:var(--hx-text-xs);
}

.uc-hero-pipeline strong{
  color:var(--hx-ink);
  font-size:var(--hx-text-sm);
}

.uc-panel-result{
  display:flex;
  align-items:center;
  gap:var(--hx-space-2);
  margin:0 var(--hx-space-3) var(--hx-space-3);
  padding:var(--hx-space-2);
  border-radius:var(--hx-radius-md);
  background:var(--hx-success-soft);
}

.uc-panel-result svg{
  flex:0 0 auto;
  width:1.75rem;
  color:var(--hx-success);
}

.uc-panel-result span,
.uc-panel-result strong{
  display:block;
}

.uc-panel-result span{
  color:var(--hx-muted);
  font-size:var(--hx-text-xs);
}

.uc-panel-result strong{
  color:var(--hx-ink);
  font-size:var(--hx-text-sm);
}

.uc-workload{
  display:grid;
  grid-template-columns:minmax(0,max-content) minmax(0,1fr);
  align-items:start;
  gap:var(--hx-space-3);
}

.uc-filter{
  display:grid;
  align-content:start;
  border-radius:var(--hx-radius-md);
}

.uc-filter button{
  justify-content:flex-start;
  text-align:left;
}

.uc-workload-screen{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  overflow:hidden;
  min-height:25rem;
  border:1px solid var(--hx-line-strong);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-surface);
  box-shadow:var(--hx-shadow);
}

.uc-screen-sidebar{
  display:flex;
  flex-direction:column;
  gap:var(--hx-space-2);
  padding:var(--hx-space-3) var(--hx-space-2);
  border-right:1px solid var(--hx-line);
  background:var(--hx-dark);
}

.uc-screen-sidebar span{
  width:.75rem;
  height:.75rem;
  border:1px solid var(--hx-accent);
  border-radius:50%;
}

.uc-screen-sidebar span:first-child{
  background:var(--hx-primary);
  border-color:var(--hx-primary);
}

.uc-screen-content{
  display:flex;
}

.uc-workflow-panel{
  display:grid;
  width:100%;
  grid-template-columns:minmax(0,1fr) minmax(0,.78fr);
  align-items:center;
  gap:var(--hx-space-4);
  padding:var(--hx-space-4);
}

.uc-workflow-panel[hidden]{
  display:none;
}

.uc-workflow-copy .c-badge{
  width:fit-content;
  margin-bottom:var(--hx-space-2);
}

.uc-workflow-copy h3{
  margin-bottom:var(--hx-space-2);
  font-size:var(--hx-text-xl);
}

.uc-workflow-copy p{
  margin-bottom:var(--hx-space-2);
}

.uc-workflow-copy a{
  color:var(--hx-primary-hover);
  font-weight:750;
}

.uc-workflow-copy a:hover{
  text-decoration:underline;
}

.uc-workflow-status{
  display:grid;
  gap:var(--hx-space-2);
}

.uc-workflow-status div{
  padding:var(--hx-space-2);
  border:1px solid var(--hx-line);
  border-radius:var(--hx-radius-sm);
  background:var(--hx-gray);
}

.uc-workflow-status span,
.uc-workflow-status strong{
  display:block;
}

.uc-workflow-status span{
  margin-bottom:.2rem;
  color:var(--hx-muted);
  font-size:var(--hx-text-xs);
}

.uc-workflow-status strong{
  color:var(--hx-ink);
  font-size:var(--hx-text-sm);
}

.uc-section-intro{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.8fr);
  align-items:end;
  gap:var(--hx-space-4);
  margin-bottom:var(--hx-space-5);
}

.uc-section-intro h2,
.uc-section-intro p{
  margin-bottom:0;
}

.uc-flow{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  list-style:none;
  margin:0;
  padding:0;
  border:1px solid var(--hx-line-strong);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-surface);
  overflow:hidden;
}

.uc-flow li{
  min-width:0;
  padding:var(--hx-space-3);
  border-right:1px solid var(--hx-line);
}

.uc-flow li:last-child{
  border-right:0;
}

.uc-flow-index{
  display:inline-flex;
  margin-bottom:var(--hx-space-3);
  color:var(--hx-primary-hover);
  font-family:var(--hx-font-mono);
  font-weight:750;
}

.uc-flow h3{
  margin-bottom:var(--hx-space-2);
}

.uc-flow p{
  font-size:var(--hx-text-sm);
}

.uc-flow b{
  display:block;
  padding-top:var(--hx-space-2);
  border-top:1px solid var(--hx-line);
  color:var(--hx-ink);
  font-size:var(--hx-text-xs);
}

.uc-notice{
  margin-top:var(--hx-space-3);
}

.uc-notice svg{
  flex:0 0 auto;
  width:1.5rem;
  color:var(--hx-primary-hover);
}

.uc-notice p{
  margin:.25rem 0 0;
}

.uc-practice-grid{
  margin-bottom:var(--hx-space-3);
}

.uc-practice>svg{
  width:2rem;
  margin-bottom:var(--hx-space-2);
  color:var(--hx-primary-hover);
}

.uc-practice h3{
  margin-bottom:var(--hx-space-2);
}

.uc-practice ul,
.uc-migration-step ul,
.uc-checklist ul{
  margin-bottom:0;
  padding-left:var(--hx-space-3);
  color:var(--hx-text);
}

.uc-practice li+li,
.uc-migration-step li+li,
.uc-checklist li+li{
  margin-top:var(--hx-space-1);
}

.uc-command{
  overflow:hidden;
  padding:0;
  border:1px solid var(--hx-line-strong);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-surface);
}

.uc-command-head{
  display:flex;
  align-items:center;
  gap:var(--hx-space-1);
  padding:var(--hx-space-2);
  border-bottom:1px solid var(--hx-line);
  background:var(--hx-gray);
}

.uc-command-head span{
  width:.65rem;
  height:.65rem;
  border-radius:50%;
  background:var(--hx-primary);
}

.uc-command-head span:nth-child(2){
  background:var(--hx-warning);
}

.uc-command-head span:nth-child(3){
  background:var(--hx-success);
}

.uc-command-head strong{
  margin-left:var(--hx-space-1);
  color:var(--hx-ink);
  font-size:var(--hx-text-xs);
}

.uc-command pre{
  margin:0;
  border:0;
  border-radius:0;
  padding:1.15rem 1.35rem;
}

.uc-command>p{
  margin:var(--hx-space-3);
  padding:0;
  color:var(--hx-muted);
}

.uc-ai-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.75fr);
  align-items:start;
  gap:var(--hx-space-3);
}

.uc-ai-checks{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:var(--hx-space-2);
}

.uc-ai-checks article{
  display:flex;
  gap:var(--hx-space-2);
  padding:var(--hx-space-3);
  border:1px solid var(--hx-line);
  border-radius:var(--hx-radius-md);
  background:var(--hx-surface);
}

.uc-check-icon{
  display:grid;
  flex:0 0 auto;
  width:2rem;
  height:2rem;
  place-items:center;
  border-radius:50%;
  background:var(--hx-success-soft);
  color:var(--hx-success);
}

.uc-check-icon svg{
  width:1.25rem;
}

.uc-ai-checks h3{
  margin-bottom:var(--hx-space-1);
}

.uc-ai-checks p{
  margin-bottom:0;
  font-size:var(--hx-text-sm);
}

.uc-model-boundary{
  padding:var(--hx-space-3);
  border:1px solid var(--hx-line-strong);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-dark);
}

.uc-model-boundary .c-badge{
  margin-bottom:var(--hx-space-2);
}

.uc-model-boundary>h3{
  margin-bottom:var(--hx-space-3);
  color:var(--hx-surface);
}

.uc-model-boundary>div{
  padding:var(--hx-space-2) 0;
  border-top:1px solid var(--hx-text);
}

.uc-model-boundary>div strong,
.uc-model-boundary>div span{
  display:block;
}

.uc-model-boundary>div strong{
  color:var(--hx-surface);
}

.uc-model-boundary>div span{
  margin-top:.2rem;
  color:var(--hx-accent);
  font-size:var(--hx-text-sm);
}

.uc-model-boundary>div p{
  margin:var(--hx-space-1) 0 0;
  color:var(--hx-line-strong);
  font-size:var(--hx-text-sm);
}

.uc-model-boundary>.c-btn{
  width:100%;
  margin-top:var(--hx-space-3);
  border-color:var(--hx-surface);
  background:var(--hx-surface);
  color:var(--hx-dark);
}

.uc-model-boundary>.c-btn:hover{
  border-color:var(--hx-accent);
  background:var(--hx-accent);
  color:var(--hx-dark);
}

.uc-migration{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--hx-space-3);
  position:relative;
}

.uc-migration-step{
  padding:var(--hx-space-3);
  border:1px solid var(--hx-line-strong);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-surface);
}

.uc-migration-head{
  display:flex;
  align-items:center;
  gap:var(--hx-space-2);
  margin-bottom:var(--hx-space-3);
}

.uc-migration-head>span{
  display:grid;
  flex:0 0 auto;
  width:2.75rem;
  height:2.75rem;
  place-items:center;
  border-radius:50%;
  background:var(--hx-primary);
  color:var(--hx-surface);
  font-weight:750;
}

.uc-migration-head p,
.uc-migration-head h3{
  margin-bottom:0;
}

.uc-migration-head p{
  font-size:var(--hx-text-xs);
}

.uc-migration-step h4{
  margin:var(--hx-space-3) 0 var(--hx-space-2);
  color:var(--hx-ink);
  font-family:var(--hx-font-heading);
}

.uc-migration-gate{
  display:flex;
  align-items:center;
  gap:var(--hx-space-3);
  margin-top:var(--hx-space-3);
  padding:var(--hx-space-3);
  border-radius:var(--hx-radius-md);
  background:var(--hx-dark);
}

.uc-migration-gate strong{
  flex:0 0 auto;
  color:var(--hx-accent);
}

.uc-migration-gate p{
  margin-bottom:0;
  color:var(--hx-line-strong);
}

.uc-responsibility{
  overflow:hidden;
  padding-inline:var(--hx-space-2);
  border:1px solid var(--hx-line-strong);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-surface);
}

.uc-responsibility-head,
.uc-responsibility-row{
  display:grid;
  grid-template-columns:minmax(0,.55fr) repeat(3,minmax(0,1fr));
}

.uc-responsibility-head{
  background:var(--hx-dark);
  color:var(--hx-surface);
  font-size:var(--hx-text-xs);
  font-weight:750;
}

.uc-responsibility-head span,
.uc-responsibility-row>*{
  min-width:0;
  padding:var(--hx-space-2);
}

.uc-responsibility-row{
  border-top:1px solid var(--hx-line);
}

.uc-responsibility-row strong{
  color:var(--hx-ink);
}

.uc-responsibility-row p{
  margin-bottom:0;
  font-size:var(--hx-text-sm);
}

.uc-release-notes{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--hx-space-3);
  margin-top:var(--hx-space-3);
}

.uc-release-notes h3{
  margin-bottom:var(--hx-space-2);
}

.uc-release-notes p{
  margin-bottom:0;
}

.uc-checklist{
  align-items:stretch;
}

.uc-checklist .c-card{
  height:100%;
}

.uc-card-number{
  display:inline-flex;
  margin-bottom:var(--hx-space-2);
  color:var(--hx-primary-hover);
  font-weight:750;
}

.uc-checklist h3{
  margin-bottom:var(--hx-space-2);
}

.uc-checklist p{
  font-size:var(--hx-text-sm);
}

.uc-checklist ul{
  font-size:var(--hx-text-sm);
}

.uc-final-section{
  padding-top:0;
}

.uc-final{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,max-content);
  align-items:center;
  gap:var(--hx-space-4);
  padding:var(--hx-space-5);
  border:1px solid var(--hx-accent);
  border-radius:var(--hx-radius-lg);
  background:var(--hx-primary-soft);
}

.uc-final .hx-eyebrow{
  margin-bottom:var(--hx-space-2);
}

.uc-final h2{
  margin-bottom:var(--hx-space-2);
}

.uc-final p{
  max-width:42rem;
  margin-bottom:0;
}

.uc-final-actions{
  justify-content:flex-end;
  max-width:25rem;
}

@media(max-width:900px){
  .uc-hero-layout,
  .uc-section-intro,
  .uc-ai-layout,
  .uc-final{
    grid-template-columns:1fr;
  }

  .uc-workload{
    grid-template-columns:1fr;
  }

  .uc-filter{
    display:flex;
  }

  .uc-flow{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .uc-flow li{
    border-bottom:1px solid var(--hx-line);
  }

  .uc-flow li:nth-child(2n){
    border-right:0;
  }

  .uc-flow li:last-child{
    grid-column:1/-1;
    border-bottom:0;
  }

  .uc-migration,
  .uc-release-notes{
    grid-template-columns:1fr;
  }

  .uc-final-actions{
    justify-content:flex-start;
    max-width:none;
  }
}

@media(max-width:768px){
  .uc-hero-layout{
    gap:var(--hx-space-3);
  }

  .uc-workflow-panel{
    grid-template-columns:1fr;
    gap:var(--hx-space-3);
    padding:var(--hx-space-3);
  }

  .uc-ai-checks{
    grid-template-columns:1fr;
  }

  .uc-responsibility{
    border:0;
    background:transparent;
  }

  .uc-responsibility-head{
    display:none;
  }

  .uc-responsibility-row{
    display:grid;
    grid-template-columns:1fr;
    gap:var(--hx-space-1);
    margin-bottom:var(--hx-space-2);
    padding:var(--hx-space-3);
    border:1px solid var(--hx-line);
    border-radius:var(--hx-radius-md);
    background:var(--hx-surface);
  }

  .uc-responsibility-row>*{
    padding:0;
  }

}

@media(max-width:640px){
  .uc-hero-pipeline,
  .uc-flow{
    grid-template-columns:1fr;
  }

  .uc-flow li,
  .uc-flow li:nth-child(2n){
    border-right:0;
    border-bottom:1px solid var(--hx-line);
  }

  .uc-flow li:last-child{
    grid-column:auto;
  }

  .uc-workload-screen{
    grid-template-columns:1fr;
    min-height:0;
  }

  .uc-screen-sidebar{
    display:flex;
    flex-direction:row;
    border-right:0;
    border-bottom:1px solid var(--hx-line);
  }

  .uc-migration-gate{
    align-items:flex-start;
    flex-direction:column;
  }

  .uc-final{
    padding:var(--hx-space-3);
  }

  .uc-final-actions,
  .uc-final-actions .c-btn{
    width:100%;
  }
}

@media(max-width:390px){
  .uc-hero-actions,
  .uc-hero-actions .c-btn{
    width:100%;
  }

  .uc-filter{
    align-items:stretch;
    flex-direction:column;
    border-radius:var(--hx-radius-md);
  }

  .uc-filter button{
    width:100%;
  }

  .uc-workflow-panel{
    padding:var(--hx-space-2);
  }

  .uc-ai-checks article{
    align-items:flex-start;
    flex-direction:column;
  }
}
