[data-content-body] { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
[data-content-body] > * { min-width: 0; }
.content-page-tools { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.content-page-tools > button { flex: 0 0 auto; }
.content-message { color: var(--teal-dark); font-size: 13px; line-height: 1.7; margin: 0; }
.content-head h1 { margin-bottom: 14px; }
.content-source { overflow-wrap: anywhere; }
.content-notice { padding: 14px 18px; border-left: 3px solid var(--teal); background: var(--teal-soft); font-size: 13px; line-height: 1.7; }
.content-summary { display: grid; grid-template-columns: 1.5fr .5fr .7fr 1fr; background: var(--paper); border: 1px solid var(--line); }
.content-summary > div { padding: 18px; min-width: 0; }
.content-summary > div + div { border-left: 1px solid var(--line); }
.content-summary span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.content-summary strong { display: block; overflow-wrap: anywhere; font-size: 17px; }
.content-summary code { overflow-wrap: anywhere; font-size: 11px; line-height: 1.7; }
.panel-card { padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.panel-card h2 { margin: 0 0 7px; font-size: 20px; }
.content-upload { display: grid; gap: 14px; }
.content-upload p { margin: 7px 0 0; }
.content-upload .button.primary { justify-self: start; }
.content-file { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-width: 0; padding: 14px; color: var(--ink); background: var(--soft); border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.content-file input { min-width: 0; width: 100%; max-width: 100%; font-size: 12px; }
.content-preview { padding: 12px 14px; color: var(--teal-dark); background: var(--teal-soft); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.content-consent { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.7; cursor: pointer; }
.content-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--teal); }
.content-unit-picker { display: flex; align-items: center; gap: 14px; }
.content-unit-picker label { font-size: 13px; white-space: nowrap; }
.content-unit-picker select { min-width: 0; max-width: 100%; flex: 1; font-size: 14px; }
.content-unit { padding: 24px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.content-unit-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.content-unit-head > div { min-width: 0; }
.content-unit-head h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.content-unit-head > span { color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.reading-box { margin-bottom: 22px; padding: 20px; background: #f5f7f4; border-left: 3px solid var(--teal); }
.reading-box h3 { margin: 0 0 12px; font-size: 16px; overflow-wrap: anywhere; }
.reading-box p { margin: 10px 0; color: #475467; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.reading-box [lang="en"] { font: 16px/1.9 "Segoe UI", Arial, sans-serif; }
.word-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.content-word-table { width: 100%; table-layout: fixed; }
.content-word-table td, .content-word-table th { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
.content-word-table th:first-child { width: 32%; }
.content-word-table th:nth-child(2) { width: 50%; }
.content-practice { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.content-practice p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.content-practice button { flex: 0 0 auto; }
.content-page button:focus-visible, .content-page input:focus-visible, .content-page select:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (max-width: 700px) {
  .content-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-summary > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .content-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .content-unit, .panel-card { padding: 18px 14px; }
  .content-unit-head { flex-wrap: wrap; }
  .content-file { padding: 12px; gap: 10px; }
  .content-practice { flex-direction: column; align-items: start; gap: 14px; }
  .content-word-table td, .content-word-table th { padding: 12px 9px; font-size: 12px; }
  .reading-box { padding: 14px; }
  .content-page-tools { align-items: start; flex-direction: column; gap: 6px; }
}
