/* Shared design tokens live in RbTokens.css. */

fieldset.rb-logo-upload { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--rb-border); border-radius: var(--rb-radius-md); min-width: 0; margin: 0; }
fieldset.rb-logo-upload legend { font-weight: 600; padding: 0 4px; }
fieldset.rb-logo-upload p { margin: 0; }
.rb-logo-upload-preview { display: block; max-width: 100%; width: auto; height: auto; max-height: 112px; object-fit: contain; justify-self: start; }
.rb-country-selection { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--rb-border); border-radius: var(--rb-radius-md); display: grid; gap: 12px; }
.rb-country-selection legend { padding: 0 6px; font-weight: 600; }
.rb-country-list { display: grid; gap: 6px; max-height: 240px; overflow-y: auto; }
.rb-country-list label { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--rb-radius-sm); cursor: pointer; }
.rb-country-list label[hidden] { display: none; }
.rb-country-list label:hover { background: var(--rb-surface-soft); }
.rb-country-list input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; min-height: 0; margin: 0; }
.rb-payment-methods { display: grid; gap: 10px; }
.rb-payment-methods > p { margin: 0; font-weight: 600; }
.rb-payment-method { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px; background: var(--rb-surface-soft); border-radius: var(--rb-radius-md); }

fieldset.rb-brand-color { min-width: 0; margin: 0; padding: 14px 16px; border: 1px solid var(--rb-border); border-radius: var(--rb-radius-md); display: grid; gap: 10px; }
fieldset.rb-brand-color legend { padding: 0 6px; font-weight: 600; }
fieldset.rb-brand-color label { display: flex; align-items: center; gap: 8px; }
fieldset.rb-brand-color input[type="color"] { width: 96px; height: 44px; padding: 4px; cursor: pointer; }
fieldset.rb-brand-color input[type="color"]:disabled { opacity: .45; cursor: default; }

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-family: var(--rb-font-sans);
  font-size: 100%;
  background: var(--rb-bg);
  color: var(--rb-text);
}

body {
  font-family: var(--rb-font-sans);
  font-size: var(--rb-font-size-base);
  line-height: 1.5;
  color: var(--rb-text);
  background: var(--rb-bg);
  letter-spacing: 0;
}

.rb-filter,
.rb-filter-pills,
.rb-active-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-filter-pills,
.rb-active-filter-pills {
  flex-wrap: wrap;
}

/* Ansicht umschalten (Liste/Karten, Zeitraum, Modus): eine Spur mit hervorgehobener Auswahl.
   Für die Navigation zwischen Bereichen einer Seite gilt .rb-tabs. POS behält sein eigenes Design. */
.rb-segmented { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; max-width: 100%; }
.rb-segmented:not(.pos-seg) { padding: 4px; border-radius: var(--rb-radius-lg, 12px); background: var(--rb-surface-soft); }
.rb-segmented__button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--rb-control-height, 44px); padding: 0 14px; border: 0; border-radius: var(--rb-radius-sm, 8px);
  background: transparent; color: var(--rb-muted); font: 600 .875rem/1.35 var(--rb-font-sans);
  white-space: nowrap; cursor: pointer;
}
.rb-segmented__button:hover { color: var(--rb-text); }
.rb-segmented__button:is([aria-pressed="true"], [aria-checked="true"], .is-active),
a.rb-segmented__button[aria-current]:not([aria-current="false"]) { background: var(--rb-surface); color: var(--rb-text); box-shadow: var(--rb-shadow-sm); }
.rb-segmented__button:focus-visible { outline: 2px solid var(--rb-focus); outline-offset: 2px; }
/* Kompakte Spur für knappe Leisten (z. B. Preisanzeige im Kopf von rubioncms.io): sichtbar klein,
   jede Option behält über ::after eine 44 px hohe Trefferfläche. */
.rb-segmented--compact:not(.pos-seg) { gap: 2px; padding: 2px; border-radius: var(--rb-radius-sm, 8px); }
.rb-segmented--compact .rb-segmented__button { position: relative; min-height: 22px; padding: 0 10px; border-radius: 6px; font-size: .75rem; }
.rb-segmented--compact .rb-segmented__button::after { content: ""; position: absolute; inset: -11px 0; }
@media (forced-colors: active) {
  .rb-segmented__button[aria-pressed="true"] { outline: 1px solid Highlight; outline-offset: -3px; }
  .rb-segmented__button:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

.rb-filter-pill,
.rb-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rb-muted, #626262);
  font: 600 .875rem/1.35 var(--rb-font-sans, system-ui, sans-serif);
  text-decoration: none;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .15s ease, color .15s ease;
}

.rb-filter-pill:not(:disabled):hover {
  background: var(--rb-surface-soft, #f7f7f7);
  color: var(--rb-text, #171717);
}

.rb-filter-pill.is-active,
.rb-filter-pill[aria-pressed="true"],
.rb-filter-pill[data-active="true"] {
  background: var(--rb-text, #171717);
  color: var(--rb-surface, #fff);
}

.rb-filter-chip {
  padding: 0 0 0 12px;
  background: var(--rb-surface-soft, #f7f7f7);
  color: var(--rb-text, #171717);
}

.rb-filter-pill:focus-visible,
.rb-filter-chip button:focus-visible,
.rb-filter-chip .rb-filter-chip-remove:focus-visible {
  outline: 2px solid var(--rb-focus, #171717);
  outline-offset: 2px;
}

.rb-filter-pill:disabled,
.rb-filter-chip button:disabled {
  opacity: .5;
  cursor: default;
}

.rb-filter-pill small {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-size: .85em;
  font-weight: 600;
}

.rb-filter-chip button,
.rb-filter-chip .rb-filter-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.rb-filter-chip button:not(:disabled):hover {
  background: color-mix(in srgb, currentColor 9%, transparent);
}

.rb-filter-chip i,
.rb-filter-pill i {
  font-size: .95em;
}

.rb-meta-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  min-width: 0;
}

.rb-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rb-muted);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

i.lni {
  margin-bottom: -2px !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

::selection {
  color: #fff;
  background: var(--rb-text);
}

:focus-visible {
  outline: 2px solid var(--rb-text);
  outline-offset: 2px;
}

/* iOS zooms into text fields below 16px. Touch devices get 16px fields so typing never zooms the page;
   pinch zoom stays available because the viewport is not locked. */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea {
    font-size: max(16px, 1em) !important;
  }
}

/* After navigation the page heading takes programmatic focus for screen readers; it is not a control. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible {
  outline: none;
}

.rb-page {
  box-sizing: border-box;
  min-width: 0;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: var(--rb-space-6);
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--rb-space-5);
  color: var(--rb-text);
}

.rb-page--wide {
  max-width: 1440px;
}

.rb-page--fluid {
  width: 100%;
  max-width: none;
}

.rb-container { width: min(100%, 1280px); margin-inline: auto; padding-inline: 16px; }
.rb-container--public { max-width: 1240px; }
.rb-container--panel { max-width: 1280px; }
.rb-container--form { max-width: 640px; }
.rb-container--prose { max-width: 65ch; }
.rb-skip-link, .rb-public-skip-link {
  position: fixed; top: 12px; left: 16px; z-index: 120;
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 16px; border-radius: var(--rb-radius-sm, 8px);
  background: var(--rb-text, #171717); color: var(--rb-bg, #fff);
  font-size: .875rem; font-weight: 600; text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}
.rb-skip-link:focus-visible, .rb-public-skip-link:focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 3px; transform: none; }
@media (forced-colors: active) { .rb-skip-link, .rb-public-skip-link { background: Canvas; color: LinkText; border: 1px solid CanvasText; } .rb-skip-link:focus-visible, .rb-public-skip-link:focus-visible { outline-color: Highlight; } }
.rb-surface { background: var(--rb-surface-soft); border-radius: var(--rb-radius-lg); }

.rb-page-header,
.rb-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rb-space-4);
  flex-wrap: wrap;
}

.rb-page-title,
.rb-section-title {
  margin: 0;
  color: var(--rb-text);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.rb-page-title {
  font-size: 1.75rem;
  font-weight: 700;
}

/* Seitenkopf: Titel und kurze Unterzeile links, Aktionen rechts (mobil darunter). */
.rb-page-header__text { display: grid; align-content: start; min-width: 0; flex: 1 1 320px; }
.rb-page-header__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rb-space-2); }
.rb-page-header__text > .rb-kicker + .rb-page-title { margin-top: var(--rb-space-1); }

/* Abschnitte innerhalb einer Panel-Seite (öffentliche Seiten behalten ihre großen Abstände). */
.rb-page .rb-section { padding: 0; gap: var(--rb-space-4); }

/* Rabattpreis: einzige Stelle mit Signalfarbe neben dem Online-Punkt. */
.rb-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .4em; }
.rb-price__old { color: var(--rb-muted); font-weight: 400; text-decoration: line-through; }
.rb-price__new { color: var(--rb-price-sale, #c4262e); font-weight: 700; }
/* Preisanzeige Privatkunde (brutto, Standard) / Geschäftskunde (netto): ein Preis steht mit beiden Werten im Markup,
   <html data-price-mode="gross|net"> wählt den sichtbaren. Ohne Angabe bleibt brutto sichtbar. */
html:not([data-price-mode="net"]) [data-rb-price="net"],
html[data-price-mode="net"] [data-rb-price="gross"] { display: none !important; }

/* Online-Punkt: grün verbunden, rot getrennt, grau unbekannt. Immer mit Text daneben. */
.rb-online-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rb-subtle); vertical-align: middle; }
.rb-online-dot.is-online { background: var(--rb-online, #1e8e4f); }
.rb-online-dot.is-offline { background: var(--rb-offline, #c4262e); }
@media (forced-colors: active) { .rb-online-dot { forced-color-adjust: none; } }

/* Das Attribut hidden gewinnt gegen die display-Regeln der rb-Bausteine.
   Bewusst nicht global: einzelne ältere Seiten übersteuern hidden per CSS. */
:is(.rb-overlay, .rb-actions, .rb-card, .rb-toolbar, .rb-cluster, .rb-cluster-sm, .rb-grid, .rb-tabs, .rb-segmented, .rb-btn, .rb-icon-button, .rb-badge, .rb-field, .rb-form-actions, .rb-dl, .rb-side-nav, .rb-section, .rb-stack, .rb-row, .rb-filter-pills, .rb-table-wrap, .rb-choice-grid)[hidden] { display: none !important; }

.rb-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rb-section-title {
  font-size: 1.25rem;
}

.rb-kicker,
.rb-eyebrow {
  color: var(--rb-muted);
  font-size: 0.857em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  /* Satzschreibung statt Versalien: ruhiger und besser lesbar. */
  text-transform: none;
}

.rb-muted,
.rb-help,
.rb-caption,
.rb-page-subtitle,
.rb-section-subtitle {
  color: var(--rb-muted);
}

.rb-page-subtitle,
.rb-section-subtitle {
  max-width: 880px;
  margin: var(--rb-space-2) 0 0;
  line-height: 1.6;
}

.rb-stack {
  display: flex;
  flex-direction: column;
  gap: var(--rb-space-4);
}

.rb-stack-sm {
  display: flex;
  flex-direction: column;
  gap: var(--rb-space-3);
}

.rb-data-list {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rb-data-list__item { min-width: 0; }
.rb-data-list__title { overflow-wrap: anywhere; }
.rb-data-list__meta { color: var(--rb-muted); font-size: .8125rem; }
/* Zeilenliste: je Zeile Bezeichnung und Wert links, Aktion rechts; mobil rutscht die Aktion darunter. */
.rb-data-list--rows > .rb-data-list__item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rb-space-2) var(--rb-space-4); padding: var(--rb-space-4) 0; border-bottom: 1px solid var(--rb-border-soft); }
.rb-data-list--rows > .rb-data-list__item:first-child { padding-top: 0; }
.rb-data-list--rows > .rb-data-list__item:last-child { padding-bottom: 0; border-bottom: 0; }
.rb-data-list__body { display: grid; gap: 2px; flex: 1 1 12rem; min-width: 0; }
.rb-data-list__body > .rb-data-list__meta { font-size: .875rem; overflow-wrap: anywhere; }

/* Avatar: rundes Profilbild oder Initialen, monochrom. --lg für Profilköpfe. */
.rb-avatar { --rb-avatar-size: 40px; display: inline-grid; place-items: center; flex: none; width: var(--rb-avatar-size); height: var(--rb-avatar-size); overflow: hidden; border-radius: 50%; background: var(--rb-surface-muted); color: var(--rb-text); font-size: calc(var(--rb-avatar-size) * .36); font-weight: 600; line-height: 1; letter-spacing: .02em; user-select: none; }
.rb-avatar > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rb-avatar > .lni { font-size: calc(var(--rb-avatar-size) * .45); }
.rb-avatar--lg { --rb-avatar-size: 72px; }

/* Die Editor-Hülle (.rb-pages-workbench) vergrößert alle h2/h3; rb-Titel behalten dort ihre Vertragsgröße. */
.rb-pages-workbench :is(h2, h3).rb-section-title { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.rb-pages-workbench :is(h2, h3, h4).rb-card__title { font-size: 1rem; line-height: 1.3; }

.rb-message { min-width: 0; overflow-wrap: anywhere; }
.rb-message__meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--rb-space-2); min-width: 0; }
.rb-message__body { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.rb-message__status { color: var(--rb-muted); font-size: .8125rem; }

.rb-attachment-list { display: grid; gap: var(--rb-space-2); min-width: 0; }
.rb-attachment-list__item { min-width: 0; overflow-wrap: anywhere; }
.rb-attachment-list__preview { display: block; max-width: 100%; }
.rb-attachment-list__name { min-width: 0; overflow-wrap: anywhere; }

.rb-attachment-draft { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; min-width: 0; }
.rb-attachment-draft[hidden] { display: none !important; }
.rb-attachment-draft .rb-attachment-draft__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 0; border-radius: var(--rb-radius-lg, 12px); background: var(--rb-surface-soft, #f7f7f7); }
.rb-attachment-draft .rb-attachment-draft__media { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: var(--rb-radius-sm, 8px); background: var(--rb-surface, #fff); color: var(--rb-muted, #595959); }
.rb-attachment-draft .rb-attachment-draft__media img { width: 100%; height: 100%; object-fit: cover; }
.rb-attachment-draft .rb-attachment-draft__media [hidden] { display: none; }
.rb-attachment-draft .rb-attachment-draft__item .rb-attachment-draft__name { display: block; min-width: 0; padding: 0; border-radius: 0; background: transparent; color: var(--rb-text, #171717); font: 600 .875rem/1.4 var(--rb-font-sans); white-space: normal; overflow-wrap: anywhere; box-shadow: none; }
.rb-attachment-draft .rb-attachment-draft__size { display: block; margin-top: 4px; color: var(--rb-muted, #595959); font-size: .75rem; line-height: 1.4; }
.rb-attachment-draft .rb-attachment-draft__remove { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--rb-radius-sm, 8px); background: var(--rb-surface, #fff); color: var(--rb-text, #171717); cursor: pointer; }
.rb-attachment-draft .rb-attachment-draft__remove:focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }

.rb-search { min-width: 0; }
.rb-search-field { position: relative; display: block; flex: 1 1 auto; min-width: 0; width: 100%; }
.rb-search-field > .lni { position: absolute; z-index: 1; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--rb-muted, #626262); pointer-events: none; }
.rb-search-field > input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 44px; padding-inline-start: 42px !important; border: 1px solid var(--rb-border-input, #d8d8d8); border-radius: var(--rb-radius-sm, 8px); background: var(--rb-surface, #fff); color: var(--rb-text, #171717); font: inherit; }
.rb-search__controls { display: flex; align-items: center; gap: var(--rb-space-3); min-width: 0; }
.rb-search__input { flex: 1 1 auto; min-width: 0; }
.rb-search__status { margin: var(--rb-space-2) 0 0; color: var(--rb-muted); font-size: .8125rem; line-height: 1.5; }
.rb-search__results { display: grid; min-width: 0; }
.rb-search__result { min-width: 0; overflow-wrap: anywhere; }

.rb-prose { max-width: 65ch; color: var(--rb-text); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.rb-prose :is(img, video, iframe) { display: block; max-width: 100%; height: auto; }
.rb-prose :is(pre, table) { display: block; max-width: 100%; overflow-x: auto; }
.rb-prose table { white-space: nowrap; }

.rb-prose--plain-text {
  max-width: 72ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}

.rb-hidden {
  display: none;
}

.rb-pad-3 {
  padding: var(--rb-space-3);
}

.rb-pad-4 {
  padding: var(--rb-space-4);
}

.rb-pad-5 {
  padding: var(--rb-space-5);
}

.rb-pad-6 {
  padding: var(--rb-space-6);
}

.rb-mt-1 {
  margin-top: var(--rb-space-1);
}

.rb-mt-2 {
  margin-top: var(--rb-space-2);
}

.rb-mt-3 {
  margin-top: var(--rb-space-3);
}

.rb-mt-4 {
  margin-top: var(--rb-space-4);
}

.rb-mt-5 {
  margin-top: var(--rb-space-5);
}

.rb-mb-0 {
  margin-bottom: 0;
}

.rb-m-0 {
  margin: 0;
}

.rb-text-sm {
  font-size: 0.929em;
}

.rb-text-xs {
  font-size: 0.857em;
}

.rb-text-center {
  text-align: center;
}

.rb-text-lg {
  font-size: 1.286em;
}

.rb-text-xl {
  font-size: 2em;
}

.rb-weight-medium {
  font-weight: 600;
}

.rb-weight-bold {
  font-weight: 600;
}

.rb-surface-soft {
  background: var(--rb-surface-soft) !important;
}

.rb-full {
  width: 100%;
}

.rb-btn-fit {
  width: auto !important;
}

.rb-flex-1 {
  flex: 1;
  min-width: 0;
}

.rb-cluster {
  display: flex;
  align-items: center;
  gap: var(--rb-space-3);
  flex-wrap: wrap;
}

.rb-cluster-sm {
  display: flex;
  align-items: center;
  gap: var(--rb-space-2);
  flex-wrap: wrap;
}

.rb-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rb-space-3);
  flex-wrap: wrap;
}

.rb-sidebar-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: var(--rb-space-4);
}

.rb-grid-full {
  grid-column: 1 / -1;
}

.rb-inline-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.rb-stat-icon {
  flex: 1;
  font-size: 1.714em;
  color: var(--rb-muted);
}

.rb-stat-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.rb-stat-value {
  margin: 0;
  font-size: 2em;
  font-weight: 600;
}

.rb-stat-label {
  margin: 0;
  color: var(--rb-muted);
}

.rb-auth-logo {
  width: auto;
  height: 79px;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.rb-auth-logo-sm {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}

.rb-auth-shell {
  width: min(100%, 520px);
  margin: 24px auto;
  padding: 0 14px;
  min-height: calc(100vh - 48px);
  max-height: none;
  overflow: visible;
}

.rb-auth-shell--wide {
  width: min(100%, 1080px);
  min-height: auto;
  overflow: visible;
}

.rb-auth-shell--compact {
  width: min(100%, 760px);
}

.rb-auth-logo-row {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  width: 100%;
}

.rb-auth-journey {
  display: grid;
  gap: var(--rb-space-5);
  padding: clamp(12px, 2vw, 18px);
  min-height: 100%;
  max-height: none;
  overflow: visible;
}

.rb-auth-journey--login {
  gap: var(--rb-space-4);
}

.rb-auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: var(--rb-space-4);
  padding: clamp(20px, 4vw, 32px);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 35%),
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(242,245,247,0.9));
  border: 1px solid rgba(24, 24, 24, 0.08);
  box-shadow: 0 28px 60px rgba(23, 23, 23, 0.08);
}

.rb-auth-hero--login {
  grid-template-columns: minmax(0, 1fr);
}

.rb-auth-shell--login-admin {
  width: min(100%, 560px);
}

body.rb-login-shell-active {
  overflow: auto;
}

body.rb-login-shell-active .ui-menu,
body.rb-login-shell-active .header {
  opacity: 0;
  pointer-events: none;
}

body.rb-login-shell-active .container {
  min-height: 100vh;
}

.rb-auth-shell--login-admin .rb-auth-journey--login {
  gap: 16px;
  justify-items: center;
}

.rb-auth-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rb-auth-brand {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.rb-auth-brand--centered {
  justify-content: center;
  width: 100%;
}

.rb-auth-copy {
  display: grid;
  gap: var(--rb-space-3);
  align-content: start;
}

.rb-auth-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.06);
  color: #181818;
  font-size: 0.786em;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-auth-title {
  margin: 0;
  font-size: clamp(2.1em, 5vw, 3.2em);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.rb-auth-subtitle {
  margin: 0;
  color: #656565;
  font-size: 1em;
  line-height: 1.65;
  max-width: 56ch;
}

.rb-auth-shell--login-admin .rb-auth-title {
  font-size: clamp(1.9em, 4vw, 2.6em);
  line-height: 1.08;
}

.rb-auth-shell--login-admin .rb-auth-subtitle {
  max-width: 62ch;
  color: #707070;
}

.rb-auth-progress {
  display: grid;
  align-content: start;
  gap: 10px;
}

.rb-auth-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #656565;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.rb-auth-progress-item[data-state="active"] {
  border-color: rgba(24, 24, 24, 0.18);
  background: #181818;
  color: #fff;
  box-shadow: 0 18px 40px rgba(24, 24, 24, 0.15);
  transform: translateY(-1px);
}

.rb-auth-progress-item[data-state="done"] {
  color: #181818;
  background: rgba(255,255,255,0.92);
}

.rb-auth-progress-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.08);
  font-weight: 900;
}

.rb-auth-progress-item[data-state="active"] .rb-auth-progress-index {
  background: rgba(255,255,255,0.14);
}

.rb-auth-panel {
  display: grid;
  gap: var(--rb-space-4);
}

.rb-auth-panel--split {
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
}

.rb-auth-panel--single {
  grid-template-columns: minmax(0, 1fr);
}

.rb-auth-sidebar {
  display: grid;
  gap: var(--rb-space-3);
  align-content: start;
}

.rb-auth-sidebar-card,
.rb-auth-card,
.rb-auth-section-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(23, 23, 23, 0.08);
}

.rb-auth-sidebar-card {
  padding: 20px;
}

.rb-auth-sidebar-card--muted {
  background: linear-gradient(180deg, rgba(247,248,250,0.98), rgba(241,244,246,0.95));
}

.rb-auth-sidebar-title {
  margin: 10px 0 0;
  font-size: 1.4em;
  line-height: 1.15;
}

.rb-auth-sidebar-title--small {
  margin-top: 0;
  font-size: 1.1em;
}

.rb-auth-sidebar-text {
  margin: 8px 0 0;
  color: #656565;
  line-height: 1.6;
}

.rb-auth-card {
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: var(--rb-space-4);
  align-content: start;
}

.rb-auth-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 0;
}

.rb-auth-card-header-copy {
  display: grid;
  gap: 6px;
}

.rb-auth-card-eyebrow {
  color: #707070;
  font-size: 0.786em;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rb-auth-card-title {
  margin: 0;
  color: #181818;
  font-size: 1.429em;
  line-height: 1.15;
}

.rb-auth-card-text {
  margin: 0;
  color: #707070;
  line-height: 1.6;
}

.rb-auth-flow-state,
.rb-auth-activation {
  display: grid;
  gap: 12px;
}

.rb-auth-shell [hidden] {
  display: none !important;
}

.rb-auth-section-card--soft {
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(247,248,250,0.98), rgba(241,244,246,0.95));
}

.rb-auth-muted-copy {
  margin: 6px 0 0;
  color: #656565;
  line-height: 1.6;
}

.rb-status-page {
  display: grid;
  gap: clamp(16px, 2.6vw, 24px);
  min-height: auto;
  overflow: visible;
  padding: clamp(10px, 2vw, 18px);
}

.rb-status-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.rb-status-hero {
  display: grid;
  align-items: center;
  gap: clamp(16px, 2.4vw, 26px);
  justify-items: center;
  min-height: auto;
  overflow: visible;
  padding: clamp(28px, 4vw, 52px) clamp(18px, 3vw, 40px);
  border-radius: 34px;
  border: 1px solid rgba(55, 55, 55, 0.1);
  background: linear-gradient(180deg, #dcdcdc 0%, #d4d4d4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.rb-status-page--error .rb-status-hero,
.rb-status-page--maintenance .rb-status-hero {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rb-status-page--error .rb-status-hero::after,
.rb-status-page--maintenance .rb-status-hero::after {
  background: transparent;
}

.rb-status-hero--construction {
  background: linear-gradient(180deg, #dcdcdc 0%, #d3d3d3 100%);
}

.rb-status-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  justify-items: center;
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.rb-status-code-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.rb-status-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 34, 34, 0.12);
  color: #474747;
  font-size: 0.92em;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rb-status-kicker-pill,
.rb-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: #5c5c5c;
  font-size: 0.8em;
  font-weight: 600;
}

.rb-status-kicker-pill {
  background: rgba(255, 255, 255, 0.44);
  color: #6f6f6f;
}

.rb-status-hero--construction .rb-status-kicker-pill {
  color: #717171;
}

.rb-status-chip--soft {
  background: rgba(255, 255, 255, 0.54);
}

.rb-status-title {
  margin: 0;
  color: #6d6d6d;
  font-size: clamp(2em, 4.4vw, 3em);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.rb-status-hero--construction .rb-status-title {
  color: #707070;
}

.rb-status-text {
  margin: 0;
  max-width: 76ch;
  color: rgba(94, 94, 94, 0.92);
  font-size: 1em;
  line-height: 1.7;
}

.rb-status-hero--construction .rb-status-text {
  color: rgba(100, 100, 100, 0.96);
}

.rb-status-inline,
.rb-status-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.rb-status-actions .btn,
.rb-maintenance-modal-actions .btn {
  min-width: 148px;
}

.rb-status-actions .btn.btn-dark,
.rb-maintenance-actions .btn.btn-dark,
.rb-maintenance-modal-actions .btn.btn-dark {
  background: #181818 !important;
  color: #fff !important;
}

#maintenanceLoginModal #loginBtn {
  background: #181818 !important;
  color: #fff !important;
}

.rb-status-actions .btn:hover,
.rb-maintenance-modal-actions .btn:hover {
  transform: translateY(-1px);
}

.rb-status-actions .btn:not(.btn-dark),
.rb-maintenance-actions .btn:not(.btn-dark),
.rb-maintenance-modal-actions .btn:not(.btn-dark) {
  background: rgba(255, 255, 255, 0.82) !important;
  color: #181818 !important;
  border: 1px solid rgba(24, 24, 24, 0.08);
}

#maintenanceLoginModal #loginBtn:hover {
  background: #282828 !important;
}

.rb-status-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 8px 0 4px;
  width: 100%;
}

.rb-status-art {
  width: min(100%, 430px);
  height: auto;
  object-fit: contain;
  filter: grayscale(0.32) saturate(0.58) contrast(0.96) brightness(0.98);
}

.rb-status-art--astronaut {
  transform: translateY(2px);
}

.rb-status-art--construction {
  width: min(100%, 340px);
}

.rb-status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 760px;
}

.rb-status-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(74, 74, 74, 0.08);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.rb-status-page--error .rb-status-card,
.rb-status-page--maintenance .rb-status-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rb-status-card-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: #525252;
  font-size: 0.786em;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-status-card-title {
  margin: 0;
  color: #474747;
  font-size: 1.05em;
  line-height: 1.22;
}

.rb-status-card-copy {
  margin: 0;
  color: rgba(79, 79, 79, 0.9);
  line-height: 1.65;
}

.rb-status-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: rgba(79, 79, 79, 0.94);
  line-height: 1.65;
}

.rb-maintenance-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 23, 23, 0.42);
  backdrop-filter: blur(10px);
}

.rb-maintenance-modal-card {
  width: min(100%, 480px);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 30px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 24, 24, 0.08);
  box-shadow: 0 26px 64px rgba(23, 23, 23, 0.2);
}

.rb-maintenance-modal-title {
  margin: 0;
}

.rb-maintenance-modal-copy {
  margin: 0;
  color: #656565;
  line-height: 1.65;
}

.rb-maintenance-form {
  display: grid;
  gap: 14px;
}

.rb-maintenance-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rb-auth-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #181818;
  color: #fff;
  font-family: var(--rb-font-mono);
  font-size: 1.286em;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.rb-auth-fields {
  display: grid;
  gap: var(--rb-space-4);
}

.rb-auth-fields--tight {
  gap: var(--rb-space-3);
}

.rb-auth-register-skeleton,
.rb-auth-register-skeleton-stack,
.rb-auth-register-skeleton-fields {
  display: grid;
  gap: 12px;
}

.rb-auth-register-skeleton-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rb-auth-register-skeleton .rb-auth-register-skeleton__line--title { width: 34%; }
.rb-auth-register-skeleton .rb-auth-register-skeleton__line--hint { width: 72%; }
.rb-auth-register-skeleton .rb-auth-register-skeleton__line--hint-last { width: 58%; }

.rb-auth-register-skeleton-fields .rb-auth-skeleton-field {
  display: block;
  min-height: 54px;
  border-radius: 18px;
}

.rb-auth-skeleton-field--wide {
  grid-column: 1 / -1;
}

.rb-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rb-space-3);
}

