/* =========================================================
   meelo Design System v3
   Eine Datei · Alle Module · Einheitlich
   ========================================================= */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --ms-primary:        var(--meelo-primary, #2563eb);
  --ms-primary-rgb:    37, 99, 235;
  --ms-bg:             #f8f7f4;
  --ms-surface:        #ffffff;
  --ms-surface-2:      #f3f2ef;
  --ms-border:         #e5e3de;
  --ms-border-hover:   #c4c2bc;
  --ms-text:           #1a1916;
  --ms-text-2:         #4b4a45;
  --ms-muted:          #9ca3af;
  --ms-radius-sm:      8px;
  --ms-radius:         12px;
  --ms-radius-lg:      16px;
  --ms-radius-xl:      20px;
  --ms-shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --ms-shadow:         0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --ms-shadow-lg:      0 8px 32px rgba(0,0,0,.09);
  --ms-shadow-xl:      0 24px 64px rgba(0,0,0,.12);
  --ms-font:           'DM Sans', system-ui, -apple-system, sans-serif;
  --ms-font-serif:     'Playfair Display', Georgia, serif;
  --ms-font-mono:      'JetBrains Mono', 'Fira Code', monospace;
  --ms-ease:           cubic-bezier(.4, 0, .2, 1);
  --ms-transition:     0.16s var(--ms-ease);
  --ms-nav-h:          64px;
  --ms-max-w:          1280px; /* Gleiche Breite wie Theme-Header */
}

/* ── Reset für meelo-Elemente ────────────────────────────── */
.ms-wrap,
.ms-wrap * { box-sizing: border-box; }
.ms-wrap { font-family: var(--ms-font); color: var(--ms-text); }

/* ── Seitencontainer ─────────────────────────────────────── */
.ms-page    { max-width: var(--ms-max-w); margin: 0 auto; padding: 0 32px 80px; }
.ms-page-sm { max-width: 720px;  margin: 0 auto; padding: 0 24px 80px; }

/* ═══════════════════════════════════════════════════════════
   KARTEN
═══════════════════════════════════════════════════════════ */
.ms-card {
  background: var(--ms-surface);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-lg);
  overflow: hidden;
  transition: transform var(--ms-transition), box-shadow var(--ms-transition), border-color var(--ms-transition);
}
.ms-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ms-shadow-lg);
}
.ms-card-link { text-decoration: none; color: inherit; display: block; }
.ms-card-link:hover .ms-card { border-color: var(--ms-primary); }

/* Karten-Bild */
.ms-card-img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ms-surface-2);
  position: relative;
}
.ms-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ms-ease);
}
.ms-card:hover .ms-card-img img { transform: scale(1.04); }
.ms-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: .35;
}
.ms-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.28) 100%);
}

/* Karten-Body */
.ms-card-body { padding: 16px; }
.ms-card-body-lg { padding: 22px 20px; }

/* Karten-Kicker (Type-Label oben) */
.ms-card-kicker {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ms-primary);
  margin-bottom: 5px; display: block;
}

/* Karten-Titel */
.ms-card-title {
  font-size: 15.5px; font-weight: 700; color: var(--ms-text);
  line-height: 1.3; margin-bottom: 5px;
}
.ms-card-title a { text-decoration: none; color: inherit; transition: color var(--ms-transition); }
.ms-card-title a:hover { color: var(--ms-primary); }
.ms-card-title-lg { font-size: 18px; }

/* Karten-Meta */
.ms-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 12.5px; color: var(--ms-muted); margin-bottom: 8px;
}
.ms-card-meta-sep::before { content: '·'; margin: 0 2px; }

/* Karten-Footer */
.ms-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ms-surface-2);
}

