/*
 * Reisekostenhelfer - responsive application shell
 * No remote fonts, images or third-party assets are required.
 */

:root {
  color-scheme: light;
  --rk-bg: #f8f8f8;
  --rk-surface: #ffffff;
  --rk-surface-muted: #f8f8f8;
  --rk-text: #171717;
  --rk-text-muted: #525252;
  --rk-border: #c7c7c7;
  --rk-border-strong: #737373;
  --rk-primary: #551285;
  --rk-primary-dark: #551285;
  --rk-primary-soft: #e5f7fb;
  --rk-accent: #00b5e5;
  --rk-accent-soft: #e5f7fb;
  --rk-success: #171717;
  --rk-success-soft: #76b82a;
  --rk-warning: #171717;
  --rk-warning-soft: #ffe900;
  --rk-danger: #de007e;
  --rk-danger-soft: #ffffff;
  --rk-focus: #551285;
  --rk-shadow-sm: 0 1px 3px rgb(23 23 23 / 10%);
  --rk-shadow-md: 0 14px 36px rgb(23 23 23 / 14%);
  --rk-radius-sm: 0.45rem;
  --rk-radius: 0.75rem;
  --rk-radius-lg: 1.1rem;
  --rk-control-height: 3rem;
  --rk-content: 76rem;
  --rk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  min-height: 100%;
  background: var(--rk-bg);
  font-family: var(--rk-font);
  font-size: 100%;
  line-height: 1.5;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 100% 0, rgb(85 18 133 / 7%), transparent 26rem),
    var(--rk-bg);
  color: var(--rk-text);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
input[type="checkbox"],
input[type="radio"],
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a {
  color: var(--rk-primary-dark);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 0.2rem solid var(--rk-focus);
  outline-offset: 0.16rem;
}

[hidden] {
  display: none !important;
}

.rk-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rk-skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-text);
  color: #fff;
}

.rk-skip-link:focus {
  transform: translateY(0);
}

.rk-shell {
  min-height: 100vh;
}

.rk-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rk-border);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(0.65rem);
}

.rk-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--rk-text);
  font-weight: 750;
  letter-spacing: -0.015em;
  text-decoration: none;
  border: 0;
  background: transparent;
}

summary {
  cursor: pointer;
}

summary::marker {
  color: var(--rk-primary);
}

code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.rk-brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.7rem;
  background: var(--rk-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.rk-brand-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-account-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rk-footer,
.rk-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  color: var(--rk-text-muted);
  font-size: 0.82rem;
}

.rk-footer {
  width: min(100%, var(--rk-content));
  margin: 0 auto;
  padding: 0.5rem 1rem 2rem;
}

.rk-legal-links {
  margin: 1rem 0 0;
}

.rk-account-name {
  display: none;
  max-width: 15rem;
  overflow: hidden;
  color: var(--rk-text-muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-layout {
  width: min(100%, var(--rk-content));
  margin-inline: auto;
  padding: 1rem;
}

.rk-nav {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.3rem;
  overflow-x: auto;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius);
  background: var(--rk-surface);
  box-shadow: var(--rk-shadow-sm);
  scrollbar-width: thin;
}

.rk-nav button {
  min-height: 2.75rem;
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--rk-text-muted);
  font-weight: 650;
}

.rk-nav button:hover {
  background: var(--rk-surface-muted);
  color: var(--rk-text);
}

.rk-nav button[aria-current="page"] {
  background: var(--rk-primary-soft);
  color: var(--rk-primary-dark);
}

.rk-main {
  min-width: 0;
}

#rk-step-title,
[data-validation-summary] {
  scroll-margin-top: 5.25rem;
}

.rk-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem 1.25rem;
  margin: 0 0 1.25rem;
}

.rk-page-head h1,
.rk-page-head h2 {
  margin: 0;
  color: var(--rk-text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.rk-page-head p {
  max-width: 52rem;
  margin: 0.35rem 0 0;
  color: var(--rk-text-muted);
}

.rk-grid {
  display: grid;
  gap: 1rem;
}

.rk-grid--stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rk-grid--cards,
.rk-grid--two {
  grid-template-columns: 1fr;
}

.rk-card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-lg);
  background: var(--rk-surface);
  box-shadow: var(--rk-shadow-sm);
}

