:root {
  --primary: #2563EB;
  --accent: #14B8A6;
  --dark: #0F172A;
  --muted: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --danger: #EF4444;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

body {
  padding-bottom: 82px;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
}

.top-search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.top-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--dark);
  border: 1px solid var(--border);
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 86px;
  height: calc(100vh - 110px);
}

.sidebar-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--dark);
  font-weight: 600;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.main-content,
.right-panel,
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.main-content {
  padding: 18px;
}

.right-panel {
  padding: 18px;
}

.card {
  padding: 16px;
}

.hero-card {
  padding: 22px;
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
  color: #fff;
  border-radius: 28px;
}

.hero-card h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.hero-card p {
  margin: 0;
  opacity: 0.95;
}

.post-composer textarea,
.auth-card input,
.auth-card select,
.auth-card textarea,
.main-content input,
.main-content select,
.main-content textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.post-composer textarea {
  min-height: 110px;
  resize: vertical;
}

.feed-post {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.post-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta span {
  font-size: 13px;
  color: var(--muted);
}

.post-actions {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.post-actions button {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.verified-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.install-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 92px;
  z-index: 1200;
}

.install-banner.hidden {
  display: none;
}

.install-banner-content {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.install-banner-content p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.install-actions {
  display: flex;
  gap: 10px;
}

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 1100;
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  text-align: center;
}

.mobile-nav a i {
  font-size: 18px;
}

.mobile-nav a span {
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 26px;
}

.auth-card h1 {
  margin-top: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.help-text {
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.profile-mini .mini-profile-top,
.profile-main-block {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-mini .mini-profile-top img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.mini-stats div {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}

.mini-stats strong {
  display: block;
  font-size: 22px;
}

.mini-stats span {
  color: var(--muted);
  font-size: 13px;
}

.quick-links-row,
.profile-btns-row,
.section-head-inline,
.chips-wrap,
.search-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head-inline {
  align-items: center;
  justify-content: space-between;
}

.feed-loading,
.empty-state {
  padding: 20px;
  border-radius: 18px;
  background: #F8FAFC;
  border: 1px dashed var(--border);
  color: var(--muted);
}

.feed-card {
  margin-bottom: 16px;
}

.post-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.10);
  color: #0F766E;
  font-size: 13px;
  font-weight: 700;
}

.post-body {
  font-size: 15px;
  line-height: 1.65;
}

.post-stats {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.profile-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 18px;
  min-width: 180px;
}

.profile-chip.large {
  min-width: 220px;
}

.profile-chip span,
.profile-chip small,
.small-text {
  color: var(--muted);
}

.profile-header-card {
  overflow: hidden;
  padding: 0;
}

.profile-banner {
  height: 140px;
  background: linear-gradient(135deg, #2563EB 0%, #14B8A6 100%);
}

.profile-main-block {
  padding: 20px;
  margin-top: -44px;
  align-items: flex-end;
}

.profile-avatar-xl {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  background: #fff;
}

.profile-title-wrap h2 {
  margin: 0;
}

.search-box-large {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
}

.search-box-large input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.user-result-card,
.institution-result-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.user-result-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.user-result-left img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-list-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  margin-bottom: 12px;
}

.chat-list-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-list-left img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-list-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.chat-unread-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.messages-area {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.message-bubble {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 82%;
}

.message-bubble.mine {
  margin-left: auto;
  justify-content: flex-end;
}

.message-bubble.theirs {
  margin-right: auto;
}

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.message-content {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.message-bubble.mine .message-content {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.message-text {
  white-space: pre-wrap;
  line-height: 1.55;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 1199px) {
  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .right-col {
    display: none;
  }
}

@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: unset !important;
  }

  .mobile-nav.mobile-only {
    display: grid !important;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .main-content {
    padding: 14px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero-card h1 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .install-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-actions {
    width: 100%;
  }

  .install-actions .btn {
    flex: 1;
  }

  .topbar-right .btn {
    padding: 10px 12px;
  }

  .mini-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .profile-main-block {
    align-items: flex-start;
  }

  .user-result-card,
  .institution-result-card,
  .chat-list-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-list-right {
    align-items: flex-start;
  }

  .message-bubble {
    max-width: 94%;
  }

  .mobile-nav a {
    padding: 8px 2px;
    font-size: 11px;
  }

  .mobile-nav a i {
    font-size: 17px;
  }

  .mobile-nav a span {
    white-space: nowrap;
  }
}
.notification-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
}

.notification-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.notification-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.notification-left img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.notification-system-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.notification-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.notification-type-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.10);
  color: #0F766E;
  font-size: 12px;
  font-weight: 700;
}

.notification-body {
  color: var(--dark);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .notification-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-right {
    align-items: flex-start;
  }
}
.comment-box.hidden {
  display: none;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-head img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  line-height: 1.55;
  color: var(--dark);
}

.verification-admin-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
  margin-bottom: 14px;
}

.verification-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.verification-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 14px;
}

.verification-note-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--dark);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .verification-admin-grid {
    grid-template-columns: 1fr;
  }

  .verification-admin-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
