
.field-label { display: block; max-width: 520px; margin: 0 auto 6px; font-size: 13px; color: var(--mute); text-align: left; }
.seo-run { scroll-margin-top: 84px; }


.runbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: baseline;
          border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
          padding: 12px 14px; font-family: var(--mono); font-size: 12px; }
.runbar .k { color: var(--faint); }
.runbar .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.runbar .state { margin-left: auto; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot.live { background: var(--brand-500); animation: pulse 1.1s ease-in-out infinite; }
.dot.done { background: var(--win); }
.dot.bad  { background: var(--broken); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none } }

.rows { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r);
        background: var(--white); max-height: 380px; overflow: auto; }
.row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: baseline;
       padding: 7px 14px; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; }
.row:first-child { border-top: 0; }
.row .st { font-variant-numeric: tabular-nums; }
.row .st.ok { color: var(--win); }
.row .st.warn { color: var(--leak); }
.row .st.bad { color: var(--broken); }

.row .u { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.row .u small { display: block; color: var(--faint); font-family: var(--sans); font-size: 11px; overflow-wrap: anywhere; }
.row .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.row .n b { color: var(--leak); font-weight: 600; }

.row.redirect .u { color: var(--mute); }

.hidden { display: none }

.vhidden { visibility: hidden }
.seo-explain { max-width: 37.9em; margin-left: auto; margin-right: auto; }
section.block.seo-explain { padding-top: 28px; }


.stagecard { margin-bottom: 12px; }
.stagecard .run-head .k { color: var(--faint); }
.stagecard .run-head .state { margin-left: auto; }
.stagecard .run-head .v { color: var(--ink); font-variant-numeric: tabular-nums; }
.steps li.live .glyph { color: var(--brand-500); }
.steps li .time { font-variant-numeric: tabular-nums; }
.steps .what progress { display: block; width: 100%; max-width: 280px; height: 6px; margin-top: 6px;
                        accent-color: var(--brand-400); }
.typical { padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--mute); }


.progressline { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 1.5;
                min-height: calc(1.5em + 20px); box-sizing: border-box;
                font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stagecard .run-head #startOver, .stagecard .run-head #stopScan { margin-left: 12px; }
@media (max-width: 600px) {
  .progressline { min-height: calc(3em + 20px); }
  .stagecard .run-head #startOver, .stagecard .run-head #stopScan { min-height: 44px; }
  
  .issue .fixcopy, #fixExport .linkbtn { min-height: 44px; }
}
.typical .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }

.stall { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r);
         padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; color: var(--ink); }
.stall:empty { border: 0; padding: 0; margin: 0; }
.leave { border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
         padding: 14px 16px; margin-bottom: 12px; }
.leave .inputrow, .keeplink .inputrow { margin-top: 8px; max-width: 100%; }
.leave .field, .keeplink .field { flex: 1 1 260px; font-family: var(--mono); font-size: 12.5px; }
.leave .emaillabel { max-width: none; margin: 12px 0 0; flex-basis: 100%; }
.leave .emailrow { margin-top: 0; }

.issue .fixcopy { display: block; margin-top: 8px; }

.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-500); cursor: pointer;
           text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--brand-600); }
.linkbtn[aria-disabled="true"] { color: var(--mute); cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rundone > summary { display: none; }
.rundone.done > summary { display: list-item; cursor: pointer; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); padding: 10px 14px; margin-bottom: 12px; font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  overflow-wrap: anywhere; }
.rundone.done[open] > summary { margin-bottom: 8px; }
.scan-finished .audit-hero .lede { display: none; }

.scan-finished section.block.audit-hero { padding-top: 16px; }

.scan-finished .leave .inputrow, .scan-finished .keeplink .inputrow { flex-wrap: nowrap; }
.scan-finished .leave .inputrow .field, .scan-finished .keeplink .inputrow .field { min-width: 0; flex: 1 1 auto; }
.scan-finished .leave .inputrow .btn, .scan-finished .keeplink .inputrow .btn { width: auto; }

.keeplink .inputrow { flex-wrap: nowrap; }
.keeplink .inputrow .field { min-width: 0; flex: 1 1 auto; }
.keeplink .inputrow .btn { width: auto; }


