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

:root {
  color: #f8fafc;
  background: #020617;
  font-family:
    Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #020617;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: #1769e0;
  text-decoration: none;
}

.app-shell {
  background:
    radial-gradient(circle at 18% 0%, rgb(59 130 246 / 18%), transparent 28%),
    radial-gradient(circle at 88% 16%, rgb(14 165 233 / 12%), transparent 24%),
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    #020617;
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.hidden,
.login-screen.hidden {
  display: none;
}

.login-screen {
  align-items: center;
  background:
    linear-gradient(rgb(2 6 23 / 10%), rgb(2 6 23 / 92%)),
    radial-gradient(circle at 18% 18%, rgb(59 130 246 / 32%), transparent 30%),
    radial-gradient(circle at 86% 6%, rgb(14 165 233 / 22%), transparent 24%),
    radial-gradient(circle at 70% 78%, rgb(249 115 22 / 12%), transparent 22%),
    linear-gradient(135deg, #0b132b, #020617 58%, #030712);
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: 20px;
  place-items: center;
  position: relative;
}

.login-screen::before {
  background-image:
    linear-gradient(rgb(148 163 184 / 8%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 184 / 8%) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}

.login-screen::after {
  background: linear-gradient(90deg, transparent, rgb(125 211 252 / 60%), transparent);
  content: "";
  height: 1px;
  left: 50%;
  max-width: 70rem;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 82vw;
}

.login-panel {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 12%), transparent 18%),
    linear-gradient(315deg, rgb(59 130 246 / 18%), transparent 34%),
    rgb(2 6 23 / 82%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 8%),
    0 24px 80px rgb(59 130 246 / 24%),
    0 18px 60px rgb(2 6 23 / 45%);
  display: grid;
  gap: 18px;
  max-width: 460px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  width: 100%;
}

.login-panel::before {
  background: linear-gradient(90deg, #3b82f6, #7dd3fc 70%, #f97316);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.login-panel h1 {
  color: #fff;
  font-family: Sora, Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.08;
}

.login-brand {
  justify-items: center;
  display: grid;
  gap: 14px;
  margin-bottom: 2px;
  position: relative;
  text-align: center;
}

.login-logo-glow {
  background: radial-gradient(circle, rgb(59 130 246 / 34%), transparent 62%);
  filter: blur(14px);
  height: 84px;
  left: 50%;
  opacity: 0.7;
  position: absolute;
  top: -16px;
  transform: translateX(-50%);
  width: 220px;
}

.login-jsdm-logo {
  filter: drop-shadow(0 0 10px rgb(59 130 246 / 28%));
  height: auto;
  max-width: 230px;
  position: relative;
  width: 68%;
}

.login-product-row {
  align-items: center;
  color: #f8fafc;
  display: flex;
  font-size: 22px;
  font-weight: 800;
  gap: 12px;
}

.login-kicker {
  align-items: center;
  background: rgb(125 211 252 / 10%);
  border: 1px solid rgb(125 211 252 / 20%);
  border-radius: 999px;
  color: #bae6fd;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-self: center;
  padding: 8px 12px;
}

.login-kicker span {
  background: #6ee7b7;
  border-radius: 999px;
  box-shadow: 0 0 18px rgb(110 231 183 / 80%);
  height: 8px;
  width: 8px;
}

.login-copy {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.login-panel label {
  color: #cbd5e1;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.login-panel input {
  background: rgb(2 6 23 / 70%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 8px;
  color: #fff;
  height: 44px;
  padding: 0 12px;
}

.login-panel input:focus {
  border-color: rgb(59 130 246 / 70%);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 18%);
  outline: 0;
}

.login-panel .button.primary {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 24px 80px rgb(59 130 246 / 24%);
  min-height: 46px;
}

.login-panel .button.primary:hover {
  background: #2563eb;
}

.login-panel p {
  color: #d92d20;
  font-size: 13px;
  min-height: 18px;
}

.login-panel .login-copy {
  color: #cbd5e1;
  min-height: 0;
}

#loginError {
  color: #fca5a5;
  min-height: 18px;
}

.sidebar {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 8%), transparent 26%),
    rgb(2 6 23 / 90%);
  border-right: 1px solid rgb(255 255 255 / 10%);
  box-shadow: inset -1px 0 0 rgb(59 130 246 / 12%);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
}

