/* Ported from the zsl-13 course site (see visual-style.md, which describes this
   file). The rules are strict: change visual-style.md and this file together,
   and only when the teacher asks. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1a3252;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.25rem 3rem;
}

/* Wider pages (teacher, 2026-10-28): the column above is for reading. A page
   with wide tables or a working interface widens itself with
   `% stash body_class => ...` (as ZSL-13's chat page did): wide-page up to
   1200px (the teacher's tables), full-page the whole window (the exam). Both
   keep a gutter the width of the fixed logo on each side, and on a narrow
   screen they are the reading column again. */
body.wide-page { max-width: min(1200px, calc(100vw - 2 * (105px + 1.5rem))); }
body.full-page { max-width: calc(100vw - 2 * (105px + 1.5rem)); }
@media (max-width: 1000px) {
  body.wide-page, body.full-page { max-width: 720px; }
}

.logo-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  line-height: 0;
  z-index: 100;
}
.site-logo { width: 105px; height: 105px; }

/* Outside production a small navy tag sits just below the logo, where the
   dev menu lives on zsl-13. */
.dev-tag {
  position: fixed;
  top: calc(0.75rem + 105px + 0.4rem);
  left: 0.75rem;
  width: 105px;
  font-size: 0.72rem;
  padding: 0.2rem 0.4rem;
  background: #1a3252;
  color: white;
  border-radius: 4px;
  z-index: 100;
}

h1 { font-size: 1.6rem; line-height: 1.2; }

h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.75rem;
  background: #1e40af;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

