.diary-entry-actions{height:27px;min-height:27px;margin-top:8px;border-top:1px solid #ededed;display:flex;align-items:center}
.diary-entry-actions button{height:26px;padding:2px 8px 2px 0;gap:6px;color:#777;font-size:7px;letter-spacing:.09em;text-transform:uppercase;align-items:center}
.diary-entry-actions svg{display:none}
.diary-entry-actions button:before{content:"";display:block;width:15px;height:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7 4 12l5 5M5 12h8.5a5.5 5.5 0 0 1 5.5 5.5V19' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7 4 12l5 5M5 12h8.5a5.5 5.5 0 0 1 5.5 5.5V19' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;color:#666}
.diary-comments small{letter-spacing:.08em}.diary-comments small:first-letter{color:#999}.diary-comments p{white-space:pre-wrap}
.diary-entry-actions button span:empty:after{content:"Reply"}
.diary-entry-actions button span:not(:empty):before{content:"Reply · "}
.diary-mention-list{padding:12px 10px 10px;border-radius:12px;max-height:280px;overflow-y:auto}
.diary-mention-list section+section{margin-top:13px;padding-top:11px;border-top:1px solid #ededed}
.diary-mention-list section>strong{display:block;margin:0 2px 8px;font-size:7px;letter-spacing:.16em;color:#999}
.diary-mention-list section>div{display:flex;gap:11px;overflow-x:auto;scrollbar-width:none}
.diary-mention-list section>div::-webkit-scrollbar{display:none}
.diary-mention-list section button{flex:0 0 58px;width:58px;height:auto;padding:0;display:grid;justify-items:center;gap:5px;background:transparent;text-align:center}
.diary-mention-avatar{width:42px;height:42px;border-radius:50%;background:#efefed;color:#555;display:grid;place-items:center;overflow:hidden;font-size:12px}
.diary-mention-avatar img{width:100%;height:100%;object-fit:cover}
.diary-mention-list section button small{display:block;width:58px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;color:#555}
.diary-mention-list section button:hover{background:transparent}
.diary-mention-list section button:hover .diary-mention-avatar{box-shadow:0 0 0 2px #aaa}

/* Collapsed Reply stays as one compact ruled row, matching its open state. */
.diary-entry{padding-bottom:0}
.diary-entry-actions{box-sizing:border-box;height:30px;min-height:30px;margin:8px 0 0;border-top:1px solid #ededed;border-bottom:0}
.diary-entry-actions button{height:29px;padding:0 6px 0 0}
.diary-comment-box{margin:0;padding:10px 0 12px}
.diary-comments+ .diary-comment-box{border-top:0}

/* Photo removal belongs to the caption, not on top of the photo. */
.diary-photo-preview>button{top:auto;right:8px;bottom:3px;width:auto;height:22px;padding:0 3px;border:0;border-radius:0;background:transparent;color:#777;box-shadow:none;font-size:8px;letter-spacing:.08em;text-transform:uppercase}
.diary-photo-preview>button:before{content:"Remove";font:500 8px/1 ui-sans-serif,-apple-system,sans-serif}
.diary-photo-preview>button:hover{color:#222;background:transparent}
