:root {
  --bg: #f5f5f5;
  --surface: #f0f0f0;
  --surface-soft: #f5f5f5;
  --hover: #e8e8e8;
  --hover-strong: #e0e0e0;
  --border: #e0e0e0;
  --border-strong: #d0d0d0;
  --text: #333333;
  --text-muted: #666666;
  --text-faint: #999999;
  --blue: #e8e8e8;
  --blue-hover: #e0e0e0;
  --blue-soft: #f0f0f0;
  --danger: #999999;
  --success: #999999;
  --tint-blue: #f5f5f5;
  --tint-green: #f5f5f5;
  --tint-cream: #f5f5f5;
  --line-blue: #e0e0e0;
  --line-green: #e0e0e0;
  --line-amber: #e0e0e0;
  --radius: 0;
  --radius-btn: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.muted { color: var(--text-muted); font-size: 12px; }
.hidden { display: none !important; }

.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 10px;
  height: 45px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  font-size: 18px; 
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo span { color: var(--text-muted); }
.logo:hover { text-decoration: none; }
.logo-lg { font-size: 20px; }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  color: var(--text);
  font-weight: 400;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 0;
  transition: background .12s;
}
.nav-link:hover { background: var(--hover); text-decoration: none; }
.nav-link { position: relative; display: inline-flex; align-items: center; }
.nav-unread {
  display: none;
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 0;
  border: 1px solid #999999; color: #999999;
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
}
.nav-unread.visible { display: inline-flex; align-items: center; justify-content: center; }

.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user-info { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 0; transition: background .12s; font-size: 12px; font-weight: 400;}
.nav-user-info:hover { background: var(--hover); text-decoration: none; }
.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  background: var(--border); color: var(--text);
}
.placeholder-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: var(--text);
  font-weight: 600;
  flex-shrink: 0;
}
.placeholder-big { font-size: 34px; }
.placeholder-community { background: var(--border); }
.nav-username { color: var(--text); font-weight: 400; font-size: 12px; }
.nav-logout { color: var(--text-muted); font-size: 12px; padding: 6px 10px; border-radius: 0; }
.nav-logout:hover {  background: var(--hover); text-decoration: none; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  margin-left: 3px;
  vertical-align: middle;
}
.verified-badge .hgi-stroke::before { font-size: 13px; }

.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  border-radius: 0;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  margin-left: auto;
}
.burger-btn:hover { background: var(--hover); }
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px 14px;
  flex-direction: column;
  z-index: 110;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 8px;
  color: var(--text);
  font-size: 13px;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-link:hover { background: var(--hover); text-decoration: none; }
.mobile-menu-footer {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mobile-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}
.mobile-user:hover { text-decoration: none; }

.layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 28px;
}
.layout-profile { grid-template-columns: minmax(0, 1fr); }
.layout-single { grid-template-columns: minmax(0, 1fr); }
.layout-single > .content { margin: 0 auto; }
.layout-chat { grid-template-columns: 320px minmax(0, 1fr); }
.layout-chat > .content { min-width: 0; }
.content { min-width: 0; }
.content-wide { max-width: 760px; width: 100%; margin: 0 auto; }
.content-narrow { max-width: 640px; width: 100%; margin: 0 auto; }
.sidebar { display: flex; flex-direction: column; gap: 8px; }

.side-card {
  padding: 8px; padding-top: 0;
  border-radius: 0;
}
.side-title {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-faint);
  font-weight: 400;
  padding: 4px 10px 8px;
}

.side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 0; transition: background .12s;
}
.side-item:hover { background: var(--hover); text-decoration: none; }
.side-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  font-size: 13px;
}
.side-item-info { display: flex; flex-direction: column; min-width: 0; }
.side-item-name { color: var(--text); font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center;}
.side-item-sub { color: var(--text-muted); font-size: 12px; }

