/* BRAIN – App-Styles auf Basis des Design-Systems (bundle.css + tokens.css) */
html, body, #root { height: 100%; }
body { overflow: hidden; min-width: 1100px; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--surface-raised); border: 1px solid var(--line); color: var(--ink); }
.small { font-size: 13px; line-height: 19px; }
.hide { display: none !important; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk { color: var(--ink); border-bottom: 1px dashed var(--line-strong); }
.lnk:hover { color: var(--cyan); border-color: var(--cyan); }
.wide { width: 100%; justify-content: center; margin-top: 10px; }
.inp { width: 100%; height: 40px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface-raised); border: 1px solid var(--line-strong); color: var(--ink); outline: 0; font-size: 14px; }
textarea.inp { height: auto; padding: 10px 14px; line-height: 22px; resize: vertical; font-family: var(--font-sans); }
select.inp { appearance: none; }
.inp:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.inp.big { height: 48px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.br-chip.sm { height: 26px; padding: 0 10px; font-size: 12px; }
.br-chip.sm button { border: 0; background: none; padding: 0; display: grid; place-items: center; color: var(--ink-faint); }
.br-chip.sm button svg { width: 12px; height: 12px; }
.br-chip .br-av.sm { width: 18px; height: 18px; } .br-chip .br-av.sm::after { inset: -2px; border-width: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.br-chip svg { width: 14px; height: 14px; }
a.br-tag:hover { filter: brightness(1.2); }
.boot { height: 100%; display: grid; place-items: center; }
.boot-orb { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #bff8ff, var(--cyan) 40%, rgba(167,123,255,0.8) 75%, transparent 76%); box-shadow: 0 0 30px rgba(46,230,255,0.6); animation: br-breathe 1.2s ease-in-out infinite; }

/* ---------- Shell */
.br-app { height: 100vh; }
.br-logo { display: grid; place-items: center; }
a.br-nav { display: grid; place-items: center; }
.br-search { cursor: pointer; }
.br-search:hover { border-color: var(--line-strong); color: var(--ink-muted); }
.br-me { cursor: pointer; color: inherit; }
.br-me:hover { border-color: var(--line-strong); }
.br-content { overflow: hidden; }
.screen-pad { position: absolute; inset: 0 32px 0; overflow: auto; padding-bottom: 32px; }
.menu { display: flex; flex-direction: column; min-width: 200px; }
.mi { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 0; background: none; font-size: 14px; font-weight: 600; text-align: left; }
.mi:hover { background: var(--surface-raised); }
.mi svg { width: 18px; height: 18px; color: var(--ink-muted); }
body.dragging-files .br-app::after { content: "Loslassen zum Hochladen"; position: absolute; inset: 12px; z-index: 50; display: grid; place-items: center; border: 2px dashed var(--cyan); border-radius: var(--radius-lg); background: rgba(4,5,10,0.6); font-family: var(--font-display); font-size: 28px; color: var(--cyan); pointer-events: none; }

/* ---------- Login */
.login { height: 100%; display: grid; place-items: center; }
.login-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 44px; letter-spacing: .12em; margin: 4px 0 0; }
.who { display: flex; gap: 22px; margin: 26px 0 14px; flex-wrap: wrap; justify-content: center; }
.who-p { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 170px; padding: 26px 10px 16px; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(var(--blur-glass)); transition: all .25s; }
.who-p:hover, .who-p.on { border-color: var(--ring); box-shadow: 0 0 30px color-mix(in srgb, var(--ring) 35%, transparent); transform: translateY(-2px); }
.who-p b { font-family: var(--font-display); font-size: 20px; }
.who-p .br-hud svg { width: 11px; height: 11px; vertical-align: -1px; }
.pin { display: flex; gap: 10px; width: 340px; }
.pin .inp { text-align: center; letter-spacing: .3em; }

/* ---------- Avatare */
.br-av.lg { width: 92px; height: 92px; }
.br-av.lg::after { inset: -5px; }

/* ---------- Medienkarten */
.br-media { cursor: pointer; }
.br-media:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.br-media .noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-faint); background: var(--surface-raised); }
.br-media .noimg svg { width: 28px; height: 28px; }
.br-media .lockb { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(4,5,10,0.7); color: var(--amber); }
.br-media .lockb svg { width: 13px; height: 13px; }
.br-media .face { border-color: var(--fc, var(--cyan)); box-shadow: 0 0 10px color-mix(in srgb, var(--fc, var(--cyan)) 50%, transparent); pointer-events: none; }
.br-media .face span { background: var(--fc, var(--cyan)); }

