/* ============================================================
   VoltReach — minimalist, Volt-themed
   Pure white surfaces, Volt purple as the only brand accent,
   Ubuntu typography throughout. Minimal chrome, generous space.
   ============================================================ */

:root {
  /* Surface */
  --vr-bg:        #ffffff;
  --vr-bg-2:      #fafafb;
  --vr-bg-3:      #f4f4f6;
  --vr-surface:   #ffffff;

  /* Ink */
  --vr-ink:       #1a1a1f;
  --vr-ink-2:     #4a4a55;
  --vr-ink-3:     #7a7a85;
  --vr-ink-4:     #b3b3bd;

  /* Lines */
  --vr-line:      #ececef;
  --vr-line-2:    #dcdce0;
  --vr-line-3:    #c4c4cc;

  /* Volt brand */
  --vr-volt:        #502379;
  --vr-volt-2:      #6a31a0;     /* hover */
  --vr-volt-soft:   #f3eef8;     /* tint background */
  --vr-volt-tint:   #faf6fd;     /* very faint */
  --vr-volt-line:   #d9c8ea;

  /* Reach accent (sekundäre Markenfarbe aus Logo) */
  --vr-reach:       #22c55e;
  --vr-reach-soft:  #ecfdf5;

  /* Sparingly used accent (Volt secondary) */
  --vr-coral:       #f4495c;
  --vr-coral-soft:  #fde9eb;

  /* Status (muted to fit minimalist look) */
  --vr-amber:       #a05f00;
  --vr-amber-soft:  #fbefd6;
  --vr-green:       #0f7a47;
  --vr-green-soft:  #dceee2;

  /* Typography */
  --vr-sans: 'Ubuntu', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --vr-mono: 'Ubuntu Mono', 'SFMono-Regular', 'Menlo', monospace;

  /* Geometry */
  --vr-radius:    4px;
  --vr-radius-lg: 8px;
  --vr-radius-pill: 999px;
  --vr-pad:       1.25rem;
  --vr-pad-lg:    2rem;
  --vr-pad-xl:    3rem;

  --vr-sidebar-w: 240px;
  --vr-topbar-h:  60px;
}

/* ===== Reset ============================================= */
/* Replaces the base reset Bulma used to provide (Bulma itself is no longer
   loaded – none of its components were used). Keep this before "Base". */
html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, legend,
textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: normal; }
ul { list-style: none; }
button, input, select, textarea { margin: 0; font-family: inherit; }
img, video { height: auto; max-width: 100%; }
iframe { border: 0; }
table { border-collapse: collapse; border-spacing: 0; }
td, th { padding: 0; }
td:not([align]), th:not([align]) { text-align: inherit; }
html {
  overflow-x: hidden;
  overflow-y: scroll;
  min-width: 300px;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
strong { color: var(--vr-ink); font-weight: 700; }
small { font-size: 0.875em; }
span { font-style: inherit; font-weight: inherit; }
input[type="checkbox"], input[type="radio"] { vertical-align: baseline; }
hr { border: none; display: block; height: 1px; background: var(--vr-line); margin: 1.5rem 0; }

/* ===== Base ============================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  background: var(--vr-bg);
  color: var(--vr-ink);
  font-family: var(--vr-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--vr-volt); text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--vr-volt-2); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vr-sans);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--vr-ink);
  margin: 0;
}

.vr-display--xl { font-size: clamp(1.85rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.015em; }
.vr-display--lg { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.vr-display--md { font-size: 1.15rem; line-height: 1.3; font-weight: 500; }
.vr-display--sm { font-size: 1rem; line-height: 1.35; font-weight: 500; }
.vr-display { font-family: var(--vr-sans); }

/* ===== Layout ============================================ */
.vr-app {
  display: grid;
  grid-template-columns: var(--vr-sidebar-w) 1fr;
  grid-template-rows: var(--vr-topbar-h) 1fr;
  min-height: 100vh;
}

.vr-brandbar {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--vr-line);
  border-right: 1px solid var(--vr-line);
  background: var(--vr-bg);
}

.vr-topbar {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--vr-pad-lg);
  border-bottom: 1px solid var(--vr-line);
  background: var(--vr-bg);
  gap: 1rem;
}

.vr-sidebar {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  border-right: 1px solid var(--vr-line);
  background: var(--vr-bg);
  padding: 1.25rem 0;
  overflow-y: auto;
}

.vr-main {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  padding: var(--vr-pad-lg) var(--vr-pad-xl);
  max-width: 100%;
  overflow-x: hidden;
  background: var(--vr-bg);
}

/* Parts of the phone/tablet layout; see "Phones and tablets" further down. */
.vr-burger, .vr-topbar > .vr-topbar__brand, .vr-drawer__head, .vr-drawer__account, .vr-decide-bar { display: none; }
.vr-nav-backdrop[hidden] { display: none; }
.vr-user__link { display: contents; color: inherit; text-decoration: none; }

@media (max-width: 980px) {
  /* Without the menu script (html.no-js) the sidebar simply stacks above the page. */
  .vr-app { grid-template-columns: 1fr; grid-template-rows: var(--vr-topbar-h) auto 1fr; }
  .vr-brandbar { display: none; }
  .vr-topbar { grid-column: 1 / 2; padding: 0 var(--vr-pad); }
  .vr-sidebar { grid-column: 1 / 2; grid-row: 2 / 3; border-right: none; border-bottom: 1px solid var(--vr-line); padding: 0.75rem 0; }
  .vr-main { grid-column: 1 / 2; grid-row: 3 / 4; padding: var(--vr-pad); }
}

/* ===== Brand wordmark ==================================== */
.vr-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.vr-brand__logo {
  height: 36px;
  width: auto;
  display: block;
}
.vr-brand__logo--compact {
  height: 28px;
}

/* ===== Sidebar nav ====================================== */
.vr-nav-section { padding: 0 0.75rem; margin-top: 1.25rem; }
.vr-nav-section:first-of-type { margin-top: 0.25rem; }
.vr-nav-section__label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--vr-ink-3);
  font-weight: 500;
  margin: 0 0.5rem 0.4rem;
  text-transform: uppercase;
}

.vr-nav { list-style: none; margin: 0; padding: 0; }
.vr-nav__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--vr-radius);
  color: var(--vr-ink-2);
  font-size: 0.92rem;
  font-weight: 400;
  transition: background .12s, color .12s;
}
.vr-nav__item:hover { background: var(--vr-bg-3); color: var(--vr-ink); }
.vr-nav__item--active {
  background: var(--vr-volt-soft);
  color: var(--vr-volt);
  font-weight: 500;
}
.vr-nav__icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }

.vr-sidebar__foot {
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--vr-line);
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--vr-ink-3);
}

/* ===== Topbar ============================================ */
.vr-crumb {
  font-size: 0.86rem;
  color: var(--vr-ink-3);
}
.vr-crumb a { color: var(--vr-ink-3); }
.vr-crumb a:hover { color: var(--vr-volt); }
.vr-crumb__sep { margin: 0 0.5rem; color: var(--vr-ink-4); }

.vr-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: var(--vr-ink-2);
}
.vr-user__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vr-volt-soft);
  color: var(--vr-volt);
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 0.82rem;
}
.vr-user__name { font-weight: 500; color: var(--vr-ink); line-height: 1.1; display: block; }
.vr-user__role {
  display: block;
  font-size: 0.7rem;
  color: var(--vr-ink-3);
  margin-top: 1px;
}

.vr-locale {
  display: inline-flex;
  border: 1px solid var(--vr-line-2);
  border-radius: var(--vr-radius-pill);
  overflow: hidden;
  background: var(--vr-bg);
}
.vr-locale button {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-family: var(--vr-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vr-ink-3);
  cursor: pointer;
  font-weight: 500;
}
.vr-locale button:hover { color: var(--vr-volt); }
.vr-locale button.is-active {
  background: var(--vr-volt);
  color: #fff;
}

/* ===== Section / page heading =========================== */
.vr-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vr-volt);
  font-weight: 500;
}

.vr-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--vr-line);
}
.vr-page-head__title { margin: 0.4rem 0 0; }
.vr-page-head__sub {
  color: var(--vr-ink-3);
  margin-top: 0.4rem;
  max-width: 60ch;
  font-size: 0.95rem;
}
.vr-page-head__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ===== Status badges ==================================== */
.vr-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--vr-radius-pill);
  white-space: nowrap;
  background: var(--vr-bg-3);
  color: var(--vr-ink-2);
  border: 1px solid var(--vr-line);
}
.vr-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.vr-status--draft     { color: var(--vr-ink-3); background: var(--vr-bg-3);   border-color: var(--vr-line); }
.vr-status--pending   { color: var(--vr-amber); background: var(--vr-amber-soft); border-color: transparent; }
.vr-status--approved  { color: var(--vr-green); background: var(--vr-green-soft); border-color: transparent; }
.vr-status--sent      { color: #fff;            background: var(--vr-volt);   border-color: var(--vr-volt); }
.vr-status--success   { color: var(--vr-green); background: var(--vr-green-soft); border-color: transparent; }
.vr-status--failure   { color: var(--vr-coral); background: var(--vr-coral-soft); border-color: transparent; }
.vr-status--sending   { color: var(--vr-amber); background: var(--vr-amber-soft); border-color: transparent; }
.vr-status--neutral   { color: var(--vr-ink-3); background: var(--vr-bg-3);   border-color: var(--vr-line); }

.vr-role-pill {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--vr-line-2);
  color: var(--vr-ink-2);
  border-radius: var(--vr-radius-pill);
  font-weight: 500;
  background: var(--vr-bg);
}
.vr-role-pill--admin { color: var(--vr-volt); border-color: var(--vr-volt-line); background: var(--vr-volt-soft); }

/* ===== Cards / panels =================================== */
.vr-card {
  background: var(--vr-surface);
  border: 1px solid var(--vr-line);
  padding: 1.5rem;
  border-radius: var(--vr-radius-lg);
}
.vr-card--quiet { background: var(--vr-bg-2); }
.vr-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--vr-line);
}
.vr-card__title { font-size: 1.05rem; margin: 0; font-weight: 500; }
.vr-card__meta { color: var(--vr-ink-3); font-size: 0.85rem; }

/* ===== Stat cards ======================================= */
.vr-stat {
  background: var(--vr-surface);
  border: 1px solid var(--vr-line);
  padding: 1.1rem 1.25rem 1.25rem;
  border-radius: var(--vr-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.vr-stat__label {
  font-size: 0.78rem;
  color: var(--vr-ink-3);
  font-weight: 500;
}
.vr-stat__value {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--vr-ink);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.vr-stat__hint { font-size: 0.8rem; color: var(--vr-ink-3); }

/* Accent line on top instead of bottom (cleaner) */
.vr-stat--accent  { border-top: 2px solid var(--vr-volt); }
.vr-stat--magenta { border-top: 2px solid var(--vr-coral); }
.vr-stat--amber   { border-top: 2px solid var(--vr-amber); }
.vr-stat--green   { border-top: 2px solid var(--vr-green); }

/* ===== Tables =========================================== */
.vr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vr-surface);
  border: 1px solid var(--vr-line);
  border-radius: var(--vr-radius-lg);
  overflow: hidden;
  font-size: 0.92rem;
}
.vr-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--vr-ink-3);
  font-weight: 500;
  background: var(--vr-bg-2);
  border-bottom: 1px solid var(--vr-line);
}
.vr-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--vr-line);
  vertical-align: middle;
}
.vr-table tr:last-child td { border-bottom: none; }
.vr-table tr:hover td { background: var(--vr-bg-2); }
.vr-table__hdline {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--vr-ink);
}
.vr-table__hdline a { color: inherit; }
.vr-table__hdline a:hover { color: var(--vr-volt); }
.vr-table__meta { color: var(--vr-ink-3); font-size: 0.82rem; }

/* ===== Forms ============================================ */
.vr-field { margin-bottom: 1.1rem; }
.vr-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--vr-ink);
}
.vr-label--inline { display: inline-block; margin-right: 1rem; }
.vr-input,
.vr-textarea,
.vr-select select {
  width: 100%;
  background: var(--vr-bg);
  border: 1px solid var(--vr-line-2);
  border-radius: var(--vr-radius);
  padding: 0.5rem 0.7rem;
  font-family: var(--vr-sans);
  font-size: 0.95rem;
  color: var(--vr-ink);
  transition: border-color .12s, box-shadow .12s;
}
.vr-input:focus,
.vr-textarea:focus,
.vr-select select:focus {
  border-color: var(--vr-volt);
  outline: none;
  box-shadow: 0 0 0 3px var(--vr-volt-soft);
}
.vr-input::placeholder, .vr-textarea::placeholder { color: var(--vr-ink-4); }

/* One height for every single-line control – inputs, selects and normal
   buttons – so fields and buttons in a row line up in every browser.
   Safari draws native selects smaller and ignores their padding, hence
   appearance: none and an own arrow. */
