/*
 * Daily Lesson Plan view styles (header block; more sections in later iterations)
 */

/* ---------- Top meta strip ---------- */

.lesson-plan .daily-page-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: 0 0 0.85rem;
    padding: 0 0 0.55rem;
    border-bottom: 3px solid #2d5c8d;
    color: #35568a;
}

.lesson-plan .daily-page-meta-strip__left {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

.lesson-plan .daily-page-meta-strip__right {
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
    margin-left: auto;
    min-width: 0;
    flex: 1 1 0;
    white-space: normal;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lesson-plan .daily-page-meta-strip__sep {
    opacity: 0.5;
    margin-right: 0.35rem;
}

.lesson-plan .daily-page-meta-strip__summary {
    display: none;
}

.lesson-plan .daily-page-meta-strip__expanded {
    display: inline;
}

/* ---------- Header lead ---------- */

.lesson-plan .daily-page-lead {
    margin: 0 0 0.75rem;
    padding: 0 0 0.35rem;
    text-align: left;
    background: #fff;
}

.lesson-plan .daily-page-lead__standalone-badge {
    display: inline-block;
    margin: 0 0 0.65rem;
    padding: 0.35rem 1rem;
    border: 1px solid #7a6d34;
    border-radius: 999px;
    background-color: #fff9e5;
    color: #7a6d34;
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
}

.lesson-plan .daily-page-lead__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    line-height: 1.2;
    font-weight: 700;
    color: #22244a;
    letter-spacing: -0.02em;
}

.lesson-plan .daily-page-lead__summary {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 400;
    font-style: italic;
    color: #1e293b;
}

.lesson-plan .daily-page-lead__expanded {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 400;
    font-style: normal;
    color: #475569;
    max-width: 100%;
}

/* ---------- Metadata badges (shared annual-metadata-badges table) ---------- */

.lesson-plan table.annual-metadata-badges {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin: 4px 0 16px;
    border-collapse: collapse;
    border-spacing: 0;
    box-sizing: border-box;
    table-layout: fixed;
}

.lesson-plan table.annual-metadata-badges > tbody,
.lesson-plan table.annual-metadata-badges > tbody > tr {
    width: 100%;
    height: auto !important;
}

.lesson-plan table.annual-metadata-badges > tbody {
    display: table-row-group;
}

.lesson-plan table.annual-metadata-badges > tbody > tr {
    display: table-row;
}

.lesson-plan .annual-metadata-badges__cell {
    width: 16.6667%;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 10px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    color: #24364f;
    background: #f1f4f8;
    border: 1px solid #d3d9e4;
    vertical-align: middle;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lesson-plan table.daily-metadata-badges--scratch .annual-metadata-badges__cell {
    color: #1e2a44;
    background: #eef4fb;
    border-color: #c8d4e6;
    font-weight: 700;
}

.lesson-plan table.daily-metadata-badges--scratch {
    margin-bottom: 0.5rem;
}

/* Library daily — unit sequence badge row (6 cells; last = risk warning) */

.lesson-plan table.daily-metadata-badges--library {
    margin-bottom: 0.85rem;
}

.lesson-plan table.daily-metadata-badges--library .annual-metadata-badges__cell {
    color: #24364f;
    background: #f1f4f8;
    border-color: #d3d9e4;
    font-weight: 600;
}

/* Inherited annual → unit context (library header) */

.lesson-plan .daily-library-inherited-context {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid #c2d3e8;
    border-radius: 8px;
    background: #e8eff9;
    color: #24364f;
}

.lesson-plan .daily-library-inherited-context__line {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
    text-align: left;
    overflow-wrap: anywhere;
}

.lesson-plan .daily-library-inherited-context__line:last-child {
    margin-bottom: 0;
}

.lesson-plan .daily-library-inherited-context__line strong {
    font-weight: 700;
    color: #1f456d;
}

.plan-result-block .note-editable .lesson-plan .daily-library-inherited-context {
    margin: 0 0 1.25rem !important;
    padding: 0.85rem 1rem !important;
    border: 1px solid #c2d3e8 !important;
    border-radius: 8px !important;
    background: #e8eff9 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-library-inherited-context__line {
    display: block !important;
    margin: 0 0 0.55rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #24364f !important;
}

.plan-result-block .note-editable .lesson-plan .daily-library-inherited-context__line:last-child {
    margin-bottom: 0 !important;
}

.lesson-plan .daily-teacher-provided-label {
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: #2d5c8d;
}

.lesson-plan .annual-metadata-badges__cell--warning {
    background: #f7f1e2;
    border-color: #e0cf9e;
    color: #7a5b16;
    font-weight: 700;
}

.lesson-plan .annual-warning-callout {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 2px solid #d9c486;
    background: #f7f1e2;
    color: #6d5115;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
}

.lesson-plan .annual-warning-callout strong {
    font-weight: 800;
}

.plan-result-block .note-editable .lesson-plan .daily-page-lead {
    margin: 0 0 0.75rem;
    padding: 0;
    background: transparent;
}

.plan-result-block .note-editable .lesson-plan table.annual-metadata-badges {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 4px 0 16px !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.plan-result-block .note-editable .lesson-plan table.annual-metadata-badges > tbody,
.plan-result-block .note-editable .lesson-plan table.annual-metadata-badges > tbody > tr {
    width: 100% !important;
    height: auto !important;
}

.plan-result-block .note-editable .lesson-plan table.annual-metadata-badges > tbody {
    display: table-row-group !important;
}

.plan-result-block .note-editable .lesson-plan table.annual-metadata-badges > tbody > tr {
    display: table-row !important;
}

.plan-result-block .note-editable .lesson-plan .annual-metadata-badges__cell {
    width: 16.6667% !important;
    padding: 12px 10px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    text-align: center !important;
    color: #24364f !important;
    background: #f1f4f8 !important;
    border: 1px solid #d3d9e4 !important;
    vertical-align: middle !important;
    white-space: normal !important;
}

.plan-result-block .note-editable .lesson-plan table.daily-metadata-badges--scratch .annual-metadata-badges__cell {
    color: #1e2a44 !important;
    background: #eef4fb !important;
    border-color: #c8d4e6 !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-teacher-provided-label {
    margin: 0 0 1.25rem !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-align: left !important;
    color: #2d5c8d !important;
}

/* ---------- Section 1: Lesson Inputs (scratch/upload) ---------- */

.lesson-plan .daily-lesson-inputs-section {
    margin: 0 0 1.5rem;
}

.lesson-plan .daily-lesson-inputs-section__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: #22244a;
    letter-spacing: -0.02em;
}

.lesson-plan .daily-lesson-inputs-section__intro {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    color: #334155;
    max-width: 52rem;
}

.lesson-plan .daily-lesson-inputs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    width: 100%;
}

.lesson-plan .daily-lesson-inputs-card {
    border: 1px solid #d3d9e4;
    background: #f1f4f8;
    padding: 16px;
    border-radius: 6px;
    min-width: 0;
    box-sizing: border-box;
}

.lesson-plan .daily-lesson-inputs-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #24364f;
}

.lesson-plan table.data.daily-lesson-inputs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
}

