/* shared styles for the topics + per-topic comments renderer */
.t-section{margin-bottom:26px;}
.t-section h3{font-size:17px;font-weight:800;color:#00466b;margin-bottom:12px;display:flex;align-items:center;gap:10px;}
.t-bar{width:5px;height:19px;border-radius:3px;background:#005e90;}
.t-empty{color:#7c8597;font-size:13.5px;font-style:italic;margin-bottom:10px;}
.t-q{background:#fff;border:1px solid #e9edf6;border-radius:14px;padding:14px 16px;margin-bottom:11px;box-shadow:0 3px 12px rgba(30,45,80,.05);}
.t-subj{font-size:15.5px;font-weight:700;color:#1c2433;line-height:1.35;margin-bottom:9px;}
.t-subjin{width:100%;font-size:15.5px;font-weight:700;color:#1c2433;border:1px solid #e3e6ef;border-radius:9px;padding:9px 11px;margin-bottom:9px;font-family:inherit;}
.t-q textarea{width:100%;min-height:70px;resize:vertical;border:1px solid #e3e6ef;border-radius:9px;padding:9px 11px;font-size:14px;font-family:inherit;color:#1c2433;line-height:1.5;background:#fcfdff;}
.t-q textarea:focus,.t-subjin:focus{outline:none;border-color:#1b7fb5;box-shadow:0 0 0 3px rgba(27,127,181,.12);}
.t-row{display:flex;align-items:center;gap:8px;margin-top:9px;flex-wrap:wrap;}
.t-btn{font-size:13px;font-weight:700;padding:8px 14px;border-radius:9px;cursor:pointer;border:1px solid transparent;}
.t-btn.primary{background:#005e90;color:#fff;}.t-btn.primary:hover{background:#0a4d74;}
.t-btn.soft{background:#f1f4f9;color:#4a5468;}.t-btn.soft:hover{background:#e7ebf3;}
.t-btn.del{margin-left:auto;background:#fff;color:#b23b3b;border-color:#e7b4b4;}.t-btn.del:hover{background:#fdf1f1;}
.t-status{font-size:12.5px;font-weight:700;}.t-status.ok{color:#2f7d2a;}.t-status.err{color:#c0392b;}
.t-add{background:#fff;color:#005e90;border:1.5px dashed #9fc0dd;font-size:13px;font-weight:700;padding:9px 14px;border-radius:9px;cursor:pointer;}
.t-add:hover{background:#f3f8fc;}
.t-banner{background:#fdecea;border:1px solid #f5c6c0;color:#9b2c22;padding:12px 14px;border-radius:10px;font-size:13.5px;}
/* per-topic comments */
.t-cmts{margin-top:11px;border-top:1px solid #eef1f6;padding-top:9px;}
.t-cmt-toggle{background:none;border:none;color:#56627a;font-size:12.5px;font-weight:700;cursor:pointer;padding:0;}
.t-cmt-toggle:hover{color:#005e90;}
.t-cmt-body{margin-top:9px;}
.t-cmt-list{margin-bottom:9px;}
.t-cmt-empty{font-size:12.5px;color:#9aa3b2;font-style:italic;}
.t-cmt-item{background:#f6f8fc;border:1px solid #e9edf6;border-radius:10px;padding:8px 11px;margin-bottom:7px;}
.t-cmt-name{font-size:12.5px;font-weight:800;color:#00466b;margin-right:8px;}
.t-cmt-time{font-size:10.5px;color:#9aa3b2;}
.t-cmt-text{font-size:13px;color:#28324a;line-height:1.45;white-space:pre-wrap;word-wrap:break-word;margin-top:2px;}
.t-cmt-ta{width:100%;min-height:46px;resize:vertical;border:1px solid #e3e6ef;border-radius:9px;padding:8px 11px;font-size:13px;font-family:inherit;}
.t-cmt-name-in{flex:1;border:1px solid #e3e6ef;border-radius:9px;padding:8px 11px;font-size:13px;font-family:inherit;}
@media print{.t-cmts,.t-row .t-btn,.t-add,.t-cmt-toggle{display:none !important;}.t-q{break-inside:avoid;}}
/* rich-text editor */
.rte-wrap{margin-top:2px;}
.rte-toolbar{display:none;flex-wrap:wrap;gap:4px;padding:6px;background:#f1f4f9;border:1px solid #e3e6ef;border-bottom:none;border-radius:9px 9px 0 0;}
.rte-toolbar.open{display:flex;}
.rte-b{min-width:30px;height:28px;border:1px solid #d8dee9;background:#fff;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;color:#3a455c;line-height:1;}
.rte-b:hover{background:#eef2f7;}
.rte-editor{min-height:74px;border:1px solid #e3e6ef;border-radius:9px;padding:10px 12px;font-size:14px;line-height:1.5;color:#1c2433;background:#fcfdff;overflow:auto;}
.rte-toolbar.open + .rte-editor{border-radius:0 0 9px 9px;}
.rte-editor:focus{outline:none;border-color:#1b7fb5;box-shadow:0 0 0 3px rgba(27,127,181,.12);}
.rte-editor:empty:before{content:attr(data-ph);color:#9aa3b2;}
.rte-editor img{max-width:100%;height:auto;border-radius:6px;margin:4px 0;display:block;}
.rte-bar{display:flex;align-items:center;gap:10px;margin-top:5px;}
.rte-toggle{background:none;border:none;color:#005e90;font-size:12px;font-weight:700;cursor:pointer;padding:0;}
.rte-toggle:hover{text-decoration:underline;}
.rte-hint{font-size:11px;color:#9aa3b2;}
/* comment rich body + actions */
.t-cmt-text img{max-width:100%;height:auto;border-radius:6px;margin:4px 0;display:block;}
.t-cmt-actions{display:flex;gap:12px;margin-top:6px;}
.t-cmt-act{background:none;border:none;padding:0;color:#8a93a6;font-size:11.5px;font-weight:700;cursor:pointer;}
.t-cmt-act:hover{color:#005e90;}.t-cmt-act.del:hover{color:#c0392b;}