.likePostBtn.liked {
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
}

.profile-image-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-image-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.profile-image-box strong {
  display: block;
  margin-bottom: 10px;
}

.profile-image-box img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .profile-image-preview-grid {
    grid-template-columns: 1fr;
  }
}
.institution-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.institution-directory-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 16px;
}

.institution-directory-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.institution-directory-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  background: #F8FAFC;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-cell img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .institution-directory-grid {
    grid-template-columns: 1fr;
  }

  .institution-directory-top,
  .institution-directory-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
.institution-hero-card {
  overflow: hidden;
}

.institution-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .institution-hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
.compact-hero {
  padding: 18px;
}

.compact-hero h1 {
  font-size: 24px;
}

.compact-card {
  border-radius: 20px;
}

.btn-sm-app {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.compact-stats {
  gap: 8px;
}

.compact-stats div {
  padding: 10px 8px;
  border-radius: 14px;
}

.compact-stats strong {
  font-size: 18px;
}

.compact-stats span {
  font-size: 11px;
}

.feed-card {
  padding: 14px;
  border-radius: 18px;
}

.feed-card .post-head img {
  width: 42px;
  height: 42px;
}

.feed-card .post-actions {
  gap: 8px;
}

.feed-card .post-actions button {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.user-link {
  color: inherit;
}

.user-link:hover {
  color: var(--primary);
}

.text-link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 0;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.only-full {
  display: block !important;
}

.stat-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.stat-link:hover {
  color: var(--primary);
}

.comment-foot {
  margin-top: 8px;
}

.likers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.liker-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.liker-card img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.app-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.app-sheet.hidden {
  display: none;
}

.app-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.app-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 84vh;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 12px 14px 20px;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.app-sheet-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #CBD5E1;
  margin: 2px auto 12px;
}

.app-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.app-sheet-head h3 {
  margin: 0;
  font-size: 18px;
}

.sheet-close-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.app-sheet-body {
  max-height: calc(84vh - 70px);
  overflow-y: auto;
  padding-right: 2px;
}

body.sheet-open {
  overflow: hidden;
}

.modal-comment-form {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 991px) {
  .main-content {
    padding: 12px;
  }

  .card {
    padding: 13px;
    border-radius: 18px;
  }

  .section-title {
    font-size: 17px;
  }

  .quick-links-row.compact-actions {
    gap: 8px;
  }

  .quick-links-row.compact-actions .btn {
    flex: 1;
  }

  .post-composer textarea {
    min-height: 92px;
  }

  .feed-card .post-body {
    font-size: 14px;
  }

  .feed-card .post-actions button {
    font-size: 12px;
    padding: 8px 6px;
  }

  .mini-profile-top img {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 640px) {
  .compact-hero {
    padding: 15px;
    border-radius: 20px;
  }

  .compact-hero h1 {
    font-size: 20px;
  }

  .compact-hero p {
    font-size: 13px;
  }

  .compact-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .compact-stats div {
    padding: 8px 6px;
    min-width: 0;
  }

  .compact-stats strong {
    font-size: 16px;
  }

  .compact-stats span {
    font-size: 10px;
  }

  .btn-sm-app {
    padding: 8px 10px;
    font-size: 12px;
  }

  .feed-card {
    padding: 12px;
    border-radius: 16px;
  }

  .feed-card .post-head {
    gap: 10px;
  }

  .feed-card .post-head img {
    width: 38px;
    height: 38px;
  }

  .feed-card .post-meta strong {
    font-size: 14px;
  }

  .feed-card .post-meta span {
    font-size: 11px;
  }

  .post-chip {
    padding: 6px 10px;
    font-size: 11px;
  }

  .post-stats {
    gap: 14px;
    margin-top: 8px;
  }

  .stat-link {
    font-size: 12px;
  }

  .feed-card .post-actions {
    gap: 6px;
    padding-top: 10px;
  }

  .feed-card .post-actions button {
    font-size: 11px;
    padding: 8px 4px;
  }

  .comment-card {
    padding: 12px;
  }

  .comment-head img {
    width: 34px;
    height: 34px;
  }

  .liker-card {
    padding: 10px;
  }

  .liker-card img {
    width: 38px;
    height: 38px;
  }

  .app-sheet-panel {
    padding: 10px 12px 18px;
    border-radius: 22px 22px 0 0;
  }
}
.compact-stats {
  gap: 8px;
}

.compact-stats div {
  padding: 8px 6px;
  border-radius: 12px;
}

.compact-stats strong {
  font-size: 16px;
}

.compact-stats span {
  font-size: 10px;
}

.app-sheet-panel.compact-sheet {
  max-height: 72vh;
  width: min(100%, 560px);
  margin: 0 auto;
  left: 0;
  right: 0;
  border-radius: 20px 20px 0 0;
  padding: 8px 10px 14px;
}

.compact-sheet-head {
  margin-bottom: 8px;
}

.compact-sheet-head h3 {
  font-size: 16px;
}

.app-sheet-handle {
  width: 42px;
  height: 4px;
  margin-bottom: 8px;
}

.app-sheet-body {
  max-height: calc(72vh - 56px);
  overflow-y: auto;
}

.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.liker-card {
  padding: 10px;
  border-radius: 14px;
}

.liker-card img {
  width: 36px;
  height: 36px;
}

.liker-card strong {
  font-size: 13px;
  line-height: 1.2;
}

.comment-card {
  padding: 10px;
  border-radius: 14px;
}

.comment-head {
  gap: 10px;
  margin-bottom: 6px;
}

.comment-head img {
  width: 32px;
  height: 32px;
}

.comment-head strong {
  font-size: 13px;
  line-height: 1.2;
}

.comment-body {
  font-size: 13px;
}

.comment-foot {
  margin-top: 6px;
}

.sheet-comment-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.one-line-comment-input {
  min-height: 40px !important;
  height: 40px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
  padding: 10px 12px !important;
  line-height: 1.35;
  border-radius: 12px !important;
}

.modal-comment-form {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

@media (max-width: 991px) {
  .app-sheet-panel.compact-sheet {
    max-height: 70vh;
    padding: 8px 10px 12px;
  }

  .app-sheet-body {
    max-height: calc(70vh - 54px);
  }

  .liker-card strong,
  .comment-head strong {
    font-size: 12px;
  }

  .comment-body {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .app-sheet-panel.compact-sheet {
    width: 100%;
    max-height: 68vh;
    border-radius: 18px 18px 0 0;
    padding: 8px 10px 12px;
  }

  .app-sheet-body {
    max-height: calc(68vh - 52px);
  }

  .sheet-comment-row {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }

  .one-line-comment-input {
    min-height: 38px !important;
    height: 38px;
    padding: 9px 11px !important;
    font-size: 13px;
  }

  .sheet-comment-row .btn-sm-app {
    height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .liker-card,
  .comment-card {
    padding: 9px;
  }

  .liker-card img,
  .comment-head img {
    width: 30px;
    height: 30px;
  }
}
.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.replies-list {
  margin-left: 22px;
  padding-left: 10px;
  border-left: 2px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply-item {
  background: #FCFDFE;
}

.replyFormWrap {
  margin-top: 8px;
}

.small-reply-row .one-line-comment-input {
  min-height: 36px !important;
  height: 36px;
}

.small-reply-row .btn-sm-app {
  height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .replies-list {
    margin-left: 14px;
    padding-left: 8px;
  }
}
.compact-composer-card {
  padding: 14px;
}

.compact-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.compact-profile-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .compact-profile-row img {
    width: 34px;
    height: 34px;
  }
}

.compact-profile-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.compact-profile-meta .muted {
  font-size: 12px;
}

.app-post-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-post-input-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 8px 10px;
}

.composer-one-line {
  min-height: 42px !important;
  height: 42px;
  max-height: 160px;
  resize: none;
  overflow-y: auto;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 1.4;
}

.composer-extras {
  border: 1px solid var(--border);
  background: #F8FAFC;
  border-radius: 14px;
  padding: 10px;
}

.composer-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.mini-select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 13px;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .compact-composer-card {
    padding: 12px;
  }

  .compact-profile-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .compact-profile-row img {
    width: 40px;
    height: 40px;
  }

  .compact-profile-meta strong {
    font-size: 13px;
  }

  .compact-profile-meta .muted {
    font-size: 11px;
  }

  .composer-one-line {
    min-height: 40px !important;
    height: 40px;
    font-size: 14px;
  }

  .composer-mini-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mini-select {
    font-size: 12px;
    padding: 9px 10px;
  }

  .composer-actions {
    justify-content: flex-start;
  }
}
.comment-node {
  display: block;
}

.replies-list {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 2px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reply-item-wrap.hidden {
  display: none !important;
}

.comment-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .replies-list {
    margin-left: 12px;
    padding-left: 8px;
  }
}
/* ---------------------------------
   Better mobile composer experience
----------------------------------*/
.composer-extras {
  border: 1px solid var(--border);
  background: #F8FAFC;
  border-radius: 14px;
  padding: 10px;
}

.composer-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mini-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mini-select {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  outline: none;
  font-size: 13px;
  color: var(--dark);
  box-shadow: none;
}

.mini-select:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.composer-actions .btn {
  flex-shrink: 0;
}

.composer-actions .help-text {
  flex: 1;
  min-width: 180px;
}

/* Mobile polish */
@media (max-width: 640px) {
  .compact-composer-card {
    padding: 12px;
    border-radius: 16px;
  }

  .app-post-form {
    gap: 8px;
  }

  .app-post-input-wrap {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .composer-one-line {
    min-height: 38px !important;
    height: 38px;
    font-size: 14px;
    line-height: 1.35;
  }

  .composer-extras {
    padding: 8px;
    border-radius: 12px;
  }

  .composer-mini-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mini-label {
    margin-bottom: 4px;
    font-size: 10px;
  }

  .mini-select {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 10px;
  }

  .composer-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .composer-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
  }

  .composer-actions .help-text {
    min-width: 0;
    width: 100%;
    text-align: left;
    font-size: 11px;
  }
}

/* Extra small phones */
@media (max-width: 420px) {
  .compact-composer-card {
    padding: 10px;
  }

  .app-post-input-wrap {
    padding: 7px 9px;
  }

  .composer-one-line {
    font-size: 13px;
  }

  .mini-select {
    font-size: 11px;
    min-height: 34px;
    padding: 7px 9px;
  }

  .composer-actions .btn {
    min-height: 36px;
    font-size: 11px;
    padding: 8px 10px;
  }
}
.chats-page-card {
  padding: 14px;
}

.chats-head {
  align-items: center;
}

.chats-subtext {
  font-size: 12px;
}

.compact-chat-card {
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  min-height: 72px;
}

.compact-chat-left {
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.compact-chat-left img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-user-meta {
  min-width: 0;
  flex: 1;
}

.chat-user-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.chat-last-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.compact-chat-right {
  gap: 6px;
  min-width: 52px;
}

.compact-chat-right small {
  font-size: 11px;
}

.chat-unread-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
}

@media (max-width: 640px) {
  .chats-page-card {
    padding: 12px;
  }

  .compact-chat-card {
    padding: 10px 12px;
    border-radius: 14px;
    min-height: 64px;
    gap: 10px;
  }

  .compact-chat-left {
    gap: 9px;
  }

  .compact-chat-left img {
    width: 38px;
    height: 38px;
  }

  .chat-user-meta strong {
    font-size: 13px;
  }

  .chat-user-meta .small-text {
    font-size: 11px;
    line-height: 1.25;
  }

  .compact-chat-right {
    align-items: flex-end;
    gap: 4px;
    min-width: 44px;
  }

  .compact-chat-right small {
    font-size: 10px;
  }

  .chat-unread-badge {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
    padding: 0 6px;
  }

  .chats-head .btn-sm-app {
    padding: 8px 10px;
    font-size: 11px;
  }
}
.conversation-page-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 150px);
}

.conversation-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}

