/* Dashboard only: operational hierarchy in the existing Big Detail Page brand. */
.ad-dashboard { max-width:1180px; margin:0 auto; padding:32px 28px 64px; color:var(--bdp-ink); }
.bdp-app:has(.ad-dashboard) .bdp-next-step { display:none; }
.ad-dashboard .ad-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.ad-dashboard .ad-heading p { max-width:620px; margin:10px 0 0; color:var(--bdp-muted); font-size:15px; line-height:1.6; }
.ad-dashboard .ad-heading .ad-scope { display:inline-flex; align-items:center; gap:7px; margin:0 0 8px; padding:4px 10px; background:#e7f1e9; border-radius:6px; color:var(--bdp-forest); font-size:12px; font-weight:700; }
.ad-dashboard .ad-title { margin:0; font-size:34px; line-height:1.2; letter-spacing:-.035em; }
.ad-dashboard .ad-primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex-shrink:0; padding:11px 16px; border-radius:8px; background:var(--bdp-forest); color:white; font-size:14px; font-weight:700; text-decoration:none; }
.ad-dashboard .ad-section-nav { display:flex; flex-wrap:wrap; gap:5px 24px; border-bottom:1px solid #d8e2db; margin-bottom:24px; }
.ad-dashboard .ad-section-nav a { padding:10px 0 12px; color:var(--bdp-muted); font-size:14px; text-decoration:none; border-bottom:2px solid transparent; }
.ad-dashboard .ad-section-nav a:hover,.ad-dashboard .ad-section-nav a[aria-current=page] { color:var(--bdp-forest); border-bottom-color:var(--bdp-forest); }
.ad-dashboard .ad-overview { display:flex; align-items:center; justify-content:space-between; gap:28px; margin:0 0 28px; }
.ad-dashboard .ad-overview dl { display:flex; gap:48px; margin:0; flex-shrink:0; }
.ad-dashboard dt { color:var(--bdp-muted); font-size:12px; }
.ad-dashboard dd { margin:4px 0 0; font-size:23px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1.25; }
.ad-dashboard .ad-overview > p { max-width:300px; color:var(--bdp-muted); font-size:12px; line-height:1.6; }
.ad-dashboard .ad-management-grid { display:grid; grid-template-columns:1.25fr 1fr; gap:22px; margin-bottom:22px; }
.ad-dashboard .ad-panel { min-width:0; padding:24px; border:1px solid var(--bdp-line); border-radius:12px; background:white; scroll-margin-top:24px; }
.ad-dashboard .ad-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 20px; }
.ad-dashboard .ad-panel-heading h2 { margin:0; font-size:18px; line-height:1.35; letter-spacing:-.02em; }
.ad-dashboard .ad-panel-heading p,.ad-dashboard .ad-section-description { margin:5px 0 0; color:var(--bdp-muted); font-size:13px; line-height:1.6; }
.ad-dashboard .ad-panel-heading > span { font-size:11px; color:var(--bdp-muted); }
.ad-dashboard .ad-operations { border-top:3px solid var(--bdp-forest); padding-top:22px; }
.ad-dashboard .ad-usage { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.ad-dashboard .ad-usage p { margin:0 0 7px; font-size:13px; }
.ad-dashboard .ad-usage strong { display:block; font-size:28px; line-height:1.2; font-variant-numeric:tabular-nums; }
.ad-dashboard .ad-usage span { display:block; margin-top:4px; color:var(--bdp-muted); font-size:11px; }
.ad-dashboard .ad-note { margin:15px 0 20px; color:var(--bdp-muted); font-size:11px; }
.ad-dashboard .ad-states-title { margin:0 0 9px; font-size:12px; font-weight:700; }
.ad-dashboard .ad-response-states { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; padding:16px 0; margin:0; border-top:1px solid var(--bdp-line); border-bottom:1px solid var(--bdp-line); }
.ad-dashboard .ad-response-states dd { font-size:19px; }
.ad-dashboard .ad-failed-count { color:#9d4428; }
.ad-dashboard .ad-operation-links { display:flex; flex-wrap:wrap; gap:12px 24px; margin-top:20px; }
.ad-dashboard .ad-text-link { color:var(--bdp-forest); font-size:13px; font-weight:700; text-underline-offset:4px; text-decoration:underline; }
.ad-dashboard .ad-destination { display:grid; grid-template-columns:40px minmax(0,1fr) 17px; gap:13px; align-items:center; padding:20px 0; text-decoration:none; color:inherit; }
.ad-dashboard .ad-destination + .ad-destination { border-top:1px solid var(--bdp-line); }
.ad-dashboard .ad-destination-icon { display:grid; place-items:center; height:40px; border-radius:8px; background:var(--bdp-canvas); color:var(--bdp-forest); }
.ad-dashboard .ad-destination strong { display:block; font-size:14px; }
.ad-dashboard .ad-destination small { display:block; margin-top:4px; color:var(--bdp-muted); font-size:12px; line-height:1.6; }
.ad-dashboard .ad-destination:hover strong { text-decoration:underline; text-underline-offset:4px; }
.ad-dashboard .ad-accounts { margin-bottom:22px; }
.ad-dashboard .ad-table-scroll { overflow-x:auto; }
.ad-dashboard .ad-table { width:100%; text-align:left; border-collapse:collapse; }
.ad-dashboard .ad-table th,.ad-dashboard .ad-table td { padding:14px 12px; font-size:12px; line-height:1.6; border-bottom:1px solid var(--bdp-line); overflow-wrap:anywhere; }
.ad-dashboard .ad-table thead th { color:var(--bdp-muted); font-weight:400; padding-top:0; }
.ad-dashboard .ad-table tbody th { color:var(--bdp-ink); font-weight:700; }
.ad-dashboard .ad-table th:first-child { padding-left:0; }
.ad-dashboard .ad-table td:last-child { padding-right:0; text-align:right; }
.ad-dashboard .ad-table tr:last-child > * { border-bottom:0; }
.ad-dashboard .ad-empty { color:var(--bdp-muted); font-size:12px; line-height:1.6; margin:16px 0 0; }
.ad-dashboard .ad-empty-account { padding:24px; text-align:center; background:var(--bdp-canvas); border-radius:8px; }
.ad-dashboard .ad-empty-account > svg { margin:0 auto 10px; color:var(--bdp-forest); }
.ad-dashboard .ad-empty-account h3 { font-size:15px; font-weight:700; margin:0 0 6px; }
.ad-dashboard .ad-empty-account p { margin:0 0 10px; color:var(--bdp-muted); font-size:13px; }
.ad-dashboard .ad-quality-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.ad-dashboard .ad-quality-link { display:block; padding:0 22px; color:inherit; text-decoration:none; }
.ad-dashboard .ad-quality-link:first-child { padding-left:0; }
.ad-dashboard .ad-quality-link:last-child { padding-right:0; }
.ad-dashboard .ad-quality-link + .ad-quality-link { border-left:1px solid var(--bdp-line); }
.ad-dashboard .ad-quality-link > svg { color:var(--bdp-forest); }
.ad-dashboard .ad-quality-link h3 { font-size:15px; font-weight:700; margin:14px 0 6px; }
.ad-dashboard .ad-quality-link p { margin:0; font-size:12px; color:var(--bdp-muted); line-height:1.65; max-width:36ch; }
.ad-dashboard .ad-quality-link span { display:block; margin-top:14px; color:var(--bdp-forest); font-size:12px; font-weight:700; }
.ad-dashboard .ad-quality-link:hover h3 { text-decoration:underline; text-underline-offset:4px; }
.ad-dashboard :is(a,[tabindex]):focus-visible { outline:3px solid var(--bdp-forest); outline-offset:5px; }
.ad-dashboard .ad-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media(max-width:850px) {
  .ad-dashboard .ad-management-grid { grid-template-columns:1fr; }
  .ad-dashboard .ad-overview { align-items:flex-start; flex-direction:column; gap:12px; }
  .ad-dashboard .ad-overview > p { max-width:none; margin:0; }
}
@media(max-width:550px) {
  .ad-dashboard { padding:24px 18px 40px; }
  .ad-dashboard .ad-heading { align-items:flex-start; flex-direction:column; gap:16px; }
  .ad-dashboard .ad-title { font-size:29px; }
  .ad-dashboard .ad-heading p { font-size:14px; }
  .ad-dashboard .ad-section-nav { gap:5px 18px; }
  .ad-dashboard .ad-section-nav a { font-size:13px; }
  .ad-dashboard .ad-overview dl { width:100%; gap:12px; justify-content:space-between; }
  .ad-dashboard .ad-overview dt { font-size:11px; }
  .ad-dashboard .ad-overview dd { font-size:22px; }
  .ad-dashboard .ad-panel { padding:20px 16px; }
  .ad-dashboard .ad-panel-heading { gap:12px; align-items:flex-start; }
  .ad-dashboard .ad-panel-heading h2 { font-size:17px; }
  .ad-dashboard .ad-panel-heading .ad-text-link { max-width:90px; flex-shrink:0; }
  .ad-dashboard .ad-panel-heading > span { display:none; }
  .ad-dashboard .ad-quality-grid { grid-template-columns:1fr; }
  .ad-dashboard .ad-quality-link { padding:20px 0; }
  .ad-dashboard .ad-quality-link:first-child { padding-top:0; }
  .ad-dashboard .ad-quality-link:last-child { padding-bottom:0; }
  .ad-dashboard .ad-quality-link + .ad-quality-link { border-left:0; border-top:1px solid var(--bdp-line); }
  .ad-dashboard .ad-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .ad-dashboard .ad-table tbody { display:block; }
  .ad-dashboard .ad-table tbody tr { display:grid; grid-template-columns:1fr 1fr; padding:15px 0; border-top:1px solid var(--bdp-line); }
  .ad-dashboard .ad-table tbody tr:first-child { border-top:0; padding-top:0; }
  .ad-dashboard .ad-table tbody tr:last-child { padding-bottom:0; }
  .ad-dashboard .ad-table tbody th { grid-column:1/-1; padding:0 0 8px; font-size:14px; }
  .ad-dashboard .ad-table tbody td { border:0; padding:6px 0; }
  .ad-dashboard .ad-table td[data-label="Owner"] { grid-column:1/-1; }
  .ad-dashboard .ad-table td[data-label]::before { content:attr(data-label); display:block; color:var(--bdp-muted); font-size:11px; }
  .ad-dashboard .ad-table td:last-child { grid-column:1/-1; text-align:left; padding-bottom:0; }
}