.rb-auth-grid > .rb-field--full {
  grid-column: 1 / -1;
}

.rb-auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rb-space-3);
  flex-wrap: wrap;
}

.rb-auth-actions--inline {
  justify-content: flex-start;
}

.rb-auth-footer {
  display: flex;
  justify-content: center;
  color: #656565;
}

.rb-auth-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rb-auth-helper {
  color: #656565;
  font-size: 0.857em;
  line-height: 1.5;
}

.rb-auth-status {
  font-size: 0.857em;
  line-height: 1.5;
  color: #656565;
}

.rb-auth-status[data-loading="true"] {
  min-height: 16px;
  width: min(220px, 75%);
  border-radius: 999px;
}

.rb-auth-status[data-tone] {
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: var(--rb-radius-md, 8px);
  background: var(--rb-surface-muted);
  color: var(--rb-text);
}

/* Auth forms also load panel styles whose generic input margin would shift fields off the label grid. */
.rb-auth-fields :is(.rb-input, .rb-select, .rb-textarea) { margin: 0; }
.rb-auth-flow-state:empty { display: none; }

.rb-form__summary > strong { display: block; }
.rb-form__summary ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.rb-form__summary a { color: inherit; text-underline-offset: 2px; }

.rb-auth-inline-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--rb-radius-md, 8px);
  border: 0;
  background: var(--rb-surface-muted);
  color: var(--rb-text);
  line-height: 1.55;
}

.rb-auth-inline-feedback[hidden],
.rb-auth-inline-feedback:empty {
  display: none !important;
}

.rb-auth-inline-feedback[data-tone="danger"],
.rb-auth-inline-feedback[data-tone="warning"] { font-weight: 600; }

.rb-auth-inline-feedback.is-loading::before,
.rb-auth-button-busy::before,
.rb-auth-modal-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  border: 2px solid rgba(24, 24, 24, 0.14);
  border-top-color: currentColor;
  animation: rb-auth-spin 0.8s linear infinite;
}

.rb-auth-button-busy,
.rb-auth-modal-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rb-auth-modal-feedback {
  margin: 0 0 14px;
}

.rb-auth-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rb-auth-code-caption {
  margin: 10px 0 0;
  color: #656565;
  font-size: 0.857em;
  line-height: 1.55;
}

.rb-auth-code-grid input[aria-invalid="true"] {
  border-color: var(--rb-focus, #171717);
  box-shadow: 0 0 0 2px var(--rb-accent-soft, rgba(23, 23, 23, .08));
}

.rb-auth-trust-copy {
  margin: 0 0 14px;
  color: #656565;
  font-size: 0.857em;
  line-height: 1.6;
}

.rb-auth-provider-stack {
  display: grid;
  gap: 10px;
}

.rb-auth-provider-row {
  display: grid;
  gap: 10px;
}

.rb-auth-shell--login-admin .rb-auth-provider-row {
  gap: 12px;
}

.rb-auth-provider-button {
  justify-content: flex-start;
  min-height: 50px;
  border-radius: 16px;
  font-weight: 600;
}

.rb-auth-shell--login-admin .rb-auth-provider-button {
  min-height: 56px;
  padding: 14px 16px;
  border-color: transparent;
  background: #f8fafc;
  box-shadow: none;
}

.rb-auth-provider-button strong {
  flex: 1;
  text-align: left;
}

.rb-auth-provider-button small {
  color: #707070;
  font-weight: 600;
}

.rb-auth-provider-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #939393;
  font-size: 0.786em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-auth-provider-divider::before,
.rb-auth-provider-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(24, 24, 24, 0.1);
}

.rb-auth-modal-copy {
  color: #656565;
  line-height: 1.6;
  margin: 0 0 14px;
}

.rb-code-input {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: nowrap;
  width: min(100%, 304px);
  margin-inline: auto;
}

.rb-code-input .rb-code-input__digit {
  flex: 1 1 0;
  width: min(44px, 100%);
  min-width: 0;
  min-height: 48px;
  padding: 0;
  text-align: center;
  font-size: 1.143em;
  font-weight: 600;
}

.rb-auth-login-hint {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fafb, #f3f5f7);
  border: 1px solid rgba(24, 24, 24, 0.08);
}

.rb-auth-login-hint h3,
.rb-auth-login-hint p {
  margin: 0;
}

.rb-auth-login-hint h3 {
  font-size: 1.2em;
}

.rb-auth-login-hint p {
  color: #656565;
  line-height: 1.6;
}

@keyframes rb-auth-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.rb-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rb-space-3);
}

.rb-scroll-panel {
  max-height: 520px;
  overflow: auto;
}

.rb-scroll-sm {
  max-height: 280px;
  overflow: auto;
}

.rb-choice-card {
  display: flex;
  flex-direction: column;
  gap: var(--rb-space-2);
  padding: var(--rb-space-2);
  margin: var(--rb-space-1);
  border: 1px solid var(--rb-border-soft);
  border-radius: var(--rb-radius-sm);
  background: var(--rb-surface);
  cursor: pointer;
}

.rb-chip-block {
  padding: 10px 8px;
  border-radius: var(--rb-radius-sm);
  background: var(--rb-surface-soft);
  color: var(--rb-text);
  font-size: 0.786em;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.rb-avatar-placeholder {
  width: 45px;
  height: 45px;
  margin-right: 10px;
  border: 2px solid var(--rb-border-soft);
  border-radius: 999px;
  background: var(--rb-surface-muted);
}

.rb-min-220 {
  min-width: 220px;
}

.rb-min-h-90 {
  min-height: 90px;
}

.rb-min-h-190 {
  min-height: 190px;
}

.rb-icon-inline {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rb-clickable {
  position: relative;
  cursor: pointer;
}

.rb-center {
  justify-content: center;
}

.rb-row,
.rb-toolbar,
.rb-actions {
  display: flex;
  align-items: center;
  gap: var(--rb-space-3);
  flex-wrap: wrap;
}

.rb-toolbar {
  justify-content: space-between;
}

.rb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--rb-space-4);
  width: 100%;
}