.conversation-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.conversation-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.conversation-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.conversation-user-link img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.conversation-user-link strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.2;
}

.conversation-message-wrap {
  flex: 1;
  min-height: 0;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(248,250,252,1) 0%, rgba(255,255,255,1) 100%);
  overflow-y: auto;
}

.app-messages-area {
  max-height: none;
  overflow: visible;
  gap: 10px;
}

.message-date-separator {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.message-date-separator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #EEF2FF;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.app-message-content {
  padding: 10px 12px;
  border-radius: 16px;
  max-width: 100%;
}

.message-bubble {
  max-width: 78%;
}

.message-bubble.mine .app-message-content {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.18);
}

.message-bubble.theirs .app-message-content {
  background: #fff;
}

.conversation-input-form {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 10px 12px;
}

.conversation-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.chat-one-line-input {
  min-height: 42px !important;
  height: 42px;
  max-height: 120px;
  resize: none;
  overflow-y: auto;
  padding: 10px 12px !important;
  line-height: 1.35;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  background: #fff !important;
}

.conversation-send-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
}

.conversation-help-text {
  margin: 8px 2px 0;
  min-height: 16px;
}

@media (max-width: 991px) {
  .conversation-page-card {
    min-height: calc(100vh - 120px);
    border-radius: 18px;
  }

  .conversation-topbar {
    padding: 10px 12px;
  }

  .conversation-user-link img {
    width: 36px;
    height: 36px;
  }

  .conversation-user-link strong {
    font-size: 13px;
  }

  .conversation-message-wrap {
    padding: 12px;
  }

  .message-bubble {
    max-width: 88%;
  }

  .app-message-content {
    padding: 9px 11px;
    border-radius: 14px;
  }

  .conversation-input-form {
    padding: 8px 10px;
  }

  .chat-one-line-input {
    min-height: 40px !important;
    height: 40px;
    font-size: 13px;
  }

  .conversation-send-btn {
    height: 40px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .conversation-page-card {
    min-height: calc(100vh - 108px);
    border-radius: 16px;
  }

  .conversation-topbar {
    padding: 9px 10px;
    gap: 8px;
  }

  .conversation-back-btn {
    width: 34px;
    height: 34px;
  }

  .conversation-user-link {
    gap: 8px;
  }

  .conversation-user-link img {
    width: 34px;
    height: 34px;
  }

  .conversation-user-link strong {
    font-size: 12px;
  }

  .conversation-user-link .small-text {
    font-size: 10px;
  }

  .conversation-message-wrap {
    padding: 10px;
  }

  .message-avatar {
    width: 28px;
    height: 28px;
  }

  .message-bubble {
    max-width: 92%;
    gap: 8px;
  }

  .app-message-content {
    padding: 8px 10px;
    border-radius: 13px;
  }

  .message-text {
    font-size: 13px;
  }

  .conversation-input-form {
    padding: 8px;
  }

  .conversation-input-row {
    gap: 6px;
  }

  .chat-one-line-input {
    min-height: 38px !important;
    height: 38px;
    padding: 8px 10px !important;
    font-size: 13px;
    border-radius: 12px !important;
  }

  .conversation-send-btn {
    height: 38px;
    padding: 0 10px;
    min-width: 44px;
  }

  .conversation-send-btn span {
    display: none;
  }

  .message-date-separator span {
    font-size: 10px;
    padding: 4px 8px;
  }
}
.institutions-page-card {
  padding: 14px;
}

.institutions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.institutions-subtext {
  font-size: 12px;
}

.institutions-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.institutions-search-form {
  margin-top: 4px;
}

.compact-search-box {
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 48px;
}

.compact-search-box input {
  font-size: 14px;
}

.app-institution-grid {
  gap: 14px;
}

.compact-institution-card {
  padding: 14px;
  border-radius: 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.compact-institution-card:hover {
  transform: translateY(-1px);
}

.compact-institution-top {
  margin-bottom: 10px;
}

.institution-title-wrap {
  min-width: 0;
  flex: 1;
}

.institution-title-wrap strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.institution-location-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  min-width: 0;
}

.institution-location-line i {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

.compact-institution-meta {
  margin-top: 0;
  align-items: center;
}

.institution-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.institution-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.small-chip {
  padding: 5px 8px;
  font-size: 11px;
}

@media (max-width: 991px) {
  .institutions-page-card {
    padding: 12px;
  }

  .compact-search-box {
    min-height: 44px;
    padding: 10px 12px;
  }

  .compact-institution-card {
    padding: 12px;
    border-radius: 16px;
  }

  .institution-title-wrap strong {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .institutions-page-card {
    padding: 10px;
    border-radius: 16px;
  }

  .institutions-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .institutions-subtext {
    font-size: 11px;
  }

  .institutions-count-pill {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .compact-search-box {
    border-radius: 14px;
    min-height: 40px;
    padding: 9px 11px;
  }

  .compact-search-box i {
    font-size: 13px;
  }

  .compact-search-box input {
    font-size: 13px;
  }

  .app-institution-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .compact-institution-card {
    padding: 11px;
    border-radius: 15px;
  }

  .compact-institution-top {
    gap: 8px;
    margin-bottom: 8px;
  }

  .institution-title-wrap strong {
    font-size: 13px;
    line-height: 1.3;
  }

  .institution-title-wrap .small-text,
  .institution-location-line .small-text {
    font-size: 11px;
  }

  .institution-location-line {
    margin-bottom: 10px;
    gap: 6px;
  }

  .compact-institution-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .institution-meta-pill {
    font-size: 11px;
    padding: 6px 8px;
    min-width: 0;
  }

  .institution-open-link {
    font-size: 11px;
    white-space: nowrap;
  }

  .small-chip {
    font-size: 10px;
    padding: 4px 7px;
  }
}

@media (max-width: 420px) {
  .compact-institution-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .institution-open-link {
    white-space: normal;
  }
}
.institution-page-hero {
  padding: 14px;
}

.institution-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.institution-page-title-wrap {
  min-width: 0;
  flex: 1;
}

.institution-page-subtitle {
  font-size: 12px;
}

.institution-page-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.institution-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.institution-description-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--dark);
  line-height: 1.55;
  font-size: 14px;
}

.institution-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.institution-feed-subtext {
  font-size: 12px;
}

.institution-mini-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .institution-page-hero {
    padding: 12px;
  }

  .institution-description-box {
    font-size: 13px;
    padding: 11px 12px;
  }
}

@media (max-width: 640px) {
  .institution-page-hero {
    padding: 10px;
    border-radius: 16px;
  }

  .institution-page-top {
    gap: 10px;
  }

  .institution-page-title-wrap .section-title {
    font-size: 18px;
    line-height: 1.25;
  }

  .institution-page-subtitle,
  .institution-feed-subtext {
    font-size: 11px;
  }

  .institution-page-badges {
    gap: 6px;
  }

  .institution-stat-pill {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .institution-description-box {
    margin-top: 10px;
    padding: 10px 11px;
    border-radius: 12px;
    font-size: 12px;
  }

  .institution-page-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
  }

  .institution-page-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .institution-mini-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }
}
.enhanced-profile-card {
  overflow: hidden;
}

