/*
 * ============================================================================
 * ALPION SYSTEMS
 * RentFlow Enterprise Demo V1
 * ============================================================================
 *
 * Entwickler:
 * Kamran Sarhangzadeh Azizi
 *
 * Zentrale Benutzeroberfläche für:
 * - Operations Center
 * - Fahrzeugassistent
 * - Fahrzeugkatalog
 * - Fuhrpark
 *
 * Copyright (c) 2026 Kamran Sarhangzadeh Azizi / Alpion Systems.
 * Alle Rechte vorbehalten.
 * ============================================================================
 */

:root {
  color-scheme: dark;

  --rf-bg: #07101f;
  --rf-bg-soft: #0a1424;
  --rf-sidebar: #0b1628;

  --rf-surface: #101e32;
  --rf-surface-2: #152741;
  --rf-surface-3: #1b3150;

  --rf-border: #29415f;
  --rf-border-light: #3b5d84;

  --rf-primary: #22d3ee;
  --rf-primary-dark: #0891b2;
  --rf-primary-soft: rgba(34, 211, 238, 0.12);

  --rf-success: #34d399;
  --rf-success-soft: rgba(52, 211, 153, 0.12);

  --rf-warning: #fbbf24;
  --rf-warning-soft: rgba(251, 191, 36, 0.12);

  --rf-danger: #fb7185;
  --rf-danger-soft: rgba(251, 113, 133, 0.12);

  --rf-white: #ffffff;
  --rf-text: #edf4ff;
  --rf-text-soft: #c6d3e5;
  --rf-muted: #8ea2bd;

  --rf-radius-small: 9px;
  --rf-radius: 15px;
  --rf-radius-large: 22px;

  --rf-shadow:
    0 18px 60px rgba(0, 0, 0, 0.28);

  --rf-sidebar-width: 270px;
}

/* ==========================================================================
   BASIS
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--rf-text);

  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(8, 145, 178, 0.18),
      transparent 32%
    ),
    linear-gradient(
      180deg,
      #07101f 0%,
      #081321 100%
    );

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.30);
  outline-offset: 2px;
}

/* ==========================================================================
   HAUPTLAYOUT
   ========================================================================== */

.rf-app {
  display: grid;

  grid-template-columns:
    var(--rf-sidebar-width)
    minmax(0, 1fr);

  min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.rf-sidebar {
  position: sticky;
  top: 0;

  height: 100vh;
  overflow-y: auto;

  padding: 22px 17px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018),
      transparent
    ),
    var(--rf-sidebar);

  border-right:
    1px solid var(--rf-border);
}

.rf-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 8px 23px;
}

.rf-brand-mark {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 44px;
  height: 44px;

  color: #02151b;

  background:
    linear-gradient(
      135deg,
      #67e8f9,
      var(--rf-primary)
    );

  border-radius: 13px;

  box-shadow:
    0 10px 30px rgba(34, 211, 238, 0.22);

  font-weight: 900;
  letter-spacing: -0.03em;
}

.rf-brand-title {
  color: var(--rf-white);

  font-size: 16px;
  font-weight: 850;
}

.rf-brand-subtitle {
  margin-top: 2px;

  color: var(--rf-muted);

  font-size: 11px;
}

/* ==========================================================================
   MANDANTENKARTE
   ========================================================================== */

.rf-tenant {
  margin-bottom: 22px;
  padding: 14px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid var(--rf-border);

  border-radius:
    var(--rf-radius);
}

.rf-tenant-label {
  color: var(--rf-muted);

  font-size: 10px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.rf-tenant-name {
  margin-top: 5px;

  color: var(--rf-white);

  font-size: 14px;
  font-weight: 800;
}

.rf-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-top: 9px;

  color: var(--rf-success);

  font-size: 11px;
  font-weight: 750;
}

.rf-status-dot {
  width: 8px;
  height: 8px;

  background:
    currentColor;

  border-radius: 999px;

  box-shadow:
    0 0 9px currentColor;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.rf-nav-section {
  margin:
    20px 9px
    7px;

  color: var(--rf-muted);

  font-size: 10px;
  font-weight: 850;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rf-nav {
  display: grid;
  gap: 4px;
}

.rf-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;

  width: 100%;

  padding:
    10px 11px;

  color:
    var(--rf-text-soft);

  background:
    transparent;

  border: 0;
  border-radius: 11px;

  text-align: left;

  transition:
    color 140ms ease,
    background 140ms ease;
}

.rf-nav-item:hover {
  color:
    var(--rf-white);

  background:
    var(--rf-surface-2);
}

.rf-nav-item.active {
  color:
    var(--rf-white);

  background:
    linear-gradient(
      135deg,
      rgba(8, 145, 178, 0.32),
      rgba(34, 211, 238, 0.09)
    );

  box-shadow:
    inset 3px 0 0
    var(--rf-primary);
}

.rf-nav-icon {
  display: grid;
  place-items: center;

  flex: 0 0 auto;

  width: 29px;
  height: 29px;

  color:
    var(--rf-primary);

  background:
    var(--rf-primary-soft);

  border-radius:
    8px;

  font-size:
    12px;

  font-weight:
    850;
}

/* ==========================================================================
   HAUPTINHALT
   ========================================================================== */

.rf-main {
  min-width: 0;

  padding:
    27px 30px
    50px;
}

.rf-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;

  margin-bottom: 22px;
}