.rules-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rules-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.rules-icon { font-size: 15px; color: var(--text-muted); flex-shrink: 0; margin-top: 1px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 0;
  border: 0px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: #c0c0c0; text-decoration: none; color: var(--text); }
.btn-primary { background: var(--border); color: var(--text); border: 0px solid var(--border-strong); }
.btn-primary:hover { background: var(--hover); border-color: var(--border-strong); color: var(--text); }
.btn-danger { color: var(--text-muted); border-color: var(--border-strong); background: var(--surface); }
.btn-danger:hover { background: var(--hover); border-color: var(--border-strong);  }
.btn-ghost { border-color: transparent; background: var(--surface); margin-top: 4px; border: 0;}
.btn-ghost:hover { background: var(--hover); border: 0;}
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-file { position: relative; cursor: pointer; padding: 4px 10px;}
.file-input { display: none; }

.input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 0;
  border: 0px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: border-color .12s;
  outline: none;
}
.input:hover { border-color: var(--border-strong); }
.input:focus { border-color: var(--text-muted); }
.textarea { resize: vertical; min-height: 64px; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 400; color: var(--text-muted); }

.alert { padding: 10px 14px; border-radius: 0; font-size: 14px; }
.alert-error { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.alert-success { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }

.auth-page {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--bg);
}
.auth-card {
  background: var(--surface);
  border: 0px solid var(--border);
  border-radius: 0;
  padding: 30px; padding-top: 20px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-title {margin-top: -17px; font-size: 14px; font-weight: 400; letter-spacing: -0.2px; }
.auth-switch { color: var(--text-muted); font-size: 13px; text-align: center; }

.composer { padding: 16px; margin-bottom: 24px; background: var(--tint-blue); border: 1px solid var(--line-blue); }
.composer-title { font-size: 13px; font-weight: 400; margin-bottom: 9px; margin-top: -3px;}
.composer-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.composer-actions .btn-primary { margin-left: auto; }
.file-name { color: var(--text-muted); font-size: 13px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}

.post { padding: 0; border-radius: 0; margin-bottom: 18px; overflow: hidden; touch-action: manipulation; }
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 18px;
  border-bottom: 1px solid var(--border);
}
.post-author { display: flex; align-items: center; gap: 10px; }
.post-author:hover { text-decoration: none; }
.post-avatar {
  width: 25px; height: 25px;
  border-radius: 50%; object-fit: cover;
  font-size: 14px;
}
.post-author-info { display: flex; flex-direction: column; }
.post-author-name { color: var(--text); font-size: 13px; font-weight: 400; }
.post-author:hover .post-author-name { color: var(--text-muted); }
.post-date { color: var(--text-muted); font-size: 11px; }
.post-content { padding: 8px 18px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.post-community {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 0;
}

.post-media { padding: 0 18px; }
.media-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 0;
  background: var(--surface-soft);
}
.media-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px;
  border-radius: 0;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 14px;
  font-size: 12px;
}
.media-file:hover { border-color: var(--border-strong); text-decoration: none; }
.media-file-name { color: var(--text); }
.media-file-meta { margin-left: auto; color: var(--text-muted); font-size: 11px; white-space: nowrap; }

.post-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 0; background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  margin-right: 6px;
}
.vote-btn:hover { background: var(--hover-strong); color: var(--text); }
.vote-btn.active.up { background: var(--tint-green); border-color: var(--line-green); color: var(--text-muted); }
.vote-btn.active.down { background: var(--surface); border-color: var(--border); color: var(--text-muted); }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  transition: background .12s, color .12s;
}
.action-btn:hover { background: var(--hover); color: var(--text); }