.profile-banner.has-cover-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.enhanced-profile-main {
  padding: 18px 18px 16px;
  margin-top: -42px;
  align-items: flex-end;
  gap: 16px;
}

.enhanced-profile-avatar {
  width: 96px;
  height: 96px;
  border-width: 4px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.enhanced-profile-title {
  flex: 1;
  min-width: 0;
}

.enhanced-profile-title h2 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.2;
}

.profile-bio-text {
  margin: 10px 0 0;
  line-height: 1.55;
  font-size: 14px;
}

.enhanced-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-stats-card {
  padding: 12px;
}

.profile-mini-stats {
  gap: 10px;
}

.profile-mini-stats div {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-radius: 16px;
  padding: 12px 10px;
}

.profile-mini-stats strong {
  font-size: 20px;
}

.profile-mini-stats span {
  font-size: 12px;
}

.profile-section-subtext {
  font-size: 12px;
}

.profile-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-membership-card {
  min-width: 0;
  width: 100%;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.profile-membership-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.profile-membership-card span {
  font-size: 12px;
}

.profile-membership-card small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.35;
}

.profile-side-card {
  padding: 16px;
}

.profile-side-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-side-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.profile-side-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-side-row strong {
  font-size: 14px;
  line-height: 1.45;
}

.profile-side-note {
  margin-top: 16px;
  padding: 12px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .enhanced-profile-main {
    padding: 16px 16px 14px;
    gap: 14px;
  }

  .enhanced-profile-avatar {
    width: 86px;
    height: 86px;
  }

  .enhanced-profile-title h2 {
    font-size: 22px;
  }

  .profile-membership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-banner {
    height: 120px;
  }

  .enhanced-profile-main {
    margin-top: -34px;
    padding: 14px 12px 12px;
    gap: 12px;
    align-items: flex-start;
  }

  .enhanced-profile-avatar {
    width: 72px;
    height: 72px;
    border-width: 3px;
  }

  .enhanced-profile-title h2 {
    font-size: 18px;
    line-height: 1.25;
  }

  .profile-bio-text {
    margin-top: 8px;
    font-size: 13px;
  }

  .enhanced-profile-actions {
    width: 100%;
    gap: 8px;
  }

  .enhanced-profile-actions .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
  }

  .profile-stats-card {
    padding: 10px;
  }

  .profile-mini-stats {
    gap: 8px;
  }

  .profile-mini-stats div {
    padding: 10px 6px;
    border-radius: 14px;
  }

  .profile-mini-stats strong {
    font-size: 17px;
  }

  .profile-mini-stats span {
    font-size: 10px;
  }

  .profile-membership-card {
    padding: 12px;
    border-radius: 16px;
  }

  .profile-membership-card strong {
    font-size: 13px;
  }

  .profile-membership-card span,
  .profile-membership-card small,
  .profile-section-subtext {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .enhanced-profile-main {
    padding: 12px 10px 10px;
  }

  .enhanced-profile-avatar {
    width: 66px;
    height: 66px;
  }

  .enhanced-profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .enhanced-profile-actions .btn {
    width: 100%;
  }
}
.edit-profile-card {
  padding: 14px;
}