.rk-card--flat {
  box-shadow: none;
}

.rk-card--accent {
  border-color: var(--rk-primary);
  background: linear-gradient(145deg, var(--rk-accent-soft), #fff 60%);
}

.rk-card h2,
.rk-card h3,
.rk-card h4 {
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.rk-card p:first-child {
  margin-top: 0;
}

.rk-card p:last-child {
  margin-bottom: 0;
}

.rk-stat {
  display: grid;
  gap: 0.15rem;
}

.rk-stat strong {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: -0.035em;
}

.rk-stat span {
  color: var(--rk-text-muted);
  font-size: 0.88rem;
}

.rk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.rk-actions--end {
  justify-content: flex-end;
}

.rk-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  background: var(--rk-primary);
  color: #fff;
  font-weight: 720;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.rk-button:hover:not(:disabled) {
  background: var(--rk-primary-dark);
  box-shadow: 0 0 0 0.18rem var(--rk-accent-soft);
}

.rk-button--secondary {
  border-color: var(--rk-border-strong);
  background: var(--rk-surface);
  color: var(--rk-text);
}

.rk-button--secondary:hover:not(:disabled) {
  border-color: var(--rk-text-muted);
  background: var(--rk-surface-muted);
}

.rk-button--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--rk-primary-dark);
}

.rk-button--quiet:hover:not(:disabled) {
  background: var(--rk-primary-soft);
}

.rk-button--danger {
  background: var(--rk-danger);
}

.rk-button--delete-quiet {
  border-color: var(--rk-danger);
  background: transparent;
  color: var(--rk-danger);
}

.rk-button--delete-quiet:hover:not(:disabled) {
  border-color: var(--rk-danger);
  background: var(--rk-danger);
  color: #fff;
}

.rk-button--danger:hover:not(:disabled) {
  background: var(--rk-danger);
}

.rk-button--full {
  width: 100%;
}

.rk-button--small {
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}

.rk-icon-button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--rk-border);
  border-radius: 50%;
  background: var(--rk-surface);
  color: var(--rk-text);
}

.rk-form {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 1.15rem;
}

[data-form="admin-invite"] {
  align-self: start;
  align-content: start;
}

[data-form="admin-ticket-price"] > .rk-field:last-child {
  align-self: end;
}

[data-form="admin-ticket-price"] > .rk-field:last-child .rk-button {
  height: var(--rk-control-height);
  min-height: var(--rk-control-height);
}

.rk-form > *,
.rk-inline-fields > *,
.rk-bulk-import > * {
  min-width: 0;
  max-width: 100%;
}

.rk-field {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.rk-field label,
.rk-fieldset legend {
  color: var(--rk-text);
  font-weight: 700;
}

.rk-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
}

.rk-help,
.rk-hint {
  margin: 0;
  color: var(--rk-text-muted);
  font-size: 0.88rem;
}

.rk-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.rk-field select,
.rk-field textarea,
.rk-input {
  width: 100%;
  min-height: var(--rk-control-height);
  padding: 0.68rem 0.75rem;
  border: 1px solid var(--rk-border-strong);
  border-radius: var(--rk-radius-sm);
  background: #fff;
  box-shadow: inset 0 1px 1px rgb(23 23 23 / 4%);
}

.rk-field select {
  height: var(--rk-control-height);
  min-width: 0;
  max-width: 100%;
}

.rk-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  height: var(--rk-control-height);
}

.rk-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.rk-field input:hover,
.rk-field select:hover,
.rk-field textarea:hover {
  border-color: var(--rk-primary);
}

.rk-field input[aria-invalid="true"],
.rk-field select[aria-invalid="true"],
.rk-field textarea[aria-invalid="true"] {
  border-color: var(--rk-danger);
  background: var(--rk-danger-soft);
}

.rk-field-error {
  color: var(--rk-danger);
  font-size: 0.88rem;
  font-weight: 650;
}