.rf-kicker {
  color:
    var(--rf-primary);

  font-size: 11px;
  font-weight: 850;

  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.rf-title {
  margin:
    5px 0 7px;

  color:
    var(--rf-white);

  font-size:
    clamp(28px, 4vw, 42px);

  line-height:
    1.08;

  letter-spacing:
    -0.025em;
}

.rf-description {
  max-width:
    760px;

  margin: 0;

  color:
    var(--rf-muted);

  line-height:
    1.65;
}

/* ==========================================================================
   API STATUS
   ========================================================================== */

.rf-api-status {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    8px;

  padding:
    8px 12px;

  color:
    var(--rf-warning);

  background:
    var(--rf-warning-soft);

  border:
    1px solid
    rgba(251, 191, 36, 0.24);

  border-radius:
    999px;

  font-size:
    11px;

  font-weight:
    800;

  white-space:
    nowrap;
}

.rf-api-status.ok {
  color:
    var(--rf-success);

  background:
    var(--rf-success-soft);

  border-color:
    rgba(52, 211, 153, 0.25);
}

.rf-api-status.error {
  color:
    var(--rf-danger);

  background:
    var(--rf-danger-soft);

  border-color:
    rgba(251, 113, 133, 0.25);
}

/* ==========================================================================
   PANEL
   ========================================================================== */

.rf-panel {
  padding:
    22px;

  background:
    var(--rf-surface);

  border:
    1px solid
    var(--rf-border);

  border-radius:
    var(--rf-radius-large);

  box-shadow:
    var(--rf-shadow);
}

.rf-panel-header {
  display: flex;

  justify-content:
    space-between;

  align-items:
    flex-start;

  gap:
    20px;

  margin-bottom:
    20px;
}

.rf-panel-title {
  margin:
    0 0 5px;

  color:
    var(--rf-white);

  font-size:
    21px;

  font-weight:
    850;
}

.rf-panel-description {
  margin: 0;

  max-width: 720px;

  color:
    var(--rf-muted);

  font-size:
    13px;

  line-height:
    1.55;
}

/* ==========================================================================
   WORKSPACE
   ========================================================================== */

.rf-workspace {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    330px;

  gap:
    20px;

  align-items:
    start;
}

/* ==========================================================================
   FORTSCHRITT
   ========================================================================== */

.rf-progress-panel {
  margin-bottom:
    21px;

  padding:
    17px 20px;

  background:
    var(--rf-surface);

  border:
    1px solid var(--rf-border);

  border-radius:
    var(--rf-radius-large);

  box-shadow:
    var(--rf-shadow);
}

.rf-progress-header {
  display: flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap:
    15px;

  margin-bottom:
    11px;
}

.rf-progress-label {
  color:
    var(--rf-text-soft);

  font-size:
    12px;

  font-weight:
    800;
}

.rf-progress-percent {
  color:
    var(--rf-primary);

  font-size:
    12px;

  font-weight:
    900;
}

.rf-progress-track {
  height:
    8px;

  overflow:
    hidden;

  background:
    #06101c;

  border-radius:
    999px;
}

.rf-progress-value {
  width:
    12.5%;

  height:
    100%;

  background:
    linear-gradient(
      90deg,
      var(--rf-primary-dark),
      var(--rf-primary)
    );

  border-radius:
    inherit;

  transition:
    width 180ms ease;
}

/* ==========================================================================
   SCHRITTE
   ========================================================================== */

.rf-steps {
  display: grid;

  grid-template-columns:
    repeat(8, minmax(105px, 1fr));

  gap:
    8px;

  margin-bottom:
    22px;

  overflow-x:
    auto;

  padding-bottom:
    4px;
}

.rf-step {
  min-width:
    105px;

  padding:
    11px 9px;

  color:
    var(--rf-muted);

  background:
    var(--rf-surface);

  border:
    1px solid
    var(--rf-border);

  border-radius:
    12px;

  text-align:
    center;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.rf-step-number {
  display:
    grid;

  place-items:
    center;

  width:
    27px;

  height:
    27px;

  margin:
    0 auto 6px;

  background:
    var(--rf-surface-2);

  border-radius:
    999px;

  font-size:
    11px;

  font-weight:
    900;
}

.rf-step-name {
  font-size:
    10px;

  font-weight:
    800;
}

.rf-step.active {
  color:
    var(--rf-white);

  background:
    var(--rf-primary-soft);

  border-color:
    var(--rf-primary);
}

.rf-step.active
.rf-step-number {
  color:
    #03161b;

  background:
    var(--rf-primary);
}

.rf-step.completed {
  color:
    var(--rf-success);

  border-color:
    rgba(52, 211, 153, 0.35);
}

.rf-step.completed
.rf-step-number {
  color:
    #032218;

  background:
    var(--rf-success);
}

/* ==========================================================================
   AUSWAHLKARTEN
   ========================================================================== */

.rf-card-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(160px, 1fr)
    );

  gap:
    12px;
}

