/* ===================== NHẬT KÝ (.dy-) ===================== */
.dy-root { height: 100%; background: var(--bg); }
.dy-scroll { height: 100%; overflow-y: auto; }
.dy-col { max-width: 640px; margin: 0 auto; padding: 20px 14px 40px; display: flex; flex-direction: column; gap: 14px; }
.dy-top { display: flex; flex-direction: column; gap: 14px; }
.dy-profile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.dy-profile small { color: var(--text-3); }
.dy-back { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); font-weight: 600; width: 100%; }
.dy-compose, .dy-post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 14px; box-shadow: var(--shadow-1); }
.dy-compose__row { display: flex; gap: 12px; }
.dy-ta { flex: 1; resize: none; border: 0; outline: 0; background: var(--surface-2); border-radius: var(--r-lg); padding: 11px 14px; color: var(--text); min-height: 46px; }
.dy-compose__bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.dy-spacer { flex: 1; }
.dy-tool { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); color: var(--success); font-weight: 600; font-size: var(--fs-sm); }
.dy-tool:hover { background: var(--hover); }
.dy-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0 56px; }
.dy-thumb { position: relative; width: 76px; height: 76px; border-radius: var(--r-md); overflow: hidden; }
.dy-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dy-thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .55); display: grid; place-items: center; }
.dy-feed { display: flex; flex-direction: column; gap: 14px; }
.dy-post__head { display: flex; align-items: center; justify-content: space-between; }
.dy-post__who { display: flex; align-items: center; gap: 12px; text-align: left; }
.dy-post__who span { display: flex; flex-direction: column; line-height: 1.3; }
.dy-post__who small { color: var(--text-3); display: inline-flex; gap: 4px; align-items: center; }
.dy-post__text { margin: 12px 2px 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.55; font-size: var(--fs-md); }
.dy-gallery { display: grid; gap: 4px; margin-top: 10px; border-radius: var(--r-lg); overflow: hidden; }
.dy-gallery.n1 { grid-template-columns: 1fr; } .dy-gallery.n2, .dy-gallery.n4 { grid-template-columns: 1fr 1fr; } .dy-gallery.n3 { grid-template-columns: 2fr 1fr 1fr; }
.dy-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-3); }
.dy-gallery.n1 .dy-img { aspect-ratio: auto; max-height: 460px; }
.dy-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur); }
.dy-img:hover img { transform: scale(1.03); }
.dy-stats { display: flex; justify-content: space-between; padding: 10px 4px 0; color: var(--text-3); font-size: var(--fs-sm); }
.dy-stats .kit-icon { color: #ef4466; vertical-align: -2px; }
.dy-actions { display: flex; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.dy-act { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 38px; border-radius: var(--r-md); color: var(--text-2); font-weight: 600; }
.dy-act:hover { background: var(--hover); }
.dy-act.is-on { color: #ef4466; }
.dy-comments { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.dy-comment { display: flex; gap: 8px; }
.dy-comment__body { background: var(--surface-2); padding: 8px 12px; border-radius: var(--r-lg); display: flex; flex-direction: column; font-size: var(--fs-sm); min-width: 0; }
.dy-comment__body strong { cursor: pointer; }
.dy-comment__body span { word-break: break-word; }
.dy-comment__body small { color: var(--text-3); display: flex; gap: 10px; }
.dy-comment__body small button { color: var(--text-3); } .dy-comment__body small button:hover { color: var(--danger); }
.dy-comment-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.dy-comment-input { flex: 1; height: 38px; padding: 0 14px; border-radius: var(--r-pill); border: 0; outline: 0; background: var(--surface-2); color: var(--text); }
.dy-comment-input:focus { box-shadow: 0 0 0 2px var(--accent); }

/* ===== Ảnh bìa trang cá nhân (kiểu Zalo / Facebook) ===== */
.dy-hero { margin: -20px -14px 0; background: var(--surface); border-bottom: 1px solid var(--border); border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
.dy-hero__cover { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 300px; background: linear-gradient(135deg, var(--accent-2), var(--accent-strong)); overflow: hidden; }
.dy-hero__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; -webkit-user-drag: none; }
.dy-hero__cover::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 80px; background: linear-gradient(rgba(0,0,0,.35), transparent); pointer-events: none; }
.dy-hero__back { position: absolute; z-index: 2; top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.dy-hero__body { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px 18px; margin-top: -48px; text-align: center; }
.dy-hero__bubble { position: relative; max-width: 80%; margin-bottom: 8px; padding: 7px 14px; border-radius: 18px; background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); box-shadow: var(--shadow-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-hero__avatar { border-radius: 50%; padding: 4px; background: var(--surface); box-shadow: 0 2px 10px rgba(0,0,0,.18); line-height: 0; }
.dy-hero__name { margin: 10px 0 0; font-size: var(--fs-xl); font-weight: 700; word-break: break-word; }
.dy-hero__bio { margin: 6px 0 0; color: var(--text-2); line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.dy-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; }
.dy-hero__more { padding: 0 12px; height: 40px; color: var(--accent); font-weight: 600; }
@media (max-width: 720px) { .dy-hero__cover { aspect-ratio: 16 / 10; } .dy-hero__body { margin-top: -56px; } }