.lesson-plan table.data.daily-lesson-inputs-table td {
    border: 1px solid #d3d9e4;
    padding: 10px;
    vertical-align: top;
    font-size: 1rem;
    line-height: 1.5;
    color: #24364f;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lesson-plan table.data.daily-lesson-inputs-table .label-col {
    background: #dde3eb;
    width: 38%;
    font-weight: 700;
    color: #24364f;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-inputs-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 18px !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-lesson-inputs-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-lesson-inputs-table td {
    border: 1px solid #d3d9e4 !important;
    padding: 10px !important;
    vertical-align: top !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #24364f !important;
    white-space: normal !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-lesson-inputs-table .label-col {
    background: #dde3eb !important;
    width: 38% !important;
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .lesson-plan .daily-lesson-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Section 2: Standards Alignment (scratch/upload) ---------- */

.lesson-plan .daily-standards-alignment-section {
    margin: 0 0 1.5rem;
}

.lesson-plan .daily-standards-mapped-label {
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: #2d5c8d;
}

.lesson-plan .daily-standards-alignment-section__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: #22244a;
    letter-spacing: -0.02em;
}

.lesson-plan .daily-standards-alignment-section__intro {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    color: #334155;
    max-width: 52rem;
}

.lesson-plan table.data.daily-standards-alignment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
    border: 1px solid #d3d9e4;
}

