/* D2BuildGuide mobil – wird nur bis 760 px Breite angewendet (media-Attribut im <link>)
 * und greift zusätzlich nur unter .m-app, die mobile.js auf schmalen Bildschirmen setzt.
 * Die Desktop-Ansicht bleibt dadurch unberührt. */
.m-app { --m-tabh: 60px; --m-safe-b: env(safe-area-inset-bottom, 0px); --m-safe-t: env(safe-area-inset-top, 0px); }

/* ---------- Kopfzeile: eine Zeile, Seitenname ---------- */
.m-app .topbar { padding-top: var(--m-safe-t); background: rgba(10, 13, 19, .9); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }
.m-app .topbar-art, .m-app .topbar .brand, .m-app .topbar .status { display: none; }
.m-app .topbar-inner { min-height: 48px; padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); gap: 8px; }
.m-hd { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; height: 48px; }
.m-hd .m-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-back { display: none; width: 36px; height: 36px; margin-left: -6px; border: 0; border-radius: 50%; background: none; color: var(--ink); place-items: center; }
.m-back svg { width: 22px; height: 22px; }
.m-hd.has-back .m-back { display: grid; }
.m-back:active { background: rgba(255, 255, 255, .1); }

/* ---------- Leiste unten ---------- */
.m-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--m-tabh) + var(--m-safe-b)); padding: 0 env(safe-area-inset-right, 0px) var(--m-safe-b) env(safe-area-inset-left, 0px);
  background: rgba(10, 13, 19, .94); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border-top: 1px solid var(--line); }
.m-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--muted);
  font-size: 12px; letter-spacing: .02em; -webkit-tap-highlight-color: transparent; transition: color var(--motion-quick); }
.m-tabs button svg { width: 23px; height: 23px; transition: transform var(--motion-quick) var(--motion-soft); }
.m-tabs button.on { color: var(--ink); }
.m-tabs button.on svg { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35)); }
.m-tabs button:active svg { transform: scale(.88); }

/* Platz für die Leiste; Hinweise darüber */
.m-app main { padding: 12px max(12px, env(safe-area-inset-right, 0px)) calc(var(--m-tabh) + var(--m-safe-b) + 20px) max(12px, env(safe-area-inset-left, 0px)); }
.m-app .foot { display: none; }
.m-app .toast { bottom: calc(var(--m-tabh) + var(--m-safe-b) + 12px); max-width: calc(100vw - 24px); }
.m-app .toast:not(.show) { opacity: 0; pointer-events: none; }
.m-app body.menu-open { overflow: auto; }
.m-app #menu, .m-app .sidenav { display: none !important; }

/* Seitenkopf wie auf der Webseite (20261201u, ABGLEICH-WEB-APP.md): Bereichszeile, Titel, ein Satz Beschreibung – kompakt */
.m-app #pageHead { margin: 14px 2px 12px; }
.m-app #pageHead h1 { font-size: 26px; line-height: 1.15; letter-spacing: .01em; margin: 2px 0 6px; }
.m-app #pageHead .eyebrow { font-size: 11px; letter-spacing: .24em; }
.m-app #pageHead p { font-size: 13.5px; line-height: 1.45; margin: 0; }