.rk-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rk-fieldset > legend {
  margin-bottom: 0.55rem;
}

.rk-choice-list {
  display: grid;
  gap: 0.55rem;
}

.rk-choice {
  position: relative;
  display: grid;
  min-height: 3.1rem;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.78rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
}

.rk-choice:hover {
  border-color: var(--rk-border-strong);
  background: var(--rk-surface-muted);
}

.rk-choice:has(input:checked) {
  border-color: var(--rk-primary);
  background: var(--rk-primary-soft);
}

.rk-choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.05rem 0 0;
  accent-color: var(--rk-primary);
}

.rk-choice-copy {
  display: grid;
  gap: 0.12rem;
}

.rk-choice-title {
  font-weight: 690;
}

.rk-choice-description {
  color: var(--rk-text-muted);
  font-size: 0.88rem;
}

.rk-inline-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.rk-input-group {
  display: flex;
  height: var(--rk-control-height);
  min-height: var(--rk-control-height);
  align-items: stretch;
}

.rk-input-group input {
  height: 100% !important;
  min-height: 100% !important;
  min-width: 0;
  border-radius: var(--rk-radius-sm) 0 0 var(--rk-radius-sm) !important;
}

.rk-input-suffix {
  display: inline-flex;
  min-width: 3rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  border: 1px solid var(--rk-border-strong);
  border-left: 0;
  border-radius: 0 var(--rk-radius-sm) var(--rk-radius-sm) 0;
  background: var(--rk-surface-muted);
  color: var(--rk-text-muted);
}

.rk-input-suffix--wide {
  min-width: 5.6rem;
  padding-inline: 0.8rem;
  white-space: nowrap;
}

.rk-route-editor[data-route-editor-mode="edit"] {
  border-color: var(--rk-primary);
  background: var(--rk-primary-soft);
}

.rk-settings-form {
  gap: 0.85rem;
}

.rk-settings-intro {
  padding-bottom: 0.25rem;
}

.rk-settings-intro p {
  max-width: 52rem;
  margin: 0.35rem 0 0;
  color: var(--rk-text-muted);
}

.rk-settings-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
}

.rk-settings-section > summary {
  position: relative;
  display: grid;
  min-height: 4.3rem;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  list-style: none;
  user-select: none;
}

.rk-settings-section > summary::-webkit-details-marker {
  display: none;
}

.rk-settings-section > summary::after {
  content: "›";
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  color: var(--rk-primary);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.rk-settings-section[open] > summary::after {
  transform: rotate(-90deg);
}

.rk-settings-section > summary:hover {
  background: var(--rk-surface-muted);
}

.rk-settings-section > summary:focus-visible {
  outline: 3px solid var(--rk-focus);
  outline-offset: -3px;
}

.rk-settings-section > summary span {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.rk-settings-section > summary strong {
  font-size: 1.02rem;
}

.rk-settings-section > summary small {
  color: var(--rk-text-muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.rk-settings-section__body {
  display: grid;
  min-width: 0;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--rk-border);
  background: var(--rk-surface-muted);
}

.rk-setting-effect {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-left: 0.25rem solid var(--rk-accent);
  border-radius: 0 var(--rk-radius-sm) var(--rk-radius-sm) 0;
  background: var(--rk-accent-soft);
  color: var(--rk-text-muted);
  font-size: 0.9rem;
}

.rk-setting-effect strong {
  color: var(--rk-text);
}

.rk-setting-effect--mail {
  border-left-color: var(--rk-primary);
  background: var(--rk-primary-soft);
}

.rk-mobility-defaults-grid {
  display: grid;
  min-width: 0;
  gap: 0.8rem;
}

.rk-mail-examples {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
}

.rk-mail-examples > div {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
}

.rk-mail-examples span {
  color: var(--rk-text-muted);
  font-size: 0.8rem;
}

.rk-mail-examples strong {
  overflow-wrap: anywhere;
  font-size: 0.93rem;
}

.rk-mail-placeholder-help {
  padding: 0.8rem;
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
  color: var(--rk-text-muted);
  font-size: 0.86rem;
}

.rk-mail-placeholder-help strong {
  color: var(--rk-text);
}

.rk-mail-placeholder-help ul {
  display: grid;
  gap: 0.3rem;
  margin: 0.55rem 0 0;
  padding-left: 1.25rem;
}

.rk-settings-save {
  padding-top: 0.2rem;
}

.rk-settings-save .rk-button {
  width: 100%;
}

.rk-notice {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rk-primary);
  border-left: 0.3rem solid var(--rk-accent);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-accent-soft);
}

.rk-notice--warning {
  border-color: var(--rk-primary);
  border-left-color: var(--rk-primary);
  background: var(--rk-warning-soft);
}

.rk-notice--danger {
  border-color: var(--rk-danger);
  border-left-color: var(--rk-danger);
  background: var(--rk-danger-soft);
}

.rk-card--danger {
  border-color: var(--rk-danger);
  background: var(--rk-danger-soft);
}

.rk-notice--success {
  border-color: var(--rk-primary);
  border-left-color: var(--rk-primary);
  background: var(--rk-success-soft);
}

.rk-notice strong {
  line-height: 1.3;
}

.rk-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.rk-login {
  width: min(100%, 28rem);
  padding: clamp(1.2rem, 5vw, 2rem);
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-lg);
  background: var(--rk-surface);
  box-shadow: var(--rk-shadow-md);
}

