.topic-staff-tools { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 22px; padding:14px 18px; border:1px solid #bed9eb; border-left:4px solid #0071bc; background:#f0f8fc; border-radius:5px; }
.topic-staff-tools > div { display:grid; gap:4px; }
.topic-staff-tools span { color:#21465e; font-size:13px; }
.topic-staff-tools small { color:#526c7e; font-size:12px; }
.topic-staff-tools button { flex:none; padding:10px 16px; color:#fff; background:#0071bc; border:1px solid #00619f; border-radius:5px; font:600 14px/1.4 inherit; cursor:pointer; }
.topic-editor { color:#183b56; min-width:0; font-family:"Segoe UI",sans-serif; }
.topic-editor-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin:0 0 26px; padding:0 0 20px; border-bottom:1px solid #d6e3ec; }
.topic-editor-language { font-size:15px; font-weight:700; color:#0064a7; }
.topic-editor-header p { max-width:72ch; margin:8px 0 0; font-size:13px; line-height:1.6; }
.topic-editor-status { flex:none; padding:7px 10px; border:1px solid #bfd7e7; border-radius:4px; color:#22516f; background:#f4f9fc; font-size:12px; }
.topic-editor-fields { display:grid; gap:17px; }
.topic-editor-field { display:grid; gap:7px; min-width:0; color:#26495f; font-size:13px; font-weight:600; }
.topic-editor-field b { color:#0071bc; }
.topic-editor :is(input:not([type=checkbox]),textarea,select) { box-sizing:border-box; width:100%; min-width:0; padding:11px 13px; border:1px solid #b8cedd; border-radius:5px; color:#17354b; background:#fff; font:400 15px/1.65 "Segoe UI",sans-serif; }
.topic-editor textarea { resize:vertical; min-height:84px; }
.topic-editor :is(button,input,select,textarea):focus-visible,.topic-staff-tools button:focus-visible { outline:3px solid #0071bc; outline-offset:3px; }
.topic-editor button { border:1px solid #bdd0df; padding:8px 12px; border-radius:5px; background:#fff; color:#164b70; font:600 13px/1.5 "Segoe UI",sans-serif; cursor:pointer; }
.topic-editor button:hover:not(:disabled) { background:#e8f4fb; border-color:#0071bc; }
.topic-editor button:disabled { opacity:.42; cursor:default; }
.topic-editor-list { margin:7px 0 12px; min-width:0; }
.topic-editor-list-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.topic-editor-list-heading h3 { margin:0; font-size:16px; color:#164463; }
.topic-editor-list-heading small { padding-left:8px; color:#6a8599; font-weight:400; }
.topic-editor-list.is-quiz > .topic-editor-list-heading { padding:12px 16px; background:#e8f5e9; border:1px solid #bddcc3; border-radius:6px; }
.topic-editor-list.is-quiz > .topic-editor-list-heading h3 { color:#245a38; }
.topic-editor-list.is-quiz > .topic-editor-item > summary { background:#e8f5e9; color:#245a38; }
.topic-editor-list.is-quiz > .topic-editor-item > summary > span { color:#245a38; }
.topic-editor-item { margin:10px 0; border:1px solid #cfdee8; border-radius:7px; background:#fff; min-width:0; }
.topic-editor-item summary { display:flex; gap:14px; padding:17px; color:#193d58; cursor:pointer; list-style:none; }
.topic-editor-item summary::-webkit-details-marker { display:none; }
.topic-editor-item summary::after { content:'+'; margin-left:auto; color:#0071bc; }
.topic-editor-item[open]>summary::after { content:'−'; }
.topic-editor-item summary>span { color:#0071bc; font-size:13px; font-variant-numeric:tabular-nums; }
.topic-editor-item summary strong { font-size:14px; font-weight:600; line-height:1.6; overflow-wrap:anywhere; }
.topic-editor-item[open]>summary { border-bottom:1px solid #e1ebf1; background:#f5f9fc; }
.topic-editor-item-body { padding:18px; }
.topic-editor-item-actions { display:flex; justify-content:flex-end; gap:5px; margin-bottom:13px; }
.topic-editor-item-actions button { min-width:32px; padding:4px 9px; font-size:17px; }
.topic-editor .te-remove { color:#8e3a37; }
.topic-editor-simple { display:grid; grid-template-columns:25px minmax(0,1fr) auto; align-items:start; gap:10px; margin:12px 0; padding:12px 0; border-top:1px solid #e2ebf1; }
.topic-editor-simple .topic-editor-item-actions { margin-top:27px; }
.te-index { color:#6a8599; font-size:12px; padding-top:35px; }
.topic-editor-answer,.topic-editor-table { border:1px solid #cadfeb; border-radius:6px; padding:16px; min-width:0; background:#f6fbfe; }
.topic-editor-answer legend,.topic-editor-table legend { font-weight:600; font-size:13px; padding:0 7px; }
.topic-editor-order { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.topic-editor-order label { display:grid; gap:6px; font-size:13px; }
.topic-editor-choice { display:flex; align-items:flex-start; gap:10px; margin:10px 0; font-size:14px; }
.topic-editor-choice input { margin-top:4px; accent-color:#0071bc; }
.topic-editor-bottom { margin-top:30px; padding-top:22px; border-top:1px solid #d6e3ec; }
.topic-editor .topic-editor-notice { font-size:13px; color:#526c7e; }
.topic-editor-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.topic-editor button.te-save { padding:12px 20px; background:#0071bc; color:#fff; border-color:#0065a8; }
.topic-editor button.te-save:hover { background:#005c99; }
.topic-editor button.te-submit-review { padding:12px 18px; color:#fff; background:#087b87; border-color:#087b87; }
.topic-editor button.te-submit-review:hover { background:#075f69; }
.topic-editor .te-reset { margin-left:auto; font-weight:400; }
.topic-editor .topic-editor-error { color:#9b2424; padding:12px 15px; background:#fff2ef; border:1px solid #e2aba3; border-radius:5px; font-size:14px; }
.topic-editor [hidden] { display:none; }
.topic-editor-rich-group { min-width:0; display:grid; gap:0; }
.topic-editor-rich-label { margin-bottom:7px; color:#26495f; font-size:13px; font-weight:600; }
.topic-editor-rich-label b { color:#0071bc; }
.topic-editor-rich-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:4px; padding:7px 9px; border:1px solid #b8cedd; border-bottom:0; border-radius:5px 5px 0 0; background:#f4f8fb; }
.topic-editor .topic-editor-rich-toolbar button { min-width:31px; min-height:31px; padding:3px 7px; line-height:1.3; border-color:transparent; background:transparent; font-size:15px; }
.topic-editor-rich-toolbar .te-bold { font-weight:800; }
.topic-editor-rich-toolbar .te-italic { font-style:italic; }
.topic-editor-rich-toolbar .te-underline { text-decoration:underline; text-underline-offset:3px; }
.topic-editor .topic-editor-rich-toolbar button[aria-pressed=true] { background:#dcedf8; border-color:#81b9dc; color:#003d68; }
.te-toolbar-separator { align-self:stretch; border-left:1px solid #c8d9e5; margin:4px; }
.te-color-label { font-size:11px; color:#516b7e; font-weight:400; margin:0 3px; }
.topic-editor .topic-editor-rich-toolbar .te-color { color:var(--te-color); border-bottom:3px solid var(--te-color); border-radius:3px; font-weight:700; }
.te-clear-format span { color:#8a365d; font-size:12px; }
.topic-editor-rich { min-height:118px; max-height:440px; overflow:auto; box-sizing:border-box; padding:14px 16px; border:1px solid #b8cedd; border-radius:0 0 5px 5px; background:#fff; color:#17354b; font:400 16px/1.85 "Segoe UI",sans-serif; white-space:pre-wrap; overflow-wrap:anywhere; text-align:justify; }
.topic-editor-rich:focus { border-color:#0071bc; outline:2px solid #0071bc; outline-offset:1px; }
.topic-editor-rich[aria-invalid=true] { border-color:#a33d45; }
.topic-editor-rich[aria-disabled=true] { background:#f4f7f9; }
.te-rich-hint { padding-top:5px; color:#627c8e; font-size:11px; line-height:1.5; font-weight:400; }
.topic-editor-simple:has(.topic-editor-rich-group) .topic-editor-item-actions { margin-top:34px; }
.te-table-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:12px; min-width:0; }
@media(max-width:700px){.topic-staff-tools,.topic-editor-header{align-items:stretch;flex-direction:column;gap:10px}.topic-editor-status{align-self:flex-start}.topic-editor-item-body{padding:13px}.topic-editor-simple{grid-template-columns:minmax(0,1fr) auto;gap:5px}.topic-editor-simple>.te-index{display:none}.topic-editor-item-actions{flex-direction:column}.topic-editor-order{grid-template-columns:1fr}.topic-editor .te-reset{margin-left:0}.topic-editor-list-heading h3{font-size:14px}.topic-editor-item summary{padding:13px;gap:9px}}
@media(max-width:480px){.topic-editor-rich{padding:11px;font-size:15px;text-align:left}.topic-editor-rich-toolbar{padding:5px;gap:2px}.te-color-label{display:none}.te-rich-hint{font-size:10px}.topic-editor .topic-editor-rich-toolbar button{min-width:29px;min-height:32px}}
@media(max-width:700px){.topic-editor-item-body>.topic-editor-item-actions{flex-direction:row}}
