/* Tường nhà (trang cá nhân) + số liệu bài viết · 12/10/2026 · theo Sáng/Tối của app */
.tn-trang{position:fixed;inset:0;z-index:89;background:var(--c-bg,#fbf6ef);color:var(--c-text,#2a1b1b);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
.tn-trang[hidden]{display:none!important}
body.tn-mo{overflow:hidden}
.tn-ic{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tn-thanh{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;padding:calc(8px + env(safe-area-inset-top)) 10px 8px;background:color-mix(in srgb,var(--c-surface,#fff) 92%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--c-line,#ecdede)}
.tn-thanh button{width:40px;height:40px;border-radius:50%;border:0;background:var(--c-surface-2,#f3ece8);color:var(--c-text);display:grid;place-items:center;cursor:pointer}
.tn-thanh button .tn-ic{width:22px;height:22px}
.tn-thanh b{flex:1;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tn-thanh span{width:40px}
.tn-bia{height:150px;background:linear-gradient(135deg,#4a0a0a 0%,#801111 45%,#b4532a 100%);position:relative;overflow:hidden}
.tn-bia::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(255,214,140,.35),transparent 45%),radial-gradient(circle at 15% 90%,rgba(255,255,255,.12),transparent 40%)}
.tn-cho{padding:0 16px 20px;text-align:center}
.tn-dau{background:var(--c-surface,#fff);padding:0 16px 16px;text-align:center;border-bottom:8px solid var(--c-surface-2,#f3ece8)}
.tn-dau .cd-av.tn-av{width:104px;height:104px;font-size:40px;margin:-52px auto 10px;box-shadow:0 0 0 4px var(--c-surface,#fff),0 6px 18px rgba(0,0,0,.18);position:relative;z-index:1}
.tn-dau h1{margin:0;font-size:24px;line-height:1.25}
.tn-phu{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:6px;color:var(--c-text-2,#7a6565);font-size:13.5px}
.tn-vai{background:var(--c-primary-soft,#f7e9e4);color:var(--c-primary,#801111);border-radius:99px;padding:2px 10px;font-weight:600}
.tn-gt{margin:10px auto 0;max-width:460px;color:var(--c-text);font-size:15px;line-height:1.5;white-space:pre-wrap}
.tn-dem{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:16px auto 0;max-width:480px}
.tn-dem>div,.tn-dem>button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:14px;background:var(--c-surface-2,#f3ece8);border:0;font:inherit;color:inherit}
.tn-dem>button{cursor:pointer}
.tn-dem>button:active{transform:scale(.97)}
.tn-dem b{font-size:19px}
.tn-dem small{color:var(--c-text-2);font-size:12.5px}
.tn-nut{display:flex;gap:8px;max-width:480px;margin:14px auto 0}
.tn-nut button{flex:1;height:42px;border-radius:12px;border:0;font:inherit;font-weight:700;font-size:15px;cursor:pointer;background:var(--c-surface-2,#f3ece8);color:var(--c-text)}
.tn-nut button.chinh{background:var(--c-primary,#801111);color:var(--c-on-primary,#fff)}
.tn-tab{position:sticky;top:calc(57px + env(safe-area-inset-top));z-index:1;display:flex;gap:4px;padding:8px 12px;background:var(--c-surface,#fff);border-bottom:1px solid var(--c-line,#ecdede)}
.tn-tab button{flex:none;border:0;border-radius:99px;padding:8px 16px;font:inherit;font-weight:600;font-size:15px;background:transparent;color:var(--c-text-2);cursor:pointer}
.tn-tab button.on{background:var(--c-primary-soft,#f7e9e4);color:var(--c-primary,#801111)}
.tn-than{max-width:680px;margin:0 auto}
.tn-bai{border-bottom:8px solid var(--c-surface-2,#f3ece8);background:var(--c-surface,#fff)}
.tn-bai .cd-bai{border-bottom:0}
.tn-trang:not(.tn-tim) .cd-so-nut{display:none}
.tn-an{background:var(--c-warn-soft,#fff4e0);color:var(--c-warn,#9a5b00);font-size:13.5px;padding:8px 16px}
.tn-so{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;width:100%;border:0;border-top:1px dashed var(--c-line,#ecdede);background:color-mix(in srgb,var(--c-primary-soft,#f7e9e4) 55%,transparent);color:var(--c-text-2);font:inherit;font-size:13.5px;text-align:left;padding:10px 16px;cursor:pointer}
.tn-so span{display:inline-flex;align-items:center;gap:5px}
.tn-so b{color:var(--c-text);font-size:14.5px}
.tn-so em{margin-left:auto;font-style:normal;color:var(--c-primary,#801111);font-weight:600}
.tn-so-dau{display:flex;gap:12px;align-items:flex-start;padding:16px 16px 4px}
.tn-so-dau>.tn-ic{width:28px;height:28px;color:var(--c-primary,#801111);margin-top:2px}
.tn-so-dau b{display:block;font-size:17px}
.tn-so-dau small{color:var(--c-text-2);font-size:13px;line-height:1.45}
.tn-luoi{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:12px 16px}
@media (min-width:640px){.tn-luoi{grid-template-columns:repeat(3,1fr)}}
.tn-o{display:flex;flex-direction:column;gap:2px;background:var(--c-surface,#fff);border:1px solid var(--c-line,#ecdede);border-radius:16px;padding:12px 14px;min-width:0}
.tn-o-ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--c-primary-soft,#f7e9e4);color:var(--c-primary,#801111);margin-bottom:6px}
.tn-o b{font-size:24px;line-height:1.1}
.tn-o>span:not(.tn-o-ic){font-weight:700;font-size:14.5px}
.tn-o small{color:var(--c-text-2);font-size:12.5px;line-height:1.4}
.tn-h3{margin:14px 16px 8px;font-size:16px}
.tn-top{display:flex;flex-direction:column;gap:8px;padding:0 16px 16px}
.tn-top-o{display:flex;align-items:center;gap:10px;border:1px solid var(--c-line,#ecdede);background:var(--c-surface,#fff);border-radius:14px;padding:8px 10px;text-align:left;font:inherit;color:inherit;cursor:pointer}
.tn-top-o i{font-style:normal;font-weight:800;color:var(--c-primary,#801111);width:18px;text-align:center}
.tn-top-o img,.tn-top-chu{width:52px;height:52px;border-radius:10px;object-fit:cover;flex:none;background:var(--c-surface-2,#f3ece8);display:grid;place-items:center;color:var(--c-text-2);font-weight:700}
.tn-top-nd{flex:1;min-width:0}
.tn-top-nd b{display:block;font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tn-top-nd small{color:var(--c-text-2);font-size:12.5px}
.tn-hop .cd-tam{max-height:92vh;overflow-y:auto}
.tn-tk-bai{padding:4px 16px 0}
.tn-tk-bai small{color:var(--c-text-2);font-size:12.5px}
.tn-tk-bai p{margin:4px 0 0;font-size:14.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tn-thanh-tt{display:flex;flex-direction:column;gap:8px;padding:0 16px}
.tn-thanh-tt div{display:grid;grid-template-columns:78px 1fr 44px;align-items:center;gap:8px;font-size:13.5px}
.tn-thanh-tt i{height:8px;border-radius:99px;background:var(--c-surface-2,#f3ece8);overflow:hidden}
.tn-thanh-tt em{display:block;height:100%;border-radius:99px;min-width:2px}
.tn-thanh-tt b{text-align:right}
.tn-thich{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px}
.tn-thich span{display:flex;flex-direction:column;align-items:center;gap:2px;width:52px}
.tn-thich small{font-size:11.5px;color:var(--c-text-2);max-width:52px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tn-ghi{display:block;color:var(--c-text-2);font-size:12px;padding:12px 16px 8px}
/* Bảng tin: ảnh + tên tác giả bấm được, nút số liệu dưới bài của mình */
.cd-tac-gia{border:0;background:none;padding:0;cursor:pointer;border-radius:50%}
.cd-bai header .tt b[data-tuong]{cursor:pointer}
.cd-bai header .tt b[data-tuong]:hover{text-decoration:underline}
.cd-so-nut{display:flex;align-items:center;gap:6px;width:100%;border:0;background:none;color:var(--c-primary,#801111);font:inherit;font-size:13.5px;font-weight:600;padding:2px 0 8px;cursor:pointer}
.cd-so-nut .cd-ic{width:17px;height:17px}
[data-tuong-bl]{cursor:pointer}

/* 12/10 lượt 2: theo dõi, thống kê theo kỳ + biểu đồ, danh sách người, tìm kiếm */
.tn-tim{z-index:88}
.tn-theo{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;border-radius:12px;border:0;font:inherit;font-weight:700;font-size:15px;cursor:pointer;background:var(--c-primary,#801111);color:var(--c-on-primary,#fff);padding:0 14px}
.tn-theo.da{background:var(--c-surface-2,#f3ece8);color:var(--c-text)}
.tn-theo:disabled{opacity:.6}
.tn-nut .tn-ic{width:18px;height:18px}
.tn-tc{display:flex;align-items:center;gap:8px;width:100%;max-width:480px;margin:12px auto 0;border:1px dashed var(--c-line,#ecdede);border-radius:12px;background:transparent;color:var(--c-text-2);font:inherit;font-size:14px;padding:9px 12px;cursor:pointer;text-align:left}
.tn-tc b{color:var(--c-text)}
.tn-tc span{flex:1}
.tn-tc em{font-style:normal;color:var(--c-primary,#801111);font-weight:600}
.tn-ky{display:flex;gap:6px;padding:14px 16px 0}
.tn-ky button{border:1px solid var(--c-line,#ecdede);background:var(--c-surface,#fff);color:var(--c-text);border-radius:99px;padding:6px 14px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.tn-ky button.on{background:var(--c-primary,#801111);border-color:var(--c-primary,#801111);color:var(--c-on-primary,#fff)}
.tn-bd{margin:0 16px 8px;background:var(--c-surface,#fff);border:1px solid var(--c-line,#ecdede);border-radius:16px;padding:12px}
.tn-bd-chon{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.tn-bd-chon::-webkit-scrollbar{display:none}
.tn-bd-chon button{flex:none;border:0;border-radius:99px;padding:5px 11px;font:inherit;font-size:13px;font-weight:600;background:var(--c-surface-2,#f3ece8);color:var(--c-text-2);cursor:pointer}
.tn-bd-chon button.on{background:var(--c-primary-soft,#f7e9e4);color:var(--c-primary,#801111)}
.tn-bd-tong{margin:8px 2px 6px;color:var(--c-text-2);font-size:13.5px}
.tn-bd-tong b{color:var(--c-text);font-size:18px}
.tn-bd-cot{display:grid;grid-template-columns:repeat(var(--n),1fr);align-items:end;gap:3px;height:120px;border-bottom:1px solid var(--c-line,#ecdede)}
.tn-bd-cot div{height:100%;display:flex;align-items:flex-end}
.tn-bd-cot i{display:block;width:100%;min-height:2px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#b4532a,#801111)}
.tn-bd-truc{display:flex;justify-content:space-between;color:var(--c-text-2);font-size:11.5px;margin-top:4px}
.tn-ds{display:flex;flex-direction:column}
.tn-nguoi{display:flex;align-items:center;gap:10px;padding:8px 16px;border-bottom:1px solid var(--c-line,#ecdede)}
.tn-nguoi-mo{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border:0;background:none;padding:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
.tn-nguoi-mo span{min-width:0}
.tn-nguoi-mo b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tn-nguoi-mo small{color:var(--c-text-2);font-size:12.5px}
.tn-nguoi .tn-theo{flex:none;height:34px;font-size:13.5px;padding:0 12px;border-radius:10px}
.tn-ban{color:var(--c-text-2);font-size:12.5px}
.tn-hop .tn-ds .tn-nguoi{padding:8px 4px}
.tn-thich button{display:flex;flex-direction:column;align-items:center;gap:2px;width:52px;border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer}
.tn-thanh-tim{gap:6px}
.tn-o-tim{flex:1;display:flex;align-items:center;gap:6px;height:42px;border-radius:99px;background:var(--c-surface-2,#f3ece8);padding:0 6px 0 12px;color:var(--c-text-2)}
.tn-o-tim input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:16px;color:var(--c-text);outline:none}
.tn-o-tim input::-webkit-search-cancel-button{display:none}
.tn-o-tim button{width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:var(--c-text-2);display:grid;place-items:center;cursor:pointer}
.tn-gan{display:flex;flex-direction:column;padding:0 8px}
.tn-gan button{display:flex;align-items:center;gap:10px;border:0;background:none;padding:10px 8px;font:inherit;font-size:15px;color:var(--c-text);text-align:left;cursor:pointer;border-radius:10px}
.tn-gan button:hover{background:var(--c-surface-2,#f3ece8)}
.tn-gan .tn-ic{color:var(--c-text-2)}

/* ===== Ảnh bìa tường nhà (13/10) ===== */
.tn-bia.co-anh{height:clamp(150px,34vw,340px);background-size:cover;background-repeat:no-repeat;background-color:#2a1f1c}
.tn-bia.co-anh::after{background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,.28))}
.tn-bia-nut{position:absolute;right:12px;bottom:12px;z-index:2;display:inline-flex;align-items:center;gap:6px;border:0;border-radius:10px;padding:8px 12px;min-height:38px;background:rgba(255,255,255,.94);color:#2a1f1c;font:inherit;font-weight:700;font-size:14px;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.18);-webkit-tap-highlight-color:transparent}
.tn-bia-nut .tn-ic{width:18px;height:18px}
@media (max-width:420px){.tn-bia-nut span{display:none}.tn-bia-nut{padding:9px;border-radius:50%}}
.tn-bia-menu{position:absolute;right:12px;bottom:58px;z-index:3;min-width:200px;padding:6px;border-radius:14px;background:var(--c-surface,#fff);box-shadow:0 10px 32px rgba(0,0,0,.22);display:grid}
.tn-bia-menu button{display:flex;align-items:center;gap:10px;border:0;background:none;font:inherit;font-size:15px;font-weight:600;color:var(--c-text,#2a1f1c);padding:11px 12px;border-radius:10px;text-align:left;cursor:pointer}
.tn-bia-menu button:hover{background:var(--c-surface-2,#f3ece8)}.tn-bia-menu button.do{color:#b3261e}
.tn-bia-menu .tn-ic{width:19px;height:19px}
.tn-bia.dang-sua{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.tn-bia.dang-sua.dang-keo{cursor:grabbing}
.tn-bia.dang-sua::after{background:none}
.tn-bia.dang-sua .tn-bia-nut{display:none}
.tn-bia-sua{position:absolute;left:0;right:0;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,0));color:#fff;font-size:13.5px;font-weight:600}
.tn-bia-sua span{display:flex;align-items:center;gap:6px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.tn-bia-sua .tn-ic{width:17px;height:17px}
.tn-bia-sua div{display:flex;gap:8px;flex:none}
.tn-bia-sua button{border:0;border-radius:10px;min-height:36px;padding:0 14px;font:inherit;font-weight:700;font-size:14px;background:rgba(255,255,255,.92);color:#2a1f1c;cursor:pointer}
.tn-bia-sua button.chinh{background:var(--c-primary,#801111);color:#fff}
.tn-bia-sua button:disabled{opacity:.7}
/* ===== 15/10 KẾT BẠN + NHẮN TIN RIÊNG ===== */
.tn-dem{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:420px){.tn-dem small{font-size:11.5px}.tn-dem b{font-size:17px}}
.tn-nut{flex-wrap:wrap}
.tn-kb{flex:1 1 30%;min-width:96px;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:42px;padding:0 12px;border-radius:12px;border:0;font:inherit;font-weight:700;font-size:14.5px;cursor:pointer;background:var(--c-surface-2,#f3ece8);color:var(--c-text)}
.tn-kb.chinh{background:var(--c-primary,#801111);color:var(--c-on-primary,#fff)}
.tn-nut .tn-kb.nho{flex:none;min-width:0;width:42px;padding:0}
.tn-nut .tn-kb ~ .tn-theo{flex:1 1 30%;min-width:96px;background:var(--c-surface-2,#f3ece8);color:var(--c-text)}
.tn-nguoi-nut{display:flex;gap:6px;flex:none}
.tn-nguoi-nut .tn-kb{flex:none;min-width:0;height:34px;font-size:13.5px;padding:0 12px;border-radius:10px}
/* lớp tin nhắn: đầu cố định, thân cuộn, ô gõ dưới cùng */
.tn-trang.tnn{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
.tn-trang.tnn[hidden]{display:none!important}
.tnn-thanh{flex:none}
.tnn-thanh .tnn-ai{flex:1;min-width:0;width:auto;height:auto;border-radius:12px;background:none;display:flex;align-items:center;gap:10px;text-align:left;font:inherit;color:inherit;padding:2px 4px}
.tnn-ai span{min-width:0;display:flex;flex-direction:column}.tnn-ai b{font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tnn-ai small{font-size:12px;color:var(--c-text-2)}
.tnn-hop{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 0 calc(16px + env(safe-area-inset-bottom))}
.tnn-tab{padding:12px 16px 4px}.tnn-so{display:inline-block;min-width:18px;padding:0 5px;border-radius:99px;background:#EF4444;color:#fff;font:700 11px/18px system-ui,sans-serif;font-style:normal;margin-left:4px}
.tnn-ghi{margin:6px 16px 0;font-size:13px;color:var(--c-text-2)}
.tnn-loi-moi{margin:10px 16px 0;width:calc(100% - 32px)}
.tnn-ds{padding:6px 8px}
.tnn-dong{display:flex;align-items:center;gap:12px;width:100%;padding:10px 8px;border:0;border-radius:12px;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}
.tnn-dong:hover{background:var(--c-surface-2,#f3ece8)}
.tnn-dong-nd{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.tnn-dong-nd b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.tnn-dong-nd small{font-size:13.5px;color:var(--c-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tnn-dong.moi .tnn-dong-nd b,.tnn-dong.moi .tnn-dong-nd small{font-weight:800;color:var(--c-text)}
.tnn-dong-luc{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:12px;color:var(--c-text-2)}
.tnn-dong-luc i{width:10px;height:10px;border-radius:50%;background:var(--c-primary,#801111)}
.tnn-than{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:12px 12px 8px;display:flex;flex-direction:column;gap:2px}
.tnn-ngay{align-self:center;font-size:12px;color:var(--c-text-2);margin:12px 0 6px}.tnn-ngay.nho{margin:8px 0 4px}
.tnn-tin{display:flex;flex-direction:column;align-items:flex-start;max-width:78%;margin:1px 0}
.tnn-tin.toi{align-self:flex-end;align-items:flex-end}
.tnn-bong{padding:8px 12px;border-radius:18px;background:var(--c-surface-2,#f3ece8);color:var(--c-text);font-size:15px;line-height:1.42;overflow-wrap:anywhere}
.tnn-tin.toi .tnn-bong{background:var(--c-primary,#801111);color:var(--c-on-primary,#fff)}
.tnn-anh-ds{display:grid;gap:3px;margin-bottom:3px;max-width:260px}.tnn-anh-ds.n2{grid-template-columns:1fr 1fr}
.tnn-anh{border:0;padding:0;background:none;cursor:zoom-in;display:block}
.tnn-anh img{display:block;width:100%;height:auto;max-height:300px;object-fit:cover;border-radius:14px}
.tnn-da-xem{align-self:flex-end;font-size:11.5px;color:var(--c-text-2);margin:2px 6px 0}
.tnn-dai{margin:4px 0 10px;padding:10px 12px;border-radius:12px;background:#fff3cd;color:#5a3d00;font-size:13.5px;line-height:1.45}
.tnn-dai button,.tnn-khoa button{margin-left:8px;border:0;border-radius:99px;padding:4px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;background:#fff;color:#8c1d18}
.tnn-chao{margin:auto;padding:24px 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--c-text-2)}.tnn-chao b{color:var(--c-text);font-size:17px}
.tnn-nhap{flex:none;border-top:1px solid var(--c-line,#ecdede);background:var(--c-surface,#fff);padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
.tnn-hang{display:flex;align-items:flex-end;gap:8px}
.tnn-hang textarea{flex:1;min-width:0;resize:none;border:1px solid var(--c-line,#ecdede);border-radius:20px;padding:9px 14px;font:inherit;font-size:15px;line-height:1.35;max-height:140px;background:var(--c-bg,#fbf6ef);color:var(--c-text)}
.tnn-nut{flex:none;width:40px;height:40px;border-radius:50%;border:0;display:grid;place-items:center;background:var(--c-surface-2,#f3ece8);color:var(--c-primary,#801111);cursor:pointer}
.tnn-nut .tn-ic{width:21px;height:21px}.tnn-nut.gui{background:var(--c-primary,#801111);color:var(--c-on-primary,#fff)}.tnn-nut:disabled{opacity:.5}
.tnn-xem-anh{display:flex;gap:8px;flex-wrap:wrap}.tnn-xem-anh:not(:empty){margin:4px 0 8px}
.tnn-xem-anh span{position:relative}.tnn-xem-anh img{width:64px;height:64px;object-fit:cover;border-radius:10px;display:block}
.tnn-xem-anh button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#2a1b1b;color:#fff;display:grid;place-items:center;cursor:pointer;padding:0}.tnn-xem-anh button .tn-ic{width:12px;height:12px}
.tnn-khoa{flex:none;padding:12px 16px calc(12px + env(safe-area-inset-bottom));text-align:center;color:var(--c-text-2);font-size:14px;border-top:1px solid var(--c-line,#ecdede);background:var(--c-surface,#fff)}
.tnn-thanh .tnn-ai span{width:auto;flex:1}.tnn-thanh .tnn-ai .cd-av{flex:none;width:36px;height:36px}
.tnn-chao .cd-av{width:72px;height:72px;font-size:28px}
/* 15/10 lần 2: nút trên trang cá nhân xếp 2 hàng gọn ở khổ điện thoại (Kết bạn + Nhắn tin · Theo dõi + ⋯), chữ không gãy dòng */
.tn-nut .tn-kb,.tn-nut .tn-kb ~ .tn-theo{flex:1 1 40%;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tn-nut .tn-kb.nho{flex:0 0 42px}
.tnn-hang textarea{min-height:0;height:40px}
/* 15/10 lần 2: tin thoại · tin thu hồi · menu một tin · hộp báo cáo · gợi ý kết bạn */
.tnn-hang{position:relative}
.tnn-hang .zl-ghi{border-radius:20px;background:var(--c-surface,#fff)}
.tnn-bong.tnn-thoai{padding:0;background:var(--c-surface-2,#f3ece8)}
.tnn-tin.toi .tnn-bong.tnn-thoai{background:var(--c-primary,#801111);color:var(--c-on-primary,#fff)}
.tnn-tin.toi .zl-thoai button{background:#fff;color:var(--c-primary,#801111)}
.tnn-tin.thu .zl-thu{color:var(--c-text-2,#75655f)}
.tnn-tin[data-tnn-tin]{cursor:pointer}
@media (pointer:coarse){.tnn-tin[data-tnn-tin]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}}
.tnn-bc{padding:4px 16px 16px;display:grid;gap:10px}
.tnn-bc p{margin:0;color:var(--c-text-2,#75655f);font-size:14px;line-height:1.45}
.tnn-bc-ds{display:grid;gap:6px}
.tnn-bc-o{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--c-line,#ecdede);border-radius:12px;font-size:15px;cursor:pointer;background:var(--c-surface,#fff)}
.tnn-bc-o input{width:18px;height:18px;margin:0;accent-color:var(--c-primary,#801111);flex:none}
.tnn-bc textarea{width:100%;box-sizing:border-box;min-height:0;resize:vertical;border:1px solid var(--c-line,#ecdede);border-radius:12px;padding:10px 12px;font:inherit;font-size:15px;background:var(--c-bg,#fbf6ef);color:var(--c-text)}
.tnn-bc .cd-dang{width:100%}
.tn-ky{overflow-x:auto;scrollbar-width:none}.tn-ky::-webkit-scrollbar{display:none}.tn-ky button{flex:none}
.gy-dai{margin:12px 0;padding:14px 0 14px 14px;border-radius:16px;background:var(--c-surface,#fff);border:1px solid var(--c-line,#ecdede)}
.gy-dau{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-right:14px;margin-bottom:10px}
.gy-dau b{font-size:16px}
.gy-dau button{border:0;background:transparent;color:var(--c-primary,#801111);font:inherit;font-size:14px;font-weight:700;cursor:pointer;padding:4px 0}
.gy-ds{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding-right:14px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.gy-ds::-webkit-scrollbar{display:none}
.gy-the{position:relative;flex:0 0 150px;scroll-snap-align:start;display:flex;flex-direction:column;align-items:stretch;border:1px solid var(--c-line,#ecdede);border-radius:14px;padding:14px 10px 10px;background:var(--c-bg,#fbf6ef)}
.gy-mo{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:center;min-width:0}
.gy-mo .cd-av{width:72px;height:72px;font-size:28px}
.gy-mo b{font-size:14.5px;line-height:1.25;max-width:100%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gy-mo small{font-size:12.5px;color:var(--c-text-2,#75655f);min-height:16px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gy-kb{margin-top:10px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:10px;min-height:36px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;background:var(--c-primary,#801111);color:var(--c-on-primary,#fff)}
.gy-kb.da{background:var(--c-surface-2,#f3ece8);color:var(--c-text,#2a1b1b)}
.gy-kb .tn-ic{width:17px;height:17px}
.gy-an{position:absolute;top:6px;right:6px;width:26px;height:26px;border-radius:50%;border:0;display:grid;place-items:center;background:rgba(0,0,0,.06);color:var(--c-text-2,#75655f);cursor:pointer;padding:0}
.gy-an .tn-ic{width:14px;height:14px}
