@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, #F5F3FB 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: 10px;
  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)
   Poppins/Mulish, gradient surface, card grid + modals.
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins: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: "Poppins", 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.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: "Poppins", 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: 20px;
  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: "Poppins", 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-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: 20px;
  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-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;
}
.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: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.dl-card-id { flex: 1; min-width: 0; }
.dl-card-name {
  font-family: "Poppins", 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: "Poppins", 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: "Poppins", 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-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: "Poppins", 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: "Poppins", 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: 20px;
  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: "Poppins", 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: 20px;
  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: "Poppins", 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: "Poppins", 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: "Poppins", 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: "Poppins", 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: "Poppins", 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: "Poppins", 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: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 24px;
}
.ov-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 32px;
  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: "Poppins", 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: "Poppins", 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;
}
.ov-tab {
  appearance: none;
  background: none;
  border: none;
  font-family: "Poppins", 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; }

/* ---- 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: 20px;
  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; }
.ov-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.ov-count-card {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: 0 4px 16px rgba(18, 38, 63, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.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: "Poppins", sans-serif; font-weight: 800; font-size: 30px; color: #16273F; line-height: 1; }
.ov-count-label { font-size: 13.5px; color: #8791A0; font-weight: 600; margin-top: 6px; }

/* ---- Summary: activity ---- */
.ov-activity-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 16px; }
.ov-activity-head h2 { font-family: "Poppins", 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: 18px;
  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: "Poppins", 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: "Poppins", sans-serif; font-weight: 800; font-size: 32px; color: #16273F; line-height: 1; }
.ov-trend {
  font-family: "Poppins", 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: 18px;
  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: "Poppins", 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; }
.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: "Poppins", 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: "Poppins", 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: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #16273F;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-image-status { margin-top: 8px; }

.ov-empty {
  background: #fff;
  border: 1px solid #EAEDF3;
  border-radius: 18px;
  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: "Poppins", 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: 20px;
  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: "Poppins", sans-serif; font-size: 34px; font-weight: 800; line-height: 1; }
.pd-box-label { font-size: 13px; color: #5B6675; font-weight: 600; }

.pd-sources {
  background: #fff; border: 1px solid #EAEDF3; border-radius: 18px;
  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 + a11y standard) ============ */
.ov-settings { display: flex; flex-direction: column; gap: 22px; animation: none; }
.ov-set-card { background: #fff; border: 1px solid #EAEDF3; border-radius: 20px; 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: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: #16273F; }
.ov-set-head-sub { font-size: 13.5px; color: #8791A0; margin-top: 2px; }
.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: 'Poppins', 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: 'Poppins', 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; }
.ov-set-std-select { position: relative; flex: 0 0 auto; }
.ov-set-std-btn { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid #E4E8EF; border-radius: 12px; padding: 11px 15px; cursor: pointer; min-width: 250px; }
.ov-set-std-btn:hover { border-color: #C7D0DD; }
.ov-set-std-btn-kicker { display: block; font-size: 11px; color: #98A2B0; }
.ov-set-std-btn-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #16273F; }
.ov-set-std-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: 320px; max-height: 360px; overflow-y: auto; background: #fff; border: 1px solid #E7EBF1; border-radius: 14px; box-shadow: 0 18px 44px rgba(16,26,40,0.18); padding: 6px; }
.ov-set-std-opt { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 10px; cursor: pointer; border: none; background: transparent; text-align: left; }
.ov-set-std-opt:hover { background: #F6F8FC; }
.ov-set-std-opt.sel { background: #F6F8FC; }
.ov-set-check { 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-std-opt.sel .ov-set-check { background: #E8402A; border: none; }
.ov-set-std-name { display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #16273F; }
.ov-set-std-region { display: block; font-size: 12px; color: #8791A0; }
.ov-set-detail { padding: 24px 26px; }
.ov-set-detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.ov-set-detail-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 22px; color: #16273F; }
.ov-set-region-pill { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12.5px; color: #2F6FE0; background: #EAF1FC; border: 1px solid #D3E2FA; border-radius: 999px; padding: 5px 12px; }
.ov-set-target-pill { display: inline-flex; align-items: center; gap: 6px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12.5px; color: #1FA97A; background: #E7F7F1; border: 1px solid #CDEDE1; border-radius: 999px; padding: 5px 12px; }
.ov-set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ov-set-block { background: #FBFCFE; border: 1px solid #EAEDF3; border-radius: 14px; padding: 18px 20px; }
.ov-set-block-head { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ov-set-block-icon { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ov-set-block-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; color: #16273F; }
.ov-set-block-text { margin: 0; font-size: 13.5px; color: #5B6675; line-height: 1.55; }
.ov-set-bullets { margin: 0; padding: 0 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ov-set-bullets li { display: flex; gap: 9px; font-size: 13.5px; color: #5B6675; line-height: 1.5; }
.ov-set-dot { flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; margin-top: 7px; }
@media (max-width: 800px) {
  .ov-set-grid { grid-template-columns: 1fr; }
  .ov-set-head { flex-wrap: wrap; }
  .ov-set-std-select { width: 100%; }
  .ov-set-std-btn { width: 100%; }
  .ov-set-std-menu { width: 100%; }
}