.rk-login__mark {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 0.85rem;
  background: var(--rk-primary);
  color: #fff;
  font-weight: 800;
}

.rk-login h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.65rem, 6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rk-login__intro {
  margin: 0 0 1.3rem;
  color: var(--rk-text-muted);
}

.rk-login__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.7rem;
  color: var(--rk-text-muted);
  font-size: 0.82rem;
}

.rk-login__divider::before,
.rk-login__divider::after {
  height: 1px;
  background: var(--rk-border);
  content: "";
}

.rk-wizard {
  display: grid;
  gap: 1rem;
}

.rk-stepper {
  display: flex;
  gap: 0.4rem;
  padding: 0.15rem 0.1rem 0.65rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.rk-stepper__item {
  display: grid;
  min-width: 8.25rem;
  flex: 1 0 8.25rem;
  grid-template-columns: 1.8rem 1fr;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
  color: var(--rk-text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
}

.rk-stepper__number {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--rk-surface-muted);
  color: var(--rk-text);
}

.rk-stepper__item[aria-current="step"] {
  border-color: var(--rk-primary);
  background: var(--rk-primary-soft);
  color: var(--rk-primary-dark);
}

.rk-stepper__item[aria-current="step"] .rk-stepper__number,
.rk-stepper__item[data-complete="true"] .rk-stepper__number {
  background: var(--rk-primary);
  color: #fff;
}

.rk-wizard-panel {
  padding: clamp(1rem, 3vw, 1.75rem);
}

.rk-wizard-panel__head {
  margin-bottom: 1.3rem;
}

.rk-wizard-panel__head h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
}

.rk-wizard-footer {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rk-border);
}

.rk-event-results {
  display: grid;
  gap: 0.65rem;
}

.rk-event-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
}

.rk-event-card__date {
  color: var(--rk-primary-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.rk-event-card__title {
  margin: 0;
  font-weight: 650;
}

.rk-section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.6rem 0 1.1rem;
  color: var(--rk-text-muted);
  font-size: 0.85rem;
  font-weight: 720;
}

.rk-section-divider::before,
.rk-section-divider::after {
  min-width: 1rem;
  height: 1px;
  flex: 1;
  background: var(--rk-border);
  content: "";
}

.rk-manual-claim {
  display: grid;
  min-width: 0;
  margin-top: 1.6rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
  overflow: clip;
}

.rk-manual-claim__toggle {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 3.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: var(--rk-surface-muted);
  color: var(--rk-text);
  text-align: left;
}

.rk-manual-claim__toggle:hover {
  background: var(--rk-primary-soft);
}

.rk-manual-claim__toggle > span:first-child {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.rk-manual-claim__toggle small {
  color: var(--rk-text-muted);
  font-weight: 500;
}

.rk-manual-claim__chevron {
  flex: 0 0 auto;
  color: var(--rk-primary);
  font-size: 1.5rem;
  line-height: 1;
  transform: rotate(-90deg);
  transition: transform 160ms ease;
}

.rk-manual-claim__toggle[aria-expanded="true"] .rk-manual-claim__chevron {
  transform: rotate(0);
}

.rk-manual-claim__content {
  display: grid;
  min-width: 0;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--rk-border);
}

.rk-bulk-import,
.rk-bulk-review,
.rk-bulk-groups,
.rk-bulk-previews {
  display: grid;
  gap: 1rem;
}

.rk-bulk-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rk-bulk-step {
  display: grid;
  min-width: 0;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
}

.rk-bulk-step__number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--rk-primary);
  color: #fff;
  font-weight: 780;
}