:root { --vr-control-h: 2.5rem; }
.vr-input:not(textarea):not([type="file"]):not([multiple]):not([size]),
.vr-select select:not([multiple]) {
  height: var(--vr-control-h);
  line-height: 1.3;
}
select.vr-input:not([multiple]):not([size]),
.vr-select select:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a85' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px 12px;
}
.vr-btn:not(.vr-btn--sm):not(.vr-btn--lg):not(.vr-btn--xl) { min-height: var(--vr-control-h); }
/* Compact controls (small buttons, fields inside table rows) share one height, too. */
:root { --vr-control-h-sm: 2rem; }
.vr-btn.vr-btn--sm { min-height: var(--vr-control-h-sm); }
/* File fields: the browser's own button in the look of .vr-btn--ghost. */
input[type="file"].vr-input { padding: 0.3rem 0.4rem; }
input[type="file"]::file-selector-button {
  font-family: var(--vr-sans); font-size: 0.85rem; font-weight: 500;
  margin-right: 0.75rem; padding: 0.35rem 0.8rem;
  border: 1px solid var(--vr-line-2); border-radius: var(--vr-radius);
  background: var(--vr-bg); color: var(--vr-ink-2); cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--vr-volt-soft); border-color: var(--vr-volt-line); color: var(--vr-volt); }
input[type="color"] {
  height: var(--vr-control-h); width: 2.75rem; flex: 0 0 auto;
  padding: 3px; border: 1px solid var(--vr-line-2); border-radius: var(--vr-radius);
  background: var(--vr-bg); cursor: pointer;
}
.vr-table .vr-input:not(textarea):not([multiple]):not([size]) {
  height: var(--vr-control-h-sm);
  padding-top: 0; padding-bottom: 0;
  font-size: 0.85rem;
}
.vr-table select.vr-input:not([multiple]):not([size]) { background-position: right 0.55rem center; padding-right: 1.8rem; }
/* Compact field next to small buttons, e.g. "Auswahl nach … dazunehmen / nur diese". */
.vr-input.vr-input--sm:not(textarea):not([type="file"]):not([multiple]):not([size]) {
  height: var(--vr-control-h-sm); width: auto; max-width: 22rem;
  padding-top: 0; padding-bottom: 0; font-size: 0.85rem;
}
select.vr-input.vr-input--sm { background-position: right 0.55rem center; padding-right: 1.8rem; }
/* A stored secret: the placeholder dots look like a filled field. */
.vr-input--stored::placeholder { color: var(--vr-ink-2); letter-spacing: 0.12em; }
.vr-textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.vr-help { color: var(--vr-ink-3); font-size: 0.82rem; margin-top: 0.3rem; }

/* ---- Form errors (voltreach/forms.py) ------------------------------------
   Same quiet language as the flash messages (soft tint, thin bar on the left),
   in red. Never colour alone (WCAG 1.4.1): every wrong field also has its
   message. Text uses --vr-error, a darker red than --vr-coral, for 4.5:1. */
:root { --vr-error: #c4243a; }

/* The field: thin red border and a faint red glow instead of a heavy frame. */
.vr-input[aria-invalid="true"],
.vr-textarea[aria-invalid="true"],
.vr-select select[aria-invalid="true"] {
  border-color: var(--vr-error);
  box-shadow: 0 0 0 3px var(--vr-coral-soft);
}
.vr-input[aria-invalid="true"]:focus,
.vr-textarea[aria-invalid="true"]:focus { border-color: var(--vr-error); box-shadow: 0 0 0 3px #f9d3d8; }
/* The browser's own check (required, type=email) after the user typed. */
.vr-input:user-invalid, .vr-textarea:user-invalid { border-color: var(--vr-error); }
.vr-field:has([aria-invalid="true"]) > .vr-label,
fieldset:has([aria-invalid="true"]) > legend { color: var(--vr-error); }

/* The message above the field, with a small round "!" in front. */
.vr-field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--vr-error);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}
.vr-field-error::before {
  content: "!";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--vr-error);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
}

/* The summary at the top: built like .vr-flash--danger. */
.vr-error-summary {
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.9rem;
  border-left: 3px solid var(--vr-coral);
  border-radius: var(--vr-radius);
  background: var(--vr-coral-soft);
  font-size: 0.92rem;
  color: var(--vr-ink);
}
.vr-error-summary:focus { outline: none; box-shadow: 0 0 0 3px #f9d3d8; }
.vr-error-summary__title { margin: 0; font-size: inherit; font-weight: 500; color: var(--vr-ink); }
.vr-error-summary__list { margin: 0.35rem 0 0; padding: 0; list-style: none; }
.vr-error-summary__list li { position: relative; margin-top: 0.15rem; padding-left: 1rem; }
.vr-error-summary__list li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.55em;
  width: 0.32rem; height: 0.32rem; border-radius: 50%; background: var(--vr-coral);
}
.vr-error-summary__list a {
  color: var(--vr-error);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 36, 58, 0.3);
}
.vr-error-summary__list a:hover,
.vr-error-summary__list a:focus-visible { border-bottom-color: var(--vr-error); outline: none; }
.vr-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.vr-fields-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px) { .vr-fields-row { grid-template-columns: 1fr; } }

