/* Cops & Robbers RPG – Spieler-Panel
   Ergänzt panel.css (gleiches Design wie das Server-Panel) */

[hidden] { display: none !important; }

.login-help { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.login-help a { color: var(--gold); text-underline-offset: 3px; }

select, textarea { font: inherit; color: inherit; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9B5AC' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
select.input option { background: var(--surface-2); color: var(--text); }
textarea.input { height: auto; padding: 11px 14px; resize: vertical; line-height: 1.5; font: 14px/1.5 var(--body); }

/* ---------- Navigation ---------- */
.nav-group { display: contents; }
.nav-sep { margin: 14px 14px 4px; font: 600 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-sep[hidden], .nav button[hidden] { display: none; }
.nav .badge.gold { background: var(--gold-soft); color: var(--gold); }
.side-links { margin-top: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.side-links:empty { display: none; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--muted); font-size: 13px; text-decoration: none; }
.side-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.side-links svg.i { width: 15px; height: 15px; }
.sidebar .side-links:empty + .side-user { margin-top: auto; }

/* ---------- Übersicht ---------- */
.hero {
  grid-column: span 12;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center;
  padding: 30px 30px 28px; position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold); }
.hero.cop::before { background: var(--cop); }
.hero.robber::before { background: var(--robber); }
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(201,162,74,.10), transparent);
}
.hero.cop::after { background: radial-gradient(closest-side, rgba(47,123,240,.16), transparent); }
.hero.robber::after { background: radial-gradient(closest-side, rgba(229,56,59,.15), transparent); }
.eyebrow { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.hero-name { font: 700 56px/0.95 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 16px; color: var(--text-2); font-size: 14px; }
.presence { display: inline-flex; align-items: center; gap: 8px; }
.hero-server { position: relative; z-index: 1; }
.btn-connect { margin-top: 18px; text-decoration: none; }
.hero-server .lbl b { color: var(--text); font-weight: 600; }

.team { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.06); color: var(--text); }
.team::before { content: ''; width: 7px; height: 7px; background: var(--gold); }
.team.cop { background: rgba(47,123,240,.14); color: #8db8ff; }
.team.cop::before { background: var(--cop); }
.team.robber { background: rgba(229,56,59,.14); color: #ff9799; }
.team.robber::before { background: var(--robber); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; white-space: nowrap; }
.stars i { font-style: normal; color: rgba(255,255,255,.14); }

.tiles { grid-column: span 12; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.tiles:empty { display: none; }
.tiles.n4, .tiles.n8 { grid-template-columns: repeat(4, 1fr); }
.tiles.n5 { grid-template-columns: repeat(5, 1fr); }
.tiles.n3, .tiles.n6 { grid-template-columns: repeat(3, 1fr); }
.tiles.n2 { grid-template-columns: repeat(2, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px 20px; min-width: 0; }
.tile .lbl { color: var(--muted); font-size: 12.5px; }
.tile .val { font: 600 30px/1.1 var(--display); letter-spacing: .02em; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile .val small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.tile.money .val { color: #e3c77f; }

.mini { grid-column: span 6; display: flex; flex-direction: column; gap: 14px; }
.mini[hidden] { display: none; }
.mini-head { display: flex; align-items: center; gap: 10px; }
.mini-head svg.i { color: var(--gold); width: 20px; height: 20px; }
.mini-head b { font: 600 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; flex: 1; }
.mini-nums { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.mini-nums div { padding: 12px 14px; border-left: 1px solid var(--line); }
.mini-nums div:first-child { border-left: 0; }
.mini-nums b { display: block; font: 600 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.mini-nums span { color: var(--muted); font-size: 12px; }
.mini-nums .hot b { color: var(--gold); }
.mini-text { color: var(--text-2); font-size: 13.5px; }
.mini-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.mini .notice { margin: 0; }

/* ---------- Mein Spieler ---------- */
.profile-grid { columns: 2; column-gap: 16px; }
.profile-grid > .card { break-inside: avoid; margin-bottom: 16px; display: block; }
.pcard { padding: 0; }
.pcard h2 { font: 600 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 18px 22px 14px; margin: 0; border-bottom: 1px solid var(--line); }
.pcard dl { margin: 0; }
.pcard dl div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 16px; padding: 11px 22px; border-bottom: 1px solid rgba(255,255,255,.04); }
.pcard dl div:last-child { border-bottom: 0; }
.pcard dt { color: var(--muted); font-size: 13px; }
.pcard dd { font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pcard dd.null { color: #5c5a56; font-weight: 400; }
.pcard dd.money { color: #e3c77f; }
.pcard .idlist { padding: 14px 22px 18px; display: flex; flex-direction: column; gap: 6px; }
.pcard .idlist code { font: 12.5px var(--mono); color: var(--text-2); }
.pcard .hint { padding: 0 22px 18px; color: var(--muted); font-size: 12.5px; }

/* ---------- Listen ---------- */
.list-card.auto { height: auto; min-height: 0; }
.toolbar-title { font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
table.sec-table td { white-space: nowrap; }
table.sec-table td.money { color: #e3c77f; }
table.sec-table td.null { color: #5c5a56; }

/* ---------- Akte ---------- */
.ban-banner { display: flex; gap: 20px; align-items: center; margin-bottom: 16px; padding: 22px 24px; background: rgba(229,56,59,.07); border: 1px solid rgba(229,56,59,.35); border-left: 4px solid var(--robber); }
.ban-banner > svg.i { width: 34px; height: 34px; color: var(--robber); }
.ban-banner .txt { flex: 1; }
.ban-banner b { display: block; font: 600 20px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; color: #ffb3b4; }
.ban-banner p { color: var(--text-2); margin-top: 4px; }
.ban-banner code { font: 12.5px var(--mono); color: var(--text); background: var(--ink); padding: 2px 6px; }
.clean-banner { border-color: rgba(47,191,113,.3); border-left-color: var(--green); background: rgba(47,191,113,.06); }
.clean-banner > svg.i { color: var(--green); }
.clean-banner b { color: #9fe3bd; }
.record-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.record-stats .tile .val { font-size: 34px; }
.record-stats .tile.warn .val { color: #f0b070; }
.record-stats .tile.ban .val { color: #ff8f91; }
.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.04); }
.timeline li:last-child { border-bottom: 0; }
.timeline .ic { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.timeline .ic svg.i { width: 17px; height: 17px; }
.timeline li.warn .ic { background: rgba(232,137,43,.13); color: #f0b070; }
.timeline li.kick .ic { background: rgba(255,255,255,.06); color: var(--text-2); }
.timeline li.ban .ic { background: rgba(229,56,59,.14); color: #ff8f91; }
.timeline .what b { font-weight: 600; }
.timeline .what p { color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.timeline .what small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.timeline .when { color: var(--muted); font-size: 12.5px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Tickets ---------- */
.tk-intro { display: flex; gap: 22px; align-items: center; margin-bottom: 16px; }
.tk-intro > svg.i { width: 40px; height: 40px; color: var(--gold); stroke-width: 1.4; }
.tk-intro .txt { flex: 1; }
.tk-intro b { display: block; font: 600 18px/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.tk-intro p { color: var(--text-2); max-width: 70ch; }
.tk-rows { display: flex; flex-direction: column; }
.tk-row {
  display: grid; grid-template-columns: 74px 1fr auto auto; gap: 16px; align-items: center;
  width: 100%; padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.04);
}
.tk-row:hover { background: rgba(255,255,255,.025); }
.tk-row .no { font: 500 13px var(--mono); color: var(--muted); }
.tk-row .sub { min-width: 0; }
.tk-row .sub b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-row .sub small { color: var(--muted); font-size: 12.5px; }
.tk-row .upd { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.tk-row.unread .sub b::after { content: 'Neue Antwort'; margin-left: 10px; padding: 2px 7px; font: 600 10.5px/1 var(--body); letter-spacing: .04em; vertical-align: 2px; background: var(--gold); color: #15120b; }
.tk-row.closed { opacity: .6; }

.st { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; font-size: 12px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.06); color: var(--text-2); }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.open { background: rgba(232,137,43,.13); color: #f0b070; }
.st.in_progress { background: rgba(47,123,240,.14); color: #8db8ff; }
.st.answered { background: rgba(47,191,113,.13); color: #7fdcaa; }
.st.closed { color: var(--muted); }
.prio { font-size: 12px; color: var(--muted); }
.prio.high { color: #f0b070; }
.prio.critical { color: #ff8f91; font-weight: 600; }

.tk-form, .tk-detail { max-width: 900px; padding: 0; }
.tk-form[hidden], .tk-detail[hidden], #tk-list-view[hidden] { display: none; }
.form-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.form-head h2 { font: 600 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin: 0; }
.form-head .spacer { flex: 1; }
.form-lead { padding: 18px 24px 0; color: var(--text-2); max-width: 75ch; }
.tk-form > .field, .form-grid { padding: 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field small.muted { font-weight: 400; }
.field .help { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.req::after { content: ' *'; color: var(--gold); }
.dropbox { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line-strong); color: var(--text-2); font-size: 13.5px; transition: border-color .15s, background .15s; }
.dropbox svg.i { color: var(--muted); }
.dropbox.over { border-color: var(--gold); background: var(--gold-soft); }
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.file-chips:empty { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 4px 0 6px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 12.5px; max-width: 260px; }
.fchip img { width: 24px; height: 24px; object-fit: cover; }
.fchip svg.i { width: 16px; height: 16px; color: var(--muted); }
.fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fchip small { color: var(--muted); }
.fchip button { width: 26px; height: 26px; display: grid; place-items: center; color: var(--muted); }
.fchip button:hover { color: var(--text); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 24px 22px; border-top: 1px solid var(--line); margin-top: 6px; }
.tk-form .notice { margin: 0 24px 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; color: var(--text-2); }
.seg span small { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.seg label:hover span { border-color: rgba(255,255,255,.25); color: var(--text); }
.seg input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.seg input:checked + span.crit { border-color: var(--robber); background: rgba(229,56,59,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.td-head { padding: 22px 24px 4px; }
.td-head .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.td-head h2 { font: 600 26px/1.15 var(--display); letter-spacing: .03em; text-transform: none; color: var(--text); margin: 10px 0 0; overflow-wrap: anywhere; }
.td-meta { display: flex; flex-wrap: wrap; margin: 18px 24px 0; border: 1px solid var(--line); overflow: hidden; }
.td-meta:empty { display: none; }
.td-meta div { flex: 1 1 180px; padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.td-meta div.wide { flex-basis: 100%; }
.td-meta dt { color: var(--muted); font-size: 12px; }
.td-meta dd { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }

.thread { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; border: 1px solid var(--line); background: var(--surface-2); }
.msg.from-player { align-self: flex-end; border-color: rgba(201,162,74,.28); background: rgba(201,162,74,.06); }
.msg.from-team { align-self: flex-start; border-left: 3px solid var(--cop); }
.msg header { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px 0; font-size: 12.5px; color: var(--muted); }
.msg header b { color: var(--text); font-weight: 600; font-size: 13px; }
.msg.from-team header b { color: #8db8ff; }
.msg .body { padding: 6px 14px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.msg .atts button.thumb { width: 112px; height: 76px; border: 1px solid var(--line-strong); overflow: hidden; background: var(--ink); }
.msg .atts button.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg .atts button.thumb:hover { border-color: var(--gold); }
.msg .atts a.file { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); font-size: 12.5px; text-decoration: none; color: var(--text-2); }
.msg .atts a.file:hover { border-color: var(--gold); color: var(--text); }
.sysmsg { align-self: center; color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 10px; }
.sysmsg::before, .sysmsg::after { content: ''; width: 40px; height: 1px; background: var(--line-strong); }

.composer { border-top: 1px solid var(--line); padding: 16px 24px 20px; }
.composer[hidden] { display: none; }
.composer textarea { min-height: 84px; }
.composer-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.composer-actions .spacer { flex: 1; }
.closed-note { border-top: 1px solid var(--line); padding: 18px 24px; color: var(--muted); text-align: center; }
.closed-note[hidden] { display: none; }

.lightbox { width: auto; max-width: min(1200px, 94vw); padding: 0; background: #000; border-color: var(--line-strong); }
.lightbox img { display: block; max-width: 100%; max-height: 86vh; }
.lightbox form { position: absolute; top: 6px; right: 6px; }
.lb-close { background: rgba(0,0,0,.6); color: #fff; }
.lb-close:hover { background: rgba(0,0,0,.85); }

.skeleton { color: transparent !important; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-server { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .mini { grid-column: span 12; }
  .profile-grid { columns: 1; }
}
@media (max-width: 820px) {
  .sidebar { min-width: 0; }
  .nav { min-width: 0; }
  .nav-sep { display: none; }
  .hero-name { font-size: 40px; }
  .hero { padding: 22px 20px; }
  .side-links { display: none; }
  .tiles, .tiles[class*=" n"] { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px 16px; }
  .tile .val { font-size: 24px; }
  .record-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .record-stats .tile .val { font-size: 26px; }
  .tk-intro { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tk-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .tk-row .no { grid-column: 1 / -1; }
  .tk-row .upd { display: none; }
  .form-grid { grid-template-columns: 1fr; padding: 16px 16px 0; }
  .tk-form > .field { padding: 0 16px; }
  .form-lead { padding: 16px 16px 0; }
  .form-actions, .composer { padding-left: 16px; padding-right: 16px; }
  .tk-form .notice { margin: 0 16px 16px; }
  .td-head { padding: 18px 16px 0; }
  .td-meta { margin: 14px 16px 0; }
  .thread { padding: 16px; }
  .msg { max-width: 94%; }
  .pcard dl div { grid-template-columns: 1fr; gap: 2px; padding: 10px 18px; }
  .timeline li { grid-template-columns: 30px 1fr; }
  .timeline .when { grid-column: 2; text-align: left; }
  .ban-banner { flex-direction: column; align-items: flex-start; }
  .mini-nums b { font-size: 20px; }
  .form-head { flex-wrap: wrap; }
  #td-close span, #td-close { font-size: 11px; }
}

/* =====================================================================
   Gamemode: Charaktere, Fahrzeuge, Immobilien, Fraktion
   ===================================================================== */
.avatar.cop { color: #8db8ff; box-shadow: inset 0 -2px 0 var(--cop); }
.avatar.robber { color: #ff9799; box-shadow: inset 0 -2px 0 var(--robber); }
.sq { display: inline-block; width: 9px; height: 9px; flex: none; }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.tag.warn { background: rgba(232,137,43,.14); color: #f0b070; }
.tsub { color: var(--muted); font-size: 12px; margin-top: 6px; }
.tile .mbar { margin-top: 10px; }
.mbar { height: 4px; background: rgba(255,255,255,.08); flex: 1; min-width: 40px; }
.mbar > i { display: block; height: 100%; background: var(--gold); transition: width .4s ease; }
.mbar.hot > i { background: var(--amber); }
.mbar.crit > i { background: var(--robber); }

/* Charakter-Slots */
.char-slots { grid-column: span 12; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.char-card {
  display: flex; flex-direction: column; gap: 12px; text-align: left; position: relative;
  background: var(--surface); border: 1px solid var(--line); padding: 18px 20px 16px; min-width: 0;
  transition: border-color .15s, background .15s;
}
button.char-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.char-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--muted); }
.char-card.cop::before { background: var(--cop); }
.char-card.robber::before { background: var(--robber); }
.char-card.active { border-color: rgba(201,162,74,.55); background: linear-gradient(180deg, rgba(201,162,74,.07), transparent 60%), var(--surface); }
.char-card.empty::before { background: transparent; }
.char-card.empty { border-style: dashed; justify-content: center; }
.char-card.locked { opacity: .65; }
.cc-slot { display: flex; align-items: center; justify-content: space-between; font: 600 11.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cc-active, .cc-pick { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1 var(--body); letter-spacing: .02em; text-transform: none; }
.cc-active { color: var(--gold); }
.cc-pick { color: var(--text-2); opacity: 0; transition: opacity .15s; }
button.char-card:hover .cc-pick, button.char-card:focus-visible .cc-pick { opacity: 1; }
.cc-active svg.i, .cc-pick svg.i { width: 14px; height: 14px; }
.cc-name { font: 700 30px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.cc-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.cc-facts div { padding: 8px 10px; border-left: 1px solid var(--line); min-width: 0; }
.cc-facts div:first-child { border-left: 0; }
.cc-facts dt { font-size: 11px; color: var(--muted); }
.cc-facts dd { font-weight: 600; font-size: 13.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cc-foot { font-size: 12px; color: var(--muted); }
.cc-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--text-2); }
.cc-empty svg.i { width: 22px; height: 22px; color: var(--muted); }
.cc-empty b { font: 600 18px/1.1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.cc-empty span { font-size: 13px; color: var(--muted); max-width: 40ch; }

/* Karten-Raster für Fahrzeuge & Immobilien */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cards-grid:empty { display: none; }
.card.empty { padding: 50px 20px; }
.gcard { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.gimg { aspect-ratio: 16 / 8; background: #05060a; display: grid; place-items: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gimg.none svg.i { width: 56px; height: 56px; color: #2a2f3b; stroke-width: 1.2; }
.gbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gtop { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.gtop b { font: 600 19px/1.15 var(--display); letter-spacing: .03em; text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }
.gsub { color: var(--muted); font-size: 12.5px; }
.gline { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.gline.muted { color: var(--muted); font-size: 12.5px; }
.gfoot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.plate { flex: none; font: 600 12.5px/1 var(--mono); letter-spacing: .08em; padding: 5px 8px; background: #e9e6dc; color: #14181f; border: 1px solid #c9c4b4; }
.plate.none { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); font-family: var(--body); letter-spacing: 0; }
.meters { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.meter-row { display: grid; grid-template-columns: 78px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.meter-row b { text-align: right; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.storage-card { margin-top: 16px; }

/* Fraktion */
.fx-head { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-bottom: 16px; position: relative; overflow: hidden; --fx: var(--gold); }
.fx-head::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--fx); }
.fx-head.cop { --fx: var(--cop); }
.fx-emblem { width: 64px; height: 64px; display: grid; place-items: center; font: 700 30px/1 var(--display); color: var(--fx); background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); text-transform: uppercase; }
.fx-emblem svg.i { width: 32px; height: 32px; color: var(--cop); }
.fx-title h2 { font: 700 34px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--text); margin: 0; overflow-wrap: anywhere; }
.fx-title .eyebrow { color: var(--fx); margin-bottom: 8px; }
.fx-title p { color: var(--text-2); margin-top: 8px; font-size: 13.5px; }
.motd { margin-top: 12px; padding: 8px 12px; border-left: 2px solid var(--fx); background: rgba(255,255,255,.03); color: var(--text); font-size: 13.5px; }
.fx-stats { display: grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--line); }
.fx-stats div { padding: 10px 16px; border-left: 1px solid var(--line); }
.fx-stats div:first-child { border-left: 0; }
.fx-stats dt { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.fx-stats dd { font: 600 20px/1.2 var(--display); margin-top: 3px; white-space: nowrap; }
.fx-stats small { display: block; color: var(--muted); font-size: 11.5px; }
.fx-perms { margin-bottom: 16px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.fx-perms .row, .fx-progress .row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 12.5px; border: 1px solid var(--line); color: var(--muted); }
.pchip svg.i { width: 13px; height: 13px; }
.pchip.on { border-color: rgba(47,191,113,.35); color: #9fe3bd; background: rgba(47,191,113,.07); }
.fx-progress { display: flex; flex-direction: column; gap: 12px; }
.fx-progress .mbar { height: 6px; flex: none; }
.fx-none { display: flex; gap: 20px; align-items: flex-start; }
.fx-none > svg.i { width: 40px; height: 40px; color: var(--gold); stroke-width: 1.4; }
.fx-none b { display: block; font: 600 20px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.fx-none p { color: var(--text-2); max-width: 70ch; margin-top: 6px; }
.fx-main { padding: 0; }
.fx-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.fx-tabs button { height: 40px; padding: 0 14px; font: 600 12.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.fx-tabs button:hover { color: var(--text); }
.fx-tabs button[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.fx-main .table-wrap { overflow: auto; }
table.plist tr.you td { background: rgba(201,162,74,.04); }
table.plist td .tag { margin-left: 8px; }
.on-tag { display: inline-flex; align-items: center; gap: 7px; color: #7fdcaa; font-size: 12.5px; }
.tk-select {
  height: 32px; padding: 0 30px 0 10px; font-size: 13px; color: var(--text); cursor: pointer;
  border: 1px solid var(--line-strong); appearance: none; -webkit-appearance: none;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B9B5AC' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
}
.tk-select option { background: var(--surface-2); }
.fx-invites { margin: 12px 14px 0; padding: 12px 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.fx-invites .inv { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-2); }
.fx-hint { padding: 14px 18px 0; }
.ranks { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }
.rank-card { margin: 0 18px; border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.rank-card.boss { border-color: rgba(201,162,74,.35); }
.rank-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rank-top .spacer { flex: 1; }
.rank-name { width: 220px; height: 34px; font-weight: 600; }
.rank-name:disabled { background: transparent; border-color: transparent; padding-left: 0; color: var(--text); opacity: 1; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; }
.perm { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; padding: 4px 0; }
.perm input { accent-color: var(--gold); }
.perm.off { cursor: default; color: var(--muted); }
.perm.off input:checked + span { color: var(--text-2); }
.rank-new { margin: 0 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rank-new .input { width: 240px; height: 34px; }
.fx-log { list-style: none; padding: 8px 0; }
.fx-log li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 9px 18px; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13.5px; }
.fx-log .when { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.fx-settings { padding: 18px; max-width: 640px; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color { width: 32px; height: 32px; border: 2px solid transparent; outline: 1px solid var(--line-strong); }
.color.on { border-color: var(--ink); outline: 2px solid var(--text); }
#dlg-body .form { margin-top: 12px; }
#dlg-body .muted { margin-top: 8px; }

/* Akte: Fahndung & Strafzettel */
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rec-card { display: flex; flex-direction: column; gap: 12px; }
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rec-head b { font: 600 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.rec-list { list-style: none; display: flex; flex-direction: column; }
.rec-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13.5px; color: var(--text-2); }
.rec-list li.act { color: var(--text); }
.rec-list li .muted { white-space: nowrap; }

@media (max-width: 1100px) {
  .fx-head { grid-template-columns: auto 1fr; }
  .fx-stats { grid-column: 1 / -1; }
  .rec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .char-slots { grid-template-columns: 1fr; }
  .cc-facts { grid-template-columns: repeat(2, 1fr); }
  .cc-facts div:nth-child(3) { border-left: 0; }
  .cc-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cc-name { font-size: 26px; }
  .cards-grid { grid-template-columns: 1fr; }
  .fx-head { grid-template-columns: 1fr; gap: 14px; }
  .fx-emblem { width: 48px; height: 48px; font-size: 22px; }
  .fx-title h2 { font-size: 26px; }
  .fx-stats { grid-template-columns: 1fr 1fr 1fr; }
  .fx-stats div { padding: 8px 10px; }
  .fx-stats dd { font-size: 16px; }
  .rank-card, .rank-new { margin: 0 12px; }
  .rank-name { width: 100%; }
  .fx-log li { grid-template-columns: 1fr; gap: 2px; padding: 9px 14px; }
  .rec-list li { flex-direction: column; gap: 2px; }
}

/* =====================================================================
   Forum
   ===================================================================== */
.team.sm { height: 18px; padding: 0 6px; font-size: 10px; margin-left: 6px; vertical-align: 1px; }
.team.sm::before { width: 5px; height: 5px; }
.fnew { display: inline-block; margin-left: 8px; padding: 2px 7px; font: 600 10.5px/1.3 var(--body); background: var(--gold); color: #15120b; vertical-align: 2px; }
.mini.wide { grid-column: span 12; }
.mini-head .fnew { margin-left: 0; }
.flist-mini { list-style: none; display: flex; flex-direction: column; }
.flist-mini li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.flist-mini li:last-child { border-bottom: 0; }
.flist-mini a { color: var(--text); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist-mini a:hover { color: var(--gold); }
.flist-mini li.unread a::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; }
.flist-mini small { color: var(--muted); white-space: nowrap; font-size: 12px; }

.forum-home { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.fcats, .fthreads { padding: 0; }
.fhead-row { display: grid; grid-template-columns: 1fr 80px 80px 240px; gap: 16px; padding: 10px 20px 10px 76px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.fcat, .fthread {
  display: grid; grid-template-columns: 40px 1fr 80px 80px 240px; gap: 16px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.04); text-decoration: none; color: inherit;
}
.fthread { grid-template-columns: 34px 1fr 80px 80px 160px; }
.fcat:last-child, .fthread:last-child { border-bottom: 0; }
.fcat:hover, .fthread:hover { background: rgba(255,255,255,.025); }
.fcat-ic, .fthread-ic { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.04); color: var(--muted); }
.fthread-ic { width: 34px; height: 34px; }
.fcat.unread .fcat-ic, .fthread.unread .fthread-ic { background: var(--gold-soft); color: var(--gold); }
.fthread.pinned .fthread-ic { color: var(--gold); }
.fcat-main, .fthread-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fcat-main b, .fthread-main b { font-weight: 600; font-size: 14.5px; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fthread-main b { font-size: 14px; }
.fcat.unread .fcat-main > b, .fthread.unread .fthread-main > b { color: #fff; }
.fcat-main .tag, .fthread-main .tag { font-size: 10.5px; padding: 2px 6px; }
.fcat-main .fnew, .fthread-main .fnew { margin-left: 0; }
.fcat-main .muted { font-size: 12.5px; }
.fthread-main small { color: var(--muted); font-size: 12px; }
.fthread-main small b { display: inline; font-size: 12px; color: var(--text-2); font-weight: 600; }
.fcat-num { display: flex; flex-direction: column; align-items: flex-end; }
.fcat-num b { font: 600 17px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.fcat-num small { color: var(--muted); font-size: 11.5px; }
.fcat-last { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; }
.fcat-last .ft { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcat-last small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flatest { padding: 0; }
.flatest ul { list-style: none; }
.flatest li { display: flex; flex-direction: column; gap: 3px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
.flatest li:last-child { border-bottom: 0; }
.flatest a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 13.5px; }
.flatest a:hover { color: var(--gold); }
.flatest li.unread a::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: 1px; }
.flatest small { color: var(--muted); font-size: 12px; }

.fbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.fbar .spacer { flex: 1; }
.fbar .btn { text-decoration: none; }
.fcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; min-width: 0; }
.fcrumbs a { color: var(--text-2); text-decoration: none; }
.fcrumbs a:hover { color: var(--gold); }
.fcrumbs span:last-child { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.fcrumbs .sep { color: var(--muted); }
.fteam { margin-bottom: 14px; }
.fpager { display: flex; gap: 4px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.fpager .btn { min-width: 32px; }

.fthread-head { margin-bottom: 4px; display: flex; flex-direction: column; gap: 10px; }
.fthread-head h2 { font: 700 28px/1.15 var(--display); letter-spacing: .02em; color: var(--text); margin: 0; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.fthread-head h2 svg.i { width: 20px; height: 20px; color: var(--gold); }
.fthread-head .muted b { color: var(--text-2); }
.fthread-head .notice { margin: 0; }
.fmod { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.fposts { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.fpost { padding: 0; display: grid; grid-template-columns: 190px 1fr; }
.fpost.staff { border-color: rgba(201,162,74,.3); }
.fpost-side { padding: 18px 16px; border-right: 1px solid var(--line); background: rgba(255,255,255,.015); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.fpost-side .avatar { width: 44px; height: 44px; font-size: 20px; margin-bottom: 4px; }
.fpost-side b { font-weight: 600; overflow-wrap: anywhere; }
.fpost-side small { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.fpost-side small.muted { color: var(--muted); }
.fpost-side .team.sm { margin-left: 0; }
.fpost-main { padding: 14px 20px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fpost-main header { display: flex; gap: 12px; font-size: 12px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.fpost-body { line-height: 1.6; overflow-wrap: anywhere; }
.fpost-body p + p, .fpost-body p + blockquote, .fpost-body blockquote + p { margin-top: 10px; }
.fpost-body a { color: var(--gold); text-underline-offset: 3px; }
.fpost-body.deleted { color: var(--muted); font-style: italic; }
.fquote { margin: 4px 0; padding: 8px 12px; border-left: 3px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--text-2); font-size: 13.5px; }
.fquote cite { display: block; font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.fpost-main footer { display: flex; gap: 4px; justify-content: flex-end; margin-top: auto; padding-top: 4px; }
.fedit { display: flex; flex-direction: column; gap: 8px; }
.fcompose { display: flex; flex-direction: column; gap: 10px; }
.fcompose textarea { min-height: 110px; }
.fcompose .form-actions { padding: 14px 0 0; margin: 0; }
.fcompose .notice { margin: 0; }

@media (max-width: 1100px) {
  .forum-home { grid-template-columns: 1fr; }
  .fhead-row { display: none; }
  .fcat { grid-template-columns: 40px 1fr 70px 70px; }
  .fcat-last { display: none; }
  .fthread { grid-template-columns: 34px 1fr 70px 120px; }
}
@media (max-width: 820px) {
  .fcat { grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 14px; }
  .fcat .fcat-num { display: none; }
  .fthread { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; }
  .fthread-ic, .fthread .fcat-num.col-hide, .fthread .fcat-last { display: none; }
  .fpost { grid-template-columns: 1fr; }
  .fpost-side { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; gap: 8px; }
  .fpost-side .avatar { width: 30px; height: 30px; font-size: 14px; margin: 0; }
  .fpost-main { padding: 12px 14px; }
  .fthread-head h2 { font-size: 22px; }
  .flist-mini li { flex-direction: column; gap: 2px; }
}
