/* Nur Portal-Eigenes; Grundlagen (Farben, Knöpfe, Kopfleiste, Raster) kommen aus /shared/base.css. */

/* ---------- Anmeldung ---------- */
.login-wrap {
  margin: auto;
  width: min(560px, 100% - 32px);
  max-height: 100%;
  overflow-y: auto;
  padding: 24px 0;
  text-align: center;
}
.logo { font-size: clamp(48px, 12vw, 84px); margin: 0; letter-spacing: -1px; }
.logo-dot { color: var(--accent); }
.label { color: var(--ink-soft); margin: 20px 0 10px; }

.player-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.player-tile {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 8px 12px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform .1s;
}
.player-tile:active { transform: scale(.95); }
.player-tile.add { border-style: dashed; color: var(--ink-soft); }
.player-tile .name { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #f3e3cf;
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  font-size: 36px;
  line-height: 1;
}
.avatar.big { width: 96px; height: 96px; font-size: 56px; }
.avatar.small { width: 40px; height: 40px; font-size: 22px; }
.avatar .avatar-svg { display: block; width: 100%; height: 100%; border-radius: 50%; }

.text-input {
  width: 100%;
  font: inherit;
  font-size: 22px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 3px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-align: center;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
.text-input:focus { border-color: var(--accent); }

.avatar-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.avatar-list .avatar { border: 3px solid transparent; }
.avatar-list .avatar.selected { border-color: var(--accent); background: #fde4d8; background: color-mix(in srgb, var(--accent) 16%, var(--card)); }

.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 8px 0; }
.pin-dots i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--ink-soft); }
.pin-dots i.on { background: var(--ink); border-color: var(--ink); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 14px;
  justify-content: center;
  margin: 12px 0 20px;
}
.pin-pad button {
  height: 76px;
  border-radius: 50%;
  border: none;
  background: var(--card);
  box-shadow: 0 3px 0 var(--line);
  font-size: 30px;
  font-weight: 600;
}
.pin-pad button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.pin-pad button.blank { visibility: hidden; }

.error { color: var(--accent-dark); min-height: 1.4em; margin: 4px 0; font-weight: 600; }

.hint-small { color: var(--ink-soft); font-size: 14px; margin: 6px 0 0; }
.text-input.small { font-size: 15px; padding: 10px 12px; }
.login-wrap.wide { width: min(720px, 100% - 32px); }
.invite-new { background: var(--card); border: 3px dashed var(--accent); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.admin-list { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.admin-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px;
}
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row .meta { color: var(--ink-soft); font-size: 14px; }
.admin-row .avatar { width: 40px; height: 40px; font-size: 22px; flex: none; }
.admin-empty { color: var(--ink-soft); font-size: 15px; text-align: center; }

/* ---------- Kopfleiste ---------- */
.who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; background: none; border: 0; padding: 0; color: inherit; font-family: inherit; }
.fs-float {
  position: fixed;
  top: calc(12px + var(--safe-top));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 5;
}
body:not([data-screen="login"]):not([data-screen="register"]):not([data-screen="pin"]) .fs-float { display: none; }

@media (max-width: 360px) {
  .who .me-name { display: none; }
}