/* Buttons */
.vr-btn,
button.vr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  font-family: var(--vr-sans);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--vr-radius);
  border: 1px solid var(--vr-line-2);
  background: var(--vr-bg);
  color: var(--vr-ink);
  cursor: pointer;
  line-height: 1.2;
  transition: background .12s, color .12s, border-color .12s, transform .05s;
  white-space: nowrap;
}
.vr-btn:hover { border-color: var(--vr-line-3); background: var(--vr-bg-2); }
.vr-btn:active { transform: translateY(1px); }
.vr-btn--primary {
  background: var(--vr-volt);
  border-color: var(--vr-volt);
  color: #ffffff;
}
.vr-btn--primary:hover { background: var(--vr-volt-2); border-color: var(--vr-volt-2); color: #ffffff; }
.vr-btn--ghost {
  background: transparent;
  border-color: var(--vr-line-2);
  color: var(--vr-ink-2);
}
.vr-btn--ghost:hover { background: var(--vr-volt-soft); border-color: var(--vr-volt-line); color: var(--vr-volt); }
.vr-btn--danger {
  color: var(--vr-coral);
  border-color: var(--vr-line-2);
  background: transparent;
}
.vr-btn--danger:hover { background: var(--vr-coral); color: #ffffff; border-color: var(--vr-coral); }
/* .vr-btn.vr-btn--x: must beat "button.vr-btn" above, else <button>s ignore their size. */
.vr-btn.vr-btn--sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.vr-btn.vr-btn--lg { padding: 0.65rem 1.2rem; font-size: 0.95rem; }
.vr-btn.vr-btn--xl { padding: 0.95rem 1.75rem; font-size: 1.05rem; gap: 0.6rem; }
.vr-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.vr-btn-group { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }

/* Toolbar */
.vr-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.vr-search { flex: 1; min-width: 220px; position: relative; }
.vr-search input { padding-left: 2.1rem; }
.vr-search__icon {
  position: absolute;
  top: 50%;
  left: 0.65rem;
  transform: translateY(-50%);
  color: var(--vr-ink-3);
}

/* ===== Flash messages =================================== */
.vr-flashes { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.vr-flash {
  display: flex;
  gap: 0.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--vr-line);
  border-left-width: 3px;
  background: var(--vr-bg);
  font-size: 0.92rem;
  border-radius: var(--vr-radius);
  color: var(--vr-ink);
}
.vr-flash--success { border-left-color: var(--vr-green); background: var(--vr-green-soft); border-color: transparent; border-left: 3px solid var(--vr-green); }
.vr-flash--info    { border-left-color: var(--vr-volt);  background: var(--vr-volt-soft);  border-color: transparent; border-left: 3px solid var(--vr-volt); }
.vr-flash--danger  { border-left-color: var(--vr-coral); background: var(--vr-coral-soft); border-color: transparent; border-left: 3px solid var(--vr-coral); }
.vr-flash--warning { border-left-color: var(--vr-amber); background: var(--vr-amber-soft); border-color: transparent; border-left: 3px solid var(--vr-amber); }

/* ===== Tabs ============================================= */
.vr-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--vr-line);
  margin-bottom: 1.5rem;
}
.vr-tabs__item {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--vr-ink-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: transparent;
  border-top: 0; border-left: 0; border-right: 0;
  font-family: var(--vr-sans);
  margin-bottom: -1px;
}
.vr-tabs__item:hover { color: var(--vr-ink); }
.vr-tabs__item.is-active {
  color: var(--vr-volt);
  border-bottom-color: var(--vr-volt);
}
.vr-tab-panel { display: none; animation: fadeIn .2s ease; }
.vr-tab-panel.is-active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

/* ===== Press release detail ============================ */
.vr-release-headline {
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 1rem;
  color: var(--vr-ink);
}
.vr-release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--vr-ink-3);
  border-top: 1px solid var(--vr-line);
  border-bottom: 1px solid var(--vr-line);
  padding: 0.65rem 0;
  margin: 1rem 0 1.5rem;
}
.vr-release-meta dt {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--vr-ink-4);
  margin-bottom: 2px;
  text-transform: uppercase;
}
.vr-release-meta dd { margin: 0; color: var(--vr-ink-2); font-size: 0.92rem; }
.vr-release-meta__group { min-width: 120px; }

.vr-richtext {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--vr-ink-2);
  max-width: 70ch;
}
.vr-richtext p { margin: 0 0 1rem; }
.vr-richtext h1, .vr-richtext h2, .vr-richtext h3, .vr-richtext h4 { margin: 1.25rem 0 0.5rem; color: var(--vr-ink); }
.vr-richtext ul, .vr-richtext ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.vr-richtext blockquote {
  border-left: 2px solid var(--vr-volt);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: var(--vr-ink);
}
.vr-richtext a { text-decoration: underline; text-underline-offset: 3px; }
.vr-richtext strong, .vr-richtext b,
.vr-subhead strong, .vr-subhead b { color: inherit; font-weight: 700; }
.vr-richtext em, .vr-richtext i, .vr-richtext u, .vr-richtext s,
.vr-subhead em, .vr-subhead i, .vr-subhead u, .vr-subhead s { color: inherit; }

.vr-subhead {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--vr-ink-2);
  border-left: 2px solid var(--vr-volt);
  padding-left: 0.9rem;
  max-width: 70ch;
  margin: 0 0 1.5rem;
  font-weight: 400;
}

/* Photos */
.vr-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.25rem;
}
.vr-photo {
  position: relative;
  background: var(--vr-bg-2);
  border: 1px solid var(--vr-line);
  border-radius: var(--vr-radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.vr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vr-photo__meta {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(26,26,31,0.78), transparent);
  color: #fff;
  padding: 1.25rem 0.7rem 0.55rem;
  font-size: 0.74rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.vr-photo__meta a { color: #fff; }
.vr-photo__del {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  width: 26px; height: 26px;
  border: none;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--vr-coral);
  opacity: 0;
  transition: opacity .12s;
}
.vr-photo:hover .vr-photo__del { opacity: 1; }
.vr-photo__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.8rem;
  color: var(--vr-ink-3);
  text-align: center;
  padding: 1rem;
}

/* ===== Two-column layout ================================ */
.vr-two-col {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
}
@media (max-width: 980px) { .vr-two-col { grid-template-columns: 1fr; } }

/* ===== Quill overrides ================================== */
.ql-toolbar.ql-snow {
  border: 1px solid var(--vr-line-2) !important;
  border-bottom: none !important;
  border-radius: var(--vr-radius) var(--vr-radius) 0 0;
  background: var(--vr-bg-2);
}
.ql-container.ql-snow {
  border: 1px solid var(--vr-line-2) !important;
  border-radius: 0 0 var(--vr-radius) var(--vr-radius);
  background: var(--vr-bg);
  font-family: var(--vr-sans);
  font-size: 1rem;
  min-height: 12rem;
}
.ql-editor { line-height: 1.6; padding: 1rem 1.1rem; color: var(--vr-ink); }
.ql-editor strong, .ql-editor b { color: inherit; font-weight: 700; }
.ql-editor em, .ql-editor i,
.ql-editor u, .ql-editor s { color: inherit; }
.ql-editor.ql-blank::before {
  font-style: normal;
  color: var(--vr-ink-4);
  font-family: var(--vr-sans);
}
.ql-snow .ql-stroke { stroke: var(--vr-ink-2); }
.ql-snow .ql-fill { fill: var(--vr-ink-2); }
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--vr-volt); }
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--vr-volt); }
.ql-snow.ql-toolbar button:hover,
.ql-snow.ql-toolbar button.ql-active { color: var(--vr-volt); }

