:root {
  --pe-primary: #2aa7a1;
  --pe-primary-strong: #238f8a;
  --pe-secondary: #3fb6af;
  --pe-heading: #2f3e9e;
  --pe-accent: #e45757;
  --pe-bg: #f6fafb;
  --pe-bg-soft: #eef7f8;
  --pe-card: #ffffff;
  --pe-border: #e6eef1;
  --pe-text: #1f2d3d;
  --pe-muted: #6b7c93;
  --pe-success: #1f8a64;
  --pe-warning: #d7a02b;
  --pe-danger: #d65252;
  --pe-shadow: 0 18px 45px rgba(22, 44, 66, 0.08);
  --pe-shadow-soft: 0 10px 24px rgba(20, 43, 64, 0.06);
  --pe-radius-lg: 20px;
  --pe-radius-md: 14px;
  --pe-radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.pe-body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pe-text);
  background:
    radial-gradient(circle at top left, rgba(47, 62, 158, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(42, 167, 161, 0.1), transparent 24%),
    linear-gradient(180deg, #fbfeff 0%, var(--pe-bg) 38%, #f3f9fb 100%);
}

a {
  color: var(--pe-primary-strong);
  text-decoration: none;
}

a:hover {
  color: var(--pe-primary);
}

code {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(47, 62, 158, 0.06);
  color: var(--pe-heading);
}

.pe-shell {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.pe-menu-shell {
  max-width: 1240px;
}

.pe-surface,
.panel,
.pe-header,
.pe-hero,
.detail-header,
.empty-state {
  background: var(--pe-card);
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-lg);
  box-shadow: var(--pe-shadow);
}

.pe-topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(230, 238, 241, 0.92);
  border-radius: 16px;
  backdrop-filter: blur(18px);
  box-shadow: var(--pe-shadow-soft);
}

.topbar-brand,
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-brand strong {
  font-size: 1rem;
  color: var(--pe-heading);
}

.topbar-mark,
.brand-mark,
.empty-state-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--pe-primary), var(--pe-secondary));
  box-shadow: 0 12px 22px rgba(42, 167, 161, 0.26);
}

.topbar-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.brand-mark,
.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  font-size: 1.3rem;
}

.topbar-actions,
.header-actions,
.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-link,
.ghost-button,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.topbar-link,
.ghost-button {
  color: var(--pe-text);
  background: #fff;
  border: 1px solid var(--pe-border);
}

.topbar-link:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(42, 167, 161, 0.35);
  box-shadow: var(--pe-shadow-soft);
}

.cta-button {
  border: 1px solid transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--pe-primary), var(--pe-secondary));
  box-shadow: 0 14px 24px rgba(42, 167, 161, 0.24);
  cursor: pointer;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--pe-primary-strong), var(--pe-primary));
}

.cta-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.eyebrow,
.metric-label,
.detail-kicker,
.meta-label,
.highlight-label,
.label {
  margin: 0;
  color: var(--pe-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
}

.pe-hero,
.pe-header,
.panel,
.detail-header,
.empty-state {
  padding: 24px;
  margin-bottom: 20px;
}

.pe-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.pe-hero h1,
.pe-header h1,
.panel h2,
.panel h3,
.detail-header h1 {
  margin: 6px 0 0;
  color: var(--pe-heading);
  letter-spacing: -0.03em;
}

.pe-hero h1,
.pe-header h1,
.detail-header h1 {
  font-size: clamp(1.9rem, 2.2vw, 2.55rem);
}

.pe-header {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr) minmax(260px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.header-primary,
.header-meta,
.header-highlight {
  min-width: 0;
}

.header-primary {
  display: grid;
  gap: 18px;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-pill,
.metric-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(42, 167, 161, 0.08);
  color: var(--pe-primary-strong);
  font-size: 0.82rem;
  font-weight: 600;
}

.metric-chip {
  background: rgba(47, 62, 158, 0.08);
  color: var(--pe-heading);
}

.header-highlight {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(42, 167, 161, 0.16);
  background:
    radial-gradient(circle at top right, rgba(42, 167, 161, 0.1), transparent 38%),
    linear-gradient(180deg, #fcffff 0%, #f4fbfc 100%);
}

.highlight-value {
  display: block;
  margin: 6px 0 4px;
  font-size: clamp(1.7rem, 1.95vw, 2.35rem);
  line-height: 1;
  color: var(--pe-heading);
  letter-spacing: -0.04em;
}

.highlight-value span {
  margin-left: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pe-muted);
}

.highlight-note {
  color: var(--pe-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.snapshot-card {
  display: grid;
  gap: 4px;
  padding: 14px 15px;
  border: 1px solid rgba(230, 238, 241, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 18px rgba(31, 45, 61, 0.04);
}

.header-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.meta-stack h2 {
  margin: 8px 0 4px;
  font-size: 1.3rem;
  color: var(--pe-heading);
}

.lede,
.subtext,
.helper-copy,
.chart-copy,
.empty-copy,
.attention-row p,
.ranking-list li span:last-child,
.summary-item p {
  margin: 0;
  color: var(--pe-muted);
  line-height: 1.6;
}

.panel-head,
.panel-title-row,
.section-head,
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head .helper-copy {
  max-width: 420px;
  text-align: right;
}

.panel-head-stack {
  margin-bottom: 18px;
}

.filters-panel {
  overflow: hidden;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(120px, 1fr));
  gap: 14px;
}

.filters-grid label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pe-text);
}

.filters-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--pe-border);
  border-radius: var(--pe-radius-sm);
  background: #fbfeff;
  color: var(--pe-text);
  font: inherit;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.filters-grid select:focus {
  border-color: rgba(42, 167, 161, 0.5);
  box-shadow: 0 0 0 4px rgba(42, 167, 161, 0.12);
  background: #fff;
}

.filter-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--pe-border);
}

