@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-dark: #004d71;
  --primary-bg: #005a84;
  --accent: #00a3c4;
  --accent-bright: #00d2c4;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #cbd5e1;
  --bg-light: #f8fafc;
  --purple-bg: #f5f3ff;
  --purple-text: #6d28d9;
  --teal-bg: #f0fdfa;
  --teal-text: #0f766e;
  --yellow-bg: #fefce8;
  --yellow-text: #a16207;
  --red-bg: #fff1f2;
  --red-text: #be123c;
  --critical: #be123c;
  --serious: #a16207;
  --moderate: #6d28d9;
  --minor: #0f766e;
  font-family: "Lexend", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #F6F4FB 0%, #F1F6F6 100%);
  color: var(--text-dark);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-dark);
  padding: 8px 12px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(0, 163, 196, 0.22);
  border-color: var(--accent);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.auth-pending .app-shell {
  display: none;
}

.login-footer {
  position: relative;
  background: #ffffff;
}

.app-footer {
  margin-top: auto;
}

.footer-stripe {
  background: linear-gradient(100deg, #ff3700, #ffe500 16.66%, #ff3700 50%, #ffe500 66.66%, #ff3700);
  background-size: 200% 100%;
  background-repeat: repeat;
  animation: scrollGradientUltraSmooth 5s linear infinite;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: none !important;
}

.login-footer-content {
  max-width: 1900px;
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 44px;
  color: #073348;
  font-size: 12px;
  font-weight: 650;
}

.login-footer-content img {
  width: 75px;
  height: auto;
}

.login-footer-content a {
  color: #073348;
}

.header {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px max(40px, calc((100vw - 1900px) / 2 + 40px));
  position: relative;
  border-bottom: none !important;
  background: #ffffff;
}

.header::after {
  content: "";
  background: linear-gradient(100deg, #6794ff, #06ffe7 16.66%, #6794ff 50%, #06ffe7 66.66%, #6794ff);
  background-size: 200% 100%;
  background-repeat: repeat;
  animation: scrollGradientUltraSmooth 5s linear infinite;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: none !important;
}

@keyframes scrollGradientUltraSmooth {
  0% {
    background-position: 100% 0%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.logo img {
  display: block;
  width: 95px;
  margin-bottom: 11px;
  height: auto;
}

.logo strong {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dark);
}

.org-select {
  width: auto;
  min-width: 170px;
}

.menu-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 15px;
}

.menu-dot-grid {
  pointer-events: none;
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 3px 3px;
  justify-content: center;
  align-content: center;
}

.menu-dot-grid span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.menu-wrap {
  position: relative;
}

.app-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 17px 20px 21px;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.app-menu[hidden] {
  display: none;
}

.toolkit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.toolkit-header h2 {
  color: #7b858c;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

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

.toolkit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d8e2ee;
}

.menu-logout-button {
  min-height: 36px;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--primary-dark);
  padding: 0 14px;
  font-weight: 700;
}

.menu-logout-button:hover,
.menu-logout-button:focus-visible {
  background: #f0f4f8;
}

.menu-logout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.tool-item {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #050505;
  text-align: center;
  font-size: 16px;
  line-height: 1.1;
}

.tool-item.active,
.tool-item:hover,
.tool-item:focus {
  outline: none;
  background: #f0f4f8;
}

.tool-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #166f88;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tool-icon.account {
  border-radius: 50%;
  background: #d7eef2;
  border: 4px solid #87b8c4;
  font-size: 23px;
}

.tool-icon.wcag {
  background: #e9f5f6;
  color: #145f7c;
}

.tool-icon.toolbar {
  width: 39px;
  height: 31px;
  border-radius: 5px;
  background: #d9f2f3;
  color: #117985;
  font-size: 23px;
}

.tool-icon.document {
  background: #e7f6ec;
  color: #33865a;
}

.tool-icon.guardian {
  background: #dff5f3;
  color: #198b91;
}

.tool-icon.mobile {
  background: #e9f4ff;
  color: #e67b1f;
}

.tool-icon.evidence {
  background: #e9f7ee;
  color: #2d8a5b;
}

.tool-icon.reports {
  background: #f4effa;
  color: #7656a5;
}

.tool-icon.audits {
  background: #fff7ed;
  color: #b45309;
}

.tool-icon.integrations {
  background: #e7f5fb;
  color: #126799;
}

.tool-icon.extensions {
  background: #e8f6fb;
  color: #116fa3;
}

.tool-icon.developer {
  background: #eef2ff;
  color: #1f4f86;
  font-size: 14px;
}

.tool-icon.landscape {
  background: #eef8ec;
  color: #4d8a32;
}

.tool-icon.media {
  background: #f0f9ff;
  color: #0369a1;
}

.tool-icon.support {
  background: #eef8ff;
  color: #075985;
}

.hero-banner[hidden],
.tabs-container[hidden] {
  display: none;
}

.hero-banner {
  background: linear-gradient(180deg, #06334a, #0e79b0);
  color: #ffffff;
  padding: 40px max(40px, calc((100vw - 1900px) / 2 + 40px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.82;
  margin-bottom: 15px;
}

.breadcrumb-link {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 10px;
  font-weight: 650;
}

.scanned-pages {
  font-size: 18px;
  margin-bottom: 15px;
  opacity: 0.92;
}

.manage-link {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--accent-bright);
  text-decoration: underline;
  margin-bottom: 20px;
  padding: 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 28px;
  align-items: center;
  flex: 0 1 760px;
  max-width: 820px;
}

.hero-stat {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.hero-stat-label {
  color: #ffffff;
  font-size: 26px;
  font-weight: 750;
  line-height: 1;
}

.progress-circle {
  width: 175px;
  height: 175px;
  position: relative;
}

.progress-circle svg {
  display: block;
  overflow: visible;
}

.progress-bg,
.progress-bar {
  fill: none;
  stroke-width: 14;
}

.progress-bg {
  stroke: rgba(255, 255, 255, 0.14);
}

.progress-bar {
  stroke-linecap: round;
  stroke-dasharray: 471;
  transform: rotate(-90deg);
  transform-origin: 90px 90px;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.tabs-container {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 max(40px, calc((100vw - 1900px) / 2 + 40px));
  background: #ffffff;
}

.tab {
  padding: 20px 40px;
  font-weight: 650;
  color: var(--primary-dark);
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
}

.tab.active {
  border-bottom-color: var(--accent);
}

.main-content {
  width: 100%;
  padding: 8px 32px 56px;
  max-width: 90%;
  margin: 0 auto;
}

.notification-box {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.status-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: Georgia, serif;
}

.notification-text h2 {
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.notification-text p {
  color: var(--text-dark);
  line-height: 1.5;
}

.status-ok {
  color: var(--teal-text) !important;
}

.status-error {
  color: var(--red-text) !important;
}

.scan-panel {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  background: #ffffff;
  margin-bottom: 30px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.span-2 {
  grid-column: span 2;
}

.field span,
.toggle span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.form-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle input {
  width: 18px;
  min-height: 18px;
}

.form-actions,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-bg);
  background: var(--primary-bg);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.journey-card,
.results-panel,
.json-panel {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
}

.journey-card {
  padding: 30px;
}

.card-title {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.card-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 30px;
}

.progress-section {
  display: flex;
  align-items: center;
  gap: 30px;
}

.circle-progress {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, #e2e8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circle-progress::before {
  content: attr(data-value);
  position: absolute;
  width: 56px;
  height: 96px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}

.bar-progress-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.bar-label-row h3 {
  color: var(--primary-dark);
  font-size: 14px;
}

.bar-percentage {
  color: var(--primary-bg);
  font-size: 12px;
  font-weight: 800;
}

.bar-bg {
  background: #e2e8f0;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}

.bar-fill.secondary {
  background: #d9383a;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-content: start;
}

.metric-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.metric-card.unique {
  background: var(--red-bg);
  border-color: #ffe4e6;
  color: var(--red-text);
}

.metric-card.todo {
  background: var(--yellow-bg);
  border-color: #fef08a;
  color: var(--yellow-text);
}

.metric-card.progress {
  background: var(--purple-bg);
  border-color: #ddd6fe;
  color: var(--purple-text);
}

.metric-card.cant-fix {
  background: var(--teal-bg);
  border-color: #ccfbf1;
  color: var(--teal-text);
}

.metric-title {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 15px;
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
}

.landscape-field-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.5fr);
}

.domain-picker {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
}

.domain-picker.table-only {
  margin-top: 0;
}

.domain-table th:nth-child(1) {
  width: auto;
}

.domain-table th:nth-child(2),
.domain-table th:nth-child(3),
.domain-table th:nth-child(4),
.domain-table th:nth-child(5),
.domain-table th:nth-child(6) {
  width: 92px;
}

.domain-table th:nth-child(7) {
  width: 190px;
}

.domain-table th:last-child,
.domain-table td:last-child {
  padding-right: 20px;
}

.row-action {
  min-height: 36px;
  padding: 0 10px;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
}

.row-action.danger {
  border-color: #fecaca;
  color: #b42318;
  background: #fff7f7;
}

.domain-row:hover,
.domain-row.active {
  background: #f8fafc;
}

.domain-row td:first-child {
  display: table-cell;
}

.domain-row strong {
  display: block;
  color: var(--primary-dark);
  font-size: 15px;
  margin-bottom: 4px;
}

.domain-row span {
  display: block;
  color: var(--text-light);
  overflow-wrap: anywhere;
}

.domain-detail[hidden] {
  display: none;
}

.detail-overview {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
}

.detail-overview[hidden] {
  display: none;
}

.homepage-preview,
.robots-panel,
.overview-grid div {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
}

.homepage-preview {
  min-height: 320px;
  overflow: hidden;
}

.homepage-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  object-position: top;
}

.screenshot-empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--text-light);
  padding: 24px;
  text-align: center;
}

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

.overview-grid div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.overview-grid strong {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.overview-grid span {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 750;
}

.robots-panel {
  grid-column: 1 / -1;
  overflow: hidden;
}

.robots-panel h3 {
  color: var(--primary-dark);
  font-size: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
}

.robots-panel pre {
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  color: #0f172a;
  background: var(--bg-light);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.domain-detail .table-wrap {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #ffffff;
}

.detail-asset-table {
  table-layout: auto;
}

.detail-asset-table th:nth-child(1) {
  width: 120px;
}

.detail-asset-table th:nth-child(2) {
  width: 52%;
}

.detail-asset-table th:nth-child(3) {
  width: 28%;
}

.detail-asset-table th:nth-child(4) {
  width: 180px;
}

.detail-asset-table .target {
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--primary-dark);
  padding: 2px 9px;
  font-weight: 800;
}

.status-pill.ready {
  background: var(--teal-bg);
  color: var(--teal-text);
}

.status-pill.crawling,
.status-pill.queued {
  background: var(--yellow-bg);
  color: var(--yellow-text);
}

.status-pill.failed {
  background: var(--red-bg);
  color: var(--red-text);
}

.asset-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.asset-summary div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-light);
  padding: 12px;
}