.rf-choice-card {
  position:
    relative;

  min-height:
    128px;

  padding:
    16px;

  color:
    var(--rf-text);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.012)
    );

  border:
    1px solid
    var(--rf-border);

  border-radius:
    var(--rf-radius);

  text-align:
    left;

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.rf-choice-card:hover {
  transform:
    translateY(-2px);

  background:
    var(--rf-surface-3);

  border-color:
    var(--rf-border-light);
}

.rf-choice-card.selected {
  background:
    linear-gradient(
      145deg,
      rgba(34, 211, 238, 0.16),
      rgba(8, 145, 178, 0.07)
    );

  border-color:
    var(--rf-primary);

  box-shadow:
    inset 0 0 0 1px
    rgba(34, 211, 238, 0.14);
}

.rf-choice-icon {
  display: grid;
  place-items: center;

  width:
    43px;

  height:
    43px;

  margin-bottom:
    13px;

  color:
    var(--rf-primary);

  background:
    var(--rf-primary-soft);

  border-radius:
    12px;

  font-size:
    13px;

  font-weight:
    900;

  text-transform:
    uppercase;
}

.rf-choice-title {
  display:
    block;

  color:
    var(--rf-white);

  font-size:
    14px;

  font-weight:
    850;

  line-height:
    1.3;
}

.rf-choice-subtitle {
  display:
    block;

  margin-top:
    5px;

  color:
    var(--rf-muted);

  font-size:
    11px;

  line-height:
    1.45;
}

.rf-selection-mark {
  position:
    absolute;

  top:
    9px;

  right:
    9px;

  display:
    none;

  place-items:
    center;

  width:
    23px;

  height:
    23px;

  color:
    #02171c;

  background:
    var(--rf-primary);

  border-radius:
    999px;

  font-size:
    11px;

  font-weight:
    900;
}

.rf-choice-card.selected
.rf-selection-mark {
  display:
    grid;
}

/* ==========================================================================
   SUCHE
   ========================================================================== */

.rf-search {
  margin-bottom:
    15px;
}

.rf-search-input {
  width:
    100%;

  min-height:
    43px;

  padding:
    10px 12px;

  color:
    var(--rf-text);

  background:
    #091527;

  border:
    1px solid
    var(--rf-border);

  border-radius:
    10px;
}

.rf-search-input::placeholder {
  color:
    #6d829d;
}

.rf-search-input:focus {
  border-color:
    var(--rf-primary);
}

/* ==========================================================================
   TECHNISCHE DATEN
   ========================================================================== */

.rf-tech-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    11px;

  margin-top:
    18px;
}

.rf-tech-item {
  padding:
    13px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid
    var(--rf-border);

  border-radius:
    11px;
}

.rf-tech-label {
  color:
    var(--rf-muted);

  font-size:
    9px;

  font-weight:
    800;

  text-transform:
    uppercase;

  letter-spacing:
    0.08em;
}

.rf-tech-value {
  margin-top:
    5px;

  color:
    var(--rf-white);

  font-size:
    13px;

  font-weight:
    800;
}

/* ==========================================================================
   AUSSTATTUNG
   ========================================================================== */

.rf-feature-sections {
  display:
    grid;

  gap:
    20px;
}

.rf-feature-title {
  margin:
    0 0 9px;

  color:
    var(--rf-text-soft);

  font-size:
    13px;

  font-weight:
    850;
}

.rf-feature-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(185px, 1fr)
    );

  gap:
    8px;
}