.rk-bulk-step__content {
  display: grid;
  min-width: 0;
  gap: 0.8rem;
}

.rk-bulk-step__content h4,
.rk-bulk-step__content p {
  margin: 0;
}

.rk-bulk-step__lead strong {
  color: var(--rk-text);
}

.rk-button__optional {
  color: var(--rk-text-muted);
  font-weight: 600;
}

.rk-bulk-import__inputs {
  align-items: start;
}

.rk-bulk-import__inputs textarea {
  min-height: 9rem;
}

.rk-bulk-review h4 {
  margin: 0 0 0.65rem;
}

.rk-bulk-group {
  display: grid;
  min-width: 0;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
}

.rk-bulk-group.is-skipped {
  border-color: var(--rk-primary);
  box-shadow: inset 0.25rem 0 var(--rk-primary);
}

.rk-bulk-group__head {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.rk-bulk-group__head > div {
  min-width: 0;
}

.rk-bulk-journeys {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: var(--rk-radius-sm);
  background: var(--rk-accent-soft);
}

.rk-bulk-journeys > ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rk-bulk-journey {
  display: grid;
  min-width: 0;
  gap: 0.35rem 0.8rem;
  align-items: baseline;
  padding-top: 0.45rem;
  border-top: 1px solid var(--rk-accent);
}

.rk-bulk-journey:first-child {
  padding-top: 0;
  border-top: 0;
}

.rk-bulk-journey time,
.rk-bulk-journey__route {
  color: var(--rk-text);
  font-weight: 700;
}

.rk-bulk-journey__route,
.rk-bulk-journey__times {
  overflow-wrap: anywhere;
}

.rk-bulk-journey__times {
  color: var(--rk-text-muted);
  font-size: 0.9rem;
}

.rk-bulk-no-journey {
  margin: 0;
}

.rk-bulk-skip-notice p,
.rk-bulk-group__skip {
  margin: 0;
}

.rk-bulk-group__skip {
  padding: 0.65rem 0.75rem;
  border-radius: var(--rk-radius-sm);
  background: var(--rk-warning-soft);
  color: var(--rk-warning);
  font-size: 0.9rem;
}

.rk-bulk-allocations {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.rk-bulk-allocations legend {
  margin-bottom: 0.25rem;
  font-weight: 720;
}

.rk-bulk-allocation-row {
  display: grid;
  min-width: 0;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
}

.rk-bulk-allocation-remove {
  min-height: var(--rk-control-height);
  align-self: end;
  justify-self: start;
}

.rk-bulk-allocation-summary {
  color: var(--rk-text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.rk-bulk-preview .rk-help {
  margin: 0.35rem 0 0;
}

.rk-bulk-preview__action {
  width: 100%;
  max-width: 100%;
  align-self: center;
  justify-self: stretch;
}

.rk-bulk-create-actions,
.rk-bulk-create-actions .rk-button {
  width: 100%;
  max-width: 100%;
}

.rk-bulk-create-actions .rk-button {
  white-space: normal;
}

.rk-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--rk-surface-muted);
  color: var(--rk-text-muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.rk-status--draft {
  background: var(--rk-warning-soft);
  color: var(--rk-warning);
}

.rk-status--sent {
  background: var(--rk-success-soft);
  color: var(--rk-success);
}

.rk-status--paid {
  background: var(--rk-primary);
  color: #fff;
}

.rk-status--sending {
  background: var(--rk-accent-soft);
  color: var(--rk-text);
}

.rk-status--uncertain {
  background: var(--rk-danger-soft);
  color: var(--rk-danger);
}

.rk-text-danger {
  color: var(--rk-danger);
}

.rk-summary {
  display: grid;
  gap: 0;
  margin: 0;
}

.rk-summary__row {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rk-border);
}

.rk-summary__row:last-child {
  border-bottom: 0;
}

.rk-summary dt {
  color: var(--rk-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.rk-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.rk-dropzone {
  display: grid;
  min-height: 10rem;
  place-items: center;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 2px dashed var(--rk-border-strong);
  border-radius: var(--rk-radius);
  background: var(--rk-surface-muted);
  text-align: center;
}

.rk-dropzone:has(input:focus-visible),
.rk-dropzone[data-dragover="true"] {
  border-color: var(--rk-primary);
  background: var(--rk-primary-soft);
}

.rk-dropzone input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.rk-document-list,
.rk-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rk-claim-toolbar {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rk-border);
}

.rk-claim-toolbar__sort {
  max-width: 26rem;
}

.rk-claim-toolbar .rk-button {
  width: 100%;
}

.rk-claim-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  margin: 0.35rem 0 0;
  color: var(--rk-text-muted);
  font-size: 0.88rem;
}

.rk-claim-dates strong {
  color: inherit;
  font-weight: 700;
}

.rk-document,
.rk-list-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
}

.rk-document__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: var(--rk-text-muted);
  font-size: 0.85rem;
}

.rk-document__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.rk-list-item__actions {
  justify-content: flex-end;
}

.rk-draft-estimate {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.7rem;
  align-items: baseline;
  margin: 0.45rem 0 0;
  color: var(--rk-text-muted);
}

.rk-draft-estimate strong {
  color: var(--rk-text);
  font-size: 1.1rem;
}

.rk-warning-list {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  color: var(--rk-warning);
  font-size: 0.88rem;
}

.rk-text-success {
  color: var(--rk-success);
}

.rk-progress {
  width: 100%;
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rk-surface-muted);
}