.brand {
  align-items: center;
  display: flex;
  font-size: 22px;
  font-weight: 800;
  gap: 12px;
  margin-bottom: 28px;
  color: #f8fafc;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #1769e0 0%, #123f91 100%);
  border-radius: 8px;
  color: #fff;
  display: grid;
  height: 38px;
  overflow: hidden;
  place-items: center;
  position: relative;
  width: 38px;
}

.brand-mark::after {
  background: rgb(255 255 255 / 18%);
  content: "";
  height: 54px;
  position: absolute;
  right: -24px;
  top: -8px;
  transform: rotate(24deg);
  width: 26px;
}

.brand-link {
  border: 2px solid #fff;
  border-radius: 8px;
  height: 12px;
  position: absolute;
  width: 20px;
}

.brand-link-left {
  left: 8px;
  top: 13px;
  transform: rotate(-28deg);
}

.brand-link-right {
  right: 8px;
  top: 13px;
  transform: rotate(-28deg);
}

.brand-pulse {
  background: #35d07f;
  border: 2px solid #123f91;
  border-radius: 999px;
  bottom: 6px;
  box-shadow: 0 0 0 3px rgb(53 208 127 / 22%);
  height: 10px;
  position: absolute;
  right: 6px;
  width: 10px;
  z-index: 1;
}

.sidebar-section {
  margin-bottom: 22px;
}

.section-title {
  align-items: center;
  color: #94a3b8;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.12em;
  margin: 0 4px 10px;
  text-transform: uppercase;
}

.plain-icon {
  background: transparent;
  border: 0;
  color: #7dd3fc;
  cursor: pointer;
  font-size: 20px;
}

.project-list,
.nav-list,
.change-list {
  display: grid;
  gap: 6px;
}

.project,
.nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  text-align: left;
}

.project-icon {
  color: #7dd3fc;
  font-size: 20px;
}

.project span:last-child {
  display: grid;
  gap: 2px;
}

.project small {
  color: #94a3b8;
  font-size: 12px;
}

.project.active,
.nav-item.active {
  background: rgb(59 130 246 / 16%);
  border-color: rgb(59 130 246 / 28%);
  color: #fff;
  box-shadow: 0 0 24px rgb(59 130 246 / 12%);
}

.nav-list {
  border-top: 1px solid rgb(255 255 255 / 10%);
  margin-top: 0;
  padding-top: 14px;
}

.main {
  min-width: 0;
  padding: 22px 26px 28px;
  position: relative;
}

