:root {
  --bg: #f5f6f8; --panel: #fff; --ink: #1d2433; --muted: #5c6577; --line: #d9dde5; --line2: #eceef2;
  --accent: #1f5fae; --accent-soft: #e8f0fb;
  --block: #c62828; --block-soft: #fdecec; --warn: #a05a00; --warn-soft: #fff4e0; --info: #3d5a80; --info-soft: #edf2f8;
  --ok: #2e7d32; --ok-soft: #e8f5e9; --note: #fffbea;
  --radius: 8px;
  font-family: 'Malgun Gothic', '맑은 고딕', 'Apple SD Gothic Neo', system-ui, sans-serif;
  color: var(--ink); font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 6px; padding: 5px 10px; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.danger { color: var(--block); }
button.small { padding: 2px 7px; font-size: 12px; }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { width: 100%; min-height: 56px; resize: vertical; field-sizing: content; line-height: 1.5; }
input[type=number] { width: 70px; }
label.chk { display: inline-flex; align-items: center; gap: 4px; margin: 2px 10px 2px 0; white-space: nowrap; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* 상단 */
header.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); }
header.top h1 { font-size: 16px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; background: var(--line2); color: var(--muted); }
.badge.sample { background: var(--warn-soft); color: var(--warn); }
.badge.submitted { background: var(--ok-soft); color: var(--ok); }
.saved { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* 시작 화면 */
.start { max-width: 920px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.card h2 { font-size: 15px; margin: 0 0 10px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { border-bottom: 1px solid var(--line2); padding: 7px 6px; text-align: left; vertical-align: middle; }
table.list th { font-size: 12px; color: var(--muted); font-weight: 600; }

/* 편집 화면 배치 */
.layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 340px; gap: 16px; padding: 16px; align-items: start; }
nav.toc { position: sticky; top: 62px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
nav.toc a { display: flex; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 13px; }
nav.toc a:hover { background: var(--accent-soft); }
nav.toc .cnt { font-size: 11px; border-radius: 99px; padding: 0 6px; }
nav.toc .cnt.b { background: var(--block-soft); color: var(--block); }
nav.toc .cnt.w { background: var(--warn-soft); color: var(--warn); }
main.form { min-width: 0; }
section.sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin-bottom: 16px; scroll-margin-top: 70px; }
section.sec > h2 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
section.sec > h2 .code { font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
details.note { background: var(--note); border: 1px solid #f0e2a8; border-radius: 6px; padding: 6px 10px; margin: 0 0 12px; font-size: 13px; }
details.note summary { cursor: pointer; color: var(--warn); font-weight: 600; }
details.note p { margin: 4px 0; white-space: pre-line; color: #5a4a10; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; font-size: 13px; }
.kv b { color: var(--muted); font-weight: 600; }

/* 표 입력 */
table.grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 5px; vertical-align: top; }
table.grid th { background: #f3f5f9; font-size: 12px; font-weight: 600; color: var(--muted); }
table.grid td.c { text-align: center; }
.auto { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 2px 6px; font-size: 12px; margin-bottom: 4px; display: block; }
.auto-lock { font-size: 11px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 3px; background: var(--line2); border-radius: 4px; padding: 1px 4px 1px 6px; font-size: 12px; }
.chip.sel { background: #efe7fb; }
.chip button { border: 0; background: transparent; padding: 0 3px; color: var(--muted); }
select.addstd { font-size: 12px; padding: 2px 4px; max-width: 100%; }
.weeksel { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.weeksel select { padding: 3px 2px; font-size: 12px; }
.rowtools { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.rowtools button { padding: 1px 5px; }
table.grid .weeksel select:first-child { width: 100%; }

/* 성취기준 선택 */
.stdlist { max-height: 360px; overflow: auto; border: 1px solid var(--line2); border-radius: 6px; padding: 4px 8px; }
.stdlist label { display: flex; gap: 6px; padding: 4px 0; border-bottom: 1px dashed var(--line2); font-size: 13px; }
.stdlist label:last-child { border-bottom: 0; }
.stdlist .k { flex: none; font-weight: 600; }
.subhead { font-size: 13px; font-weight: 700; margin: 12px 0 6px; }

/* 과제 카드 */
.task { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 14px; background: #fcfdff; }
.task-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.task-head h3 { margin: 0; font-size: 14px; flex: 1; }
.crit { border: 1px solid var(--line2); border-radius: 6px; padding: 8px; margin: 8px 0; background: #fff; }
.crit-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.crit-head input.name { flex: 1; min-width: 180px; }
.lvl { display: grid; grid-template-columns: 74px 1fr 28px; gap: 6px; align-items: start; margin-bottom: 4px; }
.lvl .lab { font-weight: 700; text-align: center; padding-top: 6px; }
.sums { font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0; }
.sums .bad { color: var(--block); font-weight: 700; }
.sums .good { color: var(--ok); font-weight: 700; }

/* 검증 패널 */
aside.panel { position: sticky; top: 62px; max-height: calc(100vh - 78px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
aside.panel h2 { font-size: 15px; margin: 0 0 8px; }
.sumline { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.pill { border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.pill.b { background: var(--block-soft); color: var(--block); }
.pill.w { background: var(--warn-soft); color: var(--warn); }
.pill.i { background: var(--info-soft); color: var(--info); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.vgroup h3 { font-size: 12px; margin: 12px 0 4px; color: var(--muted); }
.vitem { border-left: 3px solid; padding: 5px 8px; margin-bottom: 6px; border-radius: 0 6px 6px 0; font-size: 13px; cursor: pointer; }
.vitem.block { border-color: var(--block); background: var(--block-soft); }
.vitem.warn { border-color: var(--warn); background: var(--warn-soft); }
.vitem.info { border-color: var(--info); background: var(--info-soft); }
.vitem .code { font-size: 11px; font-weight: 700; margin-right: 4px; }
.vitem input { width: 100%; margin-top: 4px; font-size: 12px; padding: 3px 6px; cursor: text; }
.vitem.reasoned { opacity: .7; }

/* 모달·미리보기 */
.overlay { position: fixed; inset: 0; background: rgba(20, 26, 38, .55); z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 24px; }
.modal { background: #fff; border-radius: var(--radius); padding: 18px 20px; max-width: 640px; width: 100%; }
.modal h2 { margin: 0 0 10px; font-size: 16px; }
.modal ul { padding-left: 18px; }
.preview-bar { position: sticky; top: 0; display: flex; gap: 8px; justify-content: flex-end; padding: 8px; background: #fff; border-radius: 8px 8px 0 0; width: 210mm; max-width: 100%; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #263238; color: #fff; padding: 9px 16px; border-radius: 8px; z-index: 60; font-size: 13px; max-width: 90vw; }

/* 게시용 양식 */
.doc { background: #fff; width: 210mm; max-width: 100%; padding: 14mm 12mm; font-family: 'Malgun Gothic', 'Batang', serif; font-size: 10pt; color: #000; }
.doc h1 { text-align: center; font-size: 15pt; margin: 0 0 8px; }
.doc h2 { font-size: 12pt; margin: 14px 0 6px; }
.doc h3 { font-size: 11pt; margin: 10px 0 5px; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 8px; page-break-inside: auto; }
.doc th, .doc td { border: 1px solid #000; padding: 3px 5px; vertical-align: middle; font-size: 9pt; line-height: 1.45; }
.doc th { background: #e9edf3; font-weight: 700; text-align: center; }
.doc td.c { text-align: center; }
.doc .ln { display: block; }
.doc .note { font-size: 9pt; }
.doc .sign { margin-top: 14px; text-align: right; font-size: 10pt; }

@media (max-width: 1200px) { .layout { grid-template-columns: 170px minmax(0, 1fr); } aside.panel { grid-column: 1 / -1; position: static; max-height: none; } }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } nav.toc { position: static; } .grid2 { grid-template-columns: 1fr; } }

@media print {
  body { background: #fff; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  #printArea .doc { width: auto; padding: 0; }
  @page { size: A4; margin: 12mm; }
}

/* v2.1 추가 */
.req { color: var(--block); font-weight: 700; }
.reqnote { background: var(--block-soft); color: var(--block); padding: 6px 10px; border-radius: 6px; font-size: 13px; margin: 0 0 10px; }
.scores { font-size: 12px; margin: 4px 0 8px; line-height: 2; }
.scores .sc { display: inline-block; min-width: 26px; text-align: center; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin: 0 2px; background: #fff; }
.scores .sc.d { border-style: dashed; color: var(--warn); }
.deduct { border: 1px dashed var(--line); border-radius: 6px; padding: 8px; margin-top: 10px; background: #fffdf6; }
.lockbar { background: var(--ok-soft); color: var(--ok); padding: 8px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
main.form.locked input, main.form.locked textarea, main.form.locked select, main.form.locked button { pointer-events: none; opacity: .65; }
details.more { position: relative; }
details.more summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }
details.more > div { position: absolute; right: 0; top: 34px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px; z-index: 30; white-space: nowrap; }
nav.toc .cnt.n { color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; }
.seg button.on { background: var(--accent); color: #fff; }
nav.tabs { display: flex; gap: 4px; padding: 10px 16px 0; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
nav.tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 8px 12px; }
nav.tabs button.on { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }
.admin { max-width: 1200px; margin: 16px auto; padding: 0 16px; }
.statline { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 20px; color: var(--ink); }
table.board td { font-size: 13px; }
table.board tr.dim td { color: var(--muted); }
.bad { color: var(--block); } .warnc { color: var(--warn); }
.bar { width: 60px; height: 6px; background: var(--line2); border-radius: 3px; overflow: hidden; display: inline-block; margin-right: 4px; vertical-align: middle; }
.bar i { display: block; height: 100%; background: var(--accent); }
.badge.s-제출 { background: var(--accent-soft); color: var(--accent); }
.badge.s-1검보완, .badge.s-2검보완 { background: var(--warn-soft); color: var(--warn); }
.badge.s-1검통과 { background: var(--info-soft); color: var(--info); }
.badge.s-확정 { background: var(--ok-soft); color: var(--ok); }
.savebar { position: sticky; bottom: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.upres { margin-top: 10px; } ul.errs { font-size: 12px; color: var(--block); max-height: 200px; overflow: auto; }
.review { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding: 16px; align-items: start; }
.rv-doc { background: #e9ecf1; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; align-items: center; overflow: auto; }
.rv-doc .doc { box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.rv-panel .reason { font-size: 12px; margin-top: 3px; }
.verdicts { display: flex; gap: 8px; margin: 12px 0 6px; }
.verdicts button { flex: 1; padding: 8px; }
@media (max-width: 1000px) { .review { grid-template-columns: 1fr; } }
.badge { white-space: nowrap; }
table.board th, table.board td:nth-child(2), table.board td:nth-child(4) { white-space: nowrap; }
.card:has(> table.board) { overflow-x: auto; }
/* 공동 작성 */
.seclock { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--warn); }
section.sec.busy { outline: 2px dashed #f0c27a; }
section.sec.busy .body input, section.sec.busy .body textarea, section.sec.busy .body select, section.sec.busy .body button { pointer-events: none; opacity: .6; }
.lockbar.ro { background: var(--info-soft); color: var(--info); }
.lockbar button { margin-left: 8px; }
table.import td { font-size: 13px; vertical-align: top; }
table.import select { max-width: 230px; }
/* 섹션 가져오기 */
.modal.wide { max-width: 860px; }
.note-warn { background: var(--warn-soft); color: var(--warn); padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.picklist { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.picklist .chk { white-space: normal; }
.picklist .sub { margin: 0 0 4px 24px; }
.picklist .chk.dis { opacity: .55; }
/* 서식 */
.doc ul.fl, .doc ol.fl { margin: 1px 0 1px 1.3em; padding: 0; }
.doc ul.fl li, .doc ol.fl li { margin: 0; }
.fmtbar { position: absolute; z-index: 40; display: flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.12); padding: 2px; }
.fmtbar button { border: 0; padding: 2px 8px; font-size: 12px; border-radius: 4px; }
.fmtbar button:hover { background: var(--accent-soft); }
.fmtbar .sep { width: 1px; background: var(--line); margin: 2px 2px; }
.fmtprev { font-size: 12px; background: #fafbfd; border: 1px dashed var(--line2); border-radius: 4px; padding: 3px 6px; margin-top: 2px; }
.fmtprev ul, .fmtprev ol { margin: 0 0 0 1.2em; padding: 0; }
.fmtprev .ln { display: block; }

/* 메일로 알리기 */
a.btn { display: inline-block; text-decoration: none; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink); font: inherit; }
a.btn.primary { background: var(--accent, #2b5797); border-color: var(--accent, #2b5797); color: #fff; }
pre.mailbody { white-space: pre-wrap; background: #f6f7f9; border: 1px solid #e3e6ea; border-radius: 6px; padding: 10px; font-size: 13px; line-height: 1.5; font-family: inherit; max-height: 260px; overflow: auto; }

/* 보완 전후 비교 */
.difflist { max-height: 340px; overflow: auto; border: 1px solid #e3e6ea; border-radius: 6px; padding: 4px 8px; background: #fff; }
.dsec { font-weight: 700; font-size: 12px; color: var(--info); margin: 8px 0 2px; }
.ditem { font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #eee; }
.ditem:last-child { border-bottom: 0; }
.dline { margin-top: 2px; word-break: break-all; white-space: pre-wrap; }
.dctx { color: #888; }
.difflist del, .ditem del { background: var(--block-soft); color: var(--block); text-decoration: line-through; }
.difflist ins, .ditem ins { background: var(--ok-soft); color: var(--ok); text-decoration: none; font-weight: 600; }

/* 학년별 수행평가 일정 */
.schedwrap { overflow-x: auto; margin-top: 10px; }
table.sched { border-collapse: collapse; font-size: 12px; min-width: 100%; }
table.sched th, table.sched td { border: 1px solid #dde1e6; padding: 3px 4px; text-align: center; min-width: 22px; }
table.sched th { background: #f3f5f8; }
table.sched td.sname { text-align: left; white-space: nowrap; min-width: 160px; }
table.sched td.on { background: var(--info-soft); color: var(--info); font-weight: 700; }
table.sched td.hot { box-shadow: inset 0 -3px 0 var(--warn); }
table.sched td.on.hot { background: var(--warn-soft); color: var(--warn); }
table.sched tr.sum td { font-weight: 700; background: #fafbfc; }
table.sched tr.sum td.hot { background: var(--warn-soft); color: var(--warn); }
table.sched tr.dim td { color: #aaa; }

/* 연결 끊김 표시 */
.saved.offline { color: var(--warn); font-weight: 700; }

/* 마감 D-day */
.badge.soon { background: var(--warn-soft); color: var(--warn); }
.badge.late { background: var(--block-soft); color: var(--block); }
.stat.dday b { font-size: 15px; }

/* 작성 예시 · 도움말 */
details.note.ex summary { color: var(--info); }
.help ol.steps { padding-left: 20px; line-height: 1.6; }
.help ol.steps li { margin-bottom: 6px; }
.help dl.faq dt { font-weight: 700; margin-top: 8px; }
.help dl.faq dd { margin: 2px 0 0 0; color: var(--muted); }

/* 성취기준 연결 점검표 */
table.sched.cover td.sname { white-space: normal; min-width: 200px; max-width: 320px; }
table.sched.cover .ctext { font-size: 11px; }
table.sched td.cflag { text-align: left; white-space: nowrap; }
table.sched td.cflag.block { color: var(--block); font-weight: 700; }
table.sched td.cflag.warn { color: var(--warn); font-weight: 700; }
table.sched td.cflag.info { color: var(--muted); }
.pill { background: var(--line2); }

/* 학생용 일정표 · 백업 */
.student-sched table td, .student-sched table th { padding: 4px 6px; }
.flow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 변경 기록 */
table.hist td { vertical-align: top; }
table.hist tr.hdiff td { background: #fafbfc; }

/* 게시용 합본 */
.bundle-break { page-break-before: always; break-before: page; }
.bundle-cover table { margin-top: 12px; }

/* 지난 학기 검토 의견 */
details.vgroup > summary { cursor: pointer; }
details.vgroup > summary h3 { margin: 12px 0 4px; }
details.more > div { display: flex; flex-direction: column; gap: 4px; }

/* 새 버전 알림 */
.updbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 200; background: #1d2433; color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.25); font-size: 14px; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }

/* 학기 중 변경 */
.lockbar.chg { background: var(--info-soft); color: var(--info); }
.chgbox { border: 1px solid var(--info); border-radius: 8px; padding: 6px 10px; background: var(--info-soft); }
.chgbox textarea { width: 100%; }
.badge.st.s-변경작성중, .badge.st.s-변경신청 { background: var(--info-soft); color: var(--info); }
.committee td, .chgdoc td { vertical-align: top; }

/* 교사 '내 할 일' */
.todos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.todo { border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.todo:hover { border-color: var(--accent); }
.todo.b { border-left-color: var(--block); } .todo.w { border-left-color: var(--warn); } .todo.ok { border-left-color: var(--ok); }
.todo .tt { font-weight: 700; }
.todo .next { font-weight: 600; }
.todo.b .next { color: var(--block); } .todo.w .next { color: var(--warn); } .todo.ok .next { color: var(--ok); }

/* 관리자 메뉴(묶음·버튼 모양) */
nav.tabs { display: flex; align-items: center; gap: 10px 18px; padding: 10px 16px; background: #eef2f8; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
nav.tabs .navtitle { font-weight: 800; color: var(--accent); font-size: 13px; padding-right: 4px; border-right: 2px solid var(--line); margin-right: 2px; }
nav.tabs .tgroup { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
nav.tabs .tglabel { font-size: 11px; color: var(--muted); padding: 0 6px 0 4px; font-weight: 700; }
nav.tabs button { border: 0; border-radius: 7px; padding: 6px 12px; background: transparent; color: var(--ink); }
nav.tabs button:hover { background: var(--accent-soft); }
nav.tabs button.on { background: var(--accent); color: #fff; font-weight: 700; border: 0; }
/* 현황판 작업 줄·마감 */
.toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.closebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
.closebar span { color: var(--muted); flex: 1; min-width: 240px; }
.closebar.closed { border-left-color: var(--block); background: var(--block-soft); }
.closebar.closed b { color: var(--block); }