/* ---------- Seitenwechsel ---------- */
@media (prefers-reduced-motion: no-preference) {
  .m-app .tabpanel.active { animation: m-in .28s var(--motion-soft); }
}
@keyframes m-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- Arsenal-Reiter ---------- */
.m-subtabs { position: sticky; top: calc(48px + var(--m-safe-t)); z-index: 9; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: -12px -12px 12px; padding: 10px 12px; background: rgba(10, 13, 19, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.m-subtabs::-webkit-scrollbar { display: none; }
.m-subtabs.hidden { display: none; }
.m-subtabs .chip { flex: none; white-space: nowrap; min-height: 44px; }

/* ---------- Bereich „Ich“ ---------- */
#tab-ich { max-width: 560px; margin: 0 auto; }
.m-lbl { margin: 20px 4px 8px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.m-list { background: var(--glass-solid); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.m-li { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line-soft);
  background: none; color: var(--ink); text-align: left; text-decoration: none; font-size: 15px; -webkit-tap-highlight-color: transparent; }
.m-li:last-child { border-bottom: 0; }
.m-li span:first-child { flex: 1; min-width: 0; }
.m-li i { font-style: normal; color: var(--muted); font-size: 20px; }
.m-li:not(.static):active { background: rgba(255, 255, 255, .06); }
.m-seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.m-seg button { border: 0; background: none; color: var(--muted); padding: 6px 14px; font-size: 13px; font-weight: 600; }
.m-seg button.on { background: var(--graphite); color: var(--on-accent); }
.m-acct { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--glass-solid); border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.m-acct div { flex: 1; min-width: 0; }
.m-acct b { display: block; font-weight: 600; }
.m-acct small { display: block; color: var(--muted); font-size: 12.5px; }
.m-acct i { font-style: normal; color: var(--muted); font-size: 20px; }
.m-acct-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.m-acct-dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(127, 179, 111, .6); }
.m-foot { text-align: center; margin: 22px 0 0; }
/* „Ich“ mit Bungie-Verbindung: Profilkopf, darunter je Charakter eine Seite und das Menü als letzte – seitlich wischen */
.m-ich-hd { position: sticky; top: calc(48px + env(safe-area-inset-top, 0px)); z-index: 5; margin: 0 -12px 10px; padding: 10px 12px 8px;
  background: var(--glass-solid); border-bottom: 1px solid var(--line-soft); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.m-ich-me { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.m-ich-me div { min-width: 0; }
.m-ich-me b { display: block; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ich-me small { display: block; color: var(--muted); font-size: 12px; }
.m-ich-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.m-ich-tabs button { border: 0; background: none; color: var(--muted); padding: 7px 4px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-tap-highlight-color: transparent; }
.m-ich-tabs button.on { background: var(--graphite); color: var(--on-accent); }
.m-ich-pager { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; align-items: flex-start; }
.m-ich-pager::-webkit-scrollbar { display: none; }
.m-ich-pg { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.m-ich-pg > .char-card { margin: 0; }
.m-ich-menu > .m-lbl:first-child { margin-top: 4px; }

/* ---------- Startseite ---------- */
#mHome { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.m-card { display: block; width: 100%; text-align: left; color: var(--ink); text-decoration: none; border-radius: var(--r); border: 1px solid var(--line-soft);
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); padding: 14px; font: inherit; }
.m-connect { position: relative; padding-right: 36px; }
.m-connect b { display: block; font-weight: 600; }
.m-connect small { color: var(--muted); }
.m-connect i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: 20px; }
.m-char { display: flex; flex-direction: column; gap: 12px; background-size: cover; background-position: center; border-left: 3px solid var(--c); border-radius: 0 var(--r) var(--r) 0; -webkit-tap-highlight-color: transparent; }
.m-char:active { transform: scale(.99); }
.m-char-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.m-char-h b { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.m-pl { margin-left: auto; font-weight: 600; color: var(--exotic); font-variant-numeric: tabular-nums; }
.m-live { font-size: 12px; color: var(--ok); }
.m-last { font-size: 12px; color: var(--muted); }
.m-char-sub { display: flex; align-items: center; gap: 10px; }
.m-subico { width: 40px; height: 40px; flex: none; }
.m-plugs { display: flex; flex-wrap: wrap; gap: 4px; }
.m-plugs img, .m-plugs .m-noimg { width: 28px; height: 28px; border-radius: 4px; background: var(--ico-bg); }
.m-char-gear { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: 12px; }
.m-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.m-row + .m-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m-gear { aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .14); background: var(--ico-bg); display: block; overflow: hidden; }
.m-gear.exo { border-color: var(--exotic); }
.m-gear.empty { opacity: .35; }
.m-gear img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.m-stats span { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 5px 8px; min-width: 0; }
.m-stats small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-stats b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.m-more { align-self: flex-end; font-size: 12.5px; color: var(--ink-soft); }
.m-card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.m-card-h b { flex: 1; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.m-card-h button { border: 0; background: none; color: var(--ink-soft); font-size: 13px; padding: 6px 0 6px 10px; }
.m-meta .urow { padding: 6px 0; }

/* Startseite: Woche und Hinweise kompakter */
.m-app .home-week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-app .home-hl-grid { gap: 8px; }

/* Tap-Flächen mindestens 44 px */
.m-app .chip, .m-app .btn-pill { min-height: 44px; }

/* ---------- Fenster von unten (Installationshinweis; Muster für Etappe 2) ---------- */
.m-sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.m-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .25s; }
.m-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow: auto; display: flex; flex-direction: column; gap: 14px;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--glass-solid); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  transform: translateY(100%); transition: transform .26s var(--motion-soft); }
.m-sheet-wrap.open .m-scrim { opacity: 1; }
.m-sheet-wrap.open .m-sheet { transform: none; }
@media (prefers-reduced-motion: reduce) { .m-scrim, .m-sheet { transition: none; } }
.m-grab { width: 38px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); margin: 0 auto; }
.m-sh-h { display: flex; align-items: center; gap: 12px; }
.m-sh-h img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.m-sh-h b { display: block; font-size: 16px; font-weight: 600; }
.m-sh-h small { color: var(--muted); font-size: 12.5px; }
.m-sh-txt { margin: 0; color: var(--ink-soft); }
.m-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.m-steps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.m-n { width: 22px; height: 22px; border-radius: 50%; background: var(--graphite); color: var(--on-accent); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; margin-top: 1px; }
.m-key { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .06); white-space: nowrap; font-size: 13.5px; }
.m-key svg { width: 15px; height: 15px; }
.m-btns { display: flex; gap: 8px; }
.m-btn { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.m-btn.pri { background: var(--graphite); color: var(--on-accent); border-color: var(--graphite); }
.m-btn:active { transform: scale(.98); }

/* =================== Etappe 2: Fenster von unten, Filter, Hinweise per Tap =================== */

/* Popup (#detail) als Fenster von unten */
.m-app dialog#detail { margin: auto 0 0; width: 100%; max-width: 100% !important; max-height: 92vh; max-height: 92dvh; padding: 0;
  border-radius: 18px 18px 0 0; border-top: 1px solid var(--line); background: var(--glass-solid); transition: transform .22s var(--motion-soft); }
.m-app dialog#detail[open] { animation: m-up .28s var(--motion-soft); }
.m-app dialog#detail::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, .25); z-index: 2; }
.m-app dialog#detail .dlg-scroll { max-height: calc(92vh - 24px); max-height: calc(92dvh - 24px); margin: 22px 0 0; padding: 4px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.m-app dialog#detail .dlg-x { top: 14px; right: 12px; }
.m-app dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: none; }
@keyframes m-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .m-app dialog#detail[open] { animation: none; } }

/* Popup-Inhalt: Symbol oben links, Text darunter über die ganze Breite (statt schmaler Spalte neben dem Symbol) */
.m-app #detail .item.big { display: block; }
.m-app #detail .item.big > img.ico:first-child { float: left; width: 64px; height: 64px; margin: 0 12px 10px 0; }
.m-app #detail .item.big > div > :is(h3, .lg-title, .eyebrow):first-child { min-height: 64px; }

/* Auswahllisten als Fenster von unten */
.m-app .dd-pop { left: 0 !important; right: 0; top: auto !important; bottom: 0; min-width: 0 !important; width: 100%; border-radius: 18px 18px 0 0;
  padding: 18px 10px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--glass-solid); border: 0; border-top: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); animation: m-fade .18s ease-out; }