.asset-summary strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.asset-summary span {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  padding: 18px;
  text-align: center;
}

td a {
  color: var(--primary-bg);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

td a:hover,
td a:focus {
  color: var(--accent);
  text-decoration: underline;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header.compact {
  min-height: 64px;
}

.panel-header h2 {
  color: var(--primary-dark);
  font-size: 20px;
}

.panel-header p,
.panel-header span {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 4px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  background: var(--bg-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.badge.critical { background: var(--critical); }
.badge.serious { background: var(--serious); }
.badge.moderate { background: var(--moderate); }
.badge.minor { background: var(--minor); }
.badge.page { background: var(--primary-bg); }
.badge.pdf { background: var(--red-text); }
.badge.image { background: var(--teal-text); }
.badge.video { background: var(--purple-text); }
.badge.sitemap { background: var(--primary-bg); }
.badge.home-link { background: var(--accent); }
.badge.structure { background: var(--yellow-text); }

.target,
.rule {
  overflow-wrap: anywhere;
  color: var(--text-dark);
}

.empty-cell {
  color: var(--text-light);
  text-align: center;
  height: 120px;
  vertical-align: middle;
}

#jsonOutput {
  margin: 0;
  padding: 18px;
  height: 520px;
  overflow: auto;
  color: #0f172a;
  background: var(--bg-light);
  border-radius: 0 0 12px 12px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 1024px) {
  .dashboard-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-overview,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    display: none;
  }
}

@media (max-width: 680px) {
  .header,
  .hero-banner,
  .main-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header,
  .form-row,
  .panel-header,
  .progress-section {
    align-items: stretch;
    flex-direction: column;
  }

  .header-right,
  .form-actions {
    width: 100%;
  }

  .app-menu {
    right: -20px;
    width: calc(100vw - 24px);
    padding: 24px 18px 30px;
    border-radius: 24px;
  }

  .toolkit-header h2 {
  font-size: 17px;
  }

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

  .tool-item {
    min-height: 140px;
    font-size: 22px;
  }

  .tool-icon {
    width: 62px;
    height: 62px;
    font-size: 34px;
  }

  .tool-icon.toolbar {
    width: 92px;
    height: 48px;
    font-size: 32px;
  }

  .tabs-container {
    padding: 0 20px;
    overflow-x: auto;
  }

  .tab {
    padding: 18px 22px;
    white-space: nowrap;
  }

  .field-grid,
  .landscape-field-grid,
  .asset-summary,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: span 1;
  }

  table:not(.detail-asset-table) th:nth-child(3),
  table:not(.detail-asset-table) td:nth-child(3) {
    display: none;
  }
}

/* Accessibility toolkit menu redesign */
.app-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(370px, calc(100vw - 24px));
  max-height: calc(100vh - 78px);
  overflow-y: auto;
  padding: 19px 24px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(245, 253, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(252, 248, 255, 0.98) 100%);
  box-shadow: 0 18px 38px rgba(7, 51, 72, 0.24);
  backdrop-filter: blur(12px);
  z-index: 60;
}

.app-menu[hidden] {
  display: none;
}

.toolkit-header {
  display: block;
  margin-bottom: 14px;
}

.toolkit-header h2 {
  color: #073348;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 17px;
}