.rb-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rb-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rb-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rb-grid--sidebar {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.rb-card,
.card,
.panel,
.sheet,
.dialog {
  background: var(--rb-surface) !important;
  border: 0 !important;
  border-radius: var(--rb-radius-lg) !important;
  box-shadow: none !important;
  color: var(--rb-text);
}

.dialog { box-shadow: var(--rb-shadow-lg) !important; }

/* Karte: weiße Fläche mit feiner Linie, damit sie sich auf weißem Grund abhebt.
   --soft = graue Fläche ohne Linie (für ruhige Nebeninfos). Karten nicht verschachteln. */
.rb-card {
  padding: var(--rb-space-5);
}

.rb-card:not(.rb-card--soft) {
  border: 1px solid var(--rb-border) !important;
}

.rb-card--flush {
  padding: 0;
  overflow: hidden;
}

.rb-card--flush > .rb-table-wrap,
.rb-card--flush > .rb-table {
  margin: 0;
}

.rb-card--soft,
.card.alt,
.panel.alt {
  background: var(--rb-surface-soft) !important;
}

.rb-card--compact {
  padding: var(--rb-space-4);
}

.rb-page-updated-dialog { width: min(440px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--rb-radius-xl); background: var(--rb-surface); color: var(--rb-text); box-shadow: var(--rb-shadow-lg); font-family: var(--rb-font-sans, 'Plus Jakarta Sans', system-ui, sans-serif); }
.rb-page-updated-dialog::backdrop { background: rgba(23, 23, 23, .42); }
.rb-page-updated-dialog__body { display: grid; gap: 14px; padding: clamp(20px, 5vw, 30px); }
.rb-page-updated-dialog__body h2 { margin: 0; font-size: clamp(20px, 4vw, 25px); line-height: 1.25; font-weight: 600; }
.rb-page-updated-dialog__body p { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.rb-page-updated-dialog__body > p:not(.rb-kicker) { color: var(--rb-muted); }
.rb-page-updated-dialog__status:empty { display: none; }
.rb-page-updated-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.rb-page-updated-dialog__actions .rb-btn { min-height: 44px; }
.rb-page-updated-dialog button:focus-visible { outline: 2px solid var(--rb-text); outline-offset: 2px; }
@media (max-width: 480px) { .rb-page-updated-dialog__actions { display: grid; grid-template-columns: 1fr; } .rb-page-updated-dialog__actions .rb-btn { width: 100%; } }
.rb-auth-sso-approve__form { display: grid; gap: 16px; }
.rb-auth-sso-approve__form .rb-field { min-width: 0; }
.rb-auth-sso-approve__form .rb-input { width: 100%; min-width: 0; }
.rb-auth-sso-approve__form .rb-field__hint { margin: -8px 0 0; line-height: 1.5; }
.rb-auth-sso-approve__status { min-height: 1.5em; margin: 0; color: var(--rb-muted); line-height: 1.5; overflow-wrap: anywhere; }
.rb-auth-sso-approve__form .rb-form-actions { margin-top: 0; }
.rb-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--rb-radius-lg);
  background: var(--rb-surface);
  color: var(--rb-text);
  font-family: var(--rb-font-sans);
  box-shadow: var(--rb-shadow-lg);
}
.rb-dialog::backdrop { background: rgba(23, 23, 23, .42); }
.rb-dialog__title { margin: 0; font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.rb-dialog__body { margin: 16px 0 0; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
/* Structured dialog content: the stack sets the spacing, paragraphs add none of their own. */
.rb-dialog__body :where(.rb-stack, .rb-stack-sm) > :where(p) { margin: 0; }
.rb-dialog__actions { display: flex; justify-content: end; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.rb-dialog :focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }
@media (max-width: 767px) {
  .rb-dialog { padding: 22px; }
  .rb-dialog__actions { flex-direction: column; }
  .rb-dialog__actions .rb-btn { width: 100%; min-height: 44px; }
  .rb-dialog__actions .rb-btn--primary { order: -1; }
}
@media (forced-colors: active) {
  .rb-dialog { border: 1px solid CanvasText; box-shadow: none; }
}
/* Card dialog (--card): icon tile, title and one line, close button; info row, value rows and stacked full-width actions.
   Built on the native <dialog> of .rb-dialog (modal, Escape, focus); used e.g. for quantity changes in the customer area. */
.rb-dialog--card { position: relative; width: min(460px, calc(100vw - 24px)); padding: 24px; border-radius: 20px; }
.rb-dialog--card .rb-dialog__body { display: grid; gap: 16px; margin-top: 20px; white-space: normal; line-height: 1.5; }
.rb-dialog__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 4px 14px; padding-right: 28px; }
.rb-dialog__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--rb-radius-lg); background: var(--rb-surface-muted); font-size: 24px; }
.rb-dialog.rb-dialog--card .rb-dialog__title { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.rb-dialog--card [hidden] { display: none !important; }
.rb-dialog--card .rb-dialog__note { margin: 0; color: var(--rb-muted); font-size: .875rem; line-height: 1.5; }
.rb-dialog--card .rb-notice { margin: 0; }
.rb-dialog__subtitle { grid-column: 2; margin: 0; color: var(--rb-muted); font-size: .9375rem; line-height: 1.45; }
.rb-dialog__close { position: absolute; top: 12px; right: 12px; font-size: 24px; }
.rb-dialog__info { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border-radius: var(--rb-radius-md); background: var(--rb-surface-soft); font-weight: 600; line-height: 1.4; }
.rb-dialog__info .lni { flex: none; font-size: 18px; }
.rb-dialog__field { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.rb-dialog__field > label { font-weight: 650; }
.rb-dialog__values { display: grid; gap: 0; margin: 0; padding: 4px 16px; border-radius: var(--rb-radius-md); background: var(--rb-surface-soft); }
.rb-dialog__values > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; }
.rb-dialog__values > div + div { border-top: 1px solid var(--rb-border); }
.rb-dialog__values dt { color: var(--rb-muted); }
.rb-dialog__values dd { margin: 0; text-align: right; white-space: nowrap; }
.rb-dialog__values dd strong { font-size: 1.0625rem; font-weight: 700; }
.rb-dialog__values dd small { margin-left: 4px; color: var(--rb-muted); font-size: .75rem; }
.rb-dialog__values > .rb-dialog__total dt { color: var(--rb-text); }
.rb-dialog__actions--stack { display: grid; gap: 10px; margin-top: 4px; }
.rb-dialog__actions--stack > .rb-btn { width: 100%; min-height: 48px; }
@media (max-width: 767px) { .rb-dialog--card { padding: 20px; } .rb-dialog.rb-dialog--card .rb-dialog__title { font-size: 1.375rem; } }
/* Stepper: number with decrease and increase buttons (44px targets); the input stays a native number field. */
.rb-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--rb-border-input); border-radius: var(--rb-radius-md, 10px); background: var(--rb-surface); }
.rb-stepper:focus-within { border-color: var(--rb-focus); }
.rb-stepper .rb-icon-button { background: var(--rb-surface-soft); flex: 0 0 32px; width: 32px; height: 32px; min-width: 32px; min-height: 32px; font-size: 13px; }
.rb-stepper .rb-icon-button:hover:not(:disabled) { background: var(--rb-surface-muted); }
.rb-stepper > input.rb-stepper__input { flex: none; margin: 0; border-radius: var(--rb-radius-sm); width: 3ch; min-width: 0; max-width: none; box-shadow: none; min-height: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--rb-text); font: inherit; font-size: 1rem; font-weight: 600; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.rb-stepper > input.rb-stepper__input::-webkit-outer-spin-button, .rb-stepper > input.rb-stepper__input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.rb-stepper > input.rb-stepper__input:focus { outline: none; box-shadow: none; }
.rb-stepper > input.rb-stepper__input:focus-visible { outline: none; }
.modal-overlay.rb-dialog-overlay {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(23, 23, 23, .4);
  backdrop-filter: none;
  z-index: 1000010;
}
.modal-box.rb-dialog__panel {
  box-sizing: border-box;
  width: min(520px, 100%);
  max-width: 520px;
  max-height: calc(100dvh - 32px);
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: var(--rb-radius-xl, 16px);
  background: var(--rb-surface, #fff);
  color: var(--rb-text, #171717);
  box-shadow: var(--rb-shadow-lg, 0 24px 60px rgba(23, 23, 23, .12));
  font-family: var(--rb-font-sans, "Plus Jakarta Sans", sans-serif);
  animation: none;
}
.rb-dialog .rb-dialog__title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--rb-text, #171717);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
.rb-dialog .rb-dialog__message {
  color: var(--rb-muted, #595959);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.rb-dialog .rb-dialog__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid var(--rb-border-input, #8a8a8a);
  border-radius: var(--rb-radius-md, 8px);
  font-size: 14px;
  outline-offset: 2px;
}
.rb-dialog .rb-dialog__input:focus { border-color: var(--rb-focus, #171717); }
.rb-dialog .rb-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.rb-dialog .rb-dialog__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--rb-radius-md, 8px);
  font: 600 14px var(--rb-font-sans, "Plus Jakarta Sans", sans-serif);
  cursor: pointer;
  user-select: none;
}
.rb-dialog .rb-dialog__button:focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 3px; }
.rb-dialog .rb-dialog__button i { display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; font-size: 13px; line-height: 1; }
.rb-dialog .rb-dialog__code-row {
  display: grid;
  grid-template-columns: repeat(var(--modal-code-length, 6), minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 304px);
  margin: 16px auto 0;
}
.rb-dialog .rb-dialog__code-digit {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  border: 1px solid var(--rb-border-input, #8a8a8a);
  border-radius: var(--rb-radius-md, 8px);
  background: var(--rb-surface, #fff);
  color: var(--rb-text, #171717);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  outline-offset: 2px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.rb-dialog .rb-dialog__code-digit:focus { border-color: var(--rb-focus, #171717); box-shadow: 0 0 0 2px var(--rb-accent-soft, rgba(23, 23, 23, .08)); }
.rb-dialog .rb-dialog__code-row .rb-dialog__code-digit { max-width: none; }
.rb-dialog .rb-field > .rb-dialog__code-row { margin-top: 0; }
@media (max-width: 383px) {
  .rb-dialog .rb-dialog__code-row[data-modal-code-length="6"] { grid-template-columns: repeat(3, minmax(44px, 1fr)); width: min(100%, 148px); }
}
.rb-dialog .rb-dialog__error { display: none; margin-top: 8px; color: var(--rb-text, #171717); font-size: 13px; font-weight: 500; }
.rb-dialog .rb-dialog__action-error:not([hidden]) { display: block; padding: 10px 12px; border-radius: var(--rb-radius-sm); background: var(--rb-surface-muted); overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .rb-dialog .rb-dialog__actions { flex-direction: column; }
  .rb-dialog .rb-dialog__actions .rb-dialog__button { width: 100%; }
  .rb-dialog .rb-dialog__actions .rb-btn--primary { order: -1; }
}
@media (forced-colors: active) {
  .modal-box.rb-dialog__panel { border: 1px solid CanvasText; box-shadow: none; }
}
.rb-payment-choice-dialog { width: min(680px, calc(100vw - 32px)); max-width: 680px; }
.rb-payment-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.rb-payment-choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 16px;
  border: 0;
  border-radius: var(--rb-radius-lg, 14px);
  background: var(--rb-surface-soft, #f7f7f7);
  color: var(--rb-text, #171717);
  font-family: var(--rb-font-sans, "Plus Jakarta Sans", sans-serif);
  text-align: left;
  cursor: pointer;
}
.rb-payment-choice:hover:not(:disabled) { background: var(--rb-surface-muted, #eee); }
.rb-payment-choice:focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }
.rb-payment-choice:disabled { opacity: .55; cursor: not-allowed; }
.rb-payment-choice__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; font-size: 18px; }
.rb-payment-choice__body { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.rb-payment-choice__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.rb-payment-choice__title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.rb-payment-choice__badge { font-size: 11px; }
.rb-payment-choice__description { color: var(--rb-muted, #595959); font-size: 12px; line-height: 1.5; }
.rb-payment-choice__meta { font-size: 12px; font-weight: 600; line-height: 1.45; }
.rb-payment-choice__empty { grid-column: 1 / -1; margin: 0; color: var(--rb-muted, #595959); line-height: 1.55; }
@media (max-width: 767px) { .rb-payment-choice-list { grid-template-columns: minmax(0, 1fr); } }
@media (forced-colors: active) { .rb-payment-choice { border: 1px solid CanvasText; } }
.rb-access-lock { display: grid; gap: 12px; min-width: 0; padding: 24px 0; color: var(--rb-muted, #666); font-size: 14px; line-height: 1.55; }
.rb-empty-page { box-sizing: border-box; display: grid; align-content: start; gap: 12px; width: min(100%, 1280px); min-width: 0; margin: 0 auto; padding: 56px 40px 72px; color: var(--rb-text, #171717); font-family: var(--rb-font-sans, "Plus Jakarta Sans", system-ui, sans-serif); }
.rb-empty-page__eyebrow { margin: 0; color: var(--rb-muted, #595959); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.rb-empty-page h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
.rb-empty-page :is(.rb-empty-page__description, .rb-empty-page__hint) { max-width: 65ch; margin: 0; color: var(--rb-muted, #595959); line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 1023px) { .rb-empty-page { padding-inline: 24px; } }
@media (max-width: 640px) { .rb-empty-page { padding: 40px 16px 56px; } }
.rb-access-lock h2 { margin: 0; color: var(--rb-text, #171717); font-size: 21px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.rb-access-lock p { margin: 0; max-width: 65ch; }
.rb-access-lock h3 { margin: 14px 0 0; color: var(--rb-text, #171717); font-size: 15px; font-weight: 600; }
.rb-access-lock__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rb-access-lock__actions .rb-btn, .rb-access-lock__task .rb-btn { min-height: 44px; }
.rb-access-lock__tasks { display: grid; min-width: 0; }
.rb-access-lock__task { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--rb-border-soft, #e9e9e9); }
.rb-access-lock__task > div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.rb-access-lock__task strong { color: var(--rb-text, #171717); }
.rb-access-lock__task span { font-size: 13px; }
@media (max-width: 680px) { .rb-access-lock__actions, .rb-access-lock__actions .rb-btn { width: 100%; } .rb-access-lock__task { align-items: stretch; flex-direction: column; } .rb-access-lock__task .rb-btn { width: 100%; } }
.rb-card--interactive,
a.rb-card,
a.card {
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.rb-card--interactive:hover,
a.rb-card:hover,
a.card:hover {
  background: var(--rb-surface-soft) !important;
}

.rb-code-panel,
pre,
code {
  font-family: var(--rb-font-mono);
}

.rb-code-panel {
  padding: var(--rb-space-4);
  overflow: auto;
  border-radius: var(--rb-radius-md);
  background: #202123;
  color: #f7f7f8;
  line-height: 1.6;
  font-size: 0.857em;
}

.rb-empty,
.rubion-empty-state {
  padding: var(--rb-space-6) 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rb-muted);
  text-align: left;
}

/* Tabs: Navigation zwischen Bereichen einer Seite. Eine Leiste, ausgewählter Tab schwarz hinterlegt.
   Markup: <nav class="rb-tabs" role="tablist"><button class="rb-tabs__tab" role="tab" aria-selected="true">…
   Verhalten über Tabs.js ([data-rubion-tab-list] / [data-rubion-tab]). */
.rb-tabs,
.rubion-tabs,
[data-rubion-tab-list],
[data-rubion-tabs]:not(:has([data-rubion-tab-list])) {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--rb-space-1);
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.rb-tabs::-webkit-scrollbar,
[data-rubion-tab-list]::-webkit-scrollbar { display: none !important; }

:is(.rb-tabs, .rubion-tabs, [data-rubion-tab-list]) > :is(button, a, .btn, .rb-btn, .rb-tabs__tab),
[data-rubion-tab] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: var(--rb-space-2);
  /* !important: ein Tab sieht immer wie ein Tab aus, auch wenn er zusätzlich Button-Klassen trägt. */
  min-height: var(--rb-control-height, 44px) !important;
  margin: 0;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--rb-muted) !important;
  font: 600 .875rem/1 var(--rb-font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none !important;
}

:is(.rb-tabs, .rubion-tabs, [data-rubion-tab-list]) > :is(button, a, .btn, .rb-btn, .rb-tabs__tab):hover,
[data-rubion-tab]:hover {
  background: var(--rb-surface-soft) !important;
  color: var(--rb-text) !important;
}

:is(.rb-tabs, .rubion-tabs, [data-rubion-tab-list]) > :is(.is-active, .active, [aria-selected="true"], [aria-pressed="true"], [aria-current="page"]),
[data-rubion-tab]:is(.is-active, .active, [aria-selected="true"]) {
  background: var(--rb-text) !important;
  color: var(--rb-bg) !important;
}

:is(.rb-tabs, .rubion-tabs, [data-rubion-tab-list]) > [hidden] { display: none !important; }

/* Variante --equal: wenige Tabs teilen sich die Breite gleichmäßig (z. B. zwei Bereiche in einer Seitenleiste).
   Einzeilig, solange Platz ist; sehr schmal bricht die Beschriftung um, statt abgeschnitten zu werden. */
.rb-tabs.rb-tabs--equal { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; overflow: visible; }
.rb-tabs.rb-tabs--equal > :is(button, a, .rb-tabs__tab) { min-width: 0; white-space: normal; line-height: 1.2; text-align: center; }

/* Variante --fade: scrollende Tabs zeigen am Rand einen weichen Verlauf in Scrollrichtung.
   Das Seitenskript setzt data-overflow="start|end|both" (ohne Attribut kein Verlauf). */
.rb-tabs.rb-tabs--fade[data-overflow="end"] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.rb-tabs.rb-tabs--fade[data-overflow="start"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.rb-tabs.rb-tabs--fade[data-overflow="both"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }

:is(.rb-tabs, .rubion-tabs, [data-rubion-tab-list]) > :focus-visible,
[data-rubion-tab]:focus-visible {
  outline: 2px solid var(--rb-focus);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  :is(.rb-tabs, [data-rubion-tab-list]) > [aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}

.rb-auth-shell--login-admin .rb-auth-card {
  border-radius: 20px;
  border-color: transparent;
  box-shadow: 0 22px 46px rgba(23, 23, 23, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.rb-auth-card--login-slim {
  width: min(100%, 420px);
  margin: 0 auto;
  height: auto;
  min-height: 0;
  align-self: start;
  gap: 14px;
  padding: 24px 22px;
}

.rb-auth-passkey-entry {
  display: grid;
  gap: 10px;
}

.rb-auth-passkey-button {
  min-height: 50px;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  text-align: center;
  gap: 10px;
}

.rb-auth-passkey-button span,
.rb-auth-passkey-button strong {
  display: block;
  font-weight: 600;
}

.rb-auth-passkey-icon {
  font-size: 1.05em;
  line-height: 1;
}

.rb-auth-shell--login-admin .rb-auth-actions {
  padding-top: 6px;
}

.rb-auth-provider-stack--after-passkey {
  margin-top: 2px;
}

.rb-field {
  display: flex;
  flex-direction: column;
  gap: var(--rb-space-2);
}

.rb-check {
  display: inline-flex;
  align-items: center;
  gap: var(--rb-space-2);
  min-height: 44px;
  color: var(--rb-text);
  font-size: .875rem;
  line-height: 1.5;
  cursor: pointer;
}

.rb-check > input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rb-accent);
}

.rb-form {
  display: grid;
  gap: var(--rb-space-6);
  min-width: 0;
}

.rb-form__section {
  display: grid;
  gap: var(--rb-space-4);
  min-width: 0;
}

.rb-form__summary {
  padding: var(--rb-space-4);
  border: 0;
  border-radius: var(--rb-radius-md);
  background: var(--rb-surface-soft);
  color: var(--rb-text);
  line-height: 1.5;
}

.rb-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--rb-space-3);
}

.rb-field__label {
  color: var(--rb-text);
  font-size: .875rem;
  font-weight: 600;
}
.rb-admin-generated-field { display: grid; align-content: start; gap: 6px; min-width: 0; }

.rb-field__hint,
.rb-field__error {
  font-size: .8125rem;
  line-height: 1.5;
}

.rb-field__hint { color: var(--rb-muted); }
.rb-field__error { color: var(--rb-text); }
.rb-auth-required-note { margin: 0; }

.rb-input,
.rb-select,
.rb-textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rb-border-input);
  border-radius: var(--rb-radius-md);
  background: var(--rb-surface);
  color: var(--rb-text);
  font: inherit;
  /* Ältere Layout-Regeln geben input/select einen Außenabstand; rb-Felder sitzen bündig. */
  margin: 0;
}

.rb-textarea--code {
  min-height: 120px;
  resize: vertical;
  font-family: var(--rb-font-mono, Consolas, monospace);
}

.rb-input:focus-visible,
.rb-select:focus-visible,
.rb-textarea:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

.rb-input[aria-invalid="true"],
.rb-select[aria-invalid="true"],
.rb-textarea[aria-invalid="true"] {
  border-color: var(--rb-text);
}

.rb-input:disabled,
.rb-select:disabled,
.rb-textarea:disabled {
  background: var(--rb-surface-soft);
  color: var(--rb-muted);
  cursor: not-allowed;
}

.rb-notice {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--rb-radius-md, 10px);
  background: var(--rb-surface-soft, #f5f5f5);
  color: var(--rb-text, #171717);
  line-height: 1.5;
}

.rb-notice[hidden],
.rb-notice:empty { display: none; }
.rb-notice__body { max-width: 72ch; }
.rb-notice__actions { display: flex; flex-wrap: wrap; gap: var(--rb-space-2, 8px); margin-top: var(--rb-space-3, 12px); }

@media (max-width: 640px) {
  .rb-form-actions > :is(button, a) { flex: 1 1 100%; }
}

.rb-field label,
label.rb-label {
  color: var(--rb-muted);
  font-size: 0.857em;
  font-weight: 600;
}

.rb-auth-shell--login-admin .rb-field > span {
  color: #3f3f3f;
  font-size: 0.857em;
  font-weight: 600;
}

.rb-auth-helper-text {
  color: #a1a1a1;
  font-size: 0.786em;
  line-height: 1.55;
}

.rb-auth-shell--login-admin input {
  min-height: 46px;
  border-color: transparent;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.04);
}

.rb-auth-shell--login-admin input::placeholder {
  color: #a1a1a1;
}

.rb-auth-shell--login-admin .rb-auth-footer {
  justify-content: center;
  justify-items: center;
  text-align: center;
  padding-top: 4px;
}

.rb-auth-transition {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(241, 245, 249, 0.58);
  backdrop-filter: blur(18px);
}

.rb-auth-transition[hidden] {
  display: none !important;
}

.rb-auth-transition-card {
  width: min(460px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 30px 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
  text-align: center;
}

.rb-auth-transition-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 999px;
  border: 3px solid rgba(24, 24, 24, 0.12);
  border-top-color: #181818;
  animation: rb-auth-spin 0.8s linear infinite;
}

.rb-auth-transition-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.rb-auth-transition-copy strong {
  font-size: clamp(1.28em, 2vw, 1.5em);
  color: #181818;
  letter-spacing: -0.02em;
  animation: rb-auth-transition-rise 420ms ease;
}

.rb-auth-transition-copy p {
  margin: 0;
  color: #545454;
  font-size: 1em;
  line-height: 1.65;
}

.rb-auth-transition-copy p.is-animating {
  animation: rb-auth-transition-message 420ms ease;
}

@keyframes rb-auth-transition-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rb-auth-transition-message {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

input,
select,
textarea {
  color: var(--rb-text);
  background: var(--rb-surface);
  border: 1px solid var(--rb-border-input);
  border-radius: var(--rb-radius-md);
  min-height: 44px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rb-text);
  box-shadow: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--rb-subtle);
}

.btn,
button.btn,
a.btn,
.rb-btn,
button.rb-btn,
a.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rb-space-2);
  width: auto;
  min-height: var(--rb-control-height, 44px);
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--rb-radius-sm);
  /* Standard = sekundär: auf weißem Grund immer als Button erkennbar. */
  background: var(--rb-surface-soft);
  color: var(--rb-text);
  font-family: var(--rb-font-sans);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

/* Varianten (eine Liste für das ganze Produkt):
   --primary  Hauptaktion, höchstens eine pro Bereich
   --secondary weitere Aktionen (entspricht dem Standard)
   --ghost / --text  ruhige Nebenaktion ohne Fläche
   --danger   endgültige, nicht umkehrbare Aktion (monochrom, umrandet)
   --outline  Nebenaktion mit Rahmen, z. B. „Abbrechen“ unter einer breiten Hauptaktion
   --sm / --small  kompakt in dichten Tabellen (nur mit Maus; Touch bleibt 44px)
   --icon     quadratisch, nur Icon (aria-label Pflicht) */
.rb-btn--ghost,
.rb-btn--text {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--rb-text) !important;
}

.rb-btn--ghost:hover,
.rb-btn--text:hover {
  background: var(--rb-surface-soft) !important;
}

.rb-btn--danger,
.btn.btn-danger {
  background: transparent !important;
  border-color: var(--rb-text) !important;
  color: var(--rb-text) !important;
}

.rb-btn--danger:hover,
.btn.btn-danger:hover {
  background: var(--rb-text) !important;
  color: var(--rb-bg) !important;
}

/* --outline: secondary action with a frame (e.g. "Abbrechen" under a full-width primary action). */
.rb-btn--outline {
  background: transparent !important;
  border: 1.5px solid var(--rb-text) !important;
  color: var(--rb-text) !important;
}

.rb-btn--outline:hover {
  background: var(--rb-surface-soft) !important;
}

.rb-btn--icon {
  width: var(--rb-control-height, 44px);
  padding: 0;
  flex: 0 0 var(--rb-control-height, 44px);
}

.rb-btn.rb-btn--wrap { box-sizing: border-box; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.rb-btn--block { width: 100%; }

@media (pointer: fine) {
  .rb-btn--sm,
  .rb-btn--small {
    min-height: var(--rb-control-height-sm, 36px);
    padding: 0 12px;
  }
  .rb-btn--sm.rb-btn--icon,
  .rb-btn--small.rb-btn--icon {
    width: var(--rb-control-height-sm, 36px);
    flex-basis: var(--rb-control-height-sm, 36px);
  }
}

.rb-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--rb-radius-sm);
  background: transparent;
  color: var(--rb-text);
  font: inherit;
  cursor: pointer;
}
.rb-icon-button:hover { background: var(--rb-surface-muted); }
.rb-icon-button:disabled { opacity: .48; cursor: not-allowed; }

body .header .actionButtons .btn-notify.rb-icon-button {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--rb-radius-md);
  background: transparent;
  color: var(--rb-text);
}
body .header .actionButtons .btn-notify.rb-icon-button:hover {
  background: var(--rb-surface-soft);
}
body .header .actionButtons .btn-notify.rb-icon-button:focus-visible {
  outline: 2px solid var(--rb-focus);
  outline-offset: 2px;
}
body .header .actionButtons .btn-notify.rb-icon-button .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  box-sizing: border-box;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--rb-text);
  color: var(--rb-surface);
  font-size: 11px;
  line-height: 1;
}
body.layout-dark .header .actionButtons .btn-notify.rb-icon-button { color: #e7eaf0; }
body.layout-dark .header .actionButtons .btn-notify.rb-icon-button:hover { background: #2a2a2a; }
body.layout-dark .header .actionButtons .btn-notify.rb-icon-button .badge {
  background: #e7eaf0;
  color: #171a21;
}

.header .actionButtons .rb-notification-popover {
  box-sizing: border-box;
  position: absolute;
  z-index: 9999;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  flex-direction: column;
  width: min(380px, calc(100vw - 40px));
  max-height: min(560px, calc(100dvh - 80px));
  overflow: hidden;
  border: 1px solid var(--rb-border-soft);
  border-radius: var(--rb-radius-lg);
  background: var(--rb-surface);
  box-shadow: var(--rb-shadow-lg);
  color: var(--rb-text);
  font-family: var(--rb-font-sans);
}
body.layout-dark .header .actionButtons .rb-notification-popover {
  --rb-surface: #171a21;
  --rb-surface-soft: #20242c;
  --rb-surface-muted: #323232;
  --rb-text: #e7eaf0;
  --rb-muted: #b3b3b3;
  --rb-border-soft: rgba(255, 255, 255, .12);
  --rb-focus: #e7eaf0;
}

.rb-notification-popover__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
  padding: 14px;
}

.rb-notification-popover__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.rb-notification-popover__header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rb-notification-popover__header-actions .rb-btn {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
}
.rb-notification-popover__header-actions .rb-btn:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.rb-notification-popover__list {
  display: grid;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.rb-notification-popover__empty {
  padding: 18px 14px;
  color: var(--rb-muted);
  font-size: 14px;
  line-height: 1.5;
}
.rb-notification-popover__retry {
  align-self: flex-start;
  min-height: 44px;
  margin: 0 14px 14px;
}

.rb-notification-popover__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--rb-border-soft);
  background: var(--rb-surface);
}
.rb-notification-popover__item.unread {
  background: var(--rb-surface-soft);
}
.rb-notification-popover__item .notification-link {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.rb-notification-popover__item .notification-link:hover .notification-text {
  text-decoration: underline;
}
.rb-notification-popover__item .notification-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
.rb-notification-popover__item :is(.notification-avatar, .notification-icon) {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.rb-notification-popover__item .notification-avatar { object-fit: cover; }
.rb-notification-popover__item .notification-icon {
  background: var(--rb-surface-muted);
  color: var(--rb-text);
}
.rb-notification-popover__item .notification-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rb-notification-popover__item .notification-text {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}
.rb-notification-popover__item.unread .notification-text { font-weight: 600; }
.rb-notification-popover__item .notification-time {
  color: var(--rb-muted);
  font-size: 12px;
  line-height: 1.4;
}
.rb-notification-popover__item .notification-actions {
  display: flex;
  flex: 0 0 44px;
  flex-direction: column;
  gap: 4px;
}
.rb-notification-popover__item .rb-icon-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--rb-radius-sm);
}
.rb-notification-popover :is(button, a):focus-visible {
  outline: 2px solid var(--rb-focus);
  outline-offset: 2px;
}

.header:where(:has(.rb-profile-popover)) { position: relative; }

body .header .profile.rb-profile-trigger {
  box-sizing: border-box;
  min-height: 44px;
  border-radius: var(--rb-radius-md);
  background: transparent;
  outline: none;
}
body .header .profile.rb-profile-trigger:hover,
body .header .profile.rb-profile-trigger.active {
  border-radius: var(--rb-radius-md);
  background: var(--rb-surface-soft);
}
body .header .profile.rb-profile-trigger:focus-visible {
  outline: 2px solid var(--rb-focus);
  outline-offset: 2px;
}
body .header .profile-dropdown.rb-profile-popover {
  box-sizing: border-box;
  position: absolute;
  z-index: 1001;
  top: calc(100% + 8px);
  right: 12px;
  display: none;
  flex-direction: column;
  gap: 2px;
  width: min(280px, calc(100vw - 24px));
  max-height: calc(100dvh - 80px);
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--rb-border-soft);
  border-radius: var(--rb-radius-lg);
  background: var(--rb-surface);
  color: var(--rb-text);
  box-shadow: var(--rb-shadow-lg);
  font-family: var(--rb-font-sans);
}
body .header .rb-profile-popover .dropdown-item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--rb-radius-sm);
  background: transparent;
  color: var(--rb-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
body .header .rb-profile-popover .dropdown-item:hover,
body .header .rb-profile-popover .dropdown-item.red,
body .header .rb-profile-popover .dropdown-item.red:hover {
  background: transparent;
  color: var(--rb-text);
}
body .header .rb-profile-popover .dropdown-item:hover,
body .header .rb-profile-popover .dropdown-item.red:hover {
  background: var(--rb-surface-soft);
}
body .header .rb-profile-popover .dropdown-item:focus-visible,
body .header .rb-profile-popover button:focus-visible {
  outline: 2px solid var(--rb-focus);
  outline-offset: -2px;
}
body .header .rb-profile-popover .profile-language-menu {
  flex-wrap: wrap;
  padding: 0;
}
body .header .rb-profile-popover .profile-language-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--rb-radius-sm);
  background: transparent;
  color: var(--rb-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
body .header .rb-profile-popover .profile-language-trigger:hover {
  background: var(--rb-surface-soft);
}
body .header .rb-profile-popover .profile-language-submenu {
  position: static;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  margin: 8px 0 0;
  padding: 4px 0 0;
  border: 0;
  border-top: 1px solid var(--rb-border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body .header .rb-profile-popover .profile-language-menu:hover .profile-language-submenu {
  display: none;
}
body .header .rb-profile-popover .profile-language-menu.is-open .profile-language-submenu {
  display: flex;
}
body .header .rb-profile-popover .profile-language-option {
  min-height: 44px;
  border-radius: var(--rb-radius-sm);
  background: transparent;
  color: var(--rb-text);
  font-size: 13px;
  font-weight: 500;
}
body .header .rb-profile-popover .profile-language-option:hover,
body .header .rb-profile-popover .profile-language-option.is-active {
  background: var(--rb-surface-soft);
}
body.layout-dark .header .profile.rb-profile-trigger {
  color: #e7eaf0;
}
body.layout-dark .header .profile.rb-profile-trigger:hover,
body.layout-dark .header .profile.rb-profile-trigger.active {
  background: #2a2a2a;
}
body.layout-dark .header .profile-dropdown.rb-profile-popover {
  --rb-surface: #171a21;
  --rb-surface-soft: #20242c;
  --rb-surface-muted: #323232;
  --rb-text: #e7eaf0;
  --rb-muted: #b3b3b3;
  --rb-border-soft: rgba(255, 255, 255, .12);
  --rb-focus: #e7eaf0;
}

.btn:hover,
.rb-btn:hover {
  background: var(--rb-surface-muted);
  border-color: transparent;
}

.btn:focus-visible,
.rb-btn:focus-visible,
.rb-icon-button:focus-visible,
.rb-icon-btn:focus-visible {
  outline: 2px solid var(--rb-focus);
  outline-offset: 2px;
}

.btn.btn-dark,
.btn.primary,
.btn.btn-orange,
.btn.btn-red,
.rb-btn--primary {
  background: var(--rb-text) !important;
  border-color: var(--rb-text) !important;
  color: #fff !important;
}

.btn.btn-dark:hover,
.btn.primary:hover,
.btn.btn-orange:hover,
.btn.btn-red:hover,
.rb-btn--primary:hover {
  background: #000 !important;
  border-color: #000 !important;
}

.btn.btn-blue,
.btn.secondary,
.rb-btn--secondary {
  background: var(--rb-surface-soft) !important;
  border-color: transparent !important;
  color: var(--rb-text) !important;
}

.btn.btn-blue:hover,
.btn.secondary:hover,
.rb-btn--secondary:hover {
  background: var(--rb-surface-muted) !important;
}

.btn-disabled,
.btn:disabled,
.rb-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

/* Unavailable but still focusable and clickable, so the action can explain why it is blocked. */
.rb-btn[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
}

/* .rb-icon-btn ist ein Alias von .rb-icon-button (gleiche Größe, gleiche Fläche). */
.rb-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--rb-control-height, 44px);
  width: var(--rb-control-height, 44px);
  height: var(--rb-control-height, 44px);
  min-width: var(--rb-control-height, 44px);
  padding: 0;
  border: 0;
  border-radius: var(--rb-radius-sm);
  background: transparent;
  color: var(--rb-text);
  font: inherit;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rb-control-height, 44px);
  height: var(--rb-control-height, 44px);
  min-width: var(--rb-control-height, 44px);
  border: 1px solid var(--rb-border-soft);
  border-radius: var(--rb-radius-md);
  background: var(--rb-surface);
  color: var(--rb-muted);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.rb-icon-btn:hover,
.header-icon-btn:hover {
  background: var(--rb-surface-soft);
  color: var(--rb-text);
}

.rb-badge,
.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--rb-surface-soft);
  color: var(--rb-muted);
  font-size: 0.857em;
  font-weight: 600;
  line-height: 1;
}

.rb-badge.success,
.badge.success,
.pill.success {
  background: var(--rb-surface-soft);
  color: var(--rb-text);
}

.rb-badge.warning,
.badge.warning,
.pill.warning {
  background: var(--rb-surface-soft);
  color: var(--rb-muted);
}

.rb-badge.danger,
.badge.danger,
.pill.danger {
  background: var(--rb-surface-soft);
  color: var(--rb-text);
}

.rb-table-wrap {
  width: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: var(--rb-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--rb-text);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rb-border-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--rb-muted);
  font-size: 0.857em;
  font-weight: 600;
  background: var(--rb-surface-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.rb-table__scroll {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rb-table__scroll--responsive { container-type: inline-size; }

.rb-table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background: transparent;
  box-shadow: none;
}

.rb-table th {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--rb-border-soft, #ededed);
  background: transparent;
  color: var(--rb-muted, #626262);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.rb-table td {
  padding: 15px 12px;
  border: 0;
  border-bottom: 1px solid var(--rb-border-soft, #ededed);
  background: transparent;
  color: var(--rb-text, #171717);
  font-size: 14px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.rb-table tbody tr:hover td { background: var(--rb-surface-soft, #f5f5f5); }
.rb-table__actions { display: flex; flex-wrap: wrap; gap: var(--rb-space-2, 8px); }

@container (max-width: 680px) {
  .rb-table--stacked,
  .rb-table--stacked tbody,
  .rb-table--stacked tr,
  .rb-table--stacked td,
  .rb-table--stacked tbody th[scope="row"] { display: block; width: 100%; }
  .rb-table--stacked thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .rb-table--stacked tr { padding: 13px 0; border-bottom: 1px solid var(--rb-border-soft, #ededed); }
  .rb-table--stacked td,
  .rb-table--stacked tbody th[scope="row"] {
    display: grid; grid-template-columns: minmax(105px, .65fr) minmax(0, 1fr);
    gap: 10px; padding: 5px 0; border: 0; overflow-wrap: anywhere;
  }
  .rb-table--stacked tbody th[scope="row"] { background: transparent; color: var(--rb-text, #171717); font-size: 14px; }
  .rb-table--stacked td::before,
  .rb-table--stacked tbody th[scope="row"]::before {
    content: attr(data-label); color: var(--rb-muted, #626262);
    font-size: 13px; font-weight: 400;
  }
  .rb-table.rb-table--stacked td.rb-table__num { text-align: left; }
  .rb-table--stacked td[data-rb-table-action] { display: block; padding-top: 10px; }
  .rb-table--stacked td[data-rb-table-action]::before { display: none; }
  .rb-table--stacked tbody tr:hover td { background: transparent; }
}

.rb-overlay {
  position: fixed;
  inset: 0;
  z-index: 10090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  background: rgba(23, 23, 23, .48);
}

.rb-overlay__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(var(--rb-overlay-width, 720px), 100%);
  min-width: 0;
  max-height: calc(100dvh - clamp(24px, 6vw, 48px));
  overflow: hidden;
  border: 0;
  border-radius: var(--rb-radius-xl, 16px);
  background: var(--rb-surface, #fff);
  color: var(--rb-text, #171717);
  box-shadow: var(--rb-shadow-lg, 0 24px 60px rgba(23, 23, 23, .12));
}

.rb-overlay__header,
.rb-overlay__footer { display: flex; align-items: flex-start; gap: var(--rb-space-3, 12px); padding: var(--rb-space-5, 20px) var(--rb-space-6, 24px); }
.rb-overlay__header { justify-content: space-between; }
.rb-overlay__title { margin: 0; font-size: var(--rb-font-size-lg, 1.25rem); font-weight: 600; line-height: 1.3; }
.rb-overlay__description { margin: var(--rb-space-1, 4px) 0 0; color: var(--rb-muted, #595959); font-size: var(--rb-font-size-sm, .875rem); line-height: 1.5; }
.rb-overlay__body { min-height: 0; overflow: auto; padding: 0 var(--rb-space-6, 24px) var(--rb-space-5, 20px); }
.rb-overlay__footer { flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--rb-border-soft, #eee); }

@media (max-width: 600px) {
  .rb-overlay { align-items: flex-end; padding: 0; }
  .rb-overlay__panel { width: 100%; max-height: 100dvh; border-radius: var(--rb-radius-xl, 16px) var(--rb-radius-xl, 16px) 0 0; }
  .rb-overlay__header, .rb-overlay__footer { padding: var(--rb-space-4, 16px); }
  .rb-overlay__body { padding: 0 var(--rb-space-4, 16px) var(--rb-space-4, 16px); }
  .rb-overlay__footer .rb-btn { flex: 1 1 100%; }
}

.rb-skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: var(--rb-space-3);
  min-width: 0;
}

.rb-skeleton {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: var(--rb-surface-muted, #eaeaea);
  animation: rbSkeleton 1.6s ease-in-out infinite;
}

.rb-skeleton--line { width: min(280px, 80%); height: 18px; border-radius: 8px; }
.rb-skeleton--short { width: min(180px, 60%); height: 12px; border-radius: 8px; }

@keyframes rbSkeleton {
  50% { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .rb-skeleton { animation: none; }
}

.rb-public-page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: var(--rb-space-6) 0 var(--rb-space-8);
}

.rb-hero,
.rb-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--rb-space-6);
  padding: 80px 0;
}

.rb-hero {
  min-height: min(720px, calc(100vh - 120px));
  align-items: center;
  padding: clamp(28px, 5vw, 56px) 0;
}

.rb-hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--rb-text);
  font-size: clamp(2rem, calc(3.39vw + .373rem), 3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.rb-hero p,
.rb-section p {
  color: var(--rb-muted);
  line-height: 1.7;
}

.rb-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--rb-space-4);
}

@media (max-width: 900px) {
  .rb-page {
    padding: var(--rb-space-4);
  }

  .rb-grid--2,
  .rb-grid--3,
  .rb-grid--4,
  .rb-grid--sidebar {
    grid-template-columns: 1fr;
  }

  .rb-toolbar,
  .rb-page-header,
  .rb-section-header {
    align-items: stretch;
  }

  .rb-actions,
  .rb-toolbar > * {
    width: 100%;
  }

  .btn,
  .rb-btn {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .rb-page,
  .rb-card {
    padding: var(--rb-space-4);
  }

  .rb-page {
    gap: var(--rb-space-4);
  }

  .rb-row,
  .rb-actions {
    align-items: stretch;
  }

  .rb-actions .btn,
  .rb-actions .rb-btn {
    width: 100%;
  }
}

.rb-admin-skrime__ledger { min-width: 0; max-height: 320px; margin-top: var(--rb-space-4); padding: var(--rb-space-4); overflow: auto; background: var(--rb-surface-soft); }
.rb-admin-skrime__history { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--rb-space-3); min-width: 0; margin-top: var(--rb-space-4); }
/* Stored website_page_revisions still contains rb-u-0268; preserve its layout until that revision is migrated. */
.rb-u-0268 { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:14px; }
.admin-payment-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(24, 24, 24,.42); }
.admin-payment-modal[hidden] { display:none !important; }
.admin-payment-modal-panel { width:min(720px,100%); max-height:min(760px,calc(100vh - 40px)); overflow:auto; border-radius:8px; background:#fff; color:#181818; box-shadow:0 24px 60px rgba(24, 24, 24,.18); }
.admin-payment-modal-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px; border-bottom:1px solid #edf0f5; }
.admin-payment-modal-body { display:grid; gap:12px; padding:16px; }

@media (max-width: 960px) {
  .rb-auth-hero,
  .rb-auth-panel--split,
  .rb-status-hero,
  .rb-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rb-status-scene {
    min-height: 220px;
    order: -1;
  }
}

@media (max-width: 640px) {
  .rb-auth-title {
    font-size: 2.2em;
  }

  .rb-auth-card,
  .rb-auth-sidebar-card,
  .rb-auth-hero,
  .rb-status-hero,
  .rb-status-card {
    border-radius: 22px;
  }

  .rb-auth-grid,
  .rb-form-grid,
  .rb-grid--2,
  .rb-grid--sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .rb-auth-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .rb-status-page {
    padding: 8px 0;
  }

  .rb-status-code-wrap,
  .rb-status-inline,
  .rb-status-actions,
  .rb-maintenance-modal-actions {
    align-items: stretch;
  }

  .rb-status-actions .btn,
  .rb-maintenance-modal-actions .btn,
  .rb-status-actions .rb-btn,
  .rb-maintenance-modal-actions .rb-btn {
    width: 100%;
    min-width: 0;
  }

  .rb-status-title {
    font-size: clamp(1.9em, 8vw, 2.6em);
  }

  .rb-status-scene {
    min-height: 180px;
    padding: 0;
  }

  .rb-status-art {
    width: min(100%, 280px);
  }

  .rb-maintenance-modal {
    padding: 14px;
  }

  .rb-code-input .rb-code-input__digit {
    max-width: 40px;
  }
}

.rb-provisioning-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    font-weight: 600;
}
.rb-provisioning-input {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rb-border, #e1e1e1);
    border-radius: 8px;
    background: var(--rb-surface, #fff);
    color: var(--rb-text, #282828);
    font: inherit;
    font-weight: 400;
}
.rb-provisioning-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    padding: 14px;
    border: 1px solid var(--rb-border, #e1e1e1);
    border-radius: 10px;
    line-height: 1.5;
}
.rb-provisioning-consent input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

/* Reusable starting website layouts for purchased customer templates. */
.rb-website { box-sizing: border-box; width: 100%; min-width: 0; color: var(--rb-text, #171717); background: var(--rb-bg, #fff); font-family: var(--rb-font-sans, "Plus Jakarta Sans", system-ui, sans-serif); }
.rb-website *, .rb-website *::before, .rb-website *::after { box-sizing: border-box; }
.rb-website-header, .rb-website-main, .rb-website-footer { width: min(1240px, calc(100% - 80px)); margin: 0 auto; }
.rb-website-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; border-bottom: 1px solid var(--rb-border-soft, #eee); }
.rb-website-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.rb-website-logo { display: block; max-width: 160px; max-height: 40px; object-fit: contain; }
.rb-website-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.rb-website-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rb-muted, #595959); text-decoration: none; font-size: .875rem; font-weight: 500; }
.rb-website-nav a:hover, .rb-website-nav a[aria-current="page"] { color: var(--rb-text, #171717); }
.rb-website-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 8px; }
.rb-website-hero { padding: clamp(56px, 9vw, 112px) 0; max-width: 850px; }
.rb-website-eyebrow { margin: 0; color: var(--rb-muted, #595959); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.rb-website-hero h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; margin: 20px 0; }
.rb-website-lead { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.65; max-width: 680px; margin-bottom: 28px; color: var(--rb-muted, #595959); }
.rb-website-sections { padding-bottom: 64px; }
.rb-website-link { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0; min-height: 160px; padding: 24px 0; color: inherit; text-decoration: none; border-top: 1px solid var(--rb-border-soft, #eee); }
.rb-website-link h2 { margin: 0; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.rb-website-link span { color: var(--rb-muted, #595959); font-size: .875rem; font-weight: 500; }
.rb-website-link:hover span { color: var(--rb-text, #171717); }
.rb-website a:focus-visible { outline: 2px solid var(--rb-text, #171717); outline-offset: 4px; }
.rb-website-footer { padding: 28px 0; border-top: 1px solid var(--rb-border-soft, #eee); color: var(--rb-muted, #595959); font-size: .875rem; }
@media (max-width: 1023px) { .rb-website-header, .rb-website-main, .rb-website-footer { width: calc(100% - 48px); } }
@media (max-width: 720px) { .rb-website-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 0; } .rb-website-sections { grid-template-columns: 1fr; } .rb-website-link { min-height: 0; gap: 16px; } }
@media (max-width: 640px) { .rb-website-header, .rb-website-main, .rb-website-footer { width: calc(100% - 32px); } }

@media (min-width: 641px) {
  .rb-container { padding-inline: 24px; }
}

@media (min-width: 1024px) {
  .rb-container { padding-inline: 40px; }
  .rb-page { padding: 32px 40px; }
}

@media (max-width: 1023px) {
  .rb-page { padding: 24px; }
}

@media (max-width: 767px) {
  .rb-page-title { font-size: 1.5rem; }
  .rb-hero, .rb-section { padding-block: 48px; }
}

@media (max-width: 640px) {
  .rb-page { padding: 16px; }
}

/* Shared auth surface: the same quiet layout for login, registration and checks. */
.rb-auth-shell {
  width: min(100%, 440px);
  min-height: 0;
  margin: 24px auto;
  padding: 0;
  color: var(--rb-text);
  font-family: var(--rb-font-sans);
}

.rb-auth-shell--compact {
  width: min(100%, 440px);
}

.rb-auth-shell--login-admin {
  width: min(100%, 420px);
}

.rb-auth-shell--login-admin .rb-auth-panel--single {
  width: 100%;
  min-width: 0;
}

.rb-auth-shell--wide {
  width: min(100%, 640px);
}

.rb-auth-journey,
.rb-auth-journey--login {
  gap: 24px;
  padding: 0;
}

.rb-auth-hero,
.rb-auth-hero--login {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rb-auth-logo {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 56px;
}

.rb-auth-brand a {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
}

.rb-auth-copy {
  gap: 8px;
}

.rb-auth-copy--centered {
  justify-items: center;
  text-align: center;
}

.rb-auth-title,
.rb-auth-shell--login-admin .rb-auth-title {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--rb-text);
}

.rb-auth-subtitle,
.rb-auth-shell--login-admin .rb-auth-subtitle {
  color: var(--rb-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.rb-auth-panel--split {
  grid-template-columns: minmax(0, 1fr);
}

.rb-auth-progress {
  display: flex;
  gap: 8px;
}

.rb-auth-progress-item,
.rb-auth-progress-item[data-state="active"],
.rb-auth-progress-item[data-state="done"] {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 0 0;
  border: 0;
  border-top: 3px solid var(--rb-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--rb-muted);
  font-size: .75rem;
  line-height: 1.35;
}

.rb-auth-progress-item[data-state="active"],
.rb-auth-progress-item[data-state="done"] {
  border-top-color: var(--rb-text);
  color: var(--rb-text);
}

.rb-auth-progress-index,
.rb-auth-progress-item[data-state="active"] .rb-auth-progress-index {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-weight: 600;
}

.rb-auth-progress-item > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 359px) {
  .rb-auth-progress-item {
    flex: 1 1 0;
  }

  .rb-auth-progress-item[data-state="active"] {
    flex: 2 1 0;
  }

  .rb-auth-progress-item:not([data-state="active"]) > div:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .rb-auth-progress-item[data-state="active"] > div:last-child {
    overflow-wrap: normal;
    white-space: nowrap;
  }
}

.rb-auth-card,
.rb-auth-shell--login-admin .rb-auth-card,
.rb-auth-section-card,
.rb-auth-section-card--soft {
  border: 0;
  border-radius: 16px;
  background: var(--rb-surface-soft);
  box-shadow: none;
}

.rb-auth-card,
.rb-auth-card--login-slim {
  width: 100%;
  max-width: none;
  padding: 32px;
  gap: 20px;
}

.rb-auth-sidebar-card,
.rb-auth-sidebar-card--muted {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rb-auth-kicker,
.rb-auth-card-eyebrow {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rb-muted);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.rb-auth-sidebar-title {
  margin-top: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.rb-auth-sidebar-text,
.rb-auth-muted-copy,
.rb-auth-card-text {
  color: var(--rb-muted);
  line-height: 1.55;
}

.rb-auth-shell .rb-field > span,
.rb-auth-shell .rb-field > label {
  color: var(--rb-text);
  font-size: .875rem;
  font-weight: 600;
}

.rb-auth-shell .rb-field > .rb-auth-helper-text {
  color: var(--rb-muted);
  font-size: .8125rem;
  font-weight: 400;
}

.rb-auth-password-wrap {
  position: relative;
}

.rb-auth-password-wrap input {
  padding-right: 52px !important;
}

.rb-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rb-muted);
  cursor: pointer;
}

.rb-auth-password-toggle:hover {
  background: var(--rb-surface-soft);
  color: var(--rb-text);
}

.rb-auth-password-rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--rb-muted);
  font-size: .8125rem;
  line-height: 1.45;
}

.rb-auth-password-rules li[data-met="true"] {
  color: var(--rb-text);
}

.rb-auth-recovery {
  display: grid;
  gap: 16px;
}

.rb-auth-recovery p {
  margin: 0;
  color: var(--rb-muted);
  line-height: 1.55;
}

.rb-auth-recovery-code {
  display: block;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--rb-text);
  font: 600 .875rem/1.5 var(--rb-font-mono);
  overflow-wrap: anywhere;
  user-select: text;
}

.rb-auth-shell .rb-field input,
.rb-auth-shell .rb-field select,
.rb-auth-shell--login-admin input {
  min-height: 48px;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.rb-auth-shell .rb-field input:focus-visible,
.rb-auth-shell .rb-field select:focus-visible,
.rb-auth-shell button:focus-visible,
.rb-auth-shell a:focus-visible {
  outline: 2px solid var(--rb-accent);
  outline-offset: 2px;
}

.rb-auth-shell .btn,
.rb-auth-shell .rb-btn,
.rb-auth-passkey-button,
.rb-auth-provider-button,
.rb-auth-shell--login-admin .rb-auth-provider-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
}

.rb-auth-shell .btn.btn-dark,
.rb-auth-shell .rb-btn--primary {
  background: var(--rb-accent);
  color: #fff;
}

.rb-auth-passkey-button,
.rb-auth-shell--login-admin .rb-auth-provider-button {
  background: var(--rb-surface-soft);
  color: var(--rb-text);
}

.rb-auth-alternatives-label {
  color: var(--rb-muted);
  font-size: .875rem;
  font-weight: 600;
}

.rb-auth-footer {
  display: grid;
  justify-content: start;
  gap: 12px;
  color: var(--rb-muted);
  font-size: .875rem;
  text-align: left;
}

.rb-auth-text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rb-text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.rb-auth-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 28px auto 0;
  color: var(--rb-muted);
  font-size: .8125rem;
}

.rb-auth-legal a {
  color: inherit;
  text-decoration: none;
}

.rb-auth-legal a:hover {
  text-decoration: underline;
}

.rb-auth-transition {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
}

.rb-auth-transition-card {
  padding: 24px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

@media (max-width: 767px) {
  .rb-auth-card,
  .rb-auth-card--login-slim {
    padding: 24px;
  }

  .rb-auth-title,
  .rb-auth-shell--login-admin .rb-auth-title {
    font-size: 1.75rem;
  }

  .rb-auth-actions {
    flex-direction: column;
  }
}

/* System status and maintenance use the same quiet auth surface. */
.rb-status-page--error,
.rb-status-page--maintenance {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 16px;
  min-height: min(68dvh, 520px);
  padding: 48px 0;
  overflow: visible;
  color: var(--rb-text);
}

.rb-status-page--error .rb-status-code,
.rb-status-page--maintenance .rb-status-code {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--rb-muted);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.rb-status-page--error .rb-status-title,
.rb-status-page--maintenance .rb-status-title {
  max-width: none;
  color: var(--rb-text);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.rb-status-page--error .rb-status-text,
.rb-status-page--maintenance .rb-status-text {
  max-width: 60ch;
  color: var(--rb-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.rb-status-page--error .rb-status-actions,
.rb-status-page--maintenance .rb-status-actions {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.rb-status-page--error .rb-status-actions .btn,
.rb-status-page--maintenance .rb-status-actions .btn,
.rb-maintenance-modal-actions .btn,
.rb-status-page--error .rb-status-actions .rb-btn,
.rb-status-page--maintenance .rb-status-actions .rb-btn,
.rb-maintenance-modal-actions .rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 600;
  text-decoration: none;
  transform: none;
  cursor: pointer;
}

.rb-status-page--error .rb-status-actions .btn.btn-dark,
.rb-status-page--maintenance .rb-status-actions .btn.btn-dark,
.rb-maintenance-modal-actions .btn.btn-dark,
.rb-status-page--error .rb-status-actions .rb-btn--primary,
.rb-status-page--maintenance .rb-status-actions .rb-btn--primary,
.rb-maintenance-modal-actions .rb-btn--primary,
#maintenanceLoginModal #loginBtn {
  background: var(--rb-accent) !important;
  color: #fff !important;
}

.rb-status-page--error .rb-status-actions .btn:not(.btn-dark),
.rb-status-page--maintenance .rb-status-actions .btn:not(.btn-dark),
.rb-maintenance-modal-actions .btn:not(.btn-dark),
.rb-status-page--error .rb-status-actions .rb-btn--secondary,
.rb-status-page--maintenance .rb-status-actions .rb-btn--secondary,
.rb-maintenance-modal-actions .rb-btn--secondary {
  background: var(--rb-surface-soft) !important;
  color: var(--rb-text) !important;
  border: 0;
}

.rb-maintenance-modal[hidden] { display: none !important; }

.rb-maintenance-modal {
  background: rgba(0, 0, 0, .35);
  backdrop-filter: none;
}

.rb-maintenance-modal-card {
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .15);
}

.rb-maintenance-modal-copy { color: var(--rb-muted); }

.rb-maintenance-form .rb-field input {
  min-height: 48px;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.rb-auth-sso__code:empty,
.rb-auth-sso__timer:empty,
.rb-auth-sso__state:empty { display: none; }
.rb-auth-sso__state { margin: 0; color: var(--rb-muted); line-height: 1.5; }

.rb-auth-sso__code-content {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.rb-auth-sso__code-label,
.rb-auth-sso__timer {
  margin: 0;
  color: var(--rb-muted);
  line-height: 1.5;
}

.rb-auth-sso__code-value,
.rb-auth-sso__request-value {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--rb-text);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: .12em;
}
.rb-auth-sso__request-value { font-size: clamp(1rem, 4vw, 1.2rem); letter-spacing: .06em; user-select: all; }

.rb-auth-sso__success { color: var(--rb-text); }
.rb-auth-sso__back { width: 100%; text-align: center; }

.rb-popover {
  position: fixed;
  z-index: 1000008;
  box-sizing: border-box;
  width: min(280px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 24px));
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--rb-border-soft);
  border-radius: 12px;
  background: var(--rb-surface);
  box-shadow: var(--rb-shadow-lg);
}

.rb-popover__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.rb-popover__legend { padding: 8px 10px 6px; color: var(--rb-muted); font-size: .8125rem; font-weight: 600; }
.rb-popover__option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--rb-text);
  font-size: .875rem;
  line-height: 1.4;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.rb-popover__option:hover,
.rb-popover__option:has(input:checked) { background: var(--rb-surface-soft); }
.rb-popover__option:focus-within { outline: 2px solid var(--rb-text); outline-offset: -2px; }
.rb-popover__option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--rb-text); }

.rb-user-modal-backdrop { position: fixed; inset: 0; z-index: 1000012; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(18, 22, 28, .44); }
.rb-user-modal { box-sizing: border-box; display: grid; gap: 20px; width: min(680px, 100%); max-height: min(92vh, 920px); padding: 28px; overflow-y: auto; border: 0; border-radius: 16px; background: var(--rb-surface, #fff); color: var(--rb-text, #171717); box-shadow: 0 24px 80px rgba(18, 22, 28, .18); font-family: var(--rb-font-sans, "Plus Jakarta Sans", sans-serif); }
.rb-user-modal *, .rb-user-modal *::before, .rb-user-modal *::after { box-sizing: border-box; }
.rb-user-modal__header h2 { margin: 7px 0 0; font-size: clamp(21px, 3vw, 27px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.rb-user-modal__body { min-width: 0; }
.rb-user-modal__fields { display: grid; gap: 14px; }
.rb-user-modal__fields .rb-field { display: grid; gap: 6px; min-width: 0; }
.rb-user-modal__fields .rb-user-detail__row-copy { margin: 0; }
.rb-user-modal__choices { display: grid; max-height: 280px; overflow-y: auto; border-top: 1px solid var(--rb-border-soft, #e9e9e9); }
.rb-user-modal__choice { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--rb-border-soft, #e9e9e9); cursor: pointer; }
.rb-user-modal__choice input, .rb-user-modal__check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rb-text, #171717); }
.rb-user-modal__choice span { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.rb-user-modal__choice strong { font-size: 14px; line-height: 1.4; font-weight: 600; }
.rb-user-modal__choice small { color: var(--rb-muted, #666); font-size: 12px; line-height: 1.4; }
.rb-user-modal__check { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.rb-user-modal__products { display: grid; gap: 14px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--rb-border-soft, #e9e9e9); }
.rb-user-modal__products h3 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 600; }
.rb-user-modal__product-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 190px); align-items: center; gap: 12px; min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--rb-border-soft, #e9e9e9); }
.rb-user-modal__product-choice { display: flex; align-items: flex-start; gap: 10px; min-width: 0; cursor: pointer; }
.rb-user-modal__product-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rb-text, #171717); }
.rb-user-modal__product-choice span { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.rb-user-modal__product-choice strong { font-size: 14px; line-height: 1.4; font-weight: 600; }
.rb-user-modal__product-choice small { color: var(--rb-muted, #666); font-size: 12px; line-height: 1.4; }
.rb-user-modal__product-row .rb-field__label { font-size: 12px; }
.rb-order-detail { display: grid; gap: 24px; min-width: 0; color: var(--rb-text, #171717); font-family: var(--rb-font-sans, "Plus Jakarta Sans", sans-serif); }
.rb-support-context { display: grid; justify-items: start; gap: 7px; min-width: 0; margin-bottom: 24px; padding: 18px 0 0; border-top: 1px solid var(--rb-border-soft, #e9e9e9); color: var(--rb-text, #171717); font-family: var(--rb-font-sans, "Plus Jakarta Sans", sans-serif); }
.rb-support-context__eyebrow { margin: 0; color: var(--rb-muted, #666); font-size: 12px; font-weight: 600; }
.rb-support-context__title { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
.rb-support-context__copy { margin: 0; color: var(--rb-muted, #666); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.rb-support-context .rb-btn { min-height: 44px; margin-top: 8px; }
.rb-order-detail__header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 14px 24px; min-width: 0; }
.rb-order-detail__header > div { min-width: 0; }
.rb-order-detail__header h3 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.rb-order-detail--compact .rb-order-detail__header h3 { font-size: 19px; }
.rb-order-detail__header p { margin: 5px 0 0; color: var(--rb-muted, #666); font-size: 13px; line-height: 1.5; }
.rb-order-detail__statuses { display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: 100%; color: var(--rb-muted, #666); font-size: 13px; line-height: 1.5; }
.rb-order-detail__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; min-width: 0; }
.rb-order-detail__facts > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--rb-border-soft, #e9e9e9); }
.rb-order-detail__facts span { color: var(--rb-muted, #666); font-size: 12px; line-height: 1.4; }
.rb-order-detail__facts strong { font-size: 15px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.rb-order-detail__section { display: grid; gap: 10px; min-width: 0; }
.rb-order-detail__section h4 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 600; }
.rb-order-detail__list { display: grid; min-width: 0; }
.rb-order-detail__row { display: grid; gap: 5px; min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--rb-border-soft, #e9e9e9); overflow-wrap: anywhere; }
.rb-order-detail__row:first-of-type { border-top: 1px solid var(--rb-border-soft, #e9e9e9); }
.rb-order-detail__row > strong { font-size: 14px; line-height: 1.45; font-weight: 600; }
.rb-order-detail__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--rb-muted, #666); font-size: 13px; line-height: 1.5; }
.rb-order-detail__empty { margin: 0; padding: 18px 0; color: var(--rb-muted, #666); font-size: 14px; line-height: 1.5; }
.rb-order-detail__actions { display: flex; justify-content: flex-end; }
.rb-order-detail__actions .rb-btn { min-height: 44px; }
.rb-order-modal { box-sizing: border-box; width: min(880px, 100%); max-height: min(92vh, 900px); padding: 28px; overflow-y: auto; border-radius: 16px; background: var(--rb-surface, #fff); color: var(--rb-text, #171717); box-shadow: 0 24px 80px rgba(18, 22, 28, .18); font-family: var(--rb-font-sans, "Plus Jakarta Sans", sans-serif); }
.rb-order-modal *, .rb-order-modal *::before, .rb-order-modal *::after { box-sizing: border-box; }
.rb-order-modal__header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.rb-order-modal__header h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; }
.rb-order-modal__header .rb-btn { flex: 0 0 auto; min-height: 44px; }
@media (max-width: 800px) { .rb-order-detail__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rb-order-detail__facts { grid-template-columns: minmax(0, 1fr); } .rb-order-detail__actions .rb-btn { width: 100%; } .rb-order-modal { width: 100%; max-height: 94vh; padding: 20px 18px; border-radius: 14px; } }
.rb-user-modal__body input:not([type="checkbox"]):not([type="radio"]), .rb-user-modal__body select, .rb-user-modal__body textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rb-border, #d8d8d8); border-radius: 8px; background: #fff; color: var(--rb-text, #171717); font: inherit; }
.rb-user-modal__body textarea { min-height: 96px; resize: vertical; }
.rb-user-modal__body input:focus-visible, .rb-user-modal__body select:focus-visible, .rb-user-modal__body textarea:focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }
.rb-user-modal__feedback { padding: 12px 14px; border-radius: 8px; background: var(--rb-surface-soft, #f6f6f6); color: var(--rb-text, #171717); font-size: 14px; line-height: 1.5; }
.rb-user-modal__feedback[hidden] { display: none; }
.rb-admin-action-modal { width: min(520px, 100%); }
.rb-admin-action-modal__code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.rb-admin-action-modal__code .rb-btn { min-height: 44px; }
.rb-staff-group-modal { width: min(760px, 100%); }
.rb-staff-group-modal__groups { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rb-staff-group-modal__groups legend { padding: 0; font-size: 17px; line-height: 1.4; font-weight: 600; }
.rb-staff-group-modal__groups p { margin: 0; color: var(--rb-muted, #666); font-size: 14px; line-height: 1.5; }
.rb-staff-group-modal__groups .rb-user-modal__choices { max-height: 320px; }
.rb-user-modal__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--rb-border-soft, #e9e9e9); }
.rb-user-modal__actions .rb-btn { min-height: 44px; }
@media (max-width: 640px) { .rb-user-modal-backdrop { align-items: flex-end; padding: 8px; } .rb-user-modal { width: 100%; max-height: 94vh; padding: 22px 18px; border-radius: 14px; } .rb-admin-action-modal__code, .rb-user-modal__product-row { grid-template-columns: minmax(0, 1fr); } .rb-admin-action-modal__code .rb-btn { width: 100%; } .rb-user-modal__actions { display: grid; grid-template-columns: 1fr; } .rb-user-modal__actions .rb-btn { width: 100%; } }

@media (max-width: 640px) {
  .rb-status-page--error .rb-status-actions,
  .rb-status-page--maintenance .rb-status-actions,
  .rb-maintenance-modal-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .rb-status-page--error .rb-status-actions .btn,
  .rb-status-page--maintenance .rb-status-actions .btn,
  .rb-maintenance-modal-actions .btn,
  .rb-status-page--error .rb-status-actions .rb-btn,
  .rb-status-page--maintenance .rb-status-actions .rb-btn,
  .rb-maintenance-modal-actions .rb-btn { width: 100%; }
}

/* Opt-in form layout: the available form width controls the field grid. */
.rb-list-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; color: var(--rb-muted, #626262); font-size: 13px; }
.rb-list-pagination[hidden] { display: none; }
.rb-list-pagination__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.rb-list-pagination__actions .rb-btn { min-height: 44px; }
.rb-list-pagination__position { font-variant-numeric: tabular-nums; }
.rb-form-disclosure { min-width: 0; }
.rb-form-disclosure > summary { min-height: 44px; padding: 12px 0; color: var(--rb-text, #171717); font-size: 14px; font-weight: 500; cursor: pointer; }
.rb-form-disclosure > summary:focus-visible { outline: 2px solid var(--rb-text, #171717); outline-offset: 2px; border-radius: 4px; }
.rb-form-disclosure__body { padding-top: 12px; }
.rb-form-layout { container: rb-form / inline-size; min-width: 0; }
.rb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rb-space-5, 20px); min-width: 0; }
.rb-form-grid__item { min-width: 0; }
.rb-form-grid__item--wide { grid-column: 1 / -1; }
@container rb-form (max-width: 560px) {
  .rb-form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Message IDs and other long inline references remain readable on small screens. */
.rb-inline-code { font: inherit; overflow-wrap: anywhere; word-break: normal; white-space: normal; }

/* Native choices share the rb treatment, including dynamically loaded forms. */
input[type="checkbox"]:not([role="switch"]) {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
  border: 2px solid var(--rb-checkbox-border, #666666) !important;
  border-radius: var(--rb-checkbox-radius, 3px) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"]:not([role="switch"]):is(:checked, :indeterminate) {
  border-color: var(--rb-accent, #171717) !important;
  background: var(--rb-accent, #171717) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat !important;
}
input[type="checkbox"]:not([role="switch"]):indeterminate {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9h10' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}
input[type="checkbox"]:not([role="switch"]):not(:disabled):hover { border-color: var(--rb-text, #171717) !important; }
input[type="checkbox"]:not([role="switch"]):focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 3px; }
input[type="checkbox"]:not([role="switch"]):disabled { opacity: .55; cursor: not-allowed; }
@media (forced-colors: active) {
  input[type="checkbox"]:not([role="switch"]) { appearance: auto !important; -webkit-appearance: auto !important; background: revert !important; border-color: ButtonText !important; }
}
select:not([multiple]):not([size]), select[size="1"] {
  appearance: none !important;
  padding-inline-end: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23171717' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  background-repeat: no-repeat !important;
}
[dir="rtl"] select:not([multiple]):not([size]) { background-position: left 12px center !important; }
input[type="radio"] {
  appearance: none !important; flex: 0 0 18px; width: 18px !important; height: 18px !important;
  min-height: 18px !important; padding: 0 !important; border: 1px solid #8c8c8c !important;
  border-radius: 50% !important; background: #fff !important; accent-color: #171717;
  vertical-align: middle;
}
input[type="radio"]:checked { background: #171717 !important; border-color: #171717 !important; }
input[type="radio"]:focus-visible { outline: 2px solid var(--rb-focus,#171717); outline-offset: 3px; }
input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; }
@media (forced-colors: active) { input[type="radio"] { appearance: auto !important; } }

/* Shared Premium comparison, used by configurator and customer editor. */
.cms-info-dialog.cms-info-dialog--premium { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: auto; padding: clamp(20px, 4vw, 32px); }
.cms-info-dialog--premium .cms-premium-kicker { margin-top: 20px; padding-right: 28px; }
.cms-info-dialog--premium h2 { margin-top: 8px; line-height: 1.2; letter-spacing: -.025em; }
.cms-premium-dialog-price { display: grid; gap: 4px; margin: 20px 0; padding: 16px; background: var(--rb-surface-muted, #f7f7f7); border-radius: var(--rb-radius-md, 8px); }
.cms-premium-dialog-price strong { font-size: 1.125rem; }
.cms-premium-dialog-price span { color: var(--rb-muted, #626262); font-size: .8125rem; }
.cms-premium-comparison { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.cms-premium-comparison caption { text-align: left; padding-bottom: 12px; font-weight: 600; color: var(--rb-text, #171717); }
.cms-premium-comparison th, .cms-premium-comparison td { padding: 12px 10px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--rb-border-soft, #e5e5e5); }
.cms-premium-comparison th { font-weight: 600; }
.cms-premium-comparison th:first-child { width: 37%; padding-left: 0; }
.cms-premium-comparison td:last-child, .cms-premium-comparison thead th:last-child { background: var(--rb-surface-muted, #f7f7f7); }
.cms-info-dialog--premium .rb-dialog__actions { margin-top: 24px; }
@media (max-width: 480px) {
  .cms-premium-comparison thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .cms-premium-comparison, .cms-premium-comparison tbody { display: block; }
  .cms-premium-comparison caption { display: block; }
  .cms-premium-comparison tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 0; border-top: 1px solid var(--rb-border-soft, #e5e5e5); }
  .cms-premium-comparison tbody th:first-child { grid-column: 1 / -1; width: auto; padding: 0; border: 0; }
  .cms-premium-comparison tbody td { padding: 10px; border: 0; }
  .cms-premium-comparison tbody td::before { display: block; margin-bottom: 4px; color: var(--rb-muted, #626262); font-size: .75rem; content: attr(data-plan-label); }
}

.rb-editor-premium {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;align-items:center;margin:20px 0 28px;padding:24px;border:1px solid var(--rb-border-strong,#b8b8b8);border-radius:var(--rb-radius-lg,12px);background:var(--rb-surface-muted,#f7f7f7);overflow-wrap:anywhere;}
.rb-editor-premium h2 {margin:6px 0 8px;font-size:1.2rem;line-height:1.3;letter-spacing:-.025em;}
.rb-editor-premium p {margin:0;color:var(--rb-muted,#626262);font-size:.875rem;line-height:1.6;}
.rb-editor-premium__actions {display:flex;gap:10px;align-items:center;}
.rb-editor-premium__actions .rb-btn {min-height:44px;white-space:normal;}
.rb-editor-premium__actions [data-premium-info] {flex:0 0 44px;min-width:44px;padding:0;font-weight:600;}
.rb-editor-premium .rb-editor-premium__note {grid-column:1/-1;font-size:.75rem;}
@media(max-width:640px){.rb-editor-premium {grid-template-columns:minmax(0,1fr);padding:20px;}.rb-editor-premium__actions a {flex:1;}}

.rb-editor-premium-close {position:absolute;right:12px;top:12px;min-width:44px;min-height:44px;padding:0;}

.cms-premium-kicker { display: block; color: var(--rb-muted, #626262); font-size: .75rem; font-weight: 600; line-height: 1.5; }
.cms-info-dialog--premium .cms-small {font-size:.8125rem;line-height:1.6;color:var(--rb-muted,#626262);}

/* Shared company-transition assistant, including narrow administration panels. */
.rb-legal-transition { min-width:0; margin:0 0 24px; padding:24px; border:1px solid var(--rb-border,#dedede); border-radius:var(--rb-radius,12px); background:var(--rb-surface,#fff); color:var(--rb-text,#171717); line-height:1.6; overflow-wrap:anywhere; }
.rb-legal-transition h2 { margin:4px 0 12px; font-size:1.25rem; line-height:1.4; }
.rb-legal-transition h3 { margin:0 0 12px; font-size:1rem; }
.rb-legal-transition p { margin:0 0 16px; }
.rb-legal-transition [hidden] { display:none!important; }
.rb-legal-transition__steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:20px 0; padding:0; list-style:none; font-size:.8125rem; }
.rb-legal-transition__steps li { padding:8px; border-bottom:2px solid var(--rb-border,#dedede); }
.rb-legal-transition__steps [aria-current="step"] { font-weight:700; border-color:var(--rb-primary,#171717); }
.rb-legal-transition__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.rb-legal-transition .rb-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.rb-legal-transition .rb-input,.rb-legal-transition .rb-select { box-sizing:border-box; min-width:0; width:100%; min-height:44px; }
.rb-legal-transition li { margin-bottom:10px; }
.rb-legal-transition dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:8px 16px; }
.rb-legal-transition dt { font-weight:600; }
.rb-legal-transition dd { margin:0; }
.rb-legal-transition__actions { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; margin-top:24px; }
.rb-legal-transition [data-transition-error] { color:var(--rb-danger,#5d5d5d); }
.rb-legal-transition { container:rb-legal / inline-size; }
.rb-legal-transition fieldset { min-width:0; margin:0 0 20px; padding:16px; border:1px solid var(--rb-border,#dedede); border-radius:var(--rb-radius,12px); }
.rb-legal-transition legend { padding:0 6px; font-weight:600; }
.rb-legal-transition .rb-table-wrap { max-width:100%; overflow-x:auto; }
.rb-legal-transition .rb-table { min-width:640px; }
@container rb-legal (max-width:560px) { .rb-legal-transition .rb-form-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:640px) { .rb-legal-transition { padding:16px; } .rb-legal-transition__steps { grid-template-columns:repeat(2,minmax(0,1fr)); } .rb-legal-transition__grid,.rb-legal-transition dl { grid-template-columns:minmax(0,1fr); } .rb-legal-transition dd { margin-bottom:10px; } }

/* Internal company participation register and stacked rb storage picker. */
.rb-holdings-summary progress { width:100%; height:8px; accent-color:var(--rb-primary, #171717); }
.rb-holdings-list { display:grid; gap:12px; padding:0; margin:20px 0 0; list-style:none; }
.rb-holdings-row { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:20px; border:1px solid var(--rb-border-soft, #e5e5e5); border-radius:var(--rb-radius-lg, 16px); background:var(--rb-surface, #fff); }
.rb-holdings-person { display:grid; gap:6px; min-width:0; overflow-wrap:anywhere; }
.rb-holdings-person small, .rb-holdings-dialog small { color:var(--rb-muted, #666); }
.rb-holdings-actions { display:flex; flex-wrap:wrap; gap:8px; flex-shrink:0; }
.rb-holdings-documents { padding:0; list-style:none; display:grid; gap:10px; margin:12px 0; overflow-wrap:anywhere; }
.rb-holdings-documents li { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.rb-holdings-overlay { position:fixed; inset:0; z-index:10000; display:flex; align-items:center; padding:16px; background:rgba(23,23,23,.42); box-sizing:border-box; }
.rb-holdings-dialog { width:min(600px, 100%); margin:auto; display:grid; gap:16px; }
.rb-holdings-dialog h2 { margin:0; font-size:1.4rem; }
.rb-holdings-dialog fieldset { min-width:0; display:grid; gap:12px; padding:16px; border:1px solid var(--rb-border-soft, #e5e5e5); border-radius:var(--rb-radius-md, 12px); }
.rb-holdings-dialog [data-dialog-error]:empty { display:none; }
.rb-holdings-dialog [data-dialog-error] { color:var(--rb-danger, #5d5d5d); margin:0; }
.rb-holdings-dialog .rb-btn, .rb-holdings-row .rb-btn { min-height:44px; }
@media (max-width:700px) { .rb-holdings-row { flex-direction:column; padding:16px; gap:16px; } .rb-holdings-actions { width:100%; } .rb-holdings-actions .rb-btn { flex:1; } .rb-holdings-dialog { padding:20px; } .rb-holdings-dialog .rb-form-actions { flex-wrap:wrap; } }

.rb-holdings-row { flex-wrap:wrap; }
.rb-holdings-person { flex:1 1 300px; }
.rb-holdings-owners { min-width:0; display:grid; gap:8px; margin-top:12px; }
.rb-holdings-list--nested { margin-top:4px; border-left:2px solid var(--rb-border-soft, #ddd); padding-left:8px; }
.rb-holdings-list--nested .rb-holdings-row { flex-direction:column; padding:12px; }
.rb-holdings-list--nested .rb-holdings-person { flex:auto; width:100%; }
.rb-holdings-consent { display:flex; align-items:flex-start; gap:12px; line-height:1.6; }
.rb-holdings-consent input { width:20px; height:20px; flex:0 0 20px; margin-top:3px; accent-color:var(--rb-primary, #171717); }
.rb-holdings-dialog p { margin:0; line-height:1.65; overflow-wrap:anywhere; }
.rb-holdings-dialog textarea { width:100%; box-sizing:border-box; }
@media(max-width:700px) { .rb-holdings-person { flex:auto; width:100%; } .rb-holdings-list--nested { padding-left:4px; } .rb-holdings-list--nested .rb-holdings-row { padding:8px; } }

.rb-holdings-financial { display:grid; gap:16px; }
.rb-holdings-financial[hidden],.rb-holdings-consent[hidden] { display:none !important; }
.rb-holdings-operations { margin-top:24px; }
.rb-holdings-operations summary { padding:16px 0; font-weight:600; cursor:pointer; }

.rb-holdings-summary { display:grid; gap:6px; margin-bottom:16px; }
@media(max-width:700px) { .rb-holdings-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .rb-holdings-actions [data-holdings-connect], .rb-holdings-actions [data-holdings-disconnect] { grid-column:1 / -1; } .rb-holdings-actions .rb-btn { min-width:0; white-space:normal; } }

/* Auth status: one focused card, with recovery kept below the main action. */
.rb-auth-status-page { max-width: 440px; }
.rb-auth-status-page .rb-auth-journey { min-height: 0; align-content: start; }
.rb-auth-status-page .rb-auth-card {
  gap: 24px;
  padding: clamp(24px, 5vw, 32px);
}
.rb-auth-status-page .rb-auth-copy { gap: 8px; }
.rb-auth-status-page .rb-auth-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
}
.rb-auth-status-page .rb-auth-subtitle,
.rb-auth-status-page .rb-auth-muted-copy { margin: 0; }
.rb-auth-status-page .rb-auth-subtitle { font-size: .9375rem; }
.rb-auth-status-page .rb-auth-muted-copy { font-size: .875rem; }
.rb-auth-status-section { display: grid; gap: 16px; min-width: 0; }
.rb-auth-status-actions { display: grid; gap: 8px; }
.rb-auth-status-page .rb-code-input { width: min(100%, 304px); }
.rb-auth-status-page .rb-code-input__digit { min-height: 52px; font-size: 1.25rem; padding: 0; }
.rb-auth-status-recovery {
  border-top: 1px solid var(--rb-border);
  padding-top: 12px;
  font-size: .875rem;
}
.rb-auth-status-recovery summary {
  padding-block: 12px;
  cursor: pointer;
  font-weight: 600;
}
.rb-auth-status-recovery summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.rb-auth-status-recovery .rb-auth-code-pill {
  margin-top: 12px;
  font-size: 1rem;
  letter-spacing: .08em;
}

/* Reusable fixed affix for identifiers whose prefix is selected separately. */
.rb-input-prefix { display: flex; align-items: center; gap: 10px; min-width: 0; border: 1px solid var(--rb-border-input, #d8d8d8); border-radius: var(--rb-radius-sm, 8px); background: var(--rb-surface, #fff); padding-inline: 12px; }
.rb-input-prefix__value { flex: 0 0 auto; font-weight: 600; color: var(--rb-muted); }
.rb-input-prefix > .rb-input { min-width: 0; width: 100%; border: 0; border-radius: 0; padding-inline: 0; background: transparent; box-shadow: none; }
.rb-input-prefix:focus-within { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }

/* Betrag mit Vorzeichen: Button vor der Zahl, aria-pressed="true" = + (Einnahme), "false" = − (Ausgabe).
   Das Feld behält Höhe, Rand und Fokusring von .rb-input; der Button liegt als 44-px-Fläche darin. */
.rb-input-prefix--sign { position: relative; display: block; border: 0; border-radius: 0; background: transparent; padding: 0; }
.rb-input-prefix--sign:focus-within { outline: 0; }
/* :not(...) hebt die Spezifität über die ältere Layout-Regel für input-Abstände. */
.rb-input-prefix--sign > .rb-input:not([type="checkbox"]):not([type="radio"]) { border: 1px solid var(--rb-border-input); border-radius: var(--rb-radius-md); background: var(--rb-surface); padding-inline: 48px 12px; font-variant-numeric: tabular-nums; }
.rb-input-prefix--sign > .rb-input:not([type="checkbox"]):not([type="radio"]):disabled { background: var(--rb-surface-soft); }
.rb-input-prefix__toggle { position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 1; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; font: inherit; font-size: 1.125rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rb-input-prefix__toggle::before { content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: var(--rb-radius-sm); background: var(--rb-surface-muted); transition: background-color .15s ease; }
.rb-input-prefix__toggle:hover::before { background: var(--rb-border); }
.rb-input-prefix__toggle:focus-visible { outline: 0; }
.rb-input-prefix__toggle:focus-visible::before { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }
.rb-input-prefix__toggle:disabled { cursor: default; }
/* Zeichen als gezeichnete Striche: in jeder Schrift gleich groß und mittig (der Text +/− ist transparent und bleibt für Kopieren und Hochkontrast). */
.rb-input-prefix__toggle::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; background: linear-gradient(var(--rb-text), var(--rb-text)) center / 12px 2px no-repeat; border-radius: 1px; pointer-events: none; }
.rb-input-prefix__toggle[aria-pressed="true"]::after { background: linear-gradient(var(--rb-text), var(--rb-text)) center / 12px 2px no-repeat, linear-gradient(var(--rb-text), var(--rb-text)) center / 2px 12px no-repeat; }
.rb-input-prefix__toggle:not(:disabled)::before { box-shadow: inset 0 0 0 1px var(--rb-border); }
@media (forced-colors: active) {
  .rb-input-prefix__toggle, .rb-input-prefix__toggle:disabled { color: ButtonText; }
  .rb-input-prefix__toggle::after { display: none; }
}
.rb-input-prefix__toggle:disabled::before { background: transparent; }
@media (prefers-reduced-motion: reduce) { .rb-input-prefix__toggle::before { transition: none; } }
/* Das Feld braucht ein eigenes <label for> (ein umschließendes label würde den Button auslösen); es sieht aus wie die gewickelte Beschriftung. */
.rb-field:has(> .rb-input-prefix--sign) > label.rb-field__label { color: var(--rb-text); font-size: .875rem; }


/* ==========================================================================
   rb-Bausteine, Teil 2 (Plan: RubionCore/_docs/rb-design-vereinheitlichung-plan.md, Abschnitt 2a).
   Ergänzt die vorhandenen Definitionen; jede Klasse hier ist die einzige Quelle.
   ========================================================================== */

/* Seitenkopf: Zurück-Link über dem Titel, Meta-Zeile darunter. */
.rb-page-header__back {
  display: inline-flex; align-items: center; gap: var(--rb-space-2, 8px);
  min-height: var(--rb-control-height, 44px); margin: 0 0 var(--rb-space-1, 4px) -8px; padding: 0 8px;
  border-radius: var(--rb-radius-sm, 8px); color: var(--rb-muted, #595959);
  font-size: .875rem; font-weight: 600; text-decoration: none;
}
.rb-page-header__back:hover { background: var(--rb-surface-soft, #f7f7f7); color: var(--rb-text, #171717); }
.rb-page-header__back:focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }
:is(.rb-page-header__meta, .rb-page-header__back, .rb-page-header__actions, .rb-kpis, .rb-pagination, .rb-empty, .rb-notice, .rb-card__head)[hidden] { display: none !important; }
.rb-page-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: var(--rb-space-2, 8px); color: var(--rb-muted, #595959); font-size: .8125rem; }

/* Status-Badge: monochrom, Bedeutung über Icon + Text (nie nur über Farbe).
   --success  erledigt/aktiv     schwarzer Text auf Grau
   --warning  braucht Aufmerksamkeit  umrandet
   --danger   Fehler/gesperrt    schwarz gefüllt
   --neutral  Entwurf/inaktiv    grauer Text */
.rb-badge { white-space: nowrap; }
.rb-badge i { font-size: 1em; }
.rb-badge--success { background: var(--rb-surface-soft, #f7f7f7); color: var(--rb-text, #171717); }
.rb-badge--warning { background: var(--rb-surface, #fff); color: var(--rb-text, #171717); box-shadow: inset 0 0 0 1px var(--rb-text, #171717); }
.rb-badge--danger { background: var(--rb-text, #171717); color: var(--rb-bg, #fff); }
.rb-badge--neutral { background: var(--rb-surface-soft, #f7f7f7); color: var(--rb-muted, #595959); }
.rb-badge--filled { background: var(--rb-muted); color: var(--rb-bg); border-radius: var(--rb-radius-xl); }

/* Hinweise: info (Standard), --warning, --error. Optional Icon + Aktionen. */
.rb-notice:has(> .rb-notice__body) { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--rb-space-2, 8px) var(--rb-space-3, 12px); }
.rb-notice__icon { flex: none; margin-top: 2px; font-size: 1.1em; }
.rb-notice:has(> .rb-notice__body) > .rb-notice__body { flex: 1 1 260px; min-width: 0; }
.rb-notice:has(> .rb-notice__body) > .rb-notice__actions { flex-basis: 100%; margin-top: 0; }
.rb-notice--warning { background: var(--rb-surface, #fff); box-shadow: inset 0 0 0 1px var(--rb-border, #e5e5e5); }
.rb-notice--error { background: var(--rb-surface, #fff); box-shadow: inset 0 0 0 1px var(--rb-text, #171717); }
.rb-notice--error .rb-notice__body > strong:first-child,
.rb-notice--warning .rb-notice__body > strong:first-child { font-weight: 700; }

/* Leerzustand: was fehlt + nächster Schritt. --boxed für leere Listen/Tabellen. */
.rb-empty:has(> :is(.rb-empty__title, .rb-empty__text, .rb-empty__actions, .rb-empty__icon)) { display: grid; justify-items: start; gap: var(--rb-space-3, 12px); }
.rb-empty__icon { font-size: 1.75rem; color: var(--rb-muted, #595959); }
.rb-empty__title { margin: 0; color: var(--rb-text, #171717); font-size: 1rem; font-weight: 600; }
.rb-empty__text { max-width: 60ch; margin: 0; color: var(--rb-muted, #595959); line-height: 1.55; }
.rb-empty__actions { display: flex; flex-wrap: wrap; gap: var(--rb-space-2, 8px); }
.rb-empty.rb-empty--boxed { display: grid; justify-items: center; padding: var(--rb-space-9, 48px) var(--rb-space-6, 24px); border-radius: var(--rb-radius-lg, 12px); background: var(--rb-surface-soft, #f7f7f7); text-align: center; }
.rb-empty--boxed .rb-empty__actions { justify-content: center; }

/* Ladezustand für Listen und Tabellen. */
.rb-skeleton--block { width: 100%; height: var(--rb-control-height, 44px); border-radius: var(--rb-radius-sm, 8px); }

/* Karte mit Kopf. */
.rb-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rb-space-3, 12px); margin-bottom: var(--rb-space-4, 16px); }
.rb-card__title { margin: 0; color: var(--rb-text, #171717); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.rb-card__subtitle { margin: 2px 0 0; color: var(--rb-muted, #595959); font-size: .8125rem; }
.rb-card--flush > .rb-card__head { margin: 0; padding: var(--rb-space-4, 16px) var(--rb-space-5, 20px); border-bottom: 1px solid var(--rb-border-soft, #eee); }

/* Kennzahlen: .rb-kpis als Raster, .rb-kpi als Kachel. */
.rb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: var(--rb-space-4, 16px); }
.rb-kpi { display: grid; align-content: start; gap: 4px; min-width: 0; padding: var(--rb-space-4, 16px) var(--rb-space-5, 20px); border: 1px solid var(--rb-border, #e5e5e5); border-radius: var(--rb-radius-lg, 12px); background: var(--rb-surface, #fff); }
.rb-kpi__label { color: var(--rb-muted, #595959); font-size: .8125rem; font-weight: 600; }
.rb-kpi__value { color: var(--rb-text, #171717); font-size: 1.5rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rb-kpi__hint { color: var(--rb-muted, #595959); font-size: .8125rem; }

/* Begriff/Wert-Liste für Detailansichten. */
.rb-dl { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: var(--rb-space-2, 8px) var(--rb-space-6, 24px); margin: 0; }
.rb-dl > dt { color: var(--rb-muted, #595959); font-size: .875rem; }
.rb-dl > dd { margin: 0; color: var(--rb-text, #171717); overflow-wrap: anywhere; }
@media (max-width: 560px) { .rb-dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .rb-dl > dd + dt { margin-top: var(--rb-space-3, 12px); } }

/* Liste und Detail nebeneinander: .rb-grid--sidebar (Liste links, Detail rechts, unter 900px untereinander). */

/* Senkrechte Bereichsnavigation (z. B. Einstellungen). */
.rb-side-nav { display: grid; align-content: start; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rb-side-nav a,
.rb-side-nav button {
  display: flex; align-items: center; gap: var(--rb-space-3, 12px); width: 100%;
  min-height: var(--rb-control-height, 44px); padding: 0 12px; border: 0; border-radius: var(--rb-radius-sm, 8px);
  background: transparent; color: var(--rb-muted, #595959); font: 600 .875rem/1.2 var(--rb-font-sans); text-align: left; text-decoration: none; cursor: pointer;
}
.rb-side-nav :is(a, button):hover { background: var(--rb-surface-soft, #f7f7f7); color: var(--rb-text, #171717); }
.rb-side-nav :is(a, button):is([aria-current="page"], [aria-selected="true"], .is-active) { background: var(--rb-surface-muted, #eee); color: var(--rb-text, #171717); }
.rb-side-nav :is(a, button):focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: 2px; }
.rb-side-nav--responsive { min-width: 0; min-height: 0; overflow: auto; }
@container rb-side-nav-layout (max-width: 700px) {
  .rb-side-nav--responsive { display: flex; flex-wrap: nowrap; }
  .rb-side-nav--responsive > li { flex: none; max-width: 100%; }
  .rb-side-nav--responsive :is(a, button) { width: auto; max-width: 100%; white-space: normal; }
  .rb-side-nav--responsive :is(a, button) > span { min-width: 0; overflow-wrap: anywhere; }
}

/* Tabellen: auswählbare Zeilen. */
.rb-table--selectable tbody tr { cursor: pointer; }
.rb-table tbody tr:is(.is-selected, [aria-selected="true"]) td { background: var(--rb-surface-muted, #eee); }
.rb-table tbody tr:is(.is-selected, [aria-selected="true"]) td:first-child { box-shadow: inset 3px 0 0 var(--rb-text, #171717); }
.rb-table tbody tr:focus-visible { outline: 2px solid var(--rb-focus, #171717); outline-offset: -2px; }
.rb-table td.rb-table__num,
.rb-table th.rb-table__num { text-align: right; font-variant-numeric: tabular-nums; }

/* Pagination: eine Komponente (.rb-pagination; .rb-list-pagination bleibt als Alias). */
.rb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; color: var(--rb-muted, #595959); font-size: .8125rem; }
.rb-pagination[hidden] { display: none; }
.rb-pagination__actions,
.rb-list-pagination__actions { display: flex; flex-wrap: wrap; gap: var(--rb-space-2, 8px); }

/* Button wartet auf Antwort: aria-busy="true" + deaktiviert. */
.rb-btn[aria-busy="true"],
.btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.rb-btn[aria-busy="true"]::after,
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; width: 16px; height: 16px; margin: auto;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  color: var(--rb-text, #171717); animation: rb-spin .7s linear infinite;
}
.rb-btn--primary[aria-busy="true"]::after { color: var(--rb-bg, #fff); }
@keyframes rb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rb-btn[aria-busy="true"]::after, .btn[aria-busy="true"]::after { animation-duration: 2s; } }

/* Seitenpanel (Drawer): .rb-overlay.rb-overlay--drawer öffnet das Panel rechts in voller Höhe;
   mobil wie alle Overlays als Bottom-Sheet. Breite über --rb-overlay-width (Standard 480px). */
.rb-overlay--drawer { align-items: stretch; justify-content: flex-end; padding: 0; }
.rb-overlay--drawer > .rb-overlay__panel {
  width: min(var(--rb-overlay-width, 480px), 100%);
  max-height: none; height: 100dvh;
  border-radius: var(--rb-radius-xl, 16px) 0 0 var(--rb-radius-xl, 16px);
}
@media (max-width: 600px) {
  .rb-overlay--drawer { align-items: flex-end; }
  .rb-overlay--drawer > .rb-overlay__panel { width: 100%; height: auto; max-height: 100dvh; border-radius: var(--rb-radius-xl, 16px) var(--rb-radius-xl, 16px) 0 0; }
}

/* Natives <dialog> als Overlay-Panel bleibt geschlossen unsichtbar. */
dialog.rb-overlay__panel:not([open]) { display: none; }
dialog.rb-overlay__panel::backdrop { background: var(--rb-backdrop, rgba(23, 23, 23, .45)); }

/* Dialoge: Bestätigen/Verwerfen über RbDialog.confirm (natives <dialog class="rb-dialog">),
   Formulare und Details über .rb-overlay > .rb-overlay__panel (__header, __title, __body, __footer). */

/* Included commercial modules, shared by the configurator and public module pages. */
.rb-notice--modules .rb-notice__body > strong { display: block; margin-bottom: var(--rb-space-2); font-size: .9375rem; font-weight: 700; }
.rb-notice--modules .rb-data-list { gap: var(--rb-space-1); }
.rb-notice--modules .rb-data-list__item { display: flex; align-items: baseline; gap: var(--rb-space-2); }
.rb-notice--modules .rb-data-list__item > .lni { flex: none; font-size: .875rem; }
.rb-notice--modules .rb-data-list__item > a { min-width: 0; color: var(--rb-text); font-size: .875rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Badge und Ansichtsumschalter mit Icon: Icon zuerst, aria-hidden, 1em; Abstand kommt aus gap (Badge 6 px, Umschalter 8 px). */
.rb-badge > .lni,
.rb-segmented__button > .lni { flex: none; line-height: 1; }

/* Fortschritt: Beschriftung, Balken, optionale Zeile darunter. Wert über --rb-progress-value (0%–100%) am Balken,
   role="progressbar" mit aria-valuenow/-min/-max an der Spur. --indeterminate, wenn der Anteil unbekannt ist.
   Bewusst nicht für <progress class="rb-progress">: dort gestalten Shop und Konfigurator selbst. */
.rb-progress:not(progress) { display: grid; gap: var(--rb-space-2, 8px); min-width: 0; }
.rb-progress__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: .875rem; line-height: 1.4; }
.rb-progress__label { min-width: 0; color: var(--rb-text); font-weight: 600; overflow-wrap: anywhere; }
.rb-progress__value { color: var(--rb-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-progress__track { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: var(--rb-surface-muted); }
.rb-progress__bar { display: block; width: var(--rb-progress-value, 0%); max-width: 100%; height: 100%; border-radius: inherit; background: var(--rb-text); transition: width .3s ease; }
.rb-progress__hint { margin: 0; color: var(--rb-muted); font-size: .8125rem; line-height: 1.5; }
.rb-progress--indeterminate .rb-progress__bar { width: 40%; animation: rb-progress-slide 1.4s ease-in-out infinite; }
@keyframes rb-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  .rb-progress__bar { transition: none; }
  .rb-progress--indeterminate .rb-progress__bar { width: 100%; animation: none; opacity: .35; }
}
@media (forced-colors: active) {
  .rb-progress__track { outline: 1px solid CanvasText; }
  .rb-progress__bar { forced-color-adjust: none; background: CanvasText; }
}

/* Schrittleiste: <ol class="rb-steps"> mit <li class="rb-steps__item" data-state="done|current|open|locked">,
   der aktuelle Schritt zusätzlich mit aria-current="step". Zustand immer über Icon/Nummer und Text (__meta).
   Mobil einzeilig horizontal scrollbar. Anklickbare Schritte: Inhalt in <a|button class="rb-steps__link">.
   (.rb-stepper ist der Mengenwähler.) */
.rb-steps { display: flex; align-items: center; gap: var(--rb-space-2, 8px); max-width: 100%; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.rb-steps::-webkit-scrollbar { display: none; }
.rb-steps__item { display: flex; flex: 1 0 auto; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0; scroll-snap-align: start; }
.rb-steps__item:last-child { flex-grow: 0; }
.rb-steps__item:not(:last-child)::after { content: ""; flex: 1 1 24px; min-width: 24px; height: 2px; margin-left: 2px; border-radius: 1px; background: var(--rb-border); }
.rb-steps__item[data-state="done"]:not(:last-child)::after { background: var(--rb-text); }
.rb-steps__link { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 10px 0 0; border: 0; border-radius: var(--rb-radius-lg, 12px); background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.rb-steps__link:hover { background: var(--rb-surface-soft); }
.rb-steps__link:focus-visible { outline: 2px solid var(--rb-focus); outline-offset: 2px; }
.rb-steps__marker { display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rb-surface); box-shadow: inset 0 0 0 1.5px var(--rb-border-input); color: var(--rb-muted); font: 600 .8125rem/1 var(--rb-font-sans); font-variant-numeric: tabular-nums; }
.rb-steps__marker > .lni { font-size: 1rem; line-height: 1; }
.rb-steps__text { display: grid; gap: 2px; min-width: 0; padding: 4px 0; }
.rb-steps__label { color: var(--rb-text); font-size: .875rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.rb-steps__meta { color: var(--rb-muted); font-size: .75rem; line-height: 1.3; white-space: nowrap; }
.rb-steps__item[data-state="done"] .rb-steps__marker { background: var(--rb-text); box-shadow: none; color: var(--rb-bg); }
.rb-steps__item:is([data-state="current"], [aria-current="step"]) .rb-steps__marker { box-shadow: inset 0 0 0 2px var(--rb-text); color: var(--rb-text); font-weight: 700; }
.rb-steps__item:is([data-state="current"], [aria-current="step"]) .rb-steps__label { font-weight: 700; }
.rb-steps__item[data-state="locked"] .rb-steps__marker { background: var(--rb-surface-soft); box-shadow: none; color: var(--rb-subtle); }
.rb-steps__item[data-state="locked"] .rb-steps__label { color: var(--rb-muted); font-weight: 500; }
.rb-steps__item[data-state="locked"] .rb-steps__link { cursor: not-allowed; }
.rb-steps__item[data-state="locked"] .rb-steps__link:hover { background: transparent; }
@media (forced-colors: active) {
  .rb-steps__marker { border: 1px solid CanvasText; }
  .rb-steps__item:is([data-state="current"], [aria-current="step"]) .rb-steps__marker { outline: 2px solid Highlight; }
}

/* Auswahlraster: <div class="rb-choice-grid" role="group" aria-labelledby="…"> mit
   <button type="button" class="rb-choice-grid__option" aria-pressed="true|false"><i class="lni …" aria-hidden="true"></i><span>Name</span></button>.
   Aktiv = schwarz hinterlegt wie die Filter-Pills. Umschalten (eine oder mehrere Optionen) übernimmt die Seite.
   --compact: nur Text, eine Zeile hoch (z. B. Rhythmus, Fristen). Mobil zwei Spalten. */
.rb-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--rb-space-2, 8px); min-width: 0; margin: 0; padding: 0; }
.rb-choice-grid__option {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 10px;
  min-width: 0; min-height: 88px; margin: 0; padding: 14px; border: 0; border-radius: var(--rb-radius-lg, 12px);
  background: var(--rb-surface-soft); color: var(--rb-text); font: 600 .875rem/1.3 var(--rb-font-sans);
  text-align: left; overflow-wrap: anywhere; hyphens: auto; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.rb-choice-grid__option > .lni { flex: none; font-size: 1.375rem; line-height: 1; color: var(--rb-muted); transition: color .15s ease; }
.rb-choice-grid__option > span { min-width: 0; max-width: 100%; }
.rb-choice-grid__option:not(:disabled):hover { background: var(--rb-surface-muted); }
.rb-choice-grid__option:is([aria-pressed="true"], .is-active),
.rb-choice-grid__option:is([aria-pressed="true"], .is-active):not(:disabled):hover { background: var(--rb-text); color: var(--rb-surface); }
.rb-choice-grid__option:is([aria-pressed="true"], .is-active) > .lni { color: inherit; }
.rb-choice-grid__option:focus-visible { outline: 2px solid var(--rb-focus); outline-offset: 2px; }
.rb-choice-grid__option:disabled { opacity: .5; cursor: not-allowed; }
.rb-choice-grid--compact .rb-choice-grid__option { flex-direction: row; align-items: center; justify-content: center; min-height: var(--rb-control-height, 44px); padding: 10px 12px; border-radius: var(--rb-radius-sm, 8px); text-align: center; }
@media (max-width: 479px) {
  .rb-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-choice-grid__option { min-height: 80px; padding: 12px; }
}
@media (max-width: 359px) { .rb-choice-grid__option { padding-inline: 10px; font-size: .8125rem; } }
@media (forced-colors: active) {
  .rb-choice-grid__option { border: 1px solid CanvasText; }
  .rb-choice-grid__option:is([aria-pressed="true"], .is-active) { outline: 2px solid Highlight; outline-offset: -4px; }
  .rb-choice-grid__option:focus-visible { outline: 2px solid Highlight; outline-offset: 2px; }
}

/* Skelett-Vorlagen: Platzhalter in der Höhe des echten Inhalts, damit beim Laden nichts springt.
   Höhe bei Bedarf über --rb-skeleton-height an den echten Inhalt anpassen. */
.rb-skeleton.rb-skeleton--card { width: 100%; height: var(--rb-skeleton-height, 136px); border-radius: var(--rb-radius-lg, 12px); }
.rb-skeleton.rb-skeleton--row { width: 100%; height: var(--rb-skeleton-height, 64px); border-radius: var(--rb-radius-sm, 8px); }

/* Sheet: natives <dialog class="rb-dialog rb-dialog--sheet"> über RbDialog.sheet(). Desktop und Tablet als Seitenpanel rechts,
   mobil unten angedockt (--sheet-full: Vollbild). Kopf und Aktionszeile bleiben stehen, nur der Inhalt scrollt. */
.rb-dialog.rb-dialog--sheet { display: flex; flex-direction: column; inset: 0 0 0 auto; width: min(var(--rb-sheet-width, 480px), 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; overflow: hidden; border-radius: var(--rb-radius-xl, 16px) 0 0 var(--rb-radius-xl, 16px); }
.rb-dialog.rb-dialog--sheet:not([open]) { display: none; }
.rb-dialog.rb-dialog--sheet[open] { animation: rb-sheet-in-side .2s ease-out; }
.rb-dialog--sheet .rb-dialog__header { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: var(--rb-space-3, 12px); padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--rb-border-soft); }
.rb-dialog--sheet .rb-dialog__heading { min-width: 0; padding-top: 10px; }
.rb-dialog.rb-dialog--sheet .rb-dialog__title { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.rb-dialog.rb-dialog--sheet .rb-dialog__title:focus { outline: none; }
.rb-dialog--sheet .rb-dialog__description { margin: 4px 0 0; color: var(--rb-muted); font-size: .875rem; line-height: 1.5; }
.rb-dialog--sheet .rb-dialog__dismiss { flex: none; }
.rb-dialog--sheet .rb-dialog__content { flex: 1 1 auto; min-height: 0; padding: 20px 24px; overflow-y: auto; overscroll-behavior: contain; line-height: 1.5; }
.rb-dialog--sheet .rb-dialog__footer { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rb-border-soft); background: var(--rb-surface); }
.rb-dialog--sheet .rb-dialog__footer[hidden] { display: none; }
@keyframes rb-sheet-in-side { from { transform: translateX(32px); opacity: 0; } }
@keyframes rb-sheet-in-bottom { from { transform: translateY(32px); opacity: 0; } }
@media (max-width: 767px) {
  .rb-dialog.rb-dialog--sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: calc(100dvh - 16px); border-radius: var(--rb-radius-xl, 16px) var(--rb-radius-xl, 16px) 0 0; }
  .rb-dialog.rb-dialog--sheet.rb-dialog--sheet-full { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .rb-dialog.rb-dialog--sheet[open] { animation-name: rb-sheet-in-bottom; }
  .rb-dialog--sheet .rb-dialog__header { padding: 12px 8px 12px 16px; }
  .rb-dialog--sheet .rb-dialog__content { padding: 16px; }
  .rb-dialog--sheet .rb-dialog__footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .rb-dialog--sheet .rb-dialog__footer > .rb-btn { flex: 1 1 100%; }
  .rb-dialog--sheet .rb-dialog__footer > .rb-btn--primary { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .rb-dialog.rb-dialog--sheet[open] { animation: none; } }