/* ---------- Brain-Ansicht */
.screen-brain .stage, .screen-chat .bg { position: absolute; inset: 0; }
.screen-chat .bg { opacity: .9; }
.screen-brain .filters { position: absolute; top: 4px; left: 32px; right: 32px; display: flex; align-items: center; gap: 8px; z-index: 3; pointer-events: none; }
.screen-brain .filters > * { pointer-events: auto; }
.filters .sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 6px; }
.filters .legend { margin-left: auto; display: flex; gap: 14px; }
.filters .legend span { display: inline-flex; align-items: center; gap: 6px; }
.filters .legend i { width: 8px; height: 8px; border-radius: 50%; }
.screen-brain .hud { position: absolute; top: 52px; left: 32px; z-index: 3; display: grid; grid-template-columns: auto auto; gap: 4px 14px; pointer-events: none; }
.screen-brain .hud b { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.memory { position: absolute; left: 32px; bottom: 112px; width: 340px; padding: 14px; z-index: 3; }
.memory .imgs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 74px 74px; gap: 6px; margin: 10px 0 12px; }
.memory .imgs .br-media:first-child { grid-row: span 2; }
.memory .imgs.n1 { grid-template-columns: 1fr; } .memory .imgs.n2 .br-media:nth-child(2) { grid-row: span 2; }
.memory h3 { margin: 2px 0 2px; font-family: var(--font-display); font-size: 18px; line-height: 24px; }
.memory .sub { font-size: 13px; line-height: 18px; }
.memory .row { display: flex; gap: 8px; margin-top: 12px; }
.memory.empty-card { width: 380px; }
.screen-brain .detail { position: absolute; top: 52px; right: 32px; width: 300px; max-height: calc(100% - 150px); overflow: auto; padding: 16px; z-index: 3; transition: opacity .3s, transform .3s; }
.screen-brain .detail.hide { display: block !important; opacity: 0; transform: translateX(16px); pointer-events: none; }
.detail .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.detail .phead { display: flex; gap: 14px; align-items: center; margin: 14px 0; }
.screen-brain .ask { position: absolute; left: 50%; bottom: 28px; width: min(640px, calc(100% - 520px)); min-width: 420px; transform: translateX(-50%); z-index: 3; }
.screen-brain .zoom { position: absolute; right: 32px; bottom: 28px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.br-graph text { paint-order: stroke; stroke: rgba(4,5,10,0.8); stroke-width: 3px; }
.br-ask .mic.rec { color: var(--danger); background: rgba(255,122,138,0.12); }

/* ---------- Chat */
.screen-chat .panel { position: absolute; top: 4px; right: 32px; bottom: 120px; width: min(560px, 46%); display: flex; flex-direction: column; z-index: 3; }
.screen-chat .thread { flex: 1; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 18px; }
.screen-chat .q { align-self: flex-end; max-width: 80%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--surface-raised); border: 1px solid var(--line-strong); }
.screen-chat .a { display: flex; gap: 12px; }
.screen-chat .a .who { width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #bff8ff, var(--cyan) 40%, rgba(167,123,255,0.8) 75%, transparent 76%); box-shadow: 0 0 14px rgba(46,230,255,0.5); }
.screen-chat .a .body { flex: 1; min-width: 0; }
.screen-chat .a p { margin: 0 0 10px; }
.screen-chat .src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.screen-chat .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.screen-chat .cards .br-media { height: 112px; }
.screen-chat .br-media.big { height: 260px; box-shadow: var(--glow-violet); }
.screen-chat .head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.screen-chat .head .ttl { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.screen-chat .hello { margin: auto 0; padding: 20px 4px; }
.screen-chat .hello h2 { font-size: 40px; line-height: 46px; margin: 8px 0 10px; }
.screen-chat .hint { margin-top: 10px; display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-faint); }
.screen-chat .hint svg { width: 14px; height: 14px; color: var(--violet); flex: none; }
.screen-chat .hint a { color: var(--cyan); }
.typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--cyan); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.screen-chat .ask { position: absolute; right: 32px; bottom: 28px; width: min(560px, 46%); z-index: 3; }
.screen-chat .sugg { position: absolute; left: 32px; bottom: 28px; width: min(520px, calc(54% - 90px)); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.screen-chat .sugg button { justify-content: flex-start; height: auto; min-height: 40px; padding: 8px 16px; white-space: normal; text-align: left; background: var(--glass); backdrop-filter: blur(var(--blur-glass)); }
.screen-chat .think-hud { position: absolute; left: 32px; top: 8px; z-index: 3; max-width: calc(54% - 90px); pointer-events: none; }
.screen-chat .think-hud b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 600; }
.steps { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.steps div { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); opacity: .35; transition: opacity .3s; }
.steps div.on { opacity: 1; } .steps div.on i { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.steps i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); flex: none; }