.profile-edit-subtext {
  font-size: 12px;
}

.profile-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.profile-form-actions .help-text {
  flex: 1;
  min-width: 180px;
}

.profile-preview-tight {
  gap: 14px;
}

.profile-image-box {
  border-radius: 18px;
  overflow: hidden;
}

.profile-image-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.profile-image-box img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 640px) {
  .edit-profile-card {
    padding: 12px;
    border-radius: 16px;
  }

  .profile-edit-subtext {
    font-size: 11px;
  }

  .profile-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .profile-form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .profile-form-actions .help-text {
    min-width: 0;
    width: 100%;
    font-size: 11px;
  }

  .profile-image-box strong {
    font-size: 13px;
  }

  .profile-image-box img {
    max-height: 180px;
  }
}
.profile-preview-tight {
  gap: 14px;
}

.profile-image-box img {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 14px;
  background: #F8FAFC;
}

@media (max-width: 640px) {
  .profile-image-box img {
    max-height: 180px;
  }
}
.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.image-upload-card {
  position: relative;
}

.image-upload-trigger {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.image-upload-trigger img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #F8FAFC;
}

.cover-trigger img {
  height: 240px;
}

.image-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(15,23,42,0.02) 30%, rgba(15,23,42,0.55) 100%);
}

.image-upload-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
}

