:root {
  --brand: #0b8f5a;
  --brand-dark: #075c3b;
  --brand-soft: #e3f5ec;
  --bg: #f3f6f2;
  --surface: #ffffff;
  --text: #17241d;
  --muted: #6d7d74;
  --line: #dfe8e1;
  --danger: #c0392b;
  --warning: #c47a12;
  --supply: #2a5b9a;
  --shadow: 0 10px 30px rgba(18, 48, 34, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.hidden { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; letter-spacing: 2px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
button, input { font: inherit; }
button { cursor: pointer; }

.auth-view {
  min-height: 100%;
  padding: max(30px, env(safe-area-inset-top)) 20px 30px;
  background:
    radial-gradient(120% 70% at 50% 0%, #0e7b50 0%, #0a6443 48%, #074d34 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.auth-hero { color: #fff; text-align: center; }
.auth-hero p { color: rgba(255,255,255,.72); font-size: 13px; margin-top: 8px; }
.brand-mark {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 20px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
  backdrop-filter: blur(6px);
}
.auth-card {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--brand-soft); border-radius: 12px; }
.auth-tab {
  padding: 9px 0; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font-size: 13px; cursor: pointer;
}
.auth-tab.active { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(11, 107, 72, .14); }
.mood-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mood-btn {
  width: 38px; height: 38px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--brand-soft); font-size: 19px; line-height: 1;
}
.mood-btn.active { background: var(--brand); box-shadow: 0 2px 8px rgba(11, 107, 72, .28); }
.field input {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fbfdfb; color: var(--text); outline: none;
}
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.code-row .btn { flex: 0 0 auto; padding: 0 14px; }
.hint { color: var(--muted); font-size: 12px; }
.msg-system {
  align-self: center; text-align: center; color: var(--muted);
  font-size: 12px; padding: 4px 0;
}
.consent-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; line-height: 1.5; color: var(--muted);
}
.consent-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); }
.consent-row a { color: var(--brand); }
.hint.center { text-align: center; padding: 12px 0 24px; }
#dev-code { color: var(--brand-dark); font-weight: 600; min-height: 18px; }

.btn {
  border: 0; border-radius: 12px; padding: 12px 18px;
  font-weight: 600; background: #eef2ee; color: var(--text);
  transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(11,143,90,.22); }
