:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18233b;
  background: #f8f7f4;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  color-scheme: light;
  --muted: #5c6880;
  --line: #dce2ef;
  --accent: #3154d5;
  --accent-hover: #2545bd;
  --paper: #fff;
  --soft: #eef2fc;
  --success: #167062;
  --success-bg: #e8f5ef;
  --focus: #3154d5;
  --shadow: 0 1px 3px #18233b08, 0 12px 36px #253c7a08;
}
* {
  box-sizing: border-box;
}
body {
  display: flow-root;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 92% 0%, #dce6ff80, transparent 52%),
    radial-gradient(ellipse at 0% 100%, #efe5d54d, transparent 48%);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
main {
  width: min(100% - 40px, 740px);
  margin: 52px auto 80px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 550;
  text-wrap: balance;
  margin: 30px 0 18px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  font-weight: 550;
  margin: 20px 0 12px;
}
h3 {
  font-size: 17px;
  margin: 12px 0;
}
p {
  margin: 12px 0;
  text-wrap: pretty;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
}
.brand {
  font-size: 20px;
  letter-spacing: -0.035em;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}
.brand:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: linear-gradient(145deg, #496aeb, var(--accent));
  box-shadow: 0 3px 9px #3154d526;
  color: white;
  border-radius: 8px;
  margin-right: 9px;
  font-size: 16px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 30px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}
.quiet,
.hint {
  color: var(--muted);
  font-size: 13px;
}
.panel,
article {
  background: var(--paper);
  padding: 24px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin: 22px 0;
}
.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 14px 0;
}
.stack {
  display: grid;
  gap: 10px;
}
.divider {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
button.primary,
.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 3px 8px #3154d51a;
}
button:hover,
.button:hover {
  background-color: var(--soft);
  border-color: var(--accent);
}
button.primary:hover,
.button.primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 12px #3154d52b;
}
button:active,
.button:active {
  transform: scale(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.text {
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--accent);
  min-height: 36px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin: 14px 0 6px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: inherit;
  background: var(--paper);
  margin-top: 6px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"] {
  width: auto;
  margin: 2px 0 0;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: start;
  font-weight: 400;
}
code {
  overflow-wrap: anywhere;
  font-size: 12px;
  background: var(--soft);
  padding: 3px 5px;
  border-radius: 4px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  background: var(--soft);
  padding: 14px;
  border-radius: 8px;
}
.status {
  font-size: 13px;
  padding: 12px 0;
  color: var(--muted);
  min-height: 24px;
  overflow-wrap: anywhere;
}
.status.error {
  color: #ad342b;
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 9px;
  background: var(--success-bg);
  border-radius: 6px;
}
.comment-text {
  white-space: pre-wrap;
}
.details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}
.fingerprint {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.footnote {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.list {
  padding-left: 20px;
  font-size: 14px;
}
.list li {
  margin: 9px 0;
}
.pill {
  font-size: 11px;
  color: var(--muted);
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.extension {
  width: 380px;
  min-height: 280px;
}
.extension main {
  width: auto;
  margin: 0;
  padding: 22px;
}
.extension h1 {
  font-size: 26px;
  margin-top: 24px;
}
.extension h2 {
  font-size: 22px;
}
.extension .panel {
  padding: 16px;
  box-shadow: none;
  border: 1px solid var(--line);
  margin: 14px 0;
}
.extension .brand {
  font-size: 18px;
}
.extension .quiet {
  font-size: 12px;
}
.extension .status {
  padding-bottom: 0;
}
.extension .eyebrow {
  margin-top: 20px;
}
.extension pre {
  font-size: 13px;
}
.extension header button {
  min-height: 32px;
}
.welcome main {
  max-width: 520px;
}
.result-link {
  word-break: break-all;
}
.number {
  font-variant-numeric: tabular-nums;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 420px) {
  main {
    width: calc(100% - 32px);
    margin-top: 28px;
  }
  .extension {
    width: 100%;
    min-width: 320px;
  }
  .panel,
  article {
    padding: 18px;
  }
  header nav {
    gap: 12px;
  }
  input,
  textarea,
  select {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .button {
    transition: none;
    transform: none !important;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    color: #e9eefb;
    background: #111727;
    --muted: #a6b3cc;
    --line: #303c55;
    --accent: #adc0ff;
    --accent-hover: #c4d1ff;
    --paper: #1a2236;
    --soft: #242f49;
    --success: #8de0c5;
    --success-bg: #173c36;
    --focus: #adc0ff;
    --shadow: 0 1px 3px #0000001a, 0 12px 36px #0000001a;
  }
  body {
    background:
      radial-gradient(ellipse at 92% 0%, #263b6c50, transparent 52%),
      radial-gradient(ellipse at 0% 100%, #30314a30, transparent 48%);
  }
  .brand:before {
    background: linear-gradient(145deg, #657fe8, #4463d5);
    color: #fff;
  }
  button.primary,
  .button.primary {
    color: #152044;
  }
  .status.error {
    color: #ffb4ab;
  }
}

footer { display:flex; flex-wrap:wrap; gap:20px; margin-top:48px; padding-top:24px; border-top:1px solid var(--line); font-size:12px; }
.metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.metrics article { margin:0; padding:20px; }
.metrics .number { font-size:32px; margin:0; }
.metrics h3 { font-size:12px; color:var(--muted); margin:4px 0; }
summary { cursor:pointer; min-height:40px; padding:8px 0; }
.extension header button,button.text { min-height:40px; }
input[type=checkbox] { min-width:20px; min-height:20px; }
label.check { padding:8px 0; min-height:40px; }

input[type="checkbox"] { accent-color: var(--accent); }
