:root {
  --bg: #e9eaed;
  --card: #ffffff;
  --muted: #8a8f98;
  --text: #222;
  --green: #1aa06b;
  --green-dark: #15885b;
  --border: #d7d9dd;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --pill: 999px;
  /* Figma-style variables */
  --Primary-500: #16A36B;
  --Primary-700: #09734E;
  --Primary-50: #E8F5EF;
  --Text-strong: #1F2933;
  --Text-muted: #6B7280;
  --Text-inverse: #FFFFFF;
  --Surface-primary: #FFFFFF;
  --Surface-secondary: #F3F4F6;
  --Surface-tertiary: #E5E7EB;
  --Border-default: #E5E7EB;
  --Border-strong: #D1D5DB;
  --Success-500: #16A36B;
  --Error-500: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --accent-400: #FF8A3C;
  --Bg-Elevated: #FFF;
  --Text-3B: #3B3B3B;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin-left: -80px;
  margin-right: -80px;
  padding-left: calc(24px + 80px);
  padding-right: calc(24px + 80px);
  background: #f7f8fa;
  border-bottom: 1px solid #e3e5ea;
  position: sticky;
  top: 0;
  z-index: 5;
  width: calc(100% + 160px);
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 11px;
  background: #9aa1aa;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #6b7280;
  font-size: 14px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap.open {
  position: relative;
}

.search-only {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e4e9;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #7a7f87;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.search-only:hover {
  background: #fafafa;
  border-color: #d1d5db;
}

.search-only svg {
  width: 16px;
  height: 16px;
}

.search-wrap.open .top-search {
  width: 360px;
  min-width: 200px;
}

.top-search {
  width: 360px;
  padding: 10px 40px 10px 40px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 14px;
  color: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  outline: none;
}

.top-search::placeholder {
  color: #9ca3af;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.search-close-inside {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #7a7f87;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}
.search-close-inside:hover {
  background: #f0f1f4;
  color: #111;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #f0f1f4;
  color: #7a7f87;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 280px;
  max-width: 360px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 10;
}

.search-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 12px 16px;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #111;
}

.search-item:hover {
  background: #f9fafb;
}

.search-item-icon {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  flex-shrink: 0;
}

.search-item-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.search-item-text {
  font-size: 14px;
  color: #222222;
  flex: 1;
}

.search-empty {
  padding: 14px 16px;
  font-size: 13px;
  color: #6b7280;
}

.search-more {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #18a16a;
  cursor: pointer;
  text-align: left;
  border-top: 1px solid #f3f4f6;
}

.search-more:hover {
  background: #f9fafb;
}

.search-see-all {
  width: auto;
  margin-top: 6px;
  padding: 8px 12px;
  border: none;
  background: #f6f7f9;
  border-radius: 10px;
  font-size: 10px;
  color: #3f4a5a;
  cursor: pointer;
}

.search-see-all:hover {
  background: #eef1f5;
}

.top-btn {
  background: var(--green);
  color: #0f5132;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 16px;
  padding: 18px 24px 32px;
  width: 100%;
  min-width: 0;
  align-items: start;
}

.layout .sidebar {
  position: sticky;
  top: 82px;
  align-self: start;
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  height: fit-content;
  min-height: 120px;
}

.layout .feed {
  min-width: 0;
}

.layout .panel-column {
  position: sticky;
  top: 82px;
  align-self: start;
  width: 260px;
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layout .panel {
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  height: fit-content;
  min-width: 0;
  box-sizing: border-box;
}

.sidebar,
.panel {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  height: fit-content;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #111111;
  font-weight: 400;
}

.sidebar-item.active {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  color: #e6772e;
  font-weight: 400;
}

.home-item,
.insight-item {
  color: inherit;
  font-weight: 400;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.write-box-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 16px 12px 20px;
  min-height: 56px;
  border: 1px solid #e2e4e9;
  box-sizing: border-box;
}
.write-box-wrap .write-box {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}
.write-box-wrap .write-box:focus {
  outline: none;
}
.write-box-post-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: var(--green, #16a34a);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.write-box-post-btn:hover {
  filter: brightness(1.05);
}
.write-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 20px;
  min-height: 56px;
  border: 1px solid #e2e4e9;
  font-size: 14px;
  box-sizing: border-box;
}

.pending-blogs-section {
  background: var(--Surface-secondary, #f8fafc);
  border: 1px solid var(--Border-default, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.pending-blogs-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--Text-strong, #334155);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pending-blogs-view-all { font-size: 12px; font-weight: 500; color: var(--Primary-700, #09734E); cursor: pointer; }
.pending-blogs-view-all:hover { text-decoration: underline; }
.pending-blogs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pending-blog-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}
.pending-blog-item:last-child {
  border-bottom: none;
}
.pending-blog-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #1e293b;
}
.pending-blog-author {
  font-size: 12px;
  color: #64748b;
}
.pending-blog-actions {
  display: flex;
  gap: 8px;
}
.pending-blog-actions .btn-primary {
  padding: 6px 12px;
  font-size: 13px;
}

/* Approval page layout – Figma variables */
.approval-page { min-height: 100vh; background: var(--Surface-secondary, #F3F4F6); display: flex; flex-direction: column; font-family: Inter, sans-serif; }
.approval-header { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: var(--Surface-primary, #FFFFFF); border-bottom: 1px solid var(--Border-default, #E5E7EB); }
.approval-back { width: 40px; height: 40px; border: none; background: var(--Surface-secondary, #F3F4F6); border-radius: var(--radius-sm, 8px); font-size: 24px; line-height: 1; color: var(--Text-strong, #1F2933); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.approval-back:hover { background: var(--Surface-tertiary, #E5E7EB); }
.approval-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 120%; color: var(--Text-strong, #1F2933); }
.profile-approvals-wrap { margin-top: 8px; }
.profile-approvals-wrap .approval-tab { border-color: #3B3B3B; }
.profile-approvals-wrap .approval-tab:hover { border-color: #3B3B3B; }
.profile-approvals-wrap .approval-tab.active { border-color: #3B3B3B; }
.profile-approvals-wrap .approval-tabs { border-radius: var(--radius-md, 12px); margin-bottom: 0; }
.approval-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  background: var(--Surface-primary, #FFFFFF);
}
.approval-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.approval-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.approval-select-all-label {
  color: var(--Text-strong, #1F2933);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}
.approval-select-all-checkbox,
.approval-card-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 0.8px solid var(--Text-3B, #3B3B3B);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--Primary-500, #0d9668);
}
.approval-card-checkbox { margin-right: 4px; }
.approval-tab {
  display: flex;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid var(--accent-400, #FF8A3C);
  background: var(--Bg-Elevated, #FFF);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  color: var(--Text-muted, #6B7280);
  cursor: pointer;
}
.approval-tab:hover { color: var(--Text-strong, #1F2933); background: var(--Surface-secondary, #F3F4F6); border-color: var(--accent-400, #FF8A3C); }
.approval-tab.active { color: var(--Primary-700, #09734E); background: var(--Primary-50, #E8F5EF); border-color: var(--Primary-500, #0d9668); }
.approval-tab-inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.approval-tab-count { font-weight: 600; color: inherit; }
.approval-badge.rejected { background: var(--Error-500, #EF4444); color: var(--Text-inverse, #FFFFFF); }
.approval-content { flex: 1; padding: 24px; max-width: 720px; margin: 0 auto; width: 100%; }
.approval-loading, .approval-empty { color: var(--Text-muted, #6B7280); font-size: 14px; padding: 24px 0; }
.approval-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.approval-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; background: var(--Surface-primary, #FFFFFF); border: 1px solid var(--Border-default, #E5E7EB); border-radius: var(--radius-md, 12px); transition: box-shadow .2s ease; }
.approval-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.approval-card-main { flex: 1; min-width: 0; cursor: pointer; }
.approval-card-title { font-size: 14px; font-weight: 600; line-height: 120%; color: var(--Text-strong, #1F2933); margin-bottom: 4px; }
.approval-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 120%; color: var(--Text-muted, #6B7280); }
.approval-card-author { font-weight: 500; color: var(--Text-strong, #1F2933); }
.approval-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 120%; }
.approval-badge.pending { background: var(--Surface-tertiary, #E5E7EB); color: var(--Text-muted, #6B7280); }
.approval-badge.approved { background: var(--Primary-50, #E8F5EF); color: var(--Primary-700, #09734E); }
.approval-card-actions { display: flex; gap: 10px; flex-shrink: 0; min-width: 0; }
.approval-card-actions.approval-pill-row { margin-top: 0; }
.approval-card-actions .approval-pill-btn { flex: 1 0 0; min-width: 0; }
/* Global Reject/Approve pill buttons – used in approval cards, profile approvals, blog article */
.approval-pill-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 24px;
}
.approval-pill-btn {
  display: flex;
  height: 40px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  border: none;
  border-radius: 20px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 120%;
  color: #FFFFFF;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.approval-pill-btn:hover { opacity: 0.9; }
.approval-pill-reject { background: #B43C3C; }
.approval-pill-approve { background: #147D17; }

.approval-btn { padding: 8px 16px; border-radius: var(--radius-sm, 8px); font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; line-height: 120%; cursor: pointer; border: none; transition: opacity .2s ease; }
.approval-btn:hover { opacity: .9; }
.approval-btn-view { background: var(--Surface-secondary, #F3F4F6); color: var(--Text-strong, #1F2933); }
.approval-btn-approve { background: #147D17; color: #FFFFFF; border-radius: 20px; height: 40px; padding: 10px; display: flex; align-items: center; justify-content: center; flex: 1 0 0; }
.approval-btn-reject { background: #B43C3C; color: #FFFFFF; border-radius: 20px; height: 40px; padding: 10px; display: flex; align-items: center; justify-content: center; flex: 1 0 0; border: none; }
.approval-btn-reject:hover { opacity: .9; }
.approval-btn-approve:hover { opacity: .9; }

/* Blog article window – superadmin (Figma Insight node 1162-2815). To match exactly: paste Dev Mode specs into :root and here. */
.blog-article-window {
  width: 600px;
  height: 600px;
  min-height: 600px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  background: var(--Bg-Elevated, #FFF);
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
  box-sizing: border-box;
  margin: auto;
}
.page:has(.blog-article-window) {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.page:has(.blog-article-window) .blog-article-window {
  flex: 0 0 auto;
}
.blog-article-empty {
  padding: 32px 24px;
  text-align: center;
  color: var(--Text-muted, #6B7280);
  font-size: 14px;
  line-height: 120%;
}
.blog-article-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--Bg-Elevated, #FFF);
  border-bottom: 1px solid var(--accent-400, #FF8A3C);
  position: sticky;
  top: 0;
  z-index: 4;
}
.blog-article-back {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--Surface-secondary, #F3F4F6);
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--accent-400, #FF8A3C);
  font-size: 24px;
  line-height: 1;
  color: var(--Text-strong, #1F2933);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-article-back:hover {
  background: var(--Surface-tertiary, #E5E7EB);
  border-color: var(--accent-400, #FF8A3C);
}
.blog-article-header-title {
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  font-style: normal;
  line-height: 120%;
  color: var(--Text-strong, #1F2933);
}
.blog-article-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-article-approve-actions { display: flex; gap: 10px; }
.blog-article-cover {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  background: var(--Surface-secondary, #F3F4F6);
}
.blog-article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-article-content {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 16px;
  background: #FFF;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.blog-article-content::-webkit-scrollbar {
  display: none;
}
.blog-article-title {
  margin: 0 0 16px;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  font-style: normal;
  line-height: 120%;
  color: var(--Text-strong, #1F2933);
}
.blog-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  color: var(--Text-muted, #6B7280);
}
.blog-article-author {
  font-weight: 600;
  color: var(--Primary-700, #09734E);
  cursor: pointer;
}
.blog-article-author:hover { text-decoration: underline; }
.blog-article-date { color: var(--Text-muted, #6B7280); }
.blog-article-read { color: var(--Text-muted, #6B7280); }
.blog-article-body {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: var(--Text-strong, #1F2933);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 24px;
}
.blog-article-images {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  width: 100%;
}
.blog-article-body-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}
.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.blog-article-tags .post-tag-hash {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 120%;
  color: var(--Text-muted, #6B7280);
}
.blog-article-comments {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--Border-default, #E5E7EB);
}
.blog-article-comments-title {
  margin: 0 0 16px;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  line-height: 120%;
  color: var(--Text-strong, #1F2933);
}

/* Superadmin View: Blog Post card (pending) – title + X, author row, title, body, images, Reject/Approve */
.blog-article-pending-card {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.blog-post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.blog-post-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  font-family: Inter, sans-serif;
}
.blog-post-card-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.blog-post-card-close:hover {
  background: #f3f4f6;
  color: #111827;
}
.blog-post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 auto;
  min-height: 0;
}
.blog-post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-post-card-avatar {
  width: 36px;
  height: 36px;
  font-size: 14px;
  flex-shrink: 0;
}
.blog-post-card-author-name {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}
.blog-post-card-meta .chip {
  flex-shrink: 0;
}
.blog-post-card-time {
  font-size: 13px;
  color: #6b7280;
  margin-left: auto;
}
.blog-post-card-post-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #1f2937;
  font-family: Inter, sans-serif;
}
.blog-post-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.blog-post-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.blog-post-card-images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.blog-post-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
.blog-post-card-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, sans-serif;
}
.blog-post-card-reject {
  background: #b91c1c;
  color: #fff;
}
.blog-post-card-reject:hover { opacity: 0.9; }
.blog-post-card-approve {
  background: #15803d;
  color: #fff;
}
.blog-post-card-approve:hover { opacity: 0.9; }

.pending-blog-actions .btn-ghost {
  padding: 6px 12px;
  font-size: 13px;
}

.dash-card {
  position: relative;

  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.post-head { display: flex; align-items: center; gap: 8px; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d7f2e3;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1a7f56;
}

.chip {
  outline: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #d7f2e3;
  color: #1a7f56;
  font-size: 10px;
  font-weight: 600;
}

.post-title {
  font-weight: 700;
  margin: 8px 0;
}

.post-text {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-images-wrap {
  position: relative;
  margin-top: 12px;
}
.post-images {
  display: flex;
  gap: 16px;
  overflow: hidden;
}
.post-images-wrap.has-arrows .post-images {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.post-images-wrap.has-arrows .post-images::-webkit-scrollbar {
  display: none;
}
.post-images img {
  width: calc(50% - 8px);
  min-width: calc(50% - 8px);
  height: 200px;
  border-radius: 14px;
  object-fit: cover;
  scroll-snap-align: start;
}
.post-images-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}
.post-images-arrow:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.post-images-arrow.left {
  left: 8px;
}
.post-images-arrow.right {
  right: 8px;
}

.tags {
  display: flex;
  gap: 16px;
  color: #6b7280;
  font-size: 10px;
  margin-top: 8px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 10px;
  color: #6b7280;
  font-size: 10px;
  align-items: center;
}

.panel-section {
  justify-content: space-between;
  align-items: center;
  display: flex;
  font-weight: 700;
  margin-bottom: 6px;
  cursor: pointer;
  width: 100%;
}

.panel-item {
  color: #4b5563;
  font-size: 13px;
  margin-bottom: 10px;
  cursor: pointer;
}
.panel-item[role="button"]:hover {
  opacity: 0.9;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.auth-card {
  width: min(1100px, 100%);
  background: transparent;
}

.auth-card.google-category-modal {
  width: 500px;
  height: 500px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  box-sizing: border-box;
  overflow-y: auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  margin-left: 80px;
  margin-right: 80px;
}

.page-content {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.page-content > *:not(.blog-article-window) {
  width: 100%;
  max-width: 100%;
}

.card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px;
  background: transparent;
  width: min(1100px, 100%);
  align-items: stretch;
}

.image-panel {
  background: #dfe5ea;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 460px;
  max-height: 560px;
  overflow: hidden;
  position: relative;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.form-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 460px;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.form-panel::-webkit-scrollbar { display: none; }

.auth-email-password-box .input {
  margin-bottom: 10px;
  width: 100%;
}
.auth-email-password-box .btn-primary {
  margin-top: 4px;
}

.question-interactions-value {
  margin-left: 12px;
}
  width: 100%;
}
.auth-google-label {
  text-align: center;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 20px 0 20px;
}

.google-signin-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 44px;
}
.auth-phone-otp-box {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.auth-phone-otp-label {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.auth-phone-otp-box .input {
  margin-bottom: 8px;
}
.auth-phone-otp-box .btn-primary {
  margin-right: 8px;
}
.auth-phone-otp-box .link-btn {
  margin-top: 8px;
  display: inline-block;
}
.auth-signup-form .input {
  margin-bottom: 10px;
  width: 100%;
}
.auth-signup-form .auth-google-label {
  margin-bottom: 8px;
}
.auth-signup-form .btn-primary {
  margin-top: 8px;
  margin-bottom: 8px;
}
.auth-role-row {
  margin-bottom: 10px;
}
.auth-role-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.auth-role-row .input {
  width: 100%;
}
.auth-email-verify-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.auth-email-verify-box .input {
  margin-bottom: 8px;
}
.auth-email-verify-box .btn-primary {
  margin-right: 8px;
}
.auth-signup-form .link-btn {
  margin-top: 8px;
  display: inline-block;
}

.segmented {
  background: #f6f7f8;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 auto 32px;
  width: min(360px, 100%);
}

.form-panel .segmented {
  width: fit-content;
  grid-template-columns: 1fr;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  margin: 0 auto 32px;
}

.form-panel .segment {
  padding: 8px 20px;
}

.form-panel .segment.active {
  color: #fff;
  background: var(--green);
  border-radius: var(--pill);
}

.segment {
  text-align: center;
  padding: 8px 0;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 14px;
  color: #6c727a;
  cursor: pointer;
  border: none;
  background: transparent;
}

.segment.active {
  background: var(--green);
  color: #0f5132;
  box-shadow: 0 4px 10px rgba(26, 160, 107, 0.3);
}

.input {
  width: auto;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--green);
}

.input-group {
  position: relative;
  width: 100%;
}
.form-panel .input-group,
.auth-card .input-group {
  width: 100%;
}
.input-group .input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 90px;
}

.eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #777;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.verify-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--green-dark);
  background: #eaf6f1;
  color: var(--green-dark);
  border-radius: var(--pill);
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.verify-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.verified-badge {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
  pointer-events: none;
}

.btn {
  border: 0;
  border-radius: var(--pill);
  padding: 14px 18px;
  background: var(--green);
  color: #0f5132;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--green-dark);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.divider {
  text-align: center;
  margin: 18px 0 6px;
  color: #777;
  font-size: 10px;
}

.sso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: #666;
}

.google {
  width: 18px;
  height: 18px;
}

.status {
  margin-top: 12px;
  font-size: 10px;
  color: #2b6b4d;
  text-align: center;
}

.status.small {
  margin-top: 0;
}

.status.muted {
  color: #666;
  font-size: 0.9em;
}
.status.error {
  color: #b42318;
}

.link-btn {
  margin-top: 8px;
  font-size: 10px;
  color: #1a6bb3;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4b5563;
}

.icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.icon.avatar-pill {
  place-items: center;
  width: 36px;
  height: 32px;
  border-radius: 999px;
  background: #e7f7ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: inherit;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.lang {
  font-size: 10px;
  color: #6b7280;
}

.settings-page {
  background: #e6e7eb;
  padding: 28px 32px 48px;
  border-radius: 0;
}

.settings-layout {
  max-width: 1220px;
  margin: 0;
  display: grid;
  grid-template-columns: 240px minmax(520px, 50%);
  gap: 16px;
  width: auto;
}

.settings-nav {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 16px 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  height: fit-content;
}

.settings-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.settings-link {
  display: block;
  width: auto;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  color: #2b2f36;
}

.settings-link.active {
  background: #e6e7eb;
}

.settings-card {
  padding: 28px 70px 32px 36px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.profile-hero {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.profile-photo {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #16a34a;
  background: #fff;
  color: #16a34a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.account-card .profile-photo {
  overflow: hidden;
}
.account-card .edit-photo {
  right: 6px;
  bottom: 6px;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.settings-form {
  display: grid;
  gap: 16px;
  text-align: left;
}
.account-card .settings-form .field,
.account-card .settings-form label.field {
  text-align: left;
  justify-items: start;
  align-items: center;
}
.account-card .settings-form .field span,
.account-card .settings-form .field input,
.account-card .settings-form .field textarea,
.account-card .settings-form .field .radio-row,
.account-card .settings-form .field .radio-row label {
  text-align: left;
}
.account-card .settings-form label.field > input,
.account-card .settings-form .field textarea,
.account-card .settings-form .field .map-row,
.account-card .settings-form .field .map-row input {
  width: 100%;
  box-sizing: border-box;
}
.account-card .settings-form .field .map-row {
  grid-column: 2;
  min-width: 0;
}

.field {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #2b2f36;
}

.field span {
  font-weight: 600;
}

.field input,
.field textarea,
.phone select {
  border: 1px solid #d7d9dd;
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}

.field textarea {
  resize: none;
  min-height: 84px;
}

.account-card .field-bio .bio-textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  box-sizing: border-box;
}

.field .counter {
  grid-column: 2;
  justify-self: end;
  margin-top: -6px;
}

.gender {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.gender label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.input-icon {
  position: relative;
}

.input-icon span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #6b7280;
}

.phone {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
}
.account-card .phone {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-card .phone input {
  display: flex;
  height: 48px;
  padding: 0 16px;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  box-sizing: border-box;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.btn-ghost {
  border: 1px solid #7bbfa3;
  background: #e8f4ef;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  color: #1a7f56;
  font-weight: 600;
}

.btn-primary {
  border: none;
  background: #b7f0cf;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  min-width: 8rem;
}

/* Primary CTA never narrower than secondary in same row */
.form-actions .btn-primary,
.form-actions .btn-ghost,
.write-actions .btn-primary,
.write-actions .btn-ghost,
.crop-actions .btn-primary,
.crop-actions .btn-ghost {
  min-width: 8rem;
  box-sizing: border-box;
}

.profile-wrap {
  position: relative;
}

.profile-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e2e4e9;
  background: #e7f7ee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1a7f56;
}
.profile-btn.login-signup-cta {
  width: auto;
  min-width: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #18a16a;
  border: none;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.profile-btn.login-signup-cta,
.profile-btn.login-signup-cta:hover,
.profile-btn.login-signup-cta:focus {
  color: #fff !important;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eceff3;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 12;
}

.profile-header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px 14px;
  border-bottom: 1px solid #eceff3;
  margin-bottom: 6px;
}

.profile-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #d7f2e3;
  color: #1a7f56;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.profile-name-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: #111827;
}

.profile-name-block .label {
  font-size: 10px;
  font-weight: 700;
  color: #7a7f87;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-name-block .value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.profile-name-line .label {
  font-weight: 700;
}

.profile-badge {
  background: #d7f2e3;
  color: #1a7f56;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.profile-item {
  width: auto;
  text-align: left;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #2b2f36;
}

.profile-item svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
}

.profile-item:hover {
  background: #f4f6f9;
}

.profile-divider {
  height: 1px;
  background: #eef1f4;
  margin: 6px 6px;
}

.profile-item.logout {
  color: #b42318;
}

.profile-item.logout svg {
  color: #b42318;
}

@media (max-width: 900px) {
  .card {
    grid-template-columns: 1fr;
  }
  .image-panel {
    min-height: 320px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .layout .sidebar,
  .layout .panel-column {
    width: 100%;
  }
  .top-search {
    width: 220px;
  }
}

.profile-page {
  background: #eef0f3;
  grid-template-columns: 1fr;
  padding: 18px 40px 40px 24px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: clamp(12px, 2.5vw, 16px);
  width: auto;
  padding: clamp(8px, 1.5vw, 24px);
}

.profile-left {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
  align-self: start;
}

.profile-card {
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(12px, 2vw, 18px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  align-self: start;
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  overflow: hidden;
}

.profile-avatar.profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d7f2e3;
  color: #1a7f56;
  font-weight: 700;
  font-size: 48px;
}

.edit-info {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  margin: 0 auto 10px;
  display: block;
}

.profile-card h3 {
  margin: 6px 0 6px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

.profile-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  text-align: center;
}

.profile-card .profile-bio-text {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
  color: #4b5563;
  text-align: center;
}

.profile-stats strong {
  display: block;
  color: #111827;
  font-size: 16px;
}

.profile-blog-tracker {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #e5e7eb);
}
.profile-blog-tracker-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
}
.profile-blog-tracker-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}
.profile-blog-stat {
  text-align: center;
  padding: 8px;
  border-radius: 10px;
  background: #f9fafb;
}
.profile-blog-stat.approved { border-left: 3px solid #16a34a; }
.profile-blog-stat.pending { border-left: 3px solid #d97706; }
.profile-blog-stat strong { display: block; font-size: 18px; color: #111827; }
.profile-blog-stat span { color: #6b7280; }
.profile-blog-tracker-note { font-size: 12px; margin: 8px 0 0; }

.achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 14px;
}

.badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6e7eb;
}

.profile-links {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 16px;
  font-size: 13px;
  color: #4b5563;
}

 .profile-right {
  display: grid;
  gap: clamp(12px, 2vw, 16px);
  align-content: start;
}

.profile-layout .profile-right {
  padding: clamp(8px, 1.5vw, 20px);
}

.profile-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
  padding-top: 4px;
}

.profile-tabs .tab {
  border: none;
  background: transparent;
  font-size: 14px;
  padding-bottom: 6px;
  cursor: pointer;
  color: #6b7280;
}

.profile-tabs .tab.active {
  color: #111827;
}

.profile-header-btn {
  border: none;
  background: transparent;
  padding: 0;
  width: auto;
  text-align: left;
  cursor: pointer;
}

.profile-header-btn .profile-header {
  margin: 0;
}






.photo-input {
  display: none;
}

.save-status {
  margin-top: 10px;
  font-size: 10px;
  color: #1a7f56;
  display: block;
}



.map-row {
  position: relative;
  display: block;
}
.map-row input {
  padding-right: 40px;
}
.map-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
}

.map-panel {
  margin-top: 10px;
  border: 1px solid #e2e4e9;
  border-radius: 14px;
  padding: 10px;
  background: #fafafa;
}

.map-hint {
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 8px;
}

.map-box {
  width: 100%;
  min-height: 220px;
  height: 220px;
  border-radius: 10px;
}

.profile-settings {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.profile-settings .settings-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.profile-settings .settings-link {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #2b2f36;
  margin-bottom: 6px;
}

.profile-settings .settings-link.active {
  background: #e6e7eb;
}

.achievements-title {
  margin-top: 12px;
  font-weight: 700;
  font-size: 13px;
  color: #111827;
}

.follow-btn {
  width: auto;
  margin: 10px 0 6px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}



.profile-divider-light {
  height: 1px;
  background: #eef1f4;
  margin: 20px 0;
}

.profile-tabs {
  position: relative;
}

.profile-tabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: #e5e7eb;
}

.profile-tabs .tab:first-child {
  margin-left: 80px;
}


.profile-tabs .tab:last-child {
  margin-right: 10px;
}


.prefs-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 36px 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.prefs-section {
  margin-bottom: 18px;
}

.prefs-title {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
  margin-bottom: 6px;
}

.prefs-subtitle {
  font-size: 10px;
  color: #4b5563;
}

.prefs-radio {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  color: #4b5563;
  margin: 6px 0;
}

.prefs-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #4b5563;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #1aa06b;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.privacy-blank {
  min-height: 60vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.privacy-title {
  margin-top: 12px;
  font-size: 14px;
  color: #6b7280;
}

.security-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 36px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  max-width: 520px;
}

.security-field {
  display: grid;
  gap: 16px;
  margin: 12px 0;
  font-size: 10px;
  color: #4b5563;
}

.security-field input {
  border: 1px solid #d7d9dd;
  border-radius: 18px;
  padding: 10px 12px;
  font-size: 13px;
}

.crop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  z-index: 20;
}

.crop-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  width: min(520px, 92vw);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.crop-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.crop-area {
  width: 100%;
  height: 360px;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
}

.crop-area img {
  display: block;
  max-width: 100%;
}

.crop-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.clickable-photo {
  cursor: pointer;
  border-radius: 50%;
}


.photo-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  z-index: 30;
}

.photo-preview-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  max-width: 80vw;
  max-height: 80vh;
}

.photo-preview-card img {
  display: block;
  max-width: auto;
  max-height: 70vh;
  border-radius: 12px;
}


.photo-preview-close {
  position: absolute;
  top: 6px;
  right: 8px;
  left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
}

.read-more {
  margin-left: 6px;
  border: none;
  background: transparent;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
}

.stat-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
  padding: 0;
  height: 28px;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.7;
}

.stats .stat-btn svg,
.stats.stats-divider .stat-btn svg {
  width: 12px;
  height: 12px;
}

.stat-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  z-index: 40;
}

.stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  width: min(420px, 92vw);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  display: grid;
  gap: 16px;
}

.stat-title {
  font-weight: 700;
  font-size: 16px;
}

.stat-body {
  font-size: 13px;
  color: #4b5563;
}

.comments-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  align-self: stretch;
}

.comment-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  align-self: stretch;
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
  margin-bottom: 12px;
}

.comment-item .avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.comment-name {
  font-weight: 600;
  font-size: 13px;
}
.comment-name-link {
  cursor: pointer;
}
.comment-name-link:hover {
  text-decoration: underline;
}

.comment-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-text {
  color: #252525;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-top: 0;
}

.comment-time {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 2px;
}

.comment-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.comment-input input {
  border: 1px solid #d7d9dd;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.discussion-page {
  grid-template-columns: 1fr;
}

.discussion-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
}

.discussion-main {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.discussion-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.discussion-title {
  font-weight: 700;
  margin: 10px 0;
}

.discussion-body {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  max-height: 520px;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.discussion-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.discussion-images img {
  width: auto;
  height: 160px;
  object-fit: contain;
  border-radius: 14px;
}

/* Gamma-style summarized visual view */
.gamma-summary-wrap {
  margin: 12px 0 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--Bg-Elevated, #FFF);
  border: 1px solid var(--Border-default, #E5E7EB);
}
.gamma-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}
.gamma-summary-slide {
  padding: 20px 24px;
  border-radius: 12px;
  background: var(--Surface-secondary, #F9FAFB);
  border: 1px solid var(--Border-default, #E5E7EB);
}
.gamma-summary-title-slide {
  text-align: center;
  background: linear-gradient(135deg, var(--Primary-50, #E8F5EF) 0%, var(--Bg-Elevated, #FFF) 100%);
  padding: 32px 24px;
}
.gamma-summary-cover {
  width: 100%;
  max-height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.gamma-summary-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gamma-summary-title {
  font-family: Inter, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--Text-strong, #1F2933);
  margin: 0 0 8px;
}
.gamma-summary-meta {
  font-size: 13px;
  color: var(--Text-muted, #6B7280);
  font-weight: 500;
}
.gamma-summary-content-slide .gamma-summary-slide-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--Text-strong, #1F2933);
  white-space: pre-wrap;
  word-break: break-word;
}
.gamma-summary-content-slide.gamma-summary-point .gamma-summary-slide-content {
  padding-left: 16px;
  border-left: 3px solid var(--accent-400, #FF8A3C);
}
.gamma-summary-images-slide {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.gamma-summary-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gamma-summary-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.chip-ghost {
  font-weight: 400;
  outline: none;
  box-shadow: none;
  border: none;
  background: #bfead1;
  color: #000;
}

.discussion-comment-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0 16px;
  padding: 6px 10px;
  background: #FFF;
  border-radius: 24px;
  border: 1px solid #B9B5B5;
}

.discussion-comment-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 6px 8px;
  font-size: 13px;
}

.send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: none;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.send-btn:hover {
  background: #15803d;
}
.send-btn:active {
  transform: scale(0.96);
}
.send-btn:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.discussion-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.discussion-head .chip-ghost {
  font-weight: 400;
  color: #000;
  background: #dff5ea;
  outline: none;
  box-shadow: none;
  border: none;
  margin-left: 0;
}

.role-group {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 12px;
}

.role-group label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px dashed #d7d9dd;
  background: #f8fafc;
}

.profile-avatar.placeholder {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px dashed #d7d9dd;
  background: #f8fafc;
}

.summary-page {
  grid-template-columns: 1fr;
}

.discussion-head .btn-primary {
  padding: 8px 16px;
}

.write-new {
  margin-top: 0;
  box-shadow: 0 10px 20px rgba(24, 154, 101, 0.2);
  align-self: flex-start;
  width: auto;
  border: none;
  background: linear-gradient(135deg, #1aa36f, #189a65);
  color: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  font-weight: 600;
  margin-bottom: 0;
  cursor: pointer;
}

.summarize-right { margin-left: auto; }

.head-spacer { flex: 1; }
.head-actions { display: flex; align-items: center; gap: 16px; }
.summarize-btn { margin-left: 0; }

.summarize-toggle-wrap{display:flex;align-items:center;gap:10px;}
.summarize-label{color:var(--Primary-700,#09734E);font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:120%;flex-shrink:0;}
.summarize-toggle{display:flex;width:64px;height:32px;padding:0 8px 0 8px;justify-content:space-between;align-items:center;border-radius:26843500px;border:0.8px solid rgba(0,0,0,0);cursor:pointer;transition:background .2s ease;flex-shrink:0;box-sizing:border-box;overflow:hidden;}
.summarize-toggle:disabled{opacity:0.5;cursor:not-allowed;}
.summarize-toggle-off{background:var(--border,#e5e7eb);}
.summarize-toggle-off .summarize-toggle-knob{flex-shrink:0;}
.summarize-toggle-on{background:var(--primary-500,#16A36B);}
.summarize-toggle-on .summarize-toggle-knob{flex-shrink:0;}
.summarize-toggle-off-label{font-family:Inter,sans-serif;font-size:12px;font-weight:600;line-height:1;pointer-events:none;color:#4b5563;}
.summarize-toggle-on-label{font-family:Inter,sans-serif;font-size:12px;font-weight:600;line-height:1;pointer-events:none;color:#fff;}
.summarize-toggle-off .summarize-toggle-off-label,.summarize-toggle-off .summarize-toggle-on-label{color:#4b5563;}
.summarize-toggle-on .summarize-toggle-off-label,.summarize-toggle-on .summarize-toggle-on-label{color:#fff;}
.summarize-toggle-knob{width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .2s ease;flex-shrink:0;pointer-events:none;}
.summarize-toggle-off .summarize-toggle-knob{background:#1a202c;}

.chip:focus, .chip:focus-visible { outline: none; box-shadow: none; }

.panel-head {
  padding: 0;
  background: transparent;
}
.panel-head .write-new {
  width: auto;
}

.panel-head.write-new-wrap {
  width: 100%;
}

.write-new-stretch {
  width: 100%;
  box-sizing: border-box;
}

.panel-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-link {
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}
.panel-link:hover {
  color: #1a7f56;
}

.panel-arrow {
  color: #9aa0a6;
  font-size: 18px;
}

.panel-arrow-btn {
  border: none;
  background: transparent;
  color: #9aa0a6;
  font-size: 18px;
  cursor: pointer;
  pointer-events: none;
}

.breadcrumbs {
  color: #6b7280;
  font-size: 10px;
  margin-bottom: 12px;
}
.questions-list {
  display: grid;
  gap: 16px;
}
.question-card {
  min-height: 240px;
  background: #fff;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 8px 18px rgba(16,24,40,0.06);  margin-bottom: 10px;
}
.question-head {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.question-title {
  font-weight: 600;
  color: #2f2f2f;
}
.question-tags {
  color: #6b7280;
  font-size: 10px;
  margin: 10px 0;
}
.question-stats {
  display: flex;
  gap: 16px;
  color: #6b7280;
  font-size: 10px;
  align-items: center;
}
.question-stats .interactions {
  margin-left: auto;
}

.question-interactions {
  display: inline-flex;
  align-items: center;
  color: var(--Text-strong, #1F2933);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  margin-top: 4px;
}
.question-time-ago {
  color: #7B8794;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 120%;
  margin-top: 6px;
  padding-bottom: 4px;
}



.questions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(16px, 2.5vw, 16px);
  width: auto;
  margin: 0;
  align-items: start;
  padding: clamp(16px, 2vw, 24px);
}
.questions-page {
  display: block;
  width: auto;
  padding: 18px 24px 32px;
}
.questions-main {
  width: auto;
  padding: 0 clamp(8px, 1vw, 16px);
  margin: 0;
}
.questions-layout .panel-column {
  padding: 0;
  gap: clamp(12px, 2vw, 16px);
}
.questions-layout .panel-head.write-new-wrap {
  width: 100%;
}
.questions-layout .panel-head.write-new-wrap .write-new {
  width: 100%;
}
.discussion-layout .panel-head.write-new-wrap {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.discussion-layout .panel-head.write-new-wrap .write-new {
  width: 100%;
  box-sizing: border-box;
}

.write-page { display: block; width: auto; padding: 18px 24px 32px; }
.write-layout {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 8px 18px rgba(16,24,40,0.06);
}
.write-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.write-name {
  font-weight: 600;
  font-size: 16px;
}
.write-input {
  width: auto;
  border: 1px solid #d7d9dd;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}
.write-textarea {
  width: auto;
  min-height: 280px;
  border: 1px solid #d7d9dd;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 0;
}
.write-tags-under-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.write-tag-hash {
  font-size: 13px;
  color: #1b7c4e;
  font-weight: 500;
}
.post-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.post-tag-hash {
  font-size: 13px;
  color: #1b7c4e;
  font-weight: 500;
}
.write-tags-label {
  font-weight: 600;
  margin-bottom: 8px;
}
.write-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.write-icons {
  display: flex;
  gap: 16px;
}
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  color: inherit;
  position: relative;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.top-actions .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #f7f8fa;
}
.write-actions {
  display: flex;
  gap: 16px;
}

.write-status {
  margin-top: 12px;
  color: #1a7f56;
  font-weight: 600;
}

.notification-wrap {
  position: relative;
  display: inline-block;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 355px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(16,24,40,0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 25;
}
.notification-title {
  font-weight: 600;
  margin-bottom: 12px;
  align-self: stretch;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.15s;
  box-sizing: border-box;
}
.notification-item:hover {
  background: #f5f5f5;
}
.notification-item.unread {
  background: #f0f7ff;
  border-left: 3px solid #0a66c2;
  margin-left: 0;
  padding-left: 13px;
}
.notification-item:last-child {
  border-bottom: none;
}
.notification-item-text {
  flex: 1;
  font-size: 14px;
  color: #374151;
  line-height: 1.4;
  min-width: 0;
}
.notification-item-text strong {
  color: #111827;
  font-weight: 700;
}
.notification-item-time {
  flex-shrink: 0;
  font-size: 12px;
  color: #9ca3af;
}
.notification-text {
  font-size: 13px;
  color: #111;
}
.notification-time {
  font-size: 10px;
  color: #888;
}
.notification-empty {
  font-size: 13px;
  color: #666;
}

.language-panel {
  position: absolute;
  top: 50px;
  right: 120px;
  width: 140px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(16,24,40,0.12);
  padding: 8px;
  z-index: 20;
}
.language-item {
  width: auto;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}
.language-item:hover {
  background: #f0f3f6;
}

.menu-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  margin-left: auto;
}
.menu-dropdown {
  position: absolute;
  right: 10px;
  top: 26px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(16,24,40,0.12);
  padding: 6px 8px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.menu-dropdown button {
  width: auto;
  text-align: center;
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
  color: #222222;
}
.menu-dropdown button:hover {
  background: #f0f3f6;
  border-radius: 6px;
}
.comment-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
  margin-bottom: 12px;
}
.post-head { position: relative; }

.post-head .menu-btn { margin-left: 0; }

.post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-actions .menu-dropdown {
  right: 0;
}

.post-title.large {
  font-size: 22px;
  font-weight: 700;
}
.post-author {
  font-size: 16px;
  font-weight: 600;
}
.stats.stats-divider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 10px;
}
.stats.stats-divider .stat-btn {
  border: none;
  background: transparent;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 8px 0;
  font-size: 13px;
}
.stats.stats-divider .stat-btn:last-child {
  border-right: none;
}

.profile-right .dash-card .stats.stats-divider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 10px;
}

.profile-right .dash-card .stats.stats-divider .stat-btn {
  border: none;
  background: transparent;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 8px 0;
  font-size: 13px;
}

.profile-right .dash-card .stats.stats-divider .stat-btn:last-child {
  border-right: none;
}

.chat-page { display: block; width: auto; padding: 18px 24px 32px; }
.chat-layout {
  height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.chat-list {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(16,24,40,0.06);
}
.chat-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
}
.chat-list-items {
  display: grid;
  gap: 16px;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.chat-item.active {
  background: #eef8f1;
}
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d7f2e3;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1a7f56;
}
.chat-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #f3f4f6;
  border-radius: 12px;
}

.chat-header {
  padding-top: 14px;
  padding-left: 18px;
  border-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.chat-title {
  font-weight: 600;
}
.chat-messages {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 10px 28px 56px 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #6b7280;
  font-size: 15px;
  padding: 24px;
}

.chat-bubble {
  max-width: 72%;
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: #ffffff;
  align-self: flex-start;
  position: relative;
  margin-right: auto;
  overflow: visible;
}
.chat-bubble.me {
  align-self: flex-end;
  margin-left: auto;
  margin-right: 26px;
  background: #b7f0cf;
  color: #0f5132;
}
.chat-time {
  font-size: 10px;
  color: #6b7280;
  margin-top: 6px;
  display: block;
}
.chat-input {
  border-radius: 12px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #eee;
  padding: 8px 0 6px;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex-shrink: 0;
}
.chat-input input {
  flex: 1;
  border: 1px solid #d7d9dd;
  border-radius: 999px;
  padding: 10px 12px;
}
.link-btn {
  border: none;
  background: transparent;
  color: #1aa06b;
  cursor: pointer;
}

.chat-badge {
  margin-left: auto;
  background: #e11d48;
  color: #0f5132;
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 7px;
}

.chat-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e11d48;
  color: #0f5132;
  border-radius: 999px;
  font-size: 10px;
  padding: 2px 6px;
}
.icon { position: relative; }

.msg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.msg-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.chat-bubble { position: relative; }

.chat-bubble.selected { outline: 2px solid #d7f2e3; }
.emoji-picker {
  position: absolute;
  top: 36px;
  left: 0;
  width: 260px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(16,24,40,0.14);
  z-index: 6;
}
.emoji-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 10px;
  color: #6b7280;
  margin-bottom: 8px;
}
.emoji-search input {
  border: none;
  background: transparent;
  outline: none;
  width: auto;
  font-size: 10px;
}
.emoji-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.emoji-tabs button {
  border: none;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
}
.emoji-tabs button.active {
  background: #e0f2e9;
}
.emoji-label {
  font-size: 10px;
  color: #6b7280;
  margin: 4px 2px 6px;
  font-weight: 600;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  padding-right: 4px;
}
.emoji-grid button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.reaction-badge {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(16,24,40,0.08);
}


.chat-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
}
.chat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-preview {
  font-size: 10px;
  color: #6b7280;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.chat-time {
  font-size: 10px;
  color: #6b7280;
  margin-top: 6px;
  display: block;
}
.reply-snippet {
  align-self: stretch;
  font-size: 10px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.reply-snippet .reply-text {
  color: #374151;
  font-weight: 600;
  margin-top: 2px;
}
.chat-image {
  width: 349px;
  height: 200px;
  border-radius: 12px;
  margin-bottom: 6px;
  object-fit: cover;
}

.chat-seen {
  font-size: 10px;
  color: #16a34a;
  margin-top: 0;
  display: block;
}
.reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3f4f6;
  padding: 6px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 10px;
}
.reply-bar button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}
.image-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f9fafb;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 6px;
}
.image-preview img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}
.write-modal .image-preview img {
  width: 349px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
}
.write-modal .image-preview-write .image-preview {
  width: 80px;
  flex-shrink: 0;
}
.write-modal .image-preview-write .image-preview img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
}
.write-modal .image-preview-write .image-preview-with-remove {
  position: relative;
  display: inline-block;
}
.write-modal .image-preview-write .image-remove-cross {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.write-modal .image-preview-write .image-remove-cross:hover {
  background: rgba(0, 0, 0, 0.8);
}
.image-preview button.add-image-btn {
  background: transparent;
  color: #6b7280;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  box-shadow: none;
}
.write-modal .image-preview-write button.add-image-btn {
  width: 80px;
  height: 80px;
  min-width: 80px;
  min-height: 80px;
  font-size: 28px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: #6b7280;
}
.write-modal .image-preview-write button.add-image-btn:hover {
  color: #374151;
}
.chat-input-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.chat-input-row input[type="text"] {
  flex: 1;
  width: 100%;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal {
  width: 320px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(16,24,40,0.18);
}
.modal-header {
  font-weight: 700;
  margin-bottom: 10px;
}
.modal-search {
  width: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.modal-list {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 6px;
}
.modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: none;
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.chat-search {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}
.chat-search input {
  border: none;
  background: transparent;
  outline: none;
  width: auto;
  font-size: 13px;
}
.typing-indicator {
  font-size: 10px;
  color: #10b981;
  margin-top: 2px;
}
.chat-edit {
  font-size: 10px;
  color: #9ca3af;
  margin-top: 2px;
}

.chat-error {
  color: #ef4444;
  font-size: 10px;
  margin: 6px 0;
}

.input-emoji-picker {
  position: absolute;
  bottom: 64px;
  left: 20px;
  width: 260px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 24px rgba(16,24,40,0.14);
  z-index: 6;
}

.msg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.emoji-popover {
  position: absolute;
  z-index: 6;
  box-shadow: 0 10px 24px rgba(16,24,40,0.14);
  border-radius: 14px;
  background: transparent;
  width: fit-content;
  border: none;
  outline: none;
}
.emoji-popover emoji-picker {
  width: 260px;
  height: 360px;
  --border-radius: 12px;
  --background: #fff;
  --border-color: transparent;
  --outline-color: transparent;
  border: none !important;
  outline: none !important;
  box-sizing: border-box;
}
.emoji-popover.input {
  bottom: 64px;
  left: 20px;
}
.emoji-popover.inside-bubble {
  top: 38px;
  right: 8px;
}

.chat-text {
  white-space: pre-wrap;
  line-height: 1.4;
}

.chat-header .chat-avatar {
  margin-right: 10px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-search-btn {
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.search-highlight {
  background: #fff3a3;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.chat-spacer {
  flex: 1 1 auto;
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.chat-bubble.them .msg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.chat-bubble.me .msg-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f4;
  margin-bottom: 12px;
}
.comment-item .menu-dropdown-wrap {
  flex-shrink: 0;
  margin-left: auto;
}
.comment-item .menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}


/* Write new modal */
.write-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:3000;
  backdrop-filter: blur(2px);
}
.write-modal{
  width:min(760px, 92vw);
  background: transparent;
  border-radius:18px;
  padding:22px 26px;
  box-shadow:0 20px 60px rgba(0,0,0,0.18);
}
.write-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.write-user{
  display:flex;
  align-items:center;
  gap:12px;
}
.write-user .avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  background:#e6f6ec;
  color:#1b7c4e;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
}
.write-name-row{
  display:flex;
  align-items:center;
  gap:8px;
}
.write-name{
  font-weight:600;
  color:#1f2a37;
}
.write-badge{
  display:inline-flex;
  align-items:center;
  padding:0;
  border-radius:0;
  font-size:15px;
  background:none;
  color:#6b21a8;
}
.write-badge::before{
  content:"\2022\00a0";
  font-weight:700;
  color:#000;
}
.write-select{
  border:1px solid #d9dee6;
  border-radius:10px;
  padding:8px 10px;
  font-size:14px;
  color:#222222;
}
.write-input{
  width:100%;
  border:1px solid #d9dee6;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  margin-bottom:12px;
}
.write-textarea{
  width:100%;
  min-height:180px;
  border:1px solid #d9dee6;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  resize:vertical;
  margin-bottom:12px;
}
.write-tags-label{
  font-weight:600;
  color:#374151;
  margin:6px 0 8px;
}
.write-tags-preview{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:4px 0 12px;
}
.tag-pill{
  border:1px solid #d9dee6;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  color:#374151;
  background:#f9fafb;
}
.write-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:6px;
}
.write-icons{
  display:flex;
  gap:8px;
}
.write-icons .icon-btn{
  width:36px;
  height:36px;
  border-radius:10px;
  border:none;
  outline:none;
  background: transparent;
  cursor:pointer;
}
.write-icons .icon-btn:focus{
  outline:none;
}
.write-actions{
  display:flex;
  gap:10px;
}
.write-actions .btn-ghost{
  border:1px solid #9fd8bf;
  background:#e6f6ec;
  color:#1b7c4e;
  padding:8px 18px;
  border-radius:999px;
}
.write-actions .btn-primary{
  background:#18a16a;
  color:#fff;
  border:none;
  padding:8px 18px;
  border-radius:999px;
  min-width:8rem;
}
.write-actions .btn-ghost {
  min-width: 8rem;
}
.write-status{
  margin-top:10px;
  font-size:13px;
}
.write-status-error{
  color:#dc2626;
}

/* Post header layout (name, user category, time, post category) */
.post-head{
  display:flex;
  align-items:center;
  gap:8px;
}
.post-head .chip.user-chip{
  margin-left:8px;
}
.post-head-category,
.post-head .post-head-category,
.discussion-head .post-head-category,
.comment-name .post-head-category,
.name .post-head-category {
  background: none;
  color: #6b21a8;
  padding: 0;
  border-radius: 0;
  font-size: 15px;
}
.comment-name .post-head-category,
.name .post-head-category {
  margin-left: 4px;
}
.post-head-time {
  color: var(--Text-muted, #6B7280);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  white-space: nowrap;
}
.post-head-category::before,
.post-head .post-head-category::before,
.discussion-head .post-head-category::before {
  content: "\2022\00a0";
  font-weight: 700;
  color: #000;
}
.comment-name .post-head-category::before,
.name .post-head-category::before {
  content: "\2022\00a0";
  font-weight: 700;
  color: #000;
}
.post-head .chip.post-chip{
  margin-left:auto;
  background:#eef7f0;
  color:#1b7c4e;
  border-radius:999px;
  padding:6px 14px;
  font-weight:500;
}
.post-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  position: relative;
}
.post-head-actions .post-chip {
  margin-left: 0;
}
.post-head .muted,
.discussion-head .muted {
  color: #6b7280;
  font-size: 10px;
}

button.post-chip { border: none; outline: none; box-shadow: none; }

/* Force menu dropdown to appear under the three dots */
.menu-dropdown {
  position: absolute !important;
  top: 28px !important;
  right: 0 !important;
}
.post-head, .discussion-head, .post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.menu-dropdown-wrap .menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  z-index: 100;
}

.menu-btn{
  position: relative;
}
.menu-btn + .menu-dropdown{
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 100;
}

/* Global menu dropdown anchoring */
.menu-btn{
  position: relative;
}
.menu-btn + .menu-dropdown{
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 100;
}
.more{
  position: relative;
}
.more + .menu-dropdown{
  position: absolute;
  top: 26px;
  right: 0;
  z-index: 100;
}

/* Dropdown values – consistent text color */
select,
select option,
.menu-dropdown button,
.search-dropdown .search-item,
.lang-dropdown button,
.language-item,
.settings-form select,
.input[type="text"] + select,
select.input {
  color: #222222;
}

.account-card{max-width:1180px; width:100%; padding:12px 16px;}
.profile-right:has(.account-card){max-width:720px;}
.profile-right{justify-items:stretch;}

.chat-input .icon{border:none;background:transparent;}
.chat-input .icon:focus{outline:none;}


/* LinkedIn-like discussion view */
.discussion-layout{display:grid;grid-template-columns:1fr 300px;gap:18px;padding:18px 24px 32px;background:#eef0f3;}
.discussion-main{background:#fff;border-radius:18px;padding:18px 20px;box-shadow:0 8px 18px rgba(16,24,40,0.06);}
.discussion-main .comment-list{margin-top:14px;display:flex;flex-direction:column;align-items:stretch;gap:22px;align-self:stretch;width:100%;}
.discussion-main .comment-list .comment-item{width:100%;min-width:0;display:flex;gap:12px;align-items:flex-start;background:#fff;border-radius:12px;padding:0;position:relative;}
.discussion-main .comment-list .comment-item > div:nth-child(2){flex:1;min-width:0;}
.discussion-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.discussion-title{font-size:20px;font-weight:700;margin:8px 0 6px;}
.discussion-body{color:#374151;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;}
.discussion-comment-box{margin-top:14px;display:flex;align-items:center;gap:10px;background:#FFF;border-radius:24px;border:1px solid #B9B5B5;padding:6px 10px;}
.discussion-comment-box input{flex:1;border:none;background:transparent;outline:none;padding:6px 8px;}
.discussion-comment-box .send-btn{width:34px;height:34px;min-width:34px;min-height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;background:#16a34a;color:#fff;border-radius:50%;cursor:pointer;}
.comment-list{margin-top:14px;display:flex;flex-direction:column;align-items:flex-start;gap:22px;align-self:stretch;}
.comment-item{background:#fff;border-radius:12px;padding:10px 12px;position:relative;}
.comment-name{font-weight:600;margin-bottom:4px;}
.expanded-comment-section{margin-top:12px;padding:16px;background:#FFFFFF;border-radius:12px;border:1px solid #e5e7eb;pointer-events:auto;box-shadow:0 2px 8px rgba(0,0,0,0.06);overflow:hidden;max-height:420px;display:flex;flex-direction:column;}
.expanded-comment-section .discussion-comment-box,
.expanded-comment-section .discussion-comment-box input{pointer-events:auto;}
.expanded-comment-section .comment-list{background:#FFFFFF;display:flex;flex-direction:column;align-items:stretch;gap:22px;align-self:stretch;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;scrollbar-width:none;-ms-overflow-style:none;}
.expanded-comment-section .comment-list::-webkit-scrollbar{display:none;}
.expanded-comment-section .comment-item{background:#FFFFFF;border-radius:12px;padding:12px 14px;margin:8px 0;width:auto;min-width:0;display:flex;gap:12px;align-items:flex-start;box-sizing:border-box;}
.expanded-comment-section .comment-thread,
.expanded-comment-section .comment-row,
.expanded-comment-section .comment-content{background:transparent;}
.expanded-comment-section .comment-item > div:nth-child(2){flex:1;min-width:0;}
.expanded-comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-weight:700;font-size:15px;color:#374151;}
.expanded-comment-close{
  width:auto;
  height:auto;
  min-width:0;
  min-height:0;
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
  color:#6b7280;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.expanded-comment-close:hover{
  background:transparent;
  border:none;
  color:#111827;
}


/* Global LinkedIn-like polish */
body, .shell { background:#eef0f3; }
.layout, .discussion-page, .questions-page, .profile-page, .settings-page, .chat-page, .write-page { background:#eef0f3; }

.dash-card, .profile-card, .account-card, .chat-list, .chat-main, .discussion-main, .panel, .panel-head, .write-modal {
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 18px rgba(16,24,40,0.06);
}

.input, .write-input, .write-textarea, .top-search, .settings-form input, .settings-form textarea {
  border-radius:12px;
  border:1px solid #d9dee6;
}

.btn-primary, .send-btn {
  background:#18a16a;
  color:#fff;
  border:none;
  border-radius:999px;
}

.comment-list .comment-item {
  background:#fff;
  border-radius:12px;
}

.discussion-comment-box {
  background:#FFF;
  border-radius:24px;
  border:1px solid #B9B5B5;
}
.chat-input {
  background:#f3f4f6;
  border-radius:999px;
}

.panel-section { font-weight:700; }

.comment-likes{font-size:12px;color:#6b7280;margin-top:4px;}
.comment-actions .stat-btn{font-size:12px;height:auto;padding:2px 0;}
.comment-actions .stat-btn .stat-icon svg{width:12px;height:12px;}

.inline-comments{margin-top:12px;display:flex;flex-direction:column;align-items:stretch;gap:22px;align-self:stretch;position:relative;z-index:2;}
.inline-comments .inline-comments-list-scroll{max-height:320px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:22px;margin-bottom:4px;scrollbar-width:none;-ms-overflow-style:none;}
.inline-comments .inline-comments-list-scroll::-webkit-scrollbar{display:none;}
/* Feed card: keep comment thread vertical, replies under main comment */
.dash-card .inline-comments .comment-thread{display:flex;flex-direction:column;align-items:stretch;}
.dash-card .inline-comments .comment-thread-main{display:block;width:100%;}
.dash-card .inline-comments .comment-replies{display:block;width:100%;margin-left:28px;margin-top:12px;padding-left:16px;border-left:2px solid #e5e7eb;}
.dash-card .inline-comments .comment-reply-item{display:block;width:100%;}
.view-all-comments-wrap{margin-top:6px;}
.view-all-comments-btn{background:transparent;border:none;color:#18a16a;font-size:13px;font-weight:600;cursor:pointer;padding:4px 0;}
.view-all-comments-btn:hover{text-decoration:underline;}
.inline-comment{display:flex;gap:10px;align-items:flex-start;pointer-events:auto;width:100%;min-width:0;}
.inline-comment .avatar{width:28px;height:28px;font-size:12px;flex-shrink:0;}
.inline-comment .inline-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;align-self:stretch;}
.inline-comment .name{font-weight:600;font-size:13px;}
.inline-comment .body{color:#252525;font-family:Inter,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:120%;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.inline-comment .menu-dropdown-wrap{margin-left:auto;flex-shrink:0;}
.inline-comment .menu-btn{background:transparent;border:none;cursor:pointer;padding:2px 4px;}

.write-new-wrap{background:transparent;padding:4px 6px;box-shadow:none;}

.public-profile-page{display:grid;grid-template-columns:260px 1fr;gap:24px;padding:24px;background:#eef0f3;}
.public-profile-card{
  position: relative;
background:#fff;border-radius:18px;padding:18px;box-shadow:0 8px 18px rgba(16,24,40,0.06);display:flex;flex-direction:column;align-items:center;gap:10px;}
.public-profile-card .profile-photo{width:120px;height:120px;border-radius:999px;overflow:hidden;background:#e5e7eb;display:flex;align-items:center;justify-content:center;}
.public-profile-card .profile-photo img{width:100%;height:100%;object-fit:cover;}
.profile-photo-fallback{font-size:36px;font-weight:700;color:#1f8b5f;}
.follow-btn{background:#e5e7eb;border:none;border-radius:999px;padding:8px 24px;font-weight:600;cursor:pointer;}
.message-btn{background:#fff;border:1px solid #d1d5db;border-radius:999px;padding:8px 24px;font-weight:600;cursor:pointer;}
.message-btn.disabled,.message-btn:disabled{opacity:0.6;cursor:not-allowed;pointer-events:none;}
.public-profile-card .profile-name{font-size:20px;font-weight:700;}
.public-profile-card .profile-bio{color:#6b7280;text-align:center;min-width:0;max-width:100%;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;}
.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px;text-align:center;font-size:13px;color:#6b7280;}
.profile-stats strong{display:block;color:#111827;font-size:16px;}
.public-profile-posts{display:flex;flex-direction:column;gap:14px;}
.public-profile-tabs{display:flex;justify-content:center;gap:12px;border-bottom:1px solid #d1d5db;padding-bottom:8px;}
.public-profile-tabs .tab{font-weight:600;color:#374151;}
.public-profile-tabs .active{color:#111827;border-bottom:2px solid #16a34a;padding-bottom:4px;}
.public-profile-feed{display:grid;gap:16px;}
.author-link{cursor:pointer;}

.follow-btn.following{background:#16a34a;color:#ffffff;}

.public-profile-card button{pointer-events:auto;}

.follow-btn, .follow-btn.following{background:#16a34a !important;color:#ffffff !important;opacity:1 !important;}

.public-profile-card .follow-btn{background:#16a34a !important;color:#ffffff !important;opacity:1 !important;}
.public-profile-card .follow-btn.following{background:#0f8c5d !important;color:#ffffff !important;}

.comment-actions{margin-top:6px;display:flex;align-items:center;gap:24px;}
.comment-reply-btn{color:var(--Text-muted,#6B7280);font-family:Inter,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:120%;cursor:pointer;background:none;border:none;padding:0;}
.comment-reply-btn:hover{color:var(--Text-strong,#1F2933);}
.reply-indicator{display:flex;align-items:center;justify-content:space-between;padding:6px 12px;margin:8px 0 0;background:var(--Surface-secondary,#F3F4F6);border-radius:8px;font-family:Inter,sans-serif;font-size:12px;font-weight:400;line-height:120%;color:var(--Text-muted,#6B7280);}
.reply-indicator strong{color:var(--Text-strong,#1F2933);font-weight:500;}
.reply-cancel-btn{background:none;border:none;cursor:pointer;font-size:16px;color:var(--Text-muted,#6B7280);padding:0 0 0 8px;line-height:1;}
.reply-cancel-btn:hover{color:var(--Text-strong,#1F2933);}


/* remove card background behind Write new button only */
.panel-head.write-new-wrap{
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.panel-head.write-new-wrap .write-new{
  margin: 0 !important;
}

.profile-card .chip {
  margin: 0 auto;
  width: fit-content;
  display: inline-block;
  text-align: center;
}

.profile-menu-title{font-weight:700;font-size:14px;color:#111827;margin-bottom:6px;}

.profile-menu{background:#fff;border-radius:16px;padding:12px;box-shadow:0 10px 22px rgba(16,24,40,0.12);display:grid;gap:6px;min-width:220px;}
.profile-menu-head{cursor:pointer;display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:10px;padding:8px 8px 10px;border-bottom:1px solid #eef1f4;margin-bottom:6px;}
.profile-menu-avatar{width:34px;height:34px;border-radius:50%;background:#dff4e7;color:#118a5f;display:flex;align-items:center;justify-content:center;font-weight:700;}
.profile-menu-meta{display:flex;flex-direction:column;gap:2px;}
.profile-menu-name{font-size:13px;font-weight:600;color:#111827;}
.profile-menu-dots{font-size:10px;color:#c4c7ce;letter-spacing:2px;}
.profile-menu-chip{background:#dff4e7;color:#118a5f;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:600;}
.profile-menu .menu-icon{width:18px;display:inline-flex;align-items:center;justify-content:center;margin-right:8px;}
.profile-menu button{display:flex;align-items:center;gap:6px;border:none;background:transparent;padding:8px;border-radius:8px;text-align:left;cursor:pointer;font-size:13px;color:#111827;}
.profile-menu button:hover{background:#f3f4f6;}

.poll-above-panel{margin-bottom:16px;}
.poll-above-panel .poll-card{margin-bottom:0;}
.poll-card{background:#fff;border-radius:18px;padding:18px 20px;box-shadow:0 8px 18px rgba(16,24,40,0.06);margin-bottom:16px;}
.poll-title{font-weight:700;margin-bottom:8px;font-size:15px;}
.poll-input{width:100%;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;font-size:14px;margin-bottom:12px;}
.poll-options{list-style:none;padding:0;margin:0;display:grid;gap:8px;}
.poll-option{display:flex;align-items:center;gap:10px;font-size:14px;}
.poll-option input[type="radio"]{accent-color:#16a34a;}
.poll-option-input{flex:1;border:1px solid #e5e7eb;border-radius:10px;padding:8px 10px;font-size:14px;}
.poll-thanks{font-weight:700;font-size:18px;margin-bottom:10px;}
.poll-result-card{background:#fff4e8;border-radius:16px;padding:16px;}
.poll-question{font-weight:700;font-size:18px;margin-bottom:14px;}
.poll-result{margin-bottom:12px;}
.poll-result-label{font-size:14px;margin-bottom:6px;}
.poll-bar-row{display:flex;align-items:center;gap:10px;}
.poll-bar{flex:1;background:#e5e7eb;border-radius:999px;height:14px;overflow:hidden;}
.poll-bar-fill{height:100%;background:#16a34a;border-radius:999px;}
.poll-pct{font-size:14px;color:#6b7280;min-width:40px;text-align:right;}

.stat-btn.liked{color:#ef4444;}
.stat-btn.liked .stat-icon svg path{fill:currentColor;}
.stat-btn.saved{color:#2563eb;}
.stat-btn.saved .stat-icon svg path{fill:currentColor;}

.question-interactions-value { margin-left: 12px; }

/* Threaded reply chain */
.comment-thread{display:flex;flex-direction:column;align-items:stretch;margin-bottom:16px;}
.comment-thread:last-child{margin-bottom:0;}
.comment-thread-main{display:block;width:100%;}
.comment-replies{display:block;width:100%;box-sizing:border-box;margin-left:28px;margin-top:12px;padding-left:16px;border-left:2px solid #e5e7eb;}
.comment-reply-item{margin-top:14px;display:block;width:100%;}
.comment-reply-item:first-child{margin-top:0;}
.comment-reply-tag{color:var(--Text-muted,#6B7280);font-weight:500;margin-right:4px;}
.comment-row{display:flex;gap:10px;align-items:flex-start;}
.comment-row .comment-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;}
.comment-row .comment-name{font-weight:600;font-size:13px;}
.comment-row .comment-name-link{cursor:pointer;}
.comment-row .comment-name-link:hover{text-decoration:underline;}
.comment-row .comment-text{font-size:14px;color:#374151;margin-top:0;white-space:pre-wrap;word-wrap:break-word;}
.comment-timestamp{color:var(--Text-muted,#6B7280);font-family:Inter,sans-serif;font-size:12px;font-weight:400;line-height:120%;margin-left:4px;}
.view-more-replies-btn{background:transparent;border:none;color:#18a16a;font-size:13px;font-weight:600;cursor:pointer;padding:6px 0;margin-top:8px;display:inline-block;}
.view-more-replies-btn:hover{text-decoration:underline;}

/* Inline edit */
.comment-edit-form{margin-top:4px;}
.comment-edit-input{width:100%;border:1px solid #d1d5db;border-radius:8px;padding:6px 10px;font-size:14px;font-family:Inter,sans-serif;background:#f9fafb;}
.comment-edit-input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.15);}
.comment-edit-actions{display:flex;gap:8px;margin-top:6px;}
.comment-edit-save{background:#2563eb;color:#fff;border:none;border-radius:6px;padding:4px 14px;font-size:12px;font-weight:500;cursor:pointer;}
.comment-edit-save:hover{background:#1d4ed8;}
.comment-edit-cancel{background:transparent;color:#6b7280;border:1px solid #d1d5db;border-radius:6px;padding:4px 14px;font-size:12px;font-weight:500;cursor:pointer;}
.comment-edit-cancel:hover{color:#111827;border-color:#9ca3af;}

/* Delete confirmation modal */
.delete-confirm-overlay{position:fixed;inset:0;z-index:3000;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;}
.delete-confirm-modal{background:#fff;border-radius:16px;padding:28px 32px;box-shadow:0 12px 48px rgba(0,0,0,.18);max-width:360px;width:90%;text-align:center;}
.delete-confirm-title{font-size:18px;font-weight:700;color:#111827;margin-bottom:8px;}
.delete-confirm-text{font-size:14px;color:#6b7280;margin-bottom:20px;}
.delete-confirm-actions{display:flex;gap:12px;justify-content:center;}
.delete-confirm-actions .btn-ghost{background:transparent;border:1px solid #d1d5db;border-radius:8px;padding:8px 24px;font-size:14px;font-weight:500;cursor:pointer;color:#374151;}
.delete-confirm-actions .btn-ghost:hover{background:#f3f4f6;}
.delete-confirm-actions .btn-danger{background:#ef4444;color:#fff;border:none;border-radius:8px;padding:8px 24px;font-size:14px;font-weight:500;cursor:pointer;}
.delete-confirm-actions .btn-danger:hover{background:#dc2626;}