/* Press release editor (press_releases/form.html) */
.vr-card.vr-editor-card { padding: 2rem 2.5rem; }
.vr-textarea.vr-headline-input {
  min-height: 0; resize: none; overflow: hidden;
  font-family: var(--vr-sans); font-size: 1.6rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.01em;
  padding: 0.75rem 1rem;
}
/* The subhead is one or two sentences: a smaller box than the text. */
#subhead-editor.ql-container.ql-snow { min-height: 5.5rem; }
@media (max-width: 720px) {
  /* On phones the fields sit directly on the page: no frame, full width. */
  .vr-card.vr-editor-card { padding: 0; border: 0; background: none; }
  .vr-textarea.vr-headline-input { font-size: 1.25rem; padding: 0.6rem 0.75rem; }
  .ql-container.ql-snow { min-height: 10rem; }
  .ql-editor { padding: 0.75rem; }
}
@media (max-width: 980px), (pointer: coarse) {
  /* Quill's own stylesheet loads later, hence the extra class. */
  .vr-editor-card .ql-snow.ql-toolbar { padding: 2px 4px; }
  .vr-editor-card .ql-snow.ql-toolbar button { width: 44px; height: 44px; padding: 11px 12px; }
}

/* ===== Modal ============================================ */
.vr-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  background: rgba(26,26,31,0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.vr-modal.is-open { display: flex; }
.vr-modal__panel {
  background: var(--vr-bg);
  border: 1px solid var(--vr-line);
  border-radius: var(--vr-radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(26,26,31,0.12);
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vr-modal__title { font-size: 1.25rem; margin: 0 0 0.5rem; font-weight: 500; }
.vr-modal__close { float: right; cursor: pointer; background: transparent; border: 0; color: var(--vr-ink-3); }
.vr-modal__close:hover { color: var(--vr-ink); }

/* ===== Permission grid ================================== */
.vr-perms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.vr-perms__group {
  background: var(--vr-surface);
  border: 1px solid var(--vr-line);
  padding: 1rem 1.1rem;
  border-radius: var(--vr-radius-lg);
}
.vr-perms__group h4 {
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 500;
}
.vr-perms__group h4 small {
  font-size: 0.72rem;
  color: var(--vr-ink-3);
  font-weight: 500;
}
.vr-perm {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--vr-ink-2);
  cursor: pointer;
}
.vr-perm input { accent-color: var(--vr-volt); }

/* ===== Empty state ====================================== */
.vr-empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--vr-line-2);
  border-radius: var(--vr-radius-lg);
  color: var(--vr-ink-3);
  background: var(--vr-bg-2);
}
.vr-empty h3 { margin: 0 0 0.5rem; color: var(--vr-ink); font-weight: 500; }
.vr-empty p { max-width: 50ch; margin: 0 auto 1rem; }

/* ===== Login splash ===================================== */
.vr-splash {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--vr-bg);
}
@media (max-width: 880px) { .vr-splash { grid-template-columns: 1fr; } }

