/* ==================================================================
   Titan Toolkit — Lorain High School
   Brand:  Titans Blue · Steel Gray · Black
   Print:  Outlines only. No fills. Ink-efficient.
================================================================== */

:root {
  --titan: #1E4A8C;
  --titan-dark: #0F2E5C;
  --titan-light: #4A78B8;
  --titan-soft: #EAF1FB;
  --steel: #5C6770;
  --steel-light: #8A949C;
  --steel-soft: #F0F2F4;
  --ink: #0A0A0A;
  --rule: #D8DCE0;
  --paper: #FFFFFF;
  --canvas: #F7F8FA;
}

/* ---------- App chrome ---------- */
.cat-group-h {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--steel-light);
  padding: 10px 12px 4px;
  margin-top: 4px;
}
.cat-group-hint {
  font-size: 9px; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--steel-light); margin-left: 6px;
}
.cat-tree { margin-bottom: 1px; }
.cat-btn-tree { padding: 8px 10px; }
.cat-chevron {
  display: inline-block;
  width: 12px;
  margin-right: 4px;
  color: var(--steel-light);
  font-size: 10px;
  transition: transform .15s ease;
}
.cat-tree.expanded .cat-chevron { transform: rotate(90deg); color: var(--titan); }
.cat-subs {
  display: none;
  margin: 2px 0 6px 12px;
  padding-left: 8px;
  border-left: 1px dashed var(--rule);
  gap: 2px;
}
.cat-tree.expanded .cat-subs { display: flex; flex-direction: column; }
.cat-sub-btn {
  padding: 5px 8px !important;
  font-size: 12px;
  color: var(--steel);
  border-radius: 4px;
  transition: background .12s, color .12s;
  border-left: 2px solid transparent;
  display: flex; align-items: center; gap: 6px;
}
.cat-sub-btn:hover { background: var(--steel-soft); color: var(--ink); }
.cat-sub-btn.active {
  background: var(--titan-soft);
  color: var(--titan);
  font-weight: 600;
  border-left-color: var(--titan);
}
.cat-sub-count {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  background: var(--titan-soft);
  color: var(--titan);
  border-radius: 999px;
  padding: 1px 6px;
}
.cat-sub-empty {
  margin-left: auto;
  font-size: 10px; font-style: italic;
  color: var(--steel-light);
}

.cat-btn { color: #374151; transition: background .12s, color .12s; border-left: 3px solid transparent; }
.cat-btn.active {
  background: var(--titan-soft);
  color: var(--titan);
  font-weight: 600;
  border-left-color: var(--titan);
}
.cat-btn:hover { background: var(--steel-soft); }

.tool-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
}
.tool-card:hover {
  border-color: var(--titan);
  box-shadow: 0 6px 18px -10px rgba(30,74,140,.25);
  transform: translateY(-1px);
}
.tool-card .ic {
  min-width: 42px; height: 38px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1.5px solid var(--titan);
  color: var(--titan);
  background: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
}
.tool-card .ic { font-feature-settings: 'tnum' on; }
.tool-card[data-status="soon"] { opacity: .55; cursor: not-allowed; }
.tool-card[data-status="soon"]:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.tool-card[data-status="soon"] .ic { border-color: var(--steel-light); color: var(--steel-light); }