.audit-hero { text-align: center; }
.audit-hero .lede { margin-inline: auto; max-width: 640px; }
.audit-col { max-width: 560px; margin: 20px auto 0; text-align: left; }
.audit-col .inputrow, .audit-col .risk { max-width: none; }
.audit-col .field-label { display: block; max-width: none; padding: 0; margin: 0 0 8px; text-indent: 0; }

#gate { border: 1px solid var(--brand-100); }


#agentResult h2 { margin-bottom: 8px; }
#agentResult .body { color: var(--ink); }
#agentResult .ar-mute { color: var(--mute); }
#agentResult .ar-small { font-size: 12.5px; }
.ar-header { border-bottom: 1px solid var(--line-soft); padding-bottom: 12px; margin-bottom: 4px; }
.ar-header .body { margin-top: 4px; font-size: 13px; }
.ar-block { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 16px; }
.ar-block:first-of-type { border-top: 0; }
.ar-block h3 { font-size: 16px; margin: 0 0 6px; }
.ar-block h4 { font-size: 14px; margin: 14px 0 2px; }

#agentResult .ar-level { font-family: var(--mono); font-size: 26px; color: var(--ink); margin: 2px 0 4px; }
.ar-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0; }
.ar-pillar { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--white); }
#agentResult .ar-pillar p { margin: 0; }
.ar-pname { font-size: 13px; color: var(--mute); }
#agentResult .ar-pnum { font-family: var(--mono); font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ar-details { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); margin-top: 8px; }
.ar-details summary { cursor: pointer; padding: 10px 12px; font-size: 13.5px; color: var(--ink); }
.ar-details[open] summary { border-bottom: 1px solid var(--line-soft); }
.ar-details ul { margin: 8px 12px 10px 28px; font-size: 13px; color: var(--mute); }
.ar-table { overflow-x: auto; max-width: 100%; }
.ar-table table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.ar-table th, .ar-table td { text-align: left; vertical-align: top; padding: 6px 10px; border-top: 1px solid var(--line-soft); color: var(--ink); }
.ar-table thead th { color: var(--mute); font-weight: 600; border-top: 0; }
.ar-table tbody th { font-family: var(--mono); font-weight: 500; white-space: nowrap; }
.ar-table tr.ar-flag td { color: var(--broken); }

