:root {
  --biocard: #7d272a;
  --biocard-2: #9f3a3e;
  --paper: #ffffff;
  --mist: #f8f5f5;
  --line: rgba(125, 39, 42, 0.14);
  --text: #242022;
  --muted: #74696c;
  --shadow: 0 18px 55px rgba(55, 20, 23, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(125, 39, 42, 0.11), transparent 32rem),
    linear-gradient(135deg, #fff, var(--mist));
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--biocard); text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button, .primary-link {
  border: 0;
  border-radius: 14px;
  background: var(--biocard);
  color: #fff;
  padding: 0.8rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
button:hover, .button:hover, .primary-link:hover { background: var(--biocard-2); }
.secondary { background: #efe5e6; color: var(--biocard); }
.danger { background: #b4232a; }
.error { color: #b4232a; background: #fff1f1; border: 1px solid #ffd1d4; padding: 0.8rem; border-radius: 12px; }
.top-auth-actions,
.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.auth-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(36, 32, 34, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  padding: 0.65rem 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(55, 20, 23, 0.08);
}
.auth-pill-dark {
  border-color: var(--biocard);
  background: var(--biocard);
  color: #fff;
}
.auth-pill-dark:hover { background: var(--biocard-2); }
.muted { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { width: 38px; height: 38px; }
.brand span { display: block; color: var(--muted); font-size: 0.84rem; }
.doc-page, .unavailable-page { min-height: 100vh; padding: 2rem; }
.doc-page { max-width: 840px; margin: 0 auto; line-height: 1.7; }
.unavailable-page { display: grid; place-items: center; }
.unavailable-card { max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.unavailable-card img { width: 64px; }
