@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --ink: #182a36;
  --ink-soft: #60717a;
  --paper: #f7f4ed;
  --paper-deep: #e8eee9;
  --surface: #fffdf8;
  --surface-muted: #eef2ef;
  --coral: #d9654d;
  --coral-dark: #a84436;
  --teal: #5cae9d;
  --teal-dark: #2f776d;
  --line: #d6dfda;
  --danger: #b7443d;
  --shadow: 0 18px 45px rgba(24, 42, 54, .12);
  --display: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --body: 'DM Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper-deep); }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(92, 174, 157, .2), transparent 28rem),
    radial-gradient(circle at 88% 90%, rgba(217, 101, 77, .14), transparent 26rem),
    var(--paper-deep);
  font-family: var(--body);
  line-height: 1.45;
}

button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(92, 174, 157, .45); outline-offset: 2px; }

.auth-container, .chat-container {
  position: relative;
  width: 95%;
  max-width: 420px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid rgba(24, 42, 54, .15);
  border-radius: 20px 8px 20px 8px;
  box-shadow: var(--shadow);
  text-align: center;
}
.auth-container::before, .chat-container::before { content: 'CM'; position: absolute; top: 16px; left: 20px; color: var(--coral); font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
.auth-container { overflow: hidden; }
.auth-container h1 { margin-top: 22px; font-family: var(--display); font-size: 2rem; letter-spacing: -.04em; }
.auth-container h2 { margin-bottom: 24px; }
.chat-container { max-width: 720px; height: 94vh; display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: left; }
.actualites-container { overflow: hidden; }

h1 { margin: 0 0 8px; color: var(--ink); font-family: var(--display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.035em; }
h2 { margin: 0 0 18px; color: var(--ink-soft); font-family: var(--display); font-size: 1.05rem; font-weight: 500; }

input, textarea, select { width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px 4px 10px 4px; }
input { min-height: 46px; margin-bottom: 12px; padding: 11px 14px; font-size: .92rem; }
textarea { padding: 12px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal-dark); background: #fff; box-shadow: 4px 4px 0 rgba(92, 174, 157, .15); outline: none; }

button { width: 100%; min-height: 44px; padding: 10px 16px; color: var(--paper); background: var(--coral); border: 0; border-radius: 10px 4px 10px 4px; font-size: .88rem; font-weight: 700; cursor: pointer; }
button:hover { background: var(--coral-dark); transform: translateY(-1px); }
button:active { transform: translateY(0); }
button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.link-button { width: auto; min-height: auto; margin-top: 14px; padding: 4px 0; color: var(--teal-dark); background: transparent; border-radius: 0; font-size: .82rem; }
.link-button:hover { color: var(--coral-dark); background: transparent; text-decoration: underline; transform: none; }
.forgot-password-form { margin-top: 18px; padding: 16px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 12px 4px 12px 4px; text-align: left; }
.forgot-password-form label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.forgot-password-form .cancel-btn { margin-top: 8px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); }
.switch-page { margin-top: 20px; color: var(--ink-soft); font-size: .84rem; }
.switch-page a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.switch-page a:hover { color: var(--coral-dark); text-decoration: underline; }

.chat-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 14px 58px; color: var(--paper); background: var(--ink); border-bottom: 4px solid var(--coral); }
.chat-header h1 { margin: 0; color: var(--paper); font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; }
.chat-header h1::after { content: ' / CONGO MESSAGE'; margin-left: 8px; color: var(--teal); font-family: var(--body); font-size: .58rem; font-weight: 700; letter-spacing: .12em; }
.logout-btn, .back-btn { width: auto; min-height: 34px; padding: 6px 11px; color: var(--paper); background: transparent; border: 1px solid rgba(247, 244, 237, .35); border-radius: 7px 3px 7px 3px; font-size: .76rem; }
.logout-btn:hover, .back-btn:hover { background: var(--coral-dark); }

