/* The portal's one stylesheet (M9). Plain and readable; nothing is loaded from elsewhere. */
:root {
  --ink: #1a1a1a;
  --soft: #555555;
  --line: #d9dde3;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --accent: #1a4fd8;
  --accent-ink: #ffffff;
  --good: #136c3a;
  --good-wash: #e8f5ec;
  --bad: #a11b1b;
  --bad-wash: #fdecec;
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--wash);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
}

.top,
.account-nav,
.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top nav,
.account-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.top nav {
  margin-left: auto;
}

.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  font-size: 14px;
  color: var(--soft);
}

main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}

h1 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}

p {
  margin: 0 0 16px;
}

.soft {
  color: var(--soft);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 0 0 16px;
}

.notice {
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
}

.notice-done {
  color: var(--good);
  background: var(--good-wash);
  border-color: var(--good);
}

.notice-problem {
  color: var(--bad);
  background: var(--bad-wash);
  border-color: var(--bad);
}

form.stack {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

form.inline {
  display: inline;
}

label {
  display: grid;
  gap: 4px;
  font-weight: 600;
}

label.choice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 400;
}

input[type='email'],
input[type='text'],
select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

button {
  font: inherit;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  justify-self: start;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

button.quiet {
  background: var(--paper);
  color: var(--accent);
}

button.danger {
  background: var(--paper);
  color: var(--bad);
  border-color: var(--bad);
}

button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

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

[hidden] {
  display: none !important;
}

/* A key, shown once: on its own line, wrapping anywhere, easy to select whole. */
code.secret {
  display: block;
  padding: 0.6rem 0.8rem;
  word-break: break-all;
  user-select: all;
}

/* The QR picture on the authenticator's set-up page: black on white, whatever the theme. */
.qr {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1rem;
  background: #ffffff;
}
