/* IMPERIUM AUREA COMPONENT MIGRATION — Build461
   Screenshot-driven correction of critical status cards and Control Center. */

:root{
  --a461-critical-bg:linear-gradient(180deg,rgba(78,17,34,.72),rgba(53,12,26,.74));
  --a461-critical-border:rgba(238,139,165,.34);
  --a461-critical-text:#fff2f5;
  --a461-critical-badge-bg:rgba(238,139,165,.14);
  --a461-critical-badge:#ffc6d3;
  --a461-chip-bg:rgba(8,29,42,.86);
  --a461-chip-active:linear-gradient(135deg,rgba(76,207,220,.22),rgba(67,153,208,.16));
}

/* CRITICAL / SOLD-OUT LIST */
html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-list{
  display:grid!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
}
html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-width:0!important;
  width:100%!important;
  padding:16px 18px!important;
  border-radius:18px!important;
  border:1px solid var(--a461-critical-border)!important;
  background:var(--a461-critical-bg)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-name{
  min-width:0!important;
  color:var(--a461-critical-text)!important;
  font-weight:760!important;
  font-size:clamp(.95rem,4.2vw,1.15rem)!important;
  line-height:1.25!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:none!important;
  min-height:34px!important;
  max-width:132px!important;
  padding:7px 10px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,198,211,.30)!important;
  background:var(--a461-critical-badge-bg)!important;
  color:var(--a461-critical-badge)!important;
  font-size:.76rem!important;
  font-weight:900!important;
  letter-spacing:.02em!important;
  line-height:1.15!important;
  text-align:center!important;
  white-space:normal!important;
  word-break:normal!important;
}
html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-row::before{
  content:"";
  width:4px;
  align-self:stretch;
  border-radius:99px;
  background:linear-gradient(180deg,#f3a1b4,#b54163);
  grid-column:1;
  grid-row:1;
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
}
html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-row{
  position:relative!important;
}
html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-row > *{
  position:relative;
  z-index:1;
}

/* CONTROL CENTER SEARCH AREA */
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-search-shell{
  min-height:0!important;
  height:auto!important;
  padding:18px!important;
  display:grid!important;
  gap:14px!important;
  align-items:start!important;
}
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-search-line{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  min-width:0!important;
}
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-search-line input{
  min-width:0!important;
  width:100%!important;
  min-height:56px!important;
}
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-search-meta{
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  color:#9db2bd!important;
  font-size:.88rem!important;
}
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-chip-cluster{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
  margin-top:4px!important;
  min-width:0!important;
}
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  max-width:100%!important;
  padding:10px 14px!important;
  border-radius:999px!important;
  border:1px solid rgba(132,230,236,.16)!important;
  background:var(--a461-chip-bg)!important;
  color:#f2f8fa!important;
  font-size:.9rem!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:normal!important;
  word-break:normal!important;
  text-align:center!important;
}
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-chip.is-active{
  border-color:rgba(113,229,230,.46)!important;
  background:var(--a461-chip-active)!important;
  color:#c8fbff!important;
  box-shadow:inset 0 0 0 1px rgba(113,229,230,.07),0 8px 24px rgba(0,0,0,.12)!important;
}
html[data-aurea-screen="control-center"] body.imperium-v461 .a461-business-card{
  margin-top:18px!important;
}

/* Hero: preserve what already works, only tighten small-screen rhythm. */
html[data-aurea-screen="intelligence-hero"] body.imperium-v461 .a461-hero{
  min-width:0!important;
}
html[data-aurea-screen="intelligence-hero"] body.imperium-v461 .a461-hero :where(h1,h2){
  text-wrap:balance!important;
  line-height:1.02!important;
}
html[data-aurea-screen="intelligence-hero"] body.imperium-v461 .a461-hero-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
}
html[data-aurea-screen="intelligence-hero"] body.imperium-v461 .a461-hero-actions > *{
  width:100%!important;
  min-width:0!important;
}

/* Global mobile readability guard: status text must never become black-on-dark. */
@media(max-width:700px){
  body.imperium-v461 :where(.status-error,.status-danger,.danger,.error)[data-aurea-critical="1"]{
    color:#fff2f5!important;
  }
  html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-row{
    padding:15px 16px!important;
    gap:10px!important;
  }
  html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-status{
    max-width:105px!important;
    font-size:.72rem!important;
  }
  html[data-aurea-screen="control-center"] body.imperium-v461 .a461-search-shell{
    padding:16px!important;
  }
  html[data-aurea-screen="control-center"] body.imperium-v461 .a461-chip-cluster{
    gap:8px!important;
  }
  html[data-aurea-screen="control-center"] body.imperium-v461 .a461-chip{
    padding:10px 13px!important;
    font-size:.86rem!important;
  }
}
@media(max-width:390px){
  html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-row{
    grid-template-columns:minmax(0,1fr)!important;
  }
  html[data-aurea-screen="review-list"] body.imperium-v461 .a461-review-status{
    justify-self:start!important;
    max-width:none!important;
  }
  html[data-aurea-screen="intelligence-hero"] body.imperium-v461 .a461-hero-actions{
    grid-template-columns:1fr!important;
  }
}
@media(min-width:701px){
  html[data-aurea-screen="control-center"] body.imperium-v461 .a461-search-shell{
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
  }
  html[data-aurea-screen="control-center"] body.imperium-v461 .a461-search-line{
    min-width:420px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.imperium-v461 .a461-chip,
  body.imperium-v461 .a461-review-row{transition:none!important}
}