.rf-feature {
  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  padding:
    11px 12px;

  color:
    var(--rf-text-soft);

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid var(--rf-border);

  border-radius:
    10px;

  cursor:
    pointer;
}

.rf-feature:hover {
  background:
    var(--rf-surface-3);
}

.rf-feature.selected {
  color:
    var(--rf-white);

  background:
    var(--rf-primary-soft);

  border-color:
    var(--rf-primary);
}

.rf-feature input {
  width:
    17px;

  height:
    17px;

  accent-color:
    var(--rf-primary);
}

/* ==========================================================================
   BILDER
   ========================================================================== */

.rf-media-grid {
  display:
    grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap:
    12px;
}

.rf-media-card {
  padding:
    16px;

  color:
    var(--rf-text);

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid
    var(--rf-border);

  border-radius:
    var(--rf-radius);

  text-align:
    left;
}

.rf-media-card.selected {
  background:
    var(--rf-primary-soft);

  border-color:
    var(--rf-primary);
}

.rf-media-preview {
  display:
    grid;

  place-items:
    center;

  height:
    135px;

  margin-bottom:
    13px;

  color:
    var(--rf-primary);

  background:
    radial-gradient(
      circle,
      rgba(34, 211, 238, 0.14),
      transparent 65%
    ),
    #091527;

  border:
    1px dashed
    #385d84;

  border-radius:
    11px;

  font-size:
    30px;

  font-weight:
    900;
}

/* ==========================================================================
   FORMULARE
   ========================================================================== */

.rf-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    13px;
}

.rf-form-field {
  display:
    grid;

  gap:
    6px;
}

.rf-form-field.full {
  grid-column:
    1 / -1;
}

.rf-label {
  color:
    var(--rf-text-soft);

  font-size:
    12px;

  font-weight:
    800;
}

.rf-required {
  color:
    var(--rf-danger);
}

.rf-input,
.rf-select,
.rf-textarea {
  width:
    100%;

  min-height:
    43px;

  padding:
    10px 12px;

  color:
    var(--rf-text);

  background:
    #091527;

  border:
    1px solid
    var(--rf-border);

  border-radius:
    10px;
}

.rf-input::placeholder,
.rf-textarea::placeholder {
  color:
    #6e829c;
}

.rf-input:focus,
.rf-select:focus,
.rf-textarea:focus {
  border-color:
    var(--rf-primary);
}

.rf-textarea {
  min-height:
    110px;

  resize:
    vertical;
}

/* ==========================================================================
   HINWEISE
   ========================================================================== */

.rf-notice {
  margin-top:
    16px;

  padding:
    13px 14px;

  color:
    var(--rf-warning);

  background:
    var(--rf-warning-soft);

  border:
    1px solid
    rgba(251, 191, 36, 0.23);

  border-radius:
    10px;

  font-size:
    12px;

  line-height:
    1.55;
}

.rf-notice.success {
  color:
    var(--rf-success);

  background:
    var(--rf-success-soft);

  border-color:
    rgba(52, 211, 153, 0.23);
}

.rf-notice.error {
  color:
    var(--rf-danger);

  background:
    var(--rf-danger-soft);

  border-color:
    rgba(251, 113, 133, 0.23);
}

/* ==========================================================================
   ZUSAMMENFASSUNG
   ========================================================================== */

.rf-summary {
  position:
    sticky;

  top:
    22px;
}

.rf-summary-image {
  display:
    grid;

  place-items:
    center;

  height:
    165px;

  margin-bottom:
    16px;

  color:
    var(--rf-primary);

  background:
    radial-gradient(
      circle,
      rgba(34, 211, 238, 0.18),
      transparent 65%
    ),
    #091527;

  border:
    1px solid
    var(--rf-border);

  border-radius:
    var(--rf-radius);

  font-size:
    38px;

  font-weight:
    900;
}

.rf-summary-title {
  margin:
    0;

  color:
    var(--rf-white);

  font-size:
    19px;

  font-weight:
    850;
}

.rf-summary-subtitle {
  margin:
    5px 0 17px;

  color:
    var(--rf-muted);

  font-size:
    11px;
}

.rf-summary-list {
  display:
    grid;

  gap:
    9px;

  margin:
    0;
}

.rf-summary-row {
  display:
    flex;

  justify-content:
    space-between;

  gap:
    13px;

  padding-bottom:
    9px;

  border-bottom:
    1px solid
    var(--rf-border);

  font-size:
    12px;
}

.rf-summary-row dt {
  color:
    var(--rf-muted);
}

