/* Plenipo account service. No inline styles anywhere (the CSP forbids them). */
:root {
  --ink: #1d2330;
  --muted: #5c6370;
  --line: #dde1e8;
  --paper: #ffffff;
  --page: #f4f5f7;
  --accent: #3b5bdb;
  --accent-ink: #ffffff;
  --ok: #e6f4ea;
  --ok-ink: #1e6b34;
  --problem: #fdecea;
  --problem-ink: #a1261b;
  --danger: #c0392b;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e8ee;
    --muted: #a3a9b5;
    --line: #333a47;
    --paper: #1b2029;
    --page: #12161d;
    --accent: #6d8bff;
    --accent-ink: #0b0e14;
    --ok: #16301f;
    --ok-ink: #9fe0b1;
    --problem: #3a1b18;
    --problem-ink: #f5b1a9;
    --danger: #ff7b6b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.brand span {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9em;
  margin-left: 6px;
}

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

main {
  max-width: 880px;
  margin: 32px auto;
  padding: 0 16px;
}

main.narrow,
.narrow {
  max-width: 480px;
}

.foot {
  max-width: 880px;
  margin: 48px auto 32px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 0.9em;
}

.lead {
  font-size: 1.1em;
}

.small,
.hint {
  color: var(--muted);
  font-size: 0.9em;
}

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

.plans {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.plan {
  flex: 1 1 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
}

.plan.featured {
  border: 2px solid var(--accent);
}

.plan h3 {
  margin: 0;
}

.price {
  font-size: 1.8em;
  font-weight: 700;
  margin: 4px 0;
}

.price span {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

label.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

input {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

button,
.button {
  font: inherit;
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  background: transparent;
  color: var(--accent);
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

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

.danger-link {
  color: var(--danger);
}

form.inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.notice {
  padding: 10px 14px;
  border-radius: 6px;
}

.notice.ok {
  background: var(--ok);
  color: var(--ok-ink);
}

.notice.problem {
  background: var(--problem);
  color: var(--problem-ink);
}

pre.key,
.codes {
  font-family: Consolas, 'Cascadia Mono', monospace;
  font-size: 0.85em;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.codes {
  list-style: none;
  columns: 2;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
}

dt {
  font-weight: 600;
}

dd {
  margin: 0;
}

ul.plain {
  padding-left: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.9em;
}

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

.legal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 28px 24px;
}

body.admin main {
  max-width: 1200px;
}