.main::before {
  background: linear-gradient(90deg, transparent, rgb(125 211 252 / 45%), transparent);
  content: "";
  height: 1px;
  left: 26px;
  position: absolute;
  right: 26px;
  top: 0;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #fff;
  font-family: Sora, Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.topbar p {
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 4px;
}

.toolbar,
.table-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search {
  align-items: center;
  background: rgb(2 6 23 / 72%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  color: #94a3b8;
  display: flex;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
}

.search input {
  background: transparent;
  border: 0;
  color: #f8fafc;
  min-width: 220px;
  outline: 0;
}

.search input::placeholder {
  color: #64748b;
}

.search.compact input {
  min-width: 260px;
}

.button,
.select-button,
.icon-button {
  align-items: center;
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}

.button {
  background: rgb(255 255 255 / 7%);
  color: #dbeafe;
  font-weight: 650;
  height: 42px;
  padding: 0 14px;
}

.button.primary {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 18px 48px rgb(59 130 246 / 22%);
  color: #fff;
}

.button.subtle {
  color: #cbd5e1;
}

.file-button input {
  display: none;
}

.select-button,
.icon-button {
  background: rgb(255 255 255 / 7%);
  color: #cbd5e1;
  min-height: 34px;
  padding: 0 10px;
}

.icon-button {
  aspect-ratio: 1;
  font-size: 18px;
  min-height: 32px;
  padding: 0;
}

.icon-button.danger {
  color: #d92d20;
}

.metrics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  margin-bottom: 18px;
}

.refresh-banner {
  align-items: center;
  background: rgb(245 158 11 / 10%);
  border: 1px solid rgb(245 158 11 / 28%);
  border-radius: 8px;
  color: #fde68a;
  display: flex;
  font-size: 14px;
  font-weight: 650;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 10px 12px;
}

.refresh-banner.hidden {
  display: none;
}

.view.hidden {
  display: none;
}

.scheduler-panel {
  align-items: center;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.scheduler-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scheduler-form label {
  color: #cbd5e1;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
}

.scheduler-form input {
  background: rgb(2 6 23 / 72%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  height: 42px;
  padding: 0 10px;
  width: 96px;
}

.scheduler-panel p {
  color: #94a3b8;
  font-size: 13px;
  text-align: right;
}

.settings-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.settings-card {
  align-content: start;
  display: grid;
  gap: 14px;
}

.settings-card:first-child {
  grid-row: span 2;
}

.settings-form {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.settings-form label,
.settings-form input,
.settings-form select {
  width: 100%;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.settings-status,
.settings-copy {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.settings-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.settings-list div {
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.settings-list dt {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.settings-list dd {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.reports-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.report-card {
  align-content: start;
  display: grid;
  gap: 14px;
}

.report-card:nth-child(2) {
  grid-row: span 2;
}

.report-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.report-list div {
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding-bottom: 10px;
}

.report-list dt {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.report-list dd {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-table {
  min-width: 620px;
}

.report-issue-list {
  display: grid;
  gap: 10px;
}

.report-issue {
  align-items: flex-start;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 12px;
}

.report-issue div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-issue a,
.report-issue small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-issue small {
  color: #94a3b8;
}

.metric,
.panel,
.table-section {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 9%), transparent 22%),
    rgb(2 6 23 / 74%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 18px 60px rgb(2 6 23 / 32%);
  backdrop-filter: blur(18px);
}

.metric {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 14px;
}

.metric-label {
  align-items: center;
  color: #94a3b8;
  display: flex;
  font-size: 13px;
  gap: 7px;
}

.metric strong {
  color: #fff;
  font-size: 29px;
}

.metric span:last-child {
  color: #94a3b8;
  font-size: 13px;
}

.dot {
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.alive,
.dot.alive {
  color: #159447;
  stroke: #159447;
}

.dot.alive {
  background: #159447;
}

.missing-link,
.dead-page,
.error,
.blocked,
.canonical-conflict,
.blocked-reachable,
.dot.missing-link,
.dot.dead-page,
.dot.error,
.dot.blocked,
.dot.blocked-reachable,
.dot.canonical-conflict {
  color: #d92d20;
  stroke: #d92d20;
}

.dot.missing-link,
.dot.dead-page,
.dot.error,
.dot.blocked,
.dot.blocked-reachable,
.dot.canonical-conflict {
  background: #d92d20;
}

.blocked-reachable,
.dot.blocked-reachable {
  color: #e87800;
  stroke: #e87800;
}

.dot.blocked-reachable {
  background: #e87800;
}

.redirected,
.dot.redirected {
  color: #e87800;
  stroke: #e87800;
}

.dot.redirected {
  background: #e87800;
}

.noindex,
.dot.noindex {
  color: #1769e0;
  stroke: #1769e0;
}

.dot.noindex {
  background: #1769e0;
}

.nofollow,
.unchecked,
.js-rendered,
.non-html,
.dot.nofollow,
.dot.unchecked,
.dot.js-rendered,
.dot.non-html {
  color: #94a3b8;
  stroke: #94a3b8;
}

.dot.nofollow,
.dot.unchecked,
.dot.js-rendered,
.dot.non-html {
  background: #94a3b8;
}

.overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin-bottom: 18px;
}

.panel {
  padding: 18px;
}

.panel-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-header h2 {
  color: #fff;
  font-family: Sora, Manrope, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.chart {
  min-height: 260px;
  position: relative;
}

.chart-lines {
  inset: 20px 0 42px;
  position: absolute;
}

.chart-lines span {
  border-top: 1px solid rgb(255 255 255 / 8%);
  display: block;
  height: 25%;
}

.chart svg {
  height: 230px;
  position: relative;
  width: 100%;
}

.line {
  fill: none;
  stroke-width: 3;
}

.line.redirected {
  stroke: #e87800;
}

.line.noindex {
  stroke: #1769e0;
}

.line.dead {
  stroke: #d92d20;
}

.chart-axis {
  color: #94a3b8;
  display: flex;
  font-size: 12px;
  justify-content: space-around;
}

.change-item {
  align-items: flex-start;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 10px 0;
}

.alert-list {
  display: grid;
  gap: 6px;
}

.alert-item {
  align-items: flex-start;
  background: rgb(239 68 68 / 10%);
  border: 1px solid rgb(248 113 113 / 22%);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 10px;
}

.alert-item span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.alert-item a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-item small {
  color: #94a3b8;
}

.panel-divider {
  border-top: 1px solid rgb(255 255 255 / 8%);
  margin: 14px 0;
}

.subpanel-title {
  font-size: 14px;
  margin-bottom: 8px;
}

.change-icon {
  align-items: center;
  border: 1px solid currentcolor;
  border-radius: 999px;
  display: grid;
  font-weight: 800;
  height: 24px;
  place-items: center;
  width: 24px;
}

.change-item span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.change-item a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.change-item small {
  color: #94a3b8;
}

.table-section {
  overflow: hidden;
}

.table-tools {
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  padding: 16px;
}

select {
  background: rgb(2 6 23 / 72%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  color: #f8fafc;
  height: 42px;
  padding: 0 36px 0 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  font-size: 13px;
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #cbd5e1;
}

td a {
  display: inline-block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 6px;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
  padding: 7px 10px;
}

.verification-note {
  color: #94a3b8;
  display: block;
  font-size: 11px;
  margin-top: 5px;
}

.status-pill.alive {
  background: rgb(34 197 94 / 13%);
}

.status-pill.missing-link,
.status-pill.dead-page,
.status-pill.error,
.status-pill.blocked,
.status-pill.blocked-reachable,
.status-pill.canonical-conflict {
  background: #ffeded;
  background: rgb(239 68 68 / 13%);
}

.status-pill.redirected {
  background: rgb(249 115 22 / 14%);
}

.status-pill.blocked-reachable {
  background: rgb(249 115 22 / 14%);
}

.status-pill.noindex {
  background: rgb(59 130 246 / 14%);
}

.status-pill.nofollow,
.status-pill.unchecked,
.status-pill.js-rendered,
.status-pill.non-html {
  background: rgb(148 163 184 / 14%);
}

.modal-backdrop {
  align-items: center;
  background: rgb(15 23 42 / 40%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  background:
    linear-gradient(135deg, rgb(255 255 255 / 10%), transparent 20%),
    rgb(2 6 23 / 94%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(2 6 23 / 70%);
  display: grid;
  gap: 16px;
  max-width: 520px;
  padding: 20px;
  width: 100%;
}

.history-modal {
  max-width: 680px;
}

.bulk-modal {
  max-width: 640px;
}

.verify-modal {
  max-width: 720px;
}

.modal-header,
.modal-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.modal-header p {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 5px;
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal label {
  color: #cbd5e1;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.modal input,
.modal textarea,
.modal select {
  background: rgb(2 6 23 / 72%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  color: #f8fafc;
  min-height: 42px;
  padding: 10px 12px;
}

.modal textarea {
  min-height: 76px;
  resize: vertical;
}

.bulk-modal textarea[name="sourceUrls"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  min-height: 180px;
}

.verify-modal textarea[name="browserHtml"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  min-height: 170px;
}

.allowlist-template {
  background: rgb(2 6 23 / 72%);
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 8px;
  color: #cbd5e1;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

.modal-actions {
  justify-content: flex-end;
}

.history-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.history-item {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.history-item > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.history-item strong {
  color: #f8fafc;
  font-size: 13px;
}

.history-item dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.history-item dl div {
  display: grid;
  gap: 2px;
}

.history-item dt {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-item dd {
  color: #cbd5e1;
  font-size: 13px;
  margin: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  color: #94a3b8;
  padding: 18px 4px;
}

.empty-state.compact {
  font-size: 13px;
  padding: 8px 0;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .topbar,
  .overview-grid,
  .scheduler-panel,
  .settings-grid,
  .reports-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .scheduler-panel p {
    text-align: left;
  }

  .settings-card:first-child {
    grid-row: auto;
  }

  .report-card:nth-child(2) {
    grid-row: auto;
  }

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

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .main {
    padding: 18px 14px;
  }

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

  .search,
  .search input,
  .search.compact input,
  .button,
  select {
    width: 100%;
  }
}