.lesson-plan table.data.daily-standards-alignment-table > tbody,
.lesson-plan table.data.daily-standards-alignment-table > tbody > tr {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-standards-alignment-table > tbody {
    display: table-row-group;
}

.lesson-plan table.data.daily-standards-alignment-table > tbody > tr {
    display: table-row;
}

.lesson-plan table.data.daily-standards-alignment-table td {
    display: table-cell;
    border: 1px solid #d3d9e4;
    padding: 12px 14px;
    vertical-align: top;
    font-size: 1rem;
    line-height: 1.5;
    color: #24364f;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

.lesson-plan table.data.daily-standards-alignment-table .label-col {
    width: 32%;
    font-weight: 700;
    color: #24364f;
    background: #eef4fb;
}

.lesson-plan table.data.daily-standards-alignment-table td:not(.label-col) {
    background: #fff;
    font-weight: 400;
}

/* Teacher View legacy list (pre-table condensed) — keep readable until regenerated */
.lesson-plan .daily-standards-condensed-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #d3d9e4;
    background: #fff;
}

.lesson-plan .daily-standards-condensed-list > li {
    margin: 0;
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: #24364f;
    border-bottom: 1px solid #d3d9e4;
}

.lesson-plan .daily-standards-condensed-list > li:last-child {
    border-bottom: none;
}

.plan-result-block .note-editable .lesson-plan .daily-standards-mapped-label {
    margin: 0 0 0.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #2d5c8d !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    display: table !important;
    border: 1px solid #d3d9e4 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table > tbody,
.plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table > tbody > tr {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table > tbody {
    display: table-row-group !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table > tbody > tr {
    display: table-row !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table td {
    display: table-cell !important;
    border: 1px solid #d3d9e4 !important;
    padding: 12px 14px !important;
    vertical-align: top !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #24364f !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    white-space: normal !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table .label-col {
    width: 32% !important;
    font-weight: 700 !important;
    background: #eef4fb !important;
}

/* ---------- Section 3: Student Context + Learning Target + Lesson Flow ---------- */

.lesson-plan .daily-student-context-section {
    margin: 0 0 1.5rem;
}

.lesson-plan .daily-student-context-applied-label {
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d5c8d;
}

.lesson-plan .daily-student-context-section__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: #22244a;
    letter-spacing: -0.02em;
}

.lesson-plan .daily-student-context-section__intro {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #334155;
    max-width: 52rem;
}

.lesson-plan .daily-student-context-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.lesson-plan .daily-context-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #eef4fb;
    border: 1px solid #c8d4e6;
    color: #24364f;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.lesson-plan table.data.daily-student-context-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1rem;
    table-layout: auto;
    border: 1px solid #d3d9e4;
}

.lesson-plan table.data.daily-student-context-table > thead {
    display: table-header-group;
}

.lesson-plan table.data.daily-student-context-table > tbody {
    display: table-row-group;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-student-context-table > tbody > tr {
    display: table-row;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-student-context-table th {
    display: table-cell;
    border: 1px solid #d3d9e4;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: left;
    color: #fff;
    background: #2d5c8d;
    vertical-align: middle;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

.lesson-plan table.data.daily-student-context-table td {
    display: table-cell;
    border: 1px solid #d3d9e4;
    padding: 12px 14px;
    vertical-align: top;
    font-size: 1rem;
    line-height: 1.5;
    color: #24364f;
    background: #f8fafc;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lesson-plan table.data.daily-student-context-table tbody tr:nth-child(even) td {
    background: #f1f5f9;
}

.lesson-plan table.data.daily-student-context-table th:nth-child(1),
.lesson-plan table.data.daily-student-context-table td:nth-child(1),
.lesson-plan table.data.daily-student-context-table th:nth-child(3),
.lesson-plan table.data.daily-student-context-table td:nth-child(3) {
    width: 1%;
    white-space: nowrap;
    vertical-align: top;
}

.lesson-plan table.data.daily-student-context-table th:nth-child(2),
.lesson-plan table.data.daily-student-context-table td:nth-child(2) {
    width: auto;
    white-space: normal;
}

.lesson-plan table.data.daily-student-context-table td:first-child,
.lesson-plan table.data.daily-student-context-table td:first-child strong,
.lesson-plan table.data.daily-student-context-table td:first-child b {
    font-weight: 700;
}

.lesson-plan table.data.daily-student-context-table td:nth-child(2) {
    font-weight: 400;
}

.lesson-plan table.data.daily-student-context-table td:nth-child(3) {
    text-align: left;
}

.lesson-plan .daily-context-driver {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: #fff9e5;
    border: 1px solid #d9c486;
    color: #6d5115;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.25;
}

.lesson-plan .daily-student-context-note {
    margin: 0 0 1rem;
    padding: 12px 14px;
    border: 1px solid #9fd4a8;
    border-radius: 6px;
    background: #edf9ef;
    color: #1e4d2b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lesson-plan .daily-learning-target-banner {
    margin: 0 0 1.25rem;
    padding: 16px 18px;
    border-radius: 8px;
    background: #2d5c8d;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.5;
    font-weight: 400;
}

.lesson-plan .daily-learning-target-banner strong {
    font-weight: 700;
}

.lesson-plan .daily-lesson-flow-label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d5c8d;
}

.lesson-plan table.data.daily-lesson-flow-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
    border: none;
}

.lesson-plan table.data.daily-lesson-flow-table > tbody {
    display: table-row-group;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-lesson-flow-table > tbody > tr {
    display: table-row;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan .daily-lesson-flow-seg {
    display: table-cell;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    border: none;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    white-space: normal;
}

.lesson-plan .daily-lesson-flow-seg--1 {
    background: #3db8a8;
    border-radius: 8px 0 0 8px;
}

.lesson-plan .daily-lesson-flow-seg--2 {
    background: #2d9d8a;
}

.lesson-plan .daily-lesson-flow-seg--3 {
    background: #3d7cb8;
}

.lesson-plan .daily-lesson-flow-seg--4 {
    background: #2d5c8d;
}

.lesson-plan .daily-lesson-flow-seg--5 {
    background: #1e4a73;
}

.lesson-plan .daily-lesson-flow-seg--6 {
    background: #6b4c9a;
    border-radius: 0 8px 8px 0;
}

.lesson-plan .daily-lesson-flow-block {
    margin: 0 0 1.25rem;
}

.lesson-plan .daily-equipment-checklist-block {
    margin: 0 0 1.5rem;
}

.lesson-plan .daily-equipment-checklist-label {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d5c8d;
}

.lesson-plan .daily-equipment-assumption-banner {
    margin: 0 0 0.85rem;
    padding: 12px 14px;
    border: 1px solid #e0c48a;
    border-radius: 6px;
    background: #fff8e8;
    color: #5c4316;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lesson-plan .daily-equipment-assumption-banner strong {
    font-weight: 700;
}

.lesson-plan .daily-equipment-checklist-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
}

.lesson-plan .daily-equipment-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d3d9e4;
    border-radius: 8px;
    background: #f8fafc;
    cursor: default;
}

.lesson-plan .daily-equipment-checklist-item__check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border: 2px solid #64748b;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}

.lesson-plan .daily-equipment-checklist-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.lesson-plan .daily-equipment-checklist-item__title {
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 700;
    color: #24364f;
}

.lesson-plan .daily-equipment-checklist-item__desc {
    font-size: 0.875rem;
    line-height: 1.45;
    font-weight: 400;
    color: #64748b;
}

@media (max-width: 768px) {
    .lesson-plan .daily-equipment-checklist-grid {
        grid-template-columns: 1fr;
    }
}

/* Printable teaching visuals (Section 3, node 10) */

.lesson-plan .daily-printable-visuals-block {
    margin: 0;
}

.lesson-plan .daily-printable-visuals-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2d5c8d;
}

.lesson-plan .daily-printable-visuals-hint {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 400;
    color: #5b6880;
}

.lesson-plan .daily-printable-visuals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.lesson-plan .daily-printable-visuals-grid--refs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Station map / aim: own row under cue cards — never peer-sized with cue tiles */
.lesson-plan .daily-printable-visuals-maps {
    margin: 1.1rem 0 0;
    width: 100%;
}

.lesson-plan .daily-printable-visuals-maps .daily-printable-visual-card {
    width: 100%;
}

/* Safety + equipment sit below the map, optionally under a station banner */
.lesson-plan .daily-printable-visuals-support {
    margin: 1.1rem 0 0;
    width: 100%;
    border: 1px solid #d3d9e4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.lesson-plan .daily-printable-visuals-support__title {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    color: #1f456d;
    background: #e8eef6;
}

.lesson-plan .daily-printable-visuals-support .daily-printable-visuals-grid {
    padding: 14px;
    box-sizing: border-box;
}

.lesson-plan .daily-printable-visual-card--wide,
.lesson-plan .daily-printable-visual-card--full {
    grid-column: 1 / -1;
}

.lesson-plan .daily-printable-visual-card--pair {
    grid-column: auto;
}

.lesson-plan .daily-printable-visuals-block[data-ed-teaching-visuals="pending"] .daily-printable-visuals-grid {
    min-height: 120px;
    border: 1px dashed #d3d9e4;
    border-radius: 10px;
    background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #eef2f8 8px, #eef2f8 16px);
}

.lesson-plan .daily-printable-visual-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 14px 12px 16px;
    border: 1px solid #d3d9e4;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
    min-width: 0;
}

.lesson-plan .daily-printable-visual-card--ref {
    text-align: left;
    background: #f6f4fb;
    border-color: #ddd5ef;
}

.lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-card__art {
    min-height: 140px;
    background: #efeaf8;
}

.lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-svg {
    max-width: 160px;
}

.lesson-plan .daily-printable-visual-card__levels {
    margin: 0 0 0.45rem;
}

.lesson-plan .daily-printable-visual-card__level {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #24364f;
}

.lesson-plan .daily-printable-visual-card__level strong {
    display: inline;
    color: #24364f;
    font-weight: 800;
}

.lesson-plan .daily-printable-visual-card__cues {
    margin: 0 0 0.45rem;
}

.lesson-plan .daily-printable-visual-card__cue {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    line-height: 1.4;
    font-style: italic;
    color: #0b6b4c;
}

.lesson-plan .daily-printable-visual-card__safety {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #24364f;
}

.lesson-plan .daily-printable-visual-card__safety strong {
    color: #c62828;
    font-weight: 800;
}

.lesson-plan .daily-printable-visual-card__art {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 210px;
    margin: 0 0 0.75rem;
    padding: 10px 8px;
    box-sizing: border-box;
    overflow: hidden;
    border: none;
    border-radius: 8px;
    background: #eef4fb;
    position: relative;
    isolation: isolate;
}

.lesson-plan .daily-printable-visual-card--pair .daily-printable-visual-card__art,
.lesson-plan .daily-printable-visual-card--full .daily-printable-visual-card__art,
.lesson-plan .daily-printable-visual-card--wide .daily-printable-visual-card__art {
    min-height: 280px;
    overflow: visible;
}

.lesson-plan .daily-printable-visual-svg {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 210 / 150;
    margin: 0 auto;
    overflow: visible;
}

.lesson-plan .daily-printable-visual-svg--wide {
    max-width: 100%;
    width: 100%;
    aspect-ratio: auto;
}

.lesson-plan .daily-printable-visual-svg:not(.daily-printable-visual-svg--wide) text {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 0.02em;
}

.lesson-plan .daily-printable-visual-svg--wide text {
    font-family: Arial, Helvetica, sans-serif !important;
}

.lesson-plan .daily-printable-visual-card__hint {
    display: block;
    position: static;
    width: 100%;
    margin: 0 0 0.2rem;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    font-weight: 400;
    color: #2d5c8d;
}

.lesson-plan .daily-printable-visual-card__title {
    display: block;
    position: static;
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0;
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 700;
    color: #24364f;
}

@media screen and (max-width: 1100px) {
    .lesson-plan .daily-printable-visuals-grid--refs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 900px) {
    .lesson-plan .daily-printable-visuals-grid,
    .lesson-plan .daily-printable-visuals-grid--refs {
        grid-template-columns: 1fr;
    }
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visuals-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visuals-grid--refs {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visuals-hint {
    margin: 0 0 0.85rem !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #5b6880 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visuals-maps {
    margin: 1.1rem 0 0 !important;
    width: 100% !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visuals-support {
    margin: 1.1rem 0 0 !important;
    width: 100% !important;
    border: 1px solid #d3d9e4 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visuals-support__title {
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #1f456d !important;
    background: #e8eef6 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visuals-support .daily-printable-visuals-grid {
    padding: 14px !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--wide,
.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--full {
    grid-column: 1 / -1 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--pair {
    grid-column: auto !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px 12px 16px !important;
    border: 1px solid #d3d9e4 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    text-align: center !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--ref {
    text-align: left !important;
    background: #f6f4fb !important;
    border-color: #ddd5ef !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-card__art {
    min-height: 140px !important;
    background: #efeaf8 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-card__title {
    margin: 0 0 0.55rem !important;
    text-align: center !important;
    color: #6d4bd8 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__level {
    margin: 0 0 0.35rem !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #24364f !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__cue {
    margin: 0 0 0.25rem !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    font-style: italic !important;
    color: #0b6b4c !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__safety {
    margin: 0.15rem 0 0 !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    color: #24364f !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__safety strong {
    color: #c62828 !important;
    font-weight: 800 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__art {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 210px !important;
    margin: 0 0 0.75rem !important;
    padding: 10px 8px !important;
    overflow: hidden !important;
    border: none !important;
    border-radius: 8px !important;
    background: #eef4fb !important;
    position: relative !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--pair .daily-printable-visual-card__art,
.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--full .daily-printable-visual-card__art,
.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--wide .daily-printable-visual-card__art {
    min-height: 280px !important;
    overflow: visible !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-svg {
    display: block !important;
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
    aspect-ratio: 210 / 150 !important;
    margin: 0 auto !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-svg--wide {
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: auto !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-svg:not(.daily-printable-visual-svg--wide) text {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-svg--wide text {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: unset !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__hint {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 0 0.2rem !important;
    color: #2d5c8d !important;
}

.plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__title {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0.35rem 0 0 !important;
    font-weight: 700 !important;
    color: #24364f !important;
}

@media screen and (max-width: 1100px) {
    .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-grid--refs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 900px) {
    .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-grid,
    .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-grid--refs {
        grid-template-columns: 1fr !important;
    }
}

.plan-result-block .note-editable .lesson-plan .daily-equipment-checklist-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
}

.plan-result-block .note-editable .lesson-plan .daily-equipment-checklist-item {
    display: flex !important;
    align-items: flex-start !important;
    padding: 12px 14px !important;
    border: 1px solid #d3d9e4 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
}

.plan-result-block .note-editable .lesson-plan .daily-equipment-checklist-item__title {
    font-weight: 700 !important;
    color: #24364f !important;
}

.plan-result-block .note-editable .lesson-plan .daily-equipment-checklist-item__desc {
    color: #64748b !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    border: 1px solid #d3d9e4 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table > tbody {
    display: table-row-group !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table > tbody > tr {
    display: table-row !important;
    height: auto !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table th,
.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td {
    display: table-cell !important;
    height: auto !important;
    min-height: 0 !important;
    border: 1px solid #d3d9e4 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table th:nth-child(1),
.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td:nth-child(1),
.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table th:nth-child(3),
.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td:nth-child(3) {
    width: 1% !important;
    white-space: nowrap !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table th:nth-child(2),
.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td:nth-child(2) {
    width: auto !important;
    white-space: normal !important;
    min-width: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td:nth-child(1),
.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td:nth-child(1) strong,
.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td:nth-child(1) b {
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-context-table td:nth-child(2) {
    font-weight: 400 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-lesson-flow-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-lesson-flow-table > tbody {
    display: table-row-group !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-lesson-flow-table > tbody > tr {
    display: table-row !important;
    height: auto !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-flow-seg {
    display: table-cell !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

/* ---------- Section 4: Lesson Segments ---------- */

.lesson-plan .daily-lesson-segments-section {
    margin: 0 0 1.75rem;
}

.lesson-plan .daily-lesson-segments-label {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan .daily-lesson-segments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lesson-plan .daily-lesson-segment-item {
    border: 1px solid #d3d9e4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.lesson-plan .daily-lesson-segment-item summary.daily-lesson-segment-item__bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    margin: 0;
    padding: 0.9rem 1rem;
    background: #f1f4f8;
    box-sizing: border-box;
}

.lesson-plan .daily-lesson-segment-item summary.daily-lesson-segment-item__bar::-webkit-details-marker {
    display: none;
}

.lesson-plan .daily-lesson-segment-item summary.daily-lesson-segment-item__bar::marker {
    content: "";
}

.lesson-plan .daily-lesson-segment-item__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1f456d;
    text-align: left;
    overflow-wrap: anywhere;
}

.lesson-plan .daily-lesson-segment-item__time-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #d3d9e4;
    border-radius: 999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.lesson-plan .daily-lesson-segment-item__chev {
    font-size: 0.85rem;
    line-height: 1;
    color: #64748b;
    transition: transform 0.18s ease;
}

.lesson-plan .daily-lesson-segment-item[open] summary .daily-lesson-segment-item__chev {
    transform: rotate(90deg);
    display: inline-block;
}

.lesson-plan .daily-lesson-segment-item__panel {
    padding: 1rem 1rem 1.1rem;
    border-top: 1px solid #e8edf4;
    background: #fff;
}

.lesson-plan .daily-lesson-segment-item__text {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.55;
    font-weight: 400;
    color: #475569;
    text-align: left;
    overflow-wrap: anywhere;
}

.lesson-plan .daily-lesson-segment-callout {
    margin: 0 0 0.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    text-align: left;
}

.lesson-plan .daily-lesson-segment-callout:last-child {
    margin-bottom: 0;
}

.lesson-plan .daily-lesson-segment-callout__text {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.48;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.lesson-plan .daily-lesson-segment-callout__text strong {
    font-weight: 700;
}

.lesson-plan .daily-lesson-segment-callout--cues {
    border: 1px solid #e8c878;
    background: #fef9e8;
}

.lesson-plan .daily-lesson-segment-callout--cues .daily-lesson-segment-callout__text {
    color: #5c4a12;
}

.lesson-plan .daily-lesson-segment-callout--cues .daily-lesson-segment-callout__text strong {
    color: #1f456d;
    font-weight: 700;
}

.lesson-plan .daily-lesson-segment-callout--fitness {
    border: 1px solid #9dc88d;
    background: #eaf6e8;
}

.lesson-plan .daily-lesson-segment-callout--fitness .daily-lesson-segment-callout__text {
    color: #274b18;
}

.lesson-plan .daily-lesson-segment-callout--assessment {
    border: 1px solid #c4b5fd;
    background: #f3efff;
}

.lesson-plan .daily-lesson-segment-callout--assessment .daily-lesson-segment-callout__text {
    color: #4c3d7a;
}

.lesson-plan .daily-lesson-segment-item__note {
    margin: 0.55rem 0 0;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    font-weight: 400;
    color: #64748b;
    text-align: left;
}

.lesson-plan .daily-lesson-segment-item__note em {
    font-style: italic;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segments-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-item {
    border: 1px solid #d3d9e4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-item summary.daily-lesson-segment-item__bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.9rem 1rem !important;
    background: #f1f4f8 !important;
    list-style: none !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-item__panel {
    padding: 1rem 1rem 1.1rem !important;
    background: #fff !important;
    border-top: 1px solid #e8edf4 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-item__title {
    color: #1f456d !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-item__text {
    color: #475569 !important;
    font-weight: 400 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-item__time-pill,
.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-item__chev {
    color: #64748b !important;
    font-weight: 500 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-callout--cues .daily-lesson-segment-callout__text strong {
    color: #1f456d !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-callout--cues .daily-lesson-segment-callout__text {
    color: #5c4a12 !important;
    font-weight: 400 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-callout__text strong {
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segments-label {
    color: #1f456d !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-callout--cues {
    border: 1px solid #e8c878 !important;
    background: #fef9e8 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-callout--fitness {
    border: 1px solid #9dc88d !important;
    background: #eaf6e8 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-lesson-segment-callout--assessment {
    border: 1px solid #c4b5fd !important;
    background: #f3efff !important;
}

/* ---------- Monitor & Adjust (before assessment) ---------- */

.lesson-plan .daily-monitor-adjust-section {
    margin: 0 0 1.75rem;
}

.lesson-plan .daily-monitor-adjust-label,
.lesson-plan .daily-monitor-adjust-extra-label {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan .daily-monitor-adjust-extra-label {
    margin-top: 1.15rem;
    font-size: 0.72rem;
}

.lesson-plan .daily-monitor-adjust-principle {
    margin: 0 0 0.75rem;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #c4b5fd;
    background: #f3efff;
}

.lesson-plan .daily-monitor-adjust-principle__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 500;
    color: #1f456d;
}

.lesson-plan .daily-monitor-adjust-principle__text strong {
    font-weight: 700;
}

.lesson-plan .daily-monitor-adjust-fallback {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    font-weight: 400;
    color: #64748b;
}

.lesson-plan .daily-monitor-adjust-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lesson-plan .daily-monitor-adjust-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f9fc;
}

.lesson-plan .daily-monitor-adjust-item summary.daily-monitor-adjust-item__bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0.9rem;
}

.lesson-plan .daily-monitor-adjust-item summary.daily-monitor-adjust-item__bar::-webkit-details-marker {
    display: none;
}

.lesson-plan .daily-monitor-adjust-item summary.daily-monitor-adjust-item__bar::marker {
    content: "";
}

.lesson-plan .daily-monitor-adjust-item__num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #5b4b8a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.lesson-plan .daily-monitor-adjust-item__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1f456d;
    text-align: left;
}

.lesson-plan .daily-monitor-adjust-item__chev {
    flex: 0 0 auto;
    font-size: 1.15rem;
    line-height: 1;
    color: #94a3b8;
    transition: transform 0.18s ease;
}

.lesson-plan .daily-monitor-adjust-item[open] summary .daily-monitor-adjust-item__chev {
    transform: rotate(90deg);
}

.lesson-plan .daily-monitor-adjust-item__panel {
    padding: 0 1rem 0.9rem 3.3rem;
    background: #fff;
}

.lesson-plan .daily-monitor-adjust-item__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    font-weight: 400;
    color: #475569;
}

.lesson-plan .daily-monitor-adjust-item--extra {
    background: #fff;
}

.lesson-plan .daily-monitor-adjust-item--extra summary.daily-monitor-adjust-item__bar {
    cursor: default;
    background: #f4f7fb;
    border-bottom: 1px solid #e6ebf2;
}

.lesson-plan .daily-monitor-adjust-item__plus {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    background: #8b97a8;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.lesson-plan .daily-monitor-adjust-item--extra .daily-monitor-adjust-item__chev {
    display: none;
}

.lesson-plan .daily-monitor-adjust-item--extra .daily-monitor-adjust-item__panel {
    padding: 0.85rem 1rem 1rem;
    background: #fff;
}

.lesson-plan .daily-monitor-adjust-item--extra .daily-monitor-adjust-item__text {
    color: #334155;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-label,
.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-extra-label {
    color: #1f456d !important;
    font-weight: 800 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-principle {
    padding: 12px 16px !important;
    border: 1px solid #c4b5fd !important;
    border-radius: 10px !important;
    background: #f3efff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-principle__text {
    color: #1f456d !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-fallback {
    font-style: italic !important;
    color: #64748b !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f7f9fc !important;
    overflow: hidden !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item summary.daily-monitor-adjust-item__bar {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 0.9rem !important;
    list-style: none !important;
    background: #f7f9fc !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item__num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.65rem !important;
    height: 1.65rem !important;
    border-radius: 999px !important;
    background: #5b4b8a !important;
    color: #fff !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item__title {
    color: #1f456d !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item__panel {
    background: #fff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item__text {
    color: #475569 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item--extra {
    background: #fff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item--extra summary.daily-monitor-adjust-item__bar {
    background: #f4f7fb !important;
    border-bottom: 1px solid #e6ebf2 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item__plus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.45rem !important;
    height: 1.45rem !important;
    border-radius: 999px !important;
    background: #8b97a8 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item--extra .daily-monitor-adjust-item__panel {
    padding: 0.85rem 1rem 1rem !important;
    background: #fff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-monitor-adjust-item--extra .daily-monitor-adjust-item__text {
    color: #334155 !important;
}

/* ---------- Section 5: Assessment Focus + Plan B ---------- */

.lesson-plan .daily-assessment-plan-b-section {
    margin: 0 0 1.75rem;
}

.lesson-plan .daily-assessment-focus-label,
.lesson-plan .daily-plan-b-label {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan .daily-plan-b-label {
    margin-top: 1.25rem;
}

.lesson-plan .daily-assessment-focus-box {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #c4b5fd;
    background: #f3efff;
}

.lesson-plan .daily-assessment-focus-box__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
    color: #1f456d;
}

.lesson-plan .daily-assessment-focus-box__text strong {
    font-weight: 700;
}

.lesson-plan .daily-plan-b-box {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px dashed #d9c486;
    background: #fef9e8;
}

.lesson-plan .daily-plan-b-box__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 400;
    color: #5c4a12;
}

.lesson-plan .daily-plan-b-box__text strong {
    font-weight: 700;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-focus-label,
.plan-result-block .note-editable .lesson-plan .daily-plan-b-label {
    color: #1f456d !important;
    font-weight: 800 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-focus-box {
    padding: 14px 16px !important;
    border: 1px solid #c4b5fd !important;
    border-radius: 10px !important;
    background: #f3efff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-focus-box__text {
    color: #1f456d !important;
    font-weight: 400 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-focus-box__text strong {
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-plan-b-box {
    padding: 14px 16px !important;
    border: 1px dashed #d9c486 !important;
    border-radius: 10px !important;
    background: #fef9e8 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-plan-b-box__text {
    color: #5c4a12 !important;
    font-weight: 400 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-plan-b-box__text strong {
    font-weight: 700 !important;
}

/* Library Section 5 — formative tool intro + rubric */

.lesson-plan .daily-assessment-tool-label {
    margin: 1.25rem 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan .daily-assessment-tool-box {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px dashed #d9c486;
    background: #fef9e8;
}

.lesson-plan .daily-assessment-tool-box__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    font-weight: 700;
    color: #5c4a12;
}

.lesson-plan .daily-assessment-tool-box__text strong {
    font-weight: 700;
}

.lesson-plan table.data.daily-assessment-rubric-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0.85rem 0 0.35rem;
    table-layout: fixed;
}

.lesson-plan table.data.daily-assessment-rubric-table > tbody,
.lesson-plan table.data.daily-assessment-rubric-table > tbody > tr,
.lesson-plan table.data.daily-assessment-rubric-table > thead,
.lesson-plan table.data.daily-assessment-rubric-table > thead > tr {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-assessment-rubric-table > thead {
    display: table-header-group;
}

.lesson-plan table.data.daily-assessment-rubric-table > tbody {
    display: table-row-group;
}

.lesson-plan table.data.daily-assessment-rubric-table th,
.lesson-plan table.data.daily-assessment-rubric-table td {
    display: table-cell !important;
    border: 1px solid #d3d9e4;
    padding: 10px 10px;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lesson-plan table.data.daily-assessment-rubric-table th {
    background: #1f4a78;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
}

.lesson-plan table.data.daily-assessment-rubric-table td {
    color: #24364f;
    background: #ffffff;
}

.lesson-plan table.data.daily-assessment-rubric-table tbody tr:nth-child(even) td {
    background: #f5f7fb;
}

.lesson-plan table.data.daily-assessment-rubric-table th:nth-child(1),
.lesson-plan table.data.daily-assessment-rubric-table td:nth-child(1) {
    width: 15%;
}

.lesson-plan table.data.daily-assessment-rubric-table td:nth-child(1) {
    background: #dde3eb;
    color: #24364f;
    font-weight: 700;
}

.lesson-plan table.data.daily-assessment-rubric-table th:nth-child(2),
.lesson-plan table.data.daily-assessment-rubric-table td:nth-child(2),
.lesson-plan table.data.daily-assessment-rubric-table th:nth-child(3),
.lesson-plan table.data.daily-assessment-rubric-table td:nth-child(3),
.lesson-plan table.data.daily-assessment-rubric-table th:nth-child(4),
.lesson-plan table.data.daily-assessment-rubric-table td:nth-child(4) {
    width: 28.333%;
}

.lesson-plan table.data.daily-assessment-rubric-table tr.daily-assessment-rubric-row--primary td:nth-child(1) {
    background: #fde8e8;
    color: #9b1c1c;
    font-weight: 700;
}

.lesson-plan table.data.daily-assessment-rubric-table tr.daily-assessment-rubric-row--primary td:not(:nth-child(1)) {
    background: #ffffff;
    color: #24364f;
    font-weight: 400;
}

.lesson-plan .daily-assessment-rubric-footnote {
    margin: 0 0 0.25rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-tool-label {
    color: #1f456d !important;
    font-weight: 800 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-tool-box {
    padding: 14px 16px !important;
    border: 1px dashed #d9c486 !important;
    border-radius: 10px !important;
    background: #fef9e8 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-tool-box__text {
    color: #5c4a12 !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-tool-box__text strong {
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-assessment-rubric-table > tbody,
.plan-result-block .note-editable .lesson-plan table.data.daily-assessment-rubric-table > tbody > tr,
.plan-result-block .note-editable .lesson-plan table.data.daily-assessment-rubric-table > thead,
.plan-result-block .note-editable .lesson-plan table.data.daily-assessment-rubric-table > thead > tr {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-assessment-rubric-table th,
.plan-result-block .note-editable .lesson-plan table.data.daily-assessment-rubric-table td {
    display: table-cell !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-assessment-rubric-table tr.daily-assessment-rubric-row--primary td:nth-child(1) {
    background: #fde8e8 !important;
    color: #9b1c1c !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-assessment-rubric-footnote {
    color: #64748b !important;
}

/* ---------- Section 6: Safety Protocols ---------- */

.lesson-plan .daily-safety-protocols-section {
    margin: 0 0 1.75rem;
}

.lesson-plan .daily-safety-protocols-label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan .daily-safety-protocols-section__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: #1f456d;
    letter-spacing: -0.02em;
}

.lesson-plan .daily-safety-protocols-alert {
    margin: 0 0 0.85rem;
    padding: 12px 14px;
    border: 1px solid #e2bcc1;
    border-radius: 8px;
    background: #f8ecee;
    color: #6e3741;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lesson-plan .daily-safety-protocols-alert strong {
    font-weight: 700;
}

.lesson-plan table.data.daily-safety-protocols-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
    border: 1px solid #d3d9e4;
}

.lesson-plan table.data.daily-safety-protocols-table > tbody {
    display: table-row-group;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-safety-protocols-table > tbody > tr {
    display: table-row;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-safety-protocols-table td {
    display: table-cell;
    border: 1px solid #d3d9e4;
    padding: 12px 14px;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

.lesson-plan table.data.daily-safety-protocols-table .label-col {
    width: 28%;
    font-weight: 700;
    color: #1f456d;
    background: #f1f4f8;
}

.lesson-plan table.data.daily-safety-protocols-table td:not(.label-col) {
    background: #fff;
    font-weight: 400;
    color: #475569;
}

.lesson-plan table.data.daily-safety-protocols-table .label-col strong,
.lesson-plan table.data.daily-safety-protocols-table .label-col b {
    font-weight: 700;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-safety-protocols-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    border: 1px solid #d3d9e4 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-safety-protocols-table > tbody {
    display: table-row-group !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-safety-protocols-table > tbody > tr {
    display: table-row !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-safety-protocols-table td {
    display: table-cell !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: 1px solid #d3d9e4 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-safety-protocols-table .label-col {
    width: 28% !important;
    font-weight: 700 !important;
    color: #1f456d !important;
    background: #f1f4f8 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-safety-protocols-table td:not(.label-col) {
    font-weight: 400 !important;
    color: #475569 !important;
    background: #fff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-safety-protocols-label {
    color: #1f456d !important;
}

.plan-result-block .note-editable .lesson-plan .daily-safety-protocols-section__title {
    color: #1f456d !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-safety-protocols-alert {
    margin: 0 0 0.85rem !important;
    padding: 12px 14px !important;
    border: 1px solid #e2bcc1 !important;
    border-radius: 8px !important;
    background: #f8ecee !important;
    color: #6e3741 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-safety-protocols-alert strong {
    font-weight: 700 !important;
}

/* ---------- Section 7: Lesson Differentiation ---------- */

.lesson-plan .daily-differentiation-section {
    margin: 0 0 1.75rem;
}

.lesson-plan .daily-differentiation-label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan .daily-differentiation-section__title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: #1f456d;
    letter-spacing: -0.02em;
}

.lesson-plan .daily-grade-band-adjustments-label {
    margin: 1.15rem 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan table.data.daily-grade-band-adjustments-table {
    margin-top: 0;
}

.lesson-plan table.data.daily-differentiation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed;
    border: 1px solid #d3d9e4;
}

.lesson-plan table.data.daily-differentiation-table > tbody {
    display: table-row-group;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-differentiation-table > tbody > tr {
    display: table-row;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-differentiation-table td {
    display: table-cell;
    border: 1px solid #d3d9e4;
    padding: 12px 14px;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

.lesson-plan table.data.daily-differentiation-table .label-col {
    width: 22%;
    font-weight: 700;
    color: #1f456d;
    background: #f1f4f8;
}

.lesson-plan table.data.daily-differentiation-table td:not(.label-col) {
    background: #fff;
    font-weight: 400;
    color: #1f456d;
}

.lesson-plan table.data.daily-differentiation-table .label-col strong,
.lesson-plan table.data.daily-differentiation-table .label-col b {
    font-weight: 700;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-differentiation-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    border: 1px solid #d3d9e4 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-differentiation-table > tbody {
    display: table-row-group !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-differentiation-table > tbody > tr {
    display: table-row !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-differentiation-table td {
    display: table-cell !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    border: 1px solid #d3d9e4 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-differentiation-table .label-col {
    width: 22% !important;
    font-weight: 700 !important;
    color: #1f456d !important;
    background: #f1f4f8 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-differentiation-table td:not(.label-col) {
    font-weight: 400 !important;
    color: #1f456d !important;
    background: #fff !important;
}

.plan-result-block .note-editable .lesson-plan .daily-differentiation-label {
    color: #1f456d !important;
}

.plan-result-block .note-editable .lesson-plan .daily-grade-band-adjustments-label {
    color: #1f456d !important;
}

.plan-result-block .note-editable .lesson-plan .daily-differentiation-section__title {
    color: #1f456d !important;
    font-weight: 700 !important;
}

/* ---------- Section 8: Student & Community Design Notes (library) ---------- */

.lesson-plan .daily-student-community-section {
    margin: 0 0 1.75rem;
}

.lesson-plan .daily-design-notes-label {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f456d;
}

.lesson-plan .daily-student-community-section__title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.25rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    font-weight: 700;
    color: #1f456d;
    letter-spacing: -0.02em;
}

.lesson-plan .daily-student-community-section__intro {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #64748b;
}

.lesson-plan table.data.daily-student-community-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    margin: 0;
    table-layout: fixed;
}

.lesson-plan table.data.daily-student-community-table > thead,
.lesson-plan table.data.daily-student-community-table > thead > tr,
.lesson-plan table.data.daily-student-community-table > tbody,
.lesson-plan table.data.daily-student-community-table > tbody > tr {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.lesson-plan table.data.daily-student-community-table > thead {
    display: table-header-group;
}

.lesson-plan table.data.daily-student-community-table > tbody {
    display: table-row-group;
}

.lesson-plan table.data.daily-student-community-table > thead > tr,
.lesson-plan table.data.daily-student-community-table > tbody > tr {
    display: table-row;
}

.lesson-plan table.data.daily-student-community-table th,
.lesson-plan table.data.daily-student-community-table td {
    display: table-cell !important;
    border: 1px solid #d3d9e4;
    padding: 10px 12px;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lesson-plan table.data.daily-student-community-table th {
    background: #1f4a78;
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.lesson-plan table.data.daily-student-community-table td {
    color: #24364f;
    background: #fff;
}

.lesson-plan table.data.daily-student-community-table tbody tr:nth-child(even) td {
    background: #f5f7fb;
}

.lesson-plan table.data.daily-student-community-table th:nth-child(1),
.lesson-plan table.data.daily-student-community-table td:nth-child(1) {
    width: 18%;
}

.lesson-plan table.data.daily-student-community-table td:nth-child(1) {
    background: #dde3eb;
    font-weight: 700;
    color: #24364f;
}

.lesson-plan table.data.daily-student-community-table th:nth-child(2),
.lesson-plan table.data.daily-student-community-table td:nth-child(2) {
    width: 58%;
}

.lesson-plan table.data.daily-student-community-table th:nth-child(3),
.lesson-plan table.data.daily-student-community-table td:nth-child(3) {
    width: 24%;
}

.lesson-plan table.data.daily-student-community-table tbody tr:nth-child(even) td:nth-child(1) {
    background: #dde3eb;
}

.lesson-plan .ctx-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fdf6e8;
    border: 1px solid #e0c97a;
    color: #7a6020;
    white-space: normal;
}

.lesson-plan .daily-student-community-cascade {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 0.85rem;
    padding: 12px 14px;
    border: 1px solid #9fd4a8;
    border-radius: 8px;
    background: #edf9ef;
    color: #1e4d2b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lesson-plan .daily-student-community-cascade > div {
    flex: 1;
    min-width: 0;
}

.lesson-plan .daily-student-community-cascade__icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: #2a6b47;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
}

.lesson-plan .daily-student-community-cascade strong {
    font-weight: 700;
}

.plan-result-block .note-editable .lesson-plan .daily-design-notes-label {
    color: #1f456d !important;
    font-weight: 800 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-community-table > tbody,
.plan-result-block .note-editable .lesson-plan table.data.daily-student-community-table > tbody > tr,
.plan-result-block .note-editable .lesson-plan table.data.daily-student-community-table > thead,
.plan-result-block .note-editable .lesson-plan table.data.daily-student-community-table > thead > tr {
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-community-table th,
.plan-result-block .note-editable .lesson-plan table.data.daily-student-community-table td {
    display: table-cell !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-student-community-table td:nth-child(1) {
    font-weight: 700 !important;
    background: #dde3eb !important;
}

.plan-result-block .note-editable .lesson-plan .daily-student-community-cascade {
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
    margin-top: 0.85rem !important;
    padding: 12px 14px !important;
    border: 1px solid #9fd4a8 !important;
    background: #edf9ef !important;
    color: #1e4d2b !important;
}

.plan-result-block .note-editable .lesson-plan .daily-student-community-cascade__icon {
    background: #2a6b47 !important;
    color: #fff !important;
}

/* ---------- Why This Matters Beyond the Gym ---------- */

.lesson-plan .daily-beyond-gym-section {
    margin: 0 0 1.75rem;
}

.lesson-plan .daily-beyond-gym-card {
    padding: 18px 20px 20px;
    border: 1px solid #7db8b2;
    border-radius: 10px;
    background: #eef8f6;
}

.lesson-plan .daily-beyond-gym-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
    color: #1f456d;
}

.lesson-plan .daily-beyond-gym-card__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2a9d8f;
}

.lesson-plan .daily-beyond-gym-script {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #dff3ef;
}

.lesson-plan .daily-beyond-gym-script__label {
    margin: 0 0 6px;
    font-size: 0.72rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f7a72;
}

.lesson-plan .daily-beyond-gym-script__quote {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    font-style: italic;
    font-weight: 400;
    color: #1f456d;
}

.lesson-plan .daily-beyond-gym-connections-label {
    margin: 0 0 8px;
    font-size: 0.92rem;
    line-height: 1.4;
    font-weight: 600;
    color: #1f456d;
}

.lesson-plan table.data.daily-beyond-gym-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse !important;
    margin: 0;
    table-layout: fixed;
}

.lesson-plan table.data.daily-beyond-gym-table > thead,
.lesson-plan table.data.daily-beyond-gym-table > tbody {
    display: table-header-group;
}

.lesson-plan table.data.daily-beyond-gym-table > tbody {
    display: table-row-group;
}

.lesson-plan table.data.daily-beyond-gym-table th,
.lesson-plan table.data.daily-beyond-gym-table td {
    display: table-cell !important;
    border: 1px solid #d3d9e4;
    padding: 10px 12px;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.lesson-plan table.data.daily-beyond-gym-table th {
    background: #1f4a78;
    color: #fff;
    font-weight: 700;
    text-align: left;
}

.lesson-plan table.data.daily-beyond-gym-table td {
    color: #24364f;
    background: #fff;
}

.lesson-plan table.data.daily-beyond-gym-table th:nth-child(1),
.lesson-plan table.data.daily-beyond-gym-table td:nth-child(1) {
    width: 32%;
}

.lesson-plan table.data.daily-beyond-gym-table td:nth-child(1) {
    background: #f5f7fb;
    font-weight: 700;
}

.lesson-plan table.data.daily-beyond-gym-table tbody tr:nth-child(even) td {
    background: #f5f7fb;
}

.lesson-plan table.data.daily-beyond-gym-table tbody tr:nth-child(even) td:nth-child(1) {
    background: #eef1f6;
}

.plan-result-block .note-editable .lesson-plan .daily-beyond-gym-card {
    padding: 18px 20px 20px !important;
    border: 1px solid #7db8b2 !important;
    border-radius: 10px !important;
    background: #eef8f6 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-beyond-gym-card__title {
    display: flex !important;
    color: #1f456d !important;
    font-weight: 700 !important;
}

.plan-result-block .note-editable .lesson-plan .daily-beyond-gym-script {
    background: #dff3ef !important;
}

.plan-result-block .note-editable .lesson-plan .daily-beyond-gym-script__quote {
    font-style: italic !important;
    color: #1f456d !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-beyond-gym-table th,
.plan-result-block .note-editable .lesson-plan table.data.daily-beyond-gym-table td {
    display: table-cell !important;
}

.plan-result-block .note-editable .lesson-plan table.data.daily-beyond-gym-table td:nth-child(1) {
    font-weight: 700 !important;
}

/* Expand This Lesson removed — hide leftover HTML in stored scratch plans */
.lesson-plan .daily-expand-lesson-section,
.plan-result-block .note-editable .lesson-plan .daily-expand-lesson-section {
    display: none !important;
}

/* ---------- Footer line ---------- */

.lesson-plan .daily-plan-footline {
    margin: 1.5rem 0 0;
    padding: 0.5rem 0 0;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 400;
    color: #8696b0;
}

.plan-result-block .note-editable .lesson-plan .daily-plan-footline {
    display: block !important;
    margin: 1.5rem 0 0 !important;
    padding: 0.5rem 0 0 !important;
    text-align: center !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #8696b0 !important;
}

/* ---------- View-mode toggles (Summary / Expanded) ---------- */

.plan-view-mode-summary .lesson-plan .daily-page-lead__expanded {
    display: none !important;
}

.plan-view-mode-summary .lesson-plan .daily-page-meta-strip__summary {
    display: inline !important;
}

.plan-view-mode-summary .lesson-plan .daily-page-meta-strip__expanded {
    display: none !important;
}

.plan-view-mode-expanded .lesson-plan .daily-page-lead__summary {
    display: none !important;
}

.plan-view-mode-expanded .lesson-plan .daily-page-meta-strip__summary {
    display: none !important;
}

.plan-view-mode-expanded .lesson-plan .daily-page-meta-strip__expanded {
    display: inline !important;
}

/* Daily lesson summary (scratch + library): meta strip, page lead summary, learning target,
   lesson flow, equipment, printable visuals, movement visual, lesson segments, assessment focus + Plan B, footer only.
   Section 2 Standards: keep section visible; toggle condensed (Teacher View) vs full table (Program View) below. */
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) table.annual-metadata-badges.daily-metadata-badges--scratch,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) table.annual-metadata-badges.daily-metadata-badges--library,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) .daily-teacher-provided-label,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) .daily-library-inherited-context,
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--scratch) #daily-section-1,
/* Legacy scratch Section 2 without condensed table/list: hide whole section in Teacher View */
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--scratch):not(:has(.daily-standards-condensed-list)):not(:has(.daily-standards-alignment-table--condensed)) #daily-section-2,
/* Library Section 3 — hide lesson connections only (same slice as scratch student-context chrome) */
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--library) .daily-student-context-section > .daily-lesson-flow-label,
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--library) .daily-student-context-section > table.daily-student-context-table,
/* Library Section 5 — hide formative rubric block; keep Today's Assessment Focus + Plan B like scratch */
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--library) .daily-assessment-tool-label,
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--library) .daily-assessment-tool-box,
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--library) table.data.daily-assessment-rubric-table,
.plan-view-mode-summary .lesson-plan:has(.daily-metadata-badges--library) .daily-assessment-rubric-footnote,
/* Sections 6–7 hidden in summary (safety, differentiation). Keep design notes + why-this-matters visible. */
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) #daily-section-6,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) #daily-section-7,
/* Scratch Section 3 — student-context chrome only */
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) .daily-student-context-applied-label,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) .daily-student-context-section__title,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) .daily-student-context-section__intro,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) .daily-student-context-chips,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) table.data.daily-student-context-table,
.plan-view-mode-summary .lesson-plan:has(.daily-page-meta-strip) .daily-student-context-note {
    display: none !important;
}

/* Standards density: Teacher View = condensed table; Program View = full table.
   Must beat `.plan-result-block .note-editable … table.data.daily-standards-alignment-table { display: table !important }`. */
.plan-view-mode-summary .plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table--full,
.plan-view-mode-summary .lesson-plan table.data.daily-standards-alignment-table--full,
.plan-view-mode-summary .plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table:not(.daily-standards-alignment-table--condensed),
.plan-view-mode-summary .lesson-plan table.data.daily-standards-alignment-table:not(.daily-standards-alignment-table--condensed) {
    display: none !important;
}

.plan-view-mode-summary .plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table--condensed,
.plan-view-mode-summary .lesson-plan table.data.daily-standards-alignment-table--condensed {
    display: table !important;
}

.plan-view-mode-expanded .plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table--condensed,
.plan-view-mode-expanded .lesson-plan table.data.daily-standards-alignment-table--condensed,
.plan-view-mode-expanded .plan-result-block .note-editable .lesson-plan .daily-standards-condensed-list,
.plan-view-mode-expanded .lesson-plan .daily-standards-condensed-list {
    display: none !important;
}

.plan-view-mode-expanded .plan-result-block .note-editable .lesson-plan table.data.daily-standards-alignment-table--full,
.plan-view-mode-expanded .lesson-plan table.data.daily-standards-alignment-table--full {
    display: table !important;
}

.plan-view-mode-summary .lesson-plan #ed-movement-visual-root {
    display: block !important;
}

/* ---------- Print: cue cards two-up; maps and safety fill the page ---------- */

@media print {
    #plan_page_content .lesson-plan .daily-printable-visuals-label,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-label {
        break-after: avoid !important;
        page-break-after: avoid !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visuals-block,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-block {
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visuals-grid,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visuals-grid--refs,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-grid--refs {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visuals-maps,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-maps {
        margin-top: 0.85rem !important;
        break-before: auto !important;
        page-break-before: auto !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visuals-support,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visuals-support {
        margin-top: 0.85rem !important;
        break-inside: auto !important;
        page-break-inside: auto !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card--wide,
    #plan_page_content .lesson-plan .daily-printable-visual-card--full,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--wide,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--full {
        grid-column: 1 / -1 !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card--pair,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--pair {
        grid-column: auto !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 10px 8px 12px !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        -webkit-column-break-inside: avoid !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card__art,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__art {
        min-height: 118px !important;
        margin-bottom: 0.5rem !important;
        padding: 8px 6px !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card--pair .daily-printable-visual-card__art,
    #plan_page_content .lesson-plan .daily-printable-visual-card--full .daily-printable-visual-card__art,
    #plan_page_content .lesson-plan .daily-printable-visual-card--wide .daily-printable-visual-card__art,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--pair .daily-printable-visual-card__art,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--full .daily-printable-visual-card__art,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--wide .daily-printable-visual-card__art {
        min-height: 220px !important;
        overflow: visible !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-svg,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-svg {
        max-width: 100% !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-svg--wide,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-svg--wide {
        max-width: 100% !important;
        aspect-ratio: auto !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card__hint,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__hint {
        font-size: 0.8rem !important;
        line-height: 1.35 !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-card__art,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-card__art {
        min-height: 90px !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card__level,
    #plan_page_content .lesson-plan .daily-printable-visual-card__cue,
    #plan_page_content .lesson-plan .daily-printable-visual-card__safety,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__level,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__cue,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__safety {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card__title,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card__title {
        font-size: 0.95rem !important;
        margin-top: 0.25rem !important;
    }

    #plan_page_content .lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-card__title,
    #plan_page_content .plan-result-block .note-editable .lesson-plan .daily-printable-visual-card--ref .daily-printable-visual-card__title {
        margin: 0 0 0.35rem !important;
        font-size: 0.9rem !important;
    }

    #plan_page_content .lesson-plan details.daily-lesson-segment-item > .daily-lesson-segment-item__panel,
    #plan_page_content .plan-result-block .note-editable .lesson-plan details.daily-lesson-segment-item > .daily-lesson-segment-item__panel,
    #plan_page_content .lesson-plan details.daily-monitor-adjust-item > .daily-monitor-adjust-item__panel,
    #plan_page_content .plan-result-block .note-editable .lesson-plan details.daily-monitor-adjust-item > .daily-monitor-adjust-item__panel {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #plan_page_content .lesson-plan details.daily-lesson-segment-item summary.daily-lesson-segment-item__bar,
    #plan_page_content .plan-result-block .note-editable .lesson-plan details.daily-lesson-segment-item summary.daily-lesson-segment-item__bar {
        cursor: default !important;
    }
}