.btn-outline { background: #fff; color: var(--brand-dark); border: 1px solid var(--brand); }
.btn-ghost { background: var(--brand-soft); color: var(--brand-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.link-btn { border: 0; background: none; color: var(--brand-dark); padding: 6px; }
.link-btn.danger { color: var(--danger); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.16); color: #fff;
  font-size: 19px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}

.app-view { min-height: 100%; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(135deg, #0b7a50, #075c3b);
  color: #fff;
  box-shadow: 0 6px 20px rgba(7, 92, 59, .2);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title strong { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title small { color: rgba(255,255,255,.72); font-size: 11px; }
.ws-pill {
  font-size: 10px; padding: 4px 9px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: rgba(255,255,255,.85);
}
.ws-pill.online { background: rgba(255,255,255,.24); color: #fff; }
.ws-pill.offline { background: rgba(192,57,43,.45); }

.page { flex: 1; padding: 16px 16px 92px; width: min(720px, 100%); margin: 0 auto; }
.page-head, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.page-head { margin-bottom: 14px; }
.section-head { margin: 18px 0 10px; }
.quick-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.quick-actions .btn { flex: 1; }

.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 20px;
}
.card > h3 { margin-bottom: -8px; }

.team-list { display: flex; flex-direction: column; gap: 12px; }
.team-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid transparent;
}
.team-card:active { border-color: var(--brand); }
.team-avatar {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 700; font-size: 19px;
}
.team-card-body { flex: 1; min-width: 0; }
.team-card-body strong { display: block; font-size: 16px; }
.team-card-body span { color: var(--muted); font-size: 12px; }
.team-card .chev { color: var(--muted); font-size: 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; color: var(--muted); background: #eef2ee;
}
.pill--live { background: var(--brand-soft); color: var(--brand-dark); }
.pill--ended { background: #f7f0e9; color: #8a5a3b; }
.pill--danger { background: #fbeceb; color: var(--danger); }
.pill--supply { background: #eaf2ff; color: var(--supply); }
.pill--meeting { background: #fdf1dd; color: var(--warning); }

.map-wrap {
  position: relative; height: 46vh; min-height: 280px;
  border-radius: var(--radius); overflow: hidden;
  background: #e9f0e9; box-shadow: var(--shadow);
}
#map-canvas { width: 100%; height: 100%; display: block; touch-action: manipulation; }
.map-empty {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; pointer-events: none;
}
.map-tools {
  position: absolute; right: 10px; bottom: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.map-tools .icon-btn { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-legend {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(255,255,255,.9); border-radius: 10px;
  padding: 6px 9px; display: flex; gap: 10px;
  font-size: 10px; color: var(--muted); backdrop-filter: blur(4px);
}
.map-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; }

.member-strip { display: flex; gap: 12px; overflow-x: auto; padding: 16px 2px 4px; scrollbar-width: none; }
.member-strip::-webkit-scrollbar { display: none; }
.member-chip { flex: 0 0 auto; width: 58px; text-align: center; border: 0; background: none; padding: 0; color: var(--text); }
.member-chip .avatar {
  width: 44px; height: 44px; margin: 0 auto 5px;
  border-radius: 50%; background: #dfe9e1; color: #42574a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; position: relative;
}
.member-chip.online .avatar { background: var(--brand); color: #fff; }
.member-chip .avatar::after {
  content: ""; position: absolute; right: 1px; bottom: 1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #b8c4bb; border: 2px solid #fff;
}
.member-chip.online .avatar::after { background: #25d07d; }
.member-chip span { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 14px; padding: 11px 13px;
  box-shadow: 0 3px 12px rgba(18,48,34,.05);
}
.member-row .avatar {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  background: #dfe9e1; color: #42574a;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.member-row.online .avatar { background: var(--brand); color: #fff; }
.member-main { flex: 1; min-width: 0; }
.member-main strong { font-size: 14px; }
.member-main span { display: block; color: var(--muted); font-size: 11px; }
.member-meta { text-align: right; font-size: 11px; color: var(--muted); }
.member-meta b { display: block; color: var(--text); font-size: 12px; }
.member-row .btn { padding: 7px 11px; font-size: 12px; }

.message-list {
  height: calc(100vh - 232px); min-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding: 4px 2px 12px;
}
.msg { max-width: 82%; align-self: flex-start; }
.msg.mine { align-self: flex-end; }
.msg .bubble {
  background: #fff; border-radius: 4px 16px 16px 16px;
  padding: 9px 12px; box-shadow: 0 3px 10px rgba(18,48,34,.05);
  word-break: break-word; font-size: 14px;
}
.msg.mine .bubble { background: var(--brand); color: #fff; border-radius: 16px 4px 16px 16px; }
.msg .meta { font-size: 10px; color: var(--muted); margin: 3px 4px; }
.msg.mine .meta { text-align: right; }
.composer {
  position: fixed; left: 0; right: 0; bottom: 68px; z-index: 15;
  display: flex; gap: 8px; padding: 10px 14px;
  background: rgba(243,246,242,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.composer input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 15px; outline: none; background: #fff;
}
.composer input:focus { border-color: var(--brand); }
.composer .btn { border-radius: 999px; padding: 0 18px; }

.poi-list, .alert-list, .track-list { display: flex; flex-direction: column; gap: 9px; }
.poi-row, .alert-row, .track-row {
  background: var(--surface); border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 3px 12px rgba(18,48,34,.05);
}
.poi-row .body, .alert-row .body, .track-row .body { flex: 1; min-width: 0; }
.poi-row .body strong, .track-row .body strong { display: block; font-size: 14px; }
.poi-row .body span, .alert-row .body span, .track-row .body span { color: var(--muted); font-size: 11px; }
.row-actions { display: flex; gap: 2px; }
.row-actions button { border: 0; background: none; color: var(--brand-dark); font-size: 12px; padding: 7px; }
.row-actions button.danger { color: var(--danger); }
.alert-row { background: #fdf6f4; border-left: 3px solid var(--danger); }
.alert-row.type-2 { background: #fbf8f1; border-left-color: var(--warning); }
.alert-row.type-4 { background: #f4f8fe; border-left-color: var(--supply); }
.alert-row.type-5 { background: #fbf8f1; border-left-color: var(--warning); }
.alert-row.type-6 { background: #fbf8f1; border-left-color: var(--warning); }
.alert-row.type-7 { background: #fbf8f1; border-left-color: var(--warning); }

.checkin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.checkin-head h3 { margin: 2px 0 0; font-size: 15px; }
.checkin-head > strong { font-size: 20px; }
.checkin-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.checkin-bar {
  height: 6px; border-radius: 999px; background: #edf2ef; overflow: hidden;
  margin: 0 0 8px;
}
.checkin-bar > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #34c759, #7cf2b3);
  transition: width .6s cubic-bezier(.22, .9, .3, 1);
}
.checkin-done {
  margin: 2px 0 6px; color: #1f7a4d; font-weight: 600; font-size: 13px;
  animation: checkin-pop .5s cubic-bezier(.22, .9, .3, 1) both;
}
@keyframes checkin-pop {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.checkin-chip {
  flex: 0 0 auto; border-radius: 999px; padding: 6px 10px; font-size: 11px;
  border: 1px solid var(--line); background: #f4f6f5; color: var(--muted);
}
.checkin-chip.ok { background: #e8f7ef; border-color: #c9ecda; color: #1f7a4d; }
.checkin-chip.far { background: #fff8ec; border-color: #f3e3c9; color: #8a5a3b; }
.checkin-chip.muted { background: #f6f6f6; color: #9aa8a1; }
.ok-text { color: #1f7a4d; }
.warn-text { color: #b37a2e; }

.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 7px 13px; font-size: 12px;
}
.chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 2px; font-size: 14px;
}
.switch-row input { width: 44px; height: 25px; accent-color: var(--brand); }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(10px);
}
.bottom-nav button {
  flex: 1; border: 0; background: none; color: var(--muted);
  padding: 8px 0 9px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: relative; font-size: 10px;
}
.bottom-nav button i { font-style: normal; font-size: 20px; line-height: 1; }
.bottom-nav button.active { color: var(--brand-dark); font-weight: 700; }
.badge {
  position: absolute; top: 4px; right: calc(50% - 22px);
  min-width: 16px; height: 16px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px);
  background: rgba(23,36,29,.92); color: #fff; font-size: 13px;
  padding: 10px 16px; border-radius: 999px; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12, 28, 19, .48);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.modal {
  width: min(480px, 100%); background: #fff;
  border-radius: 22px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 86vh; overflow-y: auto;
  animation: rise .18s ease;
}
@keyframes rise { from { transform: translateY(20px); opacity: .6; } }
.modal h3 { font-size: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.modal .field input, .modal .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 11px; background: #fbfdfb; outline: none;
}
.modal .candidate {
  border: 1px solid var(--line); border-radius: 13px; padding: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.modal .candidate strong { font-size: 14px; }
.modal .candidate span { display: block; color: var(--muted); font-size: 11px; }

@media (min-width: 760px) {
  body { background: #e8eee8; }
  .app-view { width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); box-shadow: 0 0 50px rgba(18,48,34,.12); position: relative; }
  .topbar { border-radius: 0 0 18px 18px; }
  .bottom-nav, .composer { width: 520px; left: 50%; transform: translateX(-50%); }
  .toast { bottom: 110px; }
}

/* ---------- Social & profile ---------- */

.social-login { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.notify-btn { position: relative; flex: 0 0 auto; }
.notify-btn .badge { top: -4px; right: -6px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-dark);
  font-size: 14px; font-weight: 700; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 58px; height: 58px; font-size: 22px; }

.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-meta { flex: 1; min-width: 0; }
.profile-meta strong { display: block; font-size: 17px; }
.profile-meta p { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.goal-card { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.goal-head { display: flex; align-items: center; justify-content: space-between; }
.goal-label { color: var(--muted); font-size: 12px; }
.goal-text { font-size: 15px; font-weight: 600; line-height: 1.5; }
.goal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.goal-actions .btn { flex: 1; min-width: 130px; }

.composer-card { display: flex; flex-direction: column; gap: 10px; }
.composer-card textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; background: #fbfdfb; resize: vertical; outline: none;
  font: inherit; min-height: 76px;
}
.composer-card textarea:focus { border-color: var(--brand); }
.post-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-tools select {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
  background: #fff; color: var(--text); font-size: 12px;
}
.post-tools .btn-primary { margin-left: auto; }
.post-images { display: flex; gap: 8px; flex-wrap: wrap; }
.post-images .thumb {
  position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.post-images .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-images .thumb button {
  position: absolute; top: 2px; right: 2px; border: 0; border-radius: 50%;
  width: 20px; height: 20px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
  line-height: 20px; padding: 0;
}

.ad-slot { margin-bottom: 12px; }
.ad-card {
  display: block; border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit;
}
.ad-card img { width: 100%; max-height: 130px; object-fit: cover; display: block; }
.ad-card span { display: block; padding: 8px 12px; font-size: 12px; color: var(--muted); }

.feed-list { display: flex; flex-direction: column; gap: 12px; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .post-meta { flex: 1; min-width: 0; }
.post-head strong { display: block; font-size: 14px; }
.post-mood { font-size: 13px; margin-left: 2px; }
.member-mood { font-size: 13px; margin-left: 2px; }
.post-head small { color: var(--muted); font-size: 11px; }
.post-content { font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.post-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.post-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.post-actions { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.post-actions button {
  border: 0; background: none; color: var(--muted); font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
}
.post-actions button.liked { color: var(--danger); font-weight: 600; }
.post-comments { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.post-comment { font-size: 12px; color: var(--muted); line-height: 1.5; }
.post-comment strong { color: var(--text); margin-right: 4px; }
.post-comment-form { display: flex; gap: 6px; }
.post-comment-form input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px;
  background: #fbfdfb; outline: none; font-size: 12px;
}

.friend-list { display: flex; flex-direction: column; gap: 8px; }
.friend-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.friend-row:last-child { border-bottom: 0; }
.friend-info { flex: 1; min-width: 0; }
.friend-info strong { display: block; font-size: 14px; }
.friend-info span { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.friend-actions .btn { padding: 6px 10px; font-size: 12px; border-radius: 9px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #b9c4bd; display: inline-block; }
.online-dot.online { background: #25d07d; }
.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.search-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
  background: #fbfdfb; outline: none; font-size: 13px;
}

.msg-image { max-width: 220px; border-radius: 12px; overflow: hidden; display: block; }
.msg-image img { width: 100%; display: block; }
.notify-item {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.notify-item:last-child { border-bottom: 0; }
.notify-item.unread strong::after {
  content: " · 新"; color: var(--danger); font-size: 10px;
}
.notify-item p { color: var(--muted); font-size: 12px; }
.notify-item time { color: var(--muted); font-size: 10px; }

@media (max-width: 380px) {
  .goal-actions .btn { min-width: 0; flex: 1 1 100%; }
  .bottom-nav button { font-size: 9px; }
}

.social-entry { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble-image { padding: 4px; background: #fff; }
.bubble-image .msg-image { border-radius: 10px; }
