/* SHS Messenger — app-indeling: serverbalk, zijbalk, gesprek, infopaneel, mobiel. */

.shell {
  position: fixed; inset: 0; z-index: 1;
  display: grid;
  grid-template-columns: 72px 312px minmax(0, 1fr) 290px;
  grid-template-rows: minmax(0, 1fr);
  gap: 10px; padding: 10px 10px 10px 0;
}
.shell.info-closed { grid-template-columns: 72px 312px minmax(0, 1fr) 0; }
.shell.info-closed .info { display: none; }
.shell[data-view="home"] .info, .shell[data-view="friends"] .info, .shell[data-view="discover"] .info,
.shell[data-view="workshop"] .info, .shell[data-view="developer"] .info, .shell[data-view="admin"] .info, .shell[data-view="stories"] .info { display: none; }
.shell[data-view="home"], .shell[data-view="friends"], .shell[data-view="discover"], .shell[data-view="workshop"],
.shell[data-view="developer"], .shell[data-view="admin"], .shell[data-view="stories"] { grid-template-columns: 72px 312px minmax(0, 1fr) 0; }
body.offline .shell { filter: saturate(.6); }

.side, .main, .info { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.main { position: relative; }
.tabbar { display: none; }

/* ------------------------------------------------------------------ serverbalk */

.rail { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 10px; min-height: 0; overflow: hidden; }
.rail-servers { display: flex; flex-direction: column; align-items: center; gap: 10px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 8px 0; width: 100%; min-height: 0; }
.rail-servers::-webkit-scrollbar { display: none; }
.rail-sep { width: 34px; height: 2px; border-radius: 2px; background: rgba(47, 127, 214, .25); flex: 0 0 auto; margin: 2px 0; }
.rail .grow { flex: 1 1 auto; }
.rail-item {
  position: relative; width: 72px; display: flex; justify-content: center; border: 0; background: none; padding: 5px 0; cursor: pointer; flex: 0 0 auto;
}
.rail-item .sicon, .rail-item > img, .rail-btn { transition: transform .15s, border-radius .2s, box-shadow .15s; }
.rail-item:hover .sicon, .rail-item:hover .rail-btn, .rail-item:hover > img { transform: scale(1.05); }
.rail-item.home > img {
  width: 48px; height: 48px; padding: 7px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #e3effc); box-shadow: 0 2px 8px rgba(17, 62, 120, .25), inset 0 0 0 1px rgba(47, 127, 214, .25);
}
:root[data-theme="nacht"] .rail-item.home > img { background: linear-gradient(180deg, #2a4a74, #1a3254); }
.rail-item.sel.home > img { box-shadow: 0 0 0 3px rgba(47, 127, 214, .35), 0 2px 8px rgba(17, 62, 120, .3); }
.rail-item .sicon { --size: 48px; }
.rail-item.sel .sicon { border-radius: 16px; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 5px var(--blue), 0 3px 10px rgba(17,62,120,.35); }
.rail-item.sel .sicon::after { border-radius: 12px; }
.rail-pill { position: absolute; left: 0; top: 50%; width: 5px; height: 0; border-radius: 0 4px 4px 0; background: var(--blue-dd); transform: translateY(-50%); transition: height .15s; }
:root[data-theme="nacht"] .rail-pill { background: #cfe4ff; }
.rail-item.unread .rail-pill { height: 9px; }
.rail-item:hover .rail-pill { height: 18px; }
.rail-item.sel .rail-pill { height: 36px; }
.rail-item .badge { position: absolute; right: 9px; bottom: 3px; box-shadow: 0 0 0 2px #fff; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ffffff, #e3effc); color: var(--blue); box-shadow: 0 2px 6px rgba(17, 62, 120, .2), inset 0 0 0 1px rgba(47, 127, 214, .25);
}
.rail-btn .ic { width: 22px; height: 22px; }
.rail-btn.green { color: var(--ok); }
.rail-btn.orange { color: #e2681f; }
.rail-btn.navy { color: var(--navy); }
.rail-item.sel .rail-btn { background: var(--title); color: #fff; }
:root[data-theme="nacht"] .rail-btn { background: linear-gradient(180deg, #2a4a74, #1a3254); }

/* ------------------------------------------------------------------ zijbalk */

.side-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.side-foot { flex: 0 0 auto; }

.mecard {
  position: relative; flex: 0 0 auto; padding: 14px 12px 12px;
  background-size: cover; background-position: center; color: #fff;
  border-radius: var(--r) var(--r) 0 0;
}
.mecard-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 40, 80, .05) 0%, rgba(10, 40, 80, .35) 100%); border-radius: inherit; }
.mecard-row { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.mecard-dp { border: 0; padding: 0; background: none; cursor: pointer; }
.mecard-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.mecard-name { display: flex; align-items: center; gap: 4px; border: 0; background: none; color: #fff; padding: 0; cursor: pointer; text-align: left; font-weight: 700; font-size: 15px; text-shadow: 0 1px 3px rgba(0, 20, 50, .6); min-width: 0; }
.mecard-name .ic { width: 14px; height: 14px; flex: 0 0 auto; }
.mecard-status { font-weight: 400; font-size: 12px; opacity: .9; white-space: nowrap; }
.mecard-psm {
  border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.22); color: #fff; text-align: left; cursor: text;
  border-radius: 7px; padding: 3px 8px; font-size: 12px; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-shadow: 0 1px 2px rgba(0,20,50,.5);
}
.mecard-psm.empty { opacity: .85; }
.mecard-psm:hover { background: rgba(255,255,255,.35); }
.mecard-music { border: 0; background: none; color: #fff; font-size: 11.5px; padding: 0; text-align: left; cursor: pointer; text-shadow: 0 1px 2px rgba(0,20,50,.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mecard-acts { display: flex; flex-direction: column; gap: 2px; }
.ibtn.on-glass { color: #fff; }
.ibtn.on-glass:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.5); color: #fff; box-shadow: none; }

.storystrip { display: flex; gap: 10px; padding: 10px 12px 4px; overflow-x: auto; scrollbar-width: none; flex: 0 0 auto; }
.storystrip::-webkit-scrollbar { display: none; }
.story-bubble { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 52px; border: 0; background: none; padding: 0; cursor: pointer; flex: 0 0 auto; }
.story-bubble .ring { position: relative; padding: 2px; border-radius: 14px; background: linear-gradient(135deg, #c9d6e4, #e8eef5); }
.story-bubble.unseen .ring { background: conic-gradient(from 200deg, var(--petal-y), var(--petal-o), var(--petal-g), var(--petal-b), var(--petal-y)); }
.story-bubble .ring .dp { --frame: #fff; }
.story-bubble .ring .sicon { --size: 40px; }
.story-bubble.add .ring i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--title); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.story-bubble.add .ring i .ic { width: 12px; height: 12px; }
.story-bubble .lbl { font-size: 10.5px; color: var(--ink-2); max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.side-tabs { display: flex; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.side-tabs button {
  position: relative; flex: 1; border: 0; background: none; padding: 7px 4px 9px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.side-tabs button::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.side-tabs button.on { color: var(--blue-d); }
.side-tabs button.on.t-chats::after { background: linear-gradient(90deg, var(--petal-b), var(--blue-l)); }
.side-tabs button.on.t-contacts::after { background: linear-gradient(90deg, var(--petal-g), #7fe08f); }
.side-tabs button.on.t-servers::after { background: linear-gradient(90deg, var(--petal-o), var(--petal-y)); }
.side-tabs .badge { font-size: 10px; min-width: 16px; height: 16px; }

.side-search { display: flex; gap: 6px; align-items: center; padding: 8px 10px; flex: 0 0 auto; }
.side-search .input-wrap { flex: 1; }
.input.small, .side-search .input { min-height: 32px; padding-top: 5px; padding-bottom: 5px; border-radius: 999px; font-size: 13px; }

.side-list { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 2px 6px 10px; min-height: 0; }
.side-empty { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.side-title { padding: 12px 14px 4px; font-weight: 700; color: var(--ink-2); }

.litem {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 8px; border-radius: 10px; border: 1px solid transparent; background: none; text-align: left;
  cursor: pointer; color: var(--ink); outline: none;
}
.litem:hover { background: var(--hover); }
.litem:focus-visible { border-color: var(--sel-line); }
.litem.sel { background: var(--sel); border-color: var(--sel-line); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.litem-main { flex: 1 1 auto; min-width: 0; }
.litem-top { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.litem-name { font-weight: 600; font-size: 13.5px; min-width: 0; }
.litem-status { font-size: 11px; color: var(--muted); white-space: nowrap; }
.litem-time { margin-left: auto; font-size: 11px; color: var(--faint); white-space: nowrap; padding-left: 6px; }
.litem-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.litem.unread .litem-name { color: var(--navy); font-weight: 700; }
:root[data-theme="nacht"] .litem.unread .litem-name { color: #fff; }
.litem.unread .litem-sub { color: var(--ink-2); font-weight: 600; }
.litem .badge { flex: 0 0 auto; }
.litem .muted-ic { width: 14px; height: 14px; color: var(--faint); }
.litem.contact { padding: 4px 8px; }
.litem.contact.off { opacity: .62; }
.litem.contact .litem-sub { font-size: 11.5px; }
.litem.danger { color: var(--bad); }
.me-menu .litem { gap: 12px; padding: 11px 12px; font-size: 14px; }
.me-menu .litem .ic { color: var(--blue); width: 20px; height: 20px; }
.psm-text { font-style: italic; }
.psm-music { color: var(--blue-d); margin-left: 6px; }
.live-call { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.live-call .ic { width: 13px; height: 13px; }
.typing-inline { color: var(--blue); font-style: italic; }

.group-pic { position: relative; width: 40px; height: 40px; flex: 0 0 auto; }
.group-pic > img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.group-pic .dp { position: absolute; }
.group-pic .dp:nth-child(1) { left: 0; top: 0; }
.group-pic .dp:nth-child(2) { right: 0; top: 6px; }
.group-pic .dp:nth-child(3) { left: 8px; bottom: 0; }
.group-pic.big { width: 44px; height: 44px; }
.group-pic.huge { width: 84px; height: 84px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.group-pic.huge .dp { position: static; }

.cgroup-head { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; background: none; padding: 8px 6px 3px; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--blue-d); }
.cgroup-head .ic { width: 13px; height: 13px; }
.cgroup-head .muted { font-weight: 400; }
.pending-bar { display: flex; align-items: center; gap: 8px; width: calc(100% - 4px); margin: 6px 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid #a9dfb6; background: linear-gradient(180deg, #f1fbf3, #def5e3); color: #1d5a2f; font-weight: 600; font-size: 12.5px; cursor: pointer; }
:root[data-theme="nacht"] .pending-bar { background: #14321e; color: #a9f0bd; border-color: #2a6b3e; }

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; padding: 6px 4px; }
.server-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-soft); cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink); min-width: 0; }
.server-tile:hover { background: var(--hover); border-color: var(--sel-line); }
.server-tile .sicon { --size: 54px; }
.server-tile span { max-width: 100%; }
.server-tile .badge { position: absolute; top: 6px; right: 8px; }
.server-tile.unread::before { content: ""; position: absolute; top: 8px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* server-zijbalk */
.srv-head {
  position: relative; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px;
  padding: 10px 14px; border: 0; cursor: pointer; text-align: left; color: #fff;
  background: var(--title); background-size: cover; background-position: center;
  border-radius: var(--r) var(--r) 0 0; text-shadow: 0 1px 2px rgba(0, 30, 70, .6); flex: 0 0 auto;
}
.srv-head.has-banner { min-height: 96px; align-items: flex-end; }
.srv-head.has-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(5,25,55,.6)); border-radius: inherit; }
.srv-head::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0)); border-radius: inherit; pointer-events: none; }
.srv-head > * { position: relative; z-index: 1; }
.srv-name { flex: 1 1 auto; font-weight: 700; font-size: 15.5px; }
.srv-head .ic { width: 16px; height: 16px; }
.srv-node { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); padding: 5px 14px 0; }
.srv-node .ic { width: 13px; height: 13px; }
.invite-cta { margin: 8px 10px 2px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px; border-radius: 10px; border: 1px dashed var(--sel-line); background: var(--glass-soft); color: var(--blue-d); font-weight: 600; font-size: 12.5px; cursor: pointer; }
.invite-cta:hover { background: var(--hover); border-style: solid; }
.invite-cta .ic { width: 15px; height: 15px; }

.ccat-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 2px 2px; }
.ccat-head > button:first-child { display: flex; align-items: center; gap: 3px; border: 0; background: none; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); padding: 2px; }
.ccat-head > button:first-child:hover { color: var(--ink); }
.ccat-head .ic { width: 12px; height: 12px; }
.ccat-head .ibtn { width: 22px; height: 22px; opacity: 0; }
.ccat-head:hover .ibtn { opacity: 1; }
.chan { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 8px; margin: 1px 0; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 14px; outline: none; }
.chan > .ic { width: 17px; height: 17px; flex: 0 0 auto; opacity: .75; }
.chan:hover { background: var(--hover); color: var(--ink); }
.chan.sel { background: var(--sel); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--sel-line); }
:root[data-theme="nacht"] .chan.sel { color: #fff; }
.chan.unread { color: var(--ink); font-weight: 700; }
.chan.unread::before { content: ""; position: absolute; left: -6px; top: 50%; width: 4px; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0; background: var(--ink); }
.chan .chan-gear { margin-left: auto; width: 24px; height: 24px; opacity: 0; }
.chan:hover .chan-gear, .chan.sel .chan-gear { opacity: .8; }
.chan .badge { margin-left: auto; }
.chan .badge + .chan-gear { margin-left: 4px; }
.chan .tag.ts { padding: 0 4px; font-size: 9.5px; }
.voice-users { padding: 0 0 4px 30px; display: flex; flex-direction: column; gap: 1px; }
.vu { display: flex; align-items: center; gap: 7px; padding: 3px 6px; border-radius: 7px; font-size: 13px; color: var(--ink-2); cursor: default; }
.vu:hover { background: var(--hover); }
.vu .vu-ic { width: 14px; height: 14px; color: var(--muted); }
.vu .vu-ic.red { color: var(--bad); }
.vu .tag { font-size: 9px; padding: 0 4px; }
.add-chan { display: flex; align-items: center; gap: 6px; margin: 10px 4px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 12.5px; padding: 4px; }
.add-chan:hover { color: var(--blue-d); }
.add-chan .ic { width: 15px; height: 15px; }

/* voet */
.voicebar { margin: 0 8px 6px; padding: 8px 8px 8px 10px; border-radius: 12px; background: linear-gradient(180deg, #e9fbe9, #d3f2d6); border: 1px solid #a9dfb6; }
:root[data-theme="nacht"] .voicebar { background: linear-gradient(180deg, #17402a, #12331f); border-color: #2a6b3e; }
.voicebar-top { display: flex; align-items: center; gap: 6px; }
.vb-sig { color: var(--ok); display: flex; }
.vb-sig.slecht { color: var(--warn); }
.vb-sig .ic { width: 18px; height: 18px; }
.vb-title { font-size: 12.5px; font-weight: 700; color: #1f7a3a; }
:root[data-theme="nacht"] .vb-title { color: #8fe3a5; }
.vb-where { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 11.5px; cursor: pointer; max-width: 140px; display: block; }
.vb-where:hover { text-decoration: underline; }
.ibtn.hang { color: #fff; background: linear-gradient(180deg, #ff8a91, #e0313b); border-color: #b8252e; }
.ibtn.hang:hover { color: #fff; background: linear-gradient(180deg, #ff9aa0, #ea3c46); border-color: #b8252e; }
.userbar { display: flex; align-items: center; gap: 2px; padding: 8px; border-top: 1px solid var(--line); background: var(--glass-soft); border-radius: 0 0 var(--r) var(--r); }
.userbar-me { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 3px 4px; border-radius: 9px; cursor: pointer; text-align: left; color: var(--ink); }
.userbar-me:hover { background: var(--hover); }
.ub-name { font-weight: 700; font-size: 13px; }
.ub-sub { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------ gespreksvenster */

.chat-head { flex: 0 0 auto; min-height: 58px; padding: 8px 12px; border-radius: var(--r) var(--r) 0 0; flex-wrap: wrap; }
.chat-head .dp { --frame-shadow: 0; }
.chat-head .back { display: none; color: #fff; }
.chat-title { min-width: 0; cursor: pointer; }
.ct-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.ct-status { font-weight: 400; font-size: 12.5px; opacity: .9; }
.ct-sub { font-size: 12.5px; opacity: .92; }
.ct-sub .psm-music { color: #e8f4ff; }
.ch-ic .ic { width: 22px; height: 22px; opacity: .9; }
.chat-acts { display: flex; align-items: center; gap: 4px; }
.hbtn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.55); background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12));
  color: #fff; font-weight: 600; font-size: 12.5px; text-shadow: 0 1px 1px rgba(0,40,90,.4);
}
.hbtn:hover { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.22)); }
.hbtn .ic { width: 16px; height: 16px; }
.hbtn.green { background: linear-gradient(180deg, #7ee08c, #2fae47); border-color: #23843f; }
.call-banner { width: 100%; margin-top: 6px; padding: 6px; border-radius: 9px; border: 1px solid #a9dfb6; background: linear-gradient(180deg, #8ee59a, #3cb556); color: #fff; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; animation: pulse-green 1.6s infinite; }
@keyframes pulse-green { 50% { box-shadow: 0 0 0 4px rgba(62, 191, 104, .25); } }

.chat-body { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.msgs { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 6px 0 10px; outline: none; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 120px); }
.msgs-top { display: flex; justify-content: center; min-height: 6px; padding: 4px; }
.msgs-loading, .msgs-error { display: flex; justify-content: center; padding: 40px; color: var(--muted); }
.jump { position: absolute; right: 18px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid #1b5fae; background: var(--title); color: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; box-shadow: var(--shadow); }
.jump .ic { width: 15px; height: 15px; }
.main.dropping::after { content: "Laat los om te versturen"; position: absolute; inset: 10px; z-index: 20; border: 3px dashed var(--blue-l); border-radius: 14px; background: rgba(230, 242, 254, .85); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: var(--blue-d); }

.chat-intro { padding: 28px 22px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chat-intro h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 24px; color: var(--navy); }
:root[data-theme="nacht"] .chat-intro h2 { color: #fff; }
.chat-intro p { margin: 0; color: var(--muted); }
.intro-hash { width: 64px; height: 64px; border-radius: 50%; background: var(--title); color: #fff; display: flex; align-items: center; justify-content: center; }
.intro-hash .ic { width: 36px; height: 36px; }

.day-divider { display: flex; align-items: center; gap: 10px; margin: 14px 18px 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.day-divider::before, .day-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.new-divider { display: flex; align-items: center; margin: 8px 18px; font-size: 11px; font-weight: 700; color: var(--bad); }
.new-divider::before { content: ""; flex: 1; height: 1px; background: var(--bad); opacity: .6; }
.new-divider span { padding: 0 0 0 8px; text-transform: uppercase; letter-spacing: .4px; }

.msg { position: relative; display: flex; gap: 12px; padding: 4px 70px 3px 18px; margin-top: 10px; }
.msg.grouped { margin-top: 0; padding-top: 1px; }
.msg:hover { background: rgba(47, 127, 214, .05); }
.msg.mentioned { background: var(--mention); box-shadow: inset 3px 0 0 var(--mention-line); }
.msg.editing { background: rgba(47,127,214,.08); }
.msg.pending .msg-text { opacity: .6; }
.msg.failed .msg-text { color: var(--bad); }
.msg.flash { animation: flash 1.6s; }
@keyframes flash { 0%, 40% { background: rgba(255, 194, 58, .35); } }
.msg-dp { border: 0; background: none; padding: 0; cursor: pointer; align-self: flex-start; margin-top: 2px; }
.msg-time-side { width: 40px; flex: 0 0 auto; text-align: right; font-size: 10.5px; color: var(--faint); opacity: 0; padding-top: 3px; }
.msg:hover .msg-time-side { opacity: 1; }
.msg-main { flex: 1 1 auto; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.msg-name { border: 0; background: none; padding: 0; font-weight: 700; font-size: 14px; color: var(--navy); cursor: pointer; }
:root[data-theme="nacht"] .msg-name { color: #dbeaff; }
.msg-name:hover { text-decoration: underline; }
.msg-says { font-size: 12.5px; color: var(--muted); }
.msg-says::after { content: ":"; }
.msg-time { font-size: 11px; color: var(--faint); margin-left: 2px; }
.msg-text { padding: 1px 0 0 0; font-size: 14.5px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; white-space: normal; color: var(--ink); }
:root[data-compact="1"] .msg { margin-top: 4px; }
.msg-text .emo { width: 22px; height: 22px; vertical-align: -5px; margin: 0 1px; }
.msg-text.jumbo .emo { width: 46px; height: 46px; vertical-align: middle; }
.msg-text a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(31,111,201,.35); }
.msg-text code { font-family: var(--font-mono); font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--panel-3); border: 1px solid var(--line); }
.msg-text pre.code { margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: #0f1f33; color: #dbe9ff; overflow-x: auto; font-size: 12.5px; max-width: 100%; }
.msg-text pre.code code { background: none; border: 0; padding: 0; color: inherit; }
.msg-text blockquote { margin: 3px 0; padding: 2px 0 2px 10px; border-left: 4px solid var(--sky-3); color: var(--ink-2); }
.msg-text .h1 { display: block; font-size: 20px; font-weight: 700; margin: 4px 0; }
.msg-text .h2 { display: block; font-size: 17px; font-weight: 700; margin: 3px 0; }
.msg-text .h3 { display: block; font-size: 15px; font-weight: 700; }
.msg-text .spoiler { background: #2d4058; color: transparent; border-radius: 4px; padding: 0 3px; cursor: pointer; transition: all .15s; }
.msg-text .spoiler img { opacity: 0; }
.msg-text .spoiler.shown { background: var(--panel-3); color: inherit; }
.msg-text .spoiler.shown img { opacity: 1; }
.mention { display: inline; padding: 0 3px; border-radius: 4px; background: rgba(47, 127, 214, .15); color: var(--blue-d); font-weight: 600; cursor: pointer; }
.mention:hover { background: var(--blue); color: #fff; }
.mention.role { background: color-mix(in srgb, var(--rc) 18%, transparent); color: var(--rc); }
.mention.all { background: rgba(240, 180, 41, .25); color: #8a5c00; }
.edited { font-size: 10.5px; color: var(--faint); margin-left: 5px; }
.msg-reply { display: flex; align-items: center; gap: 5px; max-width: 100%; border: 0; background: none; padding: 0 0 3px; color: var(--muted); font-size: 12px; cursor: pointer; text-align: left; }
.msg-reply .ic { width: 13px; height: 13px; transform: scaleX(-1); }
.msg-reply b { color: var(--ink-2); }
.msg-reply:hover { color: var(--ink); }
.story-quote { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); padding: 2px 8px; border-radius: 8px; border-left: 3px solid var(--petal-o); background: var(--panel-2); margin: 2px 0; }
.story-quote .ic { width: 14px; height: 14px; }
.msg-failed { font-size: 12px; color: var(--bad); }
.receipt { display: flex; align-items: center; justify-content: flex-end; gap: 0; font-size: 11px; color: var(--blue); margin-top: 2px; }
.receipt .ic { width: 13px; height: 13px; margin-right: -6px; }
.receipt .ic:last-of-type { margin-right: 4px; }

.msg-tools {
  position: absolute; right: 14px; top: -14px; z-index: 2; display: none; align-items: center; gap: 1px; padding: 2px;
  border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--line-2); box-shadow: var(--shadow-s);
}
.msg:hover .msg-tools, .msg-tools:focus-within { display: flex; }
.mt-react { border: 0; background: none; padding: 3px; border-radius: 7px; cursor: pointer; display: flex; }
.mt-react:hover { background: var(--hover); transform: scale(1.15); }
.mt-react .emo { width: 20px; height: 20px; }

.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.react .emo { width: 18px; height: 18px; }
.react:hover { border-color: var(--sel-line); }
.react.me { border-color: var(--blue-l); background: linear-gradient(180deg, #edf6ff, #d9ebff); color: var(--blue-dd); }
:root[data-theme="nacht"] .react.me { background: #1f3d66; color: #cfe4ff; }
.react.add { opacity: 0; padding: 2px 6px; }
.react.add .ic { width: 15px; height: 15px; }
.msg:hover .react.add { opacity: 1; }

.atts { display: flex; flex-direction: column; gap: 6px; margin-top: 5px; max-width: min(520px, 100%); }
.att-imgs { display: grid; gap: 4px; }
.att-imgs.n2, .att-imgs.n4 { grid-template-columns: 1fr 1fr; }
.att-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.att-img { border: 0; padding: 0; background: var(--panel-3); border-radius: 10px; overflow: hidden; cursor: zoom-in; display: block; }
.att-img img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; }
.att-imgs.n1 .att-img img { width: auto; max-width: 100%; }
.att-video { max-width: 100%; max-height: 360px; border-radius: 10px; background: #000; }
.att-audio, .att-file { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-size: 13px; text-decoration: none; }
.att-audio audio { height: 32px; max-width: 220px; }
.att-file:hover { border-color: var(--sel-line); text-decoration: none; }
.att-file .ic, .att-audio .ic { color: var(--blue); }

.msg.special { gap: 8px; padding: 4px 18px; margin-top: 8px; align-items: center; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.msg.special > .ic { width: 18px; height: 18px; color: var(--muted); }
.msg.special .msg-time { margin-left: 4px; }
.msg.special .sys-ic { width: 18px; height: 18px; }
.msg.special.nudge { color: #b33a12; font-weight: 600; }
.msg.special.nudge > .ic { color: #e2681f; }
.msg.special.wink { padding: 8px 18px; }
.wink-thumb { width: 42px; height: 42px; border-radius: 10px; box-shadow: var(--shadow-s); background: #fff; }
.msg.special.call > .ic { color: var(--ok); }
.msg.special.call.missed > .ic { color: var(--bad); }
.msg.special.join > .ic { color: var(--ok); }

.typing-line { height: 18px; padding: 0 18px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.typing-line .dots { display: inline-flex; gap: 3px; }
.typing-line .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: tdot 1.2s infinite; }
.typing-line .dots i:nth-child(2) { animation-delay: .15s; }
.typing-line .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.composer { flex: 0 0 auto; padding: 0 12px 12px; position: relative; }
.composer.locked .composer-box { opacity: .6; }
.reply-bar { display: flex; align-items: center; gap: 8px; margin: 0 2px; padding: 6px 10px; border-radius: 10px 10px 0 0; background: var(--panel-3); border: 1px solid var(--line); border-bottom: 0; font-size: 12.5px; }
.reply-bar .ic { width: 15px; height: 15px; color: var(--blue); }
.pending-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--panel-2); }
.pf { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 6px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); max-width: 240px; font-size: 12px; }
.pf img { width: 34px; height: 34px; object-fit: cover; border-radius: 5px; }
.pf .ic.ok { color: var(--ok); }
.pf.err { border-color: var(--bad); }
.pbar { width: 60px; height: 5px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--blue); }
.composer-box { position: relative; border: 1px solid #a9c8ea; border-radius: 14px; background: var(--panel); box-shadow: 0 2px 8px rgba(17, 62, 120, .08), inset 0 1px 0 #fff; }
:root[data-theme="nacht"] .composer-box { border-color: #2e4f7d; box-shadow: none; }
.toolbar { display: flex; align-items: center; gap: 1px; padding: 4px 6px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f6faff, #ebf3fd); border-radius: 14px 14px 0 0; }
:root[data-theme="nacht"] .toolbar { background: linear-gradient(180deg, #1c3456, #172b48); }
.tbtn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 7px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--ink-2); cursor: pointer; font-size: 12px; font-weight: 600; }
.tbtn:hover { background: #fff; border-color: #b6d2ef; box-shadow: 0 1px 2px rgba(17,62,120,.12); }
:root[data-theme="nacht"] .tbtn:hover { background: #2a4a74; border-color: #3c6fb0; }
.tbtn .ic { width: 17px; height: 17px; }
.tbtn .emo.tb { width: 19px; height: 19px; }
.tbtn.fmt { width: 28px; padding: 0; justify-content: center; font-size: 14px; }
.tb-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.charcount { font-size: 11px; color: var(--warn); padding-right: 4px; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; padding: 6px 6px 6px 12px; }
.composer-input { flex: 1 1 auto; border: 0; outline: none; resize: none; background: none; padding: 6px 0; min-height: 34px; max-height: 220px; line-height: 1.45; font-size: 14.5px; color: var(--ink); }
.composer .send { min-height: 36px; padding: 6px 14px; border-radius: 11px; }
.composer .send .ic { width: 17px; height: 17px; }
.autocomplete { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 30; max-height: 280px; overflow: auto; padding: 5px; border-radius: 12px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow-l); }
.ac-title { font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 8px; text-transform: uppercase; }
.ac-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; cursor: pointer; text-align: left; font-size: 13px; color: var(--ink); }
.ac-item.on, .ac-item:hover { background: var(--title); color: #fff; }
.ac-item.on .muted, .ac-item:hover .muted { color: rgba(255,255,255,.8); }
.role-dot { width: 12px; height: 12px; border-radius: 50%; }

/* ------------------------------------------------------------------ infopaneel */

.info { overflow-y: auto; }
.info-banner { height: 110px; background-size: cover; background-position: center; flex: 0 0 auto; border-radius: var(--r) var(--r) 0 0; position: relative; }
.info-dp { margin: -42px 0 0 16px; position: relative; }
.info-body { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.info-name { font-size: 19px; font-weight: 700; font-family: var(--font-display); color: var(--navy); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
:root[data-theme="nacht"] .info-name { color: #fff; }
.info-user { color: var(--muted); font-size: 13px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.info-card h4 { margin: 0 0 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.members-head { padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.member { display: flex; align-items: center; gap: 9px; padding: 5px 8px; margin: 0 6px; border-radius: 9px; cursor: pointer; }
.member:hover { background: var(--hover); }
.member.off { opacity: .55; }
.member .m-name { font-weight: 600; font-size: 13.5px; }
.member .m-sub { font-size: 11.5px; color: var(--muted); }
.member .ic.crown { width: 14px; height: 14px; color: #e0a10b; }

/* ------------------------------------------------------------------ smaller scherm */

@media (max-width: 1240px) {
  .shell, .shell.info-closed { grid-template-columns: 72px 290px minmax(0, 1fr) 0; }
  .shell .info { display: none; }
  .shell.info-open .info { display: flex; position: fixed; right: 10px; top: 10px; bottom: 10px; width: 300px; z-index: 50; box-shadow: var(--shadow-l); }
  .hbtn span { display: none; }
  .hbtn { padding: 6px; }
}

/* ------------------------------------------------------------------ mobiel */

@media (max-width: 760px) {
  body { overflow: hidden; }
  body::before { opacity: .5; }
  .shell, .shell.info-closed, .shell[data-view] {
    display: block; padding: 0; gap: 0;
  }
  .rail { display: none; }
  .side {
    position: absolute; inset: 0; bottom: calc(58px + env(safe-area-inset-bottom)); border-radius: 0; border: 0;
    background: var(--glass-strong); padding-top: env(safe-area-inset-top);
  }
  .mecard { border-radius: 0; padding-top: 16px; }
  .side-foot .userbar { display: none; }
  .main {
    position: absolute; inset: 0; z-index: 20; border-radius: 0; border: 0; background: var(--panel);
    transform: translateX(100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
  .shell.open-main .main { transform: none; visibility: visible; }
  .shell.open-main .side { visibility: hidden; }
  .shell[data-view="home"] .main, .shell[data-view="serverlist"] .main, .shell[data-view="me"] .main { display: none; }
  .shell.in-server:not(.open-main) .side { bottom: calc(58px + env(safe-area-inset-bottom)); }
  .chat-head { border-radius: 0; }
  .chat-head .back { display: inline-flex; }
  .chat-acts .ibtn:not([data-act="info"]) { display: none; }
  .hbtn { padding: 6px; }
  .hbtn span { display: none; }
  .msg { padding: 4px 12px 3px 10px; gap: 9px; }
  .msg-tools { display: none !important; }
  .msg-time-side { display: none; }
  .msg.grouped .msg-main { padding-left: 49px; }
  .msg-text { font-size: 15px; }
  .composer { padding: 0 8px 8px; }
  .toolbar .hide-m, .toolbar .tbtn.fmt { display: none; }
  .tb-sep { display: none; }
  .composer .send span { display: none; }
  .composer-input { font-size: 16px; }
  .info, .shell.info-open .info { position: fixed; inset: 0; z-index: 60; border-radius: 0; width: auto; display: none; }
  .shell.info-open .info { display: flex; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex;
    height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border-top: 1px solid var(--line);
  }
  .shell.open-main .tabbar { display: none; }
  .tabbar button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--muted); font-size: 10.5px; font-weight: 600; cursor: pointer; }
  .tabbar button .ic { width: 23px; height: 23px; }
  .tabbar button .dp.xs { --size: 24px; }
  .tabbar button.on { color: var(--blue); }
  .tabbar button.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--petal-b), var(--blue-l)); }
  .tabbar .badge { position: absolute; top: 5px; left: calc(50% + 6px); font-size: 10px; min-width: 16px; height: 16px; }
  .tabbar .dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
  .toasts { left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; max-width: none; }
  .dialog { max-height: 92vh; }
  .overlay { padding: 10px; align-items: flex-end; }
  .dialog { border-radius: 18px 18px 14px 14px; }
}

/* ------------------------------------------------------------------ pickers (emoticons / winks) */

.picker {
  position: fixed;
  z-index: 1000;
  width: 320px;
  max-width: calc(100vw - 24px);
  border-radius: var(--r, 14px);
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-l);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: picker-pop .15s ease-out;
}
@keyframes picker-pop {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

.pk-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  background: var(--glass-soft);
}
:root[data-theme="nacht"] .pk-head { color: #fff; }
.pk-head .ic { width: 17px; height: 17px; color: var(--blue); }
.pk-head .emo { width: 20px; height: 20px; }

.pk-body {
  padding: 10px 12px;
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pk-sec { display: flex; flex-direction: column; gap: 6px; }
.pk-title { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .3px; }
.pk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 3px;
}
.pk-emo {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  transition: transform .1s, background .1s;
}
.pk-emo:hover { background: var(--hover); transform: scale(1.2); z-index: 2; }
.pk-emo .emo { width: 22px; height: 22px; }

.wink-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.wk {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}
.wk:hover { background: var(--hover); border-color: var(--sel-line); }
.wk img { width: 28px; height: 28px; object-fit: contain; }
.wk-prev {
  margin-left: auto;
  opacity: 0;
  color: var(--muted);
  display: flex;
  padding: 3px;
  border-radius: 4px;
}
.wk:hover .wk-prev { opacity: 1; }
.wk-prev:hover { background: var(--hover); color: var(--blue); }
.wk-prev .ic { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ profielkaart (Discord-stijl popover) */

.pcard {
  position: fixed;
  z-index: 1050;
  width: 300px;
  max-width: calc(100vw - 20px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(12, 46, 96, 0.28), 0 0 0 1px var(--line-2);
  background: var(--panel);
  animation: pcard-pop .15s cubic-bezier(.2, .9, .3, 1);
  display: flex;
  flex-direction: column;
}
@keyframes pcard-pop {
  from { opacity: 0; transform: scale(.94) translateY(4px); }
  to { opacity: 1; transform: none; }
}

.pc-banner {
  height: 96px;
  background-size: cover;
  background-position: center;
  background-color: var(--blue);
  position: relative;
  flex: 0 0 auto;
}
.pc-dp {
  position: absolute;
  top: 54px;
  left: 16px;
  z-index: 2;
}
.pc-dp .dp {
  --size: 72px;
  box-shadow: 0 0 0 4px var(--panel), 0 4px 12px rgba(0,0,0,.15);
  border-radius: 50%;
}
.pc-body {
  padding: 40px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
}
.pc-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
:root[data-theme="nacht"] .pc-name { color: #fff; }
.pc-user {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.pc-status {
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-sec {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.pc-sec h4 {
  margin: 0 0 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  font-weight: 700;
}
.pc-bio {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  word-break: break-word;
}
.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.role-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.featured-srv {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.featured-srv:hover { background: var(--hover); border-color: var(--sel-line); }
.pc-acts {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.pc-acts .btn { flex: 1 1 auto; justify-content: center; }

/* Volledig profiel dialog */
.pd { display: flex; flex-direction: column; gap: 14px; margin: -18px; }
.pd-banner { height: 140px; background-size: cover; background-position: center; background-color: var(--blue); position: relative; }
.pd-top { display: flex; align-items: flex-end; gap: 16px; padding: 0 20px; margin-top: -50px; position: relative; z-index: 2; }
.pd-top .dp { box-shadow: 0 0 0 5px var(--panel); border-radius: 50%; }
.pd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 10px 20px 20px; }

/* ------------------------------------------------------------------ call stage (spraakpodium) */

.call-stage {
  margin: 10px 14px 6px;
  padding: 12px 14px;
  border-radius: var(--r, 14px);
  background: linear-gradient(180deg, #132742, #0d1a2d);
  border: 1px solid rgba(47, 127, 214, .35);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  min-height: 120px;
}
.cs-tile {
  position: relative;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px 8px;
  overflow: hidden;
  transition: border-color .15s;
}
.cs-tile.speaking { border-color: var(--ok); box-shadow: 0 0 12px rgba(46,179,90,.4); }
.cs-tile.screen { grid-column: 1 / -1; min-height: 240px; }
.cs-tile video { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.cs-dp { margin-bottom: 8px; }
.cs-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #dbeaff;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.cs-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8fa6c6;
  margin-right: auto;
}
.cbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.cbtn:hover { background: rgba(255,255,255,.2); transform: scale(1.08); }
.cbtn.off { background: rgba(229, 65, 74, .25); color: #ff8a91; border-color: rgba(229, 65, 74, .4); }
.cbtn.on { background: var(--blue); color: #fff; border-color: var(--blue-l); }
.cbtn.hang { background: #e0313b; color: #fff; margin-left: auto; }
.cbtn.hang:hover { background: #ff4752; }
.cbtn .ic { width: 18px; height: 18px; }
.call-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3ebf68, #2a944e);
  color: #fff;
  border: 0;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46,179,90,.35);
  margin-left: auto;
}
.call-banner .ic { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ story viewer */

.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0,0,0,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.sv-stage {
  position: relative;
  width: 400px;
  max-width: 100%;
  height: 640px;
  max-height: 94vh;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  color: #fff;
}
.sv-bars {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 4px;
}
.sv-bars span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  overflow: hidden;
}
.sv-bars i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.sv-head {
  position: absolute;
  top: 20px;
  left: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.sv-body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.sv-body img, .sv-body video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sv-text {
  position: absolute;
  inset: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0,0,0,.7);
  padding: 30px 16px;
}
.sv-text.big { font-size: 24px; font-weight: 700; }
.sv-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  z-index: 5;
  background: none;
  border: 0;
  cursor: pointer;
}
.sv-tap.left { left: 0; }
.sv-tap.right { right: 0; }
.sv-foot {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sv-reacts {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.sv-reacts button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .1s;
}
.sv-reacts button:hover { transform: scale(1.2); }
.sv-reacts .emo { width: 22px; height: 22px; }
.sv-reply {
  display: flex;
  gap: 6px;
}
.sv-reply input {
  background: rgba(0,0,0,.45);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