/* ═══════════════════════════════════════════════════════════
   GRID-LAYOUTS
═══════════════════════════════════════════════════════════ */
.ms-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.ms-grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; }
.ms-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px,1fr)); gap: 20px; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.ms-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--ms-radius-sm);
  font-size: 14px; font-weight: 700; font-family: var(--ms-font);
  cursor: pointer; text-decoration: none; border: none;
  transition: all var(--ms-transition); white-space: nowrap;
}
.ms-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Varianten */
.ms-btn-primary { background: var(--ms-primary); color: #fff; }
.ms-btn-primary:hover:not(:disabled) { filter: brightness(.88); transform: translateY(-1px); }

.ms-btn-outline {
  background: var(--ms-surface); color: var(--ms-text-2);
  border: 1.5px solid var(--ms-border);
}
.ms-btn-outline:hover:not(:disabled) {
  border-color: var(--ms-primary); color: var(--ms-primary);
  background: rgba(var(--ms-primary-rgb), .04);
}

.ms-btn-ghost { background: transparent; color: var(--ms-text-2); }
.ms-btn-ghost:hover:not(:disabled) { background: var(--ms-surface-2); color: var(--ms-text); }

.ms-btn-danger { background: #dc2626; color: #fff; }
.ms-btn-danger:hover:not(:disabled) { background: #b91c1c; }

/* Größen */
.ms-btn-sm  { padding: 7px 14px; font-size: 12.5px; }
.ms-btn-lg  { padding: 13px 26px; font-size: 15px; }
.ms-btn-full { width: 100%; }

/* Icon-Button */
.ms-btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--ms-radius-sm);
  background: var(--ms-surface); border: 1.5px solid var(--ms-border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--ms-transition); font-size: 15px;
}
.ms-btn-icon:hover { border-color: var(--ms-primary); background: rgba(var(--ms-primary-rgb),.05); }

/* ═══════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════ */
.ms-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.ms-badge-green  { background: #d1fae5; color: #065f46; }
.ms-badge-blue   { background: #dbeafe; color: #1e40af; }
.ms-badge-amber  { background: #fef3c7; color: #92400e; }
.ms-badge-red    { background: #fee2e2; color: #991b1b; }
.ms-badge-purple { background: #ede9fe; color: #4c1d95; }
.ms-badge-gray   { background: #f3f4f6; color: #6b7280; }
.ms-badge-primary { background: rgba(var(--ms-primary-rgb),.1); color: var(--ms-primary); }

/* Status-Badges */
.ms-badge-open   { background: #d1fae5; color: #065f46; }
.ms-badge-closed { background: #f3f4f6; color: #6b7280; }
.ms-badge-pending { background: #fef3c7; color: #92400e; }

/* ═══════════════════════════════════════════════════════════
   FILTER-BAR
═══════════════════════════════════════════════════════════ */
.ms-filterbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; background: var(--ms-surface);
  border: 1.5px solid var(--ms-border); border-radius: var(--ms-radius-lg);
  margin-bottom: 22px;
}
.ms-filterbar-left  { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.ms-filterbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Pill-Filter (Kategorie-Buttons) */
.ms-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-pill {
  padding: 6px 15px; border-radius: 20px; border: 1.5px solid var(--ms-border);
  background: var(--ms-surface); font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--ms-text-2); font-family: var(--ms-font);
  transition: all var(--ms-transition); white-space: nowrap;
}
.ms-pill:hover  { border-color: var(--ms-primary); color: var(--ms-primary); }
.ms-pill.active { background: var(--ms-primary); border-color: var(--ms-primary); color: #fff; }

/* Such-Feld */
.ms-search-wrap { position: relative; }
.ms-search-input {
  padding: 9px 14px 9px 36px; border: 1.5px solid var(--ms-border);
  border-radius: var(--ms-radius-sm); font-size: 13.5px; font-family: var(--ms-font);
  background: var(--ms-surface); color: var(--ms-text); width: 200px;
  transition: border-color var(--ms-transition);
}
.ms-search-input:focus { outline: none; border-color: var(--ms-primary); box-shadow: 0 0 0 3px rgba(var(--ms-primary-rgb),.07); }
.ms-search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--ms-muted); pointer-events: none;
}
.ms-select {
  padding: 9px 14px; border: 1.5px solid var(--ms-border);
  border-radius: var(--ms-radius-sm); font-size: 13.5px;
  font-family: var(--ms-font); background: var(--ms-surface); color: var(--ms-text);
  cursor: pointer; transition: border-color var(--ms-transition);
}
.ms-select:focus { outline: none; border-color: var(--ms-primary); }

/* ═══════════════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════════════ */
.ms-tabs-nav {
  display: flex; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1.5px solid var(--ms-border);
  gap: 0; background: var(--ms-surface);
}
.ms-tabs-nav::-webkit-scrollbar { display: none; }
.ms-tab-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px; border: none; background: none;
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  font-size: 14px; font-weight: 600; color: var(--ms-muted);
  cursor: pointer; font-family: var(--ms-font); white-space: nowrap;
  transition: color var(--ms-transition);
}
.ms-tab-btn:hover { color: var(--ms-text); }
.ms-tab-btn.active { color: var(--ms-primary); border-bottom-color: var(--ms-primary); }
.ms-tab-count {
  background: var(--ms-surface-2); color: var(--ms-muted);
  font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 10px;
}
.ms-tab-btn.active .ms-tab-count { background: rgba(var(--ms-primary-rgb),.1); color: var(--ms-primary); }

/* Tab-Inhalt */
.ms-tab-pane { display: none; }
.ms-tab-pane.active { display: block; animation: msTabFade .2s var(--ms-ease); }
@keyframes msTabFade { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ═══════════════════════════════════════════════════════════
   FORMULARE
═══════════════════════════════════════════════════════════ */
.ms-form { display: flex; flex-direction: column; gap: 18px; }
.ms-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ms-field { display: flex; flex-direction: column; gap: 6px; }
.ms-label { font-size: 13px; font-weight: 700; color: var(--ms-text); }
.ms-label-hint { font-weight: 400; color: var(--ms-muted); font-size: 12px; }

.ms-input,
.ms-textarea,
.ms-select-full {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--ms-border); border-radius: var(--ms-radius-sm);
  font-size: 14px; font-family: var(--ms-font); color: var(--ms-text);
  background: var(--ms-surface); transition: border-color var(--ms-transition);
}
.ms-input:focus, .ms-textarea:focus, .ms-select-full:focus {
  outline: none; border-color: var(--ms-primary);
  box-shadow: 0 0 0 3px rgba(var(--ms-primary-rgb),.07);
}
.ms-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.ms-field-hint { font-size: 12px; color: var(--ms-muted); }
.ms-form-msg { font-size: 13.5px; font-weight: 700; min-height: 18px; }

/* Foto-Upload */
.ms-upload-zone {
  border: 2px dashed var(--ms-border); border-radius: var(--ms-radius);
  padding: 28px 16px; text-align: center; cursor: pointer;
  transition: all var(--ms-transition); position: relative; overflow: hidden;
}
.ms-upload-zone:hover { border-color: var(--ms-primary); background: rgba(var(--ms-primary-rgb),.03); }
.ms-upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ms-upload-inner { display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--ms-muted); font-size: 14px; }
.ms-upload-icon { font-size: 30px; }
.ms-upload-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 9px; display: none; margin-top: 10px; }

/* Toggle-Switch */
.ms-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ms-surface-2); cursor: pointer; }
.ms-toggle-row:last-child { border-bottom: none; }
.ms-toggle-info strong { display: block; font-size: 14px; font-weight: 700; }
.ms-toggle-info small  { font-size: 12px; color: var(--ms-muted); }
.ms-toggle-switch { position: relative; flex-shrink: 0; }
.ms-toggle-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ms-toggle-slider { display: block; width: 44px; height: 24px; background: var(--ms-border); border-radius: 12px; position: relative; transition: background var(--ms-transition); }
.ms-toggle-slider::after { content:''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform var(--ms-transition); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ms-toggle-switch input:checked + .ms-toggle-slider { background: var(--ms-primary); }
.ms-toggle-switch input:checked + .ms-toggle-slider::after { transform: translateX(20px); }

/* ═══════════════════════════════════════════════════════════
   KARTE (Leaflet-Container)
═══════════════════════════════════════════════════════════ */
.ms-map-container {
  border-radius: var(--ms-radius-lg); overflow: hidden;
  border: 1.5px solid var(--ms-border); background: var(--ms-surface-2);
}
.ms-map-container .leaflet-container { border-radius: var(--ms-radius-lg); }

/* Marker */
.ms-marker {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid #fff; display: flex; align-items: center;
  justify-content: center; font-size: 17px;
  box-shadow: 0 3px 10px rgba(0,0,0,.25); cursor: pointer;
  transition: transform .15s;
}
.ms-marker:hover { transform: scale(1.15); }

/* Map-Hint */
.ms-map-hint { font-size: 12px; color: var(--ms-muted); margin-top: 6px; }
.ms-location-pill {
  display: none; font-size: 13px; color: var(--ms-primary); font-weight: 600;
  padding: 7px 12px; background: rgba(var(--ms-primary-rgb),.08);
  border-radius: var(--ms-radius-sm); margin-top: 7px;
}

/* ═══════════════════════════════════════════════════════════
   LEER-STATES & LOADING
═══════════════════════════════════════════════════════════ */
.ms-empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 56px 24px; gap: 12px;
}
.ms-empty-icon { font-size: 52px; opacity: .35; }
.ms-empty-title { font-size: 18px; font-weight: 700; color: var(--ms-text); }
.ms-empty-text  { font-size: 14px; color: var(--ms-muted); max-width: 300px; line-height: 1.6; }

.ms-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px; color: var(--ms-muted); font-size: 14px; font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   LISTEN-ITEMS (für Sidebar-Listen etc.)
═══════════════════════════════════════════════════════════ */
.ms-list { display: flex; flex-direction: column; }
.ms-list-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--ms-surface-2);
  cursor: pointer; transition: background var(--ms-transition);
  text-decoration: none; color: inherit;
}
.ms-list-item:last-child { border-bottom: none; }
.ms-list-item:hover { background: var(--ms-surface-2); }
.ms-list-item.active { background: rgba(var(--ms-primary-rgb),.06); border-left: 3px solid var(--ms-primary); padding-left: 13px; }

.ms-li-thumb {
  width: 46px; height: 46px; border-radius: var(--ms-radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--ms-surface-2);
}
.ms-li-icon {
  width: 42px; height: 42px; border-radius: var(--ms-radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ms-li-body { flex: 1; min-width: 0; }
.ms-li-title { font-size: 13.5px; font-weight: 700; color: var(--ms-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-li-sub   { font-size: 12px; color: var(--ms-muted); margin-top: 2px; }
.ms-li-meta  { font-size: 11px; color: var(--ms-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* ═══════════════════════════════════════════════════════════
   SEKTION-HEADER (Titel + Aktion)
═══════════════════════════════════════════════════════════ */
.ms-section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.ms-section-title {
  font-family: var(--ms-font-serif); font-size: clamp(20px,3vw,28px);
  font-weight: 700; color: var(--ms-text); margin: 0;
}
.ms-section-kicker {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ms-primary); margin-bottom: 6px; display: block;
}

/* ═══════════════════════════════════════════════════════════
   STATS-REIHE
═══════════════════════════════════════════════════════════ */
.ms-stats {
  display: flex; gap: 0; background: var(--ms-surface);
  border: 1px solid var(--ms-border); border-radius: var(--ms-radius-lg);
  overflow: hidden; margin-bottom: 24px;
}
.ms-stat { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid var(--ms-border); }
.ms-stat:last-child { border-right: none; }
.ms-stat-val   { display: block; font-family: var(--ms-font-serif); font-size: 24px; font-weight: 800; color: var(--ms-primary); line-height: 1; margin-bottom: 4px; }
.ms-stat-label { font-size: 11px; color: var(--ms-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

/* ═══════════════════════════════════════════════════════════
   HERO-KOMPONENTE
═══════════════════════════════════════════════════════════ */
.ms-hero {
  position: relative; overflow: hidden;
  min-height: 380px; display: flex; align-items: flex-end;
  background: var(--ms-text);
}
.ms-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ms-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.65) 100%); }
.ms-hero-content { position: relative; z-index: 1; padding: 32px 28px; width: 100%; }
.ms-hero-title { font-family: var(--ms-font-serif); font-size: clamp(26px,5vw,52px); font-weight: 700; color: #fff; line-height: 1.15; margin-bottom: 10px; }
.ms-hero-sub   { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 20px; line-height: 1.6; }
.ms-hero-meta  { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.ms-hero-pill  { background: rgba(255,255,255,.15); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 13px; border-radius: 20px; }

/* ═══════════════════════════════════════════════════════════
   WIKI-TEXT EXPAND
═══════════════════════════════════════════════════════════ */
.ms-wiki-text { font-size: 15px; line-height: 1.75; color: var(--ms-text-2); max-height: 180px; overflow: hidden; transition: max-height .4s var(--ms-ease); }
.ms-wiki-text.expanded { max-height: 9999px; }
.ms-wiki-more { background: none; border: none; color: var(--ms-primary); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px 0 0; font-family: var(--ms-font); }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */
.ms-pagination { display: flex; gap: 5px; justify-content: center; padding: 28px 0; }
.ms-pagination a, .ms-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--ms-radius-sm);
  font-size: 14px; font-weight: 600; border: 1.5px solid var(--ms-border);
  color: var(--ms-text-2); background: var(--ms-surface); text-decoration: none;
  transition: all var(--ms-transition);
}
.ms-pagination a:hover { border-color: var(--ms-primary); color: var(--ms-primary); }
.ms-pagination .current { background: var(--ms-primary); border-color: var(--ms-primary); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   ÖFFNUNGSZEITEN
═══════════════════════════════════════════════════════════ */
.ms-hours { display: flex; flex-direction: column; gap: 3px; }
.ms-hour-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; }
.ms-hour-row.today { background: rgba(var(--ms-primary-rgb),.07); font-weight: 700; }
.ms-hour-day { color: var(--ms-text-2); }
.ms-hour-time { color: var(--ms-text); }
.ms-hour-closed { color: var(--ms-muted); }

/* ═══════════════════════════════════════════════════════════
   KONTAKT-REIHE
═══════════════════════════════════════════════════════════ */
.ms-contact-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid var(--ms-surface-2); font-size: 14px;
  color: var(--ms-text-2); text-decoration: none; transition: color var(--ms-transition);
}
.ms-contact-row:last-child { border-bottom: none; }
.ms-contact-row:hover { color: var(--ms-primary); }
.ms-contact-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .ms-page, .ms-page-sm { padding: 0 16px 60px; }
  .ms-grid-3, .ms-grid-2 { grid-template-columns: 1fr; }
  .ms-grid-4 { grid-template-columns: 1fr 1fr; }
  .ms-filterbar { flex-direction: column; align-items: stretch; }
  .ms-filterbar-right { justify-content: space-between; }
  .ms-search-input { width: 100%; }
  .ms-form-row { grid-template-columns: 1fr; }
  .ms-hero { min-height: 280px; }
}
@media (max-width: 480px) {
  .ms-grid-4 { grid-template-columns: 1fr; }
  .ms-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .ms-stat { border-right: 1px solid var(--ms-border); border-bottom: 1px solid var(--ms-border); }
}
