/* SEOANALIZIN V5C: correct V5 action-hub card layout without touching behavior.
   Scope: ONLY the existing SEO report's V5 action hub. */
.saz-hub-v5-ready .report-hero .report-overview{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(270px,292px);
  gap:18px;
  align-items:stretch;
}
.saz-hub-v5-ready .report-hero .report-score-card{
  display:grid;
  grid-template-columns:112px minmax(0,1fr) 198px;
  grid-template-areas:
    "ring identity actions"
    "ring summary actions"
    "counts counts counts";
  grid-template-rows:min-content 1fr auto;
  column-gap:20px;
  row-gap:14px;
  align-content:stretch;
  align-items:start;
  padding:25px 25px 22px;
  min-width:0;
  border-radius:22px;
  border:1px solid #d7e0ec;
  border-top:3px solid #e7a20b;
  background:linear-gradient(157deg,#ffffff 0%,#ffffff 68%,#f6f9fe 100%);
  box-shadow:0 14px 36px rgba(25,41,70,.06);
}
.saz-hub-v5-ready .report-hero .report-score-card>.score-ring{
  grid-area:ring;
  width:112px;height:112px;
  margin:7px 0 0;
  align-self:start;
}
.saz-hub-v5-ready .report-hero .report-score-card>.score-ring strong{font-size:34px}
.saz-hub-v5-ready .report-hero .report-score-card>.report-domain{
  grid-area:identity;
  display:flex;align-items:center;
  gap:12px;min-width:0;
  padding:1px 0 3px;
}
.saz-hub-v5-ready .report-hero .report-score-card .report-domain h1{
  font-size:clamp(20px,2.15vw,26px);
  line-height:1.17;letter-spacing:-.035em;
  margin:6px 0 5px;
}
.saz-hub-v5-ready .report-hero .report-score-card .report-domain .kicker{
  font-size:10px;letter-spacing:.085em;line-height:1.4;
}
.saz-hub-v5-ready .report-hero .report-score-card .report-domain a{
  font-size:12px;line-height:1.45;
}
.saz-hub-v5-ready .report-hero .report-score-card>.score-summary{
  grid-area:summary;
  align-self:start;
  padding:8px 0 0;
  min-width:0;
}
.saz-hub-v5-ready .report-hero .report-score-card>.score-summary>span{font-size:10px;letter-spacing:.085em}
.saz-hub-v5-ready .report-hero .report-score-card>.score-summary h2{font-size:22px;margin:5px 0 7px}
.saz-hub-v5-ready .report-hero .report-score-card>.score-summary p{
  font-size:13px;line-height:1.55;max-width:50ch;
}
.saz-hub-v5-ready .report-hero .report-score-card>.score-summary a{font-size:11px!important}
/* Critical V5 regression fix: grid-column:auto erased the named full-width count area. */
.saz-hub-v5-ready .report-hero .report-score-card>.result-counts{
  grid-area:counts;
  grid-column:1 / -1;
  grid-row:3;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;min-width:0;max-width:100%;
  gap:12px;
  align-self:end;
  margin:0;
  padding:18px 0 0;
  border-top:1px solid #dde6f0;
  box-sizing:border-box;
}
.saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div{
  display:flex;align-items:center;justify-content:flex-start;
  gap:12px;
  min-width:0;min-height:58px;
  padding:12px 15px;
  border-radius:12px;
  box-sizing:border-box;
  background:#f6f9fd;
  border:1px solid #d9e2ed;
  border-left:4px solid #8aa5c4;
  white-space:normal;
}
.saz-hub-v5-ready .report-hero .report-score-card>.result-counts>.pass{border-left-color:#15986a;background:#f3fcf8}
.saz-hub-v5-ready .report-hero .report-score-card>.result-counts>.warn{border-left-color:#d7920a;background:#fffaf0}
.saz-hub-v5-ready .report-hero .report-score-card>.result-counts>.fail{border-left-color:#d94349;background:#fff7f7}
.saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div strong{
  font-size:25px;line-height:1;font-weight:850;flex:0 0 auto;
}
.saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div span{
  display:block;font-size:12px;line-height:1.3;
  font-weight:750;color:#364860;
  overflow-wrap:anywhere;
}
/* Keep the existing actual buttons/forms and all their listeners; presentation only. */
.saz-hub-v5-ready .report-hero .saz-report-controls-v5{
  grid-area:actions;
  display:flex;flex-direction:column;
  align-self:stretch;
  gap:9px;
  min-width:0;
  border-left:1px solid #dde6f0;
  padding:0 0 0 18px;
}
.saz-hub-v5-ready .report-hero .saz-report-controls-label{
  font-size:11px;line-height:1.4;font-weight:850;
  margin:0 0 2px;
}
.saz-hub-v5-ready .report-hero .saz-hub-btn,
.saz-hub-v5-ready .report-hero .saz-report-action-recheck .reanalyze-form button,
.saz-hub-v5-ready .report-hero .saz-report-action-recheck .reanalyze-guest-trigger{
  min-height:43px;padding:10px 11px;
  font-size:12px;line-height:1.25;
  border-radius:11px;
}
.saz-hub-v5-ready .report-hero .saz-report-crawler-link{
  font-size:11px;line-height:1.4;
  padding:3px 0 0;
}
/* Dark mode: dark, opaque surfaces (no glass, flashes or animated highlights). */
html[data-theme="dark"].saz-hub-v5-ready .report-hero .report-score-card{
  background:#111e34;border-color:#364a67;border-top-color:#e0a429;
  box-shadow:0 12px 32px rgba(0,0,0,.18);
}
html[data-theme="dark"].saz-hub-v5-ready .report-hero .report-score-card>.result-counts{border-color:#354b69}
html[data-theme="dark"].saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div{
  background:#192b45;border-color:#364d6b;
}
html[data-theme="dark"].saz-hub-v5-ready .report-hero .report-score-card>.result-counts>.pass{border-left-color:#3bd0a0}
html[data-theme="dark"].saz-hub-v5-ready .report-hero .report-score-card>.result-counts>.warn{border-left-color:#ffbe50}
html[data-theme="dark"].saz-hub-v5-ready .report-hero .report-score-card>.result-counts>.fail{border-left-color:#ff727c}
html[data-theme="dark"].saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div span{color:#d1dced}
html[data-theme="dark"].saz-hub-v5-ready .report-hero .saz-report-controls-v5{border-color:#354b69}
/* Narrow desktop: prevent button panel from squeezing text + metrics. */
@media(max-width:1150px){
  .saz-hub-v5-ready .report-hero .report-overview{grid-template-columns:minmax(0,1fr) minmax(245px,28%);gap:14px}
  .saz-hub-v5-ready .report-hero .report-score-card{
    grid-template-columns:96px minmax(0,1fr) 180px;
    gap:12px 14px;padding:22px 19px;
  }
  .saz-hub-v5-ready .report-hero .report-score-card>.score-ring{width:96px;height:96px}
  .saz-hub-v5-ready .report-hero .saz-report-controls-v5{padding-left:12px}
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div{padding:11px;gap:8px}
}
@media(max-width:980px){
  .saz-hub-v5-ready .report-hero .report-overview{grid-template-columns:1fr}
  .saz-hub-v5-ready .report-hero .report-score-card{
    grid-template-columns:112px minmax(0,1fr) 200px;
    gap:14px 20px;padding:24px;
  }
  .saz-hub-v5-ready .report-hero .report-score-card>.score-ring{width:112px;height:112px}
  .saz-hub-v5-ready .report-hero .saz-report-controls-v5{padding-left:18px}
}
@media(max-width:640px){
  .saz-hub-v5-ready .report-hero .report-score-card{
    grid-template-columns:92px minmax(0,1fr);
    grid-template-areas:
      "ring identity"
      "summary summary"
      "actions actions"
      "counts counts";
    grid-template-rows:auto;
    gap:15px 13px;
    padding:18px;
  }
  .saz-hub-v5-ready .report-hero .report-score-card>.score-ring{grid-area:ring;width:92px;height:92px;margin:0;align-self:center}
  .saz-hub-v5-ready .report-hero .report-score-card>.report-domain{grid-area:identity;padding:0}
  .saz-hub-v5-ready .report-hero .report-score-card .report-domain h1{font-size:clamp(18px,5vw,24px)}
  .saz-hub-v5-ready .report-hero .report-score-card .report-domain>.domain-avatar{width:36px;height:36px;min-width:36px;min-height:36px}
  .saz-hub-v5-ready .report-hero .report-score-card>.score-summary{grid-area:summary;padding:0;text-align:left}
  .saz-hub-v5-ready .report-hero .saz-report-controls-v5{
    grid-area:actions;
    border-left:0;border-top:1px solid #dde6f0;
    padding:15px 0 0;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  }
  .saz-hub-v5-ready .report-hero .saz-report-controls-label,
  .saz-hub-v5-ready .report-hero .saz-report-crawler-link{grid-column:1/-1}
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts{
    grid-area:counts;
    grid-column:1 / -1;
    grid-row:auto;
    margin:0;
  }
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div{min-height:60px;flex-direction:column;align-items:flex-start;gap:5px}
  html[data-theme="dark"].saz-hub-v5-ready .report-hero .saz-report-controls-v5{border-color:#354b69}
}
@media(max-width:420px){
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div{padding:10px 7px;gap:4px}
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div strong{font-size:23px}
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts>div span{font-size:10px;letter-spacing:-.01em}
  .saz-hub-v5-ready .report-hero .saz-report-controls-v5{gap:8px}
  .saz-hub-v5-ready .report-hero .saz-hub-btn,
  .saz-hub-v5-ready .report-hero .saz-report-action-recheck .reanalyze-form button,
  .saz-hub-v5-ready .report-hero .saz-report-action-recheck .reanalyze-guest-trigger{font-size:11px}
}
@media print{
  .saz-hub-v5-ready .report-hero .report-score-card>.result-counts{
    grid-column:1 / -1 !important;grid-row:auto!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
