/* =====================================================================
   Buccaneers' Cyber Island - member forum theme
   Brand: deep purple #3B2C5F, sun yellow #FDE905, red #B52A2A
   Loaded by inc/header.php, so every member page gets the new chrome.
   ===================================================================== */

:root {
  --brand: #3B2C5F;
  --brand-dark: #241a3d;
  --brand-soft: #efecf6;
  --accent: #FDE905;
  --danger: #c0392b;
  --like: #e0245e;
  --bg: #f3f2f7;
  --card: #ffffff;
  --text: #1d1b26;
  --muted: #6f6b80;
  --line: #e7e4ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 14, 40, .06), 0 4px 14px rgba(20, 14, 40, .05);
  --online: #2ecc71;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* ---------------------------------------------------------------- top bar */
#navbar.ci-topbar {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, #5a3f8c);
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(20, 14, 40, .25);
  z-index: 1030;
}
.ci-topbar .navbar-brand { display: flex; align-items: center; gap: 10px; padding: 0; }
.ci-topbar .brand-logo {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent);
  color: var(--brand-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ci-topbar .brand-text { line-height: 1.1; }
.ci-topbar .brand-title { color: #fff; font-weight: 700; font-size: 18px; }
.ci-topbar .brand-sub { color: rgba(255,255,255,.65); font-size: 12px; font-style: italic; }

.ci-search { position: relative; flex: 1; max-width: 460px; margin: 0 18px; }
.ci-search input {
  width: 100%; border: 0; border-radius: 22px; padding: 9px 16px 9px 40px;
  background: rgba(255,255,255,.14); color: #fff; outline: none; transition: background .2s;
}
.ci-search input::placeholder { color: rgba(255,255,255,.7); }
.ci-search input:focus { background: #fff; color: var(--text); }
.ci-search input:focus::placeholder { color: var(--muted); }
.ci-search .fa-search { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.75); }
.ci-search input:focus + .fa-search { color: var(--muted); }

.ci-icons { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ci-icon {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; background: transparent; border: 0; transition: background .15s;
}
.ci-icon:hover, .ci-icon.active { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.ci-badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--brand-dark);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--brand);
}
.ci-badge:empty, .ci-badge[data-count="0"] { display: none; }
.ci-me { border: 2px solid rgba(255,255,255,.6); border-radius: 50%; padding: 0; margin-left: 6px; background: none; }

.ci-dropdown { width: 340px; max-width: 92vw; padding: 0; border: 0; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20,14,40,.2); overflow: hidden; }
.ci-dropdown .dd-head { padding: 12px 16px; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.ci-dropdown .dd-head a { font-size: 13px; font-weight: 600; }
.ci-dropdown .dd-body { max-height: 380px; overflow-y: auto; }
.ci-dropdown .dd-empty { padding: 24px 16px; text-align: center; color: var(--muted); }
.notif-item { display: flex; gap: 10px; padding: 10px 16px; color: var(--text); align-items: flex-start; }
.notif-item:hover { background: var(--brand-soft); text-decoration: none; color: var(--text); }
.notif-item.unread { background: #faf8e1; }
.notif-item .notif-text { font-size: 14px; line-height: 1.3; }
.notif-item .notif-time { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- layout */
.nav-body { padding-top: 20px; }
.main-body { background: transparent; padding: 0; }
.main-title { font-size: 22px; font-weight: 700; margin-bottom: 14px; color: var(--text); }

.card-ci {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); margin-bottom: 16px;
}
.card-ci .card-ci-head { padding: 14px 16px 6px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.card-ci .card-ci-head a { font-size: 13px; font-weight: 600; }
.card-ci .card-ci-body { padding: 8px 16px 14px; }
.sticky-col { position: sticky; top: 84px; }

/* ---------------------------------------------------------------- side menu (shared) */
.side-menu {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 20px 12px; margin: 0 8px 16px; color: var(--text);
}
@media (min-width: 737px) {
  /* old theme made this a fixed full-height column */
  .side-menu { position: sticky; top: 84px; width: auto; height: auto; max-height: calc(100vh - 100px); overflow-y: auto; padding-bottom: 20px; z-index: 1; }
}
@media (max-width: 736px) {
  .side-menu.active { position: fixed; margin: 0; border-radius: 0; overflow-y: auto; z-index: 1300; }
  .toggle-holder { background: transparent; padding: 0 8px 12px; }
  .toggle-holder .menu-toggle-button { background: var(--card); color: var(--brand); border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
}
.side-menu .profile-picture { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px; border: 3px solid var(--accent); background-size: cover; background-position: center; }
.side-menu .account-name { text-align: center; font-weight: 700; font-size: 17px; color: var(--text); }
.side-menu .account-location, .side-menu .account-status { text-align: center; color: var(--muted); font-size: 13px; }
.side-menu .menu-tabs { margin-top: 14px; }
.side-menu .menu-tabs a { text-decoration: none; }
.side-menu .menu-tabs .menu-tab {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--text); font-weight: 600; font-size: 15px; background: transparent; border: 0; margin: 2px 0;
}
.side-menu .menu-tabs .menu-tab i { width: 20px; text-align: center; color: var(--brand); }
.side-menu .menu-tabs .menu-tab:hover { background: var(--brand-soft); }
.side-menu .menu-tabs .menu-tab.active { background: var(--brand); color: #fff; }
.side-menu .menu-tabs .menu-tab.active i { color: var(--accent); }
.side-menu .menu-tab .menu-count { margin-left: auto; background: var(--accent); color: var(--brand-dark); border-radius: 10px; padding: 0 7px; font-size: 12px; font-weight: 700; }
.side-menu .menu-tab .menu-count:empty, .side-menu .menu-tab .menu-count[data-count="0"] { display: none; }
.side-menu .menu-button { width: 100%; margin-top: 12px; border: 1px solid var(--line); background: #fff; color: var(--danger); border-radius: 10px; padding: 8px; font-weight: 600; }
.side-menu .menu-copyright { text-align: center; color: var(--muted); font-size: 12px; margin-top: 14px; }

/* ---------------------------------------------------------------- avatars */
.avatar {
  position: relative; display: inline-block; flex: 0 0 auto; border-radius: 50%;
  background-size: cover; background-position: center; background-color: var(--brand-soft);
  vertical-align: middle;
}
.presence-dot {
  position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 9px; min-height: 9px;
  background: var(--online); border: 2px solid #fff; border-radius: 50%;
}

/* ---------------------------------------------------------------- composer */
.composer { padding: 14px 16px; }
.composer-row { display: flex; gap: 12px; }
.composer textarea {
  flex: 1; border: 0; resize: none; font-size: 17px; padding: 10px 2px; outline: none; min-height: 48px; background: transparent;
}
.composer-preview { margin: 8px 0 0 58px; position: relative; display: none; }
.composer-preview img, .composer-preview video { max-width: 100%; max-height: 260px; border-radius: 10px; }
.composer-preview .file-chip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--brand-soft); border-radius: 10px; }
.composer-preview .remove-media { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 28px; height: 28px; }
.composer-tools { display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; flex-wrap: wrap; }
.tool-btn { border: 0; background: transparent; color: var(--muted); padding: 7px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.tool-btn:hover { background: var(--brand-soft); color: var(--brand); }
.tool-btn.on { color: var(--brand); background: var(--brand-soft); }
.tool-btn i { margin-right: 4px; }
.event-date { display: none; }
.btn-brand {
  background: var(--brand); color: #fff; border: 0; border-radius: 22px; padding: 8px 22px; font-weight: 700;
  transition: transform .1s, background .15s;
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-brand:active { transform: scale(.97); }
.btn-brand:disabled { opacity: .6; }
.btn-outline-brand { background: #fff; color: var(--brand); border: 1px solid var(--brand); border-radius: 22px; padding: 7px 18px; font-weight: 700; }
.btn-outline-brand:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.composer .btn-brand { margin-left: auto; }

/* ---------------------------------------------------------------- feed tabs */
.feed-tabs { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }
.feed-tab { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 16px; font-weight: 600; color: var(--muted); }
.feed-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.feed-tab i { margin-right: 4px; }
.feed-note { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }

/* ---------------------------------------------------------------- post card */
.post-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 16px; animation: ci-in .25s ease; }
@keyframes ci-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.post-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.post-meta { flex: 1; min-width: 0; }
.post-author { font-weight: 700; color: var(--text); }
.post-sub { font-size: 13px; color: var(--muted); }
.post-sub a { color: var(--muted); }
.btn-icon { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); }
.btn-icon:hover { background: var(--brand-soft); }
.post-text {
  padding: 4px 16px 10px; font-size: 16px; line-height: 1.5; word-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.post-text.expanded { display: block; }
.read-more { margin: -6px 16px 10px; display: inline-block; font-weight: 600; font-size: 14px; }
.post-media { display: block; background: #000; }
.post-media img { width: 100%; max-height: 620px; object-fit: contain; display: block; background: #111; }
.post-media video { width: 100%; max-height: 620px; display: block; }
.post-media audio { width: 100%; display: block; background: var(--brand-soft); }
.post-doc { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; }
.post-doc span { margin-left: auto; color: var(--muted); text-transform: uppercase; font-size: 12px; }
.post-stats { display: flex; justify-content: space-between; padding: 8px 16px; font-size: 14px; color: var(--muted); min-height: 36px; }
.post-stats .fa-heart { color: var(--like); }
.post-stats a { color: var(--muted); }
.post-actions-bar { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 12px; }
.post-action {
  flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 8px; margin: 4px 2px;
  color: var(--muted); font-weight: 600; text-align: center; font-size: 15px;
}
.post-action:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.post-action.liked { color: var(--like); }
.post-action.liked i { animation: ci-pop .3s ease; }
@keyframes ci-pop { 50% { transform: scale(1.35); } }

.post-comments { padding: 8px 16px 14px; }
.more-comments { display: inline-block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.comment { display: grid; grid-template-columns: 32px 1fr; column-gap: 8px; margin-bottom: 8px; }
.comment-bubble { background: var(--bg); border-radius: 14px; padding: 7px 12px; width: fit-content; max-width: 100%; }
.comment-author { font-weight: 700; font-size: 14px; color: var(--text); }
.comment-text { font-size: 15px; word-wrap: break-word; }
.comment-meta { grid-column: 2; font-size: 12px; color: var(--muted); padding: 2px 12px; }
.comment-meta a { color: var(--muted); }
.comment-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.comment-form textarea {
  flex: 1; border: 1px solid var(--line); border-radius: 18px; padding: 7px 14px; resize: none; outline: none;
  background: var(--bg); font-size: 15px; max-height: 140px;
}
.comment-form textarea:focus { background: #fff; border-color: var(--brand); }
.btn-send { border: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; flex: 0 0 auto; }
.btn-send:disabled { opacity: .5; }

.feed-loader { text-align: center; padding: 18px; color: var(--muted); }
.feed-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.feed-empty i { font-size: 40px; color: var(--line); display: block; margin-bottom: 10px; }

/* ---------------------------------------------------------------- right sidebar */
.mini-member { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text); }
.mini-member:hover { text-decoration: none; color: var(--brand); }
.mini-member .mm-name { font-weight: 600; font-size: 14px; line-height: 1.15; }
.mini-member .mm-sub { font-size: 12px; color: var(--muted); }
.mini-member .mm-action { margin-left: auto; color: var(--muted); }
.event-item { display: flex; gap: 10px; padding: 6px 0; }
.event-date-box { width: 46px; flex: 0 0 auto; text-align: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); padding: 4px 0; line-height: 1.05; }
.event-date-box b { display: block; font-size: 18px; }
.event-date-box small { text-transform: uppercase; font-size: 11px; font-weight: 700; }
.event-title { font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------- members directory */
.member-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.member-filters input, .member-filters select { border: 1px solid var(--line); border-radius: 22px; padding: 8px 16px; background: #fff; outline: none; }
.member-filters input[type=text] { flex: 1; min-width: 200px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.member-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 18px 12px 14px; transition: transform .15s, box-shadow .15s; }
.member-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,14,40,.1); }
.member-card .mc-name { font-weight: 700; margin-top: 10px; color: var(--text); display: block; }
.member-card .mc-sub { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.member-card .mc-actions { display: flex; gap: 6px; justify-content: center; }
.member-card .mc-actions a { font-size: 13px; padding: 5px 12px; }

/* ---------------------------------------------------------------- profile */
.profile-hero { overflow: hidden; }
.profile-cover { height: 140px; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, #7a59b8); }
.profile-info { padding: 0 20px 18px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; margin-top: -48px; }
.profile-info .avatar { border: 4px solid #fff; box-shadow: var(--shadow); }
.profile-info .pi-text { flex: 1; min-width: 200px; padding-bottom: 4px; }
.profile-info h2 { font-size: 24px; font-weight: 700; margin: 0; }
.profile-info .pi-sub { color: var(--muted); }
.profile-about { padding: 0 20px 18px; color: var(--text); }
.profile-stats { display: flex; gap: 22px; padding: 0 20px 16px; color: var(--muted); font-size: 14px; }
.profile-stats b { color: var(--text); font-size: 17px; }

/* ---------------------------------------------------------------- messages */
.chat-shell { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 130px); min-height: 480px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-list-head h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.chat-list-head input { width: 100%; border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px; outline: none; background: var(--bg); }
.chat-list-body { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 10px 14px; align-items: center; color: var(--text); border-left: 3px solid transparent; }
.conv:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.conv.active { background: var(--brand-soft); border-left-color: var(--brand); }
.conv .conv-main { flex: 1; min-width: 0; }
.conv .conv-name { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 6px; }
.conv .conv-name small { color: var(--muted); font-weight: 400; white-space: nowrap; }
.conv .conv-last { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-last { color: var(--text); font-weight: 700; }
.conv .conv-unread { background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.chat-pane { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-head .ch-name { font-weight: 700; }
.chat-head .ch-sub { font-size: 13px; color: var(--muted); }
.chat-back { display: none; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: linear-gradient(180deg, #faf9fd, #f3f2f7); }
.dm { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 8px; }
.dm.mine { align-items: flex-end; }
.dm-bubble { max-width: 72%; padding: 8px 13px; border-radius: 18px; background: #fff; border: 1px solid var(--line); font-size: 15px; word-wrap: break-word; }
.dm.mine .dm-bubble { background: var(--brand); color: #fff; border-color: var(--brand); border-bottom-right-radius: 6px; }
.dm:not(.mine) .dm-bubble { border-bottom-left-radius: 6px; }
.dm.mine .dm-bubble a { color: var(--accent); }
.dm-time { font-size: 11px; color: var(--muted); margin: 2px 6px 0; }
.dm-day { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0; }
.chat-compose { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-compose textarea { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 9px 16px; resize: none; outline: none; max-height: 140px; background: var(--bg); }
.chat-compose textarea:focus { background: #fff; border-color: var(--brand); }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 30px; }
.chat-empty i { font-size: 54px; color: var(--line); margin-bottom: 12px; }

/* ---------------------------------------------------------------- toast */
.ci-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--brand-dark); color: #fff; padding: 10px 18px; border-radius: 22px; z-index: 2000;
  transition: all .25s; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; max-width: 90vw;
}
.ci-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ci-toast.error { background: var(--danger); }

/* ---------------------------------------------------------------- login */
.ci-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg); }
.ci-login-art {
  position: relative; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, rgba(36,26,61,.55), rgba(36,26,61,.92)), url('../images/loginpage.jpg') center/cover;
}
.ci-login-art h1 { font-size: 40px; font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.ci-login-art p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 460px; }
.ci-login-art .ci-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ci-login-art .ci-pills span { background: rgba(255,255,255,.14); border-radius: 20px; padding: 6px 14px; font-size: 14px; }
.ci-login-art .ci-pills i { color: var(--accent); margin-right: 6px; }
.ci-login-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.ci-login-card { width: 100%; max-width: 400px; }
.ci-login-card .brand-logo { width: 54px; height: 54px; border-radius: 14px; background: var(--brand); color: var(--accent); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ci-login-card h2 { font-weight: 800; font-size: 28px; margin-bottom: 4px; }
.ci-login-card .lead-sub { color: var(--muted); margin-bottom: 22px; }
.ci-field { position: relative; margin-bottom: 14px; }
.ci-field i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ci-field input { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px 13px 44px; outline: none; background: #fff; font-size: 16px; }
.ci-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,44,95,.12); }
.ci-login-card .btn-brand { width: 100%; padding: 12px; border-radius: 12px; font-size: 16px; }
.ci-login-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 991px) {
  .ci-search { display: none; }
  .sticky-col { position: static; }
}
@media (max-width: 767px) {
  .ci-topbar .brand-sub { display: none; }
  .chat-shell { grid-template-columns: 1fr; height: calc(100vh - 110px); }
  .chat-shell.has-thread .chat-list { display: none; }
  .chat-shell:not(.has-thread) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .dm-bubble { max-width: 85%; }
  .ci-login { grid-template-columns: 1fr; }
  .ci-login-art { min-height: 220px; padding: 28px; }
  .ci-login-art h1 { font-size: 28px; }
  .side-menu { margin: 0 0 16px; }
}

/* ---------------------------------------------------------------- fixes over the old theme */
.side-menu .account-status {
  display: table; margin: 6px auto 0; width: auto; height: auto; padding: 2px 12px; line-height: 1.6;
  background: var(--brand-soft); color: var(--brand); border-radius: 12px; font-size: 12px; font-weight: 700;
}
.side-menu .menu-tabs > a:last-of-type { display: block; }
.side-menu .menu-button { display: block; margin: 12px 0 0; }
.member-filters label input[type=checkbox] { width: auto; height: auto; margin: 0 6px 0 0; vertical-align: middle; }
.member-filters label { display: inline-flex; align-items: center; white-space: nowrap; }

@media (max-width: 575px) {
  html, body { overflow-x: hidden; }
  .ci-topbar .brand-text { display: none; }
  .ci-topbar .container-fluid { padding: 0 10px; }
  .ci-icon { width: 38px; height: 38px; font-size: 17px; }
  .ci-icons { gap: 0; }
  .nav-body { padding-top: 12px; }
  .nav-body > .container-fluid { padding-left: 8px; padding-right: 8px; }
  .post-action { font-size: 14px; padding: 8px 4px; }
  .composer-tools .tool-btn { padding: 6px 8px; }
}
@media (max-width: 575px) {
  .nav-body > .container-fluid > .row { margin-left: -8px; margin-right: -8px; }
}