.image-upload-text {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.profile-image-hints {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .image-upload-trigger {
    border-radius: 16px;
  }

  .image-upload-trigger img,
  .cover-trigger img {
    height: 180px;
  }

  .image-upload-overlay {
    padding: 10px;
  }

  .image-upload-badge {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .image-upload-text {
    font-size: 12px;
  }
}
.notifications-page-card {
  padding: 14px;
}

.notifications-subtext {
  font-size: 12px;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enhanced-notification-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}

.notification-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.notification-actor-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.notification-actor-link img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notification-actor-meta {
  min-width: 0;
  flex: 1;
}

.notification-actor-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.25;
}

.notification-type-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-time-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.notification-message-line {
  margin-top: 10px;
  line-height: 1.55;
  font-size: 14px;
}

.notification-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .notifications-page-card {
    padding: 12px;
  }

  .notifications-subtext {
    font-size: 11px;
  }

  .enhanced-notification-card {
    padding: 12px;
    border-radius: 16px;
  }

  .notification-card-top {
    gap: 10px;
  }

  .notification-actor-link img {
    width: 36px;
    height: 36px;
  }

  .notification-actor-meta strong {
    font-size: 13px;
  }

  .notification-actor-meta .small-text,
  .notification-time-wrap small {
    font-size: 11px;
  }

  .notification-message-line {
    font-size: 13px;
    margin-top: 8px;
  }

  .notification-time-wrap {
    align-items: flex-end;
  }

  .notification-card-actions .btn {
    padding: 8px 10px;
    font-size: 11px;
  }
}
.notification-card-actions .btn {
  padding: 7px 10px;
  font-size: 11px;
  min-height: 32px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .notification-card-actions .btn {
    padding: 6px 9px;
    font-size: 10px;
    min-height: 30px;
    border-radius: 9px;
  }
}
@media (max-width: 640px) {
  .enhanced-profile-actions .btn {
    min-height: 38px;
    font-size: 12px;
  }
}
.explore-page-card {
  padding: 14px;
}

