:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-soft: #10141b;
  --panel: #151a23;
  --panel-2: #1a202b;
  --panel-3: #202735;
  --line: #2b3444;
  --line-soft: #222a37;
  --text: #eef2f8;
  --muted: #9aa6b8;
  --muted-2: #6f7b8d;
  --accent: #efb52d;
  --accent-2: #ffd363;
  --accent-ink: #17130a;
  --green: #4fd19d;
  --red: #ff6b7a;
  --blue: #6ca7ff;
  --orange: #ff9f5a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  --sidebar: 252px;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 15% -10%, rgba(239,181,45,.12), transparent 32%),
  radial-gradient(circle at 88% 4%, rgba(108,167,255,.08), transparent 26%),
  var(--bg); color: var(--text); font: 15px/1.55 var(--font); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }

.app-loading { min-height: 100vh; }
.boot-screen, .auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.boot-card, .auth-card { width: min(520px, 100%); border: 1px solid var(--line); border-radius: 24px; background: rgba(21,26,35,.94); box-shadow: var(--shadow); padding: 34px; backdrop-filter: blur(18px); }
.boot-card img, .auth-brand img { border-radius: 10px; image-rendering: auto; }
.kicker { display: block; margin-top: 14px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.boot-card h1, .auth-card h1 { margin: 8px 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.boot-card p, .auth-card > p { margin: 0; color: var(--muted); }
.progress { height: 4px; margin-top: 28px; border-radius: 999px; overflow: hidden; background: var(--line-soft); }
.progress span { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--accent); animation: loading 1.2s infinite ease-in-out; }
@keyframes loading { 0% { transform: translateX(-120%); } 100% { transform: translateX(340%); } }

.auth-card { width: min(560px, 100%); }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-brand .brand-copy strong { display: block; font-size: 18px; letter-spacing: .02em; }
.auth-brand .brand-copy span { color: var(--muted); font-size: 13px; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 24px 0; padding: 5px; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--bg-soft); }
.auth-tabs button { border: 0; border-radius: 9px; padding: 9px 10px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: var(--panel-3); color: var(--text); box-shadow: 0 4px 16px #0003; }
.auth-note { margin-top: 18px; padding: 13px 14px; border: 1px solid var(--line-soft); border-radius: 11px; color: var(--muted); background: var(--bg-soft); font-size: 13px; }
.status-card { width: min(560px, 100%); }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; border-right: 1px solid var(--line-soft); background: rgba(13,16,22,.9); backdrop-filter: blur(18px); z-index: 20; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 8px 10px 16px; border-bottom: 1px solid var(--line-soft); }
.sidebar-brand img { width: 34px; height: 34px; border-radius: 10px; }
.sidebar-brand strong { display: block; font-size: 15px; }
.sidebar-brand small { display: block; color: var(--muted-2); font-size: 11px; }
.nav-group { display: grid; gap: 5px; }
.nav-label { padding: 0 10px 5px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-btn { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 11px; padding: 10px 11px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: .16s ease; }
.nav-btn:hover { color: var(--text); background: var(--panel); }
.nav-btn.active { border-color: rgba(239,181,45,.24); background: rgba(239,181,45,.1); color: var(--accent-2); }
.nav-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--panel-2); font-size: 12px; font-weight: 800; }
.nav-btn.active .nav-icon { background: var(--accent); color: var(--accent-ink); }
.nav-badge { margin-left: auto; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--red); color: white; font-size: 10px; font-weight: 800; }
.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.sidebar-footer p { margin: 0 8px 8px; color: var(--muted-2); font-size: 11px; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; min-height: 74px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 12px 24px; border-bottom: 1px solid var(--line-soft); background: rgba(11,13,18,.86); backdrop-filter: blur(18px); }
.page-heading { min-width: 0; }
.page-heading h1 { margin: 0; font-size: 20px; line-height: 1.2; }
.page-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.mini-profile { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; padding: 7px 9px 7px 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); cursor: pointer; }
.mini-profile:hover { border-color: #3a4558; background: var(--panel-2); }
.avatar { position: relative; flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; overflow: hidden; background: linear-gradient(145deg, var(--panel-3), #293348); color: var(--accent-2); font-weight: 900; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.large { width: 54px; height: 54px; border-radius: 15px; font-size: 18px; }
.presence-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid var(--panel); border-radius: 50%; background: var(--muted-2); }
.presence-dot.online { background: var(--green); }
.presence-dot.away { background: var(--orange); }
.mini-profile-copy { min-width: 0; text-align: left; }
.mini-profile-copy strong { max-width: 150px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.mini-profile-copy span { display: block; color: var(--muted); font-size: 11px; }

.content { padding: 24px; }
.view { display: grid; gap: 20px; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } }
.view-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.view-header h2 { margin: 0; font-size: 25px; line-height: 1.2; }
.view-header p { max-width: 700px; margin: 6px 0 0; color: var(--muted); }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(21,26,35,.94); box-shadow: 0 12px 34px rgba(0,0,0,.12); }
.card-body { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.card-head h3, .card-body h3 { margin: 0; font-size: 15px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.metric-card { padding: 18px; }
.metric-card .metric-label { color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin-top: 7px; font-size: 28px; line-height: 1; }
.metric-card small { display: block; margin-top: 9px; color: var(--muted-2); }
.metric-icon { float: right; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(239,181,45,.1); color: var(--accent); font-weight: 900; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; background: var(--panel-2); color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); border-color: #414d61; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; }
.btn.danger { border-color: rgba(255,107,122,.36); background: rgba(255,107,122,.12); color: #ff9aa5; }
.btn.success { border-color: rgba(79,209,157,.38); background: rgba(79,209,157,.12); color: #8be9c3; }
.btn.small { min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: 12px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 12px; font-weight: 700; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #0f131a; color: var(--text); padding: 11px 12px; transition: .15s ease; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(239,181,45,.62); box-shadow: 0 0 0 3px rgba(239,181,45,.1); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field-help { color: var(--muted-2); font-size: 11px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.form-message { min-height: 20px; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.form-message.error { color: var(--red); }
.form-message.success { color: var(--green); }

.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pill.green { border-color: rgba(79,209,157,.25); background: rgba(79,209,157,.09); color: #88e6c1; }
.pill.red { border-color: rgba(255,107,122,.25); background: rgba(255,107,122,.09); color: #ff9ba6; }
.pill.yellow { border-color: rgba(239,181,45,.28); background: rgba(239,181,45,.1); color: var(--accent-2); }
.pill.blue { border-color: rgba(108,167,255,.28); background: rgba(108,167,255,.1); color: #a8caff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); color: #d9e0eb; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.table-user { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.table-user .avatar { width: 34px; height: 34px; border-radius: 9px; }
.table-user strong { display: block; font-size: 13px; }
.table-user span { display: block; color: var(--muted); font-size: 11px; }
.table-actions { display: flex; gap: 7px; justify-content: flex-end; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }

.list { display: grid; }
.list-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.list-item:last-child { border-bottom: 0; }
.list-item-main { min-width: 0; flex: 1; }
.list-item-main strong { display: block; }
.list-item-main p { margin: 3px 0 0; color: var(--muted); }
.list-item-meta { flex: 0 0 auto; color: var(--muted-2); font-size: 11px; white-space: nowrap; }

.chat-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 150px); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--panel); }
.chat-channels { padding: 14px; border-right: 1px solid var(--line-soft); background: #11151c; }
.chat-channels h3 { margin: 4px 7px 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.channel-btn { width: 100%; display: grid; gap: 2px; border: 0; border-radius: 10px; padding: 10px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.channel-btn strong { font-size: 13px; color: inherit; }
.channel-btn span { font-size: 11px; color: var(--muted-2); }
.channel-btn.active { background: rgba(239,181,45,.1); color: var(--accent-2); }
.chat-panel { min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.chat-head strong { display: block; }
.chat-head span { color: var(--muted); font-size: 12px; }
.chat-messages { min-height: 420px; max-height: calc(100vh - 275px); overflow-y: auto; padding: 18px; }
.message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 8px 0; }
.message + .message { border-top: 1px solid transparent; }
.message .avatar { width: 38px; height: 38px; border-radius: 10px; }
.message-head { display: flex; align-items: baseline; gap: 8px; }
.message-head strong { font-size: 13px; }
.message-head time { color: var(--muted-2); font-size: 10px; }
.message-body { margin-top: 3px; color: #dce3ee; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 13px; border-top: 1px solid var(--line-soft); background: #11151c; }
.chat-compose textarea { min-height: 46px; max-height: 130px; resize: none; }
.chat-compose .btn { align-self: end; }
.typing-status { min-height: 18px; color: var(--muted-2); font-size: 11px; }

.forum-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; }
.category-list { padding: 10px; }
.category-btn { width: 100%; border: 0; border-radius: 10px; padding: 11px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.category-btn strong { display: block; color: var(--text); }
.category-btn span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; }
.category-btn.active { background: rgba(108,167,255,.1); }
.topic-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(255,255,255,.018); }
.topic-row h3 { margin: 0; font-size: 15px; }
.topic-row p { margin: 5px 0 0; color: var(--muted); }
.topic-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; color: var(--muted-2); font-size: 11px; }
.topic-counts { display: grid; grid-template-columns: repeat(2, 56px); align-items: center; text-align: center; color: var(--muted); }
.topic-counts strong { display: block; color: var(--text); font-size: 14px; }
.topic-detail { display: grid; gap: 14px; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.post-author { padding: 16px; border-right: 1px solid var(--line-soft); background: #11151c; }
.post-author strong { display: block; margin-top: 8px; }
.post-author span { color: var(--muted); font-size: 11px; }
.post-body { min-width: 0; padding: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-time { display: block; margin-bottom: 12px; color: var(--muted-2); font-size: 10px; }

.meetup-card { display: grid; gap: 14px; padding: 18px; }
.meetup-card h3 { margin: 0; }
.meetup-card p { margin: 0; color: var(--muted); }
.meetup-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meetup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.meetup-actions .btn.selected { border-color: var(--accent); background: rgba(239,181,45,.12); color: var(--accent-2); }

.announcement { padding: 18px; }
.announcement + .announcement { border-top: 1px solid var(--line-soft); }
.announcement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.announcement h3 { margin: 0; }
.announcement p { margin: 10px 0 0; color: #d6dde8; white-space: pre-wrap; }
.announcement-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; color: var(--muted-2); font-size: 11px; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.member-card { display: grid; gap: 12px; padding: 16px; }
.member-card-head { display: flex; align-items: center; gap: 12px; }
.member-card-head strong { display: block; }
.member-card-head span { color: var(--muted); font-size: 11px; }
.member-card p { margin: 0; color: var(--muted); }

.profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; }
.profile-preview { padding: 22px; text-align: center; }
.profile-preview .avatar { margin: 0 auto; width: 84px; height: 84px; border-radius: 22px; font-size: 28px; }
.profile-preview h3 { margin: 14px 0 2px; font-size: 20px; }
.profile-preview p { margin: 10px 0 0; color: var(--muted); }
.profile-facts { display: grid; gap: 8px; margin-top: 18px; text-align: left; }
.profile-fact { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; background: var(--bg-soft); }
.profile-fact span { color: var(--muted); }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.admin-tab { border: 0; border-radius: 9px; padding: 9px 12px; background: transparent; color: var(--muted); cursor: pointer; }
.admin-tab.active { background: var(--panel-3); color: var(--text); }
.campaign-row { cursor: pointer; }
.campaign-row:hover td { background: rgba(255,255,255,.015); }
.progress-line { height: 7px; overflow: hidden; border-radius: 999px; background: var(--line-soft); }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.analytics-bars { display: grid; gap: 10px; }
.analytics-bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 58px; align-items: center; gap: 10px; }
.analytics-bar label { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analytics-bar-track { height: 9px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.analytics-bar-track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.analytics-bar strong { text-align: right; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.modal { width: min(660px, 100%); max-height: min(760px, 92vh); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--line-soft); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 19px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 19px; border-top: 1px solid var(--line-soft); }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: grid; gap: 9px; width: min(360px, calc(100vw - 36px)); }
.toast { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #1b222e; box-shadow: 0 14px 40px #0007; animation: toastIn .18s ease; }
.toast strong { display: block; }
.toast span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.toast.error { border-color: rgba(255,107,122,.4); }
.toast.success { border-color: rgba(79,209,157,.4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

.mobile-menu { display: none; }

@media (max-width: 1120px) {
  :root { --sidebar: 220px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 840px) {
  .shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-105%); transition: .2s ease; box-shadow: 24px 0 60px #0008; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; }
  .topbar { grid-template-columns: auto minmax(0,1fr) auto; padding: 10px 14px; }
  .page-heading p { display: none; }
  .mini-profile-copy { display: none; }
  .content { padding: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .forum-layout, .profile-layout { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-channels { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .chat-channels h3 { display: none; }
  .channel-btn { min-width: 140px; }
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .post-author strong { margin: 0; }
}

@media (max-width: 560px) {
  .boot-card, .auth-card { padding: 24px; border-radius: 18px; }
  .auth-tabs { grid-template-columns: 1fr; }
  .topbar { min-height: 64px; }
  .page-heading h1 { font-size: 16px; }
  .top-actions { gap: 6px; }
  .content { padding: 12px; }
  .view-header { display: grid; }
  .header-actions { justify-content: flex-start; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .topic-row { grid-template-columns: 1fr; }
  .topic-counts { justify-content: start; }
  .chat-messages { padding: 12px; }
  .chat-compose { grid-template-columns: 1fr; }
  .chat-compose .btn { width: 100%; }
  .analytics-bar { grid-template-columns: 86px minmax(0,1fr) 42px; }
  .mini-profile { padding: 5px; }
}

.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; color: var(--text); font-size: 13px; line-height: 1.45; }
.check-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.invite-layout .textarea[name="recipients"] { min-height: 190px; }
.invite-layout .textarea[name="body"] { min-height: 210px; }