/* ---------- Personen */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.pcard { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px 18px; text-align: center; transition: all .25s; border-radius: var(--radius-lg); }
.pcard:hover { border-color: var(--pc, var(--line-strong)); transform: translateY(-2px); }
.pcard .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.pcard .nums div, .hero .nums div { padding: 10px 4px; border-radius: var(--radius-md); background: var(--surface-raised); }
.pcard .nums b, .hero .nums b { display: block; font-family: var(--font-mono); font-size: 20px; line-height: 24px; font-weight: 500; }
.pcard.add { justify-content: center; color: var(--ink-muted); border-style: dashed; cursor: pointer; }
.pcard.add svg { width: 28px; height: 28px; color: var(--cyan); }
.unk { padding: 18px 20px; }
.unk-h { display: flex; align-items: center; gap: 10px; }
.unk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.uface { display: grid; grid-template-columns: 54px 1fr; gap: 6px 10px; align-content: start; padding: 10px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.uface .t { font-size: 12px; font-weight: 700; }
.uface .opts { grid-column: span 2; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.uface .opts button, .lb-face .opts button { height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 11px; font-weight: 600; color: var(--ink-muted); display: inline-flex; align-items: center; }
.uface .opts button:hover, .lb-face .opts button:hover { color: var(--pc, var(--cyan)); border-color: var(--pc, var(--cyan)); }
.uface .opts button.sug { color: var(--pc); border-color: var(--pc); }
.uface .opts button svg, .lb-face .opts button svg { width: 11px; height: 11px; }
.uface.done { border-color: rgba(93,240,176,0.4); }
.facecrop { display: block; flex: none; border-radius: 10px; background-color: var(--surface-raised); background-repeat: no-repeat; outline: 1.5px dashed var(--line-strong); outline-offset: 2px; cursor: pointer; }
.prof { position: absolute; inset: 0 32px 0; display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.prof .side { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.prof .hero { padding: 18px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.prof .hero .br-av.lg { margin: 6px 0 14px; }
.hero .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: 18px; }
.prof .blk { padding: 14px 20px; }
.prof .place { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13px; margin-top: 12px; }
.prof .place .br-bar { grid-column: span 2; margin-bottom: 4px; }
.prof .shared { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.prof .shared:first-of-type { border-top: 0; }
.prof .main { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding-bottom: 24px; }
.tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; gap: 8px; }
.prof .gal .br-media:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.empty { padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.empty.big { max-width: 640px; margin: 40px auto; padding: 36px; }
.avpick { display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 12px; max-height: 60vh; overflow: auto; padding: 4px; }
.avpick button { border: 0; background: none; padding: 4px; border-radius: 14px; }
.avpick button:hover { background: var(--cyan-soft); }

/* ---------- Events */
.evwrap { position: absolute; inset: 0 32px 0; display: grid; grid-template-columns: 360px 1fr; gap: 20px; }
.evwrap .tl { padding: 8px 6px 24px 0; position: relative; }
.evwrap .tl::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 1px; background: linear-gradient(var(--line-strong), transparent); }
.yr { margin: 6px 0 8px 32px; }
.ev { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; margin: 0 0 8px; padding: 8px 10px 8px 32px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; text-align: left; transition: all .2s; }
.ev::before { content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--space); border: 1.5px solid var(--violet); }
.ev:hover { background: var(--surface-raised); }
.ev.on { background: var(--violet-soft); border-color: rgba(167,123,255,0.35); }
.ev.on::before { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.ev img, .ev .ph { width: 64px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex: none; background: var(--surface-raised); }
.ev b { display: block; font-size: 14px; line-height: 19px; }
.ev span { font-size: 12px; color: var(--ink-faint); }
.evwrap .detail { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.evwrap .hero { position: relative; height: 290px; flex: none; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.evwrap .hero img { width: 100%; height: 100%; object-fit: cover; }
.evwrap .hero .over { position: absolute; inset: auto 0 0 0; padding: 60px 24px 20px; background: linear-gradient(transparent, rgba(4,5,10,0.92)); display: flex; align-items: flex-end; gap: 12px; }
.evwrap .auto { position: absolute; top: 14px; left: 14px; }
.row3 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 300px; gap: 14px; }
.row3 .box { padding: 16px; }
.ppl { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 12px; }
.ppl .pp { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stats3 { display: flex; gap: 22px; margin-top: 8px; }
.stats3 .br-stat { font-size: 30px; line-height: 36px; }
.stats3 span { font-size: 12px; }
.mapbox { padding: 10px !important; }
.mini { position: relative; display: block; height: 112px; border-radius: var(--radius-md); overflow: hidden; background: var(--space); }
.mini svg { width: 100%; height: 100%; }
.mrowx { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; gap: 8px; }
.evwrap .gal { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); grid-auto-rows: 104px; }
.dhead { padding: 6px 0 4px; }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-top: 4px; }
.album { position: relative; height: 200px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform .3s, box-shadow .3s; }
.album:hover { transform: translateY(-2px); box-shadow: var(--glow-violet); }
.album img { width: 100%; height: 100%; object-fit: cover; }
.album .over { position: absolute; inset: auto 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(4,5,10,0.9)); display: flex; flex-direction: column; gap: 2px; }
.album .over b { font-family: var(--font-display); font-size: 18px; }
.album .over .br-faint { font-size: 12px; }

/* ---------- Karte */
.screen-map .map { position: absolute; inset: 0; background: var(--space); }
.leaflet-container { background: var(--space); font-family: var(--font-sans); }
.leaflet-tile-pane { filter: saturate(.6) brightness(.85) hue-rotate(10deg); }
.leaflet-control-attribution { background: rgba(4,5,10,0.6) !important; color: var(--ink-faint) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--ink-muted) !important; }
.leaflet-bar a { background: var(--glass-strong) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-zoom { margin: 0 32px 28px 0 !important; border: 1px solid var(--line) !important; border-radius: 12px !important; overflow: hidden; }
.lpin { position: relative; cursor: pointer; }
.lpin .r1 { position: absolute; left: calc(var(--r) * -1 - 10px); top: calc(var(--r) * -1 - 10px); width: calc(var(--r) * 2 + 20px); height: calc(var(--r) * 2 + 20px); border-radius: 50%; background: var(--magenta); opacity: .14; animation: ping 2.8s ease-out infinite; }
.lpin .r2 { position: absolute; left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); border-radius: 50%; background: var(--space); border: 1.5px solid var(--magenta); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink); }
.lpin .lbl { position: absolute; left: calc(var(--r) + 8px); top: -9px; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ink-muted); text-shadow: 0 1px 6px #000, 0 0 2px #000; }
.lpin.on .r2 { background: var(--magenta); color: var(--on-accent); box-shadow: 0 0 18px var(--magenta); }
.lpin.on .lbl { color: var(--ink); }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.screen-map .list { position: absolute; top: 4px; left: 32px; width: 260px; max-height: calc(100% - 90px); padding: 14px; z-index: 500; }
.pl { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; }
.pl:hover, .pl.on { background: var(--surface-raised); }
.pl i { width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); flex: none; }
.pl b { font-size: 13px; display: block; line-height: 17px; } .pl span { font-size: 11px; color: var(--ink-faint); }
.pl .n { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.screen-map .card { position: absolute; right: 32px; top: 4px; width: 340px; max-height: calc(100% - 110px); overflow: auto; padding: 16px; z-index: 500; box-shadow: var(--glow-magenta), var(--panel); }
.screen-map .card h2 { display: flex; align-items: center; gap: 6px; }
.screen-map .card .g { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 74px; gap: 6px; margin: 12px 0; }
.screen-map .card .g .br-media:first-child { grid-column: span 2; grid-row: span 2; }
.evrow { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
a.evrow:hover { color: var(--violet); }
.screen-map .scale { position: absolute; left: 32px; bottom: 28px; z-index: 500; display: flex; gap: 12px; }

/* ---------- Wiki */
.wikiwrap { position: absolute; inset: 0 32px 24px; display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 20px; }
.wikiwrap .idx { padding: 14px; align-self: start; max-height: 100%; }
.idx-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; text-align: left; }
.it:hover { background: var(--surface-raised); }
.it.on { background: var(--amber-soft); border-color: rgba(255,195,92,0.35); }
.it svg { width: 18px; height: 18px; color: var(--amber); flex: none; }
.it b { display: block; font-size: 14px; line-height: 18px; } .it span { font-size: 11px; color: var(--ink-faint); }
.wikiwrap .page { padding: 24px 32px; }
.wmeta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; align-items: center; }
.story { font-size: 15px; line-height: 24px; color: var(--ink); max-width: 680px; }
.story p { margin: 0 0 14px; }
.quote { margin: 14px 0 18px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.quote q { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; quotes: "„" "“"; }
.wikiwrap .media { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 90px; gap: 8px; }
.wikiwrap .media .br-media:first-child { grid-column: span 2; grid-row: span 2; }
.wsec { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }
.wikiwrap .side { display: flex; flex-direction: column; gap: 16px; }
.wikiwrap .box { padding: 16px; }
.rel { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rel svg { width: 14px; height: 14px; color: var(--ink-faint); }
.hist .v { display: flex; gap: 10px; padding: 6px 0; font-size: 12px; color: var(--ink-muted); }
.hist .br-mono { color: var(--ink-faint); font-size: 11px; width: 74px; flex: none; }
.wform { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.wform label { display: flex; flex-direction: column; gap: 6px; }
.wform .chips { margin-top: 6px; }
.qrow { display: flex; gap: 12px; }
.qrow label:last-child { width: 170px; }
.empty-in { padding: 20px 0; max-width: 560px; }

/* ---------- Stats */
.statswrap { position: absolute; inset: 0 32px 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto auto auto; gap: 16px 20px; align-content: start; padding-bottom: 24px; overflow: auto; }
.tiles { grid-column: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; padding: 16px 20px; }
.tile .br-av { position: absolute; right: 18px; top: 18px; width: 30px; height: 30px; }
.tile .br-hud { display: block; padding-right: 40px; }
.chart { grid-column: 1; padding: 18px 20px 14px; }
.ch-h { display: flex; justify-content: space-between; align-items: center; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-items: end; height: 150px; margin-top: 22px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.col { display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; justify-content: flex-start; position: relative; }
.col i { display: block; border-radius: 3px; min-height: 2px; }
.col.peak::after { content: attr(data-v); position: absolute; left: 50%; bottom: calc(var(--h) + 6px); transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: var(--ink); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; margin-top: 6px; text-align: center; }
.chart .legend { display: flex; gap: 16px; }
.chart .legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); }
.chart .legend i { width: 10px; height: 10px; border-radius: 3px; }
.rank { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rk { padding: 16px 20px; }
.rk .row { display: grid; grid-template-columns: 20px 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.vote { grid-column: 2; grid-row: 1 / span 2; padding: 18px; }
.cands { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cand { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; text-align: left; transition: box-shadow .25s, border-color .25s; }
.cand img { width: 100%; height: 92px; object-fit: cover; }
.cand .m { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.cand .v { font-family: var(--font-mono); color: var(--ink-muted); display: inline-flex; gap: 4px; align-items: center; flex: none; }
.cand .v svg { width: 13px; height: 13px; }
.cand.on { border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.cand.on .v { color: var(--magenta); } .cand.on .v svg { fill: var(--magenta); }
.hof { grid-column: 2; grid-row: 3; padding: 16px 18px; }
.hofg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hofg .br-media { height: 74px; }
.hofg .br-media .badge { left: 6px; right: auto; top: 6px; color: var(--magenta); }

/* ---------- Upload */
.upwrap { position: absolute; inset: 0 32px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; }
.upwrap .left { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; }
.drop { position: relative; height: 176px; flex: none; border-radius: var(--radius-lg); border: 1.5px dashed rgba(46,230,255,0.45); background: radial-gradient(400px 160px at 50% 100%, rgba(46,230,255,0.08), transparent), var(--glass); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; transition: all .25s; cursor: pointer; }
.drop:hover { border-color: var(--cyan); }
.drop.over { border-color: var(--cyan); box-shadow: var(--glow-cyan); background: var(--cyan-soft); }
.drop .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(46,230,255,0.4); }
.drop .ic svg { width: 26px; height: 26px; }
.queue { padding: 16px 18px; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.qh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#qlist { flex: 1; min-height: 0; overflow: auto; }
.qempty { font-size: 13px; padding: 14px 0; }
.f { display: grid; grid-template-columns: 44px 1fr 150px minmax(80px, auto); gap: 12px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.f img, .f .fi { width: 44px; height: 34px; border-radius: 6px; object-fit: cover; }
.fi { display: grid; place-items: center; background: var(--surface-raised); color: var(--ink-faint); }
.fi svg { width: 16px; height: 16px; }
.f .nm { min-width: 0; } .f .nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f .nm .br-faint { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f .br-bar > i { transition: width .3s; }
.f .st { text-align: right; font-family: var(--font-mono); font-size: 12px; }
.dup { padding: 14px 18px; display: flex; align-items: center; gap: 14px; flex: none; border-color: rgba(255,195,92,0.35) !important; }
.pair { display: flex; gap: 6px; }
.pair img, .pair .fi { width: 70px; height: 52px; border-radius: 8px; object-fit: cover; }
.priv { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.opt b { display: block; font-size: 14px; line-height: 20px; } .opt span { font-size: 12px; line-height: 17px; color: var(--ink-faint); }
.opt .br-switch { margin-left: auto; margin-top: 2px; cursor: pointer; padding: 0; }
.ph { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mine .br-media { height: 88px; }
.mine .br-media.hidden img { filter: blur(6px) grayscale(.6); opacity: .5; }
.mine .acts { position: absolute; inset: auto 6px 6px auto; display: flex; gap: 4px; }
.mine .acts button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.25); background: rgba(4,5,10,0.7); display: grid; place-items: center; padding: 0; }
.mine .acts button svg { width: 14px; height: 14px; }
.mine .acts button.del { color: var(--danger); }
.mine .hid { position: absolute; inset: 0; display: none; place-items: center; font-size: 11px; font-weight: 700; color: var(--ink); }
.mine .hid svg { width: 14px; height: 14px; }
.mine .br-media.hidden .hid { display: grid; }

/* ---------- Einstellungen */
.setwrap { position: absolute; inset: 0 32px 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 24px; overflow: auto; }
.setcol { display: flex; flex-direction: column; gap: 16px; }
.setwrap .box { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.setwrap label { display: flex; flex-direction: column; gap: 6px; }
.setwrap .br-seg { align-self: flex-start; margin: 4px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lan { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lan code { font-size: 15px; padding: 6px 12px; color: var(--cyan); }
.setwrap .phead { display: flex; gap: 18px; align-items: center; margin: 8px 0; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.prow b { flex: 1; }
.prow input[type=color] { width: 32px; height: 26px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; background: none; cursor: pointer; }
.mrow { display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.mrow.left { justify-content: flex-start; margin-top: 6px; }

/* ---------- Modal / Toast */
.modal-wrap { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(2,3,8,0.6); backdrop-filter: blur(4px); animation: fadein .2s; }
.modal-wrap.clear { background: transparent; backdrop-filter: none; }
.modal { position: relative; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); overflow: auto; padding: 22px 24px; }
.modal.popover { padding: 8px; }
.mclose { position: absolute; top: 12px; right: 12px; }
@keyframes fadein { from { opacity: 0; } }
#toasts { position: fixed; right: 24px; bottom: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; font-size: 14px; font-weight: 600; transition: all .3s; animation: fadein .2s; border-radius: var(--radius-md); }
.toast svg { width: 16px; height: 16px; display: block; }
.pick-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow: auto; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; padding: 2px; }
.pk { position: relative; height: 90px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-raised); }
.pk img { width: 100%; height: 100%; object-fit: cover; }
.pk .ck { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; background: var(--cyan); color: var(--on-accent); }
.pk .ck svg { width: 14px; height: 14px; }
.pk.on { border-color: var(--cyan); } .pk.on .ck { display: grid; }

/* Schnellsuche */
.search-modal { padding: 0 !important; align-self: start; margin-top: 12vh; }
.search-modal .mclose { display: none; }
.qs-in { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 62px; border-bottom: 1px solid var(--line); }
.qs-in svg { width: 20px; height: 20px; color: var(--cyan); }
.qs-in input { flex: 1; height: 100%; border: 0; outline: 0; background: none; font-size: 17px; }
.qs-res { max-height: 56vh; padding: 8px 10px 14px; }
.qs-h { padding: 12px 10px 6px; }
.qs-it { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius-sm); }
.qs-it:hover, .qs-it:focus { background: var(--surface-raised); outline: 0; }
.qs-it b { display: block; font-size: 14px; } .qs-it span { font-size: 12px; color: var(--ink-faint); }
.qs-it.ask { background: var(--cyan-soft); border: 1px solid rgba(46,230,255,0.3); }
.qs-it > svg, .dotc svg { width: 20px; height: 20px; }
.qs-it.ask > svg { color: var(--cyan); }
.dotc { width: 26px; display: grid; place-items: center; }
.qs-media { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 0 10px; }
.qs-media .br-media { height: 74px; }

/* ---------- Lightbox */
.modal-wrap.full { background: rgba(2,3,8,0.92); backdrop-filter: blur(10px); }
.lb-modal { width: calc(100vw - 32px); height: calc(100vh - 32px); max-width: none; max-height: none; padding: 0; overflow: hidden; background: transparent !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }
.lb-modal .mclose { z-index: 5; top: 8px; right: 8px; background: var(--glass-strong); }
.lb { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; height: 100%; }
.lb-stage { position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; }
.lb-img { position: relative; max-width: 100%; max-height: calc(100vh - 40px); }
.lb-img img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-md); display: block; }
.lb-img .face { position: absolute; border: 1.5px solid var(--fc, var(--cyan)); border-radius: 6px; box-shadow: 0 0 10px color-mix(in srgb, var(--fc, var(--cyan)) 50%, transparent); cursor: pointer; opacity: 0; transition: opacity .2s; }
.lb-stage:hover .face { opacity: 1; }
.lb-img .face.unknown { border-style: dashed; border-color: var(--amber); --fc: var(--amber); }
.lb-img .face.ignored { display: none; }
.lb-img .face span { position: absolute; top: -20px; left: -1px; padding: 1px 6px; border-radius: 4px; background: var(--fc, var(--cyan)); color: var(--on-accent); font-size: 10px; font-weight: 700; white-space: nowrap; }
.lb-video { max-width: 100%; max-height: calc(100vh - 40px); border-radius: var(--radius-md); background: #000; box-shadow: var(--glow-violet); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--glass-strong); display: grid; place-items: center; }
.lb-nav svg { width: 20px; height: 20px; }
.lb-nav.l { left: 8px; } .lb-nav.r { right: 8px; }
.lb-nav:hover { border-color: var(--cyan); color: var(--cyan); }
.lb-count { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); }
.lb-side { background: var(--glass-strong); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 14px; backdrop-filter: blur(var(--blur-glass)); }
.lb-tags { display: flex; gap: 6px; flex-wrap: wrap; padding-right: 40px; }
.lb-cap { font-size: 19px; line-height: 25px; }
.lb-meta { display: flex; flex-direction: column; }
.lb-meta > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lb-meta > div > :last-child { text-align: right; }
.lb-sec { display: flex; flex-direction: column; gap: 8px; }
.lb-sech { display: flex; justify-content: space-between; align-items: center; }
.lb-face { display: grid; grid-template-columns: 40px 1fr; gap: 6px 10px; align-items: center; padding: 8px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .3s; }
.lb-face.flash { box-shadow: var(--glow-cyan); }
.lb-face .facecrop { border-radius: 8px; outline: 0; }
.lb-face .nm { display: flex; flex-direction: column; font-size: 13px; line-height: 17px; min-width: 0; } .lb-face .nm span { font-size: 11px; }
.lb-face .opts { grid-column: span 2; display: flex; flex-wrap: wrap; gap: 4px; }
.lb-face .opts button.on { color: var(--on-accent); background: var(--pc); border-color: var(--pc); }
.lb-sec .note { margin: 0; font-size: 13px; color: var(--ink-muted); white-space: pre-wrap; }
.lb-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.lb-actions .br-btn { height: 32px; font-size: 12px; padding: 0 12px; }
.lb-actions .br-btn.voted { color: var(--magenta); border-color: var(--magenta); box-shadow: var(--glow-magenta); }
.br-chip.add { cursor: pointer; border-style: dashed; }
.tlines { display: flex; flex-direction: column; gap: 2px; }
.tline { display: grid; grid-template-columns: 46px 1fr 16px; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.tline:hover { background: var(--surface-raised); color: var(--ink); }
.tline .br-mono { font-size: 12px; color: var(--violet); }
.tline .x { opacity: 0; color: var(--ink-faint); } .tline:hover .x { opacity: 1; } .tline .x svg { width: 14px; height: 14px; }

/* Diashow */
.show-modal { width: 100vw; height: 100vh; max-width: none; max-height: none; padding: 0; border-radius: 0 !important; background: #000 !important; border: 0 !important; }
.show { position: relative; width: 100%; height: 100%; overflow: hidden; }
.show-img { position: absolute; inset: 0; cursor: pointer; }
.show-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1.2s; transform: scale(1.02); }
.show-img img.in { opacity: 1; animation: kb 5s ease-out forwards; }
.show-img img.b.in { animation-name: kb2; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1%, -1%); } }
@keyframes kb2 { from { transform: scale(1.1) translate(1%, 0); } to { transform: scale(1.02); } }
.show-top { position: absolute; top: 24px; left: 32px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.show-top b { font-family: var(--font-display); font-size: 26px; }
.show-cap { position: absolute; left: 32px; bottom: 40px; z-index: 2; max-width: 60%; font-size: 17px; line-height: 24px; text-shadow: 0 2px 10px #000; display: flex; flex-direction: column; gap: 6px; }
.show-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.1); z-index: 2; }
.show-bar i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transition: width .5s; }
.show-modal .mclose { z-index: 3; }

.setwrap .box > .br-tag, .lb-side .br-tag { align-self: flex-start; }
.tiles { align-self: start; }
.screen-chat .hint { display: block; line-height: 18px; }
.screen-chat .hint svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.evwrap .auto { background: rgba(4,5,10,0.72); backdrop-filter: blur(8px); }
.screen-chat .bg { right: calc(min(560px, 46%) + 40px); }

/* ---------- Schwebende Fotos im Netz */
.br-graph .edge.medge { stroke: rgba(150,190,255,0.08); stroke-width: .6; }
.br-graph .edge.medge.nn { stroke: rgba(150,190,255,0.055); stroke-dasharray: 2 3; }
.br-graph .edge.medge.lit { stroke: var(--cyan); stroke-width: 1; opacity: .8; }
.br-graph .node.media { opacity: .5; transition: opacity .3s; }
.br-graph .node.media .halo { fill: var(--cyan); opacity: 0; animation: none; }
.br-graph .node.media .ring { fill: none; stroke: rgba(150,200,255,0.45); stroke-width: 1; }
.br-graph .node.media:hover, .br-graph .node.media.lit { opacity: 1; }
.br-graph .node.media:hover .ring, .br-graph .node.media.lit .ring { stroke: var(--cyan); stroke-width: 1.4; }
.br-graph .node.media.hot .halo { opacity: .35; }
.br-graph.has-focus .node.media:not(.lit) { opacity: .08; }
.br-graph.has-focus .edge.medge:not(.lit) { opacity: .25; }
.br-graph .pulse.mini { fill: rgba(170,210,255,0.9); }
.br-graph .pulse.media { fill: var(--cyan); }
.br-chip.photos { color: var(--ink-muted); }
.br-chip.on.photos { color: #cfe3ff; background: rgba(170,210,255,0.10); border-color: rgba(170,210,255,0.35); }

.pin.gate { margin-top: 26px; }
.pin.gate .inp { letter-spacing: .12em; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.hello-sugg { display: none; }
.back { display: none; }

.pmini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.pmini .br-media { height: 70px; }

.who-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.who-pick button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03); font-size: 13px; font-weight: 600; color: var(--ink-muted); transition: all .15s; }
.who-pick button .br-av.sm { width: 24px; height: 24px; } .who-pick button .br-av.sm::after { display: none; }
.who-pick button:hover { border-color: var(--pc); color: var(--ink); }
.who-pick button.on { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 18%, transparent); color: var(--ink); box-shadow: 0 0 14px color-mix(in srgb, var(--pc) 35%, transparent); }

/* ---------- Fotos zuordnen */
.queue-sec { padding: 18px 20px 20px; }
.queue-sec .unk-h { margin-bottom: 14px; flex-wrap: wrap; }
.queue-sec .qhint { margin-left: auto; font-size: 12px; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.qcard { display: flex; flex-direction: column; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: opacity .28s, transform .28s; }
.qcard.saving { opacity: .6; pointer-events: none; }
.qcard.gone { opacity: 0; transform: scale(.96); }
.qimg { position: relative; height: 200px; background: var(--surface-raised); cursor: zoom-in; }
.qimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qimg .badge { position: absolute; top: 8px; right: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 999px; background: rgba(4,5,10,0.7); font-size: 11px; }
.qimg .badge svg { width: 12px; height: 12px; }
.qbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.qmeta { display: flex; flex-direction: column; font-size: 13px; line-height: 18px; }
.qmeta .br-faint { font-size: 12px; }
.qact { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.qact .br-btn.primary { flex: 1; justify-content: center; }
.qdone { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid rgba(93,240,176,0.35); }
.qdone > svg { width: 26px; height: 26px; color: var(--ok); }
.qdone b { display: block; } .qdone span { font-size: 13px; }
.qlink { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.qlink:hover { border-color: rgba(255,195,92,0.45); }
.qlink span.br-faint { font-size: 12px; }

/* ---------- Galerie */
.galwrap { position: absolute; inset: 0 32px 0; overflow: auto; padding-bottom: 32px; }
.galbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 6px 0 12px; background: linear-gradient(var(--void) 70%, transparent); flex-wrap: wrap; }
.galbar .grow { flex: 1; }
.galmonth { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; }
.galmonth h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }
.galgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; gap: 6px; }
.galgrid .br-media { border-radius: 10px; }
.galgrid .br-media .ppl { position: absolute; left: 6px; bottom: 6px; display: flex; }
.galgrid .br-media .ppl i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #04050a; margin-right: -3px; }
.galgrid .br-media .open { position: absolute; top: 6px; left: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
#galmore { height: 1px; }

/* ---------- Upload: Wiederholen */
.f .st .retry { height: 26px; padding: 0 10px; font-size: 11px; color: var(--cyan); border-color: rgba(46,230,255,0.4); }
.qh .retry-all { margin-left: auto; }
