/* Community: Kanäle links, Chat/Call in der Mitte, Mitglieder rechts. */
/* iPhone: 100vh ist höher als der sichtbare Bereich, dvh passt sich den Leisten des Browsers an */
.cm-body { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.cm-body .nav { position: static; flex-shrink: 0; padding-top: 10px; padding-bottom: 10px; }
.cm { flex: 1; min-height: 0; display: grid; grid-template-columns: 264px 1fr 240px; background: var(--bg); }
.cm.no-members { grid-template-columns: 264px 1fr; }
.cm.no-members .cm-members { display: none; }

/* ------------------------------------------------------------ links */
.cm-side { display: flex; flex-direction: column; min-height: 0; background: var(--bg2); border-right: 1px solid var(--line); }
.cm-server { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.cm-server b { font-size: 16px; }
.cm-channels { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.cm-cat { margin: 14px 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.cm-ch { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text2); font: 15px var(--font); text-align: left; cursor: pointer; }
.cm-ch:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.cm-ch.on { background: rgba(255, 138, 0, .13); color: var(--text); }
.cm-ch .ic { width: 17px; height: 17px; opacity: .7; }
.cm-ch .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-ch.unread .name { color: var(--text); font-weight: 700; }
.cm-ch .badge { min-width: 18px; padding: 0 6px; border-radius: 99px; background: #ff5c6c; color: #fff; font-size: 11.5px; font-weight: 800; text-align: center; }
.cm-ch .lockic { width: 13px; height: 13px; opacity: .45; }
.cm-vusers { margin: 2px 0 6px 30px; }
.cm-vuser { display: flex; align-items: center; gap: 7px; padding: 3px 6px; border-radius: 6px; font-size: 13.5px; color: var(--text2); }
.cm-vuser .avatar { transition: box-shadow .12s; }
.cm-vuser.speaking .avatar { box-shadow: 0 0 0 2px #3ccf8e; }
.cm-vuser .ic { width: 14px; height: 14px; opacity: .6; }
.cm-vuser .live { padding: 0 5px; border-radius: 4px; background: #ff3b4e; color: #fff; font-size: 10px; font-weight: 800; }

.cm-voicebar { padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(60, 207, 142, .06); }
.cm-voicebar .st { font-size: 13px; font-weight: 700; color: #5ce0a0; }
.cm-voicebar .chn { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.cm-ctrls { display: flex; gap: 6px; }
.cm-ctl { flex: 1; display: flex; align-items: center; justify-content: center; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .07); color: var(--text); cursor: pointer; }
.cm-ctl:hover { background: rgba(255, 255, 255, .13); }
.cm-ctl.on { background: rgba(255, 138, 0, .25); color: var(--acc2); }
.cm-ctl.off { color: #ff7a85; }
.cm-ctl.leave { background: #ff4757; color: #fff; }
.cm-ctl:disabled { opacity: .35; cursor: default; }
.cm-mebar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); background: #101217; }
.cm-mebar .who { flex: 1; min-width: 0; line-height: 1.2; }
.cm-mebar .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.cm-mebar .who span { font-size: 12px; }
.cm-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text2); cursor: pointer; }
.cm-iconbtn:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.cm-iconbtn.on { color: var(--acc2); }

/* ------------------------------------------------------------ Mitte */
.cm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cm-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cm-head .title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; white-space: nowrap; }
.cm-head .topic { flex: 1; min-width: 0; color: var(--text3); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 12px; border-left: 1px solid var(--line); }
.cm-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.cm-msgs { flex: 1; overflow-y: auto; padding: 16px 0 8px; }
.cm-welcome { padding: 20px 20px 24px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cm-welcome .big { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 138, 0, .14); color: var(--acc); margin-bottom: 10px; }
.cm-welcome .big .ic { width: 32px; height: 32px; }
.cm-welcome h2 { font-size: 26px; margin-bottom: 4px; }
.cm-msg { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 3px 20px; }
.cm-msg.first { margin-top: 12px; }
.cm-msg:hover { background: rgba(255, 255, 255, .025); }
.cm-msg.mention { background: rgba(255, 179, 71, .08); box-shadow: inset 3px 0 0 var(--acc2); }
.cm-msg .avatar { margin-top: 2px; cursor: pointer; }
.cm-msg .time-l { font-size: 11px; color: var(--text3); text-align: right; padding-top: 4px; opacity: 0; }
.cm-msg:hover .time-l { opacity: 1; }
.cm-msg .meta { display: flex; align-items: baseline; gap: 8px; }
.cm-msg .meta b { font-size: 15px; cursor: pointer; }
.cm-msg .meta b:hover { text-decoration: underline; }
.cm-msg .meta .time { font-size: 12px; color: var(--text3); }
.cm-msg .tag { padding: 0 6px; border-radius: 5px; font-size: 10.5px; font-weight: 800; background: rgba(255, 255, 255, .08); }
.cm-text { font-size: 15px; line-height: 1.45; color: #dfe2e8; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.cm-text code { padding: 1px 5px; border-radius: 5px; background: #0b0c10; font: 13.5px var(--mono); }
.cm-text pre { margin: 6px 0; padding: 10px 12px; border-radius: 8px; background: #0b0c10; border: 1px solid var(--line); font: 13.5px var(--mono); white-space: pre-wrap; }
.cm-text a { color: #5cb8ff; }
.cm-text .at { padding: 0 3px; border-radius: 4px; background: rgba(255, 138, 0, .18); color: var(--acc2); font-weight: 600; }
.cm-text .edited { font-size: 11px; color: var(--text3); }
.cm-reply { display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font-size: 13px; color: var(--text3); cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-reply b { color: var(--text2); }
.cm-img { display: block; max-width: min(420px, 100%); max-height: 320px; margin-top: 6px; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); }
.cm-reacts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.cm-react { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line); background: #13151b; color: var(--text2); font-size: 13.5px; cursor: pointer; }
.cm-react.mine { border-color: rgba(255, 138, 0, .6); background: rgba(255, 138, 0, .12); color: var(--text); }
.cm-tools { position: absolute; right: 18px; top: -14px; display: none; gap: 2px; padding: 3px; border-radius: 9px; background: #1b1e26; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); z-index: 3; }
.cm-msg:hover .cm-tools { display: flex; }
.cm-tools button { width: 30px; height: 28px; }
.cm-tools .ic { width: 16px; height: 16px; }
.cm-picker { position: absolute; right: 18px; top: 18px; display: flex; gap: 2px; padding: 5px; border-radius: 10px; background: #1b1e26; border: 1px solid var(--line); z-index: 4; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.cm-picker button { width: 34px; height: 34px; border: 0; border-radius: 7px; background: none; font-size: 19px; cursor: pointer; }
.cm-picker button:hover { background: rgba(255, 255, 255, .08); }
.cm-more { display: block; margin: 0 auto 10px; }
.cm-day { display: flex; align-items: center; gap: 10px; margin: 18px 20px 4px; font-size: 12px; font-weight: 700; color: var(--text3); }
.cm-day::before, .cm-day::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.cm-compose { padding: 0 16px 16px; flex-shrink: 0; }
.cm-typing { height: 20px; padding: 2px 4px; font-size: 12.5px; color: var(--text3); }
.cm-replybar { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 11px 11px 0 0; background: #101217; font-size: 13px; color: var(--text2); }
.cm-replybar b { color: var(--text); }
.cm-replybar button { margin-left: auto; }
.cm-box { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border-radius: 12px; background: #181b22; border: 1px solid var(--line); }
.cm-replybar + .cm-box { border-radius: 0 0 12px 12px; }
.cm-box textarea { flex: 1; min-height: 40px; max-height: 220px; padding: 9px 6px; border: 0; outline: none; resize: none; background: none; color: var(--text); font: 15px/1.4 var(--font); }
.cm-box.drop { border-color: var(--acc); }
.cm-preview { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 6px; border-radius: 10px; background: #13151b; border: 1px solid var(--line); font-size: 13px; }
.cm-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cm-noperm { padding: 13px 16px; border-radius: 12px; background: #13151b; color: var(--text3); font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------ Sprach- und Live-Kanal */
.cm-call { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #08090c; }
.cm-grid { flex: 1; min-height: 0; display: grid; gap: 10px; padding: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: minmax(180px, 1fr); overflow-y: auto; }
.cm-grid.focus { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
.cm-tile { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #15171d; overflow: hidden; border: 2px solid transparent; transition: border-color .12s; }
.cm-tile.speaking { border-color: #3ccf8e; }
.cm-tile video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.cm-tile .label { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 8px; background: rgba(0, 0, 0, .65); font-size: 13px; font-weight: 600; }
.cm-tile .label .ic { width: 14px; height: 14px; }
.cm-tile .live { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: #ff3b4e; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; }
.cm-tile .maxbtn { position: absolute; right: 8px; top: 8px; opacity: 0; background: rgba(0, 0, 0, .6); }
.cm-tile:hover .maxbtn { opacity: 1; }
.cm-tile.hidden-tile { display: none; }
.cm-callbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; flex-shrink: 0; }
.cm-callbar .cm-ctl { flex: 0 0 auto; width: 52px; height: 46px; border-radius: 14px; }
.cm-join { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; }
.cm-join .big { display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 138, 0, .14); color: var(--acc); }
.cm-join .big .ic { width: 40px; height: 40px; }
.cm-join .who { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ rechts */
.cm-members { overflow-y: auto; padding: 14px 10px; background: var(--bg2); border-left: 1px solid var(--line); }
.cm-mgroup { margin: 12px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.cm-member { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.cm-member:hover { background: rgba(255, 255, 255, .05); }
.cm-member.off { opacity: .4; }
.cm-member .dot { position: relative; }
.cm-member .dot::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #3ccf8e; border: 2px solid var(--bg2); }
.cm-member.off .dot::after { background: #5a5f6b; }
.cm-member .nm { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cm-pop { position: fixed; z-index: 60; width: 280px; padding: 16px; border-radius: 14px; background: #1b1e26; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.cm-pop .top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cm-pop b { font-size: 17px; }
.cm-pop p { margin: 8px 0 0; font-size: 14px; color: var(--text2); white-space: pre-wrap; }

.cm-lightbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .85); cursor: zoom-out; }
.cm-lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 10px; }
.cm-loading { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--text3); }

@media (max-width: 1100px) { .cm { grid-template-columns: 240px 1fr; } .cm-members { display: none; } }
@media (max-width: 700px) {
  .cm { grid-template-columns: 1fr; }
  .cm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 70; transform: translateX(-100%); transition: transform .2s; }
  .cm.side-open .cm-side { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
}
.mobile-only { display: none; }
@media (max-width: 700px) { .mobile-only { display: inline-flex; } }
.cm-lightbox[hidden], .cm-voicebar[hidden] { display: none; }

/* ------------------------------------------------------------ Start-Kanäle: Download + Support */
.cm-start { flex: 1; width: 100%; overflow-y: auto; padding: 28px clamp(16px, 4vw, 48px) 120px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cm-start > * { width: 100%; max-width: 900px; flex-shrink: 0; }
.cm-hero { display: flex; align-items: center; gap: 22px; padding: 26px; border-radius: 18px; background: linear-gradient(135deg, rgba(255, 138, 0, .16), rgba(255, 179, 71, .05)); border: 1px solid rgba(255, 138, 0, .35); flex-wrap: wrap; }
.cm-hero img { width: 76px; height: 76px; border-radius: 18px; }
.cm-hero > div { flex: 1; min-width: 200px; }
.cm-hero h2 { font-size: 26px; margin-bottom: 4px; }
.cm-hero p { margin: 0; }
.cm-hero .btn { display: inline-flex; align-items: center; gap: 10px; }
.cm-note { padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--text2); font-size: 14.5px; }
.cm-card { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.cm-card h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; margin: 0 0 14px; }
.cm-card h3 .ic { color: var(--acc); }
.cm-card .keybox { font-size: 19px; }
.cm-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.cm-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.cm-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 138, 0, .15); color: var(--acc2); font-weight: 800; }
.cm-steps li span { color: var(--text2); font-size: 14.5px; }
.cm-form { display: grid; gap: 10px; margin-bottom: 12px; }
.cm-tickets { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.cm-ticket { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line); background: #13151b; color: var(--text); font: 15px var(--font); text-align: left; cursor: pointer; }
.cm-ticket:hover { border-color: rgba(255, 138, 0, .5); }
.cm-ticket span:first-child { flex: 1; }
.cm-thread { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.cm-tmsg { padding: 12px 14px; border-radius: 12px; background: #13151b; border: 1px solid var(--line); }
.cm-tmsg.staff { border-color: rgba(255, 138, 0, .45); background: rgba(255, 138, 0, .07); }
.cm-tmsg .cm-text { margin-top: 4px; }

/* Key-Karte unten rechts */
.cm-keycard { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 270px; padding: 14px 16px; border-radius: 14px; background: #1b1e26; border: 1px solid rgba(255, 138, 0, .45); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 8px; }
.cm-keycard .top { display: flex; align-items: center; justify-content: space-between; }
.cm-keycard .top b { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.cm-keycard .top .ic { color: var(--acc); width: 16px; height: 16px; }
.cm-keyval { padding: 9px 10px; border-radius: 9px; border: 1px dashed rgba(255, 138, 0, .55); background: #0f1116; color: var(--text); font: 700 15px var(--mono); letter-spacing: 1px; cursor: copy; }
.cm-keyval:hover { border-style: solid; }
.cm-keycard.small { width: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.cm-keypill { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px; border: 1px solid rgba(255, 138, 0, .5); background: #1b1e26; color: var(--text); font: 600 14px var(--font); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.cm-keypill .ic { color: var(--acc); width: 16px; height: 16px; }
@media (max-width: 700px) { .cm-keycard { left: 12px; right: 12px; width: auto; } }
.cm-start .btn.small:not(.ghost), .cm-hero .btn { color: #170c00; font-family: var(--font); letter-spacing: 0; }
.cm-start .btn.small.ghost { color: var(--text); font-family: var(--font); }

.cm-gate { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(255, 138, 0, .5); font-size: 14px; color: var(--text2); }
.cm-gate .btn.small:not(.ghost) { color: #170c00; }
.cm-hero.wait { background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border-color: var(--line); }

/* ------------------------------------------------------------ Handy & Tablet */
@media (max-width: 1100px) {
  .cm, .cm.no-members { grid-template-columns: 240px 1fr; }
  .cm-members { display: block; position: fixed; right: 0; top: 0; bottom: 0; width: 280px; z-index: 70; transform: translateX(100%); transition: transform .2s; }
  .cm.members-open .cm-members { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  .cm.members-open::before { content: ''; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .55); }
}
@media (max-width: 700px) {
  .cm, .cm.no-members { grid-template-columns: 1fr; }
  .cm.side-open::before { content: ''; position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .55); }
  .cm-head { gap: 6px; padding: 0 8px; }
  .cm-head .topic { display: none; }
  .cm-msg { padding: 3px 12px; grid-template-columns: 36px 1fr; gap: 0 10px; }
  .cm-msg .avatar { width: 36px !important; height: 36px !important; }
  .cm-tools { right: 8px; }
  .cm-compose { padding: 0 10px 10px; }
  .cm-start { padding: 16px 12px 40px; }
  .cm-hero { padding: 18px; gap: 14px; }
  .cm-hero img { width: 56px; height: 56px; border-radius: 14px; }
  .cm-hero h2 { font-size: 21px; }
  .cm-hero .btn { width: 100%; justify-content: center; }
  .cm-card { padding: 16px; }
  .cm-card .keybox { font-size: 16px; flex-wrap: wrap; gap: 10px; }
  .cm-card .keybox .btn { margin-left: 0; width: 100%; justify-content: center; }
  .cm-steps li { grid-template-columns: 30px 1fr; }
  .cm-keycard { display: none; } /* Key steht auf dem Handy im Kanal download */
  .cm-gate { flex-direction: column; align-items: stretch; }
  .cm-grid { padding: 8px; grid-template-columns: 1fr; grid-auto-rows: minmax(160px, 1fr); }
  .cm-callbar { gap: 6px; padding: 10px; }
  .cm-callbar .cm-ctl { width: 46px; height: 42px; }
}

.cm-guide { flex: 1; width: 100%; min-height: 0; border: 0; background: var(--bg); }

/* Neue Nachrichten in einem Kanal: pink, Erwähnungen rot */
.cm-ch.unread { background: rgba(255, 79, 163, .10); }
.cm-ch.unread .name { color: #ff6fb5; font-weight: 800; }
.cm-ch.unread .ic { color: #ff6fb5; opacity: 1; }
.cm-ch .badge.neu { background: #ff4fa3; }
.cm-ch.unread::before { content: ''; position: absolute; left: -8px; width: 4px; height: 18px; border-radius: 0 4px 4px 0; background: #ff4fa3; }
.cm-ch { position: relative; }

/* Kanal changelog */
.cl-version h3 { justify-content: space-between; }
.cl-items { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--text2); line-height: 1.5; }
.cl-items li::marker { color: var(--acc); }

/* Kanal vorschläge */
.sg-form { display: flex; flex-direction: column; gap: 10px; }
.sg-form .btn { align-self: flex-start; }
.sg-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sg-tabs button { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text2); border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.sg-tabs button.on { background: rgba(255, 138, 0, .15); border-color: rgba(255, 138, 0, .5); color: var(--acc); font-weight: 700; }
.sg-item { display: flex; gap: 16px; align-items: flex-start; }
.sg-vote { flex-shrink: 0; width: 56px; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text2); cursor: pointer; font: inherit; }
.sg-vote svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sg-vote b { font-size: 17px; color: var(--text); }
.sg-vote:hover { border-color: rgba(255, 138, 0, .5); color: var(--acc); }
.sg-vote.on { background: rgba(255, 138, 0, .15); border-color: rgba(255, 138, 0, .6); color: var(--acc); }
.sg-vote.on b { color: var(--acc); }
.sg-body { flex: 1; min-width: 0; }
.sg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.sg-body p { margin: 6px 0 0; color: var(--text2); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sg-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text3); }
.sg-meta select.sg-status { width: auto; min-width: 0; height: auto; padding: 4px 28px 4px 8px; font-size: 13px; }

/* Bilder im Chat */
.cm-img.loading { width: 260px; height: 180px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: cm-shimmer 1.2s linear infinite; }
@keyframes cm-shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
.cm-img-gone { margin-top: 6px; padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--line); color: var(--text3); font-size: 13px; display: inline-block; }
.cm-upload { margin-left: auto; color: var(--acc); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.cm-box.drop { outline: 2px dashed var(--acc); outline-offset: 3px; }

/* Kanal funktionen */
.ft-head h2 { margin: 0 0 4px; font-size: 24px; }
.ft-head p { margin: 0 0 14px; }
.ft-search { max-width: 520px; }
.ft-group { margin: 22px 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ft-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.ft-card:hover { border-color: rgba(255, 138, 0, .45); }
.ft-ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 138, 0, .12); color: var(--acc); }
.ft-ic svg { width: 19px; height: 19px; }
.ft-card b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.ft-card span:not(.ft-ic) { display: block; font-size: 13px; line-height: 1.45; color: var(--text2); }

/* Klingel unten links: aus = durchgestrichen und blass */
.sound-off { opacity: .45; position: relative; }
.sound-off::after { content: ''; position: absolute; left: 25%; right: 25%; top: 50%; height: 2px; background: currentColor; transform: rotate(-35deg); }

/* Profilkarte */
.cm-pop-profile { padding: 0 16px 16px; overflow: hidden; width: 300px; }
.cm-pop-banner { height: 96px; margin: 0 -16px; }
.cm-pop-av { margin: -38px 0 8px; }
.cm-pop-av .avatar { border: 4px solid #1b1e26; box-sizing: content-box; }
.cm-pop-mod { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cm-pop-mod .link { font-size: 13px; color: #ff8a95; }

/* iPhone und Android: Seite festhalten, damit sie beim Tippen nicht hochrutscht und die Knöpfe oben sichtbar bleiben */
@media (max-width: 1100px) { body.cm-body { position: fixed; inset: 0; width: 100%; height: auto; } }

/* Spiel Status */
.cm-mtext { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.cm-presence { font-size: 12px; color: #5ce0a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-presence a { color: inherit; font-weight: 700; }
.cm-presence.big { font-size: 13.5px; margin: 4px 0 2px; white-space: normal; }

/* Kanal umfragen */
.pl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pl-head h3 { font-size: 21px; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.pl-text { margin: 8px 0 0; color: var(--text2); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pl-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 16px; }
.pl-opt { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); min-width: 0; }
.pl-opt.mine { border-color: rgba(255, 138, 0, .65); background: rgba(255, 138, 0, .07); box-shadow: 0 0 0 1px rgba(255, 138, 0, .25); }
.pl-img { display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #0f1116; cursor: zoom-in; aspect-ratio: 16 / 10; }
.pl-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.pl-img:hover img { transform: scale(1.03); }
.pl-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; overflow-wrap: anywhere; }
.pl-res { display: flex; flex-direction: column; gap: 5px; }
.pl-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.pl-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .4s ease; }
.pl-opt:not(.mine) .pl-bar span { background: rgba(255, 179, 71, .45); }
.pl-count { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text3); }
.pl-count b { font-size: 15px; color: var(--text); }
.pl-opt .btn { margin-top: auto; justify-content: center; }
.pl-item.done .pl-opt { opacity: .92; }
.pl-item .sg-meta { margin-top: 14px; }
.pl-del { color: #ff8a95 !important; }
.pl-form { display: flex; flex-direction: column; gap: 10px; }
.pl-form [hidden] { display: none !important; }
.pl-form-opts { display: flex; flex-direction: column; gap: 10px; }
.pl-form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.pl-f-img { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pl-f-img .btn { flex-shrink: 0; }
.pl-f-path { flex: 1; min-width: 0; }
.pl-f-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 7px; cursor: pointer; border: 1px solid var(--line); }
.pl-f-del { font-size: 13px; color: #ff8a95; }
.pl-form > .link { align-self: flex-start; }
.pl-form-btns { display: flex; gap: 10px; flex-wrap: wrap; }
/* Eigene Rückfrage (statt window.confirm) */
.cm-ask-back { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.cm-ask { width: 100%; max-width: 360px; padding: 20px; border-radius: 16px; background: #1b1e26; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.cm-ask p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.5; }
.cm-ask-btns { display: flex; justify-content: flex-end; gap: 10px; }
.cm-ask .btn.small.ghost { color: var(--text); }
@media (max-width: 700px) {
  .pl-opts { grid-template-columns: 1fr; }
  .pl-form-row { grid-template-columns: 1fr; }
  .pl-head h3 { font-size: 18px; }
}

/* Privatnachrichten */
.cm-dmhead { display: flex; align-items: center; justify-content: space-between; }
.cm-dmnew { background: none; border: 0; color: var(--text3); cursor: pointer; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; }
.cm-dmnew:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.cm-dmnew .ic { width: 16px; height: 16px; }
.cm-dmempty { padding: 2px 12px 8px; font-size: 13px; color: var(--text3); }
.cm-dm { align-items: center; }
.cm-dmtext { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.cm-dmtext .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-dmlast { font-size: 12px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-dmtitle { display: flex; align-items: center; gap: 8px; }
.cm-dmblock { margin-left: auto; }
.cm-mdm { margin-left: auto; background: none; border: 0; color: var(--text3); cursor: pointer; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; opacity: 0; }
.cm-member:hover .cm-mdm, .cm-mdm:focus { opacity: 1; }
.cm-mdm:hover { color: var(--acc); background: rgba(255, 255, 255, .08); }
.cm-mdm .ic { width: 16px; height: 16px; }
@media (hover: none) { .cm-mdm { opacity: 1; } }
.cm-dmdlg { position: fixed; inset: 0; z-index: 95; background: rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 16px; }
.cm-dmbox { width: min(420px, 100%); max-height: 80vh; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: #1b1e26; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.cm-dmbox-head { display: flex; align-items: center; justify-content: space-between; }
.cm-dmlist { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; min-height: 60px; }
.cm-dmpick { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.cm-dmpick:hover { background: rgba(255, 255, 255, .06); }
.cm-dmpick span:nth-child(2) { flex: 1; font-weight: 600; }

/* Kanal marktplatz: Karte mit Vorschau */
.cm-modcard { margin-top: 8px; width: min(360px, 100%); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.cm-modcard img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cm-modbtns { display: flex; gap: 8px; padding: 10px; }
.cm-modbtns .btn { flex: 1; justify-content: center; }
.cm-modbtns .btn:not(.ghost) { color: #170c00; }
