/* 🖼️ Ảnh đại diện của tôi — kho-anh-toi.js (30/10/2026). Tấm trượt từ dưới theo phong cách iOS: thẻ bo góc, nút viên thuốc.
   Màu theo token của app (--v3-*) khi có, không thì rơi về gam kem/chu sa của kho. Chế độ tối: html.v3-toi. */
.tna-anh { --tna-k: 44px; width: var(--tna-k); height: var(--tna-k); flex: 0 0 var(--tna-k); box-sizing: border-box; border-radius: 50%; border: 0; padding: 0;
  background: var(--oliu, #5f6e33); color: #fff; font-weight: 800; font-size: calc(var(--tna-k) * .34); display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; box-shadow: 0 0 0 2px var(--kem-sang, #fffdf6), 0 0 0 3.5px var(--oliu, #5f6e33); }
.tna-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tna-anh img[hidden], .tna-anh span[hidden] { display: none; }
.tna-anh span { font-size: calc(var(--tna-k) * .42); line-height: 1; }

/* hàng "Ảnh đại diện" ở tab Của tôi */
.v3-dong.v3-hs .tna-anh { --tna-k: 52px; margin-right: 2px; }
.v3-dong.v3-hs { padding-top: 12px; padding-bottom: 12px; }

html.tna-khoa-cuon, html.tna-khoa-cuon body { overflow: hidden; }
.tna-nen { --tna-giay: #FFFCF6; --tna-giay2: #F1E9DA; --tna-chu: #1F1B16; --tna-mo: #6E6558; --tna-vien: rgba(70, 48, 24, .14); --tna-son: #A8452F;
  position: fixed; inset: 0; z-index: 210; background: rgba(24, 18, 10, .46); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; animation: tnaNen .2s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Roboto, "Segoe UI", sans-serif; }
html.v3-toi .tna-nen { --tna-giay: #2A2620; --tna-giay2: #38332B; --tna-chu: #F1ECE2; --tna-mo: #B9B1A2; --tna-vien: rgba(255, 245, 225, .16); --tna-son: #E0735B; }
.tna-hop { width: 100%; max-width: 440px; max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
  background: var(--tna-giay); color: var(--tna-chu); border-radius: 26px 26px 0 0; padding: 8px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: tnaHop .3s cubic-bezier(.34, 1.3, .64, 1); text-align: center; }
@media (min-width: 600px) { .tna-nen { align-items: center; } .tna-hop { border-radius: 26px; padding-bottom: 20px; } }
@keyframes tnaNen { from { opacity: 0; } to { opacity: 1; } }
@keyframes tnaHop { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tna-nen, .tna-hop { animation: none; } }
.tna-keo { width: 40px; height: 5px; border-radius: 3px; background: var(--tna-vien); margin: 4px auto 10px; }
.tna-tieu { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.tna-muc { margin: 18px 0 10px; font-size: 14px; font-weight: 700; color: var(--tna-mo); text-align: left; }
.tna-xem { display: flex; justify-content: center; margin: 4px 0 16px; }
.tna-xem .tna-anh { box-shadow: 0 0 0 3px var(--tna-giay), 0 0 0 5px var(--tna-son), 0 8px 22px rgba(60, 40, 20, .22); }
.tna-ghi { margin: 4px 0 12px; font-size: 15px; line-height: 1.5; color: var(--tna-mo); }
.tna-ghi.nho { font-size: 13px; margin: 12px 0 4px; }
.tna-tep { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.tna-nut { display: flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; min-height: 50px; margin-top: 10px; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid var(--tna-vien); background: var(--tna-giay); color: var(--tna-chu); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.4, .64, 1); }
.tna-nut:active { transform: scale(.97); }
.tna-nut.chinh { background: var(--tna-son); border-color: transparent; color: #fff; }
html.v3-toi .tna-nut.chinh { color: #14171C; }
.tna-hang { display: flex; gap: 10px; }
.tna-hang .tna-nut { flex: 1; }
.tna-lien { display: block; margin: 8px auto 0; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--tna-mo); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }

.tna-luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 2px; }
.tna-mau { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px var(--tna-vien); transition: transform .18s cubic-bezier(.34, 1.4, .64, 1); }
.tna-mau img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tna-mau:active { transform: scale(.92); }
.tna-mau.on { box-shadow: 0 0 0 3px var(--tna-giay), 0 0 0 5.5px var(--tna-son); }

/* khung cắt tròn */
.tna-giua { display: flex; justify-content: center; margin: 6px 0 8px; }
.tna-khung { position: relative; overflow: hidden; border-radius: 18px; background: #111; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.tna-khung:active { cursor: grabbing; }
.tna-cat { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; pointer-events: none; -webkit-user-drag: none; }
.tna-che { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent calc(50% - 1.5px), rgba(255, 255, 255, .95) calc(50% - 1.5px), rgba(255, 255, 255, .95) 50%, rgba(10, 8, 5, .55) 50%); }
.tna-tru { width: 100%; max-width: 280px; margin: 8px auto 6px; display: block; accent-color: var(--tna-son); height: 32px; }

/* chip "có tính năng mới" của hướng dẫn (z 9999) không được đè lên nút của tấm này */
html.tna-khoa-cuon .tnhd-moi, html.tna-khoa-cuon .tnhd-nut { display: none !important; }