.ar-needs-browser { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.ar-browser { background: var(--paper); }
.ar-page { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-top: 8px; background: var(--white); }
.ar-path { font-family: var(--mono); font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; margin: 0; }
.ar-page ul { margin: 2px 0 6px 20px; font-size: 13px; }

.ar-lead { margin: 0 0 12px; }
#agentResult .ar-headline { font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--ink); margin: 0 0 6px; text-wrap: pretty; }
.ar-lines { margin: 0 0 0 18px; padding: 0; font-size: 14px; color: var(--mute); }
.ar-tally { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 14px 16px; }
#agentResult .ar-tally-num { font-size: 32px; font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0; font-variant-numeric: tabular-nums; }
#agentResult .ar-tally .ar-small { margin: 2px 0 10px; }
.ar-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ar-tile { border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 8px 10px; background: var(--paper); }
#agentResult .ar-tile-n { font-family: var(--mono); font-size: 20px; color: var(--ink); margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.ar-mark { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ar-mark-pass { color: var(--win); }
.ar-mark-fix, .ar-mark-gap { color: var(--leak); }
.ar-mark-none { color: var(--faint); font-weight: 500; }
.ar-mark-seen { color: var(--ink); font-weight: 500; }
.ar-changes { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: arc; }
.ar-change { border: 1px solid var(--line); border-left: 3px solid var(--leak-bar); border-radius: var(--r); background: var(--white); padding: 12px 14px; margin-top: 10px; }
#agentResult .ar-change p { margin: 4px 0 0; }
#agentResult .ar-change-title { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; margin: 0; }
.ar-snippet { margin: 8px 0 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-sm); font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.ar-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.ar-copy-area { width: 100%; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; background: var(--white); color: var(--ink); }
#arPrompt { margin-top: 14px; }
#arPrompt .btn { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.ar-rows { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13.5px; }
.ar-rows li { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.ar-rows li:first-child { border-top: 0; }
.ar-row-label { color: var(--ink); }
.ar-fold { margin: 8px 12px 10px; border-top: 1px dashed var(--line); }
.ar-fold summary { cursor: pointer; padding: 8px 0; font-size: 12.5px; color: var(--mute); }
.ar-how { margin-top: 18px; }
.ar-how > .ar-header, .ar-how > .ar-block, .ar-how > .ar-counts { margin: 0 12px; }
.ar-result { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ar-how > .ar-block:last-child { padding-bottom: 12px; }
@media (max-width: 640px) {
  .ar-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #agentResult .ar-headline { font-size: 18px; }
  #agentResult .ar-tally-num { font-size: 28px; }
  
  #agentResult .ar-table thead { display: none; }
  #agentResult .ar-table tr { display: block; border-top: 1px solid var(--line-soft); padding: 6px 0; }
  #agentResult .ar-table th, #agentResult .ar-table td { display: block; border-top: 0; padding: 2px 10px; white-space: normal; }
  #agentResult .ar-table td:empty { display: none; }
  
  #agentResult .btn { min-height: 44px; display: inline-flex; align-items: center; }
  .ar-details summary { padding-top: 12px; padding-bottom: 12px; }
  .ar-fold summary { padding-top: 13px; padding-bottom: 13px; }
}


.stepper { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }

.stepper.hidden { display: none; }
.stepper .step { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; color: var(--mute); }
.stepper .sg { font-size: 16px; line-height: 20px; height: 20px; }
.stepper .sn { font-size: 13px; line-height: 16px; min-height: 32px; font-weight: 600; overflow-wrap: anywhere; }
.stepper .sc { font-size: 12px; line-height: 15px; min-height: 30px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stepper .step.done { color: var(--ink); }
.stepper .step.done .sg { color: var(--win); }
.stepper .step.now .sg, .stepper .step.now .sn { color: var(--brand-500); }
.stepper .step.now { color: var(--ink); }
.stepper .step.ended .sg, .stepper .step.ended .sn { color: var(--leak); }
.stepper .sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.glance { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); padding: 14px 16px; margin-bottom: 12px; }
.keeplink { margin: 0; }
.keeplink .body { margin: 0 0 6px; }

@media (max-width: 600px) { .stagecard .run-head .state { flex-basis: 100%; margin-left: 0; } }

@media (max-width: 360px) { .stepper .sc { min-height: 45px; } .keeplink .body { min-height: 4.5em; } }

.stagedetails > summary { cursor: pointer; font-size: 13px; color: var(--mute); }
@media (min-width: 601px) { .stagedetails > summary { display: none; } }

/* CVL-602 slices 2–3 (the SEO v2 Lead's ruling, 7 Nov): the result's own sections (seo-audit-result.js renderNav). On a
   phone, a row of sticky tabs under the site bar that scrolls sideways inside itself, never the page; on a wide screen, a
   sticky column on the left of the result. Every tab is a 44 px tap. */
.reportnav { position: sticky; top: 64px; z-index: 18; margin: 0 0 12px; padding: 6px 0;
             background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.reportnav ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.reportnav li { flex: 0 0 auto; }
.reportnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
               border-radius: 999px; color: var(--ink); font-size: 14px; text-decoration: none; white-space: nowrap; }
.reportnav a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.agentlist { margin: 4px 0 8px; padding-left: 18px; }
/* Only a result with a nav takes the column layout (renderNav sets .has-nav): /agent-readiness and /webmcp load this
   file with a #result and no nav, and a nav with nothing in it is hidden. */
@media (min-width: 1100px) {
  #result.has-nav:not(.hidden) { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 24px; align-items: start; }
  #result.has-nav > * { grid-column: 2; }
  #result.has-nav > .reportnav { grid-column: 1; grid-row: 1 / span 12; top: 88px; padding: 0; border: 0; background: transparent; }
  .reportnav ol { flex-direction: column; overflow: visible; }
  .reportnav a { min-height: 36px; border: 0; border-radius: 6px; }
}
