/* Static agency profile page (/agencies/<slug>, built by scripts/agency-pages.mjs). Reuses the drawer's
   chips and list styles from agencies.css; UI scale tokens (ui-scale.css): 4px grid, compact type. */
body.compact-platform main.page.agency-page { max-width: var(--ui-page-max-read); }
.agency-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-crumbs a { color: var(--brand); }
body.ui-scale .agency-page h1 { margin: 0; font-size: var(--ui-title-size); line-height: var(--ui-title-lh); }
.agency-page .agency-page-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0 0; }
.agency-page .agency-drawer-links { gap: 8px 12px; margin-top: 8px; }
.agency-page-lead { margin: 8px 0 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--muted); }
.agency-page-section { border-bottom: 1px solid var(--line); padding: 12px 0 4px; }
body.ui-scale .agency-page-section h2, body.ui-scale .agency-page-peers h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: var(--ui-h2-size); line-height: var(--ui-h2-lh); }
.agency-page-section dl { margin: 0 0 8px; }
.agency-page-section dl > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 12px; padding: 4px 0; }
.agency-page-section dt { padding-top: 2px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.agency-page-section dd { margin: 0; font-size: 14px; line-height: 20px; white-space: pre-line; overflow-wrap: anywhere; }
.agency-page-section dd a { color: var(--brand); overflow-wrap: anywhere; }
.agency-page-section dd .agency-chip { height: 20px; margin-right: 4px; vertical-align: 1px; }
.agency-page-peers { padding: 12px 0; border-bottom: 1px solid var(--line); }
.agency-page-peers ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px 16px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.agency-page-peers li a { font-weight: 600; color: var(--brand); }
.agency-page-peers li span { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-page-peers p { margin: 0; }
.agency-page .agency-page-all { display: inline-flex; align-items: center; min-height: var(--ui-control-h); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--ui-radius-control);
  background: var(--panel); color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: none; }
.agency-page .agency-drawer-foot { padding: 12px 0 0; border-top: 0; }
body.ui-scale main.agency-page :is(p, dd) time { font: inherit; }
@media (max-width: 640px) {
  .agency-page-section dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 8px 0; border-top: 1px solid var(--line); }
  .agency-crumbs a { display: inline-flex; align-items: center; min-height: 32px; }
  .agency-page .agency-drawer-links a, .agency-page-peers li a { display: inline-flex; align-items: center; min-height: 44px; }
}
.official-alert-list { margin: 0 0 8px; padding: 0; list-style: none; }
.official-alert-list li { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 0 12px; padding: 4px 0; font-size: 14px; line-height: 20px; }
.official-alert-list time { grid-row: span 2; font-size: 12px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.official-alert-list a { color: var(--brand); overflow-wrap: anywhere; }
.official-alert-source { font-size: 12px; line-height: 16px; color: var(--muted); }
body.ui-scale main.agency-page .official-alert-list time { font: inherit; font-size: 12px; }
@media (max-width: 600px) { .official-alert-list li { grid-template-columns: 1fr; } .official-alert-list time { grid-row: auto; } }

/* Trust components and live sections (docs/agency-directory.md#trust-components). */
.agency-status { margin: 8px 0 0; padding: 0 0 12px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--muted); }
.agency-status a, .agency-meta a { color: var(--brand); }
.agency-meta { margin: 0 0 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-jumps { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); background: var(--bg, var(--panel)); }
.agency-jumps a { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--ui-radius-pill); color: var(--brand); font-size: 12px; font-weight: 600; text-decoration: none; }
.agency-jumps a:hover { background: var(--brand-soft); }
.agency-page :is(.agency-jumps a, .agency-tab, .agency-more, .agency-impact, .agency-open-questions summary, .agency-fold summary):focus-visible { outline: var(--ui-focus-ring, 2px solid var(--brand)); outline-offset: 2px; }
.agency-cite { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-cite a { margin-right: 8px; color: var(--brand); font-family: var(--ui-font-mono, monospace); font-size: 12px; }

.agency-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.agency-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--ui-radius-card); background: var(--panel); }
.agency-tile-label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.agency-tile-value { font-size: 16px; line-height: 24px; }
.agency-tile-value time { font: inherit; }
.agency-tile-note { font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-tile.is-unknown .agency-tile-value { color: var(--muted); font-weight: 600; }

.agency-clock-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 20px; }
.agency-clock-table :is(th, td) { padding: 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.agency-clock-table thead th { border-top: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-clock-table tbody th { width: 22%; font-weight: 600; }
.agency-clock-table td strong { display: block; font-size: 14px; }
.agency-clock-note { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-clock-table td.is-unknown strong { color: var(--muted); }
body.ui-scale .agency-clocks h3 { margin: 12px 0 4px; font-size: 14px; line-height: 20px; }
.agency-clock-extras { margin: 0 0 8px; padding: 0; list-style: none; }
.agency-clock-extras li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.agency-clock-extras .agency-cite { grid-column: 1 / -1; margin-top: 0; }

.agency-open-questions summary { display: flex; align-items: center; min-height: 32px; cursor: pointer; list-style: none; }
.agency-open-questions summary::-webkit-details-marker { display: none; }
.agency-open-questions summary::before { content: "▸"; margin-right: 8px; color: var(--muted); }
.agency-open-questions[open] summary::before { content: "▾"; }
body.ui-scale .agency-open-questions summary h2 { margin: 0; }
.agency-dt-sub { display: block; font-weight: 400; }

.agency-tabs { display: flex; gap: 4px; margin: 0 0 8px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.agency-tab { display: inline-flex; align-items: center; gap: 6px; height: var(--ui-tab-h, 36px); padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.agency-tab[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--brand); }
.agency-tab-n { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--ui-radius-pill); background: var(--brand-soft); font-size: 12px; }
.agency-new { display: inline-flex; align-items: center; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: var(--ui-radius-pill); background: var(--brand); color: var(--panel); font-size: 12px; font-weight: 600; }
.agency-week-list, .agency-cal-list { margin: 0 0 8px; padding: 0; list-style: none; }
.agency-week-list li, .agency-cal-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 0 12px; align-items: start; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.agency-week-list time, .agency-cal-list time { font: inherit; font-size: 12px; color: var(--muted); white-space: nowrap; }
.agency-cal-in { display: block; font-size: 12px; line-height: 16px; }
.agency-week-main { display: flex; flex-direction: column; min-width: 0; }
.agency-week-main a { color: var(--brand); overflow-wrap: anywhere; }
.agency-week-src { font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-impact { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--ui-radius-control); background: var(--panel); color: var(--brand); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.agency-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--ui-radius-pill); background: var(--brand-soft); font-size: 12px; white-space: nowrap; }
.agency-empty { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.agency-more { height: 32px; margin: 0 0 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--ui-radius-control); background: var(--panel); color: var(--brand); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
body.ui-scale .agency-cal h3 { margin: 8px 0 4px; font-size: 12px; line-height: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: var(--ui-tracking-caps, .04em); }

@media (max-width: 640px) {
  .agency-jumps { position: static; }
  .agency-jumps a, .agency-tab, .agency-impact, .agency-more { min-height: 44px; }
  .agency-open-questions summary { min-height: 44px; }
  .agency-clock-table thead { display: none; }
  .agency-clock-table, .agency-clock-table tbody, .agency-clock-table tr, .agency-clock-table :is(th, td) { display: block; width: auto; }
  .agency-clock-table tr { padding: 8px 0; border-top: 1px solid var(--line); }
  .agency-clock-table :is(th, td) { padding: 4px 0; border-top: 0; }
  .agency-clock-table tbody th { width: auto; }
  .agency-clock-table td::before { content: attr(data-col); display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
  .agency-week-list li, .agency-cal-list li { grid-template-columns: 1fr; gap: 4px; padding: 8px 0; }
  .agency-impact { justify-self: start; }
}

/* Design review fixes (16 Nov 2026). */
body.ui-scale main .agency-tile-value time { font: inherit; }
.agency-tile { padding: 12px; }
.agency-impact { height: auto; min-height: var(--ui-control-h, 32px); padding: 0 12px; }
.agency-pill { justify-self: start; }
.agency-cite a { white-space: nowrap; font-size: 12px; font-weight: 400; }
.agency-tab { gap: 4px; }
.agency-tab-n, .agency-new { padding: 0 8px; }
.agency-tabs { scroll-padding-inline: 12px; }
body.ui-scale main .agency-clock-table tbody th { font-size: 13px; line-height: 20px; color: var(--text); }
.agency-clock-table :is(th, td):first-child { padding-left: 0; }
@media (max-width: 640px) {
  .agency-jumps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .agency-jumps a { flex: none; }
  .agency-week-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .agency-week-list li > time, .agency-week-list li > .agency-week-main { grid-column: 1; }
  .agency-week-list li > .agency-impact { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .agency-clock-extras li { grid-template-columns: 1fr; }
}

/* Phase 2: routes, work tools, rule changes, E2B specifics, source documents. */
@media (min-width: 641px) { .agency-route-table tbody th { width: 30%; } }
.agency-fold summary { display: flex; align-items: center; min-height: 32px; cursor: pointer; list-style: none; }
.agency-fold summary::-webkit-details-marker { display: none; }
.agency-fold summary::before { content: "▸"; margin-right: 8px; color: var(--muted); }
.agency-fold[open] summary::before { content: "▾"; }
body.ui-scale .agency-fold summary h2 { margin: 0; }
body.ui-scale .agency-fold h3, body.ui-scale .agency-tool h3 { margin: 8px 0 4px; font-size: 14px; line-height: 20px; }
.agency-change-list, .agency-doc-list, .agency-rule-list { margin: 0 0 8px; padding: 0; list-style: none; }
.agency-change-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.agency-change-list time { font: inherit; font-size: 12px; color: var(--muted); }
.agency-doc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: start; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.agency-rule-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.agency-rule-list a { color: var(--brand); }
.agency-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.agency-tool { padding: 12px; border: 1px solid var(--line); border-radius: var(--ui-radius-card); background: var(--panel); }
.agency-tool-row { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.agency-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 160px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.agency-field :is(input, select) { height: var(--ui-control-h, 32px); max-width: 100%; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--ui-radius-control); background: var(--panel); color: inherit; font: inherit; font-size: 13px; font-weight: 400; }
.agency-tool-out { margin-top: 8px; }
.agency-tool-result { margin: 0 0 4px; font-size: 14px; line-height: 20px; }
.agency-quote { margin: 4px 0; padding: 4px 8px; border-left: 2px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); }
@media (max-width: 640px) {
  .agency-fold summary { min-height: 44px; }
  .agency-field :is(input, select) { height: 44px; }
  .agency-change-list li { grid-template-columns: 1fr; }
}

/* Phase 2 design review fixes. */
body.compact-platform main .agency-field :is(input, select) { min-height: var(--ui-control-h, 32px); padding: 0 8px; }
.agency-field select { text-overflow: ellipsis; }
.agency-per-table caption { text-align: left; font-size: 12px; line-height: 16px; color: var(--muted); padding-bottom: 4px; }
@media (max-width: 640px) {
  body.compact-platform main .agency-field :is(input, select) { min-height: 44px; }
  .agency-per-table { display: table; }
  .agency-per-table thead { display: table-header-group; }
  .agency-per-table tbody { display: table-row-group; }
  .agency-per-table tr { display: table-row; }
  .agency-per-table :is(th, td) { display: table-cell; padding: 4px 8px 4px 0; }
  .agency-per-table td::before { content: none; }
  .agency-rule-list li, .agency-doc-list li { padding: 8px 0; }
  .agency-rule-list a, .agency-doc-list a { display: inline-block; min-height: 24px; }
}

/* Impact card popup (agency-live.js openImpact): the Home impact card in a dialog, compact, full screen on phones. */
.agency-impact-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; border: 1px solid var(--line); border-radius: var(--ui-radius-card, 8px); background: var(--panel); color: var(--ink); box-shadow: 0 12px 40px rgb(0 0 0 / .25); }
.agency-impact-dialog::backdrop { background: rgb(0 0 0 / .45); }
.agency-impact-dialog .aid-head { position: sticky; top: 0; z-index: 1; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.agency-impact-dialog .aid-head h2 { margin: 4px 0 0; font-size: 16px; line-height: 24px; }
.agency-impact-dialog .aid-head h2 a { color: var(--ink); }
.agency-impact-dialog .aid-close { flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: var(--ui-radius-control); background: var(--panel); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.agency-impact-dialog .aid-close:focus-visible { outline: var(--ui-focus-ring, 2px solid var(--brand)); outline-offset: 2px; }
.agency-impact-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.agency-impact-dialog .aid-head, .agency-impact-dialog .aid-foot { flex: none; }
.agency-impact-dialog .aid-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px; }
html:has(.agency-impact-dialog[open]) { overflow: hidden; }
.agency-impact-dialog .aid-foot { margin: 0; padding: 8px 16px 12px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .agency-impact-dialog { inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  /* The Ask PV Info button covers rule ids and clocks on phones; the page has its own links to rules. */
  body:has(.agency-page) :is(.chat-fab, .chat-teaser) { display: none; }
  .agency-impact-dialog .aid-close { width: 44px; height: 44px; }
}

/* "Your case at <agency>" (agency-visual-lib.js renders it, agency-visual.js makes the questions live): three questions,
   one answer card, and four plain cards folded under "At a glance". Lanes are named in text, colour only repeats them. */
.agency-case { --yc-post: #0f7286; --yc-trial: #6b4bb8; --yc-warn: #b45309; --yc-warn-soft: #fdf3e7; }
:where([data-theme="dark"]) .agency-case { --yc-post: #5cc0d2; --yc-trial: #b49cf0; --yc-warn: #fbbf24; --yc-warn-soft: #2e2615; }
@media (prefers-color-scheme: dark) { :where(:not([data-theme])) .agency-case { --yc-post: #5cc0d2; --yc-trial: #b49cf0; --yc-warn: #fbbf24; --yc-warn-soft: #2e2615; } }
.yc-form { display: grid; gap: 8px; margin: 0 0 12px; }
.yc-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.yc-form legend { padding: 0 0 4px; font-size: 13px; line-height: 18px; font-weight: 600; }
.yc-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.yc-seg label { position: relative; }
.yc-seg input { position: absolute; inset: 0; opacity: 0; }
.yc-seg span { display: inline-flex; align-items: center; min-height: var(--ui-control-h, 32px); padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--ui-radius-control); background: var(--panel); font-size: 13px; line-height: 18px; cursor: pointer; }
.yc-seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 600; }
.yc-seg input:focus-visible + span { outline: var(--ui-focus-ring, 2px solid var(--brand)); outline-offset: 2px; }
.yc-card { padding: 12px 16px; border: 2px solid var(--brand); border-radius: var(--ui-radius-card); background: var(--brand-soft); }
.yc-card.is-gap { border-style: dashed; border-color: var(--yc-warn); background: var(--yc-warn-soft); }
.agency-case :is(.yc-for, .yc-big, .yc-status, .yc-watch, .yc-more) { margin: 0; }
.yc-for { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
body.ui-scale .agency-case .yc-big { font-size: var(--ui-kpi-size, 24px); line-height: var(--ui-kpi-lh, 32px); font-weight: 700; }
.yc-status { font-size: 13px; line-height: 20px; color: var(--muted); }
.agency-case .yc-watch { margin-top: 8px; padding: 4px 8px; border-left: 4px solid var(--yc-warn); background: var(--panel); font-size: 13px; line-height: 20px; }
.agency-page-section .yc-facts { margin: 8px 0 0; }
.agency-page-section .yc-facts > div { grid-template-columns: 96px minmax(0, 1fr); padding: 4px 0; border-top: 1px solid var(--line); }
.agency-page-section .yc-facts dd { font-size: 13px; line-height: 20px; white-space: normal; }
.yc-mono { font-family: var(--ui-font-mono, monospace); font-size: 12px; overflow-wrap: anywhere; }
.agency-case .yc-more { margin-top: 8px; font-size: 13px; }
.yc-more a, .yc-thin a { color: var(--brand); }
.yc-thin { margin: 8px 0 0; padding: 4px 8px; border-left: 4px solid var(--yc-warn); font-size: 13px; line-height: 20px; }
.yc-glances { margin: 12px 0 8px; }
.yc-glances summary { display: flex; align-items: center; min-height: var(--ui-control-h, 32px); font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; }
.yc-glances summary:focus-visible { outline: var(--ui-focus-ring, 2px solid var(--brand)); outline-offset: 2px; }
.yc-glances ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.yc-glance { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 8px 12px; border: 1px solid var(--line); border-top: 4px solid var(--yc-c, var(--brand)); border-radius: var(--ui-radius-card); background: var(--panel); color: var(--ink); text-decoration: none; }
.yc-glance:hover { background: var(--brand-soft); }
.yc-glance:focus-visible { outline: var(--ui-focus-ring, 2px solid var(--brand)); outline-offset: 2px; }
.yc-glance.yc-post { --yc-c: var(--yc-post); } .yc-glance.yc-trial { --yc-c: var(--yc-trial); } .yc-glance.is-gap { --yc-c: var(--yc-warn); border-top-style: dashed; }
.yc-g-for { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.yc-g-big { font-size: 16px; line-height: 24px; font-weight: 700; }
.yc-g-to { font-size: 13px; line-height: 18px; font-weight: 600; }
.yc-g-note { font-size: 12px; line-height: 16px; color: var(--muted); }
.yc-glance .yc-mono { margin-top: auto; color: var(--muted); }
@media (max-width: 640px) {
  .yc-seg span { min-height: var(--ui-touch-h, 44px); }
  .agency-page-section .yc-facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
}

/* Public safety data dashboards (agency-dashboards-lib.js): official adverse-event databases for the agency's country. */
.agency-dash-list { list-style: none; margin: 0; padding: 0; }
.agency-dash-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.agency-dash-list li:first-child { border-top: 0; }
.agency-dash-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.agency-dash-name { font-weight: 600; overflow-wrap: anywhere; }
.agency-dash-name::after { content: "\2197"; margin-left: 4px; font-size: 12px; color: var(--muted); }
.agency-dash-owner { font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-dash-checked { grid-column: 2; grid-row: 1; font-size: 12px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.agency-dash-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; }
.agency-dash-note { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.agency-chip-scope-out { height: 20px; background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.agency-dash-list li.is-out-of-scope .agency-dash-name { font-weight: 400; }
.agency-page-section h3.agency-dash-sub { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ui-tracking-caps, .04em); color: var(--muted); }
.agency-dash-sub + .agency-dash-list li:first-child { border-top: 0; }
.agency-dash-none { margin: 0; padding: 8px 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.agency-dash-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); }
.agency-dash-foot a { font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .agency-dash-list li { grid-template-columns: minmax(0, 1fr); }
  .agency-dash-checked { grid-column: 1; grid-row: auto; line-height: 16px; }
  .agency-dash-head { flex-direction: column; gap: 0; }
  .agency-dash-name { display: block; padding: 10px 0 2px; }
  .agency-dash-foot a { display: inline-flex; align-items: center; min-height: 44px; }
}