.health-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.score-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--pe-radius-lg);
  color: var(--pe-text);
  background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
}

.score-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -28% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(47, 62, 158, 0.04);
}

.score-card.red {
  border-top: 4px solid var(--pe-danger);
}

.score-card.yellow {
  border-top: 4px solid var(--pe-warning);
}

.score-card.green {
  border-top: 4px solid var(--pe-primary);
}

.score-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 10px;
}

.score-line strong {
  font-size: clamp(2.25rem, 2.7vw, 3.15rem);
  line-height: 1;
  color: var(--pe-heading);
}

.score-line span {
  color: var(--pe-muted);
}

.score-card .metric-label {
  color: var(--pe-muted);
}

.score-card .subtext {
  color: var(--pe-text);
}

.metric-card {
  display: grid;
  gap: 12px;
  min-height: 178px;
  padding: 20px;
  border-radius: 16px;
  color: inherit;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 167, 161, 0.26);
  box-shadow: 0 16px 28px rgba(31, 45, 61, 0.08);
}

.metric-card.compact {
  min-height: 156px;
}

.metric-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.metric-value {
  font-size: clamp(2rem, 2.2vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--pe-heading);
  letter-spacing: -0.04em;
}

.metric-meta {
  font-size: 0.93rem;
}

.metric-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(107, 124, 147, 0.12);
  color: var(--pe-muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.metric-delta.positive {
  background: rgba(31, 138, 100, 0.12);
  color: var(--pe-success);
}

.metric-delta.negative {
  background: rgba(214, 82, 82, 0.12);
  color: var(--pe-danger);
}

.section-block {
  margin-bottom: 20px;
}

.section-head {
  margin-bottom: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.comparison-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--pe-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.comparison-card p {
  margin: 0;
}

.chart-panel {
  display: grid;
  gap: 12px;
}

.chart-copy {
  margin-top: 0;
}

.chart-frame {
  position: relative;
  overflow: hidden;
  padding: 12px 14px 8px;
  border: 1px solid rgba(230, 238, 241, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 251, 0.96) 100%);
}

#trend-chart {
  width: 100%;
  min-height: 220px;
  max-height: 240px;
  margin-top: 0;
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 4px;
  color: var(--pe-muted);
  font-size: 0.85rem;
}

.legend-grid span {
  display: inline-flex;
  align-items: center;
}

.legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  margin-right: 8px;
}

.legend-swatch.activation { background: #2aa7a1; }
.legend-swatch.play { background: #3fb6af; }
.legend-swatch.engage { background: #2f3e9e; }
.legend-swatch.complete { background: #e45757; }

.ranking-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-list li,
.attention-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--pe-border);
}

.ranking-list li:last-child,
.attention-row:last-child {
  border-bottom: 0;
}

.ranking-list strong,
.attention-row strong {
  color: var(--pe-text);
}

.align-right {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-low {
  background: rgba(228, 87, 87, 0.14);
  color: var(--pe-danger);
}

.badge-medium {
  background: rgba(215, 160, 43, 0.16);
  color: #ac7e16;
}

.badge-good {
  background: rgba(42, 167, 161, 0.14);
  color: var(--pe-primary-strong);
}

.action-title {
  margin: 10px 0 12px;
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--pe-heading);
}

.action-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--pe-text);
}

.action-list li + li {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--pe-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(246, 250, 251, 0.9), #fff 34%);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(246, 250, 251, 0.96);
  color: var(--pe-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table th,
.data-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--pe-border);
  vertical-align: top;
}

.data-table th:last-child,
.data-table td:last-child {
  width: 320px;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(246, 250, 251, 0.55);
}

.data-table tbody tr:hover {
  background: rgba(42, 167, 161, 0.06);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.subtle-code {
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--pe-muted);
  font-size: 0.82rem;
}

.table-subcopy {
  margin-top: 4px;
  color: var(--pe-muted);
  font-size: 0.82rem;
}

.health-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
}

