/* Bảng tin kiểu mạng xã hội. Màu nhóm lấy qua biến --farm. */
body.social { background: #f0eee6; }
.av.sm { width: 32px; height: 32px; font-size: 0.85rem; box-shadow: none; }
.av.md { width: 42px; height: 42px; font-size: 1rem; box-shadow: none; }
.tree-mini { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }

/* ô đăng bài */
.composer { background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); margin-bottom: 14px; }
.cp-top { display: flex; gap: 10px; align-items: center; }
.cp-fake { flex: 1; text-align: left; border: 0; background: #f0eee6; border-radius: 999px; padding: 11px 16px; font: inherit; color: var(--ink-2); cursor: pointer; }
.cp-fake:hover { background: #e7e3d6; }
.cp-fake:disabled { cursor: default; }
.cp-hint { font-size: 0.8rem; color: var(--ink-2); margin: 10px 2px 0; padding-top: 10px; border-top: 1px solid var(--line); }
.cp-form { margin-top: 12px; }
.cp-form textarea { min-height: 110px; border: 0; background: #faf8f2; font-size: 1.02rem; }
.cp-link { margin-top: 8px; }
.cp-bar { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 10px 0; }
.cp-tool { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--brand); }
.cp-tool:hover { background: #eef5e8; }
.cp-tool svg { width: 22px; height: 22px; }
.cp-send { width: 100%; }

.daypick { display: flex; align-items: center; gap: 6px; background: var(--card); border-radius: 999px; padding: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.daypick button { border: 0; background: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; color: var(--ink-2); }
.daypick button:hover:not(:disabled) { background: #f0eee6; }
.daypick button:disabled { opacity: 0.3; }
.daypick b { font-size: 0.88rem; padding: 0 4px; }

/* bài đăng */
.fb-post { background: var(--card); border-radius: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); margin-bottom: 14px; overflow: hidden; }
.fb-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px 8px; }
.fb-meta { min-width: 0; }
.fb-name { font-weight: 800; color: var(--ink); text-decoration: none; }
.fb-name:hover { text-decoration: underline; }
.fb-grp { margin-left: 8px; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--farm); border-radius: 999px; padding: 2px 8px; vertical-align: 1px; }
.fb-sub { font-size: 0.8rem; color: var(--ink-2); margin-top: 2px; }
.fb-text { padding: 2px 16px 12px; white-space: pre-wrap; font-size: 1rem; line-height: 1.5; }
.fb-photos { display: grid; gap: 3px; }
.fb-photos.n1 { grid-template-columns: 1fr; }
.fb-photos.n2 { grid-template-columns: 1fr 1fr; }
.fb-photos.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.fb-photos.n3 .pimg:first-child { grid-row: span 2; }
.fb-photos .pimg { border: 0; padding: 0; background: #ddd; cursor: zoom-in; position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.fb-photos.n1 .pimg { aspect-ratio: 4 / 3; }
.fb-photos.n3 .pimg:first-child { aspect-ratio: auto; }
.fb-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.fb-photos .pimg:hover img { transform: scale(1.02); }
.fb-photos .pimg.hid img { opacity: 0.35; }
.fb-photos .pimg span { position: absolute; left: 8px; top: 8px; background: #000; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.fb-link { display: flex; gap: 10px; align-items: center; margin: 10px 16px 4px; padding: 10px 12px; border-radius: 10px; background: #f6f3ea; text-decoration: none; color: var(--ink); }
.fb-link svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.fb-link span { min-width: 0; }
.fb-link b { display: block; font-size: 0.88rem; }
.fb-link small { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-actions { display: flex; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 12px; padding: 3px 0; }
.fb-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 4px; border: 0; background: none; border-radius: 8px; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; text-decoration: none; }
.fb-act:hover { background: #f0eee6; }
.fb-act svg { width: 20px; height: 20px; }
.fb-act.water svg { fill: none; stroke: currentColor; stroke-width: 1.9; }
.fb-act.water.on { color: #2f78c4; }
.fb-act.water.on svg { fill: #4a90d9; stroke: #4a90d9; }
.fb-act.ro { cursor: default; font-weight: 600; font-size: 0.84rem; }
.fb-act.ro svg { fill: #8fbfe6; }
.fb-act.ro:hover { background: none; }
.fb-act.splash svg { animation: splash 0.6s ease; }
.fb-comments { padding: 8px 16px 0; }
.fb-c { display: flex; gap: 8px; margin-bottom: 8px; }
.fb-bubble { background: #f0eee6; border-radius: 16px; padding: 7px 12px; font-size: 0.92rem; }
.fb-bubble a { display: block; font-weight: 800; font-size: 0.82rem; color: var(--ink); text-decoration: none; }
.fb-cmeta { font-size: 0.74rem; color: var(--ink-2); margin: 2px 0 0 12px; }
.fb-cmeta .linkbtn { font-size: 0.74rem; }
.fb-reply { display: flex; gap: 8px; align-items: center; padding: 8px 16px 12px; }
.fb-input { flex: 1; display: flex; align-items: center; background: #f0eee6; border-radius: 999px; padding: 0 6px 0 14px; }
.fb-input input { border: 0; background: none; padding: 9px 0; }
.fb-input input:focus { outline: none; }
.fb-input button { border: 0; background: none; width: 34px; height: 34px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fb-input button svg { width: 18px; height: 18px; fill: var(--brand); }
.empty-feed { text-align: center; padding: 40px 20px; color: var(--ink-2); }
.empty-feed svg { width: 60px; height: 60px; display: block; margin: 0 auto 10px; }

@media (max-width: 640px) { .fb-post, .composer { border-radius: 0; margin-left: -16px; margin-right: -16px; } }
/* nút Tưới cây trong bài kiểu mạng xã hội: bỏ kiểu nút tròn cũ của app.css */
.fb-act.water, .fb-act.water.on { border: 0; background: none; border-radius: 8px; padding: 8px 4px; font-size: 0.9rem; }
.fb-act.water:hover { background: #f0eee6; }

/* ---------- Bản tối giản ---------- */
.feed1 { max-width: 600px; margin: 0 auto; }
.feed1-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; flex-wrap: wrap; }
.feed1-head h1 { font-size: 1.5rem; margin: 0; }
.fb-head { padding: 14px 16px 6px; }
.fb-name { display: block; }
.fb-actions { border-bottom: 0; margin: 6px 12px 0; }
.fb-act b { font-size: 0.82rem; color: var(--ink-2); font-weight: 700; }
.fb-act.water.on b { color: #2f78c4; }
.fb-comments { padding: 8px 16px 4px; }
.fb-reply { padding: 4px 16px 12px; }
.fb-post { padding-bottom: 4px; }

/* Lời động viên gọn: tên và lời trên cùng bong bóng, nút xoá nhỏ cạnh bong bóng */
.fb-c { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.fb-c .av { flex: none; }
.fb-bubble { padding: 6px 12px; font-size: 0.9rem; line-height: 1.4; max-width: 100%; }
.fb-bubble a { display: inline; font-size: 0.86rem; margin-right: 2px; }
.fb-del { border: 0; background: none; color: #b5ad9b; font-size: 1.1rem; line-height: 1; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; flex: none; }
.fb-del:hover { background: #f0eee6; color: var(--danger); }
.fb-morec { display: block; margin: 0 0 8px; font-size: 0.85rem; color: var(--ink-2); }
.fb-act.ro .cnt { font-size: 0.9rem; }