.rk-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rk-primary);
  transition: width 180ms ease;
}

.rk-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
}

.rk-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  background: var(--rk-surface);
}

.rk-table th,
.rk-table td {
  padding: 0.65rem 0.6rem;
  border-bottom: 1px solid var(--rk-border);
  text-align: left;
  vertical-align: middle;
}

.rk-table th {
  background: var(--rk-surface-muted);
  color: var(--rk-text-muted);
  font-size: 0.8rem;
}

.rk-table tbody tr:last-child td {
  border-bottom: 0;
}

.rk-table input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: var(--rk-primary);
}

.rk-money-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
}

.rk-money-total strong {
  font-size: 1.4rem;
}

.rk-recipient {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius);
  background: var(--rk-surface-muted);
}

.rk-recipient__address {
  overflow-wrap: anywhere;
  font-weight: 750;
}

.rk-recipient--alternate {
  border-color: var(--rk-primary);
  background: var(--rk-warning-soft);
}

.rk-dialog-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgb(23 23 23 / 62%);
}

.rk-dialog {
  width: min(100%, 36rem);
  max-height: 92vh;
  padding: 1.25rem;
  overflow-y: auto;
  border: 0;
  border-radius: var(--rk-radius-lg) var(--rk-radius-lg) 0 0;
  background: var(--rk-surface);
  box-shadow: var(--rk-shadow-md);
}

.rk-dialog--mail-preview {
  width: min(100%, 48rem);
}

.rk-dialog h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.rk-delete-summary {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
}

.rk-delete-summary span {
  color: var(--rk-text-muted);
}

.rk-dialog__actions {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  margin-top: 1rem;
}

.rk-mail-envelope,
.rk-mail-forecast,
.rk-mail-attachment,
.rk-cron-setup {
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
}

.rk-mail-envelope {
  display: grid;
  gap: 0.55rem;
}

.rk-mail-envelope > div {
  display: grid;
  gap: 0.1rem;
}