.comments-section {
  border-top: 1px solid var(--border);
  background: var(--tint-green);
  padding: 16px 18px;
}
.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.comment { display: flex; gap: 10px; }
.comment-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; font-size: 12px; flex-shrink: 0; }
.comment-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
  flex: 1;
}
.comment-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: 13px; font-weight: 400; color: var(--text); }
.comment-date { font-size: 11.5px; color: var(--text-faint); }
.comment-text { font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.comment-actions { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.comment-reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.comment-reaction:hover { background: var(--hover); }
.comment-reaction.active.like { color: var(--text-muted); border-color: var(--border); background: var(--tint-green); }
.comment-reaction.active.dislike { color: var(--text-muted); border-color: var(--border); background: var(--surface); }
.comment-reply-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.comment-reply-btn:hover { color: var(--text); }
.comment-replies { margin-left: 40px; margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.sub-comment .comment-body { background: var(--surface-soft); }
.comment-form { display: flex; gap: 8px; }
.comment-form .input { flex: 1; background: var(--surface); }
.reply-form { display: flex; gap: 8px; margin-top: 8px; }
.reply-form .input { flex: 1; padding: 5px 10px; font-size: 13.5px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }

.page-title { font-size: 18px; font-weight: 400; letter-spacing: -0.4px; margin-bottom: 4px; }
.section-title { font-size: 18px; font-weight: 400; margin: 28px 0 16px; }
.community-profile.composer, .profile-card.composer { overflow: hidden; }
.profile-card.composer,
.community-profile.composer {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  margin-bottom: 24px;
}
.profile-card.composer .composer-title,
.community-profile.composer .composer-title {
  padding: 14px 20px 10px;
  margin-bottom: 0;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0px 24px;
  flex-wrap: wrap; padding-bottom: 15px;
}
.profile-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 24px;
  background: var(--border);
  color: var(--text);
  flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 14px; font-weight: 400; letter-spacing: -0.2px; }
.profile-bio { color: var(--text-muted); font-size: 12px; }
.profile-actions { margin-left: auto; }

.settings-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.settings-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 40px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.community-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: 0;
  padding: 0px 57px 0px;
  transition: border-color .12s; margin-bottom: 5px;
}
.community-card:hover { border-color: var(--border); text-decoration: none; }
.community-card .chat-list-chevron { margin-left: auto; }
.community-card:hover .chat-list-chevron { opacity: 1; color: var(--text-muted); }
.community-avatar {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 48px; height: 48px;
  border-radius: 0;
  object-fit: cover;
  font-size: 20px;
  flex-shrink: 0;
}
.community-card-info { display: flex; flex-direction: column; min-width: 0; }
.community-name { color: var(--text); display: block; margin-top: 7px; font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.community-member-badge {
  display: inline-flex; display: none;
  align-self: flex-start;
  padding: 1px 8px;
  margin-top: 4px;
  border-radius: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 400;
}
.empty-state { padding: 28px; text-align: center; }
.owner-badge {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 0;
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}
.community-page-avatar { background: var(--border); }

.chat-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.chat-header-row .page-title { margin-bottom: 0; }
.side-card-header { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 0; }
.side-card-header .side-title { padding: 4px 0 8px; }
.chat-side-item { position: relative; margin-top: 5px;}
.chat-side-item.active { background: var(--tint-blue); }
.chat-side-item.active:hover { background: var(--tint-blue); }
.side-unread {
  display: inline-flex;
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 0;
  background: var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
  vertical-align: 1px;
}
.chat-list-chevron {
  margin-left: auto;
  color: var(--text-faint);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .12s, color .12s;
}
.chat-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 15px;
  flex-shrink: 0;
}
.chat-avatar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.group-avatar {
  background: var(--border);
  color: var(--text);
  font-weight: 400;
  border-radius: 0; font-size: 13px;
}
.chat-unread {
    margin-left: 6px;
    min-width: 15px;
    height: 14px;
    padding: 0 5px;
    border-radius: 0;
    border: 1px solid var(--text-muted); 
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
    text-align: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chat-page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.chat-page-title { font-size: 13px; font-weight: 400; letter-spacing: -0.2px; margin-top: 0px;}
.chat-page-header .btn { margin-left: auto; }

.chat-window { display: flex; flex-direction: column; overflow: hidden; }
.chat-messages {
  height: 55vh;
  overflow-y: auto;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--tint-green);
  border-bottom: 1px solid var(--line-green);
}
.message { display: flex; gap: 10px; width: 100%; max-width: 100%; padding: 2px 14px; border-radius: 0; }
.message:hover { }
.message-avatar-link {
  display: block;
  flex-shrink: 0;
  margin-top: 3px;
  line-height: 0;
}
.message-avatar-link:hover { text-decoration: none; }
.message-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; font-size: 12px; flex-shrink: 0; }
.message-bubble { flex: 1; min-width: 0; padding: 0; background: transparent; border: none; }
.message-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 1px; }
.message-sender { font-size: 13px; font-weight: 400; color: var(--text); cursor: pointer; }

