:root {
  --brand: #184f90;
  --brand-2: #0f6ec7;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #172033;
  --muted: #5c687a;
  --border: #d9e1ec;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 19rem;
  margin: 0;
  color: var(--text);
  background: #f4f7fb;
  font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.popup,
.options {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.options {
  max-width: 34rem;
}

header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .65rem;
  background: var(--brand);
  color: var(--surface);
  font-size: .75rem;
  font-weight: 900;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1rem;
}

h2,
label {
  font-size: .86rem;
  font-weight: 800;
}

header p,
.help,
.status {
  color: var(--muted);
  font-size: .82rem;
}

.current-page,
form {
  display: grid;
  gap: .45rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  background: var(--surface);
}

#current-url {
  overflow-wrap: anywhere;
  color: var(--muted);
}

input {
  width: 100%;
  padding: .6rem .65rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  color: var(--text);
  font: inherit;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
}

button {
  min-height: 2.35rem;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--surface);
}

button.primary.alt {
  border-color: var(--brand-2);
  background: var(--brand-2);
}

button.secondary {
  background: var(--surface);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