.vr-splash__art {
  background: var(--vr-volt);
  color: #fff;
  padding: var(--vr-pad-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.vr-splash__motto {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.3;
  font-weight: 400;
  max-width: 24ch;
  letter-spacing: -0.005em;
}
.vr-splash__motto strong { font-weight: 500; }

.vr-splash__form {
  padding: var(--vr-pad-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 460px;
  width: 100%;
  gap: 1.25rem;
}
.vr-splash__caption {
  font-size: 0.75rem;
  color: var(--vr-ink-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== Misc helpers ===================================== */
.vr-divider { height: 1px; background: var(--vr-line); margin: 1.75rem 0; border: 0; }
.vr-mute { color: var(--vr-ink-3); }
.vr-text-sm { font-size: 0.85rem; }
.vr-text-xs { font-size: 0.74rem; color: var(--vr-ink-3); font-weight: 500; }
.vr-mt-0 { margin-top: 0 !important; }
.vr-mt-1 { margin-top: 0.5rem; }
.vr-mt-2 { margin-top: 1rem; }
.vr-mt-3 { margin-top: 1.75rem; }
.vr-mb-2 { margin-bottom: 1rem; }
.vr-mb-3 { margin-bottom: 1.75rem; }
.vr-flex { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.vr-flex--between { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.vr-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* Roles overview: every card has the same structure – head with name and
   count, body with what the role manages, actions at the bottom. */
.vr-role-card { display: flex; flex-direction: column; gap: 0.9rem; }
.vr-role-card__head { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.vr-role-card__title { margin: 0.2rem 0 0.15rem; font-size: 1.15rem; font-weight: 600; }
.vr-role-card__count { text-align: right; white-space: nowrap; line-height: 1.1; }
.vr-role-card__count strong { display: block; font-size: 1.6rem; font-weight: 500; color: var(--vr-volt); }
.vr-role-card__pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.vr-role-card__foot { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--vr-line); display: flex; gap: 0.5rem; }
.vr-section-title { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0.75rem; }
.vr-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.vr-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 880px) {
  .vr-grid-2, .vr-grid-3, .vr-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .vr-grid-2, .vr-grid-3, .vr-grid-4 { grid-template-columns: 1fr; }
}

code, .vr-mono {
  font-family: var(--vr-mono);
  font-size: 0.88em;
  background: var(--vr-bg-3);
  padding: 0.08em 0.3em;
  border-radius: 3px;
}

/* Dropdown (<details>/<summary>), e.g. "Neue Pressemitteilung" with several teams */
.vr-dropdown { position: relative; display: inline-block; }
.vr-dropdown > summary { list-style: none; cursor: pointer; }
.vr-dropdown > summary::-webkit-details-marker { display: none; }
.vr-dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  min-width: 220px; display: grid; padding: 0.35rem;
  background: var(--vr-surface); border: 1px solid var(--vr-line-2);
  border-radius: var(--vr-radius-lg); box-shadow: 0 8px 24px rgba(26, 26, 31, 0.08);
}
.vr-dropdown__item { display: block; padding: 0.5rem 0.75rem; border-radius: var(--vr-radius); color: var(--vr-ink); }
.vr-dropdown__item:hover, .vr-dropdown__item:focus-visible { background: var(--vr-volt-soft); color: var(--vr-volt); outline: none; }

.vr-checkbox-stack { display: grid; gap: 0.15rem; }
.vr-brand--on-dark { color: #fff; }

/* Wide tables scroll inside their own box on small screens */
.vr-table-wrap { overflow-x: auto; max-width: 100%; }

/* Approval steps and decision form (U5) */
.vr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.vr-steps li { padding: 0.5rem 0.6rem; border: 1px solid var(--vr-line); border-radius: var(--vr-radius); font-size: 0.88rem; }
.vr-steps li.is-current { border-color: var(--vr-volt); background: var(--vr-volt-tint); }
.vr-step-state { font-size: 0.74rem; font-weight: 500; padding: 1px 6px; border-radius: 999px; background: var(--vr-bg-3); color: var(--vr-ink-3); margin-left: 4px; }
.vr-step-state--ok { background: var(--vr-green-soft); color: var(--vr-green); }
.vr-step-state--bad { background: var(--vr-coral-soft); color: #b3261e; }
.vr-step-state--open { background: var(--vr-amber-soft); color: var(--vr-amber); }
.vr-decide { display: grid; gap: 0.6rem; border-top: 1px solid var(--vr-line); padding-top: 0.75rem; }
.vr-decide__q { border: 1px solid var(--vr-line); border-radius: var(--vr-radius); padding: 0.5rem 0.75rem; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.vr-decide__q legend { font-size: 0.86rem; font-weight: 500; padding: 0 0.25rem; }
.vr-decide__q label { display: inline-flex; gap: 0.35rem; align-items: center; font-size: 0.88rem; cursor: pointer; }
.vr-decide__q.is-good { border-color: var(--vr-green); }
.vr-decide__q.is-bad { border-color: #b3261e; background: var(--vr-coral-soft); }
.vr-answer--bad { color: #b3261e; }

/* Print */
/* Audit log */
.vr-audit-filter select { flex: 1 1 9rem; min-width: 8rem; max-width: 13rem; }
.vr-input.vr-mono { background-color: var(--vr-bg); }  /* fields in code font keep the field background */
.vr-audit-filter__date { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--vr-ink-3); }
.vr-audit-filter__date input { width: auto; }
.vr-audit td { vertical-align: top; }
.vr-audit__row--warn td:first-child { box-shadow: inset 3px 0 0 var(--vr-amber); }

/* Version comparison (E10) */
.vr-diff__text { white-space: pre-wrap; line-height: 1.6; }
.vr-diff ins { background: var(--vr-green-soft); color: var(--vr-green); text-decoration: none; padding: 0 .1em; }
.vr-diff del { background: var(--vr-coral-soft); color: var(--vr-coral); padding: 0 .1em; }

/* Staging banner */
.vr-testbanner { background: var(--vr-amber); color: #fff; text-align: center; font-size: .85rem; padding: .3rem .75rem; }

/* Sidebar counter (open join requests, K7) */
.vr-nav__badge { display: inline-block; min-width: 1.3rem; padding: 0 .35rem; margin-left: auto; border-radius: 999px;
  background: var(--vr-volt); color: #fff; font-size: .72rem; line-height: 1.3rem; text-align: center; }

/* Opted-out contact (D7) */
.vr-optout-note { border-left: 3px solid var(--vr-amber); background: var(--vr-amber-soft); }

/* Contact import preview */
.vr-import-summary { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.vr-import-summary__item { padding: 0.5rem 0.9rem; border: 1px solid var(--vr-line); border-radius: 8px; font-size: 0.9rem; }
.vr-import-summary__item strong { font-size: 1.15rem; margin-right: 0.2rem; }
.vr-import-summary__item--new { background: var(--vr-green-soft); border-color: transparent; }
.vr-import-summary__item--update { background: var(--vr-volt-soft, var(--vr-amber-soft)); border-color: transparent; }
.vr-import-summary__item--error { background: var(--vr-coral-soft); border-color: transparent; }
.vr-import td { vertical-align: top; }
.vr-import td:nth-child(3) { min-width: 9rem; }
.vr-import td:last-child { min-width: 16rem; }
.vr-import__badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.78rem; white-space: nowrap; background: var(--vr-line); }
.vr-import__badge--new { background: var(--vr-green-soft); color: var(--vr-green); }
.vr-import__badge--update { background: var(--vr-amber-soft); color: var(--vr-amber); }
.vr-import__badge--error { background: var(--vr-coral-soft); color: var(--vr-coral); }
.vr-import__row--skip td, .vr-import__row--error td { color: var(--vr-ink-3); }

@media print {
  .vr-sidebar, .vr-topbar, .vr-brandbar { display: none; }
  .vr-app { display: block; }
  .vr-main { padding: 0; }
}


/* Filter row with labelled fields (e.g. "Kontakte hinzufügen"): fields share the width. */
.vr-filter > .vr-field { flex: 1 1 11rem; }
.vr-check-all { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; margin-bottom: 0.5rem; font-size: 0.9rem; cursor: pointer; }

/* Imprint and privacy links at the bottom of every page (_legal_footer.html). */
.vr-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 0.6rem;
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--vr-line);
  font-size: 0.8rem; color: var(--vr-ink-4);
}
.vr-footer a { color: var(--vr-ink-3); }
.vr-footer a:hover { color: var(--vr-volt); }
.vr-main > .vr-footer { justify-content: flex-start; }
.vr-splash__form > .vr-footer { justify-content: flex-start; }
@media (max-width: 980px), (pointer: coarse) { .vr-footer a { display: inline-block; padding: 0.6rem 0.2rem; } }

/* The footer stays at the bottom of the window on short pages: the page body
   grows (app), the sign-in column and standalone pages are flex columns. */
.vr-main { display: flex; flex-direction: column; }
.vr-main__body { flex: 1 0 auto; min-width: 0; }
.vr-main > .vr-footer { margin-top: 3rem; }
.vr-splash__form > :first-child { margin-top: auto; }
.vr-splash__form > .vr-footer { margin-top: auto; }
.vr-standalone { min-height: 100vh; display: flex; flex-direction: column; }
.vr-standalone > .vr-footer { margin-top: auto; }
/* Keeps the usual distance when the content fills the window. */
.vr-standalone > :nth-last-child(2) { margin-bottom: 3rem; }

/* The makers' credit in the footer: a faint heart that opens into
   "Made with 💜 by …" on hover or tap (an easter egg, 2026-10-11). */
.vr-credit {
  display: inline-flex; align-items: center; max-width: 100%;
  font-size: 0.78rem; color: var(--vr-ink-3); white-space: nowrap;
  cursor: default; border-radius: var(--vr-radius);
}
.vr-main > .vr-footer .vr-credit,
.vr-splash__form > .vr-footer .vr-credit,
.vr-legal .vr-footer .vr-credit { margin-left: auto; }
.vr-credit__heart { display: inline-block; overflow: hidden; max-width: 1.5em; transition: max-width .3s ease, opacity .2s ease; }
.vr-credit__text { display: inline-block; overflow: hidden; text-overflow: ellipsis; max-width: 0; opacity: 0;
  transition: max-width .5s ease, opacity .35s ease .1s; }
.vr-credit:hover, .vr-credit:focus { outline: none; }
.vr-credit:focus-visible { box-shadow: 0 0 0 2px var(--vr-volt-soft); }
.vr-credit:hover .vr-credit__heart, .vr-credit:focus .vr-credit__heart { max-width: 0; opacity: 0; }
.vr-credit:hover .vr-credit__text, .vr-credit:focus .vr-credit__text { max-width: 26rem; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .vr-credit, .vr-credit__heart, .vr-credit__text { transition: none; }
}
@media (max-width: 980px), (pointer: coarse) { .vr-credit { padding: 0.6rem 0.2rem; } }

/* Privacy policy page (legal/privacy.html): a readable column of text. */
.vr-legal { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 2rem; }
.vr-legal__logo img { height: 32px; width: auto; }
.vr-legal__text { margin-top: 2rem; line-height: 1.65; color: var(--vr-ink-2); }
.vr-legal__text h2 { font-size: 1.15rem; font-weight: 600; color: var(--vr-ink); margin: 2rem 0 0.6rem; }
.vr-legal__text h3 { font-size: 1rem; font-weight: 600; color: var(--vr-ink); margin: 1.4rem 0 0.4rem; }
.vr-legal__text p, .vr-legal__text ul, .vr-legal__text ol { margin: 0 0 0.85rem; }
.vr-legal__text ul { list-style: disc; padding-left: 1.3rem; }
.vr-legal__text ol { list-style: decimal; padding-left: 1.3rem; }
.vr-legal__text li { margin-bottom: 0.3rem; }
.vr-legal__text a { text-decoration: underline; text-underline-offset: 2px; }
.vr-legal .vr-footer { justify-content: flex-start; }

/* ===== Phones and tablets (≤ 980 px) =====================
   Decided 2026-10-10: burger up to 980 px, menu as a drawer from the left,
   tables as cards on phones, a fixed bar leading to the approval.
   Everything here needs the menu script (html.js) except type and touch sizes. */
@media (max-width: 980px) {
  .js .vr-app { grid-template-rows: auto 1fr; }
  .js .vr-main { grid-row: 2 / 3; }

  /* Top bar: burger · logo or back link · avatar. Stays on screen. */
  .js .vr-topbar {
    position: sticky; top: 0; z-index: 40;
    height: 56px; gap: 0.5rem;
    padding: 0 calc(var(--vr-pad) - 0.5rem) 0 calc(var(--vr-pad) - 0.6rem);
  }
  .js .vr-burger {
    position: relative; flex: 0 0 auto;
    display: inline-grid; place-items: center;
    width: 44px; height: 44px;
    border: 0; border-radius: var(--vr-radius);
    background: transparent; color: var(--vr-ink); cursor: pointer;
  }
  .js .vr-burger:hover { background: var(--vr-bg-3); }
  .js .vr-burger:focus-visible { outline: 2px solid var(--vr-volt); outline-offset: 1px; }
  .vr-burger__badge {
    position: absolute; top: -1px; right: -4px;
    min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
    border-radius: 999px; border: 2px solid var(--vr-bg); box-sizing: content-box;
    background: var(--vr-volt); color: #fff;
    font-size: 0.66rem; font-weight: 600; line-height: 1.15rem; text-align: center;
  }
  .js .vr-topbar > .vr-topbar__brand { display: inline-flex; align-items: center; min-height: 44px; }
  .js .vr-topbar__wide { display: none; }
  .js .vr-topbar__end { margin-left: auto; gap: 0.5rem; }
  .js .vr-user__link { display: inline-grid; place-items: center; width: 44px; height: 44px; }
  .js .vr-user__avatar { width: 34px; height: 34px; font-size: 0.9rem; }

  /* The trail shrinks to one back link to the parent page; on a page with a
     parent it takes the place of the logo. */
  .js .vr-crumb { flex: 1 1 auto; min-width: 0; font-size: 0.92rem; }
  .js .vr-crumb > * { display: none; }
  .js .vr-crumb > a:last-of-type {
    display: block; max-width: 100%; line-height: 44px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: var(--vr-ink-2);
  }
  .js .vr-crumb > a:last-of-type::before {
    content: ""; display: inline-block; vertical-align: 0.1em;
    width: 0.5rem; height: 0.5rem; margin: 0 0.35rem 0 0.25rem;
    border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
  }
  .js .vr-topbar:has(.vr-crumb > a) > .vr-topbar__brand { display: none; }

  /* The sidebar becomes the drawer. */
  .js .vr-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 60;
    width: min(20rem, 86vw);
    display: flex; flex-direction: column;
    padding: 0 0 1.25rem;
    border-right: 1px solid var(--vr-line); border-bottom: 0;
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .js.is-nav-open .vr-sidebar {
    transform: none; visibility: visible;
    transition: transform .22s ease;
    box-shadow: 0 0 48px rgba(26, 26, 31, 0.18);
  }
  .js.is-nav-open, .js.is-nav-open body { overflow: hidden; }
  .js .vr-nav-backdrop:not([hidden]) {
    display: block; position: fixed; inset: 0; z-index: 55;
    background: rgba(26, 26, 31, 0.38);
  }
  .js .vr-drawer__head {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 56px; padding: 0 0.5rem 0 1.25rem; margin-bottom: 0.75rem;
    background: var(--vr-bg); border-bottom: 1px solid var(--vr-line);
  }
  .vr-drawer__close {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    border: 0; border-radius: var(--vr-radius); background: transparent; color: var(--vr-ink-2); cursor: pointer;
  }
  .vr-drawer__close:hover { background: var(--vr-bg-3); color: var(--vr-ink); }
  .js .vr-nav__item { min-height: 44px; padding: 0.6rem 0.75rem; font-size: 0.98rem; }
  .js .vr-drawer__account {
    display: block; margin-top: 1.25rem; padding: 1rem 1.25rem 0;
    border-top: 1px solid var(--vr-line);
  }
  .vr-drawer__me { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; color: var(--vr-ink-2); }
  .vr-drawer__me:hover { color: var(--vr-volt); }
  .vr-drawer__me .vr-user__avatar { flex: 0 0 auto; width: 34px; height: 34px; }
  .vr-drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.85rem; }
  .vr-drawer__row .vr-locale button { min-height: 2.5rem; padding: 0 0.95rem; }

  /* Press release: the bar that leads to the decision. */
  .js .vr-decide-bar {
    position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    min-height: 3.25rem; padding: 0.55rem 0.6rem 0.55rem 1rem;
    border-radius: var(--vr-radius-lg);
    background: var(--vr-volt); color: #fff;
    box-shadow: 0 8px 24px rgba(80, 35, 121, 0.28);
    font-size: 0.88rem; line-height: 1.25;
    transition: opacity .15s ease, transform .15s ease;
  }
  .js .vr-decide-bar:hover { color: #fff; background: var(--vr-volt-2); }
  .vr-decide-bar > span:first-child { min-width: 0; }
  .js .vr-decide-bar strong, .vr-decide-bar__step { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .js .vr-decide-bar strong { color: #fff; font-weight: 500; }
  .vr-decide-bar__step { font-size: 0.78rem; opacity: 0.8; }
  .vr-decide-bar__go {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.35rem;
    min-height: 2.5rem; padding: 0 0.8rem; border-radius: var(--vr-radius);
    background: rgba(255, 255, 255, 0.16); font-weight: 500; white-space: nowrap;
  }
  .js .vr-decide-bar.is-hidden { opacity: 0; transform: translateY(0.5rem); pointer-events: none; }
  .js .vr-main:has(.vr-decide-bar) { padding-bottom: 6rem; }
  #decide { scroll-margin-top: 72px; }
}
@media (max-width: 980px) and (prefers-reduced-motion: reduce) {
  .js .vr-sidebar, .js.is-nav-open .vr-sidebar, .js .vr-decide-bar { transition: none; }
}

/* Touch screens and narrow windows: 44 px targets (Apple HIG) and 16 px text
   in fields – iOS Safari zooms into any smaller field when it gets focus. */
@media (max-width: 980px), (pointer: coarse) {
  :root { --vr-control-h: 44px; --vr-control-h-sm: 44px; }
  .vr-input, .vr-textarea, .vr-select select,
  .vr-table .vr-input:not(textarea):not([multiple]):not([size]),
  .vr-input.vr-input--sm:not(textarea):not([type="file"]):not([multiple]):not([size]) { font-size: 16px; }
  .vr-btn.vr-btn--sm { padding-left: 0.8rem; padding-right: 0.8rem; }
  input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; }
  input[type="file"].vr-input { min-height: 44px; }
  .vr-check-all { min-height: 44px; }
  .vr-tabs { overflow-x: auto; scrollbar-width: none; }
  .vr-tabs::-webkit-scrollbar { display: none; }
  .vr-tabs__item { min-height: 44px; white-space: nowrap; }
  /* Yes/no in the approval questions: the whole label is the target. */
  .vr-decide__q label { min-height: 44px; padding-right: 0.75rem; font-size: 0.95rem; }
}

/* ===== Phones (≤ 720 px) ================================== */
@media (max-width: 720px) {
  .vr-main { padding: 1rem; }
  .vr-card { padding: 1rem; }
  .vr-page-head { gap: 1rem; margin-bottom: 1.25rem; }
  .vr-page-head__actions { width: 100%; }
}

/* ===== Tables as cards ===================================
   voltreach.js sets .is-card on phones (≤ 720 px) and, at any width, on a
   table that does not fit (e.g. next to the sidebar on an iPad held across). One card per row, labels from the column heads; the first
   column is the card's title, a column without a head (actions) sits at the
   bottom. Without the script tables scroll sideways in .vr-table-wrap. */
.vr-table-wrap:has(> .vr-table.is-card) { overflow: visible; }
.vr-card:has(> .vr-table-wrap > .vr-table.is-card),
.vr-card.vr-table-wrap:has(> .vr-table.is-card) { padding: 0; border: 0; background: none; }
.vr-table.is-card, .vr-table.is-card tbody, .vr-table.is-card tr, .vr-table.is-card td { display: block; width: 100%; }
.vr-table.is-card { border: 0; border-radius: 0; background: none; overflow: visible; }
.vr-table.is-card thead {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.vr-table.is-card tr {
  position: relative;
  padding: 0.85rem 1rem;
  background: var(--vr-surface);
  border: 1px solid var(--vr-line); border-radius: var(--vr-radius-lg);
}
.vr-table.is-card tr + tr { margin-top: 0.75rem; }
.vr-table.is-card tr:hover td { background: transparent; }
.vr-table.is-card td { padding: 0.3rem 0; border: 0; min-width: 0; overflow-wrap: anywhere; text-align: left !important; }
.vr-table.is-card td:empty { display: none; }
/* Label in a fixed left column; the cell's own content flows unchanged on the right. */
.vr-table.is-card td[data-label] { position: relative; padding-left: calc(34% + 0.75rem); min-height: 1.9rem; }
.vr-table.is-card td[data-label]::before {
  content: attr(data-label);
  position: absolute; left: 0; top: 0.45rem; width: 34%;
  font-size: 0.75rem; font-weight: 500; color: var(--vr-ink-3); line-height: 1.3;
}
/* Title: the first cell, or the second one after a selection checkbox. */
.vr-table.is-card td:first-child[data-label],
.vr-table.is-card td:first-child:has(> input[type="checkbox"]) + td[data-label] {
  display: block; padding: 0 0 0.55rem; margin-bottom: 0.3rem; min-height: 0;
  border-bottom: 1px solid var(--vr-line);
}
.vr-table.is-card td:first-child[data-label],
.vr-table.is-card td:first-child:has(> input[type="checkbox"]) + td[data-label] { padding-left: 0; }
.vr-table.is-card td:first-child[data-label]::before,
.vr-table.is-card td:first-child:has(> input[type="checkbox"]) + td[data-label]::before { display: none; }
.vr-table.is-card td:first-child:has(> input[type="checkbox"]) {
  position: absolute; top: 0.55rem; right: 0.55rem; width: auto; padding: 0;
}
.vr-table.is-card td:first-child:has(> input[type="checkbox"]) input { width: 1.4rem; height: 1.4rem; margin: 0.35rem; }
.vr-table.is-card td:first-child:has(> input[type="checkbox"]) + td { padding-right: 2.5rem; }
/* Actions: full row at the bottom of the card. */
.vr-table.is-card td:last-child:not([data-label]):not(:first-child) {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start;
  padding-top: 0.7rem; margin-top: 0.4rem; border-top: 1px solid var(--vr-line);
}
.vr-table.is-card td[colspan] { text-align: center !important; }
.vr-table.is-card td .vr-input, .vr-table.is-card td select { width: 100%; max-width: none; }