.chat-messages .hgi-stroke.hgi-circle-check::before {margin-left: -7px; }
.message-sender:hover { text-decoration: underline; }
.message .verified-badge { font-size: 11px; }
.message-time { font-size: 11px; color: var(--text-faint); }
.message-edited { font-style: italic; opacity: .8; color: var(--text-faint); margin-left: 4px; }
.message-text { font-size: 13px; line-height: 1.5; margin: 2px 0 4px; white-space: pre-wrap; word-break: break-word; }

.message-reply {
  background: var(--surface);
  border-left: 2px solid var(--border);
  padding: 4px 8px;
  margin: 2px 0 4px;
  cursor: pointer;
  font-size: 11.5px;
  color: var(--text-muted);
  max-height: 40px;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}
.message-reply-author { font-weight: 600; color: var(--text); margin-right: 6px; }
.message-reply-text { word-break: break-word; margin-left: 5px;}

.edit-box { display: flex; flex-direction: column; gap: 6px; padding: 2px 0; }
.edit-actions { display: flex; gap: 6px; justify-content: flex-end; }
.edit-input { min-height: 44px; resize: vertical; font-size: 12px; }

.reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
}
.reply-bar-label { flex: 1; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}
.reply-bar-close:hover { color: var(--text); }

.ctx-menu {
  position: fixed;
  z-index: 1000;
  display: none;
  min-width: 160px;
  background: var(--surface);
  border-radius: 0;
  padding: 4px; border: 1px solid var(--border-strong);
}
.ctx-item {
  display: block; font-family: 'Inter'; font-size: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text);
  border-radius: 0;
  cursor: pointer;
}
.ctx-item:hover { background: var(--hover); }
.ctx-item.ctx-danger { color: var(--text-muted); }
.ctx-item.ctx-danger:hover { background: var(--hover); }

.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; background: var(--surface); }
.day-divider {
  text-align: center;
  position: relative;
  margin: 4px 0;
}
.day-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}
.day-divider span {
  position: relative;
  background: var(--tint-green);
  padding: 0px 12px;
  border-radius: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400; margin-top: -5px;
}