/* nur einblenden: eine Bewegung würde beim Öffnen scrollen und die Liste (app.js) gleich wieder schließen */
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
.m-app .dd-pop::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.m-app .dd-list { max-height: min(60vh, 460px) !important; }
.m-app .dd-opt { min-height: 46px; font-size: 15px; white-space: normal; }

/* Hinweise per Tap */
.m-app .gh-tip.m-tip { position: fixed !important; max-width: min(320px, calc(100vw - 20px)); z-index: 10000; font-size: 13px; }

/* Aktuelle Meta: Bereiche und Aktivitäten als wischbare Chip-Leisten */
.m-app #metaSeg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 10px; padding: 0 12px; }
.m-app #metaSeg::-webkit-scrollbar { display: none; }
.m-app #metaSeg button { flex: none; padding: 8px 14px; font-size: 13.5px; border-radius: 999px; white-space: nowrap; }
.m-app .meta-filters { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 8px; align-items: center; padding: 10px 0 10px 10px; margin-bottom: 14px; }
.m-app .meta-filters .dd { min-width: 0 !important; }
.m-app .meta-filters .dd-btn { min-height: 44px; border-radius: 999px; padding: 6px 12px; font-weight: 600; }
.m-app #metaModeSel { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 10px; }
.m-app #metaModeSel::-webkit-scrollbar { display: none; }
.m-app #metaModeSel .chip { flex: none; white-space: nowrap; }
.m-app #metaModeSel.hidden + .count { grid-column: 1 / -1; }
.m-app .meta-filters .count { grid-column: 1 / -1; margin: 0; padding-right: 10px; font-size: 12px; }

/* Arsenal-Listen: Suche sichtbar, übrige Filter hinter dem Knopf */
.m-app .filters[data-for] { gap: 8px; padding: 10px; margin-bottom: 14px; }
.m-app .filters[data-for] input[type="search"] { flex: 1 1 calc(100% - 140px); min-width: 0; min-height: 44px; }
.m-app .filters[data-for]:not(.m-open) > :not(input[type="search"]):not(.m-ftog):not(.count) { display: none; }
.m-app .filters[data-for] > .count { flex-basis: 100%; margin: 0; text-align: right; }
.m-app .filters[data-for].m-open > .dd { flex: 1 1 calc(50% - 4px); min-width: 0; }
.m-app .filters[data-for].m-open > .dd .dd-btn { width: 100%; }
.m-ftog { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.m-ftog svg { width: 17px; height: 17px; }
.m-ftog.on, .m-ftog[aria-expanded="true"] { background: var(--graphite); border-color: var(--graphite); color: var(--on-accent); }

/* =================== Etappe 3: Build Generator und Optimierer =================== */
.m-app #builderSeg { gap: 6px; margin-bottom: 8px; }
.m-app #builderSeg button { padding: 9px 8px; font-size: 13.5px; border-radius: 999px; }
.m-bsum { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--ink); text-align: left; font: inherit; -webkit-tap-highlight-color: transparent; }
.m-bsum:active { background: rgba(255, 255, 255, .08); }
.m-bsum-t { flex: 1; min-width: 0; }
.m-bsum-t b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bsum-t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-bsum svg { width: 22px; height: 22px; flex: none; color: var(--ink-soft); }

/* Titelfläche kompakt */
.m-app #tab-builder #summaryTop, .m-app #tab-builder #abHead { margin-bottom: 12px; }
.m-app #tab-builder :is(#summaryTop, #abHead) h1 { font-size: 22px; letter-spacing: .12em; margin: 2px 0 4px; }
.m-app #tab-builder :is(#summaryTop, #abHead) .eyebrow { font-size: 12px; }

