#calendar .calendar-paint-controls #calendarUndo,#calendar .calendar-paint-controls #calendarCommentsShortcut{flex:1 1 95px}
.comment-dialog{box-sizing:border-box;width:min(92vw,560px);max-height:88vh;overflow:auto;border:0;border-radius:14px;padding:23px 18px;background:#f7faff;color:#172943;box-shadow:0 20px 50px #07172d88}
.comment-dialog::backdrop{background:#08172bbb}
.comment-dialog h3{margin:0 42px 18px 0}
.comment-dialog .close{position:absolute;top:10px;right:12px;border:0;background:none;color:#172943;font-size:30px;line-height:1;padding:4px 10px}
#calendar .comment-marker{display:inline-block;align-self:flex-start;box-sizing:border-box;max-width:100%;margin:2px 0 0;padding:2px 3px;border-radius:5px;background:#fff;color:#13294b;border:1px solid #c9d7e5;font-size:10px;font-weight:800;letter-spacing:-.5px;line-height:1;white-space:nowrap;overflow:hidden;vertical-align:middle}
#calendar .comment-marker.comment-priority-0{background:#fff5f5;border-color:#dbbec1;color:#693d46}
#calendar .comment-marker.comment-priority-1{background:#ffe9e8;border-color:#dc9ca4;color:#923b46}
#calendar .comment-marker.comment-priority-2{background:#ffcfd2;border-color:#ca6875;color:#812432}
#calendar .comment-marker.comment-priority-3{background:#c3223c;border-color:#931a30;color:#fff}
#calendar .comment-marker.comment-expired{background:#757e8a;border-color:#5b6471;color:#fff}
.comment-panel{margin-bottom:16px}
.comment-form{display:grid;gap:13px;max-width:800px}
.comment-form label,.comment-toolbar label{display:grid;gap:6px;font-weight:700;color:#23354d}
.comment-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.comment-form :is(input,select,textarea),.comment-toolbar select{box-sizing:border-box;width:100%;min-height:44px;padding:9px 10px;border:1px solid #a9bad0;border-radius:9px;background:#fff;color:#172943;font:inherit}
.comment-form textarea{min-height:95px;resize:vertical;line-height:1.4}
.comment-actions,.comment-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.comment-actions button,.comment-card-actions button,.comment-open{min-height:42px;border:1px solid #99aec7;border-radius:8px;padding:8px 12px;background:#eef3fa;color:#132d4c;font:inherit;font-weight:700}
.comment-card-actions .comment-danger{color:#a22038;background:#fff0f2;border-color:#e3b6c0}
.comment-feedback{padding:10px 12px;margin:0;border-radius:8px;background:#e3f7ed;color:#175c3c}
.comment-feedback.error{background:#ffebed;color:#9b1d35}
.comment-toolbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.comment-toolbar label{min-width:170px}
.comment-toolbar input{box-sizing:border-box;width:100%;min-height:44px;padding:9px 10px;border:1px solid #a9bad0;border-radius:9px;background:#fff;color:#172943;font:inherit}
.comment-list{max-width:800px}
.comment-date{margin:20px 0 8px;color:#173858}
.comment-date-past{color:#53606d}
.comment-card{padding:12px 14px;margin:8px 0;border:1px solid #ced9e7;border-left:4px solid #c4374c;border-radius:9px;background:#f8fbff}
.comment-card.comment-priority-0{background:#fff8f8;border-color:#ead9dd;border-left-color:#ce9ca5}
.comment-card.comment-priority-1{background:#fff1f1;border-color:#e8bec4;border-left-color:#ce7180}
.comment-card.comment-priority-2{background:#ffe7e9;border-color:#dc9ca8;border-left-color:#b63750}
.comment-card.comment-priority-3{background:#ffced5;border-color:#cb6475;border-left-color:#9e1733}
.comment-card.comment-expired{background:#5a6675;border-color:#445161;border-left-color:#303f51;color:#fff}
.comment-card.comment-expired .comment-priority-label{color:#f2f5fa}
.comment-expiry{display:block;margin:0 0 12px;font-size:13px;font-weight:700;color:#f1f4f9}
.day-interval-row.comment-expired{background:#e2e6eb;color:#4b5663}
.comment-priority-label{display:block;margin-bottom:8px;color:#912039}
.comment-body,.day-comment-details p{margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.day-comment-details{margin:14px 0;padding:12px;background:#eef3fa;border-radius:9px;color:#172943}
.day-comment-details strong{display:block;margin-bottom:8px}
@media(max-width:520px){#calendar .comment-marker{font-size:9px;letter-spacing:-.7px;padding:1px 2px}.comment-dates{grid-template-columns:1fr}.comment-card-actions button{flex:1 1 105px}}