.tool-item {
  min-height: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: var(--tool-bg, #edf8fb);
  color: #050505;
  text-align: center;
  font-size: 15px;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 12px rgba(7, 51, 72, 0.04);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.tool-item.active,
.tool-item:hover,
.tool-item:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 9px 18px rgba(7, 51, 72, 0.13);
}

.tool-account,
.tool-toolbar,
.tool-landscape,
.tool-dashboard {
  --tool-bg: linear-gradient(135deg, #eff8fd 0%, #edf7f6 100%);
}

.tool-wcag,
.tool-reports,
.tool-developer {
  --tool-bg: linear-gradient(135deg, #f2f0ff 0%, #eeeefd 100%);
}

.tool-document,
.tool-evidence {
  --tool-bg: linear-gradient(135deg, #dcf6ec 0%, #ecfbf7 100%);
}

.tool-guardian,
.tool-extensions {
  --tool-bg: linear-gradient(135deg, #d6f4f2 0%, #e8f8ff 100%);
}

.tool-mobile,
.tool-media {
  --tool-bg: linear-gradient(135deg, #e5f4ff 0%, #dff2ff 100%);
}

.tool-audits {
  --tool-bg: linear-gradient(135deg, #fff1df 0%, #ffe8d2 100%);
}

.tool-integrations {
  --tool-bg: linear-gradient(135deg, #dff2ff 0%, #edf9ff 100%);
}

.tool-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #073348;
  font-size: 0;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
}

.tool-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tool-icon.toolbar {
  width: 56px;
  height: 36px;
}

.tool-icon.developer {
  width: 41px;
  height: 41px;
  font-size: 0;
}

.toolkit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #cfeaf2;
}

.menu-logout-button {
  min-height: 36px;
  min-width: 88px;
  border: 0;
  border-radius: 6px;
  background: #073b63;
  color: #ffffff;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset -5px -5px 0 rgba(255, 255, 255, 0.1), 0 6px 10px rgba(7, 51, 72, 0.14);
}

.menu-logout-button:hover,
.menu-logout-button:focus-visible {
  background: #0a4d7f;
}

.menu-logout-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 760px) {
  .app-menu {
    right: -20px;
    width: calc(100vw - 24px);
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  .toolkit-header h2 {
  font-size: 17px;
    white-space: normal;
  }

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

  .tool-item {
    min-height: 95px;
    font-size: 15px;
  }

  .tool-icon {
    width: 39px;
    height: 39px;
  }

  .tool-icon.toolbar {
    width: 56px;
    height: 36px;
  }

  .toolkit-actions {
    margin-top: 16px;
    padding-top: 14px;
  }

  .menu-logout-button {
    min-height: 36px;
    min-width: 88px;
    font-size: 15px;
  }
}
/* Shared menu category headings */
.toolkit-category {
  margin-bottom: 16px;
}

.toolkit-category:last-of-type {
  margin-bottom: 0;
}

.toolkit-category-title {
  color: #4a6472;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #cfeaf2;
}

/* ============================================================
   Domains list view (design handoff: design_handoff_domains)
   Lexend/Mulish, gradient surface, card grid + modals.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@500;600;700;800&family=Mulish:wght@400;500;600;700;800&display=swap");

body { font-family: "Mulish", system-ui, sans-serif; color: #33404F; }

@keyframes dlFadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dlPop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---- Page header (hero) ---- */
.dl-hero[hidden] { display: none; }
.dl-hero-inner {
  max-width: 90%;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.dl-title {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #16273F;
  margin: 0 0 6px;
}
.dl-subtitle { font-size: 15.5px; color: #5B6675; }
.dl-hero-actions { display: flex; align-items: center; gap: 14px; }

.dl-toggle {
  display: inline-flex;
  background: #F1F4F9;
  border: 1px solid #E5E9F0;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.dl-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: #8791A0;
}
.dl-toggle-btn[hidden] { display: none; }
.dl-toggle-btn.active {
  background: #fff;
  color: #16273F;
  box-shadow: 0 2px 6px rgba(18, 38, 63, 0.12);
}

.dl-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #E8402A;
  color: #fff;
  border: none;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(232, 64, 42, 0.28);
}
.dl-add-btn:hover { background: #D6371F; }

/* ---- Grid ---- */
.dl-list[hidden] { display: none; }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}
.dl-grid[hidden] { display: none; }

/* ---- Table view ---- */
.dl-grid.dl-grid--table {
  display: block;
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  overflow: hidden;
  animation: dlFadeUp 0.35s ease both;
}
.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dl-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8791A0;
  background: #F8FAFC;
  padding: 14px 18px;
  border-bottom: 1px solid #EAEDF3;
  white-space: nowrap;
}
.dl-table thead th.dl-th-num { text-align: right; }
.dl-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid #F0F3F8;
  color: #33414F;
  vertical-align: middle;
}
.dl-table tbody tr:last-child td { border-bottom: none; }
.dl-row { cursor: pointer; transition: background 0.12s ease; }
.dl-row:hover { background: #F6F9FD; }
.dl-td-domain { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.dl-td-domain .dl-fav { width: 40px; height: 40px; border-radius: 11px; font-size: 16px; }
.dl-td-domain .dl-card-name { font-size: 15px; }
.dl-td-id { min-width: 0; }
.dl-td-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-score-cell { font-family: "Lexend", sans-serif; font-weight: 700; }
.dl-td-crawled { color: #8791A0; white-space: nowrap; }
.dl-td-actions { text-align: right; white-space: nowrap; }
.dl-row-delete {
  border: 1px solid #E5E9F0;
  background: #fff;
  color: #8791A0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dl-issues-scroll { overflow-x: auto; }
.dl-issues-table { min-width: 1380px; }
.dl-issues-table th:not(:first-child),
.dl-issues-table td:not(:first-child) { padding-left: 12px; padding-right: 12px; }
.dl-issues-table .dl-td-domain { min-width: 190px; }
.dl-issues-table [data-staff-metric] { min-width: 138px; }
.dl-issues-table .dl-issue-total { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-issues-table .dl-issue-top { display: block; max-width: 185px; margin-top: 4px; color: #687587; font-size: 11px; line-height: 1.35; }
.dl-issues-table .dl-issue-top a { color: #2F6FE0; text-decoration: none; overflow-wrap: anywhere; }
.dl-issues-table .dl-issue-top a:hover { text-decoration: underline; }
.dl-issues-table .dl-issue-toplist { margin: 4px 0 0; padding: 0; list-style: none; max-width: 185px; color: #687587; font-size: 11px; line-height: 1.35; }
.dl-issues-table .dl-issue-toplist li { overflow-wrap: anywhere; }
.dl-issues-table .dl-issue-toplabel { color: #3A4553; font-weight: 600; }

/* Staff issues CSV export (shown only on the staff issues view) */
.dl-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1F2A37;
  border: 1px solid #C9D1DC;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.dl-export-btn[hidden] { display: none; }
.dl-export-btn:hover { background: #F1F4F9; }
.dl-export-btn:focus-visible { outline: 3px solid #2F6FE0; outline-offset: 2px; }
.dl-export-btn:disabled { color: #5B6675; cursor: progress; }
.dl-export-status { color: #4A5565; font-size: 13px; }
.dl-export-status:empty { display: none; }
@media (max-width: 680px) {
  table.dl-issues-table th:nth-child(3),
  table.dl-issues-table td:nth-child(3) { display: table-cell; }
}
.dl-row-delete:hover { color: #E8402A; border-color: #F3C6BF; background: #FCECEA; }
.dl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Card ---- */
.dl-card {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  display: flex;
  flex-direction: column;
  animation: dlFadeUp 0.35s ease both;
}
.dl-card.dl-just-added { outline: 2px solid #3C7CE0; box-shadow: 0 7px 24px rgba(60, 124, 224, .16); }
.dl-preview {
  width: 100%;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: #EEF1F6;
  border: 1px solid #EEF1F6;
  margin-bottom: 20px;
}
.dl-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top;
}
/* Placeholder while the homepage screenshot is still being captured (or when there is none). */
.dl-preview-empty {
  height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Lexend", sans-serif; font-weight: 600; font-size: 13px; color: #8791A0; text-align: center; padding: 16px;
}
.dl-preview-spin {
  width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #D6DCE6; border-top-color: #16273F;
  display: inline-block; animation: dlSpin 0.8s linear infinite; flex: 0 0 auto;
}
.ov-shot-empty.loading { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
@keyframes dlSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dl-preview-spin { animation: none; border-top-color: #D6DCE6; border-right-color: #16273F; } }
.dl-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.dl-fav {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.dl-card-id { flex: 1; min-width: 0; }
.dl-card-name {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #16273F;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-card-url {
  font-size: 13px;
  color: #5B6675;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-card-crawled { font-size: 12px; color: #98A2B0; margin-top: 3px; }
.dl-score-wrap { flex: 0 0 auto; text-align: right; }
.dl-score {
  font-family: "Lexend", sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}
.dl-score-label { font-size: 11px; color: #98A2B0; font-weight: 600; margin-top: 3px; }

.dl-counts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 4px;
  background: #FBFCFE;
  border: 1px solid #EEF1F6;
  border-radius: 14px;
  margin-bottom: 20px;
}
.dl-count { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.dl-count-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-count-value {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #16273F;
  line-height: 1;
}
.dl-count-label { font-size: 11.5px; color: #8791A0; font-weight: 600; }

.dl-card-footer { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.dl-crawl-bar {
  display: flex;
  margin-top: auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #E7EBF1;
  border-radius: 10px;
  background: #F7F9FC;
  color: #536173;
  font-family: "Lexend", sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.dl-crawl-bar::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #9BA6B5; }
.dl-crawl-bar.is-crawling { background: #EEF5FF; border-color: #D5E6FF; color: #2766B0; }
.dl-crawl-bar.is-crawling::before { background: #3C7CE0; animation: dlCrawlPulse 1.5s ease-in-out infinite; }
.dl-crawl-bar.is-waiting { background: #FFF8E9; border-color: #F5E6BF; color: #8E641C; }
.dl-crawl-bar.is-waiting::before { background: #D89A27; }
.dl-crawl-detail { color: inherit; opacity: .85; }
.dl-crawl-detail:empty { display: none; }
@keyframes dlCrawlPulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dl-crawl-bar.is-crawling::before { animation: none; } }
.dl-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.dl-delete {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #8791A0;
  padding: 8px 4px;
}
.dl-delete:hover { color: #D14545; }
.dl-view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16273F;
  color: #fff;
  border: none;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 12px;
}
.dl-view:hover { background: #0F1C30; }

/* ---- Empty state ---- */
.dl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
}
.dl-empty[hidden] { display: none; }
.dl-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #FCECEA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.dl-empty-title {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #16273F;
  margin-bottom: 6px;
}
.dl-empty-text { font-size: 15px; color: #8791A0; max-width: 420px; margin-bottom: 22px; }

.dl-status { margin-top: 18px; font-size: 13px; color: #8791A0; text-align: center; min-height: 18px; }
.dl-status.status-error { color: #D14545; }
.dl-status.status-ok { color: #1FA97A; }

/* ---- Modals ---- */
.dl-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dl-modal[hidden] { display: none; }
.dl-modal-backdrop { position: absolute; inset: 0; background: rgba(16, 26, 40, 0.45); }
.dl-modal-card {
  position: relative;
  width: 460px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(16, 26, 40, 0.32);
  padding: 28px;
  animation: dlPop 0.22s ease both;
}
#deleteModal .dl-modal-card { width: 440px; }
.dl-modal-title {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #16273F;
  margin: 0 0 6px;
}
#deleteModal .dl-modal-title { font-size: 21px; margin-bottom: 8px; }
.dl-modal-help { font-size: 14.5px; color: #8791A0; margin: 0 0 20px; line-height: 1.5; }
.dl-modal-body { font-size: 14.5px; color: #5B6675; margin: 0 0 24px; line-height: 1.55; }
.dl-modal-body strong { color: #16273F; }
.dl-field-label {
  display: block;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #5B6675;
  margin-bottom: 8px;
}
.dl-field-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #DCE1E9;
  border-radius: 12px;
  font-family: "Mulish", sans-serif;
  font-size: 15px;
  color: #16273F;
  min-height: 0;
  margin-bottom: 18px;
}
.dl-field-input:last-of-type { margin-bottom: 24px; }
.dl-field-input:focus { outline: none; border-color: #E8402A; box-shadow: 0 0 0 3px rgba(232, 64, 42, 0.14); }
.dl-modal-danger-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FCECEC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.dl-modal-actions { display: flex; justify-content: flex-end; gap: 12px; }
.dl-btn-ghost {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #5B6675;
  background: #fff;
  border: 1px solid #DCE1E9;
  border-radius: 12px;
  padding: 11px 20px;
}
.dl-btn-ghost:hover { background: #F7F9FC; }
.dl-btn-primary {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: #E8402A;
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
}
.dl-btn-primary:disabled { background: #F0A99D; cursor: default; opacity: 1; }
.dl-btn-danger {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: #D14545;
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
  box-shadow: 0 4px 12px rgba(209, 69, 69, 0.28);
}
.dl-btn-danger:hover { background: #BE3B3B; }

@media (max-width: 680px) {
  .dl-hero-inner { padding: 24px 20px; }
  .dl-title { font-size: 30px; }
  .main-content { padding-left: 20px; padding-right: 20px; }
  .dl-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Domain Overview (single domain) — design_handoff_domain_overview
   ============================================================ */
.ov-identity[hidden],
.ov-tabs[hidden],
.ov-content[hidden] { display: none; }

.main-content.ov-mode { padding-top: 32px; }

/* ---- Identity header ---- */
.ov-identity-inner {
  max-width: 90%;
  margin: 0 auto;
  padding: 28px 32px 4px;
}
.ov-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: #8791A0;
  margin-bottom: 16px;
  padding: 0;
}
.ov-back:hover { color: #16273F; }
.ov-identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ov-identity-left { display: flex; align-items: center; gap: 18px; }
.ov-fav {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 24px;
}
.ov-name {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #16273F;
  margin: 0 0 4px;
}
.ov-identity-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ov-url { font-size: 15px; color: #2F6FE0; font-weight: 600; }
.ov-url:hover { color: #1E56C0; text-decoration: underline; }
.ov-wcag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #EEF2FA;
  border: 1px solid #DDE4F0;
  color: #3B5678;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.ov-identity-right { display: flex; align-items: center; gap: 32px; }
.ov-score-block, .ov-crawled-block { text-align: right; }
.ov-score {
  font-family: "Lexend", sans-serif;
  font-weight: 800;
  font-size: 34px;
  line-height: 1;
}
.ov-score-label, .ov-crawled-label { font-size: 12px; color: #98A2B0; font-weight: 600; margin-top: 4px; }
.ov-crawled {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #16273F;
  margin-top: 4px;
}
.ov-divider { width: 1px; height: 44px; background: #E4E8EF; }

/* ---- Tab bar ---- */
.ov-tabs {
  background: #fff;
  border-bottom: 1px solid #E7EBF1;
  box-shadow: 0 1px 2px rgba(18, 38, 63, 0.03);
  margin-top: 20px;
}
.ov-tabs-inner {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 34px;
  overflow-x: auto;
}
.ov-tab {
  appearance: none;
  flex: 0 0 auto;
  background: none;
  border: none;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #8791A0;
  padding: 18px 2px;
  margin: 0;
  border-bottom: 3px solid transparent;
}
.ov-tab.active { font-weight: 700; color: #16273F; border-bottom-color: #E8402A; }
.ov-tab:hover { color: #16273F; }

/* ---- Content wrapper ---- */
.ov-content { display: block; }
.ov-panel { animation: dlFadeUp 0.35s ease both; }
.ov-count-line { font-size: 14px; color: #8791A0; margin-bottom: 14px; font-weight: 600; }

/* Staff recorded-data view */
.ov-data-page { max-width: 1440px; margin: 0 auto 56px; color: #24344A; }
.ov-data-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 6px 0 22px; }
.ov-data-intro h2 { margin: 0 0 7px; color: #16273F; font-size: 27px; }
.ov-data-intro p { margin: 0; color: #677486; line-height: 1.5; }
.ov-data-eyebrow { margin-bottom: 6px !important; color: #E8402A !important; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ov-data-id { color: #8B95A3; font: 12px monospace; overflow-wrap: anywhere; }
.ov-data-notice { padding: 13px 17px; margin-bottom: 18px; border: 1px solid #DCE7F8; border-radius: 11px; background: #F1F6FE; color: #355680; }
.ov-data-error { border-color: #F4D4CF; background: #FFF4F1; color: #A63224; }
.ov-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.ov-data-card { min-width: 0; padding: 22px 24px; border: 1px solid #EAEDF3; border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(18, 38, 63, .04); }
.ov-data-wide { margin-bottom: 18px; }
.ov-data-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 17px; }
.ov-data-card h3 { margin: 0; color: #16273F; font-size: 17px; }
.ov-data-card h4 { margin: 20px 0 10px; color: #283C57; font-size: 13px; }
.ov-data-card-head > span, .ov-data-muted { color: #7E8A99; font-size: 12px; }
.ov-data-refresh { margin: 12px 0; padding: 7px 11px; border: 1px solid #D8E2EF; border-radius: 7px; background: #fff; color: #315C91; font: 600 12px Lexend, sans-serif; cursor: pointer; }
.ov-data-refresh:hover { background: #F1F6FE; }
.ov-data-note { margin: 18px 0 0; padding: 11px 13px; border-radius: 8px; background: #F3F6FB; color: #607089; font-size: 12px; line-height: 1.5; }
.ov-data-list { margin: 0; }
.ov-data-list > div { display: grid; grid-template-columns: minmax(120px, 36%) minmax(0, 1fr); gap: 14px; padding: 9px 0; border-top: 1px solid #F0F2F6; }
.ov-data-list > div:first-child { border-top: 0; padding-top: 0; }
.ov-data-list dt { color: #718096; font-size: 12px; }
.ov-data-list dd { min-width: 0; margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.ov-data-card a, .ov-data-raw a { color: #2C64BC; text-decoration: underline; text-underline-offset: 2px; }
.ov-data-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ov-data-chips span, .ov-data-type { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #EDF3FC; color: #315C91; font-size: 11px; font-weight: 600; }
.ov-data-items, .ov-data-links, .ov-data-claims { padding-left: 18px; margin: 8px 0 0; }
.ov-data-items li, .ov-data-links li, .ov-data-claims li { padding: 6px 0; font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ov-data-items p { margin: 3px 0; color: #718096; }
.ov-data-claims .ov-data-list { margin-top: 8px; }
.ov-data-claims .ov-data-list > div { padding: 5px 0; }
.ov-data-records { display: grid; gap: 8px; }
.ov-data-records > details, .ov-data-raw { min-width: 0; border: 1px solid #E8EDF4; border-radius: 9px; background: #FBFCFE; }
.ov-data-records > details { padding: 10px 13px; }
.ov-data-records summary, .ov-data-raw summary { cursor: pointer; color: #31425B; font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }
.ov-data-records > details[open] > summary { margin-bottom: 15px; }
.ov-data-raw { margin-top: 15px; padding: 10px 12px; }
.ov-data-raw pre { max-height: 400px; overflow: auto; margin: 10px 0 0; padding: 12px; border-radius: 7px; background: #F1F4F8; color: #43546C; font: 11px/1.5 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 800px) { .ov-data-grid { grid-template-columns: 1fr; } .ov-data-intro { align-items: flex-start; flex-direction: column; } }

/* ---- Summary: screenshot + counts ---- */
.ov-summary-grid {
  display: grid;
  /* Screenshot (left) = 50% of the page width; counts share the other half. */
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.ov-shot-card {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
}
.ov-shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #EEF1F6;
}
.ov-dot { width: 11px; height: 11px; border-radius: 50%; }
.ov-shot-url {
  margin-left: 12px;
  flex: 1;
  background: #F4F6FA;
  border: 1px solid #E7EBF1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: #5B6675;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-shot-img { width: 100%; height: 360px; overflow: hidden; background: #EEF1F6; }
.ov-shot-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top;
}
.ov-shot-empty { height: 360px; display: grid; place-items: center; color: #8791A0; padding: 24px; text-align: center; }
/* The counts column is as tall as the screenshot card beside it (grid stretch); the two rows split
   that height equally so the four cards reach the bottom rather than leaving a gap beneath them. */
.ov-counts { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 16px; align-content: stretch; min-height: 0; }
.ov-count-card {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center; /* the card is taller than its content now; centre rather than pin to the top */
  gap: 14px;
  min-height: 0;
}
.ov-count-card:hover { border-color: #E8402A; }
.ov-count-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-count-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 44px; color: #16273F; line-height: 1; letter-spacing: -0.5px; }
.ov-count-label { font-size: 14.5px; color: #8791A0; font-weight: 600; margin-top: 8px; }

/* ---- Summary: activity ---- */
.ov-activity-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 16px; }
.ov-activity-head h2 { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 22px; color: #16273F; margin: 0; }
.ov-activity-sub { font-size: 13.5px; color: #98A2B0; font-weight: 600; }
.ov-activity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ov-activity-card {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  display: flex;
  flex-direction: column;
}
.ov-activity-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ov-activity-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-activity-name { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 14.5px; color: #16273F; line-height: 1.2; }
.ov-activity-value-row { display: flex; align-items: baseline; gap: 8px; }
.ov-activity-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 32px; color: #16273F; line-height: 1; }
.ov-trend {
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #1FA97A;
  background: #E7F7F1;
  border-radius: 999px;
  padding: 3px 9px;
}
.ov-activity-label { font-size: 13.5px; color: #8791A0; font-weight: 600; margin-top: 6px; }
.ov-activity-subline { font-size: 12.5px; color: #98A2B0; margin-top: 10px; padding-top: 12px; border-top: 1px solid #F1F4F8; }

/* ---- Browse: list rows ---- */
.ov-list {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  overflow: hidden;
}
.ov-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #F1F4F8;
}
.ov-row:last-child { border-bottom: none; }
.ov-row-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-row-main { flex: 1; min-width: 0; }
.ov-row-title {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #16273F;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-row-sub { font-size: 13px; color: #8791A0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-row-scanned { flex: 0 0 auto; width: 150px; text-align: right; font-size: 12.5px; color: #9AA4B2; }
/* Page Discovery visit/impression counts on a page/pdf row. */
.ov-row-metric { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; text-align: left; font-size: 12.5px; color: #9AA4B2; min-width: 120px; }
.ov-row-metric strong { font-family: "Lexend", sans-serif; font-weight: 700; color: #16273F; }
/* Traffic (Page Discovery) chart card on the summary tab. */
.ov-traffic-card { margin-top: 30px; background: #fff; border: 1px solid #EAEDF3; border-radius: 16px; padding: 8px 22px 22px; box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05); }
.ov-traffic-card .ov-activity-head { margin: 18px 0 8px; }
.ov-traffic-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ov-traffic-toggle { display: inline-flex; border: 1px solid #DCE1E9; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.ov-traffic-toggle button {
  font-family: "Lexend", sans-serif; font-weight: 600; font-size: 12.5px; color: #5B6675;
  background: #fff; border: 0; padding: 7px 14px; cursor: pointer;
}
.ov-traffic-toggle button + button { border-left: 1px solid #DCE1E9; }
.ov-traffic-toggle button.active { background: #16273F; color: #fff; }
.ov-traffic-canvas { position: relative; height: 260px; }
.ov-row-scanned strong { color: #5B6675; font-weight: 600; }
.ov-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #DCE1E9;
  color: #16273F;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
}
.ov-view:hover { border-color: #16273F; }

/* ---- Status pills (shared) ---- */
.ov-pill {
  display: inline-flex;
  align-items: center;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.ov-pill.clear { color: #1FA97A; background: #E7F7F1; border: 1px solid #CDEDE1; }
.ov-pill.warn { color: #D19A1E; background: #FCF6E4; border: 1px solid #F1E7C4; }
.ov-pill.bad { color: #D14545; background: #FCECEC; border: 1px solid #F5D5D5; }

/* ---- Images grid ---- */
.ov-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ov-image-card {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
}
.ov-image-thumb {
  height: 132px;
  background: repeating-linear-gradient(45deg, #EEF1F6, #EEF1F6 9px, #F6F8FB 9px, #F6F8FB 18px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov-image-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ov-image-meta { padding: 12px 14px; }
.ov-image-name {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #16273F;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-image-status { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- Actionable items: image cards → WCAG Checker, media rows → Media Manager ---- */
.ov-image-card.ov-clickable {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.ov-image-card.ov-clickable:hover {
  transform: translateY(-2px);
  border-color: #C7D0DE;
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.10);
}
.ov-image-card.ov-clickable:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; }
.ov-image-thumb { position: relative; }
.ov-image-action {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(180deg, rgba(22, 39, 63, 0) 0%, rgba(22, 39, 63, .82) 100%);
  opacity: 0;
  transition: opacity .12s ease;
}
.ov-image-card.ov-clickable:hover .ov-image-action,
.ov-image-card.ov-clickable:focus-visible .ov-image-action { opacity: 1; }
.ov-image-card.ov-locked .ov-image-action {
  opacity: 1;
  background: linear-gradient(180deg, rgba(22, 39, 63, 0) 0%, rgba(176, 48, 36, .88) 100%);
}

/* Lock chip shown on items whose target product isn't licensed. */
.ov-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Lexend", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: #B03024;
  background: #FCECEC;
  border: 1px solid #F5D5D5;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.ov-lock svg { display: block; }

/* Media row actions (raw View link + the primary "Manage in Media Manager" action). */
.ov-row-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ov-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16273F;
  border: 1px solid #16273F;
  color: #fff;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.ov-action:hover { background: #0F1B2E; border-color: #0F1B2E; }
.ov-action:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; }
.ov-action.ov-locked { background: #B03024; border-color: #B03024; }
.ov-action.ov-locked:hover { background: #99291F; border-color: #99291F; }
.ov-action svg { display: block; }

.ov-empty {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  padding: 56px 20px;
  text-align: center;
  color: #8791A0;
  font-size: 15px;
}

@media (max-width: 900px) {
  .ov-summary-grid { grid-template-columns: 1fr; }
  .ov-activity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .ov-identity-inner { padding: 20px; }
  .ov-name { font-size: 26px; }
  .ov-tabs-inner { padding: 0 20px; gap: 22px; overflow-x: auto; }
  .ov-counts { grid-template-columns: 1fr 1fr; }
  .ov-activity-grid { grid-template-columns: 1fr; }
  .ov-row-scanned { display: none; }
}

/* Full-width page: widen the shared header/footer to match the content. */
.app-shell .rm-header-inner,
.app-shell .rm-footer-inner { max-width: 90%; }

/* ---- Page detail (drill-down from a page's "View") ---- */
.pd-panel { display: flex; flex-direction: column; gap: 22px; }
.pd-back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: #F4F6FA; border: 1px solid #E7EBF1; border-radius: 10px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: #5B6675;
}
.pd-back:hover { border-color: #3C7CE0; color: #3C7CE0; }
.pd-head .pd-title { font-family: "Lexend", sans-serif; font-size: 22px; font-weight: 700; color: #16273F; line-height: 1.2; }
.pd-url { font-size: 13.5px; color: #5B6675; margin-top: 4px; word-break: break-all; }

/* Screenshot (left) = 50% of the page; count boxes fill the other half. */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pd-shot-card {
  background: #fff; border: 1px solid #EAEDF3; border-radius: 16px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
}
.pd-shot-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid #EEF1F6;
}
.pd-shot-img { width: 100%; height: 380px; overflow: hidden; background: #EEF1F6; }
.pd-shot-img img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 1440 / 900; object-fit: cover; object-position: top;
}
.pd-shot-img.is-empty {
  display: grid; place-items: center; color: #8791A0; font-size: 14px;
  padding: 24px; text-align: center;
}
.pd-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pd-boxes--single { grid-template-columns: 1fr; }
/* PDF preview embed (fills the same card the screenshot uses). */
.pd-embed-card { display: flex; }
.pd-embed { width: 100%; height: 460px; border: 0; display: block; background: #EEF1F6; }
.pd-box {
  background: #fff; border: 1px solid #EAEDF3; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  padding: 22px 20px; min-height: 120px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.pd-box-value { font-family: "Lexend", sans-serif; font-size: 34px; font-weight: 800; line-height: 1; }
.pd-box-label { font-size: 13px; color: #5B6675; font-weight: 600; }

/* ---- Per-page heatmap (above Source pages) ---- */
.pd-heatmap {
  background: #fff; border: 1px solid #EAEDF3; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05); padding: 20px 22px;
}
.pd-heatmap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-sub { display: block; margin-top: 3px; font-size: 13px; color: #8791A0; }
.hm-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hm-ranges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.hm-range {
  font-family: "Lexend", sans-serif; font-weight: 600; font-size: 12.5px; color: #5B6675;
  background: #fff; border: 1px solid #DCE1E9; border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.hm-range[aria-pressed="true"] { background: #16273F; border-color: #16273F; color: #fff; }
.hm-capture {
  font-family: "Lexend", sans-serif; font-weight: 600; font-size: 12.5px; color: #16273F;
  background: #fff; border: 1px solid #DCE1E9; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.hm-capture:hover:not(:disabled) { border-color: #16273F; }
.hm-capture:disabled { color: #9AA4B2; cursor: default; }
.hm-stage { position: relative; width: 100%; border-radius: 12px; overflow: hidden; background: #EEF1F6; line-height: 0; }
.hm-shot { width: 100%; display: block; }
.hm-shot-empty { padding: 60px 20px; text-align: center; color: #8791A0; font-size: 14px; line-height: 1.6; }
.hm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hm-empty {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
  background: rgba(22, 39, 63, 0.82); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; line-height: 1.2;
}

.pd-sources {
  background: #fff; border: 1px solid #EAEDF3; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05); padding: 20px 22px;
}
.pd-sources-head {
  font-size: 15px; font-weight: 700; color: #16273F; margin: 0 0 12px;
  display: flex; align-items: center; gap: 10px;
}
.pd-sources-count {
  font-size: 12px; font-weight: 700; color: #5B6675;
  background: #F0F3F8; border-radius: 999px; padding: 2px 10px;
}
.pd-src-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pd-src-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
  color: #8791A0; padding: 8px 10px; border-bottom: 1px solid #EEF1F6;
}
.pd-src-table td { padding: 10px; border-bottom: 1px solid #F4F6FA; word-break: break-all; }
.pd-src-table tr:last-child td { border-bottom: none; }
.pd-src-table a { color: #3C7CE0; text-decoration: none; }
.pd-src-table a:hover { text-decoration: underline; }
.pd-src-empty { color: #8791A0; }

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
}

/* ============ Settings tab (per-domain crawl schedule and repositories) ============ */
.ov-settings { display: flex; flex-direction: column; gap: 22px; animation: none; }
.ov-set-card { background: #fff; border: 1px solid #EAEDF3; border-radius: 16px; box-shadow: 0 4px 16px rgba(18,38,63,0.05); overflow: visible; }
.ov-set-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; }
.ov-set-head--bordered { border-bottom: 1px solid #EFF1F6; }
.ov-set-head-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.ov-set-head-copy { flex: 1; min-width: 0; }
.ov-set-head-title { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 18px; color: #16273F; }
.ov-set-head-sub { font-size: 13.5px; color: #8791A0; margin-top: 2px; }
/* Visible On/Off state to the left of a switch. aria-hidden: the switch's aria-checked already announces it. */
.ov-set-state { flex: 0 0 auto; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 13px; color: #767676; min-width: 24px; text-align: right; }
.ov-set-state.is-on { color: #1FA97A; }
.ov-set-head .ov-set-state { margin-right: -6px; }
.ov-set-switch { flex: 0 0 auto; width: 48px; height: 28px; border-radius: 999px; border: none; cursor: pointer; position: relative; transition: background .2s ease; }
.ov-set-switch:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; }
.ov-set-knob { position: absolute; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: left .2s ease; }
.ov-set-sub { border-top: 1px solid #EFF1F6; padding: 20px 26px; background: #FBFCFE; }
.ov-set-sub-label { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; color: #98A2B0; margin-bottom: 12px; }
.ov-set-freqs { display: flex; gap: 12px; flex-wrap: wrap; }
.ov-set-freq { display: inline-flex; align-items: center; gap: 11px; background: #fff; border: 1.5px solid #E4E9F1; border-radius: 12px; padding: 11px 16px; cursor: pointer; min-width: 170px; text-align: left; }
.ov-set-freq:hover { border-color: #CBD6E4; }
.ov-set-freq.sel { background: #FEF4F2; border-color: #F3B9AE; }
.ov-set-radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #CBD4E0; }
.ov-set-freq.sel .ov-set-radio { background: #E8402A; border: none; }
.ov-set-radio-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ov-set-freq-label { display: block; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 14px; color: #16273F; }
.ov-set-freq-desc { display: block; font-size: 12px; color: #8791A0; }
.ov-set-next { font-size: 12.5px; color: #98A2B0; margin-top: 14px; }
@media (max-width: 800px) {
  .ov-set-head { flex-wrap: wrap; }
}

/* ---- Settings tab: Crawl browser card (#ovStaffCrawl, Recite staff only) ---- */
.ov-staff-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #EAF1FC; color: #1F4FA8; font-size: 11.5px; font-weight: 600; vertical-align: middle; }
.ov-staff-fieldset { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ov-staff-legend { padding: 0; margin: 0 0 10px; font-family: 'Lexend', sans-serif; font-weight: 600; font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; color: #5B6675; }
.ov-staff-option { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; row-gap: 2px; align-items: center; }
.ov-staff-option input { width: 20px; height: 20px; margin: 0; accent-color: #E8402A; }
.ov-staff-option input:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; }
.ov-staff-option label { cursor: pointer; }
.ov-staff-option .ov-set-freq-desc { grid-column: 2; }

/* ---- Settings tab: Source repositories card (#ovRepos) ---- */
.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; }
.ov-repo-card .ov-set-head { flex-wrap: wrap; }
.ov-repo-body { padding: 22px 26px 18px; }
.ov-repo-empty { margin: 0; font-size: 14px; color: #5B6675; line-height: 1.5; }
.ov-repo-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ov-repo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 22px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #EAEDF3;
  border-radius: 14px;
  background: #FBFCFE;
}
.ov-repo-row[aria-busy="true"] { opacity: 0.75; }
.ov-repo-main { min-width: 0; }
.ov-repo-name { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 15px; color: #16273F; text-decoration: none; word-break: break-all; }
.ov-repo-name:hover { text-decoration: underline; }
.ov-repo-name:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; border-radius: 4px; }
.ov-repo-ext { color: #8791A0; font-weight: 500; }
.ov-repo-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 8px 0 0; font-size: 13px; }
.ov-repo-meta > div { display: flex; gap: 6px; min-width: 0; }
.ov-repo-meta dt { color: #8791A0; }
.ov-repo-meta dd { margin: 0; color: #16273F; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all; }
.ov-repo-msg { margin: 8px 0 0; font-size: 13px; color: #5B6675; line-height: 1.45; }
.ov-repo-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ov-repo-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ov-repo-when { font-size: 12px; color: #8791A0; }
.ov-repo-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* Compact buttons for row/form actions — still comfortably above the 24px target minimum. */
.ov-repo-btn { padding: 8px 14px; font-size: 13.5px; min-height: 36px; min-width: 36px; cursor: pointer; }
.ov-repo-btn:disabled { cursor: default; opacity: 0.55; }
.dl-btn-primary.ov-repo-btn:disabled { opacity: 1; }
.ov-repo-btn:focus-visible, .ov-repo-input:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; }
.ov-repo-btn--danger { color: #D14545; border-color: #F5D5D5; }
.ov-repo-btn--danger:hover { background: #FCECEC; }
.ov-repo-confirm { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid #F5D5D5; border-radius: 12px; background: #FCECEC; }
.ov-repo-confirm p { margin: 0 0 12px; font-size: 14px; color: #16273F; line-height: 1.45; }
.ov-repo-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.ov-repo-form { margin-top: 18px; padding: 20px 22px; border: 1px solid #EAEDF3; border-radius: 16px; background: #fff; }
.ov-repo-form-title { margin: 0 0 16px; font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 16px; color: #16273F; }
.ov-repo-field { margin-bottom: 16px; }
.ov-repo-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.ov-repo-field .dl-field-input { margin-bottom: 0; }
.ov-repo-field .dl-field-input.is-invalid { border-color: #D14545; }
.ov-repo-field .dl-field-input:focus { border-color: #2F6FE0; box-shadow: 0 0 0 3px rgba(47, 111, 224, 0.16); }
.ov-repo-optional { font-weight: 500; color: #8791A0; }
.ov-repo-hint { margin: 7px 0 0; font-size: 12.5px; color: #5B6675; line-height: 1.5; }
.ov-repo-hint code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; background: #F3F5F9; padding: 1px 5px; border-radius: 5px; }
.ov-repo-hint a { color: #2F6FE0; }
.ov-repo-err { margin: 7px 0 0; font-size: 13px; color: #B53A3A; line-height: 1.45; font-weight: 600; }
.ov-repo-form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ov-repo-status { text-align: left; margin-top: 14px; }
.ov-repo-status:empty { margin-top: 0; min-height: 0; }
@media (max-width: 720px) {
  .ov-repo-row { grid-template-columns: 1fr; }
  .ov-repo-side { align-items: flex-start; }
  .ov-repo-state, .ov-repo-actions { justify-content: flex-start; }
}

/* ============================================================
   Portfolios (design_handoff_domain_portfolios). Lexend replaces the handoff's Poppins — the
   suite standardised on Lexend. Colour tints are the portfolio hex + a 2-digit alpha suffix
   (chips 14, rollup bg 0F, rollup border 33), applied inline from app.js.
   ============================================================ */
.dl-pf-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.dl-pf-bar[hidden] { display: none; }
.dl-pf-chip {
  display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid #E4E8EF; background: #fff;
  border-radius: 999px; padding: 9px 16px; cursor: pointer; font-family: "Lexend", sans-serif; font-weight: 600;
  font-size: 14px; color: #5B6675; transition: all .15s ease;
}
.dl-pf-chip.is-active { color: #16273F; }
.dl-pf-chip-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.dl-pf-chip-count { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12px; color: #5F6A79; }
.dl-pf-divider { width: 1px; height: 26px; background: #E2E6ED; margin: 0 4px; }
.dl-pf-new {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px dashed #C9D3E0; border-radius: 999px;
  padding: 9px 16px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 14px; color: #5B6675; cursor: pointer;
}
.dl-pf-new:hover { border-color: #E8402A; color: #E8402A; }

.dl-pf-rollup { border-radius: 18px; padding: 20px 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 20px; }
.dl-pf-rollup-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.dl-pf-rollup-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; }
.dl-pf-rollup-name { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 19px; color: #16273F; line-height: 1.2; }
.dl-pf-rollup-count { font-size: 13px; color: #5B6675; margin-top: 2px; }
.dl-pf-figures { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.dl-pf-figure-value { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 20px; color: #16273F; line-height: 1; }
.dl-pf-figure-value.is-avg { font-weight: 800; font-size: 26px; }
.dl-pf-figure-label { font-size: 11.5px; color: #5F6A79; font-weight: 600; margin-top: 4px; }
.dl-pf-rollup-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dl-pf-edit {
  display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #DCE1E9; border-radius: 11px;
  padding: 9px 15px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 13.5px; color: #5B6675; cursor: pointer;
}
.dl-pf-edit:hover { border-color: #16273F; color: #16273F; }
.dl-pf-trash { width: 38px; height: 38px; border-radius: 11px; background: #fff; border: 1px solid #DCE1E9; color: #5F6A79; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dl-pf-trash:hover { border-color: #D14545; color: #D14545; }

.dl-pf-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; background: #fff; border: 1px solid #EAEDF3; border-radius: 16px; }
.dl-pf-empty[hidden] { display: none; }
.dl-pf-empty-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 19px; color: #16273F; margin-bottom: 6px; }
.dl-pf-empty-text { font-size: 14.5px; color: #5F6A79; max-width: 400px; margin: 0; }

/* Portfolio tags on a domain card (every portfolio listing it, whatever the active filter). */
.dl-card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: -8px 0 18px; }
.dl-card-tag { display: inline-flex; align-items: center; gap: 6px; background: #F7F9FC; border: 1px solid #E7EBF1; border-radius: 999px; padding: 4px 11px; font-family: "Lexend", sans-serif; font-weight: 600; font-size: 11.5px; color: #5B6675; }
.dl-card-tag-dot { width: 7px; height: 7px; border-radius: 50%; }

/* Create / edit modal. The chrome is fixed; the list is the ONLY scroll region, capped rather
   than flexed (a flexed list collapsed to 6px under the chrome's height); the name/colour row
   must never wrap (a second line ate the height the cap had freed). See the handoff README. */
.dl-modal--above { z-index: 71; }
.dl-pf-modal-card { width: 520px; max-width: 100%; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; }
.dl-pf-modal-title { flex: 0 0 auto; margin: 0 0 16px; }
.dl-pf-row { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.dl-pf-name-wrap { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dl-pf-colour-wrap { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.dl-pf-label { font-family: "Lexend", sans-serif; font-weight: 600; font-size: 12.5px; color: #5B6675; }
.dl-pf-name { width: 100%; padding: 11px 14px; border: 1px solid #DCE1E9; border-radius: 12px; font-family: "Mulish", sans-serif; font-size: 15px; color: #16273F; outline: none; }
.dl-pf-name:focus { border-color: #E8402A; box-shadow: 0 0 0 3px rgba(232, 64, 42, 0.14); }
.dl-pf-swatches { display: flex; gap: 6px; }
.dl-pf-swatch { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; border: 3px solid transparent; box-shadow: 0 2px 6px rgba(18,38,63,0.14); cursor: pointer; padding: 0; }
.dl-pf-swatch[aria-checked="true"] { border-color: #16273F; }
.dl-pf-search { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; background: #F7F9FC; border: 1.5px solid #E4E9F1; border-radius: 12px; padding: 9px 13px; margin-bottom: 10px; }
.dl-pf-search-input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-family: "Mulish", sans-serif; font-size: 14px; color: #16273F; }
.dl-pf-search-clear { width: 24px; height: 24px; border-radius: 7px; background: #fff; border: 1px solid #E4E9F1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.dl-pf-search-clear[hidden] { display: none; }
.dl-pf-count { flex: 0 0 auto; font-size: 12.5px; color: #5F6A79; white-space: nowrap; }
.dl-pf-list { flex: 0 1 auto; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; padding-right: 4px; }
.dl-pf-option { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid #E9ECF2; border-radius: 12px; padding: 11px 14px; cursor: pointer; }
.dl-pf-option[aria-pressed="true"] { background: #F5F8FE; border-color: #B9CEF0; }
.dl-pf-option-box { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; background: #fff; border: 1.5px solid #CBD4E0; display: inline-flex; align-items: center; justify-content: center; }
.dl-pf-option[aria-pressed="true"] .dl-pf-option-box { background: #2F6FE0; border-color: #2F6FE0; }
.dl-pf-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dl-pf-option-label { font-family: "Lexend", sans-serif; font-weight: 600; font-size: 14.5px; color: #16273F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-pf-option-url { font-size: 12.5px; color: #5F6A79; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-pf-nohits { padding: 20px 14px; text-align: center; border: 1.5px dashed #E4E9F1; border-radius: 12px; font-size: 13.5px; color: #5F6A79; }
.dl-pf-hidden-note { font-size: 12.5px; color: #95530D; margin-top: 5px; }
.dl-pf-error { font-size: 13px; color: #D14545; margin: -8px 0 12px; }
.dl-pf-error[hidden] { display: none; }
.dl-pf-footer { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.dl-pf-footer-actions { display: flex; gap: 12px; margin-left: auto; }
.dl-pf-delete-link { font-family: "Lexend", sans-serif; font-weight: 600; font-size: 14px; color: #D14545; background: none; border: none; padding: 11px 4px; cursor: pointer; }
.dl-pf-delete-link[hidden] { display: none; }
.dl-pf-save { font-family: "Lexend", sans-serif; font-weight: 600; font-size: 14px; color: #fff; background: #C9331D; border: none; border-radius: 12px; padding: 11px 20px; cursor: pointer; }
.dl-pf-save[aria-disabled="true"] { color: #5B6675; background: #EDF0F5; cursor: default; }

/* ---- Summary → Issues (mirrors fe-dashboard's Digital issues cells): 8 cards, 4 per row ---- */
.ov-issues-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .ov-issues-grid { grid-template-columns: repeat(2, 1fr); } }
.ov-issue-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0;
  background: #fff; border: 1px solid #EAEDF3; border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
}
.ov-issue-top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.ov-issue-icon { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.ov-issue-tag { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: 0.3px; text-transform: uppercase; color: #5B6675; }
.ov-issue-value { font-family: "Lexend", sans-serif; font-weight: 800; font-size: 32px; color: #16273F; line-height: 1; }
.ov-issue-label { font-size: 13.5px; font-weight: 600; color: #33404F; }
.ov-issue-share { font-size: 12px; color: #5B6675; line-height: 1.4; }
.ov-issue-cta {
  margin-top: auto; padding-top: 12px; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: "Lexend", sans-serif; font-weight: 700; font-size: 12px; color: #16273F;
  background: #fff; border: 1.5px solid #E4E9F1; border-radius: 9px; padding: 9px 12px; cursor: pointer;
}
.ov-issue-cta { box-sizing: border-box; }
.ov-issue-cta:hover { border-color: #16273F; }
.ov-issue-cta.is-locked { background: #F1F4FA; border-color: #DCE3EC; color: #3B4757; }

/* ---- Domain avatar: homepage favicon first, lettered square as the fallback ---- */
/* The letter is always in the markup; .has-icon hides it while an icon is present, and the
   image's onerror removes .has-icon so a broken icon file just shows the square again. */
.dl-fav, .ov-fav { position: relative; overflow: hidden; }
.dl-fav.has-icon, .ov-fav.has-icon { background: #fff !important; border: 1px solid #EAEDF3; }
.dl-fav-img { width: 72%; height: 72%; object-fit: contain; display: block; }
.has-icon .dl-fav-letter { display: none; }


/* ============================================================
   Access settings (Basic auth / headers / cookies): the add-domain modal's slide-down and the
   Settings tab card. The slide-down animates grid-template-rows (0fr → 1fr) so the panel's
   natural height is never measured in JS; reduced-motion users get an instant toggle.
   ============================================================ */
#addModal .dl-modal-card { width: 520px; max-height: calc(100vh - 48px); overflow-y: auto; }
.dl-access-toggle {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 14px; padding: 12px 14px;
  border: 1.5px solid #E4E8EF; border-radius: 12px; background: #F8FAFD; cursor: pointer; text-align: left;
  font-family: 'Lexend', sans-serif; color: #16273F;
}
.dl-access-toggle:hover { border-color: #C9D3E0; background: #F3F6FB; }
.dl-access-toggle:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; }
.dl-access-toggle-icon { flex: 0 0 auto; display: inline-flex; width: 34px; height: 34px; border-radius: 9px; background: #EAF1FC; align-items: center; justify-content: center; }
.dl-access-toggle-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dl-access-toggle-title { font-weight: 700; font-size: 14px; }
.dl-access-toggle-sub { font-size: 12.5px; color: #5B6675; line-height: 1.4; }
.dl-access-toggle-chevron { flex: 0 0 auto; transition: transform .2s ease; }
.dl-access-toggle[aria-expanded="true"] .dl-access-toggle-chevron { transform: rotate(180deg); }
.dl-access-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.dl-access-panel.is-open { grid-template-rows: 1fr; }
.dl-access-panel[hidden] { display: none; }
.dl-access-panel-inner { overflow: hidden; min-height: 0; }
.dl-access-panel.is-open .dl-access-panel-inner { overflow: visible; }
.dl-access-status { text-align: left; margin: 0 0 10px; }
.dl-access-status:empty { display: none; }
.dl-access-section { border: 1px solid #EAEDF3; border-radius: 12px; padding: 14px 16px 16px; margin: 0 0 14px; min-width: 0; }
.dl-access-legend { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 14px; color: #16273F; padding: 0 6px; }
.dl-access-hint { margin: 0 0 12px; }
.dl-access-basic { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.dl-access-basic .dl-field-input, .dl-access-row .dl-field-input { margin-bottom: 0; }
.dl-access-basic > div { margin-bottom: 4px; }
.dl-access-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.dl-access-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 36px; gap: 8px; align-items: center; }
.dl-access-remove {
  width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid #E4E8EF; background: #fff; color: #5B6675;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.dl-access-remove:hover { color: #D14545; border-color: #F5D5D5; background: #FCECEC; }
.dl-access-remove:focus-visible, .dl-access-input:focus-visible, .dl-access-add:focus-visible { outline: 2px solid #2F6FE0; outline-offset: 2px; }
.dl-access-none { margin: 0 0 12px; font-size: 13.5px; color: #8791A0; }
.dl-access-add { font-size: 13.5px; }
.dl-access-input.is-invalid { border-color: #D14545; }
.dl-access-err { margin-top: 8px; }
.dl-access-summary { flex-direction: column; gap: 10px; }
.dl-access-summary > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; }
.dl-access-summary dd { font-family: inherit; }
.dl-access-namelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dl-access-namelist code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; background: #F3F5F9; padding: 1px 6px; border-radius: 5px; }
.dl-access-muted { color: #8791A0; font-size: 12.5px; }
.dl-access-when { margin: 12px 0 0; display: block; }
.dl-access-form .dl-access-section { background: #FAFBFD; }
@media (prefers-reduced-motion: reduce) { .dl-access-panel, .dl-access-toggle-chevron { transition: none; } }
@media (max-width: 560px) { .dl-access-row { grid-template-columns: 1fr; } .dl-access-remove { justify-self: end; } .dl-access-summary > div { grid-template-columns: 1fr; } }

/* Page heading + subtitle — identical to the Dashboard's .db-greeting / .db-subtitle, suite-wide. */
.dl-title, .hero-title { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 38px; line-height: 1.05; letter-spacing: -0.5px; color: #16273F; margin: 0 0 6px; }
.dl-subtitle { font-size: 15.5px; font-weight: 400; color: #5B6675; margin: 0; }
