.comment-tools{display:inline-flex;align-items:center;gap:6px}.comment-tools button{min-height:27px;padding:3px 9px;font-size:.7rem}.comment-tools .comment-count{font:400 .68rem/1.3 var(--mono);color:var(--muted);white-space:nowrap}.comment-tools .round-title{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comment-tools [data-comment-mode].active{background:var(--ai);border-color:var(--ai);color:#fff}.comment-mode{cursor:crosshair!important}.comment-mode *{cursor:crosshair!important}.comment-mode [data-comment-target]:hover{outline:2px solid var(--ai)!important;outline-offset:2px!important}.comment-mode [data-comment-target]{cursor:crosshair!important}.comment-mode .comment-tools,.comment-mode .comment-tools *,.comment-mode #comment-panel,.comment-mode #comment-panel *,.comment-mode dialog,.comment-mode dialog *{cursor:auto!important}.comment-mode .comment-tools button,.comment-mode #comment-panel button{cursor:pointer!important}#comment-panel{position:fixed;z-index:70;right:18px;bottom:18px;width:min(440px,calc(100vw - 36px));max-height:min(78vh,700px);overflow:auto;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #11192230;color:var(--ink)}#comment-panel h2{font:700 1.15rem/1.25 var(--display);margin:0 0 5px}#comment-panel .comment-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}#comment-panel .comment-target{font:400 .72rem/1.45 var(--mono);color:var(--muted);overflow-wrap:anywhere;margin:9px 0 14px}#comment-panel form{display:flex;flex-direction:column;gap:12px}#comment-panel label{font-size:.84rem;font-weight:500;display:flex;flex-direction:column;gap:5px}#comment-panel textarea,#comment-panel input,#comment-panel select{min-height:42px;font-size:.9rem}#comment-panel textarea{min-height:95px}#comment-panel .comment-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}#comment-panel .comment-list{display:flex;flex-direction:column;gap:10px;margin-top:14px}#comment-panel .comment-item{padding:11px;border:1px solid var(--line);border-radius:7px;font-size:.85rem}#comment-panel .comment-item p{margin:0 0 6px;overflow-wrap:anywhere}#comment-panel .comment-item small{display:block;color:var(--muted);font:400 .68rem/1.5 var(--mono);overflow-wrap:anywhere}.comment-pin{position:absolute;z-index:60;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--ai);color:white;border:2px solid white;box-shadow:0 1px 6px #0004;font:600 11px/1 var(--mono);cursor:pointer}.comment-mode #toast{pointer-events:none}@media(max-width:700px){.prototype-bar .actions{width:100%;justify-content:space-between;flex-wrap:wrap}.comment-tools{width:100%;justify-content:flex-start;flex-wrap:wrap}.comment-tools .round-title{max-width:125px}}
.prototype-bar .actions{min-width:0;flex-wrap:wrap;row-gap:7px}.comment-tools{display:flex;flex:1 0 100%;min-width:0;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 9px}.comment-tools button{flex:none}.comment-tools .comment-count{white-space:normal}.comment-tools .comment-save-state{flex:1 1 100%;font-size:.68rem;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.prototype-bar{flex-wrap:nowrap;min-width:0}.prototype-bar>span{flex:0 0 auto;white-space:nowrap}.prototype-bar .actions{flex-wrap:nowrap;min-width:0;white-space:nowrap}.comment-tools{flex:0 1 auto;width:auto;min-width:0;flex-wrap:nowrap;white-space:nowrap;gap:6px}.comment-tools .comment-save-state{flex:0 1 auto;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}@media(max-width:1050px){.prototype-bar{flex-wrap:wrap}.prototype-bar>span{white-space:normal}.prototype-bar .actions{width:100%;flex-wrap:wrap}.comment-tools{flex:1 0 100%;width:100%;flex-wrap:wrap;white-space:normal}.comment-tools .comment-save-state{flex:1 1 100%;max-width:none;white-space:normal}}
.preview-controls{display:flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap}.preview-controls .check{gap:5px;white-space:nowrap}.preview-controls select{width:auto;min-height:28px;padding:3px 22px 3px 7px;font-size:.7rem}.comment-tools{flex:0 0 auto}.comment-tools .comment-save-state{max-width:195px}
.prototype-bar .actions{margin-left:auto}.preview-controls{margin-left:auto}