/* Einstellungen als Fenster von unten */
.m-bcfg { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.m-bcfg .m-scrim { pointer-events: none; }
.m-bcfg.open { pointer-events: auto; }
.m-bcfg.open .m-scrim { opacity: 1; pointer-events: auto; }
.m-bcfg.open .m-sheet { transform: none; }
.m-bcfg .m-sheet { max-height: 88vh; max-height: 88dvh; gap: 10px; }
.m-bcfg-h { display: flex; align-items: center; gap: 10px; }
.m-bcfg-h b { flex: 1; font-size: 16px; font-weight: 600; }
.m-bcfg-h .m-btn { flex: none; min-height: 44px; padding: 0 18px; }
.m-bcfg-body { display: flex; flex-direction: column; gap: 10px; }
.m-app #tab-builder .m-bcfg .bld-row { display: block; margin: 0; }
.m-app #tab-builder .m-bcfg .bld-top .cfg-bar.bld-fields { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 6px 0; }
.m-app #tab-builder .m-bcfg .configurator { margin: 0; border: 0; background: none; padding: 0; }
.m-app #tab-builder .m-bcfg .dd, .m-app #tab-builder .m-bcfg .dd-btn { width: 100%; }
.m-app #tab-builder .m-bcfg .bld-acts { display: none; }
.m-app #metaCfg.m-hide { display: none !important; }

/* Aktionen fest über der Leiste unten */
.m-app #tab-builder.active { padding-bottom: 64px; }
.m-actbar { position: fixed; left: 0; right: 0; bottom: calc(var(--m-tabh) + var(--m-safe-b)); z-index: 39; padding: 8px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
  background: rgba(10, 13, 19, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line-soft); }
.m-actbar.empty { display: none; }
.m-actbar .bld-acts { display: block; margin: 0; padding: 0; border: 0; background: none; width: 100%; }
.m-actbar .bld-acts-lbl { display: none; }
.m-actbar :is(.bg-actions, .ab-actions) { display: flex; gap: 8px; width: 100%; flex-wrap: nowrap; }
.m-actbar :is(.bg-actions, .ab-actions) > * { flex: 1 1 0; min-width: 0; }
.m-actbar .btn-pill, .m-actbar .bg-share > summary { width: 100%; min-height: 44px; justify-content: center; text-align: center; }
.m-actbar .bg-share { position: relative; }
.m-actbar .bg-share-menu { top: auto !important; bottom: calc(100% + 8px); right: 0; left: auto; }
.m-app .toast { z-index: 70; }

/* Etappe 3 – Feinschliff: Reihenfolge, kompakter Kopf; feste Leisten nicht durch den Seitenübergang verschieben */
.m-app #tab-builder.active { display: flex; flex-direction: column; animation-name: m-fade; }
.m-app #tab-builder > * { order: 4; min-width: 0; }
.m-app #tab-builder > #builderSeg { order: 1; }
.m-app #tab-builder > .m-bsum { order: 2; }
.m-app #tab-builder > #summaryTop, .m-app #tab-builder > #abHead { order: 3; }
.m-app #builderSeg button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; padding: 9px 6px; }
.m-app #tab-builder #summaryTop .bg-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.m-app #tab-builder #summaryTop .bg-head > div:first-child { flex: 1; min-width: 0; }
.m-app #tab-builder #summaryTop .bg-head .eyebrow { display: none; }
.m-app #tab-builder #summaryTop .bg-head h1 { font-size: 20px; margin: 0 0 2px; }
.m-app #tab-builder #summaryTop .bg-head p.muted { font-size: 13px; }
.m-app #tab-builder #summaryTop .bg-side { flex: none; }
.m-app #tab-builder #summaryTop .bg-score { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 10px; }
.m-app #tab-builder #summaryTop .bg-score b { font-size: 17px; }
.m-app #tab-builder #summaryTop .bg-score span { font-size: 12px; text-align: center; max-width: 76px; line-height: 1.2; }
.m-app #tab-builder :is(#summaryTop, #abHead) .bg-head { min-height: 0; }

/* =================== Etappe 4: Arsenal =================== */
/* Werkstatt: Spalten als Reiter */
.m-app #labBody .lab-grid { display: flex; flex-direction: column; gap: 12px; }
.m-coltabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 10px; padding: 0 14px 2px; }
.m-coltabs::-webkit-scrollbar { display: none; }
.m-coltabs button { flex: none; min-width: 92px; max-width: 160px; text-align: left; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font: inherit; }
.m-coltabs button small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-coltabs button b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-coltabs button.on { border-color: var(--ink); background: rgba(255, 255, 255, .08); }
.m-app #labBody .lab-cols { display: block; }
.m-app #labBody .lab-col:not(.m-on) { display: none; }
.m-app #labBody .lab-col .lab-col-h { display: none; }
.m-app #labBody .lab-col .lab-perk { min-height: 46px; padding: 8px 10px; font-size: 14px; margin-bottom: 6px; display: flex; grid-template-columns: none; }
.m-app #labBody .lab-col .lab-perk img, .m-app #labBody .lab-col .lab-perk .lab-noico { width: 30px; height: 30px; flex: none; }
.m-app #labBody .lab-col .lab-perk span { flex: 1; min-width: 0; overflow-wrap: normal; hyphens: none; }
.m-app #labBody .lab-col .lab-perk em { grid-column: auto; margin-left: auto; }
/* Zeit bis zum Kill fest oben */
.m-labsum { position: sticky; top: calc(48px + var(--m-safe-t) + 54px); z-index: 8; margin: 0 0 12px; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(16, 20, 27, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.m-labsum-h { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.m-labsum .lab-dv { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px; }
.m-labsum .lab-dv > div { padding: 6px 8px; font-size: 13px; }
/* Werte und Berechnung aufklappbar */
.m-valtog { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; }
.m-valtog span { flex: 1; min-width: 0; }
.m-valtog b { display: block; font-weight: 600; }
.m-valtog small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-valtog i { font-style: normal; color: var(--ink-soft); }
.m-app #labBody .card.m-fold > h2 { display: none; }
.m-app #labBody .card.m-fold:not(.m-open) > :not(.m-valtog) { display: none; }
.m-app #labBody .card.m-fold.m-open > .m-valtog { margin-bottom: 10px; }
.m-app #labBody .lab-head { padding: 12px 14px; }
.m-app #labBody .lab-head h2 { font-size: 18px; }

/* Listen in Portionen */
.m-app .grid > .m-later { display: none !important; }
.m-sentinel { height: 1px; grid-column: 1 / -1; }

/* Exotics, Legendäre, Sets: kompaktere Karten */
.m-app .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.m-app .grid > .card { padding: 12px 14px; }
.m-app .grid .item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
.m-app .grid .item > img.ico { width: 48px; height: 48px; }
.m-app .grid .item h3 { font-size: 16px; }
.m-app .grid .item p.desc, .m-app .grid .item .desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-app #labBody .lab-grid > * { min-width: 0; max-width: 100%; }
.m-coltabs { max-width: calc(100% + 28px); }

/* =================== Etappe 5: Mein Bereich =================== */
/* Reiter und Modus-Knöpfe als wischbare Chip-Leisten */
.m-app :is(#mineView, #meMode, #mineAcls, #statsRange) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.m-app :is(#mineView, #meMode, #mineAcls, #statsRange)::-webkit-scrollbar { display: none; }
.m-app :is(#mineView, #meMode, #mineAcls, #statsRange) .chip { flex: none; white-space: nowrap; }
.m-app #recSeg { display: flex !important; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 0 12px; }
.m-app #recSeg::-webkit-scrollbar { display: none; }
.m-app #recSeg button { flex: none; padding: 8px 14px; font-size: 13.5px; border-radius: 999px; white-space: nowrap; }
.m-app #mineFilters, .m-app #tab-me > .filters { gap: 8px; padding: 10px; margin-bottom: 12px; }
.m-app #mineFilters input[type="search"] { flex: 1 1 0; min-width: 0; }
.m-app #mineFilters .sq-hint { display: none; }

/* Charaktere: zum Wischen nebeneinander, Ziehen-Hinweis entfällt (Touch) */
.m-app #mineBody .drop-vault { display: none; }
.m-app #mineBody .char-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 6px; align-items: flex-start; }
.m-app #mineBody .char-grid::-webkit-scrollbar { display: none; }
.m-app #mineBody .char-grid > .char-card { flex: 0 0 calc(100% - 22px); scroll-snap-align: center; min-width: 0; }

/* Waffen: Waffentyp als Zwischenüberschrift statt eingerückter Spalte */
.m-app #mineBody .type-row { display: block; margin: 10px 0 14px; }
.m-app #mineBody .type-row > .type-side { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; width: auto; }
.m-app #mineBody .type-row > .type-side .type-ico { width: 28px; height: 28px; }
.m-app #mineBody .type-row > .type-side span:not(.type-ico) { display: inline; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.m-app #mineBody .type-row > .type-side small { color: var(--muted); }
.m-app #mineBody .wpn-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* Rüstung: Tabelle als Karten (Kopfzeile wird zur Sortier-Leiste) */
.m-app .mine-armor { padding: 8px; overflow: visible; }
.m-app .m-cardtbl, .m-app .m-cardtbl tbody { display: block; width: 100%; }
.m-app .m-cardtbl thead { display: block; }
.m-app .m-cardtbl thead tr { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
.m-app .m-cardtbl thead tr::-webkit-scrollbar { display: none; }
.m-app .m-cardtbl thead th { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; background: none; position: static; }
.m-app .m-cardtbl thead th:not(.sortable) { display: none; }
.m-app .m-cardtbl thead th.on { background: var(--graphite); color: var(--on-accent); border-color: var(--graphite); }
.m-app .m-cardtbl tbody tr { display: grid; grid-template-columns: 46px repeat(6, minmax(0, 1fr)) 34px; gap: 4px 6px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line-soft); position: relative; }
.m-app .m-cardtbl tbody tr.slot-first { padding-top: 46px; border-top-color: var(--line); }
.m-app .m-cardtbl td { display: block; padding: 0; border: 0; min-width: 0; text-align: left; }
.m-app .m-cardtbl td.slot-side { position: absolute; top: 8px; left: 4px; right: 4px; width: auto !important; }
.m-app .m-cardtbl td.slot-side .type-side { display: flex; align-items: center; gap: 8px; }
.m-app .m-cardtbl td.slot-side .type-side span:not(.type-ico) { display: inline; font-size: 13px; font-weight: 600; }
.m-app .m-cardtbl td.slot-side .type-ico { width: 26px !important; height: 26px !important; }
.m-app .m-cardtbl td.arm-ico { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
.m-app .m-cardtbl td.arm-ico img, .m-app .m-cardtbl td.arm-ico .char-noimg { width: 44px; height: 44px; }
.m-app .m-cardtbl td.arm-name { grid-column: 2 / 8; grid-row: 1; font-size: 14px; overflow-wrap: anywhere; }
.m-app .m-cardtbl td.m-mv { grid-column: 8; grid-row: 1; justify-self: end; }
.m-app .m-cardtbl td.m-mv .arm-mv { width: 34px; height: 34px; }
.m-app .m-cardtbl td.m-st { grid-row: 2; display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .05); border-radius: 6px; padding: 3px 2px; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.m-app .m-cardtbl td[data-ml]::before { content: attr(data-ml); display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.m-app .m-cardtbl td.m-ver { grid-column: 2 / 4; grid-row: 3; }
.m-app .m-cardtbl td.pl-cell { grid-column: 4; grid-row: 3; font-size: 13px; }
.m-app .m-cardtbl td.m-sum { grid-column: 5; grid-row: 3; font-size: 13px; }
.m-app .m-cardtbl td.m-loc { grid-column: 6 / 9; grid-row: 3; text-align: right; font-size: 12px; }
.m-app .m-cardtbl td:is(.pl-cell, .m-sum)::before { display: inline; margin-right: 4px; }
.m-app .m-cardtbl tr.slot-closed { display: block; padding: 10px 4px; }
.m-app .m-cardtbl tr.slot-closed td.slot-side { position: static; }
.m-app .m-cardtbl tr.slot-closed td.slot-closed-note { display: none; }

/* Statistiken, Raids: kompaktere Kacheln */
.m-app .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.m-app .stat-tile { padding: 10px 12px; }
.m-app .stat-tile b { font-size: 22px; }
.m-app .stat-tile span { font-size: 12.5px; }
.m-app #actsBody .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-app .me-grid { gap: 10px; }

/* Raids und Dungeons: Tabelle wischbar, erste Spalte bleibt stehen */
.m-app .acts-tbl { font-size: 13px; }
.m-app .acts-tbl th { letter-spacing: .04em; font-size: 12px; }
.m-app .acts-tbl :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--glass-solid); min-width: 128px; max-width: 150px; }
.m-app .acts-tbl :is(th, td) { padding-left: 8px; padding-right: 8px; }

/* Meine Builds: Sicherung ans Ende, schmaler */
.m-app #buildsBody { display: flex; flex-direction: column; }
.m-app #buildsBody > * { order: 1; }
.m-app #buildsBody > .lb-backup { order: 9; margin: 18px 0 0; }
.m-app #buildsBody > .lb-backup .btn-pill { min-height: 44px; font-size: 13.5px; }
.m-app main { overflow-x: clip; }   /* Seitenübergang schiebt kurz 14 px ein – kein seitliches Wackeln */
.m-app .m-cardtbl { min-width: 0 !important; width: 100% !important; }
.m-app .m-cardtbl td.slot-side { z-index: 1; height: auto !important; padding: 0 !important; }
.m-app .m-cardtbl td.slot-side .type-side { flex-direction: row !important; width: auto !important; height: auto !important; text-align: left; }
.m-app .m-cardtbl td.slot-side .type-side small { margin-left: 2px; }
.m-app .m-cardtbl td.pl-cell { grid-column: 4 / 6; }
.m-app .m-cardtbl td.m-sum { grid-column: 6 / 8; }
.m-app .m-cardtbl td.m-loc { grid-column: 2 / 9; grid-row: 4; text-align: left; }
.m-app #mineBody .type-row > .type-side { flex-direction: row !important; justify-content: flex-start; text-align: left; height: auto; padding: 0; }
.m-app #mineBody .type-row > .type-side { width: 100% !important; max-width: none !important; }
.m-app #mineBody .type-row > .type-side span:not(.type-ico) { white-space: nowrap; max-width: none; overflow: visible; }

/* =================== Etappe 6: Feinschliff =================== */
/* Startseite: Charakterkarte wie in „Meine Ausrüstung“ */
.m-homechar-wrap { display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-homechar-wrap .char-card { margin: 0; }
.m-homechar-wrap:active .char-card { transform: scale(.995); }
.m-homechar-wrap button, .m-homechar-wrap [role="button"] { pointer-events: none; }

/* Gesten: Zurück vom Rand, Ziehen zum Aktualisieren */
.m-edge { position: fixed; left: 0; top: 50%; z-index: 80; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: var(--on-accent);
  opacity: 0; transform: translate(-40px, -50%); pointer-events: none; transition: opacity .15s; }
.m-edge svg { width: 22px; height: 22px; }
.m-ptr { position: fixed; left: 50%; top: calc(48px + env(safe-area-inset-top, 0px)); z-index: 80; width: 40px; height: 40px; margin-top: -40px; border-radius: 50%; overflow: hidden;
  opacity: 0; transform: translate(-50%, 0); pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.m-ptr img { width: 100%; height: 100%; display: block; }
.m-ptr.ready { box-shadow: 0 0 0 2px var(--graphite), 0 6px 18px rgba(0, 0, 0, .5); }
.m-ptr.spin img { animation: gh-spin 1s linear infinite; }

/* „Ich“ als Kacheln wie im Rest der Seite */
.m-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 108px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line-soft);
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); color: var(--ink); text-align: left; text-decoration: none; font: inherit; min-width: 0;
  -webkit-tap-highlight-color: transparent; }
.m-tile:not(.static):active { transform: scale(.98); background: rgba(255, 255, 255, .08); }
.m-tile svg { width: 24px; height: 24px; color: var(--ink-soft); flex: none; }
.m-tile b { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.m-tile small { color: var(--muted); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-tile .m-seg { margin-top: auto; }
/* ungelesene Admin-Meldungen: derselbe Punkt wie am Reiter „Ich“, auf der Kachel, die sie zeigt */
body.has-feed .m-tile[data-go="feed"] { position: relative; }
body.has-feed .m-tile[data-go="feed"]::after { content: ""; position: absolute; top: 12px; right: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--hot); }
#tab-ich .m-foot a { color: var(--ink-soft); }

/* Nachfrage Benachrichtigungen (Startseite) */
.m-app .m-np { display: flex; flex-direction: column; gap: 6px; border-color: rgba(206, 174, 51, .5); }
.m-app .m-np small { color: var(--muted); }
.m-app .m-np-acts { display: flex; gap: 8px; margin-top: 4px; }
/* 2026-11-28: Paket F – Lupe in der Kopfzeile öffnet die Suche (Befehlspalette) */
.m-app .m-search { display: grid; width: 44px; height: 44px; margin-right: -4px; border: 0; border-radius: 50%; background: none; color: var(--ink); place-items: center; }
.m-app .m-search svg { width: 21px; height: 21px; }
.m-app .m-search:active { background: rgba(255, 255, 255, .1); }
.m-app .pal { align-items: stretch; padding: 0; }
.m-app .pal-box { width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top); }
.m-app .pal-list { max-height: none; flex: 1; }

/* Stufe 1: Sprungziele frei von Kopfzeile und Leiste unten; Tippziele mindestens 44 px (Apple HIG) */
html.m-app { scroll-padding-top: calc(60px + env(safe-area-inset-top)); scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.m-app .chip, .m-app .btn-pill, .m-app .filters select, .m-app .filters input, .m-app .link-btn.wk-more { min-height: 44px; }
.m-app .chip { display: inline-flex; align-items: center; }

/* „Ich“ als Übersicht (Menü-Konzept 29.11.2026) */
.m-ich-set { width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: none; border: 0; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.m-ich-set svg { width: 22px; height: 22px; }
.m-acct .m-ich-set { margin: -8px -6px -8px 0; }
.m-acct div { flex: 1; }
.m-acct-row { display: flex; align-items: center; gap: 8px; }
.m-acct-row .m-acct { flex: 1; min-width: 0; }
.m-gear { font: inherit; color: var(--ink); text-align: left; width: 100%; box-sizing: border-box; background: var(--glass-solid); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; margin: 12px 0 4px; cursor: pointer; }
.m-gear-h { display: flex; justify-content: space-between; align-items: center; }
.m-gear-h small { color: var(--muted); }
.m-gear-c { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.m-gear-c > span { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.m-gear-c small { font-size: 12px; color: var(--muted); }
.m-gear-c b.pl { color: #e6c46a; }
.m-gear { aspect-ratio: auto; min-height: 0; }

/* Lauftext für abgeschnittene Texte (20261130q, siehe mobile.js) */
.m-app .mq-host { text-overflow: clip !important; }
.m-app .mq { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.m-app .mq-in { display: inline-block; white-space: nowrap; animation: mq-run var(--mq-t, 8s) ease-in-out infinite alternate; }
@keyframes mq-run { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--mq-d, 0)); } }
.m-app .mq-wrap { white-space: normal !important; text-overflow: clip !important; overflow: visible !important; overflow-wrap: anywhere; }
.m-app .mq-fit { text-overflow: clip !important; }

/* ---------- 20261201t: WebApp aufgeräumt (docs/KONZEPT-WEBAPP.md) ---------- */
/* Symbol-Zeilen (Tresor, Inventar): Bezeichnung als Zwischenzeile statt Spalte daneben */
.m-app #mineBody .inv-line { display: block; }
.m-app #mineBody .inv-line > .char-slot { display: block; width: auto; margin: 10px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); writing-mode: horizontal-tb; transform: none; }
/* Waffen-Kacheln: breiter (bei ~700 px drei, bei ~390 px zwei Spalten), Abzeichen dürfen umbrechen */
.m-app #mineBody .wpn-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.m-app #mineBody .wpn-meta { flex-wrap: wrap; row-gap: 4px; }
/* Ich: Zeilen mit Zusammenfassung statt großer Kacheln */
.m-rows { display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--glass-solid); overflow: hidden; }
.m-row { font: inherit; color: var(--ink); text-decoration: none; text-align: left; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: none; border: 0;
  border-top: 1px solid var(--line-soft); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-row:first-child { border-top: 0; }
.m-row:active { background: rgba(255, 255, 255, .06); }
.m-row svg { width: 22px; height: 22px; color: var(--ink-soft); flex: none; }
.m-row-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.m-row-t b { font-size: 15px; font-weight: 600; }
.m-row-t small { color: var(--muted); font-size: 12.5px; }
.m-row > i { font-style: normal; color: var(--muted); font-size: 20px; }
body.has-feed .m-row[data-go="feed"] { position: relative; }
body.has-feed .m-row[data-go="feed"]::after { content: ""; position: absolute; top: 50%; right: 34px; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: var(--hot); }
@media (min-width: 600px) { .m-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-row:nth-child(2) { border-top: 0; } .m-row:nth-child(even) { border-left: 1px solid var(--line-soft); } .m-row:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.m-gear-c > span { cursor: pointer; }
.m-gear-c > span small + b + small { margin-top: -2px; }
/* Arsenal-Listen: Beschreibung auf zwei Zeilen (Antippen öffnet alles) */
.m-app .tile > div > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Build Generator: keine abgeschnittenen Namen unter den Symbolen (Antippen zeigt Name und Details) */
.m-app #result .bg-gear .bg-name { display: none; }
/* Meta-Zeilen (Screenshot Tobi 01.12.: „13,65 / %“ umgebrochen, Namen vorne abgeschnitten): Name zweizeilig, Prozent ohne Umbruch */
.m-app .urow { grid-template-columns: 36px minmax(0, 1fr) 56px auto; }
.m-app .urow.plain { grid-template-columns: minmax(0, 1fr) 56px auto; }
.m-app .urow .uname { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.m-app .urow .uname b { display: block; overflow-wrap: anywhere; }
.m-app .urow .uname .small { display: block; }
.m-app .urow .upct { white-space: nowrap; min-width: 52px; }
/* Kopfzeile mit Logo (Variante A, 20261201u): Wiedererkennung wie auf der Webseite; Seitenname nur für Screenreader */
.m-app .topbar { border-bottom: 1px solid rgba(201, 162, 39, .4); }
.m-app .m-hd { height: 56px; }
.m-logo { border: 0; background: none; padding: 0; margin: 0 auto 0 2px; display: flex; align-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-logo img { height: 30px; width: auto; display: block; }
.m-hd .m-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Menü (Seitenleiste der Webseite): Beschreibungen zweizeilig */
.m-row-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Menü-Knopf in der Kopfzeile wie „Menü“ auf der Webseite (20261201u) */
.m-app .m-menu { display: grid; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%; background: none; color: var(--ink); place-items: center; }
.m-app .m-menu svg { width: 22px; height: 22px; }
.m-app .m-menu.on, .m-app .m-menu:active { background: rgba(255, 255, 255, .1); }
.m-app #tab-ich > .m-acct, .m-app #tab-ich > .m-acct-row { margin-bottom: 12px; }
.m-app .m-tabs button span { white-space: nowrap; font-size: 11px; letter-spacing: 0; }
.m-app #mineFilters > .count { flex: 1 1 100%; text-align: right; margin-top: -2px; }
/* Meine Ausrüstung (Vorgabe Tobi 01.12.): Zeile 1 Ansicht + Ort als Auswahlfelder, Zeile 2 Suche + Filter; Rest hinter „Filter“ */
.m-app #mineFilters > :is(.mine-top, .dd:has(.mine-top)) { flex: 1 1 calc(50% - 4px); min-width: 0; }
.m-app #mineFilters > :is(.mine-top, .dd:has(.mine-top)) .dd-btn { width: 100%; }
.m-app #mineFilters:not(.m-open) > :is(select:not(.mine-top), .dd:not(:has(.mine-top)), .mine-saved) { display: none; }
.m-app #mineFilters.m-open > :is(select:not(.mine-top), .dd:not(:has(.mine-top))) { flex: 1 1 calc(50% - 4px); min-width: 0; }
.m-app #mineFilters > .m-ftog { flex: none; }
.m-app #mineFilters > .mine-br { display: block; flex-basis: 100%; height: 0; }
/* Mein Bereich als Inhaltsseite (20261201v, Hinweis Tobi 01.12.) */
.m-sec { margin: 16px 0 0; }
.m-sec-h { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.m-sec-h b { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.m-sec-h button { border: 0; background: none; color: var(--ink-soft); font-size: 13px; padding: 6px 0 6px 10px; cursor: pointer; }
.m-ccs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-cc { position: relative; font: inherit; color: var(--ink); text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 108px; padding: 10px;
  border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--glass-solid) center / cover no-repeat; cursor: pointer; overflow: hidden; }
.m-cc:active { transform: scale(.98); }
.m-cc-sub { width: 28px; height: 28px; margin: -2px 0 auto -2px; flex: none; }
.m-cc b { font-size: 14px; font-weight: 700; }
.m-cc-pl { color: #e6c46a; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.m-cc small { color: var(--ink-soft); font-size: 11.5px; }
.m-bsts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.m-bst { font: inherit; color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--glass-solid); cursor: pointer; }
.m-bst b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-bst small { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.m-bls { display: flex; flex-direction: column; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--glass-solid); overflow: hidden; }
.m-bl { font: inherit; color: var(--ink); text-align: left; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "b i" "s i"; gap: 0 10px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line-soft); background: none; cursor: pointer; }
.m-bl:first-child { border-top: 0; }
.m-bl b { grid-area: b; font-size: 14.5px; } .m-bl small { grid-area: s; color: var(--muted); font-size: 12px; } .m-bl i { grid-area: i; align-self: center; font-style: normal; color: var(--muted); }
.m-mts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
@media (min-width: 600px) { .m-mts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-mt { font: inherit; color: var(--ink); text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--glass-solid); cursor: pointer; }
.m-mt svg { width: 22px; height: 22px; color: #e3c766; }
.m-mt b { font-size: 14px; } .m-mt small { color: var(--muted); font-size: 12px; line-height: 1.35; }
/* Suche + Filter wirklich in einer Zeile (die Desktop-Regel #mineFilters > #mineQ schob den Knopf in eine 3. Zeile) */
.m-app #mineFilters > #mineQ { flex: 1 1 0; min-width: 0; }
/* Meine Ausrüstung: Zusammenfassung oben kompakt in einer Zeile (Hinweis Tobi: kostete die erste Waffenreihe) */
.m-app #pageHead .mine-sumtile { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 8px 10px; margin-top: 8px; }
.m-app #pageHead .mine-sumtile span { display: flex; flex-direction: column; min-width: 0; }
.m-app #pageHead .mine-sumtile b { font-size: 16px; line-height: 1.1; }
.m-app #pageHead .mine-sumtile small { font-size: 10.5px; line-height: 1.2; color: var(--muted); overflow-wrap: anywhere; }
.m-app #pageHead .ph-row { display: block; }
/* Übersicht wie die Webseite: keine großen Bildkacheln am Anfang */
.m-app #homeCards { display: none !important; }
/* Leiste unten: aktiver Bereich in Gold (Hinweis Tobi: schwer erkennbar, wo man ist) */
.m-app .m-tabs button.on { color: #e3c766; }
.m-app .m-tabs button.on svg { color: #e3c766; stroke: #e3c766; }
.m-app .m-tabs button.on span { font-weight: 700; }
.m-app #mineFilters .mine-fpanel { left: 12px; right: 12px; width: auto; }
/* Arsenal-Auswahlfeld (20261201w) */
.m-app .m-subtabs .m-ars-sel { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass-solid, #151822); color: var(--ink); font: inherit; font-weight: 600; }
/* Meta: drei Auswahlfelder in einer Zeile */
.m-app .meta-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; }
.m-app .meta-filters > .dd .dd-btn { width: 100%; gap: 4px; padding: 0 8px 0 12px; font-size: 13.5px; }
.m-app .meta-filters > .count { grid-column: 1 / -1; }
/* ---------- 20261201x: Rückmeldungen Tobi (Handy) – alles im sichtbaren Bereich ---------- */
/* Seitenkopf ohne eigenen Glas-Kasten (wirkte wie ein zweiter Hintergrund, beim Menü-Wechsel sichtbar) */
.m-app #pageHead { background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: 0 2px !important; overflow: visible; }
.m-app #pageHead::before, .m-app #pageHead::after { content: none !important; display: none !important; }
/* Zusammenfassung Meine Ausrüstung: Beschriftung darf umbrechen statt überlappen */
.m-app #pageHead .mine-sumtile small { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: auto; }
.m-app #pageHead .mine-sumtile { gap: 6px; }
/* Einstellungen: keine Sprungliste, Auswahlfelder unter der Beschriftung in voller Breite */
.m-app .set-nav { display: none !important; }
.m-app .set-row:has(select, .dd) { flex-direction: column; align-items: stretch; gap: 8px; }
.m-app .set-row :is(select, .dd, .dd-btn) { max-width: none !important; min-width: 0 !important; width: 100%; }
/* Statistik: Modus-Auswahlfeld volle Breite, Waffentyp-Namen umbrechen statt abschneiden */
.m-app #meMode { display: block; flex: 1 1 0; min-width: 0; }
.m-app #meMode ~ .dd { flex: 1 1 0; min-width: 0; }
.m-app #meMode ~ .dd .dd-btn { width: 100%; }
.m-app #meModeSel, .m-app #meMode .dd, .m-app #meMode .dd-btn { width: 100%; }
.m-app .stat-top .lbl { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
/* Raids und Dungeons: Zeilen als Karten – Name oben, darunter Gesamt, Klassen, Bestzeit */
.m-app .acts-tbl, .m-app .acts-tbl tbody { display: block; width: 100%; }
.m-app .acts-tbl thead { display: none; }
.m-app .acts-tbl tr { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 2px; border-bottom: 1px solid var(--line-soft); }
.m-app .acts-tbl td { display: block; flex: 1 1 0; min-width: 0; padding: 0 !important; border: 0; text-align: left !important; }
.m-app .acts-tbl td:first-child { flex: 0 0 100%; width: 100% !important; max-width: none !important; }
.m-app .acts-tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
.m-app #tab-acts .table-wrap { overflow: visible; }
.m-bst.warn { border-color: rgba(232, 180, 80, .7); }
.m-bst.warn b, .m-bst.warn small { color: #e8b450; }
.m-bst-cap { font-size: .7em; font-weight: 600; opacity: .75; }
