.comment-form textarea{box-sizing:border-box;height:46px;min-height:46px;max-height:150px;resize:none;overflow:hidden;appearance:none;-webkit-appearance:none}
.comment-form textarea::-webkit-resizer{display:none}
.comment-form footer{gap:10px;flex-wrap:wrap}
.comment-image-input{display:inline-flex;align-items:center;gap:8px;min-width:0;cursor:pointer}
.comment-image-input input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.comment-image-input span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid var(--line,#dce2ea);border-radius:8px;font-weight:700;white-space:nowrap}
.comment-image-input small{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted,#718096)}
.comment-media{display:block;width:min(520px,100%);margin:10px 0;padding:0;border:0;border-radius:12px;overflow:hidden;background:#eef2f6;cursor:zoom-in}
.comment-media img{display:block;width:100%;max-height:360px;object-fit:cover}
.media-viewer[hidden]{display:none}
.media-viewer{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:24px}
.media-viewer-backdrop{position:absolute;inset:0;border:0;background:rgba(4,10,18,.88);cursor:zoom-out}
.media-viewer section{position:relative;z-index:1;display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;width:min(1180px,100%);height:min(86vh,850px)}
.media-viewer img{display:block;grid-column:2;max-width:100%;max-height:86vh;margin:auto;object-fit:contain;border-radius:10px;box-shadow:0 22px 70px rgba(0,0,0,.45)}
.media-viewer-close,.media-viewer-prev,.media-viewer-next{border:0;color:#fff;background:rgba(255,255,255,.12);cursor:pointer}
.media-viewer-close{position:absolute;right:0;top:0;z-index:2;width:44px;height:44px;border-radius:50%;font-size:30px}
.media-viewer-prev,.media-viewer-next{width:44px;height:54px;border-radius:10px;font-size:38px}
.media-viewer-prev{grid-column:1}.media-viewer-next{grid-column:3}
body.media-viewer-open{overflow:hidden}
@media(max-width:640px){.comment-form footer>[data-comment-status]{order:3;width:100%}.media-viewer{padding:10px}.media-viewer section{grid-template-columns:38px minmax(0,1fr) 38px}.media-viewer-prev,.media-viewer-next{width:34px}}
