body.comments-open{overflow:hidden}
.comments-dialog{position:fixed;inset:16px 16px 16px auto;width:min(440px,calc(100vw - 32px));height:calc(100dvh - 32px);max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:0;padding:0;border:1px solid var(--line-color,#3e3a50);border-radius:20px;background:var(--surface,#242332);color:var(--text,#f4f1fa);font:400 14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 24px 90px #0007;overscroll-behavior:contain}
.comments-dialog::backdrop{background:#08070bb8;backdrop-filter:blur(5px)}
.comments-dialog:not([open]){display:none}
.comments-dialog [hidden]{display:none!important}
.comments-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;max-height:100%;overflow:hidden}
.comments-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:24px 24px 19px;border-bottom:1px solid var(--line-color,#3e3a50)}
.comments-kicker{margin:0 0 7px;color:var(--muted,#aaa7b7);font:400 11px/1.4 'Index Mono',monospace;text-transform:uppercase;letter-spacing:.09em}
.comments-header h2{margin:0;color:var(--text,#f4f1fa);font:600 25px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.035em}
.comments-project{margin:8px 0 0;color:var(--muted,#aaa7b7);font-size:13px;overflow-wrap:anywhere}
.comments-dialog button,.comments-dialog input,.comments-dialog textarea{font-family:inherit}
.comments-dialog button{cursor:pointer}
.comments-dialog button:focus-visible,.comments-dialog input:focus-visible,.comments-dialog textarea:focus-visible{outline:2px solid var(--accent,#beb0ff);outline-offset:3px}
.comments-close{flex:none;display:flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;margin:-5px -8px 0 0;padding:0;border:0;border-radius:12px;background:transparent;color:var(--muted,#aaa7b7);font-size:28px;line-height:1}
.comments-close:hover{background:var(--surface-2,#302d40);color:var(--text,#f4f1fa)}
.comments-stream{min-height:0;padding:18px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line-color,#3e3a50) transparent}
.comments-total{margin:0 0 15px;color:var(--muted,#aaa7b7);font:400 11px/1.4 'Index Mono',monospace;text-transform:uppercase;letter-spacing:.04em}
.comments-total:empty{display:none}
.comments-status{margin:0 0 12px;color:var(--muted,#aaa7b7);font-size:14px;line-height:1.6}
.comments-status:empty,.comment-form-status:empty{display:none}
.comments-list{list-style:none;margin:0;padding:0}
.comment-entry{margin:0;padding:0 0 21px;overflow-wrap:anywhere}
.comment-entry+.comment-entry{padding-top:20px;border-top:1px solid var(--line-color,#3e3a50)}
.comment-heading{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.comment-author{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}
.comment-name{color:var(--text,#f4f1fa);font-weight:600;font-size:14px}
.comment-you{color:var(--accent,#beb0ff);font-size:11px}
.comment-time{color:var(--muted,#aaa7b7);font-size:11px}
.comment-body{margin:10px 0 0;color:var(--text,#f4f1fa);font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.comment-actions{margin:6px 0 -8px}
.comment-delete,.comment-keep,.comment-remove{min-height:36px;border:0;background:transparent;font-size:12px;padding:6px 8px;color:var(--muted,#aaa7b7);border-radius:6px}
.comment-delete{margin-left:-8px;text-decoration:underline;text-underline-offset:3px}
.comment-delete:hover,.comment-keep:hover,.comment-remove:hover{color:var(--text,#f4f1fa);background:var(--surface-2,#302d40)}
.comment-confirm{display:flex;flex-wrap:wrap;gap:3px 8px;align-items:center;margin-top:8px;font-size:12px;color:var(--muted,#aaa7b7)}
.comment-confirm>span{flex-basis:100%}
.comment-remove{color:var(--text,#f4f1fa);border:1px solid var(--line-color,#3e3a50)}
.comments-more,.comments-retry{display:block;min-height:44px;padding:9px 15px;border:1px solid var(--line-color,#3e3a50);border-radius:10px;color:var(--text,#f4f1fa);background:transparent;font-size:13px}
.comments-more{width:100%;margin:0 0 8px}
.comments-retry{margin:10px 0 18px}
.comments-more:hover,.comments-retry:hover{background:var(--surface-2,#302d40);border-color:var(--accent,#beb0ff)}
.comment-form{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;padding:20px 24px 24px;border-top:1px solid var(--line-color,#3e3a50);background:var(--surface,#242332)}
.comment-form label{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--text,#f4f1fa);font-size:12px;font-weight:500}
.comment-form input,.comment-form textarea{display:block;width:100%;min-width:0;margin:0;padding:10px 12px;border:1px solid var(--line-color,#3e3a50);border-radius:10px;background:var(--bg,#17171f);color:var(--text,#f4f1fa);font-size:16px;line-height:1.5;font-weight:400;box-shadow:none}
.comment-form input{min-height:44px}
.comment-form textarea{min-height:86px;max-height:180px;resize:vertical}
.comment-form input::placeholder,.comment-form textarea::placeholder{color:var(--muted,#aaa7b7);opacity:1}
.comment-public-note{margin:-2px 0 0;color:var(--muted,#aaa7b7);font-size:11px;line-height:1.5}
.comment-form-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.comment-form-status{flex:1 1 130px;min-width:0;margin:0;color:var(--muted,#aaa7b7);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.comment-submit{min-height:44px;margin-left:auto;padding:10px 16px;flex-shrink:0;border:1px solid transparent;border-radius:10px;background:var(--accent,#beb0ff);color:var(--accent-ink,#211a35);font-size:13px;font-weight:600;box-shadow:inset 0 -2px 0 #0002}
.comment-submit:hover:not(:disabled){filter:brightness(1.08)}
.comment-submit:active:not(:disabled){transform:translateY(1px);box-shadow:none}
.comments-dialog .is-error{color:var(--text,#f4f1fa);border-left:2px solid var(--accent,#beb0ff);padding-left:9px}
.comments-dialog button:disabled{cursor:default;opacity:.55}
.comment-form input:disabled,.comment-form textarea:disabled{opacity:.7}
@media(max-width:640px){.comments-dialog{inset:auto 0 0;width:100%;max-width:100%;height:min(84dvh,760px);max-height:calc(100dvh - 20px);border-right:0;border-bottom:0;border-left:0;border-radius:22px 22px 0 0}.comments-header{padding:22px 20px 17px}.comments-stream{padding:18px 20px}.comment-form{padding:18px 20px max(18px,env(safe-area-inset-bottom));gap:10px}.comments-header h2{font-size:24px}.comment-delete,.comment-keep,.comment-remove{min-height:44px}.comments-dialog:before{content:'';display:block;position:absolute;top:8px;left:calc(50% - 17px);width:34px;height:3px;border-radius:2px;background:var(--line-color,#3e3a50)}}
@media(max-width:360px){.comments-header{padding-inline:16px}.comments-stream{padding-inline:16px}.comment-form{padding-inline:16px}.comment-submit{padding-inline:12px}.comments-project{font-size:12px}}
@media(max-height:560px){.comments-shell{display:block;overflow-y:auto}.comments-stream{min-height:90px;max-height:none;overflow:visible}.comment-form textarea{min-height:72px}.comments-dialog{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}}
@media(prefers-reduced-motion:reduce){.comment-submit:active:not(:disabled){transform:none}}