.explore-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.explore-subtext {
  font-size: 12px;
}

.explore-search-form {
  margin-top: 4px;
}

.explore-search-box {
  min-height: 48px;
}

.explore-quick-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.explore-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.explore-chip.active,
.explore-chip:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.18);
}

.explore-results-wrap {
  min-height: 140px;
}

.explore-empty-state {
  display: flex;
  align-items: center;
  gap: 12px;
}

.explore-empty-state i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--primary);
  flex-shrink: 0;
}

.explore-loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .explore-page-card {
    padding: 12px;
    border-radius: 16px;
  }

  .explore-subtext {
    font-size: 11px;
  }

  .explore-search-box {
    min-height: 42px;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .explore-search-box input {
    font-size: 13px;
  }

  .explore-quick-chips {
    gap: 6px;
    margin-top: 10px;
  }

  .explore-chip {
    padding: 7px 10px;
    font-size: 11px;
  }

  .explore-empty-state {
    gap: 10px;
  }

  .explore-empty-state i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
  }
}
.institution-setup-hero {
  padding: 14px;
}

.institution-setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.institution-setup-subtext {
  font-size: 12px;
}

.institution-link-card {
  padding: 14px;
}

.setup-membership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.setup-membership-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 14px;
}

.setup-membership-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.setup-membership-title {
  min-width: 0;
  flex: 1;
}

.setup-membership-title strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.setup-membership-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setup-membership-meta small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 991px) {
  .institution-setup-hero,
  .institution-link-card {
    padding: 12px;
  }

  .setup-membership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .institution-setup-hero,
  .institution-link-card {
    padding: 10px;
    border-radius: 16px;
  }

  .institution-setup-subtext {
    font-size: 11px;
  }

  .setup-membership-card {
    padding: 12px;
    border-radius: 16px;
  }

  .setup-membership-title strong {
    font-size: 13px;
  }

  .setup-membership-meta small {
    font-size: 11px;
  }
}
.profile-stat-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
}

.profile-stat-btn strong {
  display: block;
  font-size: 20px;
}

.profile-stat-btn span {
  color: var(--muted);
  font-size: 12px;
}

.follow-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.follow-user-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.follow-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.follow-user-left img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.follow-user-meta {
  min-width: 0;
  flex: 1;
}

.follow-user-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.25;
}

.follow-user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.follow-user-actions .btn {
  padding: 7px 10px;
  font-size: 11px;
  min-height: 32px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .profile-stat-btn {
    padding: 10px 6px;
    border-radius: 14px;
  }

  .profile-stat-btn strong {
    font-size: 17px;
  }

  .profile-stat-btn span {
    font-size: 10px;
  }

  .follow-user-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .follow-user-left img {
    width: 34px;
    height: 34px;
  }

  .follow-user-meta strong {
    font-size: 12px;
  }

  .follow-user-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .follow-user-actions .btn {
    font-size: 10px;
    min-height: 30px;
    padding: 6px 9px;
  }
}
.institution-members-hero {
  padding: 14px;
}

.institution-members-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.institution-members-title-wrap {
  min-width: 0;
  flex: 1;
}

.institution-members-subtext {
  font-size: 12px;
}

.institution-members-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.institution-members-search-wrap {
  margin-top: 14px;
}

.institution-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.institution-member-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.institution-member-left {
  min-width: 0;
  flex: 1;
}

.institution-member-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.institution-member-link img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.institution-member-meta {
  min-width: 0;
  flex: 1;
}

