/* CONNECT - style.css
   The paint and the furniture. Colours, spacing and shapes live here. */

:root {
    --sidebar: #111827;
    --sidebar-soft: #1b2434;
    --topbar: #1e293b;
    --topbar-soft: #2b374b;
    --page: #eef1f5;
    --card: #ffffff;
    --line: #e5e9f0;
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --green: #22c55e;
    --blue: #2563eb;
    --red: #dc2626;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--body);
    background: var(--page);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; }

img { max-width: 100%; }

.icon { flex: 0 0 auto; vertical-align: middle; }
.icon-bubble { fill: #cbd5e1; stroke: none; color: #cbd5e1; }
.icon-image { color: #94a3b8; }
.icon-clip { color: #94a3b8; }
.icon-clock, .icon-pin, .icon-arrow, .icon-check, .icon-plus, .icon-close { color: #94a3b8; }

/* ================= the frame ================= */

.app { display: flex; min-height: 100vh; align-items: stretch; }

.sidebar {
    width: 258px;
    flex: 0 0 258px;
    background: var(--sidebar);
    color: #d6dce6;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 22px 22px 18px;
}
.brand:hover { text-decoration: none; }
.brand-name { color: #ffffff; font-size: 20px; font-weight: 800; letter-spacing: 2px; }

.me-card { text-align: center; padding: 6px 20px 20px; }
.me-avatar { position: relative; display: inline-block; }
.me-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #2b374b;
}
.me-name { color: #ffffff; font-weight: 700; font-size: 17px; margin-top: 12px; }
.me-status { color: var(--green); font-size: 13.5px; margin-top: 2px; }

.dot {
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--sidebar);
    display: block;
}
.dot-green { background: var(--green); }

.sidebar-rule { height: 1px; background: #222c3d; margin: 0 18px 12px; }

.nav { display: flex; flex-direction: column; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 22px;
    color: #c3cbd8;
    font-size: 15px;
    font-weight: 600;
    border-left: 3px solid transparent;
}
.nav-link:hover { background: var(--sidebar-soft); color: #ffffff; text-decoration: none; }
.nav-link.is-active {
    background: var(--sidebar-soft);
    color: #ffffff;
    border-left-color: #3b82f6;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 74px;
    background: var(--topbar);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 30;
}

.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--topbar-soft);
    border-radius: 999px;
    padding: 11px 18px;
    width: 100%;
    max-width: 470px;
    color: #94a3b8;
}
.search-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    min-width: 0;
}
.search-wrap input::placeholder { color: #93a1b5; }

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    padding: 6px;
    color: var(--body);
    max-height: 380px;
    overflow-y: auto;
    z-index: 40;
}
.search-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 9px;
    color: var(--body);
}
.search-item:hover, .search-item.is-cursor { background: #f1f5f9; text-decoration: none; }
.search-item img { width: 32px; height: 32px; border-radius: 50%; }
.search-item .search-name { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.search-item .search-kind { font-size: 12px; color: var(--muted); }
.search-empty { padding: 14px; color: var(--muted); font-size: 14px; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 9px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
}
.icon-btn:hover { background: var(--topbar-soft); color: #ffffff; }
.avatar-btn img { width: 34px; height: 34px; border-radius: 50%; display: block; }

.badge {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 330px;
    background: #ffffff;
    color: var(--body);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
    padding: 6px;
    z-index: 40;
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-head {
    padding: 10px 12px;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}
.dropdown-empty { padding: 14px; color: var(--muted); font-size: 14px; margin: 0; }
.dropdown-foot {
    display: block;
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
    font-size: 13.5px;
    font-weight: 600;
}
.notif-item { display: flex; gap: 11px; padding: 10px 12px; border-radius: 9px; color: var(--body); }
.notif-item:hover { background: #f1f5f9; text-decoration: none; }
.notif-item.is-new { background: #f0f7ff; }
.notif-avatar { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.notif-text { display: block; min-width: 0; }
.notif-line { display: block; font-size: 13.8px; }
.notif-time { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.me-menu { width: 200px; }
.me-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--body); font-size: 14.5px; }
.me-menu a:hover { background: #f1f5f9; text-decoration: none; }

.content { flex: 1; padding: 24px; background: var(--page); }

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 336px;
    gap: 22px;
    max-width: 1480px;
    margin: 0 auto;
    align-items: start;
}
.grid-wide { grid-template-columns: minmax(0, 1fr); }
.center { min-width: 0; }

.flash {
    max-width: 1480px;
    margin: 0 auto 18px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14.5px;
}
.flash-success { background: #ecfdf5; color: #15803d; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }

/* ================= cards ================= */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    margin-bottom: 20px;
}
.card:last-child { margin-bottom: 0; }
.card-title { font-size: 23px; font-weight: 700; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-title-sm { font-size: 17px; padding: 0; border: none; }
.card-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}
.card-pad { padding: 20px 24px; }
.online-now { color: var(--green); font-weight: 700; font-size: 14px; }

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.page-title { font-size: 25px; font-weight: 800; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ================= the board (dashboard) ================= */

.board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}
.board-title { font-size: 25px; font-weight: 800; }
.board-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 15px; }
.board-section { font-size: 19px; font-weight: 700; margin: 6px 0 2px; }

.thread-card {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 18px 20px;
    background: #ffffff;
}
.thread-card:hover { border-color: #cfd8e6; box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.thread-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.thread-title-link { font-size: 19px; font-weight: 700; color: var(--ink); }
.thread-title-link:hover { color: var(--blue); text-decoration: none; }
.thread-meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.thread-row { display: flex; gap: 20px; margin-top: 13px; }
.thread-main { flex: 1; min-width: 0; }
.thread-preview { display: flex; gap: 11px; color: var(--body); font-size: 15px; }
.thread-preview p { margin: 0; }
.thread-foot { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 13.5px; }
.thread-foot span { display: inline-flex; align-items: center; gap: 6px; }
.thread-last {
    width: 285px;
    flex: 0 0 285px;
    background: #f8fafc;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    padding: 12px 14px;
    align-self: flex-start;
}
.reply-head { display: flex; align-items: center; gap: 9px; }
.reply-head img { width: 30px; height: 30px; border-radius: 50%; }
.reply-name { font-weight: 700; color: var(--ink); font-size: 13.5px; }
.reply-time { color: #94a3b8; font-size: 12.5px; }
.reply-text { font-size: 14px; color: #475569; margin: 7px 0 0; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12.5px;
    font-weight: 600;
}

/* ================= a single thread ================= */

.thread-post { padding: 22px 24px; }
.post-author { display: flex; align-items: center; gap: 12px; }
.post-author img { width: 46px; height: 46px; border-radius: 50%; }
.post-author-name { font-weight: 700; color: var(--ink); }
.post-text { margin: 14px 0 0; font-size: 15.5px; line-height: 1.65; white-space: pre-wrap; word-wrap: break-word; }
.post-image { max-width: 100%; max-height: 430px; border-radius: 10px; border: 1px solid var(--line); margin-top: 14px; display: block; }
.reply-item { display: flex; gap: 13px; padding: 17px 24px; border-top: 1px solid var(--line); }
.reply-item img { width: 42px; height: 42px; border-radius: 50%; }
.reply-item .post-text { margin-top: 6px; font-size: 15px; }

/* ================= right panel ================= */

.right { min-width: 0; }
.intro-body { padding: 20px 22px 22px; text-align: center; }
.intro-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #eef2f7;
}
.intro-label { font-weight: 700; color: var(--ink); margin: 18px 0 4px; text-align: left; }
.intro-text { margin: 0; text-align: left; color: #475569; font-size: 14.2px; }
.intro-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn {
    background: none;
    border: none;
    padding: 0;
    margin-top: 6px;
    color: var(--blue);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}
.online-list { list-style: none; margin: 0; padding: 6px 8px 10px; }
.online-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: var(--body); }
.online-item:hover { background: #f1f5f9; text-decoration: none; }
.online-avatar { position: relative; display: inline-block; }
.online-avatar img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.online-avatar .dot { border-color: #ffffff; width: 11px; height: 11px; right: 0; bottom: 0; }
.online-name { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.online-empty { padding: 12px; color: var(--muted); font-size: 14px; }

/* ================= buttons ================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    background: #ffffff;
}
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--sidebar); color: #ffffff; }
.btn-dark:hover { background: #1f2937; color: #ffffff; }
.btn-blue { background: var(--blue); color: #ffffff; }
.btn-blue:hover { background: #1d4ed8; color: #ffffff; }
.btn-green { background: #16a34a; color: #ffffff; }
.btn-green:hover { background: #15803d; color: #ffffff; }
.btn-ghost { border-color: #d6dde8; color: #334155; }
.btn-ghost:hover { background: #f8fafc; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; }
.btn-block { display: flex; width: 100%; justify-content: center; margin-top: 18px; }
.btn-danger { border-color: #fecaca; color: var(--red); }
.btn-danger:hover { background: #fef2f2; }

/* ================= forms ================= */

.field { margin-bottom: 15px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d6dde8;
    border-radius: 9px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #ffffff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}
.field input[type="file"] { padding: 10px; background: #f8fafc; font-size: 14px; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-error { display: none; color: var(--red); font-size: 13.5px; font-weight: 600; margin: 6px 0 0; }
.field-error.show { display: block; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.notice {
    padding: 12px 15px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
}
.notice strong { color: var(--ink); }

/* ================= login / signup ================= */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 20% 10%, #1e293b, #0b1220 70%);
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 16px;
    padding: 34px 34px 30px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .45);
}
.auth-brand { display: flex; align-items: center; gap: 11px; justify-content: center; margin-bottom: 8px; }
.auth-brand span { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.auth-title { text-align: center; font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.demo-box {
    margin-top: 20px;
    padding: 13px 15px;
    background: #f1f5f9;
    border-radius: 10px;
    font-size: 13.5px;
    color: #475569;
}
.demo-box code { background: #ffffff; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* ================= groups ================= */

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.group-card { padding: 20px; }
.group-name { font-size: 18.5px; font-weight: 700; }
.group-desc { font-size: 14.5px; color: #475569; margin: 9px 0 14px; }
.group-meta { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.group-actions { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.member-stack { display: flex; margin-top: 14px; }
.member-stack img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ffffff; margin-left: -9px; }
.member-stack img:first-child { margin-left: 0; }
.member-more {
    width: 30px; height: 30px; border-radius: 50%; background: #e2e8f0; color: #475569;
    border: 2px solid #ffffff; margin-left: -9px; display: flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 700;
}

/* ================= chat ================= */

.chat-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    height: calc(100vh - 190px);
    min-height: 460px;
}
.chat-side { border-right: 1px solid var(--line); overflow-y: auto; }
.chat-side-title { padding: 15px 16px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.contact { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: var(--body); }
.contact:hover { background: #f8fafc; text-decoration: none; }
.contact.is-active { background: #eef2f7; }
.contact-avatar { position: relative; flex: 0 0 auto; }
.contact-avatar img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.contact-avatar .dot { border-color: #ffffff; }
.contact-meta { min-width: 0; flex: 1; }
.contact-name { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.contact-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex: 0 0 auto; }

.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; }
.chat-head-name { font-weight: 700; color: var(--ink); }
.chat-head-status { font-size: 12.5px; color: var(--green); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: #f8fafc; display: flex; flex-direction: column; gap: 12px; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }
.msg { display: flex; gap: 10px; max-width: 74%; }
.msg-out { align-self: flex-end; flex-direction: row-reverse; }
.msg-body { background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; }
.msg-out .msg-body { background: var(--sidebar); border-color: var(--sidebar); }
.msg-text { font-size: 14.5px; line-height: 1.55; color: var(--body); word-wrap: break-word; }
.msg-out .msg-text { color: #ffffff; }
.msg-time { font-size: 11.5px; color: #94a3b8; margin-top: 4px; }
.bubble-avatar { width: 32px; height: 32px; border-radius: 50%; align-self: flex-end; }
.chat-form { display: flex; gap: 10px; padding: 13px 16px; border-top: 1px solid var(--line); }
.chat-form input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #d6dde8;
    border-radius: 999px;
    font-size: 14.5px;
    font-family: inherit;
}
.chat-form input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .16); }

/* ================= events ================= */

.event-card { padding: 20px 24px; }
.event-title { font-size: 19px; font-weight: 700; }
.event-when { display: flex; align-items: center; gap: 9px; color: #475569; font-size: 14.5px; margin: 10px 0 4px; flex-wrap: wrap; }
.event-desc { font-size: 14.5px; color: #475569; margin: 8px 0 0; }
.rsvp-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.rsvp-btn {
    padding: 8px 15px;
    border: 1px solid #d6dde8;
    background: #ffffff;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    color: #334155;
    cursor: pointer;
}
.rsvp-btn:hover { background: #f8fafc; }
.rsvp-btn.is-chosen { background: var(--sidebar); border-color: var(--sidebar); color: #ffffff; }
.who-going { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ================= profile & settings ================= */

.profile-head { display: flex; gap: 22px; align-items: center; padding: 24px; flex-wrap: wrap; }
.profile-photo { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; border: 4px solid #eef2f7; }
.profile-name { font-size: 24px; font-weight: 800; }
.profile-username { color: var(--muted); font-size: 14.5px; }
.profile-status { font-size: 13.5px; color: var(--green); font-weight: 700; margin-top: 4px; }
.profile-bio { color: #475569; line-height: 1.65; margin: 12px 0 0; max-width: 720px; }
.profile-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.settings-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: none; }
.settings-label { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.settings-hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.avatar-preview { width: 78px; height: 78px; border-radius: 50%; margin-bottom: 12px; border: 3px solid #eef2f7; }

.empty { padding: 30px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mt { margin-top: 18px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ================= smaller screens ================= */

@media (max-width: 1180px) {
    .grid { grid-template-columns: minmax(0, 1fr); }
    .thread-row { flex-direction: column; gap: 14px; }
    .thread-last { width: 100%; flex: 1 1 auto; }
    .chat-layout { height: auto; }
}

@media (max-width: 900px) {
    .sidebar { width: 76px; flex: 0 0 76px; }
    .brand-name, .me-name, .me-status, .nav-link span { display: none; }
    .brand, .me-card, .nav-link { justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; }
    .me-avatar img { width: 54px; height: 54px; }
    .nav-link { border-left: none; border-bottom: 3px solid transparent; }
    .nav-link.is-active { border-left: none; border-bottom-color: #3b82f6; }
    .content { padding: 16px; }
    .chat-layout { grid-template-columns: minmax(0, 1fr); }
    .chat-side { max-height: 220px; border-right: none; border-bottom: 1px solid var(--line); }
    .settings-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- private groups, member list, event export ---------- */

/* The quiet grey line that says "this group is private". */
.group-private {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 5px 0 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #6b4fbb;
}
.group-private .icon { flex: none; }

/* A locked card: dimmed, so it reads as "not for you" without shouting. */
.group-card.is-locked {
    background: #f8fafc;
    border-style: dashed;
}
.group-card.is-locked .group-name {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
}

/* Small lock pill that sits on a card. */
.tag-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #6b4fbb;
    border: 1px solid #ddd6fe;
}

/* One member, with the Remove button beside it. */
.member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.member-row .online-item {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.member-row form { margin: 0; }
.tag-quiet {
    background: #f1f5f9;
    color: #475569;
}

/* The "add somebody" strip above the member list. */
.member-tools {
    margin: 14px 0 4px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
}
.member-add-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.member-add-row select {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d6dde8;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
}
.member-add-row select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
}
.member-add-row .field-error { flex-basis: 100%; margin: 0; }
.member-tools .field-hint { margin-bottom: 0; }

/* The two download buttons on an event card. */
.event-export {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
