/* Theme tokens copied from naseehaplus.com */
:root {
  --bg: #f6f8f6;
  --bg2: #eef2ef;
  --card: #ffffff;
  --card2: #f3f6f3;
  --b: #e3e9e4;
  --b2: #d3ddd6;
  --g: #6e8c77;
  --g2: #5d7a66;
  --g3: #4f6b58;
  --g4: #3f5747;
  --gold: #a87f24;
  --gold-soft: #f6eedb;
  --t: #15201a;
  --m: #4d5c53;
  --m2: #6e7d74;
  --red: #cc4444;
  --own: #e4eee6;
  --r: 16px;
  --sh: 0 1px 2px rgba(31, 48, 38, .04), 0 8px 28px rgba(31, 48, 38, .08);
  --sh-lg: 0 2px 4px rgba(31, 48, 38, .05), 0 18px 48px rgba(31, 48, 38, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grad: linear-gradient(135deg, #6e8c77, #4f6b58);
  --grad-gold: linear-gradient(135deg, #c99a35, #a87f24);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(110, 140, 119, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(168, 127, 36, .06), transparent 60%),
    var(--bg);
  color: var(--t);
  font-family: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15.5px;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
a { color: var(--g3); }
.hidden { display: none !important; }
.muted { color: var(--m2); }

.screen { height: 100dvh; display: flex; flex-direction: column; }

/* ---------- buttons & inputs ---------- */
.btn {
  border: 1px solid var(--b2); border-radius: 999px; padding: 11px 18px; cursor: pointer; font-weight: 700;
  background: var(--card); color: var(--t); transition: transform .15s var(--ease), box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(79, 107, 88, .28); }
.btn.gold { background: var(--grad-gold); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(168, 127, 36, .25); }
.btn.small { padding: 7px 14px; font-size: 13.5px; }
.btn.danger { color: var(--red); border-color: #f0caca; background: #fdf3f3; }
.btn:disabled { opacity: .55; }
input, select, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--b2); color: var(--t);
  border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(110, 140, 119, .15); }
label { display: grid; gap: 6px; font-size: 13.5px; color: var(--m); font-weight: 700; }
label small { font-weight: 500; color: var(--m2); }

/* ---------- auth & pending ---------- */
.auth { align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.auth-card {
  width: 100%; max-width: 410px; background: var(--card); border: 1px solid var(--b); border-radius: 24px;
  padding: 26px 22px; text-align: center; box-shadow: var(--sh-lg); margin: auto;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand img { width: 74px; height: auto; }
.brand .en { font-weight: 800; font-size: 20px; color: var(--g4); letter-spacing: .3px; margin-top: 6px; }
.brand .ar { font-size: 13px; color: var(--m2); letter-spacing: 4px; }
.auth h1 { margin: 14px 0 4px; font-size: 22px; font-weight: 900; }
.auth p.lead { margin: 0 0 18px; color: var(--m2); }
.tabs { display: flex; background: var(--bg2); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 999px; cursor: pointer; color: var(--m); font-weight: 700; }
.tabs button.active { background: var(--g); color: #fff; box-shadow: 0 4px 12px rgba(79, 107, 88, .25); }
form { display: grid; gap: 12px; text-align: start; }
.error { color: var(--red); min-height: 1.4em; margin: 12px 0 0 !important; font-size: 14px; }
.note-box { background: var(--gold-soft); color: #7a5c17; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; text-align: start; line-height: 1.7; }

.status-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; margin: 6px auto 0; background: var(--gold-soft); }
.status-ic.bad { background: #fdf0f0; }
.pending-steps { text-align: start; display: grid; gap: 10px; margin: 16px 0; }
.pending-steps div { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.pending-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-size: 13px; flex: none; }
.pending-steps .done b { background: var(--g); color: #fff; }
.pending-actions { display: grid; gap: 8px; }
.reason { background: #fdf3f3; border: 1px solid #f3d6d6; color: #8a2f2f; border-radius: 12px; padding: 10px 12px; text-align: start; margin: 12px 0; font-size: 14px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--b); z-index: 2;
}
.chan-av { width: 44px; height: 44px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; flex: none; border: 1px solid var(--b); }
.chan-av img { width: 30px; height: auto; display: block; }
.titles { flex: 1; min-width: 0; }
.title { font-weight: 800; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { color: var(--m2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--m);
  font-size: 20px; cursor: pointer; flex: none; display: grid; place-items: center; position: relative;
}
.iconbtn:hover { background: var(--bg2); }
.iconbtn.send { background: var(--grad); color: #fff; font-size: 18px; box-shadow: 0 4px 12px rgba(79, 107, 88, .3); }
.iconbtn.send span { display: inline-block; transform: scaleX(-1); }
.iconbtn.send:disabled { opacity: .5; }
.dot {
  position: absolute; top: 4px; left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.back { font-size: 22px; color: var(--t); }

.banner {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex: none;
  background: var(--gold-soft); color: #6e5314; border-bottom: 1px solid #ecdcb5; font-size: 14px;
}
.banner .grow { flex: 1; line-height: 1.6; }
.banner .x { background: none; border: 0; color: #8d7a4c; cursor: pointer; font-size: 16px; }

/* ---------- feed ---------- */
#feed, .feed { flex: 1; overflow-y: auto; padding: 14px 10px 18px; overscroll-behavior: contain; }
#posts, #threadBody { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.day { align-self: center; background: rgba(255, 255, 255, .9); border: 1px solid var(--b); padding: 3px 14px; border-radius: 999px; font-size: 12.5px; color: var(--m); margin: 4px 0; font-weight: 700; }
.older { align-self: center; }

.post { background: var(--card); border: 1px solid var(--b); border-radius: 20px; overflow: hidden; box-shadow: var(--sh); cursor: pointer; }
.pimg { display: block; width: 100%; max-height: 460px; object-fit: cover; background: var(--bg2); cursor: zoom-in; }
.text { padding: 12px 14px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 16px; }
.meta { display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: 12px; color: var(--m2); padding: 4px 14px 10px; }
.meta .sig { margin-inline-end: auto; color: var(--gold); font-weight: 700; }
.reacts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.chip {
  border: 1px solid var(--b); background: var(--card2); border-radius: 999px; padding: 3px 10px 3px 9px;
  display: inline-flex; gap: 5px; align-items: center; font-size: 13.5px; cursor: pointer; transition: transform .12s; font-weight: 700; color: var(--m);
}
.chip:active { transform: scale(.92); }
.chip .em { font-size: 15px; }
.chip.mine { background: var(--g); border-color: var(--g); color: #fff; }

.cbar {
  width: 100%; border: 0; border-top: 1px solid var(--b); background: var(--card2); color: var(--g3);
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14.5px; cursor: pointer; text-align: start; font-weight: 700;
}
.cbar:hover { background: var(--bg2); }
.cbar .chev { margin-inline-start: auto; font-size: 18px; }
.avs { display: flex; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; font-size: 14px; position: relative; }
.av .on { position: absolute; bottom: -1px; left: -1px; width: 11px; height: 11px; border-radius: 50%; background: #3fb46b; border: 2px solid #fff; }
.avs .av { width: 24px; height: 24px; font-size: 11px; border: 2px solid var(--card2); margin-inline-start: -7px; }
.avs .av:first-child { margin-inline-start: 0; }
.empty { text-align: center; color: var(--m2); padding: 30px 10px; }

.newbadge {
  position: fixed; left: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 5;
  background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px;
  font-weight: 700; box-shadow: var(--sh-lg); cursor: pointer;
}

/* ---------- composer ---------- */
.composer {
  flex: none; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9); border-top: 1px solid var(--b);
}
.compose-col, .compose-row { max-width: 660px; margin: 0 auto; }
.compose-row { display: flex; align-items: flex-end; gap: 6px; }
.compose-row textarea { flex: 1; resize: none; max-height: 180px; min-height: 42px; border-radius: 22px; padding: 9px 15px; line-height: 1.5; background: var(--card2); }
.attach { position: relative; width: 84px; margin: 0 0 8px; }
.attach img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; display: block; border: 1px solid var(--b); }
.attach .x { position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--t); color: #fff; cursor: pointer; font-size: 12px; }
.memberbar {
  flex: none; text-align: center; padding: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9); color: var(--m2); font-size: 13.5px; border-top: 1px solid var(--b);
}

/* ---------- panels ---------- */
.panel { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; height: 100dvh; animation: slide .2s var(--ease); }
@keyframes slide { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }

.thread-sep { align-self: center; color: var(--m2); font-size: 13px; margin: 2px 0; font-weight: 700; }
.cmt { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; align-self: flex-start; }
.cmt.own { align-self: flex-end; }
.cmt .av { width: 32px; height: 32px; font-size: 13px; }
.cbubble { background: var(--card); border: 1px solid var(--b); border-radius: 18px; border-end-start-radius: 5px; padding: 7px 12px 4px; min-width: 110px; cursor: pointer; box-shadow: 0 1px 2px rgba(31, 48, 38, .05); }
.cmt.own .cbubble { background: var(--own); border-color: #d2e1d6; border-end-start-radius: 18px; border-end-end-radius: 5px; }
.cbubble .text { padding: 0; font-size: 15.5px; line-height: 1.7; }
.cbubble .meta { padding: 2px 0 0; }
.cbubble .reacts { padding: 4px 0 2px; }
.cname { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 2px; }
.badge { font-size: 11px; background: var(--gold-soft); color: var(--gold); padding: 2px 7px; border-radius: 6px; font-weight: 800; }
.badge.green { background: #e4eee6; color: var(--g3); }
.badge.red { background: #fdeeee; color: var(--red); }
.realname { font-size: 11.5px; color: var(--m2); font-weight: 500; }
.quote { border-inline-start: 3px solid var(--g); background: var(--card2); border-radius: 8px; padding: 4px 9px; margin: 3px 0 5px; font-size: 13px; cursor: pointer; max-width: 260px; }
.cmt.own .quote { background: rgba(255, 255, 255, .6); }
.quote b, .rq b { display: block; color: var(--g3); font-size: 12.5px; }
.quote span, .rq span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--m); }
.flash .cbubble, .flash.post { animation: flash 1.3s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }
.replybar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--card); border-top: 1px solid var(--b); }
.rq { flex: 1; min-width: 0; border-inline-start: 3px solid var(--g); padding-inline-start: 9px; font-size: 13px; }

/* ---------- context menu ---------- */
.ctx-back { position: fixed; inset: 0; z-index: 49; background: rgba(21, 32, 26, .18); }
.ctx { position: fixed; z-index: 50; background: var(--card); border: 1px solid var(--b); border-radius: 18px; box-shadow: var(--sh-lg); padding: 6px; width: 252px; animation: pop .14s var(--ease); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.emrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px; border-bottom: 1px solid var(--b); margin-bottom: 4px; }
.emrow button { font-size: 24px; background: none; border: 0; padding: 6px 0; border-radius: 12px; cursor: pointer; transition: transform .1s; }
.emrow button:hover { transform: scale(1.18); background: var(--bg2); }
.emrow button.mine { background: #e4eee6; }
.ctx .item { display: flex; width: 100%; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: start; font-size: 14.5px; font-weight: 700; }
.ctx .item:hover { background: var(--bg2); }
.ctx .item.danger { color: var(--red); }
.ctx .label { padding: 8px 12px 4px; color: var(--m2); font-size: 12.5px; }

/* ---------- dashboard ---------- */
.dash-tabs { display: flex; gap: 6px; padding: 10px 12px; background: rgba(255, 255, 255, .82); border-bottom: 1px solid var(--b); overflow-x: auto; flex: none; }
.dash-tabs button {
  border: 1px solid var(--b2); background: var(--card); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-weight: 700; color: var(--m); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center;
}
.dash-tabs button.active { background: var(--g); color: #fff; border-color: var(--g); }
.dash-tabs .count { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; min-width: 20px; }
.dash-tabs button.active .count { background: #fff; color: var(--red); }
.dash-body { max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.section-title { font-weight: 800; font-size: 16px; margin: 6px 2px -4px; display: flex; align-items: center; gap: 8px; }
.section-title .muted { font-weight: 500; font-size: 13px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--card); border: 1px solid var(--b); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); }
.tile .k { color: var(--m2); font-size: 13px; font-weight: 700; }
.tile .v { font-size: 28px; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--m2); font-size: 12px; margin-top: 2px; }
.tile.hl { background: var(--grad); color: #fff; border: 0; }
.tile.hl .k, .tile.hl .s { color: rgba(255, 255, 255, .85); }
.tile.warn { background: var(--gold-soft); border-color: #ecdcb5; cursor: pointer; }
.tile.warn .v { color: var(--gold); }

.card { background: var(--card); border: 1px solid var(--b); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); }
.chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 150px; padding-top: 18px; }
.chart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; position: relative; }
.chart .bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart .bar { width: 46%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 2px; }
.chart .bar.p { background: var(--gold); }
.chart .bar.c { background: var(--g); }
.chart .lbl { font-size: 10.5px; color: var(--m2); }
.chart .col:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% - 10px); background: var(--t); color: #fff; font-size: 11.5px;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap; z-index: 2;
}
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--m); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 5px; vertical-align: -1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .two { grid-template-columns: 1fr; } }
.rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--b); }
.rank:last-child { border-bottom: 0; }
.rank .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rank .c { color: var(--m2); font-size: 13px; white-space: nowrap; }
.rank.link { cursor: pointer; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input { flex: 1; min-width: 200px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--b2); background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 700; color: var(--m); }
.filters button.active { background: var(--t); color: #fff; border-color: var(--t); }

.ulist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.ucard { background: var(--card); border: 1px solid var(--b); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; box-shadow: var(--sh); align-content: start; }
.ucard.banned { opacity: .62; }
.uhead { display: flex; gap: 10px; align-items: center; }
.uhead .info { flex: 1; min-width: 0; }
.uhead .n { font-weight: 800; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.uhead .d { color: var(--m2); font-size: 12.5px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 13.5px; background: var(--card2); border-radius: 12px; padding: 10px 12px; }
.facts dt { color: var(--m2); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.facts dd a { text-decoration: none; }
.urow { display: flex; gap: 8px; align-items: center; }
.urow input, .urow select { padding: 8px 11px; font-size: 15px; }
.urow .lbl { font-size: 12.5px; color: var(--m2); white-space: nowrap; min-width: 66px; font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions .btn { flex: 1; }
.hint { font-size: 13px; color: var(--m2); margin: 0; }

/* ---------- misc ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(10, 16, 12, .92); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80;
  background: var(--t); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none;
  transition: .2s; max-width: calc(100vw - 32px); text-align: center; font-weight: 700;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- avatars & profile ---------- */
.av { overflow: visible; }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.me-btn .av { width: 34px; height: 34px; font-size: 14px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--b2); }
.card .section-title { margin: 0 0 12px; }
.profile-body { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.p-hero { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 22px 14px; }
.p-avatar { position: relative; margin-bottom: 8px; }
.p-avatar .av { width: 104px; height: 104px; font-size: 42px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--b2), var(--sh); }
.p-avatar .cam {
  position: absolute; bottom: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff;
  background: var(--grad); color: #fff; cursor: pointer; font-size: 15px; display: grid; place-items: center; box-shadow: var(--sh);
}
.p-name { font-size: 21px; font-weight: 900; display: flex; gap: 8px; align-items: center; }
.p-bio { color: var(--m); margin-top: 4px; max-width: 380px; line-height: 1.6; }
.linkbtn { background: none; border: 0; color: var(--g3); font-weight: 700; cursor: pointer; padding: 2px 4px; text-decoration: underline; text-underline-offset: 3px; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.tiles.three .tile { padding: 12px 10px; text-align: center; }

/* ---------- support desk ---------- */
.head-wrap { flex: 1; min-width: 0; }
.head-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.head-row .av { width: 40px; height: 40px; }
.logo-av { background: var(--bg2) !important; border: 1px solid var(--b); }
.logo-av img { width: 62% !important; height: auto !important; border-radius: 0 !important; object-fit: contain !important; }
.chat-body { max-width: 660px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.welcome { display: grid; gap: 4px; background: linear-gradient(135deg, #f2f6f3, #fff); }
.welcome p { margin: 0; color: var(--m); line-height: 1.7; font-size: 14.5px; }
.info-card { display: grid; gap: 10px; }
.cbubble.team { border-color: #d2e1d6; }
.msg-img { display: block; max-width: 240px; width: 100%; border-radius: 12px; margin: 4px 0; cursor: zoom-in; }
.notice { align-self: center; text-align: center; background: #e4eee6; color: var(--g4); border-radius: 12px; padding: 8px 14px; font-size: 13.5px; max-width: 420px; }
.count-pill { background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; }
.btn .count-pill { margin-inline-start: 4px; }
.searchbar .filters { max-width: 640px; margin: 8px auto 0; }
.inbox-list { max-width: 660px; margin: 0 auto; display: grid; gap: 6px; }
.irow {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; cursor: pointer;
  background: var(--card); border: 1px solid var(--b); border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(31, 48, 38, .04);
}
.irow:hover { background: var(--card2); }
.irow .av { width: 44px; height: 44px; font-size: 17px; }
.irow.unread { border-color: var(--g); background: #f4f8f5; }
.imain { flex: 1; min-width: 0; display: grid; gap: 2px; }
.itop { display: flex; align-items: center; gap: 6px; min-width: 0; }
.iname { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itime { margin-inline-start: auto; font-size: 12px; color: var(--m2); white-space: nowrap; }
.ilast { font-size: 13.5px; color: var(--m); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow.unread .ilast { color: var(--t); font-weight: 700; }
.pending-actions .btn { white-space: normal; text-align: center; }
.searchbar { padding: 10px 12px; background: rgba(255, 255, 255, .82); border-bottom: 1px solid var(--b); flex: none; }
.searchbar input { max-width: 660px; margin: 0 auto; display: block; }

/* ---------- unread divider & views ---------- */
.unread-sep { display: flex; align-items: center; gap: 10px; margin: 6px -10px; padding: 7px 0; background: rgba(110, 140, 119, .12); scroll-margin-top: 8px; }
.unread-sep::before, .unread-sep::after { content: ""; flex: 1; }
.unread-sep span { background: var(--card); color: var(--g3); border: 1px solid #cfdfd3; border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 800; box-shadow: 0 1px 2px rgba(31, 48, 38, .06); }
.views { color: var(--m2); font-variant-numeric: tabular-nums; }
.newbadge.round { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 18px; }
.ctx .viewers { max-height: 50vh; overflow-y: auto; padding: 0 10px 6px; }
.ctx .viewers .av { width: 30px; height: 30px; font-size: 12px; }
