/* Lager nach Gruppen */
.inv-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 18px; }
.win-body .inv-groups h4 { margin: 8px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.inv-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; border-top: 1px solid var(--line); }
.inv-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.inv-row.zero { color: var(--muted); }
.inv-row.zero b { font-weight: 400; }
.inv-row button { padding: 3px 8px !important; font-size: 12px !important; }

/* Vorkommen */
.dep { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(76,211,138,.12); color: #8fe3b4; margin: 1px 0; }
.dep.unknown { background: rgba(255,255,255,.06); color: var(--muted); }

/* Gründen */
.found-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 6px 0 10px; }
.found-info small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.found-info p { margin: 3px 0 0; font-size: 14px; }
.win-body select optgroup { color: var(--muted); }

/* Markt-Gruppen */
.win-body h4.mk-group { margin: 10px 4px 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Offline */
.offline-note { color: #f3cf6d; font-size: 13px; }
.win-body .ch.locked { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) { .found-info { grid-template-columns: 1fr; } }
.pill.lvl { color: #f3cf6d; }
.mini-label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.project.done { opacity: .7; }
.win-body .project h4 { margin: 10px 0 2px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Flaggen */
.flag { height: 13px; width: auto; border-radius: 2px; vertical-align: -2px; margin-right: 5px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.state-flag { height: 40px; width: auto; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); flex: none; }
.nb-head { display: flex; align-items: center; gap: 2px; }
.who .flag { margin-right: 6px; }
.pill.speed { color: #ef6a5b; border-color: rgba(239,106,91,.4); }
.here { color: #4cd38a; font-weight: 600; margin: 8px 0 0; }
.pill.loc { font-weight: 500; color: var(--muted); }
.fx-box { display: grid; gap: 8px; }
.fx-seg button { font-size: 13px; }

/* Länder & Profile */
.tbl.clickable tr[data-country], .tbl.clickable tr[data-player] { cursor: pointer; }
.tbl.clickable tr[data-country]:hover td, .tbl.clickable tr[data-player]:hover td { background: rgba(255,255,255,.04); }
.win-body button.sort { border: 0 !important; background: none !important; padding: 0 !important; color: var(--muted); font-size: 12px; }
.win-body button.sort.on { color: var(--accent); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.stat-row div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; }
.stat-row small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.stat-row b { font-size: 18px; font-variant-numeric: tabular-nums; }
.archive-row { border-top: 1px solid var(--line); padding: 6px 0; } .archive-row:first-of-type { border-top: 0; }
.archive-row p { margin: 3px 0 0; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head h2 { margin: 0; text-transform: none; font-size: 24px; color: var(--text); letter-spacing: -.01em; }
.profile-head p { margin: 2px 0; }
.profile-head .leader { margin-left: auto; text-align: right; display: grid; }
.profile-head .leader b { font-size: 28px; color: var(--accent); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #111; background: var(--c); flex: none; }
.bio-form { display: grid; gap: 8px; }
.bio-form textarea { font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); resize: vertical; }
.who-link { cursor: pointer; } .who-link:hover { text-decoration: underline; }

/* Firmen: Stufe, Auto-Verkauf, Firmenkonto */
.co-level { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.co-autosell { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.co-autosell .chk { display: inline-flex; align-items: center; gap: 6px; min-width: 110px; }
.co-account { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.co-account summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.co-account .up { color: #4cc38a; } .co-account .down { color: #e5484d; }

/* Firmenübersicht: Summen, kompakte Zeilen, Reiter */
.co-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 10px; }
.co-sum div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 2px; }
.co-sum small, .co-fig small, .co-name small { color: var(--muted); font-size: 11px; }
.co-sum b { font-size: 15px; font-variant-numeric: tabular-nums; }
.co-tools { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.co-tools button { font-size: 12px; padding: 4px 10px; }
.co-list { display: grid; gap: 8px; }
.co-item { padding: 0 !important; overflow: hidden; }
.co-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.co-row:hover { background: rgba(255,255,255,.03); }
.co-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #4cc38a; }
.co-dot.warn { background: #f5a524; } .co-dot.bad { background: #e5484d; }
.co-name { display: grid; min-width: 0; flex: 1; } .co-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-pips { display: inline-flex; gap: 2px; } .co-pips i { width: 6px; height: 12px; border-radius: 2px; background: var(--line); } .co-pips i.on { background: var(--accent); }
.co-fig { display: grid; text-align: right; min-width: 64px; } .co-fig b { font-variant-numeric: tabular-nums; font-size: 13px; }
.co-chev { color: var(--muted); width: 12px; }
.co-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 0 12px 8px; border-bottom: 1px solid var(--line); }
.co-tabs button { font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.co-tabs button.on { background: var(--accent); color: #1b1404; border-color: transparent; }
.co-body { padding: 10px 12px 12px; }
.co-body .co-autosell, .co-body .co-account { border-top: 0; margin-top: 0; padding-top: 0; }
.co-found { margin-top: 12px; } .co-found summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
@media (max-width: 560px) { .co-row .hide-narrow { display: none; } .co-row { gap: 8px; } }
.co-tabs { flex-wrap: wrap; overflow: visible; }
.win-body .co-tabs button.on { background: var(--accent) !important; color: #1b1404 !important; border-color: transparent !important; }
