:root {
  --green: #1f8a3d;
  --green-dark: #166b2e;
  --red: #d84536;
  --orange: #e07b1a;
  --ink: #1c2733;
  --ink-soft: #55647a;
  --line: #e6ebf1;
  --bg: #f4f7fa;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
html { -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.main { flex: 1 0 auto; padding-top: 22px; padding-bottom: 40px; }
@media (max-width: 720px) { .main { padding-top: 14px; } }

/* ======= Header ======= */
.site-header {
  background: linear-gradient(135deg, #14421f, #1f8a3d);
  color: #fff;
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 12px 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-flag { font-size: 26px; }
.brand-text strong { display: block; font-size: 17px; letter-spacing: .3px; }
.brand-text small { display: block; font-size: 11px; opacity: .85; font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a { color: rgba(255,255,255,.9); padding: 7px 12px; border-radius: 8px; font-weight: 500; }
.main-nav a:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.main-nav a.active { background: rgba(255,255,255,.2); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) {
  .main-nav { order: 3; width: 100%; justify-content: stretch; }
  .main-nav a { flex: 1; text-align: center; }
}

/* Search */
.search-form input[type="search"] {
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff;
  border-radius: 8px; padding: 7px 12px; width: 150px; font-size: 14px; outline: none;
}
.search-form input::placeholder { color: rgba(255,255,255,.65); }
.search-form input:focus { background: rgba(255,255,255,.2); border-color: #fff; }
@media (max-width: 520px) { .search-form input[type="search"] { width: 100px; } }

.lang-toggle {
  color: #fff; background: rgba(0,0,0,.18); padding: 5px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
}
.lang-toggle:hover { background: rgba(0,0,0,.3); text-decoration: none; }

/* User menu */
.user-menu { position: relative; }
.user-menu .avatar { cursor: pointer; }
.user-menu-drop {
  display: none; position: absolute; right: 0; top: 44px; min-width: 180px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  padding: 6px; z-index: 60; color: var(--ink);
}
.user-menu:hover .user-menu-drop { display: block; }
.user-menu-drop a { display: block; padding: 8px 10px; color: var(--ink); border-radius: 6px; }
.user-menu-drop a:hover { background: var(--bg); text-decoration: none; }
.user-menu-drop form { margin: 0; }
.linklike { background: none; border: none; cursor: pointer; padding: 8px 10px; width: 100%; text-align: left; font-size: 14px; color: #b33; border-radius: 6px; }
.linklike:hover { background: #fdecec; }

/* Avatar */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700;
  font-size: 16px; flex-shrink: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.avatar.lg { width: 72px; height: 72px; font-size: 30px; }
.badge-admin { display: inline-block; background: var(--orange); color: #fff; border-radius: 4px; font-size: 10px; font-weight: 700; padding: 2px 5px; vertical-align: middle; margin-left: 4px; }

/* ======= Buttons ======= */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 9px 18px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: all .12s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c8d2de; background: #fafbfc; }
.btn-danger { background: #d84536; color: #fff; }
.btn-danger:hover { background: #b8382b; }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-xs { padding: 4px 9px; font-size: 12px; }
.btn-block { width: 100%; }

/* ======= Flash ======= */
.flash { padding: 11px 16px; border-radius: 9px; margin-bottom: 16px; font-size: 14px; }
.flash-ok { background: #e7f6ec; color: #14702f; border: 1px solid #bfe6cc; }
.flash-error { background: #fdecea; color: #b3352a; border: 1px solid #f5c6c2; }

/* ======= Home ======= */
.hero {
  background: linear-gradient(135deg, #1a5c2e, #26914b);
  color: #fff; border-radius: var(--radius); padding: 38px 34px; margin-bottom: 20px;
}
.hero h1 { margin: 0 0 8px; font-size: 28px; }
.hero p { margin: 0 0 20px; opacity: .92; max-width: 640px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.25); }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
@media (max-width: 640px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; align-items: baseline; gap: 8px; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--green-dark); }
.stat span:last-child { color: var(--ink-soft); font-size: 13px; }

.home-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-bottom: 20px; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }
.home-side .panel { position: sticky; top: 84px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-chip { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 13.5px; }
.quick-chip:hover { border-color: var(--green); background: #f2faf5; text-decoration: none; }

/* ======= Panels ======= */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 17px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 24px; }
.page-head .subtitle, .subtitle { color: var(--ink-soft); margin: 4px 0 0; font-size: 14px; }
.breadcrumb { color: var(--ink-soft); font-size: 13px; margin-bottom: 6px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--green-dark); }
.empty, .empty-inline { color: var(--ink-soft); text-align: center; padding: 28px 10px; }
.empty-inline { padding: 12px 0; text-align: left; }

/* ======= Forum table ======= */
.forum-table { padding: 6px 22px; }
.forum-row {
  display: grid; grid-template-columns: 1fr 80px 80px 240px; gap: 14px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink);
}
.forum-row:first-of-type { border-top: none; }
a.forum-row:hover { background: #fafbfc; text-decoration: none; }
.forum-row-head { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); }
.fr-forum { display: flex; align-items: center; gap: 12px; }
.fr-icon { font-size: 26px; width: 34px; text-align: center; }
.fr-forum strong { display: block; font-size: 15.5px; }
.fr-forum small { color: var(--ink-soft); font-size: 12.5px; }
.fr-count { color: var(--ink-soft); font-size: 13px; }
.fr-last { font-size: 13px; color: var(--ink-soft); display: flex; flex-direction: column; }
.fr-last small { color: #93a1b3; }
@media (max-width: 720px) {
  .forum-row { grid-template-columns: 1fr 60px; }
  .fr-count:nth-child(3), .fr-last { display: none; }
  .hide-sm { display: none !important; }
}

/* ======= Thread list ======= */
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-list > li {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--line);
}
.thread-list > li:first-child { border-top: none; }
.tl-icon { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; padding-top: 1px; }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-weight: 600; color: var(--ink); }
.tl-title:hover { color: var(--green-dark); }
.tl-meta { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.tl-last { color: var(--ink-soft); font-size: 12.5px; text-align: right; white-space: nowrap; flex-shrink: 0; }
.tl-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.compact > li { padding: 11px 0; }

/* Tags */
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px; }
.tag-pin { background: #fdf0e1; color: #b0601a; }
.tag-lock { background: #eef0f3; color: #5a6675; }

/* Pagination */
.pagination { display: flex; gap: 6px; margin: 4px 0 0; }
.pagination a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; }
.pagination a.active { background: var(--green); color: #fff; border-color: var(--green); }
.pagination a:hover { border-color: var(--green); text-decoration: none; }

/* ======= Thread view ======= */
.thread-head { margin-bottom: 14px; }
.th-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.th-title-row h1 { margin: 0; font-size: 23px; line-height: 1.35; }
.th-alt-title { color: var(--ink-soft); font-size: 14px; margin: 4px 0 0; }
.th-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-soft); font-size: 13.5px; flex-wrap: wrap; }
.th-meta a { color: var(--ink); font-weight: 600; }
.admin-bar { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.admin-bar form { margin: 0; }

.post-list { display: flex; flex-direction: column; gap: 12px; }
.post { display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; } .post-side { flex-direction: row; gap: 10px; align-items: center; } }
.post-side { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.post-name { font-size: 14px; }
.post-when { color: var(--ink-soft); font-size: 11.5px; }
.post-body { font-size: 15px; word-break: break-word; }
.post-body p { margin: 0 0 10px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body code { background: #f0f3f6; padding: 1px 6px; border-radius: 5px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-body a { word-break: break-all; }
.post-body h1 { margin: 18px 0 8px; font-size: 22px; }
.post-body h2 { margin: 16px 0 8px; font-size: 20px; }
.post-body h3 { margin: 14px 0 6px; font-size: 17px; }
.post-body h4 { margin: 12px 0 6px; font-size: 15.5px; }
.post-body ul, .post-body ol { margin: 0 0 10px; padding-left: 24px; }
.post-body li { margin: 3px 0; }
.post-body blockquote { margin: 0 0 10px; padding: 4px 0 4px 14px; border-left: 3px solid var(--green); color: #475569; background: #f7faf8; border-radius: 0 6px 6px 0; }
.post-body pre { margin: 0 0 12px; padding: 12px 14px; background: #f0f3f6; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: pre-wrap; overflow-x: auto; }
.post-body pre code { background: transparent; padding: 0; }
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* ======= Rich-text tables & images (posts + editor) ======= */
.post-body table, .rte-area table { border-collapse: collapse; margin: 4px 0 14px; width: 100%; font-size: 14px; }
.post-body th, .rte-area th, .post-body td, .rte-area td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; word-break: break-word; }
.post-body th, .rte-area th { background: #f2f6f3; font-weight: 600; }
.post-body tbody tr:nth-child(even) td, .rte-area tbody tr:nth-child(even) td { background: #fafcfb; }
.post-body figure, .rte-area figure { margin: 0 0 14px; text-align: center; }
.post-body figcaption, .rte-area figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; text-align: center; }
.post-body img, .rte-area img { max-width: 100%; height: auto; border-radius: 8px; margin: 4px 0; }

.reply-box h3 { margin-top: 0; }
.reply-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 12px; font-family: inherit; font-size: 14px; resize: vertical; }
.reply-box textarea:focus { outline: 2px solid #bfe6cc; border-color: var(--green); }
.reply-box .btn { margin-top: 10px; }
.reply-box.muted { color: var(--ink-soft); text-align: center; }

/* ======= Forms ======= */
.form-panel { max-width: 640px; }
.form-panel--wide { max-width: 920px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="search"], .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-family: inherit; font-size: 14px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #bfe6cc; border-color: var(--green); }

/* ======= Rich text editor ======= */
.rte { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.rte--error { border-color: #d84536; }
.rte--error:focus-within { outline: 2px solid #f3c1bb; border-color: #d84536; }
.rte:focus-within { outline: 2px solid #bfe6cc; border-color: var(--green); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 8px; background: #f7f9fb; border-bottom: 1px solid var(--line); }
.rte-btn {
  min-width: 32px; height: 28px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: #334155; font-size: 13px; cursor: pointer; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-family: inherit;
}
.rte-btn:hover { background: #e6edf5; }
.rte-btn:active { background: #d4e0ec; }
.rte-btn--mod { font-weight: 700; font-family: Georgia, 'Times New Roman', serif; }
.rte-btn--block { font-size: 12px; font-weight: 600; }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; align-self: center; }
.rte-area { min-height: 360px; padding: 14px 16px; font-size: 15px; line-height: 1.7; outline: none; word-break: break-word; }
.rte--compact .rte-area { min-height: 150px; }
.rte-area:focus { outline: none; }
.rte-area:empty::before { content: attr(data-placeholder); color: #9ca3af; pointer-events: none; }
.rte-area p { margin: 0 0 10px; }
.rte-area h2 { margin: 16px 0 8px; font-size: 20px; }
.rte-area h3 { margin: 14px 0 6px; font-size: 17px; }
.rte-area ul, .rte-area ol { margin: 0 0 10px; padding-left: 22px; }
.rte-area blockquote { margin: 0 0 10px; padding: 2px 0 2px 14px; border-left: 3px solid var(--green); color: #475569; }
.rte-area pre { margin: 0 0 10px; padding: 10px 12px; background: #f0f3f6; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: pre-wrap; }
.rte-area hr { border: none; border-top: 1px solid var(--line); margin: 14px 0; }

/* Auth */
.auth-wrap { display: flex; justify-content: center; padding: 20px 0; }
.auth-panel { width: 100%; max-width: 400px; }
.auth-panel h1 { margin-top: 0; font-size: 22px; }
.auth-alt { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin: 14px 0 0; }

/* Search big */
.search-big { display: flex; gap: 10px; padding: 14px; }
.search-big input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-size: 15px; }

/* Profile */
.profile-head { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.profile-head .bio { color: var(--ink-soft); margin: 8px 0 0; }
.profile-actions { margin-left: auto; display: flex; gap: 8px; flex-direction: column; }

/* Guide */
.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card { display: flex; gap: 14px; margin-bottom: 0; transition: box-shadow .15s ease; }
.guide-card:hover { box-shadow: 0 4px 14px rgba(16,24,40,.12); text-decoration: none; }
.guide-icon { font-size: 30px; }
.guide-cat { display: block; color: var(--green); font-size: 12px; font-weight: 600; }
.guide-title { display: block; font-size: 16px; color: var(--ink); margin: 2px 0 4px; }
.guide-excerpt {
  color: var(--ink-soft); font-size: 13px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Error */
.error-box { text-align: center; padding: 50px 20px; }
.error-box h1 { font-size: 48px; margin: 0; color: var(--green-dark); }

/* ======= Footer ======= */
.site-footer { background: #122a1b; color: #cfd8e3; margin-top: 30px; padding: 30px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand strong { font-size: 16px; color: #fff; }
.footer-brand p { margin: 4px 0 0; font-size: 13px; opacity: .8; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-title { color: #fff; font-weight: 600; font-size: 13px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; }
.footer-links a { color: #cfd8e3; font-size: 13.5px; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: 12px; opacity: .7; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 20px; }

/* welcome note */
.welcome-note p { color: var(--ink-soft); margin-top: 0; }

/* ======= Avatar photo ======= */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-live { display: inline-flex; align-items: center; gap: 8px; }
.avatar.lg img { border-radius: 50%; }

/* ======= Badge (unread counts) ======= */
.badge-count {
  position: absolute; top: -6px; right: -6px; background: var(--orange); color: #fff;
  border-radius: 10px; font-size: 10px; font-weight: 700; padding: 1px 6px; min-width: 17px;
  text-align: center; line-height: 1.4;
}
.count-wrapper { position: relative; display: inline-flex; }
.nav-badge { position: relative; }

/* ======= Post tools (edit / delete) ======= */
.post-tools { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.post-tools form { margin: 0; }
.post-tools .btn { font-size: 12px; padding: 3px 9px; }

/* ======= Like button ======= */
.like-btn { gap: 4px; transition: transform .08s ease, background .12s ease, border-color .12s ease; }
.like-btn .like-ico { color: var(--ink-soft); line-height: 1; }
.like-btn .like-count { color: var(--ink-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.like-btn:hover .like-ico { color: var(--red); }
.like-btn.is-liked { background: #fdf0ee; border-color: #f3c1bb; color: var(--red); }
.like-btn.is-liked .like-ico, .like-btn.is-liked .like-count { color: var(--red); }
.like-btn:active:not(.is-busy) { transform: scale(.94); }
.like-btn.is-busy { opacity: .6; pointer-events: none; }

/* ======= Like toast ======= */
#like-toast, #rte-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(16px);
  background: rgba(28,39,51,.92); color: #fff; padding: 9px 16px; border-radius: 9px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 200;
  max-width: 90vw;
}
#like-toast.show, #rte-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ======= Share bar ======= */
.share-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.share-toast { color: var(--green-dark); font-size: 13px; margin-left: 6px; }

/* ======= Profile fields ======= */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-grid { grid-template-columns: 1fr; } }
.profile-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13.5px; margin-top: 8px; }
.profile-meta .meta-item { display: flex; align-items: center; gap: 5px; }
.avatar-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.avatar-preview .avatar { width: 64px; height: 64px; font-size: 26px; }

/* ======= Messages ======= */
.msg-list { list-style: none; margin: 0; padding: 0; }
.msg-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink); }
.msg-row:first-child { border-top: none; }
a.msg-row:hover { text-decoration: none; background: #fafbfc; }
.msg-other { font-weight: 600; }
.msg-preview { color: var(--ink-soft); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.msg-when { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.msg-unread-dot { display: inline-block; background: var(--green); color: #fff; border-radius: 10px; font-size: 10px; font-weight: 700; padding: 1px 7px; margin-left: 8px; }

/* ======= Conversation ======= */
.convo { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; word-break: break-word; }
.bubble .meta { font-size: 11px; opacity: .65; margin-bottom: 4px; }
.bubble.mine { align-self: flex-end; background: var(--green); color: #fff; }
.bubble.mine .meta { text-align: right; }
.bubble.theirs { align-self: flex-start; background: #eef2f6; color: var(--ink); }
.convo-reply { display: flex; gap: 10px; margin-top: 18px; align-items: flex-start; }
.convo-reply textarea { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; font-family: inherit; font-size: 14px; resize: vertical; }
.convo-reply textarea:focus { outline: 2px solid #bfe6cc; border-color: var(--green); }
.convo-reply .btn { margin-top: 0; }

/* ======= Notifications ======= */
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.notif-row:first-child { border-top: none; }
.notif-row.unread { background: linear-gradient(90deg, #f2faf5, transparent); }
.notif-text { flex: 1; font-size: 14px; }
.notif-text small { color: var(--ink-soft); display: block; margin-top: 2px; }
.notif-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 14px; align-items: center; }

/* ======= Profile big photo ======= */
.avatar.xl { width: 96px; height: 96px; font-size: 40px; }

/* ======= Follow ======= */
.follow-btn { transition: transform .08s ease, background .12s ease, border-color .12s ease; }
.follow-btn.is-busy { opacity: .6; pointer-events: none; }
.follow-btn.is-following { color: var(--ink); }
.follow-btn:active:not(.is-busy) { transform: scale(.96); }

.follow-btn--icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; padding: 0; margin: 0 2px;
  border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: var(--ink-soft);
  font-size: 12px; line-height: 1; cursor: pointer;
  vertical-align: -2px; transition: all .12s ease;
}
.follow-btn--icon:hover { background: #e7f6ec; color: var(--green); border-color: #bfe6cc; }
.follow-btn--icon.is-following { color: var(--green-dark); }
.follow-btn--icon.is-following:hover { color: var(--red); background: #fdf0ee; border-color: #f3c1bb; }

.follow-stats { display: flex; gap: 18px; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.follow-stats a { color: var(--ink-soft); }
.follow-stats a:hover { color: var(--green-dark); text-decoration: none; }
.follow-stats strong { color: var(--ink); font-size: 15px; }

.follow-list { list-style: none; margin: 0; padding: 0; }
.follow-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.follow-row:first-child { border-top: none; }
.follow-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.follow-name { font-weight: 600; color: var(--ink); }
.follow-name:hover { color: var(--green-dark); }
.follow-bio { color: var(--ink-soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-actions { display: flex; align-items: center; flex-shrink: 0; }