.rk-mail-envelope span,
.rk-mail-preview__section-head span {
  color: var(--rk-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.rk-mail-envelope strong {
  overflow-wrap: anywhere;
}

.rk-mail-preview__section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.rk-mail-preview__section-head h3,
.rk-cron-setup h3 {
  margin: 0;
}

.rk-mail-forecast dl {
  margin: 0.75rem 0 0;
}

.rk-mail-forecast dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rk-border);
}

.rk-mail-forecast dt,
.rk-mail-forecast dd {
  margin: 0;
}

.rk-mail-forecast dd {
  font-weight: 700;
  text-align: right;
}

.rk-mail-forecast__deduction {
  color: var(--rk-text-muted);
}

.rk-mail-forecast__total {
  padding-top: 0.7rem !important;
  border-bottom: 0 !important;
  font-size: 1.05rem;
  font-weight: 750;
}

.rk-mail-attachment > strong,
.rk-mail-attachment > p {
  overflow-wrap: anywhere;
}

.rk-mail-attachment > p {
  margin: 0.2rem 0 0;
}

.rk-cron-setup ol {
  margin: 0.65rem 0 0;
  padding-left: 1.35rem;
}

.rk-toast-region {
  position: fixed;
  z-index: 120;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  display: grid;
  justify-items: end;
  gap: 0.5rem;
  pointer-events: none;
}

.rk-toast {
  width: min(100%, 28rem);
  padding: 0.8rem 1rem;
  border: 1px solid var(--rk-border-strong);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-text);
  color: #fff;
  box-shadow: var(--rk-shadow-md);
  pointer-events: auto;
}

.rk-toast--error {
  border-color: var(--rk-danger);
  background: var(--rk-danger);
}

.rk-loading {
  display: grid;
  min-height: 40vh;
  place-items: center;
  color: var(--rk-text-muted);
}

.rk-spinner {
  width: 2.2rem;
  height: 2.2rem;
  margin-inline: auto;
  border: 0.22rem solid var(--rk-border);
  border-top-color: var(--rk-primary);
  border-radius: 50%;
  animation: rk-spin 0.75s linear infinite;
}

.rk-empty {
  padding: 2rem 1rem;
  text-align: center;
}

.rk-empty h2,
.rk-empty h3 {
  margin-top: 0;
}

.rk-empty p {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--rk-text-muted);
}

.rk-error-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
  padding: 1rem;
}

.rk-noscript {
  width: min(100% - 2rem, 42rem);
  margin: 3rem auto;
  padding: 1.25rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius);
  background: var(--rk-surface);
  box-shadow: var(--rk-shadow-sm);
}

.rk-error-page > div {
  width: min(100%, 36rem);
}

.rk-muted {
  color: var(--rk-text-muted);
}

.rk-mt-0 { margin-top: 0; }
.rk-mb-0 { margin-bottom: 0; }
.rk-mt-1 { margin-top: 0.75rem; }
.rk-mt-2 { margin-top: 1.25rem; }

@keyframes rk-spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 40rem) {
  .rk-mail-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rk-settings-save .rk-button {
    width: auto;
  }

  .rk-claim-toolbar {
    grid-template-columns: minmax(14rem, 26rem) auto;
    align-items: end;
    justify-content: space-between;
  }

  .rk-claim-toolbar .rk-button {
    width: auto;
  }

  .rk-account-name {
    display: block;
  }

  .rk-layout {
    padding: 1.5rem;
  }

  .rk-grid--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rk-grid--cards,
  .rk-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rk-inline-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rk-costs-primary-row > .rk-field {
    grid-template-rows: minmax(2.7rem, auto) var(--rk-control-height);
    align-content: end;
  }

  .rk-inline-fields--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rk-bulk-allocation-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(10rem, 0.75fr) auto;
    align-items: end;
  }

  .rk-bulk-journey {
    grid-template-columns: minmax(6.4rem, auto) minmax(0, 1fr) minmax(13rem, auto);
  }

  .rk-bulk-preview__action {
    width: auto;
    justify-self: end;
    white-space: nowrap;
  }

  .rk-wizard-footer,
  .rk-dialog__actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .rk-event-card,
  .rk-document,
  .rk-list-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .rk-summary__row {
    grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .rk-dialog-backdrop {
    place-items: center;
    padding: 1rem;
  }

  .rk-dialog {
    border-radius: var(--rk-radius-lg);
  }
}