.nav-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; flex: 0 0 auto; min-height: 52px; padding: 6px; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-tabs a { min-width: 0; padding: 8px 3px; color: var(--ink-soft); border: 1px solid transparent; border-radius: 8px 3px 8px 3px; font-size: .68rem; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.nav-tabs a:hover { color: var(--ink); background: var(--surface-muted); }
.nav-tabs a.active { color: var(--paper); background: var(--coral); border-color: var(--coral-dark); }

.messages, .actualites-feed, .list-container, .statuses-list, .profile-container { scrollbar-width: thin; scrollbar-color: var(--teal) transparent; }
.messages::-webkit-scrollbar, .actualites-feed::-webkit-scrollbar, .list-container::-webkit-scrollbar, .profile-container::-webkit-scrollbar { width: 8px; }
.messages::-webkit-scrollbar-thumb, .actualites-feed::-webkit-scrollbar-thumb, .list-container::-webkit-scrollbar-thumb, .profile-container::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 10px; }
.messages { flex: 1; padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; background: var(--surface-muted); }
.message { width: fit-content; max-width: min(75%, 420px); padding: 8px 12px; border-radius: 5px 16px 5px 16px; word-wrap: break-word; overflow-wrap: anywhere; font-size: .88rem; line-height: 1.4; box-shadow: 3px 3px 0 rgba(24, 42, 54, .06); }
.message.sent { align-self: flex-end; color: var(--paper); background: var(--ink); border-bottom-right-radius: 3px; }
.message.received { align-self: flex-start; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.message .sender, .message-sender { margin-bottom: 2px; color: var(--ink-soft); font-size: .72rem; font-weight: 700; }
.message.sent .message-sender { display: none; }
.message-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.message-actions[hidden], .call-overlay[hidden], .publication-preview[hidden], .poll-fields[hidden], .group-profile-panel[hidden] { display: none !important; }
.message-actions button, .message-menu-button { width: auto; min-height: 28px; padding: 3px 7px; color: inherit; background: rgba(24, 42, 54, .1); border: 0; border-radius: 6px; font-size: .7rem; }
.message-menu-button { width: 28px; padding: 0; border-radius: 50%; font-size: 1rem; }
.message.sent .message-actions button, .message.sent .message-menu-button { background: rgba(247, 244, 237, .14); }
.message-avatar { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; color: var(--ink); background: var(--teal); border-radius: 50%; font-size: .76rem; font-weight: 700; }
.message-content { display: flex; flex-direction: column; min-width: 0; }
.message.sent { flex-direction: row-reverse; }
.message.sent .message-content { align-items: flex-end; }
.call-history-entry { align-self: center; margin: 8px 0; padding: 6px 12px; color: var(--ink-soft); background: #e2eae5; border-radius: 12px 4px 12px 4px; font-size: .76rem; }
.call-history-entry.missed, .missed-call-label { color: var(--danger); }
.call-actions { display: flex; gap: 6px; }
.action-btn { width: 40px !important; min-width: 40px; min-height: 40px; padding: 8px 0 !important; color: var(--ink) !important; background: var(--teal) !important; border-radius: 50% !important; font-size: 1rem !important; }
.action-btn:hover { color: var(--paper) !important; background: var(--teal-dark) !important; }
.message-form { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--paper); border-top: 1px solid var(--line); }
.message-form input[type='text'] { flex: 1; min-width: 0; margin: 0; border-radius: 20px 6px 20px 6px; }
.message-form .send-btn { width: auto; border-radius: 8px 3px 8px 3px; }
.message-media, .message-gif { display: block; max-width: 220px; max-height: 220px; margin-top: 6px; border-radius: 9px 3px 9px 3px; object-fit: cover; }
.message-audio { width: min(220px, 100%); margin-top: 6px; }

.list-container, .statuses-list, .profile-container { flex: 1; min-height: 0; overflow-y: auto; background: var(--surface-muted); }
.list-container { padding: 8px 0; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 7px 12px; padding: 13px 14px; color: var(--ink); background: rgba(255, 253, 248, .86); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 7px 14px 7px 14px; cursor: pointer; }
.list-item:hover { background: var(--surface); border-left-color: var(--coral); transform: translateX(3px); }
.list-item button { width: auto; min-height: 34px; padding: 7px 11px; font-size: .76rem; }
.list-item .delete-group-btn { background: var(--danger); }
.friend-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.list-avatar, .header-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.header-avatar { width: 36px; height: 36px; }
.avatar-placeholder { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; color: var(--ink); background: var(--teal); border-radius: 50%; font-weight: 700; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; color: var(--paper); background: var(--coral); border-radius: 50%; font-size: .7rem; font-weight: 700; }
.avatar-wrapper { position: relative; }
.online-dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; background: #37a86f; border: 2px solid var(--paper); border-radius: 50%; }

.search-box { display: flex; gap: 8px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; margin: 0; border-radius: 20px 6px 20px 6px; }
.search-box button { width: auto; border-radius: 8px 3px 8px 3px; }
.search-profile-link { flex: 1; padding: 0; color: inherit; background: transparent; border: 0; text-align: left; }
.notification { display: none; padding: 10px 14px; color: var(--paper); background: var(--teal-dark); text-align: center; font-weight: 700; cursor: pointer; }
.notification.show { display: block; }
.empty-state { padding: 24px; color: var(--ink-soft); text-align: center; }

.profile-container { padding: 16px; }
.profile-card { padding: 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px 18px 8px 18px; text-align: center; box-shadow: 5px 5px 0 rgba(24, 42, 54, .06); }
.profile-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; margin: 0 auto 14px; overflow: hidden; color: var(--ink); background: var(--teal); border-radius: 50%; font-family: var(--display); font-size: 2rem; font-weight: 700; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { margin-bottom: 4px; font-family: var(--display); font-size: 1.35rem; font-weight: 700; }
.profile-email { margin-bottom: 14px; color: var(--ink-soft); font-size: .84rem; overflow-wrap: anywhere; }
.profile-detail { margin-top: 10px; padding: 11px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 7px 12px 7px 12px; text-align: left; }
.profile-detail span { color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.profile-detail p { margin: 3px 0 0; font-size: .88rem; overflow-wrap: anywhere; }
.profile-stats { display: flex; gap: 10px; margin-bottom: 14px; }
.profile-stats a { flex: 1; padding: 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 7px 13px 7px 13px; text-align: center; text-decoration: none; }
.profile-stats a:hover { border-color: var(--teal); transform: translateY(-1px); }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { font-family: var(--display); font-size: 1.2rem; }
.profile-stats span { color: var(--ink-soft); font-size: .75rem; }
.profile-request-button, .logout-profile-btn { margin-top: 8px; }
.profile-request-button:disabled { opacity: .55; }
.profile-requests-list { padding: 8px 0; }
.profile-request-row { display: flex; align-items: center; gap: 7px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.profile-request-row span { flex: 1; }
.profile-request-row button { width: auto; min-height: 32px; padding: 6px 9px; font-size: .72rem; }

.status-composer, .publication-composer { padding: 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.status-composer textarea, .publication-composer textarea { width: 100%; min-height: 80px; }
.status-actions, .publication-actions { display: flex; align-items: center; gap: 9px; margin-top: 10px; }
.status-actions button, .publication-actions button { width: auto; margin-left: auto; }
.status-file-label, .publication-photo-btn { display: inline-flex; align-items: center; gap: 7px; width: auto; padding: 9px 12px; color: var(--ink); background: var(--teal); border-radius: 8px 3px 8px 3px; cursor: pointer; font-size: .8rem; }
.status-file-name, .publication-file-name { margin-top: 8px; color: var(--ink-soft); font-size: .78rem; }
.statuses-list { padding: 16px; }
.status-card { margin-bottom: 12px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--coral); border-radius: 7px 16px 7px 16px; }
.status-card-header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.status-card-header span, .status-card time { color: var(--ink-soft); font-size: .76rem; }
.status-card p { white-space: pre-wrap; overflow-wrap: anywhere; }
.status-media img, .status-media video { display: block; width: 100%; max-height: 360px; margin-top: 10px; object-fit: contain; border-radius: 8px 3px 8px 3px; background: var(--surface-muted); }
.status-media audio { width: 100%; margin-top: 10px; }
.status-delete-btn, .publication-delete-btn { width: auto; min-height: 32px; margin-top: 10px; padding: 6px 10px; color: var(--danger); background: transparent; border: 1px solid rgba(183, 68, 61, .35); font-size: .76rem; }
.create-group-btn { margin: 10px 0; }
.members-panel { max-height: 200px; overflow-y: auto; padding: 12px 16px; background: var(--paper); border-top: 1px solid var(--line); }
.members-panel h3 { margin: 0 0 8px; color: var(--ink-soft); font-size: .86rem; }
.members-panel ul { list-style: none; padding: 0; }
.members-panel li { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.remove-member-btn { width: auto; min-height: 30px; padding: 4px 9px; color: var(--danger); background: transparent; border: 1px solid rgba(183, 68, 61, .35); border-radius: 7px 3px 7px 3px; font-size: .72rem; }

.actualites-feed { flex: 1 1 auto; min-height: 0; height: 0; overflow-y: auto; overscroll-behavior: contain; }
.actualites-container > .nav-tabs { flex: 0 0 52px; }
.actualites-search { padding: 14px 16px 0; }
.actualites-search > label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.actualites-search .search-box { padding: 0; border: 0; background: transparent; }
.actualites-search-results { margin-top: 7px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px 3px 8px 3px; }
.actualites-search-results button { display: block; width: 100%; color: var(--ink); background: transparent; text-align: left; }
.publication-composer textarea { min-height: 56px; height: 56px; }
.publications-list { flex: 0 0 auto; padding: 14px; }
.publication-card { margin-bottom: 14px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 7px 18px 7px 18px; box-shadow: 4px 4px 0 rgba(24, 42, 54, .06); }
.publication-heading { display: flex; align-items: center; gap: 10px; }
.publication-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; color: var(--paper); background: var(--ink); border-radius: 50% 6px 50% 6px; font-family: var(--display); font-weight: 700; }
.publication-heading strong, .publication-heading time { display: block; }
.publication-heading time { margin-top: 3px; color: var(--ink-soft); font-size: .7rem; }
.publication-caption { margin: 13px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.publication-image { display: block; width: 100%; max-height: 440px; margin-top: 13px; object-fit: cover; border-radius: 7px 3px 7px 3px; }
.publication-empty { padding: 30px 12px; color: var(--ink-soft); text-align: center; }
.publication-notice { margin: 10px 16px 0; padding: 9px 12px; color: var(--ink); background: var(--teal); border-left: 5px solid var(--ink); border-radius: 7px 3px 7px 3px; font-size: .82rem; }
.tech-news-section { flex: 0 0 auto; margin: 0 14px 18px; padding: 18px; background: #eaf2ef; border: 1px solid #cdded8; border-radius: 10px 20px 10px 20px; }
.tech-news-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-kicker { margin: 0 0 4px; color: var(--teal-dark); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tech-news-heading h2 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.tech-news-subtitle, .tech-news-status { color: var(--ink-soft); font-size: .8rem; }
.tech-news-subtitle { margin: 6px 0 0; }
.tech-news-status { margin: 14px 0 8px; }
.refresh-news-btn { width: auto; min-height: 36px; padding: 7px 11px; color: var(--teal-dark); background: var(--surface); border: 1px solid var(--teal-dark); border-radius: 8px 3px 8px 3px; }
.refresh-news-btn:hover { background: var(--teal); }
.tech-news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tech-news-card { min-width: 0; overflow: hidden; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px 3px 8px 3px; }
.tech-news-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(24, 42, 54, .09); }
.tech-news-image { display: block; width: calc(100% + 28px); height: 150px; margin: -14px -14px 12px; object-fit: cover; background: var(--surface-muted); }
.tech-news-source { color: var(--teal-dark); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.tech-news-card h3 { margin: 8px 0; font-size: .96rem; line-height: 1.35; }
.tech-news-card h3 a { color: var(--ink); text-decoration: none; }
.tech-news-card h3 a:hover { color: var(--coral-dark); text-decoration: underline; }
.tech-news-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: .82rem; }
.tech-news-card time { color: var(--ink-soft); font-size: .7rem; }
.tech-news-empty { grid-column: 1 / -1; color: var(--danger); }

.call-overlay { position: fixed; z-index: 30; inset: 12% 5% auto; max-width: 620px; margin: auto; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--coral); border-radius: 10px 22px 10px 22px; box-shadow: var(--shadow); }
.call-overlay video { width: 100%; max-height: 360px; background: var(--ink); border-radius: 8px 3px 8px 3px; object-fit: contain; }
.call-overlay video[hidden] { display: none; }
#call-local-video { width: 30%; margin-top: 8px; }
.call-overlay-actions { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.call-overlay-actions button { width: auto; }
.message-picker { position: fixed; z-index: 20; width: min(310px, calc(100vw - 20px)); max-height: min(420px, 70vh); overflow: auto; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px 18px 9px 18px; box-shadow: var(--shadow); }
.message-picker-tabs, .message-picker-content { display: flex; gap: 8px; }
.message-picker-tabs { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.message-picker-tab, .message-picker-close { width: auto; min-height: 32px; padding: 5px 7px; color: var(--ink); background: transparent; border: 0; }
.message-picker-tab.active { color: var(--coral-dark); font-weight: 700; }
.message-picker-close { position: absolute; top: 7px; right: 7px; font-size: 1.1rem; }
.message-picker-content { display: block; padding-top: 10px; }
.sticker-grid, .gif-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sticker-button, .gif-button { min-height: 48px; padding: 0; overflow: hidden; background: var(--surface-muted); border: 0; border-radius: 6px; }
.sticker-button { font-size: 1.7rem; }
.gif-button { aspect-ratio: 1; }
.gif-button img { width: 100%; height: 100%; object-fit: cover; }
.reaction-chip, .reaction-add-button { width: auto; min-height: 28px; padding: 3px 8px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; }
.message-reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.poll-fields, .poll-card { display: grid; gap: 8px; margin-top: 8px; }
.poll-card { padding: 10px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 7px 13px 7px 13px; }
.poll-card button { padding: 7px 9px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.group-profile-panel { position: relative; z-index: 5; margin: 8px 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px 16px 8px 16px; box-shadow: var(--shadow); }
.group-profile-content { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 16px; }
.group-profile-card { max-width: 520px; margin: 0 auto; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px 18px 8px 18px; text-align: center; }
.group-profile-avatar-large, .group-avatar-placeholder { display: block; width: 116px; height: 116px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; }
.group-avatar-placeholder { display: grid; place-items: center; background: var(--teal); font-size: 2.8rem; }
.group-profile-card h2 { margin: 0 0 8px; color: var(--ink); font-size: 1.4rem; }
.group-profile-card p, .group-profile-description, .group-profile-status { color: var(--ink-soft); }
.group-profile-heading, .group-profile-buttons { display: flex; align-items: center; gap: 8px; }
.group-profile-heading { justify-content: space-between; }
.group-profile-heading h2 { margin: 0; font-size: 1.05rem; }
.group-profile-avatar { display: block; width: 88px; height: 88px; margin: 14px auto; border-radius: 50%; object-fit: cover; }
.group-profile-buttons { flex-wrap: wrap; margin-top: 10px; }
.group-owner-actions { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.group-owner-actions input, .group-owner-actions textarea { width: 100%; padding: 11px; }
.group-owner-actions textarea { min-height: 82px; resize: vertical; }

@media (max-width: 768px) {
  body { align-items: flex-start; background: var(--paper); }
  .auth-container, .chat-container { width: 100%; max-width: 100%; height: 100vh; min-height: 100vh; border-radius: 0; box-shadow: none; border-width: 0; }
  .chat-header { padding: 15px 13px 12px 48px; }
  .chat-header h1 { font-size: 1.05rem; }
  .chat-header h1::after { display: none; }
  .nav-tabs a { font-size: .62rem; }
  .message { max-width: 82%; }
}

@media (max-width: 560px) {
  .auth-container { padding: 26px 20px; }
  .auth-container h1 { font-size: 1.75rem; }
  .chat-header { flex-wrap: wrap; gap: 6px; }
  .logout-btn, .back-btn { padding: 6px 9px; font-size: .72rem; }
  .tech-news-heading { display: block; }
  .refresh-news-btn { margin-top: 12px; }
  .message-form { gap: 5px; padding: 8px; }
  .message-form .action-btn { width: 34px !important; min-width: 34px; min-height: 34px; }
  .message-form .send-btn { padding: 8px 10px; }
  .publication-actions { flex-wrap: wrap; }
}