.search-results { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 12px;
  border-radius: 0;
  cursor: pointer;
  transition: border-color .12s;
  color: var(--text); font-size: 12px;
}
.search-result-item:hover { background: var(--surface); }
.search-result-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; font-size: 11px; }
.selected-users { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 0;
  background: var(--tint-blue);
  border: 1px solid var(--line-blue);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.selected-chip .remove-chip { cursor: pointer; color: var(--text-muted); font-weight: 700; }
.selected-chip .remove-chip:hover { color: var(--text); }

.custom-player { background: var(--surface); border-radius: 0; overflow: hidden; margin-bottom: 14px; }
.custom-player video { width: 100%; aspect-ratio: 16 / 9; max-height: 360px; display: block; background: #000; }
.custom-player audio { display: none; }
.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 10px;
  background: var(--surface);
}
.player-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.player-btn:hover { background: var(--hover); }
.player-progress { flex: 1; height: 4px; background: var(--border); border-radius: 0px; cursor: pointer; position: relative; }
.player-progress-fill { height: 100%; background: var(--text-muted); border-radius: 0px; width: 0; }
.player-time { color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 90px; text-align: center; white-space: nowrap; flex-shrink: 0; }
.player-volume { width: 80px; display: flex; align-items: center; }
.player-volume .player-progress { width: 60px; flex: none; }

.custom-player:fullscreen {
  border-radius: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #000;
}
.custom-player:fullscreen video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; flex: 1; }
.custom-player:fullscreen .player-controls { background: rgba(20, 20, 20, .92); }
.custom-player:fullscreen .player-btn { color: #fff; }
.custom-player:fullscreen .player-btn:hover { background: rgba(255, 255, 255, .15); }
.custom-player:fullscreen .player-progress { background: #3a3a3a; }
.custom-player:fullscreen .player-time { color: #c9c9c9; }
.custom-player:-webkit-full-screen { border-radius: 0; margin: 0; display: flex; flex-direction: column; background: #000; }
.custom-player:-webkit-full-screen video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; flex: 1; }

.post-hidden {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
}
.post-hidden-text {
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.post-hidden-text .hgi-stroke { color: var(--text); font-size: 16px; } 
.hgi-stroke.hgi-circle-check {margin-left: -6px;}

.post-deleted {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
}
.post-edit-box { display: flex; flex-direction: column; gap: 6px; padding: 8px 18px; }

.admin-head { display: flex; align-items: center; justify-content: space-between; }
.admin-head .composer-title { margin: 0; }
.admin-error { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.admin-login-form { display: flex; gap: 10px; }
.admin-login-form .input { flex: 1; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-list { padding: 0; }
.admin-post-row,
.admin-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-post-row:last-child,
.admin-user-row:last-child { border-bottom: none; }
.admin-row-main { flex: 1; min-width: 180px; }
.admin-row-title { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; }
.admin-row-title a { color: var(--text); }
.admin-row-title a:hover { text-decoration: none; color: var(--text-muted); }
.admin-row-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.admin-id { color: var(--text-faint); }
.admin-row-date { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.admin-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 0;
  background: var(--surface);
  color: var(--text-muted);
  white-space: nowrap;
}
.admin-status.bad { background: var(--surface); color: var(--text-muted); }

.lang-dropdown { position: relative; display: inline-block; }
.lang-dropdown-val {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; width: 100%;
  border-radius: 0; background: var(--surface);
  color: var(--text); cursor: pointer; font-size: 12px; user-select: none; transition: background .12s, border-color .12s;
}
.lang-dropdown-val:hover { border-color: var(--border-strong); background: var(--hover);}
.lang-dropdown-val i { color: var(--text-muted); font-size: 16px; }
.lang-dropdown-val .lang-chevr { font-size: 12px; }
.lang-dropdown-list {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 50;
  min-width: 100%; margin: 0; padding: 4px; list-style: none;
  background: var(--surface);
  border-radius: 0;
}
.lang-option {
  padding: 7px 10px; border-radius: 0; cursor: pointer;
  font-size: 12px; color: var(--text); white-space: nowrap;
}
.lang-option:hover { background: var(--hover); }
.lang-option.selected { background: var(--blue-soft); color: var(--text); font-weight: 400; }
.auth-lang { display: flex; flex-direction: column; gap: 8px; margin-top: 0px; padding-top: 0px; border-top: 0px solid var(--border); }
.auth-lang-label { font-size: 13px; color: var(--text-muted); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .layout-chat .sidebar-left { display: block; }
  .layout-chat .sidebar-left .side-card { max-height: 40vh; overflow-y: auto; }
  .composer-actions { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .navbar .nav-links, .navbar .nav-user { display: none; }
  .burger-btn { display: flex; }
  .nav-inner { justify-content: space-between; }
  .profile-header { flex-direction: column; align-items: center; text-align: center; }
  .profile-actions { margin-left: 0; }
}