.health-chip.red { background: var(--pe-danger); }
.health-chip.yellow { background: var(--pe-warning); }
.health-chip.green { background: var(--pe-primary); }

.detail-header,
.empty-state,
.filter-summary {
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
}

.summary-item {
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  border: 1px solid var(--pe-border);
}

.summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  color: var(--pe-heading);
}

.summary-item.summary-wide p {
  margin-top: 8px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-meta {
  display: grid;
  gap: 12px;
  min-width: 280px;
}

.hero-stat {
  padding: 16px;
  border: 1px solid var(--pe-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
}

.hero-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--pe-heading);
}

.table-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pe-primary-strong);
  font-weight: 700;
}

.table-link:hover {
  color: var(--pe-primary);
  text-decoration: underline;
}

.flash-stack {
  display: grid;
  gap: 10px;
}

.flash-message {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--pe-border);
  font-weight: 600;
}

.flash-success {
  background: rgba(31, 138, 100, 0.1);
  color: var(--pe-success);
  border-color: rgba(31, 138, 100, 0.18);
}

.flash-error,
.flash-message.error {
  background: rgba(214, 82, 82, 0.08);
  color: var(--pe-danger);
  border-color: rgba(214, 82, 82, 0.16);
}

.access-action-stack {
  display: grid;
  gap: 14px;
  min-width: 280px;
  max-width: 300px;
  padding: 12px;
  border: 1px solid rgba(230, 238, 241, 0.96);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 250, 251, 0.96) 100%);
}

.access-action-stack .action-link-button {
  width: 100%;
}

.inline-email-form,
.access-form {
  display: grid;
  gap: 10px;
}

.inline-email-form {
  grid-template-columns: 1fr;
}

.access-share-card {
  padding: 15px;
  border: 1px solid rgba(230, 238, 241, 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  box-shadow: 0 10px 20px rgba(31, 45, 61, 0.04);
}

.action-link-button,
.send-access-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.action-link-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pe-heading), var(--pe-primary));
  box-shadow: 0 14px 22px rgba(47, 62, 158, 0.16);
}

.action-link-button:hover {
  transform: translateY(-1px);
  color: #fff;
}

.action-link-button-secondary {
  background: linear-gradient(135deg, #238f8a, #2aa7a1);
  box-shadow: 0 14px 22px rgba(42, 167, 161, 0.22);
}

.send-access-button {
  border: 1px solid rgba(42, 167, 161, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbfb 100%);
  color: var(--pe-primary-strong);
  cursor: pointer;
}

.send-access-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(42, 167, 161, 0.12);
}

.inline-email-form input,
.access-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(63, 182, 175, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
  color: var(--pe-text);
  font: inherit;
  font-size: 0.98rem;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 18px rgba(22, 44, 66, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.inline-email-form input::placeholder,
.access-form input::placeholder {
  color: #90a0b5;
}

.inline-email-form input:focus,
.access-form input:focus {
  border-color: rgba(42, 167, 161, 0.5);
  box-shadow: 0 0 0 4px rgba(42, 167, 161, 0.12), 0 10px 18px rgba(42, 167, 161, 0.08);
  background: #fff;
}

.access-card {
  display: grid;
  gap: 18px;
}

.access-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.access-pane {
  align-self: start;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.access-copy {
  display: grid;
  gap: 14px;
}

.access-history-list {
  display: grid;
  gap: 10px;
}

.access-history-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--pe-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%);
}

.access-form label {
  display: grid;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pe-text);
}

.hero-meta-actions {
  display: grid;
  gap: 10px;
}

.hero-meta-actions .cta-button,
.hero-meta-actions .ghost-button {
  width: 100%;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
}

.empty-state h1 {
  margin: 0;
  color: var(--pe-heading);
}

@media (max-width: 1320px) {
  .filters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pe-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1080px) {
  .health-grid,
  .metric-grid,
  .comparison-grid,
  .three-column,
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .pe-shell {
    width: min(calc(100vw - 24px), 100%);
    padding-top: 16px;
  }

  .pe-topbar,
  .pe-hero,
  .pe-header,
  .panel-head,
  .panel-title-row,
  .section-head,
  .detail-header,
  .filter-footer,
  .pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-grid,
  .health-grid,
  .metric-grid,
  .comparison-grid,
  .three-column,
  .two-column,
  .pe-header,
  .snapshot-grid,
  .access-layout,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .panel-head .helper-copy {
    max-width: none;
    text-align: left;
  }

  .hero-meta {
    min-width: 0;
  }

  .header-actions,
  .detail-actions,
  .topbar-actions {
    width: 100%;
  }

  .topbar-link,
  .ghost-button,
  .cta-button {
    width: 100%;
  }

  .data-table {
    min-width: 640px;
  }

  #trend-chart {
    min-height: 210px;
  }

  .inline-email-form {
    grid-template-columns: 1fr;
  }

  .access-action-stack {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}