/* ---------- Untere Leiste (Spiele, Rangliste, Shop, Profil) ----------
   Am Handy über die ganze Breite am unteren Rand (Daumen), am iPad als schwebende Leiste in der Mitte.
   Die vier Seiten lassen unten Platz dafür. */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: none; grid-template-columns: repeat(4, 1fr);
  padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 2px solid var(--line);
}
body:is([data-screen="home"], [data-screen="shop"], [data-screen="leaderboard"], [data-screen="profile"]) .tabbar { display: grid; }
body:is([data-screen="shop"], [data-screen="leaderboard"], [data-screen="profile"]) .screen.active {
  padding-bottom: calc(env(safe-area-inset-bottom) + 72px);
}
/* Spielauswahl: die Karten scrollen hinter der (durchscheinenden) Leiste durch, unten bleibt Platz für die letzte Reihe */
body[data-screen="home"] #screen-home { padding-bottom: 0; }
#screen-home .levels-wrap { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
/* Profil steht oben wie eine App-Seite (nicht mittig mit Leerraum darüber) */
#screen-profile .login-wrap { margin-top: 0; padding-top: 16px; }
.tabbar-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border: 0; background: none; border-radius: 14px; padding: 4px 0;
  color: var(--ink-soft); font-size: 12px; font-weight: 800;
}
.tabbar-item svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tabbar-item:active { transform: scale(.94); }
.tabbar-avatar { width: 27px; height: 27px; font-size: 15px; border: 2px solid transparent; }
body[data-screen="home"] .tabbar-item[data-tab="home"],
body[data-screen="shop"] .tabbar-item[data-tab="shop"],
body[data-screen="leaderboard"] .tabbar-item[data-tab="leaderboard"],
body[data-screen="profile"] .tabbar-item[data-tab="profile"] { color: var(--accent); }
body[data-screen="home"] .tabbar-item[data-tab="home"] svg,
body[data-screen="shop"] .tabbar-item[data-tab="shop"] svg,
body[data-screen="leaderboard"] .tabbar-item[data-tab="leaderboard"] svg { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
body[data-screen="profile"] .tabbar-item[data-tab="profile"] .tabbar-avatar { border-color: var(--accent); }
@media (min-width: 700px) {
  .tabbar {
    left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: 460px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 999px;
    box-shadow: 0 6px 20px rgb(0 0 0 / .12);
  }
  .tabbar-item { flex-direction: row; gap: 8px; font-size: 14px; border-radius: 999px; }
  .tabbar-item svg { width: 24px; height: 24px; }
  .tabbar-avatar { width: 26px; height: 26px; }
  body:is([data-screen="shop"], [data-screen="leaderboard"], [data-screen="profile"]) .screen.active {
    padding-bottom: calc(env(safe-area-inset-bottom) + 86px);
  }
  #screen-home .levels-wrap { padding-bottom: calc(env(safe-area-inset-bottom) + 110px); }
}

/* ---------- Spielauswahl ---------- */
.shop-btn { font: inherit; font-size: 22px; font-weight: 800; color: inherit; background: var(--card); border: 3px solid var(--line); border-radius: 999px; padding: 6px 18px; box-shadow: 0 3px 0 var(--line); white-space: nowrap; }
.shop-btn:active { transform: translateY(2px); box-shadow: none; }
/* Shop: Kacheln in gleichmäßigem Raster; Kopf und Reiter bleiben stehen, nur die Kacheln scrollen */
.shop-head { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.shop-head h2 { margin: 4px 0; }
.shop-info { margin: 0 0 12px; }
.shop-kind-title { margin: 14px 0 10px; font-weight: 800; color: var(--ink-soft); }
.shop-grid {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start;
  padding: 2px 4px 10px;
}
@media (min-width: 560px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 840px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-row {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  background: var(--card); border: 3px solid var(--line); border-radius: 18px; padding: 12px 8px 10px;
}
.shop-row.on { border-color: var(--accent); }
.shop-emoji { font-size: 44px; line-height: 1.1; }
.shop-emoji .avatar-svg { display: block; width: 48px; height: 48px; margin: 0 auto; }
.shop-emoji .item-icon { display: block; width: 52px; height: 52px; margin: 0 auto; }
/* Hintergrund-Vorschau: eine kleine Seite im Hochformat mit der Zeichnung (Farben folgen der Seite wie beim echten Hintergrund) */
.bg-mini { position: relative; display: block; width: 56px; height: 76px; margin: 0 auto; border-radius: 10px; overflow: hidden;
  background: var(--page-bg, var(--bg)); box-shadow: inset 0 0 0 2px var(--line); }
.bg-mini .bg-scene { position: absolute; z-index: auto; }
.bg-mini.plain { background-color: var(--bg); background-image: linear-gradient(var(--tile) 2px, transparent 2px), linear-gradient(90deg, var(--tile) 2px, transparent 2px); background-size: 14px 14px; }
.tab-grid .tab-icon svg { display: block; width: 28px; height: 28px; margin: 0 auto; }
.kind-icon svg { display: inline-block; width: 22px; height: 22px; vertical-align: -4px; }
.shop-name { font-weight: 800; font-size: 17px; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; justify-content: center; overflow-wrap: anywhere; }
.shop-price { color: var(--ink-soft); font-size: 14px; font-weight: 700; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.shop-price.own { color: var(--green); }
.shop-actions { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; width: 100%; min-height: 48px; }
.shop-actions .btn.small { flex: 1; min-width: 0; padding: 10px 6px; white-space: nowrap; }
.shop-actions .badge.ok { flex: 1; text-align: center; padding: 10px 6px; }
.shop-actions .icon-btn { flex: none; width: 44px; height: 44px; font-size: 18px; margin-bottom: 3px; }
.badge.ok { padding: 4px 12px; border-radius: 12px; background: var(--green); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
/* Startseite: Weiterspielen (zuletzt angefangenes Level) und Tagesaufgaben */
.home-label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; font-size: 18px; font-weight: 800; }
.daily-count { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.daily-streak { margin-left: auto; padding: 2px 10px; border-radius: 12px; background: #fde4d0; color: #9a4a1c; font-size: 14px; font-weight: 800; }
.resume-card {
  display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; padding: 12px 14px;
  border-radius: var(--radius); color: inherit; text-decoration: none;
  background: linear-gradient(110deg, color-mix(in srgb, var(--game) 30%, var(--card)), var(--card) 75%);
  border: 3px solid color-mix(in srgb, var(--game) 45%, var(--line)); box-shadow: 0 4px 0 color-mix(in srgb, var(--game) 35%, var(--line));
}
.resume-card:active { transform: scale(.98); }
.resume-card img { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 2px 6px rgb(0 0 0 / .12); }
.resume-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.resume-text b { font-size: 19px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-text small { color: var(--ink-soft); font-size: 13.5px; font-weight: 700; }
.resume-text small:first-child { color: color-mix(in srgb, var(--game) 70%, var(--ink)); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 800; }
.resume-play { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--game); box-shadow: 0 3px 0 color-mix(in srgb, var(--game) 60%, #000); }
.resume-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.daily-row {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none;
}
.daily-row::-webkit-scrollbar { display: none; }
.daily-item {
  flex: none; scroll-snap-align: start; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 8px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); color: inherit; text-decoration: none;
}
.daily-item:active { transform: scale(.95); }
.daily-icon { position: relative; }
.daily-icon img { width: 46px; height: 46px; border-radius: 12px; display: block; }
.daily-check { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-style: normal; font-size: 13px; font-weight: 900; border: 2px solid var(--card); }
.daily-name { font-size: 13px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-bonus { font-size: 12px; font-weight: 800; color: #9a6b00; }
.daily-item.done { background: transparent; border-style: dashed; }
.daily-item.done img { opacity: .55; }
.daily-item.done .daily-bonus { color: var(--green); }
/* iPad: alle Tagesaufgaben in einer Reihe, gleich breit */
@media (min-width: 700px) { .daily-row { overflow: visible; margin: 0; padding: 2px 0 8px; } .daily-item { flex: 1 1 0; width: auto; min-width: 0; } }

/* Spielkarten: Symbol des Spiels im Fortschrittsring, Farbe je Spiel (--game); zwei Spalten am Handy, mehr am iPad */
.home-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 2px; font-weight: 700; }
.home-level-bar { flex: 1; min-width: 120px; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.home-level-bar i { display: block; height: 100%; background: var(--green); border-radius: 5px; }
.home-level-text { color: var(--ink-soft); font-size: 14px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* iPad quer: fünf Spalten, so stehen zehn Spiele in zwei vollen Reihen */
@media (min-width: 1000px) and (orientation: landscape) { .levels-wrap:has(.game-grid) { width: min(1180px, 100%); } .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.game-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--game, var(--accent)) 16%, var(--card)), var(--card) 62%);
  border: 3px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px 14px; text-align: center; color: inherit; text-decoration: none;
  box-shadow: 0 4px 0 var(--line); transition: transform .1s;
}
a.game-card:active { transform: scale(.97); }
.game-art { position: relative; width: 108px; height: 108px; display: grid; place-items: center; margin-bottom: 4px; }
.game-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.game-ring circle { fill: none; stroke: var(--line); stroke-width: 6; }
.game-ring circle.on { stroke: var(--game, var(--green)); stroke-linecap: round; }
.game-ring circle.on[stroke-dasharray^="0.0 "] { display: none; }
.game-img { width: 78px; height: 78px; border-radius: 18px; box-shadow: 0 2px 6px rgb(0 0 0 / .12); }
.game-card .game-icon { font-size: 60px; line-height: 1.1; }
.game-card .game-name { font-size: 21px; font-weight: 800; }
.game-card .game-desc { color: var(--ink-soft); font-size: 14px; font-weight: 600; line-height: 1.25; }
.game-progress { margin-top: auto; padding-top: 8px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 13.5px; font-weight: 800; }
.game-bar { width: 100%; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.game-bar i { display: block; height: 100%; background: var(--game, var(--accent)); border-radius: 4px; }
.game-card.locked { background: var(--card); box-shadow: none; border-style: dashed; }
.game-card.locked .game-img { filter: grayscale(1); opacity: .5; }
.game-card.locked .game-name, .game-card.locked .game-desc { opacity: .6; }
.game-lock { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); font-size: 30px; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .2)); }
.game-card.soon { opacity: .55; box-shadow: none; border-style: dashed; }
.game-card.soon .game-icon { filter: grayscale(1); }
.game-card .badge { margin-top: 6px; padding: 4px 12px; border-radius: 12px; background: var(--line); color: var(--ink-soft); font-size: 14px; font-weight: 700; }
@media (max-width: 480px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .game-card { padding: 12px 8px 10px; border-radius: 20px; gap: 2px; }
  .game-art { width: 76px; height: 76px; margin-bottom: 2px; }
  .game-img { width: 54px; height: 54px; border-radius: 13px; }
  .game-lock { top: 50px; font-size: 22px; }
  .game-card .game-name { font-size: 17px; }
  .game-progress { padding-top: 4px; gap: 4px; }
  .levels-wrap h2 { font-size: 23px; margin: 10px 0 12px; }
  .game-card .game-desc { display: none; } /* am Handy reicht der Name: so passen fast alle Spiele auf einen Bildschirm */
  .game-progress { font-size: 12px; }
  .home-level-text { flex-basis: 100%; }
}

/* ---------- Level, XP, Rangliste ---------- */
.lvl-badge { padding: 3px 10px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.who .lvl-badge { margin-left: 2px; }
.stars-badge { padding: 3px 10px; border-radius: 12px; background: #f6e3a6; color: #6b4e00; font-size: 14px; font-weight: 800; white-space: nowrap; }
.xp-title .stars-badge { margin-left: 8px; vertical-align: middle; }
.xp-box { width: min(360px, 100%); margin: 4px auto 0; }
.xp-title { font-weight: 800; font-size: 20px; }
.xp-bar { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.xp-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 6px; transition: width .4s; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.tab { border: 3px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 17px; font-weight: 700; }
.tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* Reiter als gleichmäßiges Raster: gleich breit, Symbol über der Beschriftung (Shop und Profil) */
.tab-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 6px; }
.tab-grid .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; border-width: 2px; border-radius: 16px; padding: 8px 2px 7px; min-width: 0; }
.tab-grid .tab-icon { font-size: 24px; line-height: 1.1; }
.tab-grid .tab-label { font-size: 12.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; }
@media (min-width: 560px) { .tab-grid .tab-label { font-size: 15px; } .tab-grid .tab-icon { font-size: 28px; } }

/* Rangliste: Kopf bleibt stehen, nur die Liste scrollt */
.lb-wrap { height: 100%; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden; }
.lb-wrap .subtitle { margin: 0 0 12px; }
.lb-search { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.lb-search .text-input { flex: 1; min-width: 0; font-size: 16px; } /* ab 16 px zoomt Safari beim Antippen nicht ins Feld */
.lb-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 2px 4px 8px; }
.lb-wrap .col { margin-top: 12px; }
.lb-row .lb-rank { width: 28px; text-align: center; font-weight: 800; font-size: 20px; color: var(--ink-soft); flex: none; }
.lb-row.me { border-color: var(--accent); background: #fde4d8; background: color-mix(in srgb, var(--accent) 16%, var(--card)); }

/* ---------- Profil mit Reitern ---------- */
.profile-panel { margin-top: 6px; }
.profile-panel[hidden] { display: none; }

/* Quiz-Duell: Zahl „du bist dran“ auf der Spielkarte */
.game-badge { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: #e0453a; color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 #a8322a; }
/* Rangliste: Umschalter XP / Quiz-Duell */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--line); border-radius: 14px; padding: 4px; margin: 0 0 12px; }
.seg-btn { border: 0; border-radius: 10px; padding: 9px 6px; font: inherit; font-weight: 800; font-size: 16px; background: transparent; color: var(--ink-soft); }
.seg-btn.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
/* Verwaltung: gemeldete Quizfragen */
.report-row { align-items: flex-start; flex-wrap: wrap; }
.report-q { font-weight: 800; margin: 4px 0; }
.report-actions { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 520px) { .report-actions { flex-direction: row; width: 100%; } .report-actions .btn { flex: 1; } }
