:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #172b4d;
  background: #f5f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 6vw;
  background: #fff;
  border-bottom: 1px solid #e3e8ef;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #172b4d;
  font-size: 16px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #155eef;
  color: #fff;
  font-weight: 750;
}

.topbar-note,
.footer {
  color: #65758b;
  font-size: 13px;
}

.shell {
  width: min(900px, 88vw);
  min-height: calc(100vh - 132px);
  margin: 42px auto;
}

.panel,
.website-card {
  border: 1px solid #e3e8ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 22px rgb(22 43 77 / 4%);
}

.login-panel {
  width: min(550px, 100%);
  margin: 8vh auto;
  padding: 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #155eef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  color: #102a56;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 8px;
  color: #102a56;
  font-size: 20px;
}

.intro {
  color: #5a6b82;
  line-height: 1.65;
}

.button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 650;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid #9dbbff;
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button-primary {
  background: #155eef;
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: #104bc2;
}

.button-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #344861;
}

.button-secondary:hover:not(:disabled) {
  background: #f4f7fb;
}

.login-panel .button {
  width: 100%;
  margin-top: 12px;
}

.privacy-note {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e8edf3;
  color: #65758b;
  font-size: 13px;
  line-height: 1.6;
}

.message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #5a6b82;
  font-size: 14px;
  line-height: 1.5;
}

.message[data-kind="error"] {
  color: #b42318;
}

.message[data-kind="success"] {
  color: #027a48;
}

.welcome-row,
.section-heading,
.website-heading,
.scan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.welcome-row {
  margin-bottom: 25px;
}

.welcome-row .intro {
  margin-bottom: 0;
}

.add-panel {
  padding: 25px;
}

.add-panel > p:not(.message) {
  margin-bottom: 18px;
  color: #65758b;
  font-size: 14px;
}

.website-form label {
  display: block;
  margin-bottom: 7px;
  color: #344861;
  font-size: 14px;
  font-weight: 650;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #172b4d;
}

.sites-section {
  margin-top: 37px;
}

.section-heading {
  align-items: end;
  margin-bottom: 8px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.website-list {
  display: grid;
  gap: 14px;
}

.website-card {
  padding: 21px;
}

.website-heading h3 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #102a56;
  font-size: 17px;
}

.website-meta,
.scan-meta {
  color: #65758b;
  font-size: 13px;
}

.website-meta {
  margin: 6px 0 15px;
}

.scan-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.scan-result {
  padding: 14px;
  border-radius: 10px;
  background: #f6f8fb;
}

.scan-heading {
  justify-content: start;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.scan-heading strong {
  color: #344861;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e9eef5;
  color: #344861;
  font-size: 12px;
  font-weight: 650;
}

.status-pill[data-status="complete"] {
  background: #dcfae6;
  color: #05603a;
}

.status-pill[data-status="partial"] {
  background: #fef0c7;
  color: #93370d;
}

.status-pill[data-status="failed"] {
  background: #fee4e2;
  color: #912018;
}

.scan-result p,
.scan-result li {
  color: #53647a;
  font-size: 14px;
  line-height: 1.5;
}

.scan-result ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.scan-result details {
  margin-top: 8px;
}

.scan-result summary {
  color: #344861;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.footer {
  padding: 0 6vw 24px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .topbar {
    padding: 0 6vw;
  }

  .topbar-note {
    display: none;
  }

  .shell {
    width: 90vw;
    margin: 25px auto;
  }

  .login-panel {
    padding: 28px 22px;
  }

  .add-panel,
  .website-card {
    padding: 18px;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row .button {
    width: 100%;
  }

  .welcome-row {
    align-items: start;
  }

  .welcome-row .button,
  .section-heading .button {
    flex: 0 0 auto;
  }
}

.monitoring {
  margin: 1rem 0;
}

.monitoring summary {
  cursor: pointer;
  font-weight: 600;
}

.check {
  margin-top: 1rem;
}

.check h4 {
  margin: 0 0 0.25rem;
}

.check-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.unlink {
  margin-top: 1rem;
}

.unlink summary {
  cursor: pointer;
}