.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .03em;
  border: 1px solid transparent;
}
.badge-tier1 { background: #fff; color: var(--titan); border-color: var(--titan); }
.badge-tier2 { background: #fff; color: var(--steel); border-color: var(--steel-light); }
.badge-tier3 { background: #fff; color: #4f46e5; border-color: #c7d2fe; }
.badge-soon  { background: var(--steel-soft); color: var(--steel); }

.wicor-pill {
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  color: var(--steel);
  border-radius: 3px;
  background: #fff;
}

/* Card pill rows — WICOR + EL domain stacks */
.card-pills { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.card-pill-row { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.pill {
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  font-family: "Inter", system-ui, sans-serif;
}
.pill-wicor { color: var(--steel); background: var(--steel-soft); border-color: var(--rule); }
.pill-domain { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.pill-siop   { color: #14532d; background: #dcfce7; border-color: #86efac; }

/* ---------- Generator surface ---------- */
.gen-shell { min-height: calc(100vh - 56px); }
.gen-form label {
  font-size: 12px; font-weight: 600; color: var(--steel);
  margin-bottom: 4px; display: block;
  text-transform: uppercase; letter-spacing: .03em;
}
.gen-form input,
.gen-form select,
.gen-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.gen-form input:focus,
.gen-form select:focus,
.gen-form textarea:focus {
  outline: none;
  border-color: var(--titan);
  box-shadow: 0 0 0 3px rgba(30,74,140,.15);
}
.gen-form .field + .field { margin-top: 14px; }
.gen-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .12s;
}
.btn-primary { background: var(--titan); color: #fff; }
.btn-primary:hover { background: var(--titan-dark); }
.btn-ghost { background: #fff; color: var(--steel); border-color: var(--rule); }
.btn-ghost:hover { background: var(--steel-soft); border-color: var(--steel-light); color: var(--ink); }

/* ---------- Worksheet preview (screen) ---------- */
.preview-frame {
  background: var(--canvas);
  padding: 24px;
  border-radius: 8px;
  min-height: 500px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  border: 1px solid var(--rule);
}

/* ---------- The PRINTED page (screen view) ---------- */
.sheet {
  background: #fff;
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto 16px;
  padding: 0.55in 0.7in;
  box-shadow: 0 4px 18px -8px rgba(0,0,0,.15);
  color: #000;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 11.5pt;
  line-height: 1.4;
}
.sheet-header {
  border-bottom: 1.5pt solid #000;
  padding-bottom: 6px;
  margin-bottom: 14px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9.5pt;
}
.sheet-header .school { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 9pt; color: #000; }
.sheet-header .meta { color: #000; }
.sheet-header .name-line { font-weight: 600; }
.sheet-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18pt; font-weight: 700;
  margin: 0 0 4px; color: #000;
}
.sheet-eq { font-style: italic; color: #000; font-size: 11pt; margin-bottom: 14px; }
.sheet-footer {
  margin-top: 18px; padding-top: 6px;
  border-top: 0.5pt solid #000;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 8pt; color: #000;
  display: flex; justify-content: space-between;
}

/* Cornell — ink-light: hairline borders, no fills, dashed rule lines */
.cornell-grid {
  display: grid;
  grid-template-columns: 2.2in 1fr;
  border: 1pt solid #000;
}
.cornell-cue {
  border-right: 0.75pt solid #000;
  padding: 8px 10px;
  background: #fff;
}
.cornell-cue ol { padding-left: 18px; margin: 0; }
.cornell-cue li { margin-bottom: 14px; font-size: 10.5pt; }
.cornell-cue .lbl,
.cornell-summary .lbl {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: #000; margin-bottom: 6px;
}
.cornell-notes {
  padding: 10px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #999 23px, #999 23.5px);
  min-height: 7in;
}
.cornell-summary {
  border: 1pt solid #000; border-top: none;
  padding: 10px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #999 23px, #999 23.5px);
  background-position: 0 28px;
  min-height: 1.3in;
}

/* BBS — outline boxes only */
.bbs-kernel {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin: 10px 0 14px;
  font-size: 12pt;
  font-weight: 600;
}
.bbs-box {
  border: 1pt solid #000;
  padding: 8px 12px 10px;
  min-height: 1.1in;
  margin-bottom: 12px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #999 23px, #999 23.5px);
  background-position: 0 28px;
}
.bbs-box .conj {
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 10.5pt;
  color: #000;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
  display: inline-block;
}
.bbs-legend {
  font-size: 9.5pt;
  font-family: "Inter", sans-serif;
  color: #000;
  margin-bottom: 10px;
  border: 0.5pt solid #000;
  padding: 6px 10px;
  display: inline-block;
}

/* SPR — outline table */
.spr-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spr-tbl th, .spr-tbl td {
  border: 0.75pt solid #000;
  padding: 8px;
  vertical-align: top;
}
.spr-tbl th {
  background: #fff;
  color: #000;
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  border-bottom: 1.25pt solid #000;
}
.spr-tbl .crit { background: #fff; font-weight: 600; width: 40%; }
.spr-tbl .blank { min-height: 0.9in; }
.spr-tbl .col-h { width: 30%; }
.spr-self {
  margin-top: 14px;
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  border-top: 0.5pt solid #000;
  padding-top: 8px;
}

/* Frayer — 4-quadrant card with a horizontal word band (no overlap) */
.frayer-card { margin-bottom: 10px; }
.frayer-full { min-height: 8.6in; }
.frayer-half { min-height: 4.4in; }
.frayer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto 1fr;
  border: 1pt solid #000;
  min-height: inherit;
}
.frayer-full .frayer-grid { min-height: 8.6in; }
.frayer-half .frayer-grid { min-height: 4.4in; }
.frayer-quad {
  border: 0.5pt solid #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
  min-height: 1.4in;
}
.frayer-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 6px;
  display: inline-block;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
  align-self: flex-start;
}
.frayer-write {
  flex: 1;
  min-height: 0.9in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  display: flex;
}
.frayer-write .write-area { flex: 1; }
.frayer-word-band {
  grid-column: 1 / span 2;
  border-top: 1.25pt solid #000;
  border-bottom: 1.25pt solid #000;
  background: #fff;
  text-align: center;
  padding: 8px 10px;
}
.frayer-word {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: .01em;
}
.frayer-gap { height: 16px; }

/* Marking the Text */
.mtt-purpose {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.mtt-purpose-lbl,
.mtt-legend-lbl {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.mtt-legend {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.mtt-legend ul {
  margin: 0; padding: 0; list-style: none;
  columns: 2; column-gap: 18px;
  font-family: "Inter", sans-serif;
  font-size: 9.5pt;
}
.mtt-legend li { padding: 1px 0; break-inside: avoid; }
.mtt-text { font-size: 11.5pt; line-height: 1.9; }
.mtt-para {
  display: grid;
  grid-template-columns: 0.35in 1fr 1.4in;
  margin-bottom: 10px;
  page-break-inside: avoid;
}
.mtt-num {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  border: 0.75pt solid #000;
  width: 0.3in; height: 0.3in;
  display: grid; place-items: center;
  margin-top: 2px;
}
.mtt-body { margin: 0; padding: 0 8px 0 4px; }
.mtt-margin {
  border-left: 0.5pt dashed #000;
  padding-left: 6px;
}

/* DOK / Costa stems — list output */
.dok-section { margin-bottom: 16px; }
.dok-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
}
.dok-sub {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-style: italic;
  color: #333;
  margin-top: 2px; margin-bottom: 6px;
}
.dok-stems {
  margin: 0; padding-left: 22px;
  font-size: 11pt;
}
.dok-stems li { margin-bottom: 4px; }
.dok-stems li u { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* CER + SPO — outlined argument scaffold */
.cer-section { margin-bottom: 14px; }
.cer-section-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 1pt solid #000;
}
.cer-h-sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-size: 9pt;
  color: #444;
  margin-left: 6px;
}
.cer-row { display: grid; grid-template-columns: 1.4in 1fr; gap: 8px; margin-bottom: 6px; }
.cer-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt;
  font-weight: 700;
  padding-top: 4px;
}
.cer-frame {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: 8.5pt;
  color: #444;
  margin-top: 2px;
}
.cer-line {
  border-bottom: 0.75pt solid #000;
  min-height: 0.45in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
}
.cer-box {
  border: 0.75pt solid #000;
  min-height: 0.7in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 4px;
}
.cer-box-tall { min-height: 1.2in; }

/* Quickwrite — ink-light half- or full-sheet */
.sheet-half-stack { padding-top: 0.45in; padding-bottom: 0.45in; }
.qw-card { padding: 0; margin-bottom: 0; }
.qw-card.qw-half { min-height: 4.6in; }
.qw-card.qw-full { min-height: 9.4in; }
.qw-divider {
  border-top: 0.5pt dashed #000;
  margin: 14px 0;
  position: relative;
}
.qw-divider::after {
  content: '✂  cut here';
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  background: #fff; padding: 0 8px;
  font-family: "Inter", sans-serif; font-size: 7.5pt; color: #555;
  letter-spacing: .05em;
}
.qw-mini-head {
  display: flex; justify-content: space-between;
  font-family: "Inter", sans-serif; font-size: 8.5pt;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 4px; margin-bottom: 10px;
}
.qw-mini-head span:first-child { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.qw-meta { display: flex; gap: 8px; margin-bottom: 8px; }
.qw-tag, .qw-time {
  border: 1pt solid #000;
  padding: 2px 8px;
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.qw-prompt {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 11.5pt;
}
.qw-frames {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  margin-bottom: 6px;
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
}
.qw-frames-lbl {
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  font-size: 8.5pt;
}
.qw-frame {
  border: 0.5pt solid #000;
  padding: 1px 6px;
  background: #fff;
}
.qw-write {
  flex: 1;
  border: 1pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #999 22px, #999 22.4px);
  background-position: 0 4px;
  min-height: 2.6in;
}
.qw-card.qw-full .qw-write { min-height: 7.5in; }

/* ========== Tier 2 worksheets ========== */

/* Graphic Organizers */
.org-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin: 8px 0 4px;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 2px;
}
.org-box {
  border: 0.75pt solid #000;
  min-height: 0.75in;
  margin-bottom: 6px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 4px;
}
.org-box-tall { min-height: 1.2in; }
.org-line {
  border-bottom: 0.5pt solid #000;
  height: 24px;
}

/* Compare T-chart */
.org-tt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1pt solid #000;
}
.org-tt-h {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 9.5pt;
  padding: 6px 10px;
  border-bottom: 1pt solid #000;
  border-right: 0.5pt solid #000;
}
.org-tt-h:last-child { border-right: none; }
.org-tt-c {
  min-height: 0.5in;
  border-right: 0.5pt solid #000;
  border-bottom: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
}
.org-tt-c:nth-child(2n) { border-right: none; }
.org-summary { margin-top: 10px; }

/* Cause & Effect */
.org-cause {
  display: grid;
  grid-template-columns: 1fr 0.4in 1fr;
  gap: 10px;
  align-items: stretch;
}
.org-arrow {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24pt;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Sequence */
.org-seq { display: grid; gap: 8px; }
.org-seq-step {
  display: grid;
  grid-template-columns: 0.45in 1fr;
  gap: 8px;
  align-items: stretch;
}
.org-seq-num {
  border: 1pt solid #000;
  width: 0.4in; height: 0.4in;
  display: grid; place-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12pt;
  margin-top: 4px;
}

/* Argument map */
.org-arg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

/* Problem & Solution */
.org-ps { }

/* KWL */
.org-kwl {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.org-kwl-col { display: flex; flex-direction: column; }

/* Venn Diagram */
.org-venn { display: grid; grid-template-columns: 1fr; gap: 12px; }
.org-venn-stage {
  position: relative;
  height: 3.4in;
  border: 0.5pt dashed #000;
}
.org-venn-circle {
  position: absolute;
  top: 50%;
  width: 2.6in; height: 2.6in;
  border: 1pt solid #000;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: start center;
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  padding-top: 10px;
}
.org-venn-left  { transform: translate(0, -50%);  left: 0.6in; }
.org-venn-right { transform: translate(0, -50%);  right: 0.6in; }
.org-venn-label {
  position: absolute;
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  color: #555;
  letter-spacing: .03em;
  background: transparent;
}
.org-venn-only-a { left: 0.7in;  bottom: 0.2in; }
.org-venn-only-b { right: 0.7in; bottom: 0.2in; }
.org-venn-both   { left: 50%; transform: translateX(-50%); bottom: 0.2in; }
.org-venn-notes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* Fishbone */
.org-fish {
  display: grid;
  grid-template-columns: 1fr 2.2in;
  gap: 10px;
}
.org-fish-rows { display: grid; gap: 8px; }
.org-fish-row { display: grid; grid-template-columns: 1.3in 1fr; gap: 8px; align-items: stretch; }
.org-fish-head { display: flex; flex-direction: column; }

/* Concept web */
.org-web {
  position: relative;
  height: 6.5in;
  border: 0.5pt dashed #000;
}
.org-web-center,
.org-web-node {
  position: absolute;
  border: 1pt solid #000;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 1.4in;
  min-height: 0.5in;
  display: grid; place-items: center;
  text-align: center;
}
.org-web-center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-width: 1.5pt;
  font-weight: 700;
}
.org-web-node-1 { top: 6%; left: 50%; transform: translateX(-50%); }
.org-web-node-2 { top: 22%; right: 6%; }
.org-web-node-3 { bottom: 22%; right: 6%; }
.org-web-node-4 { bottom: 6%; left: 50%; transform: translateX(-50%); }
.org-web-node-5 { bottom: 22%; left: 6%; }
.org-web-node-6 { top: 22%; left: 6%; }

/* Socratic Seminar */
.soc-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1pt solid #000;
  padding-bottom: 2px;
  margin-bottom: 6px;
}
.soc-central {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.soc-q { font-size: 12pt; font-weight: 600; }
.soc-section { margin-bottom: 10px; }
.soc-list, .soc-moves { margin: 0; padding-left: 22px; font-size: 11pt; }
.soc-list li, .soc-moves li { margin-bottom: 3px; }
.soc-observer { margin-top: 10px; }
.soc-tally {
  width: 100%;
  border-collapse: collapse;
}
.soc-tally th, .soc-tally td {
  border: 0.75pt solid #000;
  padding: 6px 10px;
  text-align: left;
  font-size: 10.5pt;
}
.soc-tally th {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.soc-tally-blank { min-height: 0.45in; height: 0.45in; }

/* ISN Spread */
.isn-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1pt solid #000;
  min-height: 8.5in;
}
.isn-pane {
  border-right: 0.5pt dashed #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
}
.isn-pane:last-child { border-right: none; }
.isn-h {
  display: flex; flex-direction: column;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 4px;
  margin-bottom: 8px;
}
.isn-side {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #000;
}
.isn-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12pt; font-weight: 600;
}
.isn-task {
  font-size: 10.5pt;
  border: 0.5pt solid #000;
  padding: 6px 8px;
  margin-bottom: 8px;
}
.isn-area {
  flex: 1;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
}
.isn-area-tall { min-height: 7in; }

/* ========== Reciprocal Teaching ========== */
.recip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.recip-card {
  border: 1pt solid #000;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  min-height: 4.4in;
  break-inside: avoid;
}
.recip-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15pt;
  font-weight: 700;
  border-bottom: 1pt solid #000;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.recip-job { font-size: 11pt; margin-bottom: 8px; }
.recip-lbl {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-top: 6px; margin-bottom: 3px;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
}
.recip-stems { margin: 0 0 6px; padding-left: 18px; font-size: 10pt; }
.recip-stems li { margin-bottom: 2px; }
.recip-notes {
  flex: 1; min-height: 1.4in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  display: flex;
}
.recip-notes .write-area { flex: 1; }

/* Reciprocal group log */
.recip-log { width: 100%; border-collapse: collapse; margin-top: 8px; }
.recip-log th, .recip-log td {
  border: 0.75pt solid #000;
  padding: 6px 8px;
  vertical-align: top;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 10.5pt;
}
.recip-log th {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  border-bottom: 1.25pt solid #000;
}
.recip-log .recip-log-num { width: 0.5in; text-align: center; font-weight: 700; }
.recip-log td textarea {
  width: 100%; min-height: 0.9in;
  border: none; outline: none; resize: none;
  background: transparent;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 10.5pt; line-height: 18px;
  color: #000;
}

/* ========== Anchor Chart ========== */
.anchor-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 26pt;
  border: 1.5pt solid #000;
  padding: 14px 18px;
  margin: 8px 0 14px;
  text-align: center;
  letter-spacing: .01em;
}
.anchor-half .anchor-title { font-size: 18pt; padding: 10px 14px; }
.anchor-steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 10px;
  counter-reset: anchor;
}
.anchor-steps li {
  border: 1pt solid #000;
  padding: 10px 14px 10px 56px;
  position: relative;
  font-size: 13pt;
  min-height: 0.55in;
  counter-increment: anchor;
}
.anchor-steps li::before {
  content: counter(anchor);
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 0.4in; height: 0.4in;
  border: 1.5pt solid #000;
  display: grid; place-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14pt;
}
.anchor-half .anchor-steps li { font-size: 11pt; min-height: 0.4in; padding-left: 46px; }
.anchor-when {
  border: 1.5pt solid #000;
  padding: 10px 14px;
  margin-top: 14px;
}
.anchor-when-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.anchor-when-body { font-size: 12pt; }

/* ========== Differentiation Pack ========== */
.diff-base {
  border: 1.25pt solid #000;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.diff-base-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.diff-base-body { font-size: 12pt; }
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.diff-col {
  border: 1pt solid #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
  min-height: 4in;
}
.diff-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.diff-sub {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 9pt;
  color: #333;
  margin-bottom: 6px;
}
.diff-list {
  margin: 0 0 8px; padding-left: 18px;
  font-size: 10pt;
}
.diff-list li { margin-bottom: 2px; }
.diff-write {
  flex: 1; min-height: 1.5in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  display: flex;
}
.diff-write .write-area { flex: 1; }
.diff-crit {
  margin-top: 10px;
  border: 0.75pt solid #000;
  padding: 8px 12px;
}
.diff-crit-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.diff-crit ul { margin: 0; padding-left: 18px; font-size: 10.5pt; }
.diff-crit li { margin-bottom: 2px; }

/* ========== Universal planning meta strip ========== */
.meta-strip {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 10px 10px;
  background: var(--titan-soft);
  margin-bottom: 16px;
}
.meta-strip-h {
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--titan);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 6px;
}
.meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.meta-row-3 { grid-template-columns: 1fr 1fr 2fr; }
.meta-row-2-1 { grid-template-columns: 2fr 1.2fr 1fr; }
.meta-field-wide { grid-column: span 1; }
.meta-std-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 4px;
  padding: 6px 8px;
  min-height: 14px;
}
.meta-std-desc:empty { display: none; }
.meta-field label {
  font-size: 11px; font-weight: 600;
  color: var(--steel);
  margin-bottom: 2px; display: block;
  text-transform: uppercase; letter-spacing: .03em;
}
.meta-field input,
.meta-field select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
}
.meta-field input:focus,
.meta-field select:focus {
  outline: none;
  border-color: var(--titan);
  box-shadow: 0 0 0 2px rgba(30,74,140,.12);
}

/* ========== Calendar page ========== */
.cal-root { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px; }
.cal-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.cal-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 20px; font-weight: 600;
  flex: 1; text-align: center;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}
.cal-weekdays > div {
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--steel);
  text-transform: uppercase; letter-spacing: .05em;
  text-align: center;
  padding: 4px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-cell {
  min-height: 110px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 6px;
  background: #fff;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.cal-cell:hover { border-color: var(--titan); background: var(--titan-soft); }
.cal-cell.cal-blank { background: var(--canvas); border-color: transparent; cursor: default; }
.cal-cell.cal-blank:hover { background: var(--canvas); }
.cal-cell.cal-today { border-color: var(--titan); border-width: 2px; }
.cal-num {
  font-family: "Inter", sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--steel);
  margin-bottom: 2px;
}
.cal-today .cal-num { color: var(--titan); }
.cal-items { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: hidden; }
.cal-item {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 4px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-item:hover { background: var(--titan-soft); border-color: var(--titan); }
.cal-item-ic {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700; color: var(--titan);
  width: 14px; text-align: center;
}
.cal-item-title { overflow: hidden; text-overflow: ellipsis; }
.cal-more { font-size: 10px; color: var(--steel); padding-left: 4px; }

/* ========== Bell Ringer ========== */
.br-card { padding: 0; }
.br-half { min-height: 4.6in; }
.br-full { min-height: 9.4in; }
.br-title { font-family: "Source Serif 4", Georgia, serif; font-size: 16pt; font-weight: 700; margin: 6px 0 8px; }
.br-section { margin-bottom: 10px; }
.br-lbl {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 3px;
}
.br-prompt {
  border: 0.75pt solid #000;
  padding: 6px 10px;
  font-size: 11.5pt;
  margin-bottom: 4px;
}
.br-write {
  min-height: 1.1in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  display: flex;
}
.br-write.br-write-short { min-height: 0.6in; }
.br-write .write-area { flex: 1; }

/* ========== Sub Folder ========== */
.sub-section { margin-bottom: 12px; page-break-inside: avoid; }
.sub-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.sub-list { margin: 0; padding-left: 22px; font-size: 11pt; }
.sub-list li { margin-bottom: 3px; }
.sub-notes {
  border: 0.5pt solid #000;
  min-height: 1.2in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.sub-notes .write-area { flex: 1; }

/* ========== Family Letter ========== */
.fam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fam-col {
  border: 0.75pt solid #000;
  padding: 10px 12px;
}
.fam-h {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: #000;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.fam-greet { font-style: italic; margin-bottom: 6px; }
.fam-body { font-size: 11pt; line-height: 1.45; margin-bottom: 10px; min-height: 2.2in; }
.fam-sig { font-size: 10.5pt; }
.fam-footer {
  border-top: 0.5pt dashed #000;
  margin-top: 12px;
  padding-top: 4px;
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
}
.fam-reply {
  border: 0.75pt solid #000;
  padding: 10px 12px;
  margin-top: 6px;
}
.fam-reply-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 6px;
}
.fam-reply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: 10.5pt;
  margin-bottom: 6px;
}

/* ========== Pacing Plan ========== */
.pacing-standards {
  border: 0.5pt solid #000;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.pacing-standards pre {
  margin: 4px 0 0; font-family: "Source Serif 4", Georgia, serif;
  font-size: 10.5pt; white-space: pre-wrap;
}
.pacing-h {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.pacing-tbl {
  width: 100%;
  border-collapse: collapse;
}
.pacing-tbl th, .pacing-tbl td {
  border: 0.75pt solid #000;
  padding: 6px 8px;
  font-size: 10.5pt;
  vertical-align: top;
}
.pacing-tbl th {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  text-transform: uppercase; letter-spacing: .04em;
  font-weight: 700;
  border-bottom: 1.25pt solid #000;
}
.pacing-col-day { width: 0.85in; }
.pacing-col-act { width: 1.6in; }
.pacing-col-std { width: 1.3in; }
.pacing-day { font-weight: 700; }
.pacing-std { font-family: "Inter", sans-serif; font-size: 9.5pt; }
.pacing-tools {
  margin: 12px 0;
  display: flex; align-items: center; gap: 8px;
}

/* ========== Choice Board ========== */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 2.2in;
  gap: 0;
  border: 1pt solid #000;
}
.choice-cell {
  border: 0.5pt solid #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
  position: relative;
}
.choice-num {
  position: absolute; top: 4px; left: 6px;
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  width: 18px; height: 18px;
  border: 0.75pt solid #000;
  display: grid; place-items: center;
}
.choice-task {
  flex: 1;
  font-size: 10.5pt;
  margin-top: 22px;
  margin-bottom: 6px;
}
.choice-mark {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  color: #555;
  align-self: flex-end;
}

/* ========== Anticipation Guide ========== */
.anti-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.anti-tbl th, .anti-tbl td {
  border: 0.75pt solid #000;
  padding: 6px 8px;
  vertical-align: middle;
}
.anti-tbl th {
  font-family: "Inter", sans-serif;
  font-size: 9pt; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 700;
}
.anti-h-pre, .anti-h-post { width: 1.4in; text-align: center; }
.anti-h-row th { background: #fff; border-top: none; padding: 2px 8px; font-size: 8.5pt; font-weight: 600; text-transform: none; letter-spacing: 0; }
.anti-mini { font-family: "Inter", sans-serif; font-size: 8.5pt; font-weight: 700; }
.anti-marks { text-align: center; }
.anti-circle {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border: 0.75pt solid #000;
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  margin: 0 3px;
}
.anti-stmt { font-size: 11pt; }
.anti-reflect {
  margin-top: 12px;
  border: 0.75pt solid #000;
  padding: 8px 10px;
}
.anti-reflect-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.anti-reflect-area {
  min-height: 1.2in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.anti-reflect-area .write-area { flex: 1; }

/* ========== Lesson Plan — UDL + LCS aligned ========== */
.lp-obj {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.lp-obj-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.lp-obj-body { font-size: 12pt; }
.lp-align {
  border: 0.75pt solid #000;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.lp-align-h {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.lp-udl { margin-bottom: 10px; page-break-inside: avoid; }
.lp-udl-section-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1.25pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.lp-udl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.lp-udl-col {
  border: 0.75pt solid #000;
  padding: 6px 10px;
  display: flex; flex-direction: column;
}
.lp-udl-h {
  display: flex; align-items: center; gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.lp-udl-letter {
  width: 18px; height: 18px;
  border: 1pt solid #000;
  display: inline-grid; place-items: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12pt;
}
.lp-sequence { margin-bottom: 10px; }
.lp-sequence-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1.25pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.lp-step {
  display: grid;
  grid-template-columns: 0.4in 1fr;
  gap: 8px;
  margin-bottom: 8px;
  page-break-inside: avoid;
}
.lp-step-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18pt; font-weight: 700;
  border: 1.25pt solid #000;
  height: 0.4in;
  display: grid; place-items: center;
}
.lp-step-body { display: flex; flex-direction: column; }
.lp-step-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  margin-bottom: 3px;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
}
.lp-text {
  font-size: 10.5pt;
  white-space: pre-wrap;
}
.lp-write {
  border: 0.5pt solid #000;
  min-height: 0.7in;
  display: flex;
}
.lp-write .write-area { flex: 1; }
.lp-supports { margin-bottom: 10px; }
.lp-supports-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1.25pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.lp-supports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lp-supports-cell {
  border: 0.5pt solid #000;
  padding: 6px 10px;
  page-break-inside: avoid;
}
.lp-supports-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 3px;
}
.lp-otes {
  border: 0.5pt solid #000;
  padding: 6px 10px;
}
.lp-otes-h {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 3px;
}

/* ========== Peer Review ========== */
.peer-info {
  display: flex; gap: 18px;
  margin: 6px 0 10px;
  font-size: 10.5pt;
}
.peer-section { margin-bottom: 12px; }
.peer-h {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.peer-focus { margin: 0 0 8px; padding-left: 22px; font-size: 11pt; }
.peer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.peer-col {
  border: 0.5pt solid #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
}
.peer-stems {
  font-size: 9.5pt; font-style: italic;
  margin-bottom: 6px; color: #333;
}
.peer-write {
  flex: 1; min-height: 1.5in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.peer-write .write-area { flex: 1; }
.peer-plan { margin: 0; padding-left: 20px; font-size: 10.5pt; }
.peer-plan li { margin-bottom: 6px; }
.peer-plan textarea { width: 100%; min-height: 0.4in; border: none; outline: none; resize: none; background: transparent; font-family: "Source Serif 4", Georgia, serif; font-size: 11pt; line-height: 22px; }

/* ========== APPARTS ========== */
.apparts-excerpt {
  border: 0.5pt solid #000;
  padding: 6px 10px;
  font-style: italic;
  font-size: 10.5pt;
  margin-bottom: 10px;
}
.apparts-row {
  display: grid;
  grid-template-columns: 0.45in 1fr;
  gap: 8px;
  margin-bottom: 6px;
  page-break-inside: avoid;
}
.apparts-letter {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 22pt; font-weight: 700;
  border: 1pt solid #000;
  height: 0.45in;
  display: grid; place-items: center;
}
.apparts-body { display: flex; flex-direction: column; }
.apparts-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.apparts-hint { font-style: italic; font-size: 9pt; color: #444; margin-bottom: 3px; }
.apparts-write {
  border: 0.5pt solid #000;
  min-height: 0.6in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.apparts-write .write-area { flex: 1; }

/* ========== Lab Report ========== */
.lab-box {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.lab-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 3px;
}
.lab-q { font-size: 12pt; font-weight: 600; }
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.lab-cell {
  border: 0.5pt solid #000;
  padding: 6px 10px;
  display: flex; flex-direction: column;
}
.lab-section { margin-bottom: 10px; }
.lab-write {
  border: 0.5pt solid #000;
  min-height: 0.85in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.lab-write .write-area { flex: 1; }
.lab-write-tall { min-height: 1.8in; }
.lab-tbl { width: 100%; border-collapse: collapse; }
.lab-tbl th, .lab-tbl td { border: 0.5pt solid #000; padding: 5px 8px; font-size: 10pt; min-height: 0.3in; }
.lab-tbl th { font-family: "Inter", sans-serif; font-size: 9pt; text-transform: uppercase; font-weight: 700; }
.lab-cer { display: grid; grid-template-columns: 0.8in 1fr; gap: 6px 10px; align-items: stretch; }
.lab-safety {
  border: 0.75pt solid #000;
  padding: 6px 10px;
  font-size: 10.5pt;
  margin-top: 8px;
}

/* ========== Math Worked Example ========== */
.mx-section {
  border: 0.75pt solid #000;
  padding: 8px 12px;
  margin-bottom: 10px;
  page-break-inside: avoid;
}
.mx-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.mx-body { font-size: 11pt; line-height: 1.5; white-space: pre-wrap; }
.mx-write {
  min-height: 1in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
  margin-top: 6px;
}
.mx-write.mx-write-short { min-height: 0.7in; }
.mx-write .write-area { flex: 1; }
.mx-list { margin: 0; padding-left: 20px; font-size: 11pt; }
.mx-list li { margin-bottom: 8px; }
.mx-prob { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; margin-bottom: 3px; }

/* ========== Error Analysis ========== */
.ea-problem {
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.ea-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.ea-pre {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 11pt;
  white-space: pre-wrap;
}
.ea-steps { margin: 0; padding-left: 0; list-style: none; }
.ea-steps > li { margin-bottom: 10px; page-break-inside: avoid; }
.ea-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  margin-bottom: 4px;
}
.ea-write {
  min-height: 0.9in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.ea-write.ea-write-tall { min-height: 1.4in; }
.ea-write .write-area { flex: 1; }

/* ========== Group Roles ========== */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.roles-card {
  border: 1pt solid #000;
  padding: 10px 12px;
  display: flex; flex-direction: column;
  min-height: 4.2in;
  page-break-inside: avoid;
}
.roles-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15pt; font-weight: 700;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.roles-job { font-size: 11pt; margin-bottom: 8px; }
.roles-lbl {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
  margin-top: 6px;
  margin-bottom: 3px;
}
.roles-moves { margin: 0 0 6px; padding-left: 18px; font-size: 10pt; }
.roles-moves li { margin-bottom: 2px; }
.roles-notes {
  flex: 1; min-height: 1in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.roles-notes .write-area { flex: 1; }

/* ========== Conferencing Sheet ========== */
.conf-info {
  display: flex; gap: 18px;
  margin: 6px 0 10px;
  font-size: 10.5pt;
}
.conf-section { margin-bottom: 10px; page-break-inside: avoid; }
.conf-h {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.conf-list { margin: 0; padding-left: 22px; font-size: 10.5pt; }
.conf-list li { margin-bottom: 2px; }
.conf-write {
  min-height: 0.9in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.conf-write-tall { min-height: 1.6in; }
.conf-write .write-area { flex: 1; }

/* ========== SchoolAI affordances next to tool names ========== */
.card-name-row {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 4px;
}
.card-sai {
  background: var(--titan-soft);
  color: var(--titan);
  border: 1px solid var(--titan);
  font-size: 12px; line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, color .12s, transform .12s;
}
.card-sai:hover { background: var(--titan); color: #fff; transform: translateY(-1px); }
.gen-title-row { display: flex; align-items: center; gap: 8px; }
.gen-title-sai {
  background: var(--titan-soft);
  color: var(--titan);
  border: 1px solid var(--titan);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.gen-title-sai:hover { background: var(--titan); color: #fff; }

/* ========== SchoolAI hand-off modal ========== */
.sai-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.sai-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 28, .55); }
.sai-modal-box {
  position: relative;
  width: min(880px, 92vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.sai-modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.sai-modal-title { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; }
.sai-modal-sub { font-size: 13px; color: var(--steel); margin-top: 2px; }
.sai-modal-x {
  background: none; border: none; cursor: pointer;
  color: var(--steel); font-size: 18px;
  padding: 4px 8px; border-radius: 4px;
}
.sai-modal-x:hover { background: var(--steel-soft); color: var(--ink); }
.sai-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 18px;
}
.sai-tab {
  background: none; border: none;
  padding: 10px 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--steel);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.sai-tab:hover { color: var(--ink); }
.sai-tab-active { color: var(--titan); border-bottom-color: var(--titan); }
.sai-tab-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.sai-panes { flex: 1; overflow: auto; }
.sai-pane { display: none; padding: 16px 18px; flex-direction: column; gap: 10px; }
.sai-pane-active { display: flex; }
.sai-pane-note { font-size: 13px; color: var(--steel); margin: 0; line-height: 1.45; }
.sai-text {
  width: 100%;
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #FAFAFA;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
  white-space: pre;
  line-height: 1.5;
}
.sai-text[disabled] { background: #f3f4f6; color: var(--steel-light); }
.sai-actions { display: flex; gap: 8px; }
.sai-pane-foot { font-size: 11px; color: var(--steel); margin: 8px 0 0; font-style: italic; }

@media print { .sai-modal { display: none !important; } }

/* ========== Plan Builder page ========== */
.pb-controls .meta-field label {
  font-size: 11px; font-weight: 600;
  color: var(--steel);
  margin-bottom: 4px; display: block;
  text-transform: uppercase; letter-spacing: .03em;
}
.pb-controls input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: inherit;
}
.pb-controls input:focus { outline: none; border-color: var(--titan); box-shadow: 0 0 0 3px rgba(30,74,140,.12); }
.pb-weekbar-h {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px; font-weight: 600;
  margin-bottom: 8px;
}
.pb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.pb-day {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
  min-height: 16rem;
  display: flex; flex-direction: column; gap: 6px;
}
.pb-day-h {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.pb-day-name {
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--steel);
}
.pb-day-date { font-size: 12px; color: var(--ink); font-weight: 600; }
.pb-lesson-card {
  display: block;
  border: 1.5px solid var(--titan);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--titan-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s;
}
.pb-lesson-card:hover { transform: translateY(-1px); }
.pb-lesson-h {
  font-family: "Inter", sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--titan);
}
.pb-lesson-title { font-weight: 600; font-size: 13px; margin: 2px 0; }
.pb-lesson-meta { font-size: 11px; color: var(--steel); }
.pb-lesson-empty {
  display: block;
  border: 1.5px dashed var(--steel-light);
  border-radius: 6px;
  padding: 14px 10px;
  text-align: center;
  font-size: 12px;
  color: var(--steel);
  text-decoration: none;
  transition: border-color .12s, color .12s;
}
.pb-lesson-empty:hover { border-color: var(--titan); color: var(--titan); }
.pb-day-tools { display: flex; flex-direction: column; gap: 2px; }
.pb-tool {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 4px 6px;
  text-decoration: none;
  color: var(--ink);
}
.pb-tool:hover { background: var(--steel-soft); border-color: var(--titan); }
.pb-tool-ic {
  font-family: "Inter", sans-serif;
  font-weight: 700; color: var(--titan);
  font-size: 10px;
  background: var(--titan-soft);
  border-radius: 4px; padding: 0 4px;
  min-width: 28px; text-align: center;
}
.pb-tool-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pb-empty { font-size: 11px; color: var(--steel-light); font-style: italic; }
.pb-day-add select {
  width: 100%;
  font-size: 11.5px;
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 4px;
  padding: 4px 6px;
  color: var(--steel);
}
.pb-day-add select:hover { border-color: var(--titan); color: var(--titan); }
.pb-day-wicor { display: flex; gap: 2px; flex-wrap: wrap; margin-top: 4px; }
.pb-empty-pill { font-size: 10px; color: var(--steel-light); font-style: italic; }

/* ========== Lesson-phase pills (on tool cards) ========== */
.card-phase-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.pill {
  display: inline-flex; align-items: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 10px; font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--steel);
  white-space: nowrap;
  letter-spacing: .02em;
}
.pill-wicor { border-color: var(--titan); color: var(--titan); padding: 1px 5px; font-size: 9.5px; }
.pill-domain { border-color: #C28A1E; background: #FEF6E0; color: #8A5E14; padding: 1px 5px; font-size: 9.5px; }
.pill-phase {
  border-color: var(--steel-light);
  background: var(--steel-soft);
  color: var(--steel);
}
.pill-phase-hook     { border-color: #B5512E; background: #FCE7DE; color: #B5512E; }
.pill-phase-acquire  { border-color: #2E7DB5; background: #DEEEF9; color: #1F5A85; }
.pill-phase-process  { border-color: #8B6BB1; background: #ECE4F4; color: #5E467C; }
.pill-phase-practice { border-color: #2E8B57; background: #DDF1E5; color: #1F6B41; }
.pill-phase-review   { border-color: #B58A2E; background: #FCEFCC; color: #7C5E1F; }
.pill-phase-assess   { border-color: #1E4A8C; background: var(--titan-soft); color: var(--titan); }

/* ========== 3-2-1 (Silver) ========== */
.t321-section { margin-bottom: 14px; }
.t321-h {
  display: flex; align-items: center; gap: 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14pt; font-weight: 700;
  border-bottom: 1pt solid #000;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.t321-num {
  width: 0.4in; height: 0.4in;
  border: 1.5pt solid #000;
  display: inline-grid; place-items: center;
  font-size: 14pt;
}
.t321-lines { list-style: decimal; margin: 0; padding-left: 26px; }
.t321-lines li { margin-bottom: 4px; }
.t321-line {
  border-bottom: 0.5pt solid #000;
  height: 24px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.t321-line .write-area { flex: 1; }
.t321-box {
  border: 0.75pt solid #000;
  min-height: 1.2in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.t321-box .write-area { flex: 1; }

/* ========== Window Notes (Silver) ========== */
.win-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border: 1pt solid #000;
  min-height: 7in;
}
.win-pane {
  border: 0.5pt solid #000;
  padding: 6px 10px;
  display: flex; flex-direction: column;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 26px;
}
.win-lbl {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
  margin-bottom: 4px;
  display: inline-block;
}
.win-pane .write-area { flex: 1; }

/* ========== S-O-S Summary (Silver) ========== */
.sos-section { margin-bottom: 12px; page-break-inside: avoid; }
.sos-h {
  display: flex; align-items: center; gap: 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14pt; font-weight: 700;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.sos-letter {
  width: 0.4in; height: 0.4in;
  border: 1.5pt solid #000;
  display: inline-grid; place-items: center;
  font-size: 14pt;
}
.sos-statement {
  border: 0.75pt solid #000;
  padding: 8px 12px;
  font-size: 12pt;
  font-style: italic;
  background: #fff;
}
.sos-stance {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  margin-bottom: 6px;
}
.sos-hint { font-style: italic; font-size: 10pt; color: #444; margin-bottom: 4px; }
.sos-write {
  border: 0.5pt solid #000;
  min-height: 1in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.sos-write-tall { min-height: 2in; }
.sos-write .write-area { flex: 1; }

/* ========== Vocabulary Knowledge Rating ========== */
.vkr-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.vkr-tbl th, .vkr-tbl td { border: 0.75pt solid #000; padding: 6px 8px; font-size: 10pt; vertical-align: top; }
.vkr-tbl th {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  border-bottom: 1.25pt solid #000;
}
.vkr-tbl .vkr-word { width: 1.2in; font-weight: 600; }
.vkr-tbl .vkr-rate { width: 0.85in; text-align: center; font-size: 14pt; }
.vkr-tbl .vkr-sent { width: 2.2in; padding: 0; }
.vkr-tbl .vkr-sent .write-area {
  width: 100%; min-height: 0.55in;
  padding: 4px 6px;
  border: none; outline: none; resize: none;
  background: transparent;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 10.5pt; line-height: 18px;
}

/* ========== Restorative Circle Prompts ========== */
.circle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.circle-card {
  border: 1pt dashed #000;
  padding: 10px 12px;
  page-break-inside: avoid;
  min-height: 1.8in;
  display: flex; flex-direction: column;
}
.circle-num {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.circle-prompt { font-size: 12pt; font-weight: 600; flex: 1; margin-bottom: 6px; }
.circle-tools { font-size: 9pt; font-style: italic; color: #444; border-top: 0.5pt solid #999; padding-top: 4px; }
.circle-norms {
  border: 0.75pt solid #000;
  padding: 8px 12px;
  margin-top: 12px;
}
.circle-norms-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.circle-norms ol { margin: 0; padding-left: 22px; font-size: 10.5pt; }
.circle-norms li { margin-bottom: 2px; }

/* ========== Mood Meter ========== */
.mood-grid {
  display: grid;
  grid-template-columns: 0.35in 1fr 1fr;
  grid-template-rows: 0.3in 1fr 0.3in 1fr 0.3in;
  border: 1pt solid #000;
  gap: 0;
}
.mood-axis-y {
  grid-row: 2 / 5;
  grid-column: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: grid; place-items: center;
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  border-right: 0.75pt solid #000;
}
.mood-axis-y-b { grid-row: 4 / 6; }
.mood-axis-x {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  text-align: center;
  padding: 4px 0;
  border-top: 0.75pt solid #000;
}
.mood-axis-x-l { grid-row: 5; grid-column: 2; }
.mood-axis-x-r { grid-row: 5; grid-column: 3; }
.mood-q {
  padding: 8px 10px;
  display: flex; flex-direction: column; gap: 4px;
  border: 0.5pt solid #000;
  min-height: 1.6in;
}
.mood-q-tl { grid-row: 2; grid-column: 2; }
.mood-q-tr { grid-row: 2; grid-column: 3; }
.mood-q-bl { grid-row: 4; grid-column: 2; }
.mood-q-br { grid-row: 4; grid-column: 3; }
.mood-q-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.mood-q-list { font-size: 10.5pt; }
.mood-checkin { margin-top: 14px; }
.mood-checkin-lbl {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin: 6px 0 3px;
}
.mood-checkin-area {
  border: 0.5pt solid #000;
  min-height: 0.55in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.mood-checkin-area .write-area { flex: 1; }

/* ========== SMART Goal ========== */
.smart-sample {
  border: 0.5pt solid #000;
  padding: 6px 10px;
  margin-bottom: 12px;
  font-style: italic;
  font-size: 10.5pt;
}
.smart-sample-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 3px;
  font-style: normal;
}
.smart-row {
  display: grid;
  grid-template-columns: 0.5in 1fr;
  gap: 10px;
  margin-bottom: 10px;
  page-break-inside: avoid;
}
.smart-letter {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24pt; font-weight: 700;
  border: 1.5pt solid #000;
  height: 0.5in;
  display: grid; place-items: center;
}
.smart-body { display: flex; flex-direction: column; }
.smart-name {
  font-family: "Inter", sans-serif;
  font-size: 10.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.smart-hint { font-style: italic; font-size: 9pt; color: #444; margin-bottom: 3px; }
.smart-write {
  border: 0.5pt solid #000;
  min-height: 0.7in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.smart-write .write-area { flex: 1; }
.smart-check { margin-top: 14px; }
.smart-check-lbl {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 4px;
}
.smart-tbl { width: 100%; border-collapse: collapse; }
.smart-tbl th, .smart-tbl td { border: 0.5pt solid #000; padding: 5px 8px; font-size: 10pt; min-height: 0.3in; }
.smart-tbl th {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ========== Reflection Journal ========== */
.reflect-area {
  border: 1pt solid #000;
  min-height: 3in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
  margin-bottom: 14px;
}
.reflect-area .write-area { flex: 1; }
.reflect-followups {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.reflect-fu {
  border: 0.5pt solid #000;
  padding: 6px 10px;
  display: flex; flex-direction: column;
}
.reflect-fu-h {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 4px;
}
.reflect-fu-area {
  flex: 1; min-height: 1.5in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.reflect-fu-area .write-area { flex: 1; }

/* ========== ICR (Hammond) ========== */
.icr-row {
  display: grid;
  grid-template-columns: 0.5in 1fr;
  gap: 10px;
  margin-bottom: 10px;
  page-break-inside: avoid;
}
.icr-letter {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 24pt; font-weight: 700;
  border: 1.5pt solid #000;
  height: 0.5in;
  display: grid; place-items: center;
}
.icr-body { display: flex; flex-direction: column; }
.icr-name {
  font-family: "Inter", sans-serif;
  font-size: 10.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.icr-task {
  font-size: 10.5pt;
  font-style: italic;
  color: #333;
  margin-bottom: 4px;
}
.icr-write-h {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 2px;
}
.icr-write {
  border: 0.5pt solid #000;
  min-height: 0.9in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.icr-write .write-area { flex: 1; }

/* ========== Rapport Card (Hammond) ========== */
.rap-name {
  font-size: 11pt;
  margin-bottom: 12px;
}
.rap-line {
  display: inline-block;
  border-bottom: 0.75pt solid #000;
  min-width: 4in;
  height: 14px;
}
.rap-row { margin-bottom: 10px; page-break-inside: avoid; }
.rap-lbl {
  font-family: "Inter", sans-serif;
  font-size: 10.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.rap-hint { font-style: italic; font-size: 9.5pt; color: #444; margin-bottom: 3px; }
.rap-write {
  border: 0.5pt solid #000;
  min-height: 0.9in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.rap-write .write-area { flex: 1; }
.rap-promise {
  border-top: 0.5pt dashed #000;
  padding-top: 6px;
  font-style: italic;
  font-size: 9.5pt;
  color: #444;
  margin-top: 10px;
}

/* ========== RAFT ========== */
.raft-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.raft-tbl th, .raft-tbl td { border: 0.75pt solid #000; padding: 6px 8px; font-size: 10.5pt; vertical-align: top; }
.raft-tbl th { font-family: "Inter", sans-serif; font-size: 9pt; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; border-bottom: 1.25pt solid #000; }
.raft-tbl .raft-pick { width: 0.6in; text-align: center; font-size: 13pt; }
.raft-draft { margin-top: 12px; }
.raft-draft-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.raft-draft-area {
  border: 0.75pt solid #000;
  min-height: 3in;
  display: flex;
}
.raft-draft-area .write-area { flex: 1; }

/* ========== Double-Entry Journal ========== */
.dej-tbl { width: 100%; border-collapse: collapse; }
.dej-tbl th { font-family: "Inter", sans-serif; font-size: 9.5pt; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; border: 0.75pt solid #000; padding: 6px 8px; border-bottom: 1.25pt solid #000; width: 50%; }
.dej-tbl td { border: 0.75pt solid #000; padding: 0; vertical-align: top; }
.dej-tbl td .write-area { min-height: 1.1in; padding: 6px 8px; }

/* ========== Concept Map ========== */
.map-stage {
  position: relative;
  min-height: 7.5in;
  border: 0.5pt dashed #000;
}
.map-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1.5pt solid #000;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14pt; font-weight: 700;
  max-width: 2.2in; text-align: center;
  z-index: 2;
}
.map-branch {
  position: absolute;
  width: 2in;
  border: 1pt solid #000;
  background: #fff;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.map-branch-h {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
}
.map-branch-write {
  min-height: 0.7in;
  display: flex;
}
.map-branch-write .write-area { flex: 1; }
.map-branch-1 { top: 2%; left: 50%; transform: translateX(-50%); }
.map-branch-2 { top: 18%; right: 2%; }
.map-branch-3 { bottom: 18%; right: 2%; }
.map-branch-4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.map-branch-5 { bottom: 18%; left: 2%; }
.map-branch-6 { top: 18%; left: 2%; }

/* ========== Think-Pair-Share ========== */
.tps-section { margin-bottom: 12px; page-break-inside: avoid; }
.tps-h {
  display: flex; align-items: center; gap: 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14pt; font-weight: 700;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.tps-letter {
  width: 0.4in; height: 0.4in;
  border: 1.5pt solid #000;
  display: inline-grid; place-items: center;
  font-size: 14pt;
}
.tps-hint {
  font-style: italic; font-size: 9.5pt;
  color: #444;
  margin-bottom: 4px;
}
.tps-write {
  border: 0.5pt solid #000;
  min-height: 1.2in;
  display: flex;
}
.tps-write .write-area { flex: 1; }

/* ========== Student Weekly Planner ========== */
.plnr-goals {
  display: flex; align-items: center; gap: 8px;
  border: 1pt solid #000;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 11pt;
}
.plnr-goals-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}
.plnr-goals-line { flex: 1; border-bottom: 0.5pt solid #000; height: 18px; }
.plnr-tbl { width: 100%; border-collapse: collapse; }
.plnr-tbl th, .plnr-tbl td {
  border: 0.75pt solid #000;
  padding: 6px 8px;
  font-size: 10pt;
  vertical-align: top;
  min-height: 0.55in;
  height: 0.55in;
}
.plnr-tbl th { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .05em; font-size: 9pt; font-weight: 700; }
.plnr-tbl .plnr-corner { width: 1.4in; }
.plnr-tbl .plnr-period { background: #fafafa; font-weight: 600; }
.plnr-hw { margin-top: 10px; border: 0.75pt solid #000; padding: 8px 12px; }
.plnr-hw-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 6px;
}
.plnr-hw-list { margin: 0; padding-left: 22px; list-style: none; }
.plnr-hw-list li { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.plnr-check { font-size: 12pt; }
.plnr-hw-line { flex: 1; border-bottom: 0.5pt solid #000; height: 20px; }

/* ========== Backwards Study Plan ========== */
.bwd-tbl { width: 100%; border-collapse: collapse; }
.bwd-tbl th, .bwd-tbl td {
  border: 0.5pt solid #000;
  padding: 5px 8px;
  font-size: 10.5pt;
  min-height: 0.35in;
}
.bwd-tbl th { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 9pt; font-weight: 700; }
.bwd-tbl .bwd-day { font-weight: 700; width: 1.6in; }
.bwd-notes { margin-top: 12px; border: 0.75pt solid #000; padding: 8px 12px; }
.bwd-notes-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 4px;
}
.bwd-write { border: 0.5pt solid #000; min-height: 0.9in; display: flex; }
.bwd-write .write-area { flex: 1; }

/* ========== Reading Log ========== */
.rlog-tbl { width: 100%; border-collapse: collapse; }
.rlog-tbl th, .rlog-tbl td { border: 0.5pt solid #000; padding: 4px 6px; font-size: 9.5pt; min-height: 0.35in; vertical-align: top; }
.rlog-tbl th { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 8.5pt; }
.rlog-tbl td .write-area { min-height: 0.32in; padding: 2px 4px; }
.rlog-total { margin-top: 10px; font-size: 11pt; text-align: right; }

/* ========== Habit Tracker ========== */
.habit-tbl { width: 100%; border-collapse: collapse; }
.habit-tbl th, .habit-tbl td { border: 0.5pt solid #000; padding: 4px; font-size: 8pt; }
.habit-tbl th { font-family: "Inter", sans-serif; font-weight: 700; }
.habit-tbl .habit-name-h { width: 1.6in; }
.habit-tbl .habit-name { text-align: left; font-size: 9.5pt; padding: 4px 6px; }
.habit-tbl .habit-day, .habit-tbl .habit-cell { width: 0.18in; text-align: center; }
.habit-streak { margin-top: 10px; font-size: 11pt; }

/* ========== Mistake Log ========== */
.mlog-tbl { width: 100%; border-collapse: collapse; }
.mlog-tbl th, .mlog-tbl td { border: 0.5pt solid #000; padding: 0; font-size: 10pt; vertical-align: top; }
.mlog-tbl th { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 8.5pt; padding: 5px 6px; border-bottom: 1.25pt solid #000; }
.mlog-tbl td .write-area { min-height: 0.9in; padding: 4px 6px; }

/* ========== Wonder Journal ========== */
.wnd-tbl { width: 100%; border-collapse: collapse; }
.wnd-tbl th, .wnd-tbl td { border: 0.5pt solid #000; padding: 4px 6px; font-size: 9.5pt; vertical-align: top; }
.wnd-tbl th { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 8.5pt; }
.wnd-tbl td { padding: 0; }
.wnd-tbl td.wnd-star, .wnd-tbl td.wnd-done { width: 0.4in; text-align: center; padding: 4px; font-size: 12pt; }
.wnd-tbl td.wnd-star { width: 0.35in; }
.wnd-tbl td .write-area { min-height: 0.45in; padding: 4px 6px; }

/* ========== Mastery Tracker ========== */
.mas-tbl { width: 100%; border-collapse: collapse; }
.mas-tbl th, .mas-tbl td { border: 0.5pt solid #000; padding: 4px 6px; font-size: 9.5pt; vertical-align: top; }
.mas-tbl th { font-family: "Inter", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; font-size: 8.5pt; }
.mas-tbl .mas-std { width: 2.2in; }
.mas-tbl .mas-rate { width: 0.55in; text-align: center; font-size: 12pt; }
.mas-tbl .mas-evidence { width: 1.9in; }
.mas-tbl .mas-evidence textarea { min-height: 0.55in; padding: 4px 6px; }
.mas-tbl .mas-teacher { width: 0.55in; }
.mas-tbl .mas-init { min-height: 0.45in; }

/* ========== Group Contract ========== */
.gct-section { margin-bottom: 12px; page-break-inside: avoid; }
.gct-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.gct-tbl { width: 100%; border-collapse: collapse; }
.gct-tbl th, .gct-tbl td { border: 0.5pt solid #000; padding: 5px 6px; font-size: 10pt; }
.gct-tbl th { font-family: "Inter", sans-serif; font-size: 9pt; font-weight: 700; text-transform: uppercase; }
.gct-tbl td:nth-child(3) { padding: 0; }
.gct-tbl td .write-area { min-height: 0.5in; padding: 4px 6px; }
.gct-norms { list-style: decimal; margin: 0; padding-left: 22px; }
.gct-norms li { margin-bottom: 4px; }
.gct-norms li .write-area { min-height: 0.4in; }
.gct-write { border: 0.5pt solid #000; min-height: 0.7in; display: flex; }
.gct-write .write-area { flex: 1; }
.gct-sign-line { font-size: 10.5pt; padding: 8px 0; border-bottom: 0.5pt dashed #000; }

/* ========== Collaboration Self-Assessment ========== */
.col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 6.5in;
}
.col-quad {
  border: 0.75pt solid #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
}
.col-lbl {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
  margin-bottom: 3px;
}
.col-hint { font-style: italic; font-size: 9pt; color: #444; margin-bottom: 4px; }
.col-write { flex: 1; min-height: 1.5in; border: 0.5pt solid #000; display: flex; }
.col-write .write-area { flex: 1; }

/* ========== Brain Break Card ========== */
.brain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.brain-card {
  border: 1pt dashed #000;
  padding: 10px 14px;
  page-break-inside: avoid;
}
.brain-card-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.brain-list { margin: 0; padding-left: 22px; font-size: 10.5pt; }
.brain-list li { margin-bottom: 4px; }
.brain-trusted { margin-top: 10px; border-top: 0.5pt dashed #000; padding-top: 6px; }
.brain-trusted-lbl {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 4px;
}
.brain-trusted-line { border-bottom: 0.5pt solid #000; height: 20px; margin-bottom: 4px; }

/* ========== Compare & Contrast Matrix (Core Six) ========== */
.cmp-tbl { width: 100%; border-collapse: collapse; margin-top: 6px; }
.cmp-tbl th, .cmp-tbl td { border: 0.75pt solid #000; padding: 6px 8px; vertical-align: top; }
.cmp-tbl th {
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700;
  border-bottom: 1.25pt solid #000;
}
.cmp-tbl .cmp-desc {
  background: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 700; font-size: 10pt;
  width: 1.4in;
}
.cmp-tbl .cmp-cell {
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  min-height: 0.9in;
  padding: 0;
}
.cmp-tbl .cmp-cell .write-area {
  width: 100%; height: 100%; min-height: 0.9in;
  padding: 4px 6px;
  border: none; outline: none; resize: none;
  background: transparent;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 11pt; line-height: 22px;
}
.cmp-syn { margin-top: 12px; border: 1pt solid #000; padding: 8px 12px; }
.cmp-syn-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 3px;
}
.cmp-syn-q { font-size: 11pt; font-style: italic; margin-bottom: 6px; }
.cmp-syn-area {
  min-height: 1.5in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.cmp-syn-area .write-area { flex: 1; }

/* ========== Inductive Sort (Core Six) ========== */
.ind-h {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1pt solid #000;
  padding-bottom: 3px;
  margin: 10px 0 6px;
}
.ind-items {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  border: 0.5pt solid #000;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.ind-item {
  border: 0.5pt solid #000;
  padding: 2px 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 10.5pt;
  background: #fff;
}
.ind-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ind-group {
  border: 1pt solid #000;
  padding: 6px 10px;
  display: flex; flex-direction: column;
  page-break-inside: avoid;
}
.ind-group-h {
  display: flex; align-items: center; gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 9.5pt; font-weight: 700;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 4px;
  margin-bottom: 4px;
}
.ind-num {
  width: 18px; height: 18px;
  border: 0.75pt solid #000;
  display: grid; place-items: center;
  font-size: 9pt; font-weight: 700;
}
.ind-label-lbl { text-transform: uppercase; letter-spacing: .04em; }
.ind-label-line {
  flex: 1;
  border-bottom: 0.75pt solid #000;
  height: 14px;
}
.ind-group-body {
  min-height: 1.2in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  display: flex;
}
.ind-group-body .write-area { flex: 1; }
.ind-rule {
  border: 1pt solid #000;
  padding: 8px 12px;
}
.ind-rule-stem {
  font-family: "Inter", sans-serif;
  font-size: 10pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  display: block; margin-bottom: 4px;
}
.ind-rule-area {
  min-height: 1in;
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.ind-rule-area .write-area { flex: 1; }

/* ========== CODE Vocabulary Card (Core Six) — horizontal word band ========== */
.code-card { padding: 0; margin-bottom: 10px; }
.code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto 1fr;
  border: 1pt solid #000;
  min-height: 4.4in;
}
.code-full .code-grid { min-height: 8.6in; }
.code-quad {
  border: 0.5pt solid #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
  min-height: 1.6in;
}
.code-lbl {
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  margin-bottom: 1px;
}
.code-lbl strong { font-size: 13pt; color: #000; }
.code-hint {
  font-family: "Inter", sans-serif;
  font-size: 8.5pt; font-style: italic;
  color: #555;
  margin-bottom: 6px;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 4px;
}
.code-write {
  flex: 1;
  min-height: 0.9in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  display: flex;
}
.code-write .write-area { flex: 1; }
.code-word-band {
  grid-column: 1 / span 2;
  border-top: 1.25pt solid #000;
  border-bottom: 1.25pt solid #000;
  background: #fff;
  text-align: center;
  padding: 8px 10px;
}
.code-word {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: .01em;
}
.code-gap { height: 14px; }

/* ========== Scantron alignment corner marks ========== */
.scan-sheet { position: relative; }
.scan-corner {
  position: absolute;
  width: 0.32in; height: 0.32in;
  background: #000 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  z-index: 2;
}
.scan-corner-tl { top: 0.18in;    left: 0.18in; }
.scan-corner-tr { top: 0.18in;    right: 0.18in; }
.scan-corner-bl { bottom: 0.18in; left: 0.18in; }
.scan-corner-br { bottom: 0.18in; right: 0.18in; }
.scan-orient {
  position: absolute;
  top: 0.18in; right: 0.55in;
  font-size: 16pt; line-height: 1;
  color: #000;
  z-index: 2;
}

/* ========== Scantron / Bubble Sheet ========== */
.scan-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}
.scan-info { font-size: 11pt; }
.scan-info > div { margin-bottom: 4px; border-bottom: 0.5pt solid #000; padding-bottom: 2px; }
.scan-id {
  border: 0.75pt solid #000;
  padding: 6px 8px;
  font-family: "Inter", sans-serif;
  font-size: 8.5pt;
}
.scan-id-lbl { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.scan-id-blanks { display: flex; gap: 4px; margin-bottom: 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 11pt; }
.scan-id-blank { display: inline-block; width: 14px; border-bottom: 0.5pt solid #000; text-align: center; color: #999; }
.scan-id-row { display: flex; gap: 4px; align-items: center; margin-bottom: 1px; }
.scan-id-d { width: 12px; font-weight: 700; font-size: 8pt; text-align: right; }
.scan-instructions {
  font-style: italic;
  font-size: 9.5pt;
  margin: 4px 0 10px;
  border-top: 0.5pt dashed #000;
  border-bottom: 0.5pt dashed #000;
  padding: 4px 0;
  text-align: center;
}
.scan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 36px;
}
.scan-col { display: flex; flex-direction: column; }
.scan-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  page-break-inside: avoid;
}
.scan-num {
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  font-weight: 700;
  min-width: 22px;
  text-align: right;
}
.scan-bubble {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border: 0.75pt solid #000;
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-size: 7.5pt;
  background: #fff;
  color: #000;
}
.scan-bubble-sm { width: 12px; height: 12px; }
.scan-bubble-filled { background: #000; color: #fff; }
.scan-written {
  margin-top: 14px;
  border-top: 1pt dashed #000;
  padding-top: 10px;
}
.scan-written-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.scan-written-area {
  border: 0.5pt solid #000;
  min-height: 0.9in;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  display: flex;
}
.scan-written-tall { min-height: 4.5in; }
.scan-written-area .write-area { flex: 1; }

/* ========== Notebook + EL/SIOP + classroom-copy panel ========== */
.nb-ui {
  margin-top: 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.nb-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--steel-soft);
}
.nb-summary::-webkit-details-marker { display: none; }
.nb-summary-h {
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink);
}
.nb-summary-hint { font-size: 11px; color: var(--steel); font-style: italic; }
details[open] .nb-summary-hint { display: none; }
.nb-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.nb-section { font-size: 13px; }
.nb-h {
  font-family: "Inter", sans-serif;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--titan);
  margin-bottom: 4px;
}
.nb-text { margin: 0 0 6px; color: var(--ink); }
.nb-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.nb-empty { font-size: 12px; color: var(--steel); font-style: italic; }
.nb-el .pill-domain { font-size: 11px; padding: 2px 8px; }

/* ========== Day Plan panel (lesson plan generator) ========== */
.dayplan-ui {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--titan);
  border-radius: 8px;
  background: var(--titan-soft);
}
.dayplan-h {
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--titan);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.dayplan-note { font-size: 12px; color: var(--steel); margin: 0 0 10px; }
.dayplan-empty { font-size: 13px; color: var(--steel); padding: 6px 0; font-style: italic; }
.dayplan-date-line { font-size: 12px; color: var(--steel); margin-bottom: 6px; }
.dayplan-list { margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.dayplan-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .12s, transform .12s;
}
.dayplan-row:hover { border-color: var(--titan); transform: translateX(2px); }
.dayplan-row-ic {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  color: var(--titan);
  font-size: 16px;
  width: 22px; text-align: center;
}
.dayplan-row-body { flex: 1; min-width: 0; }
.dayplan-row-title {
  display: block;
  font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dayplan-row-meta {
  display: block;
  font-size: 11px; color: var(--steel);
}
.dayplan-row-go { color: var(--steel-light); font-size: 14px; }
.dayplan-add label {
  font-size: 11px; font-weight: 600;
  color: var(--steel);
  text-transform: uppercase; letter-spacing: .03em;
  margin-bottom: 4px; display: block;
}
.dayplan-add-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.dayplan-add-row select {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 13px;
}

/* ========== Day Plan breadcrumb in chrome ========== */
.day-crumb {
  display: inline-flex; align-items: center;
  background: var(--titan-soft);
  color: var(--titan);
  border: 1px solid var(--titan);
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 8px;
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.day-crumb:hover { background: var(--titan); color: #fff; }

/* ========== Grader UI (form-pane interactive) ========== */
.grader-ui {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #fff;
}
.grader-h {
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--titan);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 4px;
}
.grader-note { font-size: 12px; color: var(--steel); margin: 0 0 10px; }
.grader-file { display: block; width: 100%; margin-bottom: 8px; font-size: 13px; }
.grader-file-list { font-size: 12px; color: var(--steel); margin-bottom: 8px; }
.grader-file-item { padding: 2px 0; }
.grader-file-size { color: var(--steel-light); margin-left: 4px; }
.grader-actions { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.grader-results { margin-top: 12px; }
.grader-empty { color: var(--steel); font-style: italic; font-size: 13px; }
.grader-summary {
  background: var(--titan-soft);
  border: 1px solid var(--titan);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
}
.grader-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.grader-tbl th, .grader-tbl td {
  border: 1px solid var(--rule);
  padding: 5px 7px;
  text-align: left;
  vertical-align: top;
}
.grader-tbl th {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  background: var(--steel-soft);
}
.grader-tbl .grader-file-col { color: var(--steel); font-size: 11px; }
.grader-export { margin-top: 8px; }

/* ========== Library row pills ========== */
.lib-row-body { min-width: 0; flex: 1; }
.lib-meta-row2 { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.lib-pill {
  display: inline-flex; align-items: center;
  font-size: 11px;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #fff;
  color: var(--steel);
}
.lib-pill-std { border-color: var(--titan); color: var(--titan); }
.lib-pill-date { border-color: var(--steel-light); color: var(--steel); }

/* ========== AI Suggest button (per-field) ========== */
.field-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
  gap: 8px;
}
.ai-btn {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--titan);
  background: var(--titan-soft);
  border: 1px solid var(--titan);
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .12s;
}
.ai-btn:hover { background: var(--titan); color: #fff; }
.ai-btn:disabled { opacity: .55; cursor: wait; }

/* ========== Exit Ticket ========== */
.exit-card { padding: 0; }
.exit-half { min-height: 4.6in; }
.exit-full { min-height: 9.4in; }
.exit-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 16pt; font-weight: 700;
  margin: 6px 0 6px;
}
.exit-objective {
  border: 0.75pt solid #000;
  padding: 6px 10px;
  font-size: 11pt;
  margin-bottom: 8px;
}
.exit-objective strong {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.exit-questions { margin: 0; padding-left: 20px; }
.exit-questions > li { margin-bottom: 8px; page-break-inside: avoid; }
.exit-q { font-size: 11.5pt; margin-bottom: 4px; }
.exit-mc {
  display: flex; gap: 14px;
  font-family: "Inter", sans-serif;
  font-size: 10pt;
  margin-bottom: 4px;
}
.exit-mc-opt {
  display: inline-flex; align-items: center; gap: 4px;
}
.exit-mc-opt::before {
  content: "○"; font-size: 12pt; margin-right: 2px;
}
.exit-write,
.exit-write-short {
  border: 0.5pt solid #000;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 0;
  display: flex;
}
.exit-write { min-height: 0.9in; }
.exit-write-short { min-height: 0.45in; }
.exit-write .write-area,
.exit-write-short .write-area { flex: 1; }
.exit-conf {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-family: "Inter", sans-serif;
  font-size: 9.5pt;
  border-top: 0.5pt dashed #000;
  padding-top: 6px;
}
.exit-conf-lbl { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 8.5pt; }
.exit-conf-num {
  border: 1pt solid #000;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 10pt;
}
.exit-conf-end { font-style: italic; color: #555; margin-left: auto; font-size: 8.5pt; }

/* ========== One-Pager ========== */
.one-title {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 22pt;
  text-align: center;
  border-top: 1.5pt solid #000;
  border-bottom: 1.5pt solid #000;
  padding: 8px 12px;
  margin: 4px 0 6px;
}
.one-instructions {
  font-style: italic;
  font-size: 10.5pt;
  text-align: center;
  margin-bottom: 8px;
}
.one-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.7in 1.7in 1.7in;
  gap: 0;
  border: 1pt solid #000;
}
.one-cell {
  border: 0.5pt solid #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #B8B8B8 22px, #B8B8B8 22.4px);
  background-position: 0 22px;
}
.one-cell.one-big { grid-column: 1 / span 2; background-position: 0 24px; }
.one-cell.one-visual { background-image: none; }
.one-lbl {
  font-family: "Inter", sans-serif;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 0.5pt solid #000;
  padding-bottom: 2px;
  margin-bottom: 4px;
  display: inline-block;
}
.one-cell .write-area { flex: 1; }

/* ========== Discussion Stem Cards ========== */
.stem-grid {
  display: grid;
  gap: 0;
  border: 1pt solid #000;
}
.stem-grid-6 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 2.6in);
}
.stem-grid-8 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, 2in);
}
.stem-card {
  border: 0.5pt dashed #000;
  padding: 8px 10px;
  display: flex; flex-direction: column;
}
.stem-name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 13pt; font-weight: 700;
  border-bottom: 0.75pt solid #000;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.stem-list { margin: 0; padding-left: 18px; font-size: 10.5pt; }
.stem-list li { margin-bottom: 3px; }

/* ========== Auth widget (top-bar slot) ========== */
.auth-user {
  display: flex; align-items: center; gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
}
.auth-avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--titan);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 12px;
}
.auth-name { color: var(--ink); font-weight: 500; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-link {
  background: none; border: none; cursor: pointer;
  color: var(--steel);
  font-size: 12px;
  text-decoration: underline;
  padding: 0 4px;
}
.auth-link:hover { color: var(--titan); }
.auth-offline {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--steel);
  border: 1px solid var(--rule);
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
}

/* ========== Save status + Library rows ========== */
.save-status {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--steel);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
}
.save-status-on {
  color: var(--titan);
  border-color: var(--titan);
  background: var(--titan-soft);
}
.lib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 12px;
}
.lib-row:hover { background: var(--steel-soft); }
.lib-row-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.lib-ic {
  min-width: 40px; height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1.5px solid var(--titan);
  color: var(--titan);
  display: grid; place-items: center;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.lib-title { font-weight: 600; font-size: 14px; }
.lib-meta { font-size: 12px; color: var(--steel); margin-top: 1px; }
.lib-wicor { font-weight: 600; color: var(--titan); }
.lib-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.hidden { display: none !important; }

/* Empty state */
.empty-preview {
  text-align: center;
  color: var(--steel);
  padding: 80px 20px;
  font-family: "Inter", sans-serif;
}

/* ==================================================================
   Write-area textareas — fill any ruled writing region.
   line-height MUST match the gradient repeat distance (22px).
================================================================== */
.write-area {
  --rule-period: 24px;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: none;
  background: transparent;
  /* The ruled lines live on the textarea itself — never the parent.
     Period === line-height so every text row sits on a rule, no drift. */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--rule-period) - 1px),
    #BFBFBF calc(var(--rule-period) - 1px),
    #BFBFBF var(--rule-period)
  );
  background-attachment: local;
  background-position: 0 0;
  background-size: 100% var(--rule-period);
  resize: none;
  outline: none;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 12.5pt;
  line-height: var(--rule-period);
  padding: 0;
  margin: 0;
  color: #000;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
}
/* A few tools (table cells, narrow strips) need tighter line spacing. */
.vkr-tbl .vkr-sent .write-area,
.cmp-tbl .cmp-cell .write-area,
.peer-plan textarea,
.recip-log td textarea,
.mtt-margin textarea,
.soc-tally-blank textarea,
.spr-tbl .blank textarea { --rule-period: 22px; font-size: 11pt; }
.write-area:focus { background-color: rgba(30, 74, 140, 0.04); }

/* Belt-and-suspenders: nuke any leftover ruled gradients on parent boxes.
   All ruling now lives on .write-area itself (above). */
.bbs-box, .cer-line, .cer-box, .qw-write, .cornell-notes, .cornell-summary,
.isn-area, .org-box, .org-tt-c, .recip-notes, .diff-write, .anti-reflect-area,
.peer-write, .apparts-write, .lab-write, .mx-write, .ea-write, .roles-notes,
.conf-write, .br-write, .sub-notes, .exit-write, .exit-write-short, .one-cell,
.scan-written-area, .cmp-tbl .cmp-cell, .cmp-syn-area, .ind-group-body,
.ind-rule-area, .t321-line, .t321-box, .win-pane, .sos-write,
.mood-checkin-area, .smart-write, .reflect-area, .reflect-fu-area,
.icr-write, .rap-write, .frayer-write, .code-write,
.frayer-quad, .code-quad {
  background-image: none !important;
}

/* Containers that hold a write-area become vertical flex so the textarea
   takes the remaining height under its label. Padding-top on the parent
   becomes the offset where ruled lines begin. */
.cornell-notes,
.cornell-summary,
.bbs-box,
.cer-box,
.cer-line,
.qw-write,
.isn-area,
.org-box,
.org-tt-c {
  display: flex;
  flex-direction: column;
}
.cornell-notes .write-area,
.cornell-summary .write-area,
.qw-write .write-area,
.isn-area .write-area,
.cer-line .write-area,
.org-tt-c .write-area { flex: 1; }
.bbs-box .write-area,
.cer-box .write-area,
.org-box .write-area { flex: 1; margin-top: 6px; }

/* Per-region label offsets: the ruled line gradient is positioned to start
   AFTER the label so the first line of typed text sits on the first rule. */
.bbs-box { background-position: 0 28px !important; }
.cer-box { background-position: 0 26px !important; }
.cornell-summary { background-position: 0 28px !important; }
.qw-write,
.cornell-notes,
.isn-area,
.cer-line,
.org-tt-c,
.org-box { background-position: 0 0 !important; }

/* SPR feedback cells get a small textarea */
.spr-tbl .blank textarea {
  width: 100%;
  min-height: 0.85in;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 11pt;
  line-height: 18px;
}

/* Marking-the-Text margin gets a narrow annotation textarea */
.mtt-margin textarea {
  width: 100%;
  height: 100%;
  min-height: 0.7in;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 9.5pt;
  line-height: 18px;
  color: #000;
}

/* Socratic observer-tally box becomes a typeable strip */
.soc-tally-blank textarea {
  width: 100%;
  min-height: 0.45in;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11pt;
  line-height: 22px;
}

/* ==================================================================
   PRINT — Strip all fills, gradients, shadows. Hairlines only.
================================================================== */
@media print {
  /* Reset the page chrome so the worksheet uses the full page.
     The old visibility:hidden hack preserved layout boxes, which left the
     .sheet stuck in its (right-side) grid column. Tear that down. */
  html, body {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  /* Hide everything that is not the sheet, but keep the sheet's ancestors
     in the document so it actually renders. */
  body > header,
  #formPane,
  .gen-shell > section > .flex,    /* the "PRINT PREVIEW" meta row */
  .save-status,
  .btn,
  .pacing-tools,
  .meta-strip,
  .grader-ui,
  .dayplan-ui,
  .nb-ui,
  .day-crumb,
  [data-auth-slot] { display: none !important; }

  /* Collapse the layout containers so the sheet fills the page. */
  .gen-shell,
  .gen-shell > section,
  .preview-frame {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
    max-height: none !important;
    overflow: visible !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }
  /* Library page chrome too, just in case someone prints from there. */
  main { padding: 0 !important; margin: 0 !important; max-width: none !important; }

  .sheet {
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;       /* @page handles the physical margin */
    background: #fff !important;
  }
  .sheet,
  .sheet * {
    background: transparent !important;
    background-image: none !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  /* Ruled-line backing now lives on .write-area only (see textarea rule below).
     Parent boxes stay clean — no gradient, no offset gymnastics. */
  /* Textareas print their values + the ruled-line backing.
     This is the ONE rule that re-applies the gradient after .sheet * strips it. */
  textarea, .write-area {
    color: #000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .write-area {
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--rule-period) - 1px),
      #B5B5B5 calc(var(--rule-period) - 1px),
      #B5B5B5 var(--rule-period)
    ) !important;
    background-size: 100% var(--rule-period) !important;
  }
  textarea::placeholder, .write-area::placeholder { color: transparent !important; }
  /* Hairlines for borders */
  .cornell-grid,
  .cornell-cue,
  .cornell-summary,
  .bbs-kernel,
  .bbs-box,
  .bbs-legend,
  .spr-tbl,
  .spr-tbl th,
  .spr-tbl td,
  .sheet-header,
  .sheet-footer,
  .spr-self {
    border-color: #000 !important;
  }
  @page { size: letter; margin: 0.5in; }
}

/* ============================================================
   POLISH — micro-interactions, motion, focus, status pulses
   Honors prefers-reduced-motion. Print-safe (wrapped in @media screen).
   ============================================================ */
@media screen {
  html { scroll-behavior: smooth; }

  /* Body fade-in on load (prerendered pages will already be painted) */
  body { animation: tt-page-in .22s ease-out both; }
  @keyframes tt-page-in {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: none; }
  }

  /* Refined focus rings — visible but not chunky */
  :where(button, a, input, select, textarea):focus-visible {
    outline: 2px solid var(--titan, #1E4A8C);
    outline-offset: 2px;
    border-radius: 4px;
  }

  /* Tool-card hover/active micro-interactions */
  .tool-card {
    transition: transform .18s cubic-bezier(.16,1,.3,1),
                box-shadow .18s ease-out,
                border-color .18s ease-out;
    will-change: transform;
  }
  .tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px -8px rgba(15, 46, 92, 0.18);
    border-color: var(--titan-soft, #EAF1FB);
  }
  .tool-card:active { transform: translateY(0) scale(.995); }

  /* Buttons: gentle press */
  .btn { transition: background-color .14s ease-out, color .14s ease-out, transform .08s ease-out, box-shadow .14s ease-out; }
  .btn:active { transform: translateY(0.5px); }
  .btn-primary:hover { box-shadow: 0 4px 14px -6px rgba(30, 74, 140, 0.45); }

  /* Category nav buttons */
  .cat-btn { transition: background-color .14s ease-out, color .14s ease-out; }

  /* SchoolAI button on cards */
  .card-sai, .gen-title-sai {
    transition: background-color .14s ease-out, color .14s ease-out, transform .12s ease-out;
  }
  .card-sai:hover, .gen-title-sai:hover { transform: translateY(-1px); }

  /* SchoolAI modal entrance */
  .sai-modal { animation: tt-fade .18s ease-out; }
  .sai-modal-box { animation: tt-rise .26s cubic-bezier(.16,1,.3,1); }
  @keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes tt-rise {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to   { opacity: 1; transform: none; }
  }

  /* AI button working/loading state — inline spinner */
  .ai-btn[data-loading="true"],
  .ai-btn[disabled][data-loading="true"] {
    position: relative;
    color: transparent !important;
    pointer-events: none;
  }
  .ai-btn[data-loading="true"]::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid rgba(30, 74, 140, 0.25);
    border-top-color: var(--titan, #1E4A8C);
    border-radius: 50%;
    animation: tt-spin .7s linear infinite;
  }
  @keyframes tt-spin { to { transform: rotate(360deg); } }

  /* Save status pulse when it flips to "Saved" */
  .save-status-on {
    animation: tt-pulse-ok .9s ease-out 1;
  }
  @keyframes tt-pulse-ok {
    0%   { background-color: rgba(34, 197, 94, 0.20); }
    100% { background-color: transparent; }
  }

  /* Inputs — subtle focus lift */
  .gen-form input:focus,
  .gen-form select:focus,
  .gen-form textarea:focus,
  .meta-field input:focus,
  .meta-field select:focus {
    box-shadow: 0 0 0 3px rgba(30, 74, 140, 0.12);
    border-color: var(--titan, #1E4A8C);
  }

  /* Plan Builder day cells: hoverable */
  .pb-day {
    transition: border-color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out;
  }
  .pb-day:hover {
    border-color: var(--titan-soft, #EAF1FB);
    box-shadow: 0 4px 12px -8px rgba(15, 46, 92, 0.18);
  }

  /* Library list rows */
  .lib-row { transition: background-color .14s ease-out; }
  .lib-row:hover { background-color: var(--steel-soft, #F0F2F4); }

  /* Phase pills — tiny lift on hover (for filterable contexts) */
  [class*="pill-phase-"] { transition: filter .14s ease-out; }
  [class*="pill-phase-"]:hover { filter: brightness(0.97); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   COMPLIANCE CHROME
   Footer (every page), no-PII banner (generator + plan-builder),
   first-run acknowledgement modal.
   Print-safe (hidden under @media print).
   ============================================================ */

.tt-footer {
  margin-top: 3rem;
  border-top: 1px solid #E5E7EB;
  background: #FFFFFF;
  font-size: 12px;
  color: var(--steel, #5C6770);
}
.tt-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.tt-footer-left strong { color: #0A0A0A; font-weight: 600; }
.tt-footer-warn { color: #B45309; font-weight: 600; }
.tt-footer-sep { margin: 0 6px; opacity: 0.6; }
.tt-footer-right a {
  color: var(--titan, #1E4A8C);
  text-decoration: none;
}
.tt-footer-right a:hover { text-decoration: underline; }

.tt-pii-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #78350F;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.tt-pii-icon { font-size: 16px; line-height: 1.4; flex-shrink: 0; }
.tt-pii-text { flex: 1; }
.tt-pii-text strong { color: #7C2D12; }
.tt-pii-link {
  color: #7C2D12;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
}
.tt-pii-dismiss {
  background: transparent;
  border: 0;
  color: #78350F;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
.tt-pii-dismiss:hover { color: #7C2D12; }

.tt-ack-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: tt-fade .2s ease-out;
}
.tt-ack-box {
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  padding: 28px 28px 22px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.4);
  animation: tt-rise .26s cubic-bezier(.16,1,.3,1);
}
.tt-ack-title {
  font-family: '"Source Serif 4"', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #0A0A0A;
  margin: 0 0 8px;
}
.tt-ack-lede {
  font-size: 14px;
  color: var(--steel, #5C6770);
  margin: 0 0 14px;
}
.tt-ack-list {
  margin: 0 0 14px;
  padding: 0 0 0 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #0A0A0A;
}
.tt-ack-list li { margin-bottom: 8px; }
.tt-ack-list strong { color: var(--titan, #1E4A8C); }
.tt-ack-fine {
  font-size: 12px;
  color: var(--steel, #5C6770);
  margin: 0 0 18px;
}
.tt-ack-fine a {
  color: var(--titan, #1E4A8C);
  text-decoration: underline;
}
.tt-ack-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #E5E7EB;
  padding-top: 14px;
}

@media print {
  .tt-footer, .tt-pii-banner, .tt-ack-modal { display: none !important; }
}

/* ============================================================
   ADAPT RAIL — differentiation overlay chips above generator forms
   ============================================================ */
.adapt-rail-host { margin: 0 0 14px; }
.adapt-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--titan-soft, #EAF1FB);
  border: 1px solid #C7D9F2;
  border-radius: 8px;
}
.adapt-rail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--titan, #1E4A8C);
  margin-right: 4px;
}
.adapt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #FFFFFF;
  border: 1px solid #C7D9F2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--titan, #1E4A8C);
  cursor: pointer;
  transition: background-color .12s ease-out, border-color .12s ease-out, transform .1s ease-out;
}
.adapt-chip:hover { background: #F4F8FE; transform: translateY(-1px); }
.adapt-chip.is-active {
  background: var(--titan, #1E4A8C);
  color: #FFFFFF;
  border-color: var(--titan, #1E4A8C);
}
.adapt-chip-icon { font-size: 14px; line-height: 1; }
.adapt-rail-hint {
  margin-left: auto;
  font-size: 11px;
  color: var(--steel, #5C6770);
  font-style: italic;
}

/* When an adaptation overlay is active, hint at it on the preview frame */
body[data-adaptation]:not([data-adaptation="none"]) .preview-frame {
  outline: 2px dashed rgba(30, 74, 140, 0.25);
  outline-offset: 6px;
}

/* ============================================================
   COGNATE HIGHLIGHTS — visible in screen, soft in print
   ============================================================ */
.cognate {
  background: rgba(16, 185, 129, 0.18);
  border-bottom: 2px solid #10B981;
  padding: 0 1px;
  border-radius: 2px;
  cursor: help;
}
.cognate-pattern {
  background: rgba(59, 130, 246, 0.12);
  border-bottom: 2px dotted #3B82F6;
  padding: 0 1px;
  border-radius: 2px;
  cursor: help;
}
.cognate-false {
  background: rgba(239, 68, 68, 0.18);
  border-bottom: 2px wavy #EF4444;
  padding: 0 1px;
  border-radius: 2px;
  cursor: help;
  font-weight: 600;
}
@media print {
  .cognate         { background: transparent !important; border-bottom: 1px solid #000 !important; }
  .cognate-pattern { background: transparent !important; border-bottom: 1px dotted #000 !important; }
  .cognate-false   { background: transparent !important; border-bottom: 1px dashed #000 !important; font-weight: 700; }
}

/* ============================================================
   BILINGUAL PANES — side-by-side EN / ES
   ============================================================ */
.bil-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bil-pane {
  position: relative;
  padding: 14px 16px 14px 14px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  line-height: 1.55;
}
.bil-tag {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--titan, #1E4A8C);
  background: var(--titan-soft, #EAF1FB);
  padding: 1px 6px;
  border-radius: 4px;
}
.bil-loading { color: var(--steel, #5C6770); }
.bil-error   { color: #B91C1C; }
@media (max-width: 720px) {
  .bil-wrap { grid-template-columns: 1fr; }
}

/* ============================================================
   UNIT BUILDER
   ============================================================ */
.unit-row { transition: background-color .12s, border-color .12s; }
.unit-row:hover { transform: translateY(-1px); }

/* ============================================================
   EVIDENCE BINDER MODAL
   ============================================================ */
.tt-binder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  background: #F7F8FA;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
@media (max-width: 720px) {
  .tt-binder-grid { grid-template-columns: 1fr; }
}
.tt-binder-dom {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 10px;
}
.tt-binder-dom-h {
  font-weight: 700;
  font-size: 12px;
  color: var(--titan, #1E4A8C);
  margin-bottom: 6px;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 4px;
}
.tt-binder-chk {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 0;
  cursor: pointer;
}
.tt-binder-chk input { margin-top: 3px; }
.tt-binder-chk strong { color: var(--titan, #1E4A8C); margin-right: 3px; }

/* Cognate scan callout on unit editor */
#uCognateScan strong { color: var(--titan, #1E4A8C); }

/* ============================================================
   SYNC BADGE — storage tier indicator in the header auth slot
   ============================================================ */
.tt-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: filter .12s ease-out, transform .1s ease-out;
}
.tt-sync-badge:hover { filter: brightness(0.96); transform: translateY(-1px); }
.tt-sync-ok       { background: #DCFCE7; color: #14532D; border: 1px solid #86EFAC; }
.tt-sync-local    { background: #FEF3C7; color: #78350F; border: 1px solid #FBBF24; }
.tt-sync-pending  { background: var(--titan-soft, #EAF1FB); color: var(--titan, #1E4A8C); border: 1px solid #93C5FD; }
.tt-sync-offline  { background: #F3F4F6; color: #6B7280; border: 1px solid #D1D5DB; }
@media print { .tt-sync-badge { display: none !important; } }

/* ============================================================
   IMPACT BADGE — research-based percentile-gain indicator
   anchored to the bottom-right of every tool card.
   Three tiers (high/med/low) with calm, intentional color.
   ============================================================ */
.tool-card { position: relative; }
.impact-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 4px 8px 3px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  cursor: help;
  user-select: none;
  border: 1px solid transparent;
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
.impact-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -6px rgba(0,0,0,0.18); }
.impact-sub {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-top: 1px;
}
.impact-high { background: #DCFCE7; color: #14532D; border-color: #86EFAC; }
.impact-med  { background: #DBEAFE; color: #1E3A8C; border-color: #93C5FD; }
.impact-low  { background: #FEF3C7; color: #78350F; border-color: #FDE68A; }

/* Give the card bottom a bit of breathing room so the badge doesn't overlap pills */
.tool-card .card-pills { padding-right: 56px; }

@media print { .impact-badge { display: none !important; } }

/* ============================================================
   TOP FILTER BAR — replaces the old left sidebar.
   "Group by" picks the dimension; chips filter to one value of it.
   ============================================================ */
.tool-filter-bar {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.tfb-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tfb-row-primary { margin-bottom: 10px; }
.tfb-row-chips   { padding-top: 4px; border-top: 1px dashed #E5E7EB; padding-top: 10px; }

.tfb-group-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tfb-group-by-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel, #5C6770);
}
.tfb-group-by select {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 28px 6px 10px;
  border: 1px solid #C7D2DE;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--titan, #1E4A8C);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%231E4A8C' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.tfb-group-by select:focus {
  outline: 2px solid var(--titan, #1E4A8C);
  outline-offset: 1px;
}
.tfb-reset {
  font-size: 12px;
  font-weight: 600;
  color: var(--steel, #5C6770);
  background: transparent;
  border: 1px solid #E5E7EB;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .12s, color .12s;
}
.tfb-reset:hover { background: var(--steel-soft, #F0F2F4); color: var(--ink, #0A0A0A); }
.tfb-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--steel, #5C6770);
  font-weight: 600;
}

.tfb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}
.tfb-chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #C7D2DE;
  background: #FFFFFF;
  color: var(--steel, #5C6770);
  cursor: pointer;
  transition: background-color .12s, color .12s, border-color .12s, transform .1s;
}
.tfb-chip:hover {
  background: var(--titan-soft, #EAF1FB);
  color: var(--titan, #1E4A8C);
  border-color: #93C5FD;
  transform: translateY(-1px);
}
.tfb-chip.is-active {
  background: var(--titan, #1E4A8C);
  color: #FFFFFF;
  border-color: var(--titan, #1E4A8C);
}

/* ============================================================
   FULL-WIDTH GRID — flat and grouped variants
   ============================================================ */
.tool-grid-wrap { width: 100%; }
.tool-grid-flat {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-grid-grouped { display: block; }

.tool-group {
  margin-bottom: 28px;
}
.tool-group-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--titan-soft, #EAF1FB);
}
.tool-group-title {
  font-family: '"Source Serif 4"', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #0A0A0A);
  margin: 0;
}
.tool-group-title-muted { color: var(--steel, #5C6770); font-weight: 500; }
.tool-group-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--titan-soft, #EAF1FB);
  color: var(--titan, #1E4A8C);
  padding: 2px 8px;
  border-radius: 999px;
}
.tool-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

@media print {
  .tool-filter-bar, .tool-group-h { display: none !important; }
  .tool-grid-flat, .tool-group-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MULTI-PROVIDER AI PANELS — Settings page
   ============================================================ */
.ai-provider-panel {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  background: #FAFBFC;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
.ai-provider-panel.is-active { display: block; }
.ai-panel-h {
  font-family: '"Source Serif 4"', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--titan, #1E4A8C);
  margin: 0 0 6px;
}

/* ============================================================
   REFLECTION PANEL — beneath the print preview
   ============================================================ */
.reflection-panel {
  margin-top: 18px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-left: 4px solid var(--titan, #1E4A8C);
  border-radius: 10px;
}
.reflection-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.reflection-title {
  font-family: '"Source Serif 4"', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 2px;
}
.reflection-lede {
  font-size: 12.5px;
  color: var(--steel, #5C6770);
  margin: 0;
  line-height: 1.5;
  max-width: 60ch;
}
.reflection-taught {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel, #5C6770);
  background: #F0F2F4;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.reflection-taught input { accent-color: var(--titan, #1E4A8C); }

.reflection-stars {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 4px;
  flex-wrap: wrap;
}
.reflection-stars-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel, #5C6770);
}
.reflection-star-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.reflection-star {
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: #D1D5DB;
  cursor: pointer;
  padding: 2px 4px;
  transition: color .12s ease-out, transform .1s ease-out;
}
.reflection-star:hover { transform: scale(1.08); }
.reflection-star.is-on,
.reflection-star.is-hover { color: #F59E0B; }
.reflection-rating-hint {
  margin-left: 8px;
  font-size: 12px;
  font-style: italic;
  color: var(--steel, #5C6770);
}

.reflection-field {
  display: block;
  margin: 12px 0 8px;
}
.reflection-field > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel, #5C6770);
  margin-bottom: 4px;
}
.reflection-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.reflection-field textarea:focus {
  outline: none;
  border-color: var(--titan, #1E4A8C);
  box-shadow: 0 0 0 3px rgba(30, 74, 140, 0.12);
}

.reflection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.reflection-coach {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--titan-soft, #EAF1FB);
  border: 1px solid #C7D9F2;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
}
.reflection-coach-h {
  font-weight: 700;
  color: var(--titan, #1E4A8C);
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reflection-coach-body { color: var(--ink, #0A0A0A); }
.reflection-coach.hidden { display: none; }

/* Library / Calendar — small reflection rating chip on cards that have one */
.lib-refl-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 2px 7px;
  border-radius: 999px;
}

@media print { .reflection-panel { display: none !important; } }

/* ============================================================
   SILVER, STRONG & ASSOCIATES — shared print/preview styles
   Outline-only, ink-light. Print-friendly at letter size.
   ============================================================ */
.silver-strip {
  background: var(--titan-soft, #EAF1FB);
  border: 1px solid #C7D9F2;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.02em;
  border-radius: 4px;
  margin: 8px 0 14px;
  color: var(--titan, #1E4A8C);
}
.silver-tbl {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 12.5px;
}
.silver-tbl th, .silver-tbl td {
  border: 0.75pt solid #1f2937;
  padding: 6px 8px;
  vertical-align: top;
}
.silver-tbl th {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #FAFBFC;
}
.silver-tbl td:nth-child(2),
.silver-tbl td:nth-child(3) { text-align: center; font-size: 16px; }
.silver-yes { background: #ECFDF5; }
.silver-no  { background: #FEF2F2; }
.silver-list { margin: 0; padding-left: 18px; }
.silver-list li { padding: 2px 0; line-height: 1.5; }
.silver-bridges li { font-style: italic; }

/* Mystery clue grid */
.silver-clue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 14px;
}
.silver-clue {
  border: 0.75pt solid #1f2937;
  padding: 6px 8px;
  font-size: 11.5px;
  line-height: 1.35;
  border-radius: 3px;
  position: relative;
}
.silver-clue-n {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--steel, #5C6770);
}

/* Mind's Eye */
.silver-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.silver-word {
  border: 0.5pt solid #1f2937;
  padding: 3px 9px;
  font-size: 12px;
  border-radius: 999px;
}
.silver-sketchbox {
  border: 0.75pt solid #1f2937;
  height: 240px;
  margin: 6px 0 14px;
}

/* Power Notes */
.silver-power {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
  padding-left: 0;
}
.silver-power-l2 { padding-left: 28px; }
.silver-power-l3 { padding-left: 56px; }
.silver-power-l4 { padding-left: 84px; }
.silver-power-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--titan, #1E4A8C);
  background: var(--titan-soft, #EAF1FB);
  border-radius: 3px;
  padding: 1px 5px;
  margin-top: 5px;
  width: 56px;
  text-align: center;
}
.silver-power-line { flex: 1; }
.silver-power-line .write-area { border: 0; border-bottom: 0.5pt solid #1f2937; min-height: 22px; }

/* 3-Way Tie diagram */
.silver-3way {
  position: relative;
  height: 240px;
  margin: 8px auto 14px;
  max-width: 480px;
}
.silver-3way-term {
  position: absolute;
  width: 130px;
  height: 60px;
  border: 0.75pt solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  border-radius: 6px;
  padding: 4px;
}
.silver-3way-t1 { top: 0;   left: 50%; transform: translateX(-50%); }
.silver-3way-t2 { bottom: 0; left: 0; }
.silver-3way-t3 { bottom: 0; right: 0; }
.silver-3way-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 50px;
  border: 0.75pt dashed #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  font-size: 11px;
  background: #FAFBFC;
  border-radius: 999px;
}

/* Memory Box */
.silver-membox {
  border: 0.75pt solid #1f2937;
  margin: 8px 0 14px;
  break-inside: avoid;
}
.silver-membox-term {
  background: var(--titan-soft, #EAF1FB);
  padding: 6px 10px;
  font-weight: 700;
  border-bottom: 0.75pt solid #1f2937;
}
.silver-membox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 90px 90px;
}
.silver-membox-cell {
  border-right: 0.5pt solid #1f2937;
  border-bottom: 0.5pt solid #1f2937;
  padding: 6px 8px;
  position: relative;
}
.silver-membox-cell:nth-child(2n) { border-right: 0; }
.silver-membox-cell:nth-child(n+3) { border-bottom: 0; }
.silver-membox-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--steel, #5C6770);
}

/* Main Idea protocol */
.silver-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
  padding-bottom: 6px;
  border-bottom: 0.5pt solid #1f2937;
}
.silver-main-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--steel, #5C6770);
  background: var(--titan-soft, #EAF1FB);
  padding: 2px 8px;
  border-radius: 3px;
}
.silver-main-detail {
  display: flex;
  gap: 8px;
  margin: 6px 0;
}
.silver-main-n {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--titan, #1E4A8C);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}
.silver-main-detail-body { flex: 1; }
.silver-main-cite {
  font-size: 11px;
  color: var(--steel, #5C6770);
  margin-top: 4px;
}

/* Decision Matrix */
.silver-decide td:first-child { width: 30%; }
.silver-decide td { text-align: center; font-size: 12px; }
.silver-decide td:first-child { text-align: left; }
.silver-rate-key {
  font-size: 11px;
  color: var(--steel, #5C6770);
  font-style: italic;
  margin: -8px 0 12px;
}

/* Knowledge Cards 12-up */
.silver-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 8px 0;
}
.silver-card {
  border: 0.75pt dashed #1f2937;
  padding: 6px 7px;
  font-size: 10.5px;
  line-height: 1.3;
  min-height: 130px;
}
.silver-card-term {
  border-bottom: 0.5pt solid #1f2937;
  padding-bottom: 3px;
  margin-bottom: 4px;
  font-size: 12px;
}
.silver-card-row {
  margin-top: 3px;
  border-bottom: 0.5pt dotted #6B7280;
  min-height: 18px;
}
.silver-card-pic { min-height: 30px; border-bottom: 0.5pt solid #1f2937; }
.silver-card-row > span {
  color: var(--steel, #5C6770);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Big Idea */
.silver-bigidea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 14px;
}
.silver-bigidea-card {
  border: 0.75pt solid #1f2937;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  position: relative;
  min-height: 50px;
}
.silver-card-n {
  position: absolute;
  top: 3px;
  right: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--steel, #5C6770);
}

@media print {
  .silver-strip { background: transparent !important; border-color: #000 !important; }
  .silver-tbl th, .silver-tbl td { border-color: #000 !important; }
  .silver-clue, .silver-card, .silver-bigidea-card, .silver-membox,
  .silver-3way-term, .silver-sketchbox, .silver-word { border-color: #000 !important; }
  .silver-yes, .silver-no, .silver-membox-term, .silver-main-lbl, .silver-power-tag {
    background: transparent !important;
  }
}