p { margin-bottom: 0.75rem; }
a { color: #1e40af; }

nav {
  background: #1e40af;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin: 0.75rem 0 1.75rem;
  font-size: 0.9rem;
}
nav a { color: white; margin-right: 1.2rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.subtitle {
  color: #3b5a82;
  font-size: 0.95rem;
  margin: 0.2rem 0 1.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.25rem;
}
th, td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #c7d7ed;
  vertical-align: top;
}
thead th {
  background: #1e40af;
  color: white;
  border-bottom: none;
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: none; }

ul, ol { margin: 0 0 0.75rem 1.5rem; }
li { margin-bottom: 0.3rem; }

button {
  padding: 0.4rem 1.1rem;
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: #1e40af;
  color: white;
}
button:hover { background: #1d3a9e; }
a.btn {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  font: inherit;
  cursor: pointer;
  border-radius: 6px;
  background: #1e40af;
  color: white;
  text-decoration: none;
}
a.btn:hover { background: #1d3a9e; color: white; }

.note { color: #3b5a82; font-size: 0.9rem; font-style: italic; }
.error-msg { background: #fef2f2; border-left: 4px solid #dc2626; color: #991b1b; padding: 0.6rem 1rem; border-radius: 4px; margin-bottom: 1rem; }

.box {
  background: #f8fafc;
  border: 1px solid #c7d7ed;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

/* h3, .actions and .break-row are carried over unchanged from the zsl-13 CSS
   (h3 from .review-box h3). */
h3 { font-size: 1rem; margin: 1rem 0 0.4rem; color: #1a3252; }
.actions { margin: 1.75rem 0 0.5rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.break-row { color: #3b5a82; font-style: italic; }

/* Keeps an ISO 8601 date on one line: a browser would otherwise break it at the
   hyphens. A wide table scrolls by itself on a narrow screen, so the page does not. */
.nowrap { white-space: nowrap; }
.table-scroll { overflow-x: auto; margin-bottom: 1.25rem; }
.table-scroll table { margin-bottom: 0; }

/* The "how much each assignment counts" pie, at the foot of the Assignments page:
   up to 560px wide, centred, scaling down on a narrow screen. Its colours and
   labels come from Zsl14::Model::Pie. */
.weights { margin: 0 0 1.25rem; }
.weights svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
/* Pointing at a slice highlights its assignment's row, and the other way round
   (public/assignments.js): the row turns the word-bank light blue, the slice
   gets a navy edge. */
.assignments tr.hl td { background: #dbeafe; }
.weights .hl path { stroke: #1a3252; stroke-width: 3; }
.weights a:focus { outline: none; }
.weights a:focus path { stroke: #1a3252; stroke-width: 3; }
/* Pop-ups (the chat's privacy notice): a white box with the card border over a
   navy veil; the page behind stays visible. */
dialog.popup { max-width: 36rem; width: calc(100% - 2rem); border: 1px solid #c7d7ed; border-radius: 6px; padding: 1rem 1.5rem; color: #1a3252; background: #ffffff; }
dialog.popup::backdrop { background: rgba(26, 50, 82, 0.45); }
dialog.popup h3 { margin-top: 0.5rem; }

/* Lesson 2, the paraphrase reviewer: carried over unchanged from the zsl-13 CSS
   (citation box, paraphrase box, review box, model tag, section rule). */
.citation-box {
  background: #f0f5ff;
  border-left: 4px solid #1e40af;
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.citation-box blockquote {
  margin: 0.5rem 0 0;
  font-style: italic;
  color: #1a3252;
}
.source-ref {
  font-size: 0.85rem;
  color: #3b5a82;
  margin-bottom: 0;
}
.paraphrase-input {
  width: 100%;
  font: inherit;
  color: #1a3252;
  border: 1px solid #c7d7ed;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}
.paraphrase-input:focus { outline: none; border-color: #1e40af; }
.paraphrase-box {
  background: #f8fafc;
  border: 1px solid #c7d7ed;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.paraphrase-box p { margin: 0; }
.review-box {
  background: #f8fafc;
  border: 1px solid #c7d7ed;
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}
.review-box h3 { font-size: 1rem; margin: 1rem 0 0.4rem; color: #1a3252; }
.review-box p  { margin-bottom: 0.6rem; }
.review-box ul, .review-box ol { margin: 0 0 0.75rem 1.5rem; }
.section-rule { margin: 2rem 0; border: none; border-top: 1px solid #c7d7ed; }
.model-tag {
  font-size: 0.72rem;
  font-weight: normal;
  color: #3b5a82;
  background: #eef2f7;
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  vertical-align: middle;
}
/* A student's own text keeps its line breaks. */
.paraphrase-box p, .peer-text { white-space: pre-wrap; }
/* "<- Lesson 2" above an exercise's heading: the zsl-13 .l10-back, unchanged. */
.lesson-back { font-size: 0.85rem; margin: 0 0 0.25rem; }
/* Printing: printed material is black and white, so no large blocks of dark
   colour (teacher, 2026-10-19). On paper the navigation, logo and dev tag are
   left out, the h2 pills and buttons become outlines, table headers turn light,
   and the weights pie becomes outlined slices with navy labels. The screen look
   is unchanged. */
@media print {
  nav, .logo-link, .dev-tag, dialog, script { display: none !important; }
  h2 { background: none; color: #1a3252; border: 1.5pt solid #1e40af; }
  thead th { background: #dbeafe; color: #1a3252; }
  button, a.btn { background: none; color: #1a3252; border: 1pt solid #1e40af; }
  .assignments tr.hl td { background: none; }
  .weights path { fill: #ffffff !important; stroke: #1a3252 !important; stroke-width: 1.5 !important; }
  .weights text { fill: #1a3252 !important; }
}

/* Keyboard use (teacher, 2026-10-21): the site works without a mouse, and
   whatever has the keyboard focus carries a thick outline in the site's blue
   (white on the blue nav bar, navy round buttons), so it is always clear where
   you are. A "Skip to content" link appears first when tabbing in. */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #1e40af;
  outline-offset: 2px;
}
nav a:focus-visible { outline-color: #ffffff; outline-offset: -4px; text-decoration: underline; }
button:focus-visible, a.btn:focus-visible { outline-color: #1a3252; outline-offset: 3px; }
button:active, a.btn:active { background: #1a3252; }
.paraphrase-input:focus-visible { outline: 3px solid #1e40af; outline-offset: 2px; }
main:focus { outline: none; }
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: #ffffff;
  color: #1e40af;
  padding: 0.4rem 0.9rem;
  border: 2px solid #1e40af;
  border-radius: 6px;
}
.skip-link:focus { top: 0.75rem; }

/* The Inbox link carries a red count while there are unread messages (red from
   the palette's "incorrect"; white on #c62828 is 5.6:1). */
.unread-count {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 0.4em;
  border-radius: 999px;
  background: #c62828;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Lesson 2, common knowledge: the projector list scrolls by itself and its
   numbers are large; a vote you gave shows as a pressed (navy) button; a
   statement the teacher hid is struck through on their own screen. */
.ck-results { max-height: 65vh; overflow-y: auto; }
.ck-results td, .ck-results th { font-size: 1.1rem; }
.ck-count { font-size: 1.4rem; font-weight: 700; text-align: center; }
.ck-vote { margin-top: 0.5rem; }
.ck-vote button[aria-pressed="true"] { background: #1a3252; }
.ck-vote button[aria-pressed="true"]::before { content: "\2713\00a0"; }
.ck-hidden td { text-decoration: line-through; color: #3b5a82; }

/* Gap-fill forms: questions as plain blocks, no fieldset frames. */
.gapfill fieldset { border: none; margin: 1.25rem 0 0; }
.gapfill legend { margin-bottom: 0.4rem; }
.gapfill fieldset p { margin: 0.2rem 0; }
.gapfill input[type="text"]:not(.paraphrase-input) { font: inherit; border: none; border-bottom: 1px solid #1a3252; padding: 0 0.2rem; }

/* Lesson 3 controlling ideas: last semester's layout and accent colours (teacher,
   2026-11-02: "a touch more colour"): an item per box with an amber left edge,
   the options under a dashed rule, the feedback green when right and amber when
   wrong, the three problems in an orange box, and simple coloured buttons for
   the muse (one per field) and the models (one colour per model, white text at
   5:1 or more). */
.ci-item { background: #f8fafc; border: 1px solid #c7d7ed; border-left: 4px solid #cc8800; border-radius: 6px; padding: 0.6rem 1rem; margin-bottom: 0.5rem; }
.ci-item p { margin: 0; }
.ci-text { display: flex; gap: 0.4rem; }
.ci-num { font-weight: 700; color: #1e40af; min-width: 1.6em; }
.ci-body { flex: 1; }
.ci-question { display: block; font-style: italic; color: #3b5a82; font-size: 0.95rem; margin-bottom: 0.2rem; }
.ci-options { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.5rem !important; padding-top: 0.4rem; border-top: 1px dashed #c7d7ed; font-size: 0.92rem; }
.ci-options label { cursor: pointer; }
.ci-review { margin-top: 0.5rem !important; padding: 0.45rem 0.8rem; border-radius: 4px; font-size: 0.92rem; }
.ci-review.correct { background: #e6f7e6; border-left: 3px solid #2e8b2e; color: #1a4a1a; }
.ci-review.wrong { background: #fff4e6; border-left: 3px solid #cc8800; color: #4a3000; }
.ci-review.unanswered { background: #f8fafc; border-left: 3px solid #3b5a82; color: #3b5a82; font-style: italic; }
.ci-problems { background: #fff7ed; border-left: 4px solid #c2410c; border-radius: 0 6px 6px 0; padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.ci-problems p, .ci-problems ol { margin-top: 0; margin-bottom: 0.3rem; }
.ci-muse, .ci-models { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
/* Lesson 6, the teacher's content page: one box per muse, a dashed rule between its topics. */
.l6-muse { margin-bottom: 1rem; padding-bottom: 0.5rem; }
.l6-topic + .l6-topic { border-top: 1px dashed #c7d7ed; margin-top: 0.75rem; padding-top: 0.5rem; }
.l6-topic .actions { margin-top: 0.25rem; }
.l6-items input[type="text"] { font: inherit; width: 100%; box-sizing: border-box; }
.l6-items td { vertical-align: middle; }
.ci-models button:disabled, .model-ask button:disabled { background: #e2e8f0; color: #475569; cursor: not-allowed; }
/* Lesson 4, Exercise 3: the model buttons' frame, as in the zsl-13 CSS. */
.submit-box { border: 1px solid #b0c4de; border-radius: 6px; padding: 0.75rem 1rem 0; margin-top: 1rem; }
.submit-box legend { font-weight: 600; color: #3b5a82; padding: 0 0.4rem; font-size: 0.9rem; }
.model-id { font-weight: normal; font-size: 0.75rem; color: #475569; }
@media screen {
  .muse-btn { background: #0e7490; }         .muse-btn:hover { background: #155e75; }
  .model-local { background: #b45309; }      .model-local:hover { background: #92400e; }
  .model-claude { background: #7c3aed; }     .model-claude:hover { background: #6d28d9; }
  .model-fable { background: #334155; }      .model-fable:hover { background: #1e293b; }
  .model-chatgpt { background: #1e40af; }    .model-chatgpt:hover { background: #1e3a8a; }
  .model-gemini { background: #15803d; }     .model-gemini:hover { background: #166534; }
  .model-kimi { background: #be185d; }       .model-kimi:hover { background: #9d174d; }
  .model-deepseek { background: #0f766e; }   .model-deepseek:hover { background: #115e59; }
}
.ci-kind { border: none; padding: 0; margin: 0 0 1rem; }
.ci-kind legend { margin-bottom: 0.4rem; }
.ci-kind label { margin-right: 1.2rem; cursor: pointer; }

/* Competitive CARS (lesson 4): the teacher's switches in a row, the score
   choices on the review form, the winners and the ranking. Light fills only:
   the page may be printed in black and white. */
.cars-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.cars-switch form { margin: 0; }
fieldset.cars-score { border: 1px solid #c7d7ed; border-radius: 6px; padding: 0.6rem 0.9rem; margin: 0.75rem 0; }
fieldset.cars-score legend { font-weight: 600; color: #1a3252; padding: 0 0.3rem; }
fieldset.cars-score label { display: block; margin: 0.35rem 0; }
.cars-scale { margin: 0 0 0.5rem 1.5rem; }
.cars-winners { background: #fef3c7; border: 2px solid #f59e0b; border-radius: 6px; padding: 0.6rem 1rem; margin: 1rem 0; }
.cars-winners p { margin: 0.3rem 0; }
.cars-ranking td { vertical-align: top; }
.cars-ranking tr.mine td { background: #f0f5ff; }
.cars-idea { font-style: italic; color: #3b5a82; }

/* Lesson 4, Exercise 3: each model's feedback in a card of its own, in the
   model's colour from the model buttons (lesson 3), so one answer is easy to
   tell from the next (teacher, 2026-11-09): a coloured edge and heading and a
   very light tint; the answer itself on white. The model's own headings stay
   small, never the page's blue h2 bar. */
.model-card { --mc: #3b5a82; --mc-bg: #f8fafc; border: 1px solid var(--mc); border-left: 6px solid var(--mc);
              border-radius: 6px; background: var(--mc-bg); padding: 0.3rem 1rem 0.75rem; margin-bottom: 1.25rem; }
.model-card > h3 { color: var(--mc); margin: 0.5rem 0 0.6rem; }
.model-card .model-tag { background: var(--mc); color: #ffffff; }
.model-card .review-box { background: #ffffff; border-color: var(--mc); margin-bottom: 0.25rem; }
.model-card .model-ask { margin: 0.25rem 0; }
.review-box h1, .review-box h2, .review-box h3, .review-box h4 {
  font-size: 1rem; background: none; color: inherit; padding: 0; border-radius: 0; margin: 0.9rem 0 0.35rem;
}
.model-card .review-box h1, .model-card .review-box h2, .model-card .review-box h3, .model-card .review-box h4 { color: var(--mc); }
.model-card-local    { --mc: #b45309; --mc-bg: #fffaf2; }
.model-card-claude   { --mc: #7c3aed; --mc-bg: #faf7ff; }
.model-card-fable    { --mc: #334155; --mc-bg: #f7f9fb; }
.model-card-chatgpt  { --mc: #1e40af; --mc-bg: #f5f8fe; }
.model-card-gemini   { --mc: #15803d; --mc-bg: #f4fbf6; }
.model-card-kimi     { --mc: #be185d; --mc-bg: #fdf5f9; }
.model-card-deepseek { --mc: #0f766e; --mc-bg: #f2fbf9; }
/* The AI feedback a reviewer may open on the review page (lesson 4). */
details.ai-for-reviewer { margin: 0 0 1.25rem; }
details.ai-for-reviewer > summary { cursor: pointer; font-weight: 600; color: #1e40af; margin-bottom: 0.75rem; }

/* My docs: ZSL-13's list (a linked title, small slate details, a preview), with
   the date and a status on the title line and everything saved about the item
   folded away under it; short facts in two columns, long texts across the full
   width, keeping their line breaks. */
.docs-overview { margin: 0 0 0.75rem; padding-left: 1.2rem; }
.docs-group { margin: 1.2rem 0; }
.docs-group h3 { margin-bottom: 0.4rem; }
.docs-item { border-bottom: 1px solid #c7d7ed; padding: 0.6rem 0.2rem; }
.docs-item > a, .docs-item > strong { font-weight: 600; }
.docs-item > a { text-decoration: none; }
.docs-detail { color: #3b5a82; font-size: 0.8rem; margin-left: 0.4rem; text-transform: uppercase; letter-spacing: 0.03em; }
.docs-preview { font-size: 0.9rem; margin: 0.3rem 0 0; overflow-wrap: anywhere; }
.docs-doc { margin-top: 0.3rem; font-size: 0.9rem; }
.docs-doc > summary { cursor: pointer; color: #1e40af; }
.docs-fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.15rem 0.8rem; margin: 0.4rem 0 0.2rem; }
.docs-fields dt { color: #3b5a82; }
.docs-fields dd { margin: 0; overflow-wrap: anywhere; }
.docs-fields .docs-long { grid-column: 1 / -1; }
.docs-fields dd.docs-long { white-space: pre-wrap; background: #f8fafc; border: 1px solid #c7d7ed; border-radius: 6px; padding: 0.5rem 0.8rem; margin-bottom: 0.4rem; }
/* Lesson Plan alternative B: what differs from the current plan sits in the
   pale citation blue (light, so it prints in black and white). */
.plan-b td.changed { background: #f0f5ff; }

/* Lesson 6, Exercise 1 (2026-11-23): the three pages as steps; the phrasal
   verbs in groups on the left, the formal verbs to drag on the right; marks in
   the extension paragraph (blue underline: phrasal verb, amber: idiom). */
.l6-steps { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0 0 1rem; font-size: 0.95rem; }
.l6-steps [aria-current] { font-weight: 700; color: #1a3252; border-bottom: 3px solid #1e40af; }
.l6-essays { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.pv-board { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: start; }
.pv-group { margin-bottom: 0.75rem; }
.pv-group h4 { margin: 0 0 0.3rem; color: #1e40af; }
.pv-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 0.2rem 0.6rem; align-items: center; padding: 0.3rem 0; border-bottom: 1px dashed #c7d7ed; }
.pv-phrase { font-weight: 700; }
.pv-row .pv-mark, .pv-row .pv-quote { grid-column: 2; margin: 0.15rem 0 0; }
.pv-quote { font-size: 0.92rem; color: #3b5a82; }
.pv-slot { min-height: 2.2rem; text-align: left; background: #f8fafc; color: #1a3252; border: 2px dashed #b0c4de; border-radius: 6px; padding: 0.2rem 0.4rem; cursor: pointer; }
.pv-slot.ready { border-color: #1e40af; background: #dbeafe; }
.pv-slot.over { border-style: solid; border-color: #1e40af; }
.pv-row.right .pv-slot { border: 2px solid #2a7d32; background: #eaf6eb; }
.pv-row.wrong .pv-slot { border: 2px solid #cc8800; background: #fff4e6; }
.pv-bank { position: sticky; top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-content: flex-start; min-height: 4rem;
  background: #f8fafc; border: 1px solid #c7d7ed; border-radius: 6px; padding: 0.75rem; }
.pv-chip { background: #ffffff; color: #1a3252; border: 1px solid #1e40af; border-radius: 999px; padding: 0.25rem 0.8rem; cursor: grab; font: inherit; }
.pv-slot .pv-chip { cursor: grab; }
.pv-chip.picked { background: #1e40af; color: #ffffff; }
.pv-chip.dragging { opacity: 0.5; }
.l6-text .w.mark-verb { text-decoration: underline 3px #1e40af; text-underline-offset: 3px; }
.l6-text .w.mark-idiom { text-decoration: underline 3px #cc8800; text-underline-offset: 3px; }
.l6-text .w.mark-right { background: #eaf6eb; }
.l6-text .w.mark-half, .l6-text .w.mark-wrong { background: #fff4e6; }
.l6-text .w.mark-missed { outline: 2px dashed #3b5a82; outline-offset: 1px; }
.rw-marks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.rw-remove { background: #ffffff; color: #1a3252; border: 1px solid #c7d7ed; text-align: left; }
.l6-why { margin: 1rem 0; }
.l6-why summary { cursor: pointer; color: #1e40af; font-weight: 600; }
@media (max-width: 760px) {
  .pv-board { grid-template-columns: minmax(0, 1fr); }
  .pv-bank { position: static; order: -1; }
  .pv-row { grid-template-columns: minmax(0, 1fr); }
  .pv-row .pv-mark, .pv-row .pv-quote { grid-column: 1; }
}

/* Gap-fill 2, online version (2026-11-23): Q1 terms and definitions joined by
   coloured lines (blue, teal, amber, each with its number), Q4 a list to sort,
   Q6 habits to put on scenarios. Results table on /teacher/gap-fill-2. */
.gf-match { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 2fr); gap: 0; align-items: start; margin-bottom: 1rem; }
.gf-col { display: flex; flex-direction: column; gap: 0.6rem; }
.gf-match .gf-col:last-child { grid-column: 3; }
.gf-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.gf-term, .gf-def { text-align: left; background: #ffffff; color: #1a3252; border: 2px solid #c7d7ed; border-radius: 6px; padding: 0.45rem 0.7rem; font: inherit; cursor: pointer; }
.gf-term[aria-pressed="true"] { background: #dbeafe; }
.gf-def.gf-ready { border-style: dashed; }
.gf-badge { display: inline-block; min-width: 1.5em; text-align: center; border-radius: 999px; font-weight: 700; font-size: 0.85rem; color: #ffffff; background: #3b5a82; }
.gf-term[data-color="1"] .gf-badge { background: #1e40af; }
.gf-term[data-color="2"] .gf-badge { background: #0f766e; }
.gf-term[data-color="3"] .gf-badge { background: #b45309; }
.gf-link:empty { display: none; }
.gf-sort { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.4rem; max-width: 36rem; }
.gf-sort-item { display: flex; align-items: center; gap: 0.75rem; background: #f8fafc; border: 1px solid #c7d7ed; border-radius: 6px; padding: 0.4rem 0.6rem; cursor: grab; }
.gf-sort-item.gf-dragging { opacity: 0.5; }
.gf-move-no { font-weight: 700; color: #1e40af; min-width: 4.5em; }
.gf-sort-text { flex: 1; }
.gf-sort-buttons { display: flex; gap: 0.3rem; }
.gf-sort-buttons button { padding: 0.15rem 0.55rem; }
.gf-habits { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; position: sticky; top: 0; background: #ffffff; padding: 0.5rem 0; z-index: 1; }
.gf-habit { background: #ffffff; color: #1a3252; border: 1px solid #1e40af; border-radius: 999px; padding: 0.25rem 0.8rem; font: inherit; cursor: grab; }
.gf-habit[aria-pressed="true"] { background: #1e40af; color: #ffffff; }
.gf-habit.gf-dragging { opacity: 0.5; }
.gf-scenario { border: 1px solid #c7d7ed; border-radius: 6px; padding: 0.5rem 0.8rem; margin-bottom: 0.6rem; }
.gf-scenario p { margin: 0 0 0.4rem; }
.gf-scenario.gf-over { border-color: #1e40af; background: #dbeafe; }
.gf-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; min-height: 2.2rem; }
.gf-drop.gf-ready .gf-place { outline: 2px dashed #1e40af; outline-offset: 2px; }
.gf-applied { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.gf-chip { background: #dbeafe; color: #1a3252; border-radius: 999px; padding: 0.15rem 0.3rem 0.15rem 0.7rem; }
.gf-remove { background: transparent; color: #1a3252; border: none; padding: 0 0.35rem; font-weight: 700; }
.gf-results td { font-size: 0.85rem; }
.gf-results td.gf-right { background: #eaf6eb; }
.gf-results td.gf-part { background: #fff4e6; }
.gf-results td.gf-wrong { background: #fdecea; }
@media (max-width: 640px) {
  .gf-match { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .gf-match .gf-col:last-child { grid-column: 1; }
  .gf-lines { display: none; }
}

/* Pointer dragging (public/pointer-drag.js): the copy under the pointer, and no
   text selection or page scrolling while an item is dragged. */
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -50%); opacity: 0.9; margin: 0; box-shadow: 0 4px 12px rgba(26, 50, 82, 0.25); }
.pv-chip, .gf-habit, .gf-sort-item { touch-action: none; user-select: none; -webkit-user-select: none; }
.pv-chip.dragging, .gf-habit.dragging { opacity: 0.4; }
.gf-sort-item.dragging { border-color: #1e40af; background: #dbeafe; }
.pv-phrase { user-select: none; }

/* ---- Lesson 7: the Draft-o-matic (templates/lesson7/draft.html.ep) and the
   Markdown editor (public/md-editor.js). ZSL-13's page: a rail with the four
   steps on the left and the current step beside it, in ZSL-13's colours. The
   section window fills the browser window and is laid out like the exam editor:
   the AI at the side, the text in the middle. */
.dom-save { font-size: 0.8rem; font-weight: 400; color: #dbeafe; margin-left: 0.5rem; }
.dom-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0.5rem 0 0.4rem; }
.dom-bar button { font-size: 0.85rem; padding: 0.3rem 0.8rem; }
.dom-bar select { font: inherit; padding: 0.25rem 0.4rem; border: 1px solid #c7d7ed; border-radius: 6px; background: #ffffff; color: #1a3252; max-width: 22rem; }
/* The heading with the essay controls at its right (teacher, 2026-11-29);
   the AI model sits in the rail, under the steps. */
.dom-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.25rem 0 0.6rem; }
.dom-top h2 { flex: 1 1 18rem; margin: 0; }
.dom-top .dom-bar { margin: 0 0 0 auto; }
.dom-model { display: block; margin: 0.8rem 0 0; font-size: 0.85rem; font-weight: bold; }
.dom-model select { display: block; width: 100%; box-sizing: border-box; margin-top: 0.2rem; font: inherit; font-weight: normal; padding: 0.25rem 0.4rem; border: 1px solid #c7d7ed; border-radius: 6px; background: #ffffff; color: #1a3252; }
.dom-model select:focus-visible { outline: 3px solid #1e40af; outline-offset: 2px; }
.dom-wrap { display: flex; gap: 1.5rem; align-items: flex-start; margin-top: 0.75rem; }
.dom-rail { flex: 0 0 240px; width: 240px; min-width: 0; position: sticky; top: 1rem; }
.dom-main { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .dom-wrap { flex-direction: column; }
  .dom-rail { position: static; width: 100%; flex-basis: auto; }
}
.rail-step { display: block; width: 100%; text-align: left; border: 1px solid #cdd7e5; border-radius: 8px; padding: 0.5rem 0.7rem; margin: 0.4rem 0; background: #ffffff; color: #1a3252; }
.rail-step:hover, .rail-step:active { background: #eef4fb; }
.rail-step.current { border-color: #3b5a82; box-shadow: 0 0 0 2px #3b5a82 inset; }
.rail-step:disabled { opacity: 0.5; cursor: not-allowed; background: #ffffff; }
.rail-step .rs-num { display: inline-block; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; border-radius: 50%; background: #3b5a82; color: #ffffff; font-size: 0.85rem; margin-right: 0.4rem; }
.rail-step .rs-title { font-weight: bold; }
.rail-step .rs-sum { display: block; font-size: 0.8rem; color: #475569; margin-top: 0.25rem; overflow-wrap: anywhere; }
.rail-badges-title { font-weight: bold; font-size: 0.85rem; margin: 1rem 0 0.3rem; color: #166534; }
.margin-badge { display: block; width: 100%; text-align: left; border: 1px solid #1a7d3c; background: #f0faf3; color: #0f5c2c; border-radius: 6px; padding: 0.25rem 0.5rem; margin: 0.25rem 0; font-size: 0.8rem; }
.margin-badge:hover, .margin-badge:active { background: #dcf3e3; }

/* A bit more colour (teacher, 2026-11-29): each step has its own accent, on
   its number in the rail, along the top of its box and in its heading; the
   muse buttons have the site's muse colour, Save is green. White text on
   every one of these is 4.5:1 or more. On paper they stay as they were. */
.rail-step[data-step="1"], #step1 { --step: #1e40af; --step-pale: #eff6ff; }
.rail-step[data-step="2"], #step2 { --step: #0e7490; --step-pale: #ecfeff; }
.rail-step[data-step="3"], #step3 { --step: #7c3aed; --step-pale: #f5f3ff; }
.rail-step[data-step="4"], #step4 { --step: #b45309; --step-pale: #fffbeb; }
@media screen {
  .rail-step .rs-num { background: var(--step, #3b5a82); }
  .rail-step.current { border-color: var(--step, #3b5a82); box-shadow: 0 0 0 2px var(--step, #3b5a82) inset; background: var(--step-pale, #ffffff); }
  .dom-main .dom-step { border-top: 6px solid var(--step, #3b5a82); }
  .dom-step > h3 { color: var(--step, #1a3252); font-size: 1.1rem; }
  .topic-buttons button { background: #0e7490; }
  .topic-buttons button:hover, .topic-buttons button:active { background: #155e75; }
  #finish-btn { background: #15803d; }
  #finish-btn:hover, #finish-btn:active { background: #166534; }
  .explore-thesis { border-left: 4px solid #7c3aed; background: #f5f3ff; }
}

.dom-step { border: 1px solid #cdd7e5; border-radius: 8px; padding: 1rem 1.25rem; background: #ffffff; display: none; }
.dom-step.active { display: block; }
.dom-step h3 { margin-top: 0; }
.dom-step .actions { margin: 0.6rem 0 0.25rem; }
.topic-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
/* Step 1: the box first, then the muse buttons under it, with their label. */
.dom-muse { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin: 0.6rem 0 0; }
.dom-muse-label { font-weight: bold; color: #0e7490; }
.dom-muse .topic-buttons { margin: 0; }
.dom-step textarea.dom-input { min-height: 9.5rem; resize: vertical; }
/* Step 3: the topic and the controlling idea, with no label. */
.explore-thesis { border-left: 4px solid #3b5a82; border-radius: 0 6px 6px 0; padding: 0.5rem 0.8rem; margin: 0.25rem 0 0.75rem; }
.explore-thesis:empty { display: none; }
.et-topic { display: block; font-size: 0.9rem; color: #3b5a82; }
.et-idea { display: block; }
/* The foot of step 4: Save and Download at the left, the muse at the right. */
.dom-bottom #map-idea-btn { margin-left: auto; }
.topic-buttons button.fun { background: #7a4f9e; }
.topic-buttons button.fun:hover { background: #643f84; }
.dom-input, .explore-q textarea, .de-main textarea { width: 100%; box-sizing: border-box; font: inherit; color: #1a3252; padding: 0.5rem 0.65rem; border: 1px solid #c7d7ed; border-radius: 6px; background: #ffffff; }
.dom-add { display: flex; gap: 0.4rem; }
.dom-add input { flex: 1; min-width: 0; font: inherit; color: #1a3252; padding: 0.4rem 0.65rem; border: 1px solid #c7d7ed; border-radius: 6px; }
.dom-input:focus-visible, .dom-add input:focus-visible, .dom-bar select:focus-visible { outline: 3px solid #1e40af; outline-offset: 2px; }
.count-note { font-size: 0.85rem; color: #3b5a82; }
.count-note.bad { color: #b91c1c; }
.explore-q { margin: 0.75rem 0; }
.explore-q label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
button.dom-ai { background: #ffffff; color: #1e40af; border: 1.5px solid #1e40af; }
button.dom-ai:hover, button.dom-ai:active { background: #dbeafe; }
.dom-ideas { margin-top: 0.5rem; }
.dom-ideas:empty { display: none; }
/* The muse's mind-map as a picture (only from a model that can draw): a button, so it can be enlarged from the keyboard. */
button.mm-pic, button.mm-pic:hover, button.mm-pic:active { display: block; width: 100%; max-width: 44rem; padding: 0; margin: 0.4rem 0; border: 1px solid #c7d7ed; border-radius: 6px; background: #ffffff; cursor: zoom-in; }
button.mm-pic img { display: block; width: 100%; height: auto; border-radius: 6px; }
dialog.mm-lightbox { max-width: 96vw; }
dialog.mm-lightbox img { display: block; width: min(92vw, 75rem); height: auto; max-height: 80vh; object-fit: contain; margin: 0 auto 0.6rem; }
.dom-ideas, .de-out { overflow-wrap: anywhere; }
.md-view { white-space: pre-wrap; border-left: 4px solid #c7d7ed; padding: 0.3rem 0 0.3rem 0.8rem; }

.skeleton { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }
.struct-box { position: relative; border: 2px solid #3b5a82; border-radius: 8px; padding: 0.6rem 0.9rem; cursor: pointer; background: #f5f8fc; transition: transform 0.12s ease, opacity 0.12s ease; }
.struct-box:hover { background: #e7eff9; }
.struct-box.intro, .struct-box.conclusion { border-style: dashed; background: #fbf6ec; }
.struct-box.intro:hover, .struct-box.conclusion:hover { background: #f6ecd6; }
.sb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.5rem; }
.sb-open { flex: 1; min-width: 8rem; text-align: left; background: none; color: #1a3252; font-weight: bold; padding: 0.1rem 0.2rem; border-radius: 4px; }
.sb-open:hover, .sb-open:active { background: none; text-decoration: underline; }
.sb-tools { display: flex; gap: 0.25rem; margin-left: auto; }
.sb-tools button { font-size: 0.75rem; padding: 0.15rem 0.5rem; background: #3b5a82; }
.sb-tools button:hover { background: #1a3252; }
.sb-tools button.danger { background: #b91c1c; }
.sb-tools button:disabled { opacity: 0.35; cursor: default; }
.sb-preview { font-size: 0.85rem; color: #475569; margin-top: 0.3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.sb-empty { font-size: 0.85rem; color: #64748b; font-style: italic; margin-top: 0.3rem; }
.sb-badges { font-size: 0.8rem; color: #166534; margin-top: 0.2rem; }
.struct-box.drag-src { opacity: 0.4; }
.drag-handle { cursor: grab; color: #3b5a82; user-select: none; }
.merge-zone { display: none; position: absolute; left: 35%; right: 35%; top: 22%; height: 56%; align-items: center; justify-content: center; background: rgba(30, 64, 175, 0.12); border: 2px dashed #1e40af; border-radius: 6px; font-size: 0.8rem; font-weight: bold; color: #1e40af; text-align: center; pointer-events: none; }
.skeleton.dragging .struct-box.body:not(.drag-src) .merge-zone { display: flex; pointer-events: auto; }
.merge-zone.hot { background: rgba(30, 64, 175, 0.3); border-style: solid; }

/* Lesson 7, "Writing devices in your paper" (templates/lesson7/devices.html.ep):
   a box for each device with the passage from the chosen paper; the device
   itself is marked, in colour and in weight, so that it also shows on paper. */
.l7-device { border: 1px solid #c7d7ed; border-left: 4px solid #cc8800; border-radius: 6px; background: #f8fafc; padding: 0.6rem 1rem; margin-bottom: 0.75rem; }
.l7-device.none { border-left-color: #c7d7ed; background: #ffffff; }
.l7-device h3 { margin: 0 0 0.15rem; }
.l7-device .note { margin-bottom: 0.4rem; }
.l7-device blockquote { margin: 0; padding: 0; border: 0; }
.l7-device blockquote p { margin: 0 0 0.25rem; }
.l7-device blockquote footer { font-size: 0.85rem; color: #3b5a82; }

/* Lesson 7, Exercise 3: TEC recognition (/l07/tec). The paragraph is ordinary
   running text, set larger and with tall lines so that a finger can hit one
   sentence; nothing stands between the sentences. The three colours are last
   semester's TEC colours: the navy text on each is at least 6.9:1, and a
   marked sentence also carries its letter, so nothing depends on colour
   alone. The bar with T, E, C and Check stays at the foot of the window. */
.tec-how { color: #3b5a82; }
.tec-text { font-size: 1.3rem; line-height: 2.15; margin: 0.4rem 0 1rem; }
.tec-live .tec-s { cursor: pointer; padding: 0.3em 0.12em; border-radius: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; -webkit-tap-highlight-color: transparent; }
.tec-live .tec-s:hover { background: #eef3fb; }
.tec-s:focus-visible { outline: 3px solid #cc8800; outline-offset: 1px; }
.tec-s.picked { outline: 3px dashed #1a3252; outline-offset: 1px; }
.tec-live .tec-s[data-mark="T"] { background: #c4d0de; }
.tec-live .tec-s[data-mark="E"] { background: #ddc097; }
.tec-live .tec-s[data-mark="C"] { background: #c8bcdb; }
.tec-tag:not(:empty) { display: inline-block; font-size: 0.7em; font-weight: 700; line-height: 1.3; min-width: 1.35em; text-align: center; margin-right: 0.3em; border: 1px solid #1a3252; border-radius: 3px; background: #ffffff; color: #1a3252; vertical-align: 0.15em; }
.tec-s.wrong { text-decoration: underline wavy #b91c1c; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.tec-bar { position: sticky; bottom: 0; background: #ffffff; border-top: 2px solid #c7d7ed; padding: 0.6rem 0 0.5rem; }
.tec-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.5rem; max-width: 34rem; }
.tec-go { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.4rem; }
button.tec-tool { min-height: 3rem; padding: 0.3rem 0.4rem; font-size: 0.95rem; line-height: 1.2; color: #1a3252; border: 2px solid #1a3252; border-radius: 8px; }
button.tec-tool b { font-size: 1.3rem; margin-right: 0.3rem; }
@media (max-width: 480px) { button.tec-tool b { display: block; margin: 0; } button.tec-tool { font-size: 0.8rem; } }
button.tec-tool.tec-t, button.tec-tool.tec-t:hover, button.tec-tool.tec-t:active { background: #c4d0de; }
button.tec-tool.tec-e, button.tec-tool.tec-e:hover, button.tec-tool.tec-e:active { background: #ddc097; }
button.tec-tool.tec-c, button.tec-tool.tec-c:hover, button.tec-tool.tec-c:active { background: #c8bcdb; }
button.tec-tool[aria-pressed="true"] { box-shadow: 0 0 0 4px #1a3252; }
.tec-go button { min-height: 3rem; font-size: 1.05rem; padding: 0.4rem 1.2rem; }
.tec-result { font-weight: 600; margin: 0; min-height: 1.5em; }
.l7-device mark, p mark { background: #fde68a; color: inherit; font-weight: 600; padding: 0 0.1em; }
.l7-none { margin: 0; color: #475569; font-style: italic; }

dialog.dom-editor { margin: auto; width: min(1500px, 96vw); height: min(940px, 94vh); max-width: none; max-height: none; border: 1px solid #3b5a82; border-radius: 10px; padding: 0; color: #1a3252; background: #ffffff; overflow: hidden; }
dialog.dom-editor[open] { display: flex; flex-direction: column; }
dialog.dom-editor::backdrop { background: rgba(26, 50, 82, 0.45); }
.de-head { background: #3b5a82; color: #ffffff; padding: 0.55rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.de-head h3 { margin: 0; color: #ffffff; font-size: 1.05rem; background: none; padding: 0; border: 0; overflow-wrap: anywhere; }
.de-head button { background: transparent; font-size: 1.4rem; line-height: 1; padding: 0.1rem 0.5rem; }
.de-head button:hover { background: #1a3252; }
.de-head button:focus-visible { outline-color: #ffffff; }
.de-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(230px, 340px) minmax(0, 1fr); gap: 1.25rem; padding: 0.9rem 1.25rem 1rem; }
.de-main { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.de-side { grid-column: 1; grid-row: 1; overflow: auto; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; padding: 2px; }
@media (max-width: 860px) {
  dialog.dom-editor { height: 96vh; }
  .de-body { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .de-main, .de-side { grid-column: 1; grid-row: auto; overflow: visible; }
  .de-main { min-height: 70vh; }
}
.de-label { font-weight: bold; font-size: 0.95rem; }
.de-main textarea { margin-top: 0.2rem; resize: vertical; }
.de-main textarea:focus-visible { outline: 3px solid #1e40af; outline-offset: 2px; }
.de-toolbar { display: flex; align-items: center; gap: 0.75rem; margin: 0.7rem 0 0.3rem; }
.word-count { margin-left: auto; font-size: 0.85rem; color: #3b5a82; font-variant-numeric: tabular-nums; }
button.md-guide-btn { background: #ffffff; color: #1e40af; border: 1.5px solid #1e40af; font-size: 0.85rem; padding: 0.15rem 0.7rem; }
button.md-guide-btn:hover, button.md-guide-btn:active { background: #dbeafe; }
.de-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.6rem; }
.de-block { border: 1px solid #c7d7ed; border-radius: 8px; padding: 0.55rem 0.75rem 0.65rem; background: #f8fafc; }
.de-block h4 { margin: 0 0 0.35rem; }
.de-buttons { display: flex; flex-direction: column; gap: 0.35rem; }
.de-buttons button { text-align: left; font-size: 0.9rem; padding: 0.35rem 0.8rem; }
.de-out { font-size: 0.9rem; }
.de-out.empty { color: #3b5a82; font-style: italic; }
.de-out h4, .dom-ideas h4 { margin: 0 0 0.25rem; }
.badge-row { border: 1px solid #cdd7e5; border-radius: 6px; padding: 0.35rem 0.5rem; margin: 0.35rem 0; background: #ffffff; }
.badge-row label { font-weight: 600; }
.badge-row .mini { font-size: 0.72rem; padding: 0.1rem 0.5rem; margin-left: 0.4rem; background: #3b5a82; }
.badge-row .cc-fb { font-size: 0.8rem; color: #475569; margin-top: 0.25rem; }
.badge-row .cc-fb:empty { display: none; }
.gtip { border-left: 5px solid #64748b; padding: 0.35rem 0.6rem; margin: 0.3rem 0; background: #ffffff; border-radius: 0 6px 6px 0; }
.gtip .sev { display: inline-block; min-width: 1.4rem; text-align: center; border-radius: 4px; color: #ffffff; font-weight: bold; padding: 0 0.3rem; margin-right: 0.4rem; background: #64748b; }
.gtip.sev-5 { border-left-color: #b00020; } .gtip.sev-5 .sev { background: #b00020; }
.gtip.sev-4 { border-left-color: #c2410c; } .gtip.sev-4 .sev { background: #c2410c; }
.gtip.sev-3 { border-left-color: #a16207; } .gtip.sev-3 .sev { background: #a16207; }
.gtip.sev-2 { border-left-color: #4d7c0f; } .gtip.sev-2 .sev { background: #4d7c0f; }
.gtip.sev-1 { border-left-color: #1d4ed8; } .gtip.sev-1 .sev { background: #1d4ed8; }
dialog.md-guide { max-width: 44rem; }
dialog.md-guide, dialog#split-modal { margin: auto; }

/* The Markdown editor: plain text that looks the way its signs say. The signs
   (md-mark) stay on the page, in a quieter colour. */
.md-editor { flex: 1; min-height: 12rem; overflow: auto; position: relative; border: 1px solid #c7d7ed; border-radius: 6px; padding: 0.9rem 1.1rem; background: #ffffff; color: #1a3252; font-size: 1.05rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.md-editor:focus { outline: 3px solid #1e40af; outline-offset: 2px; }
.md-editor.is-empty::before { content: attr(data-placeholder); position: absolute; color: #64748b; font-style: italic; pointer-events: none; }
.md-mark { color: #64748b; font-weight: 400; font-style: normal; }
.md-h { font-weight: 700; line-height: 1.3; }
.md-h1 { font-size: 1.5em; }
.md-h2 { font-size: 1.25em; }
.md-h3 { font-size: 1.1em; }
.md-b { font-weight: 700; }
.md-i { font-style: italic; }
.md-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: #f1f5f9; border-radius: 3px; }
.md-quote { color: #3b5a82; font-style: italic; }
.md-link { color: #1e40af; text-decoration: underline; }
.md-li { color: #1e40af; font-weight: 700; }