.institution-member-meta strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.institution-member-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.institution-member-actions .btn {
  padding: 7px 10px;
  font-size: 11px;
  min-height: 32px;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .institution-members-hero {
    padding: 12px;
    border-radius: 16px;
  }

  .institution-members-subtext {
    font-size: 11px;
  }

  .institution-member-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    gap: 10px;
  }

  .institution-member-link {
    gap: 10px;
  }

  .institution-member-link img {
    width: 38px;
    height: 38px;
  }

  .institution-member-meta strong {
    font-size: 13px;
  }

  .institution-member-meta .small-text {
    font-size: 11px;
  }

  .institution-member-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .institution-member-actions .btn {
    font-size: 10px;
    min-height: 30px;
    padding: 6px 9px;
  }
}
/* Tighter mobile sizing for public user profile page */
@media (max-width: 640px) {
  .enhanced-profile-title h2 {
    font-size: 16px;
    line-height: 1.2;
  }

  .enhanced-profile-title .muted {
    font-size: 11px;
  }

  .profile-bio-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .profile-section-subtext {
    font-size: 10px;
  }

  .section-title {
    font-size: 17px;
  }

  .profile-mini-stats strong {
    font-size: 15px;
  }

  .profile-mini-stats span {
    font-size: 9px;
  }

  .profile-membership-card strong {
    font-size: 12px;
  }

  .profile-membership-card span,
  .profile-membership-card small {
    font-size: 10px;
    line-height: 1.35;
  }

  .enhanced-profile-actions .btn {
    min-height: 36px;
    font-size: 11px;
    padding: 8px 10px;
  }

  .feed-card .post-meta strong,
  .feed-card .post-head strong {
    font-size: 12px;
  }

  .feed-card .post-meta span,
  .feed-card .post-stats,
  .feed-card .small-text {
    font-size: 10px;
  }

  .feed-card .post-body {
    font-size: 12px;
    line-height: 1.5;
  }

  .feed-card .post-actions button,
  .feed-card .btn {
    font-size: 10px;
    min-height: 34px;
    padding: 7px 9px;
  }
}

@media (max-width: 420px) {
  .enhanced-profile-title h2 {
    font-size: 15px;
  }

  .profile-bio-text {
    font-size: 11px;
  }

  .section-title {
    font-size: 16px;
  }

  .profile-mini-stats strong {
    font-size: 14px;
  }

  .profile-membership-card strong {
    font-size: 11px;
  }

  .profile-membership-card span,
  .profile-membership-card small,
  .feed-card .post-body,
  .feed-card .small-text {
    font-size: 10px;
  }
}
.member-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.member-filter-chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.member-filter-chip.active,
.member-filter-chip:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.18);
}

@media (max-width: 640px) {
  .member-filter-chips {
    gap: 6px;
    margin-top: 10px;
  }

  .member-filter-chip {
    padding: 7px 10px;
    font-size: 11px;
  }
}
.logout-btn-inline {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.04);
}

.logout-btn-inline:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}

.mobile-logout-card {
  display: none;
}

@media (max-width: 991px) {
  .mobile-logout-card {
    display: block;
  }
}
.auth-page-wrap {
  min-height: 100vh;
  padding: 24px 16px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.08), transparent 35%),
    radial-gradient(circle at top right, rgba(20,184,166,0.08), transparent 35%),
    var(--bg);
}

.enhanced-auth-card {
  width: 100%;
  max-width: 430px;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

.auth-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.auth-brand-top h1 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.15;
}

.auth-brand-top p {
  margin: 0;
  font-size: 14px;
}

.auth-form-clean .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 46px !important;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn:hover {
  background: #F8FAFC;
  color: var(--dark);
}

.auth-submit-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  margin-top: 4px;
}

.auth-footer-note {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
}

.auth-footer-note a {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .auth-page-wrap {
    padding: 16px 12px;
  }

  .enhanced-auth-card {
    max-width: 100%;
    border-radius: 22px;
    padding: 18px;
  }

  .auth-brand-top {
    gap: 10px;
    margin-bottom: 16px;
  }

  .auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 18px;
  }

  .auth-brand-top h1 {
    font-size: 22px;
  }

  .auth-brand-top p,
  .auth-footer-note {
    font-size: 12px;
  }

  .auth-form-clean .form-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .auth-submit-btn {
    min-height: 40px;
    font-size: 13px;
  }

  .password-toggle-btn {
    width: 32px;
    height: 32px;
  }
}
/* Smaller register form sizing */
.compact-auth-form .form-group {
  margin-bottom: 14px;
}

.compact-auth-form input,
.compact-auth-form select,
.compact-auth-form textarea {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.compact-auth-form textarea {
  min-height: 90px;
}

.compact-auth-row {
  gap: 12px;
}

.enhanced-register-card {
  max-width: 460px;
}

@media (max-width: 640px) {
  .compact-auth-form .form-group {
    margin-bottom: 12px;
  }

  .compact-auth-form input,
  .compact-auth-form select,
  .compact-auth-form textarea {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .compact-auth-form textarea {
    min-height: 80px;
  }

  .compact-auth-row {
    gap: 10px;
  }

  .enhanced-register-card {
    max-width: 100%;
  }
}
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.auth-inline-link {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.auth-inline-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .auth-inline-link {
    font-size: 11px;
  }

  .auth-label-row {
    margin-bottom: 6px;
  }
}