@media (min-width: 64rem) {
  .rk-mobility-defaults-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rk-layout {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 2rem;
  }

  .rk-nav {
    position: sticky;
    top: 5.6rem;
    display: grid;
    align-content: start;
    align-self: start;
    overflow: visible;
  }

  .rk-nav button {
    width: 100%;
    text-align: left;
  }

  .rk-wizard {
    grid-template-columns: 12.5rem minmax(0, 1fr);
    align-items: start;
  }

  .rk-stepper {
    position: sticky;
    top: 5.6rem;
    display: grid;
    overflow: visible;
  }

  .rk-stepper__item {
    width: 100%;
    min-width: 0;
  }

  .rk-wizard-panel {
    min-height: 35rem;
  }
}

.rk-passengers {
  padding: 1rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface-muted);
}

.rk-passengers__head,
.rk-passenger-row,
.rk-submitted-item,
.rk-submitted-total {
  display: flex;
  gap: 1rem;
  align-items: end;
}

.rk-passengers__head {
  justify-content: space-between;
  align-items: start;
}

.rk-passengers__head h3 {
  margin: 0;
}

.rk-passenger-list {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.rk-passenger-row {
  padding: .8rem;
  border: 1px solid var(--rk-border);
  border-radius: var(--rk-radius-sm);
  background: var(--rk-surface);
}

.rk-passenger-row .rk-field:first-child {
  flex: 2 1 18rem;
}

.rk-passenger-row .rk-field:nth-child(2) {
  flex: 1 1 11rem;
}

.rk-empty-inline {
  margin: .8rem 0 0;
  color: var(--rk-muted);
}

.rk-submitted-item {
  justify-content: space-between;
  align-items: start;
}

.rk-submitted-item__main {
  min-width: 0;
  flex: 1 1 auto;
}

.rk-submitted-total {
  min-width: 12rem;
  flex-direction: column;
  align-items: end;
  text-align: right;
}

.rk-submitted-total span {
  color: var(--rk-muted);
  font-size: .9rem;
}

.rk-submitted-total strong {
  font-size: 1.45rem;
}

.rk-estimate-details {
  margin-top: 1rem;
  border-top: 1px solid var(--rk-border);
  padding-top: .8rem;
}

.rk-estimate-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--rk-primary);
}

.rk-estimate-breakdown {
  margin: .8rem 0 0;
}

.rk-estimate-breakdown > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--rk-border);
}

.rk-estimate-breakdown dt,
.rk-estimate-breakdown dd {
  margin: 0;
}

.rk-estimate-breakdown dd {
  font-weight: 700;
  text-align: right;
}

.rk-estimate-breakdown__deduction {
  color: var(--rk-muted);
  font-size: .92rem;
}

.rk-estimate-breakdown__total {
  margin-top: .35rem;
  border-bottom: 0 !important;
  font-size: 1.05rem;
}

@media (max-width: 720px) {
  .rk-passengers__head,
  .rk-passenger-row,
  .rk-submitted-item {
    flex-direction: column;
    align-items: stretch;
  }

  .rk-passengers__head .rk-button,
  .rk-passenger-row .rk-button {
    width: 100%;
  }

  .rk-submitted-total {
    min-width: 0;
    align-items: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --rk-border: #737373;
    --rk-border-strong: #171717;
  }

  .rk-button,
  .rk-choice:has(input:checked) {
    border-width: 2px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .rk-topbar,
  .rk-nav,
  .rk-stepper,
  .rk-wizard-footer,
  .rk-toast-region,
  .rk-button {
    display: none !important;
  }

  .rk-layout,
  .rk-wizard {
    display: block;
    width: 100%;
    padding: 0;
  }

  .rk-card,
  .rk-wizard-panel {
    border: 0;
    box-shadow: none;
  }
}