.rf-summary-row dd {
  margin:
    0;

  color:
    var(--rf-text);

  font-weight:
    800;

  text-align:
    right;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.rf-actions {
  display:
    flex;

  justify-content:
    space-between;

  gap:
    11px;

  margin-top:
    21px;
}

.rf-button {
  min-height:
    44px;

  padding:
    10px 17px;

  color:
    var(--rf-text);

  background:
    var(--rf-surface-2);

  border:
    1px solid
    var(--rf-border);

  border-radius:
    10px;

  font-size:
    12px;

  font-weight:
    850;
}

.rf-button:hover:not(:disabled) {
  background:
    var(--rf-surface-3);
}

.rf-button.primary {
  color:
    #02171c;

  background:
    linear-gradient(
      135deg,
      #67e8f9,
      var(--rf-primary)
    );

  border-color:
    transparent;
}

.rf-button.success {
  color:
    #032117;

  background:
    var(--rf-success);

  border-color:
    transparent;
}

.rf-button:disabled {
  cursor:
    not-allowed;

  opacity:
    0.42;
}

/* ==========================================================================
   LEER-/LADEZUSTAND
   ========================================================================== */

.rf-empty {
  grid-column:
    1 / -1;

  padding:
    35px 20px;

  color:
    var(--rf-muted);

  background:
    rgba(255, 255, 255, 0.02);

  border:
    1px dashed
    var(--rf-border);

  border-radius:
    var(--rf-radius);

  text-align:
    center;
}

.rf-spinner {
  display:
    inline-block;

  width:
    21px;

  height:
    21px;

  border:
    2px solid
    rgba(255, 255, 255, 0.16);

  border-top-color:
    var(--rf-primary);

  border-radius:
    999px;

  animation:
    rf-spin 0.75s
    linear infinite;
}

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

/* ==========================================================================
   BADGES
   ========================================================================== */

.rf-badge {
  display:
    inline-flex;

  align-items:
    center;

  padding:
    5px 9px;

  color:
    var(--rf-primary);

  background:
    var(--rf-primary-soft);

  border-radius:
    999px;

  font-size:
    10px;

  font-weight:
    850;
}

.rf-badge.success {
  color:
    var(--rf-success);

  background:
    var(--rf-success-soft);
}

.rf-badge.warning {
  color:
    var(--rf-warning);

  background:
    var(--rf-warning-soft);
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.rf-toast {
  position:
    fixed;

  right:
    22px;

  bottom:
    22px;

  z-index:
    100;

  max-width:
    390px;

  padding:
    13px 15px;

  color:
    var(--rf-text);

  background:
    #132540;

  border:
    1px solid
    var(--rf-border);

  border-left:
    4px solid
    var(--rf-primary);

  border-radius:
    11px;

  box-shadow:
    var(--rf-shadow);

  opacity:
    0;

  transform:
    translateY(15px);

  pointer-events:
    none;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.rf-toast.show {
  opacity:
    1;

  transform:
    translateY(0);
}

.rf-toast.error {
  border-left-color:
    var(--rf-danger);
}

/* ==========================================================================
   VERSTECKTE ELEMENTE
   ========================================================================== */

[hidden] {
  display:
    none !important;
}

.rf-step-content {
  display:
    none;
}

.rf-step-content.active {
  display:
    block;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1120px) {
  :root {
    --rf-sidebar-width:
      88px;
  }

  .rf-brand-copy,
  .rf-tenant,
  .rf-nav-section,
  .rf-nav-label {
    display:
      none;
  }

  .rf-brand {
    justify-content:
      center;

    padding-inline:
      0;
  }

  .rf-nav-item {
    justify-content:
      center;
  }

  .rf-workspace {
    grid-template-columns:
      1fr;
  }

  .rf-summary {
    position:
      static;
  }
}

@media (max-width: 760px) {
  .rf-app {
    display:
      block;
  }

  .rf-sidebar {
    display:
      none;
  }

  .rf-main {
    padding:
      16px;
  }

  .rf-topbar,
  .rf-panel-header {
    flex-direction:
      column;

    align-items:
      flex-start;
  }

  .rf-api-status {
    white-space:
      normal;
  }

  .rf-form-grid,
  .rf-tech-grid,
  .rf-media-grid {
    grid-template-columns:
      1fr;
  }

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

  .rf-actions {
    flex-direction:
      column-reverse;
  }

  .rf-button {
    width:
      100%;
  }
}

@media (max-width: 460px) {
  .rf-card-grid {
    grid-template-columns:
      1fr;
  }

  .rf-panel {
    padding:
      17px;
  }

  .rf-main {
    padding:
      12px;
  }
}


