/* Dashboard organization stays local to this page: the shell, tokens and
   task/audit/query workflows keep their existing components. */
.pg-overview .ov-dashboard-tabs{display:flex;gap:24px;border-bottom:1px solid var(--rf-line);margin:0 0 24px;overflow-x:auto;scrollbar-width:thin}
.pg-overview .ov-dashboard-tabs [role="tab"]{position:relative;flex:none;padding:13px 0 15px;border:0;border-bottom:2px solid transparent;background:none;color:var(--rf-muted);font:inherit;font-size:13px;font-weight:500;white-space:nowrap;cursor:pointer}
.pg-overview .ov-dashboard-tabs [aria-selected="true"]{color:var(--rf-indigo);border-bottom-color:var(--rf-indigo);font-weight:600}
.pg-overview .ov-dashboard-tabs [role="tab"]:focus-visible{outline:2px solid var(--rf-indigo);outline-offset:-3px;border-radius:5px}
.pg-overview #dashboard-panel:focus-visible{outline:2px solid var(--rf-indigo);outline-offset:5px;border-radius:10px}
.pg-overview .ov-dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.pg-overview .ov-dashboard-main,.pg-overview .ov-dashboard-rail{display:grid;gap:24px;min-width:0}
.pg-overview .ov-dashboard-main>.ov-next{margin-bottom:0}
.pg-overview .ov-dashboard-trend .ov2-headline{margin-top:0}
.pg-overview .ov-dashboard-grid .ov2-hero{grid-template-columns:minmax(0,1fr)}
.pg-overview .ov-dashboard-grid .ov2-hero-side{grid-template-columns:repeat(3,minmax(0,1fr));border-left:0;border-top:1px solid var(--rf-line)}
.pg-overview .ov-dashboard-grid .ov2-stat{padding:18px 20px;min-width:0}
.pg-overview .ov-dashboard-grid .ov2-stat+.ov2-stat{border-top:0;border-left:1px solid var(--rf-line)}
.pg-overview .ov-dashboard-grid .ov2-stat strong{font-size:24px}
.pg-overview .ov-dashboard-grid .ov2-stat small{font-size:11px}
.pg-overview .ov-dashboard-grid .ov2-stat p{font-size:10px;line-height:1.5}
.pg-overview .ov-dashboard-rail .ov-action-grid{grid-template-columns:minmax(0,1fr);gap:10px;padding:8px 18px 18px}
.pg-overview .ov-dashboard-rail .ov-action{min-height:76px;padding:10px;border-radius:10px}
.pg-overview .ov-dashboard-rail .ov-action-icon{width:34px;height:34px}
.pg-overview .ov-dashboard-rail .ov-action-copy strong{font-size:12px}
.pg-overview .ov-dashboard-rail .ov-action-copy small{font-size:11px}
#dashboard-findings:focus-visible{outline:2px solid var(--rf-indigo);outline-offset:5px;border-radius:10px}
.pg-overview .ov-next.is-compact>.rf-card-head{padding:20px 20px 14px;align-items:center}
.pg-overview .ov-next.is-compact>.rf-card-head h2{font-size:18px}
.pg-overview .ov-next.is-compact .ov-next-grid{grid-template-columns:minmax(0,1fr);gap:0;padding:0 20px}
.pg-overview .ov-next.is-compact .ov-next-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:12px;padding:16px 0;border:0;border-top:1px solid var(--rf-line);border-radius:0;background:none;box-shadow:none}
.pg-overview .ov-next.is-compact .ov-next-row.is-selected{background:var(--rf-soft)}
.pg-overview .ov-next-row .ov-next-number{width:26px;height:26px;border-radius:7px;font-size:11px;margin-top:1px}
.pg-overview .ov-next-row-main{min-width:0}
.pg-overview .ov-next-row-title{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.pg-overview .ov-next-row-title h3{font-size:14px;font-weight:600;line-height:1.5;margin:0;letter-spacing:-.012em}
.pg-overview .ov-next-row-title .rf-pill{font-size:10px;padding:3px 7px;min-height:20px}
.pg-overview .ov-next-row .ov-next-page{margin:4px 0 5px;font-size:11px;color:var(--rf-muted)}
.pg-overview .ov-next-row-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pg-overview .ov-next-row-meta small{font-size:10px;color:var(--rf-muted)}
.pg-overview .ov-next-row-meta .ov-next-task-label{margin:0;font-size:10px}
.pg-overview .ov-next-row>.rf-btn{align-self:center;min-height:36px;font-size:12px;white-space:nowrap}
.pg-overview .ov-next-row-evidence{margin-top:6px;font-size:11px;color:var(--rf-muted);line-height:1.7}
.pg-overview .ov-next-row-evidence summary{width:fit-content;cursor:pointer;color:var(--rf-muted);padding:2px 0}
.pg-overview .ov-next-row-evidence p{margin:6px 0;overflow-wrap:anywhere}
.pg-overview .ov-next.is-compact .ov-next-note{padding:12px 20px 16px;font-size:11px}
.pg-overview .ov-next.is-compact .ov-next-steps{grid-template-columns:minmax(0,1fr);gap:20px}
.pg-overview .cr-preview>.rf-card{overflow:hidden}
.pg-overview .cr-preview .rf-card-head{padding:20px 18px 14px;gap:12px;align-items:center}
.pg-overview .cr-preview .rf-card-head h2{font-size:17px}
.pg-overview .cr-preview-list{list-style:none;padding:0 18px;margin:0}
.pg-overview .cr-preview-list>li{border-top:1px solid var(--rf-line)}
.pg-overview .cr-preview-entry{display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;padding:16px 0;text-align:left;color:var(--rf-text);font:inherit;border:0;background:none;cursor:pointer}
.pg-overview .cr-preview-entry:hover strong{color:var(--rf-indigo)}
.pg-overview .cr-preview-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pg-overview .cr-preview-meta time{font-size:10px;color:var(--rf-muted)}
.pg-overview .cr-preview-meta .rf-pill{font-size:9px;padding:3px 6px;min-height:19px}
.pg-overview .cr-preview-entry strong{font-size:13px;font-weight:550;color:var(--rf-ink);line-height:1.5;overflow-wrap:anywhere}
.pg-overview .cr-preview-entry small{font-size:10px;color:var(--rf-muted);overflow-wrap:anywhere;line-height:1.5}
.pg-overview .cr-preview-note{margin:0;padding:12px 18px;font-size:10px;line-height:1.6;color:var(--rf-muted);background:var(--rf-soft);border-top:1px solid var(--rf-line)}
.pg-overview .cr-preview button:focus-visible,.pg-overview .ov-next-row-evidence summary:focus-visible{outline:2px solid var(--rf-indigo);outline-offset:3px}
.pg-overview .cr-entry:focus-visible{outline:2px solid var(--rf-indigo);outline-offset:5px;border-radius:8px}
@media(max-width:1180px){.pg-overview .ov-dashboard-grid{grid-template-columns:minmax(0,1fr)}.pg-overview .ov-dashboard-rail{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.pg-overview .ov-next.is-compact .ov-next-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.pg-overview .ov-dashboard-tabs{gap:22px;margin-bottom:20px}.pg-overview .ov-dashboard-tabs [role="tab"]{min-height:44px;font-size:12px}.pg-overview .ov-dashboard-grid,.pg-overview .ov-dashboard-main,.pg-overview .ov-dashboard-rail{gap:20px}.pg-overview .ov-dashboard-rail{grid-template-columns:minmax(0,1fr)}.pg-overview .ov-next.is-compact>.rf-card-head{padding:18px 16px 12px;gap:10px}.pg-overview .ov-next.is-compact .ov-next-grid{padding:0 16px}.pg-overview .ov-next.is-compact .ov-next-row{grid-template-columns:24px minmax(0,1fr);gap:10px;padding:16px 0}.pg-overview .ov-next-row>.rf-btn{grid-column:2;justify-self:start;min-height:40px;margin-top:2px}.pg-overview .ov-next-row-title h3{font-size:14px}.pg-overview .ov-next.is-compact .ov-next-note{padding:12px 16px 16px}.pg-overview .ov-next.is-compact .ov-next-steps{grid-template-columns:minmax(0,1fr)}.pg-overview .ov-dashboard-grid .ov2-stat{padding:14px 10px}.pg-overview .ov-dashboard-grid .ov2-stat strong{font-size:20px}.pg-overview .ov-dashboard-grid .ov2-hero-head{flex-direction:column}.pg-overview .ov-dashboard-section-head{align-items:flex-start}.pg-overview .ov-dashboard-tabs::-webkit-scrollbar{height:3px}}

/* Header: title, the website, where the data comes from and how fresh it is; period and refresh on the right. */
.pg-overview .ov-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:16px 24px;margin:4px 0 10px}
.pg-overview .ov-head-copy{min-width:0}
.pg-overview .ov-head h1{margin:0;color:#000;font-size:30px;font-weight:700;line-height:1.1;letter-spacing:-.035em}
.pg-overview .ov-head-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;margin:8px 0 0;color:#525252;font-size:13px}
.pg-overview .ov-head-meta>span{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.pg-overview .ov-head-meta>span+span::before{content:"";width:3px;height:3px;margin:0 12px;border-radius:50%;background:#bdbdbd}
.pg-overview .ov-head-site{color:#000;font-weight:600}.pg-overview .ov-head-site .ic{width:14px;height:14px}
.pg-overview .ov-head-fresh i{width:7px;height:7px;border-radius:50%;background:#000;box-shadow:0 0 0 3px #0000000f}
.pg-overview .ov-head-fresh.is-stale i{background:#f2b33d;box-shadow:0 0 0 3px #f2b33d33}
.pg-overview .ov-head-actions{display:flex;align-items:center;gap:10px}
.pg-overview .ov-range{display:inline-flex;gap:2px;padding:3px;border:1px solid #e5e5e5;border-radius:10px;background:#fff}
.pg-overview .ov-range button{min-width:46px;height:32px;padding:0 10px;border:0;border-radius:7px;background:none;color:#525252;font:inherit;font-size:12px;font-weight:600;letter-spacing:.02em;cursor:pointer;transition:background .15s,color .15s}
.pg-overview .ov-range button:hover{color:#000}
.pg-overview .ov-range button.is-current{background:#000;color:#fff}
.pg-overview .ov-range button:focus-visible{outline:2px solid #000;outline-offset:2px}
.pg-overview .ov-head-actions .rf-btn{height:40px}
/* The one-line summary reads as text, not as a tinted panel. */
.pg-overview .ov2-headline{margin:0 0 16px;padding:0;border:0;background:none;color:#000;font-size:14px}
/* KPI tiles answer the cursor, so it's clear they switch the chart. */
.pg-overview .ov3-kpi{transition:border-color .15s,box-shadow .15s,transform .15s}
.pg-overview .ov3-kpi.is-pick:hover{border-color:#000;transform:translateY(-1px)}
.pg-overview .ov3-kpi.is-current{border-color:#000;box-shadow:inset 0 0 0 1px #000}
@media(max-width:700px){.pg-overview .ov-head{align-items:flex-start}.pg-overview .ov-head h1{font-size:26px}.pg-overview .ov-head-actions{width:100%;justify-content:space-between}}
@media(prefers-reduced-motion:reduce){.pg-overview .ov3-kpi,.pg-overview .ov-range button{transition:none}.pg-overview .ov3-kpi.is-pick:hover{transform:none}}
@media(max-width:700px){.pg-overview .ov-head-meta{gap:4px 12px}.pg-overview .ov-head-meta>span+span::before{display:none}}

/* Quick Actions: tiles fill the card at any width. Icon, title and copy stack; the arrow sits in the foot, so nothing
   runs into the text at phone or tablet width. */
.pg-overview .ov-action-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;padding:4px 20px 20px}
.pg-overview .ov-action{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-height:0;padding:16px;min-width:0;width:100%;box-sizing:border-box}
.pg-overview .ov-action-icon{width:40px;height:40px;border-radius:10px}
.pg-overview .ov-action-copy{gap:6px}
.pg-overview .ov-action-copy strong{white-space:normal;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.pg-overview .ov-action-copy small{font-size:12.5px;line-height:1.5;overflow-wrap:anywhere}
.pg-overview .ov-action .ov-action-go{align-self:flex-end;width:auto;height:auto;padding:4px 0 0;color:var(--rf-muted)}

/* Review issues rows: the action button drops under the text on narrow screens instead of squeezing it. */
.pg-overview .ov-next.is-compact .ov-next-row{grid-template-columns:28px minmax(0,1fr) auto;align-items:start;column-gap:12px;row-gap:12px}
.pg-overview .ov-next.is-compact .ov-next-row>.rf-btn{min-width:0;max-width:100%;white-space:nowrap}
@media(min-width:701px){.pg-overview .ov-next.is-compact .ov-next-row>.rf-btn{justify-self:end}}
.pg-overview .ov-next.is-compact .ov-next-row-title{align-items:center;gap:8px 10px}
.pg-overview .ov-next.is-compact .ov-next-row-title h3{overflow-wrap:anywhere;min-width:0}
@media(max-width:640px){
  .pg-overview .ov-action-grid{grid-template-columns:minmax(0,1fr);padding:4px 16px 16px}
  .pg-overview .ov-next.is-compact .ov-next-row{grid-template-columns:28px minmax(0,1fr)}
  .pg-overview .ov-next.is-compact .ov-next-row>.rf-btn{grid-column:2;justify-self:stretch;width:100%;min-height:42px}
  .pg-overview .ov-next.is-compact .ov-next-grid{padding:0 16px}
  .pg-overview .ov-next.is-compact>.rf-card-head{padding:18px 16px 12px;flex-wrap:wrap}
}
/* What moved your traffic: one row per spike or drop, sentences built from Search Console rows. */
.pg-overview .ov-events{margin-top:20px}
.pg-overview .ov-event-list{list-style:none;margin:0;padding:0 18px 14px;display:grid;gap:12px}
.pg-overview .ov-event{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--rf-line);border-radius:10px;border-left-width:4px}
.pg-overview .ov-event.is-spike{border-left-color:#1d7a4a}
.pg-overview .ov-event.is-drop{border-left-color:#cf3d33}
.pg-overview .ov-event-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.pg-overview .ov-event-tag{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:#e3f1e8;color:#1d6b41;font-variant-numeric:tabular-nums}
.pg-overview .ov-event.is-drop .ov-event-tag{background:#fbe7e4;color:#9b2c22}
.pg-overview .ov-event p{margin:0;color:var(--rf-text);font-size:14px;line-height:1.55;max-width:90ch}
/* Wins + next actions: one balanced row (equal heights; the wins footer sits at the bottom), stacked when narrow. */
#app.rf-shell .pg-overview.ov3 .ov4-pair{align-items:stretch!important}
#app.rf-shell .pg-overview.ov3 .ov4-pair>.ov-wins{display:flex;flex-direction:column}
#app.rf-shell .pg-overview.ov3 .ov4-pair>.ov-wins .ov-wins-foot{margin-top:auto}
#app.rf-shell .pg-overview.ov3 .ov4-actions{display:flex}
#app.rf-shell .pg-overview.ov3 .ov4-actions>.ov-next{flex:1}
/* One link colour: the brand green, not the browser's default blue */
#app.rf-shell .pg-overview :is(.ov-wins,.ov-next) a:not(.rf-btn){color:var(--rf-link,#0b6b4f);text-decoration-color:currentColor;text-underline-offset:2px}
/* Next actions (2026-11-16): separate cards with a 12px gap, the number badge inside the padding on the title row,
   the button top-aligned with the title, one outline button style, a chevron disclosure, a severity dot when every
   action has the same priority. */
#app.rf-shell .pg-overview .ov-next.is-compact .ov-next-grid{display:grid;gap:12px!important;padding:0 20px!important}
#app.rf-shell .pg-overview .ov-next.is-compact .ov-next-row{grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:14px;padding:16px!important;border:1px solid var(--rf-line,#e5e7eb)!important;border-radius:12px!important}
#app.rf-shell .pg-overview .ov-next-row .ov-next-number{display:grid;place-items:center;width:28px;height:28px;margin:0!important;border-radius:8px}
#app.rf-shell .pg-overview .ov-next-row-title{align-items:center;min-height:28px}
#app.rf-shell .pg-overview .ov-next-row>.rf-btn{align-self:start!important;margin:0}
.pg-overview .ov-next-level{display:inline-flex;align-items:center;gap:6px;color:var(--rf-muted,#5b6470);font-size:11.5px;font-weight:600}
.pg-overview .ov-next-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9ca3af;flex:none}
.pg-overview .is-high>.ov-next-dot{background:#d97706}.pg-overview .is-opportunity>.ov-next-dot{background:#16a34a}
.pg-overview .ov-next-row-evidence summary{display:inline-flex;align-items:center;gap:7px;list-style:none;font-weight:600;color:var(--rf-text,#374151)}
.pg-overview .ov-next-row-evidence summary::-webkit-details-marker{display:none}
.pg-overview .ov-next-row-evidence summary::before{content:"";width:6px;height:6px;margin-left:2px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .2s ease}
.pg-overview .ov-next-row-evidence[open] summary::before{transform:rotate(45deg)}
@media (prefers-reduced-motion:reduce){.pg-overview .ov-next-row-evidence summary::before{transition:none}}

/* Wins: paths in the link green, the primary in the brand's dark green */
#app.rf-shell .pg-overview .ov-wins .ov-win-main small{color:var(--rf-link,#0b6b4f)}
#app.rf-shell .pg-overview .ov-wins-foot .rf-btn.dark{background:#0f4d3c!important;border-color:#0f4d3c!important;color:#fff!important}
#app.rf-shell .pg-overview .ov-wins-foot .rf-btn.dark:hover{background:#0b3d30!important}
/* The spot illustration fills the wins card's spare height when it sits beside a taller card; hidden when stacked. */
.pg-overview .ov-wins-art{display:none;margin:0}
#app.rf-shell .pg-overview.ov3 .ov4-pair>.ov-wins .ov-wins-art{display:grid;flex:1;place-items:center;min-height:0}
#app.rf-shell .pg-overview.ov3 .ov4-pair>.ov-wins .ov-wins-art img{width:min(180px,60%);height:auto}
@media (max-width:900px){#app.rf-shell .pg-overview.ov3 .ov4-pair>.ov-wins .ov-wins-art{display:none}}
/* No empty band under the tabs when the first block is the headline (live traffic hidden without GA4) */
.pg-overview .ov-dashboard-tabs+div>.ov2-headline:first-child{margin-top:0}
