/* ========== UNIT PLAN MODAL - Shared Component ========== */
/* Redesigned to match student modal styling */

/* Shared modal footer (used by Create Lesson, Create Multi Lessons, Create Multi Units) */
.unit-plans-footer {
    padding: 16px 32px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.unit-plans-cancel-btn {
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.unit-plans-cancel-btn:hover {
    background-color: #f9fafb;
    color: #333;
}

/* ===== Modal Container ===== */
/* Matches .lesson-detail-modal .modal-container so the unit + lesson
   modals open at the same canvas size. Both are workspace-class
   modals — full-bleed split panels, AI chat on the right — and feeling
   like the same surface keeps the teacher oriented when they jump
   between unit-level and lesson-level editing. */
.up-modal .modal-container {
    width: 90vw;
    max-width: 1400px;
    height: 85vh;
    max-height: 85vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

/* Fullscreen mode */
.up-modal.up-fullscreen .modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    box-shadow: none;
    z-index: 10001;
}
.up-modal.up-fullscreen {
    background-color: transparent;
    z-index: 10000;
}

/* ===== Header — matches student modal ===== */
.up-modal .modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.up-modal .modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
    /* The h2 is contenteditable — single line, no outline by default,
     * subtle focus ring when the teacher clicks to rename the unit. */
    outline: none;
    cursor: text;
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: -6px;
    transition: background-color 0.15s, box-shadow 0.15s;
    min-width: 8ch;
}
.up-modal .modal-header h2:hover {
    background-color: #f8fafc;
}
.up-modal .modal-header h2:focus {
    background-color: #f0fdf4;
    box-shadow: 0 0 0 1px #059669;
}
.up-modal .modal-header h2:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    font-style: italic;
}

.up-modal .modal-header-subtitle {
    margin-top: 4px;
}

/* ===== Body — split view ===== */
.up-modal .modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    /* Required so the library portal (.tcLib-portalHost is
       position:absolute / inset:0) only fills the body and not the
       whole modal-container — otherwise it covers the "Create New
       Unit" header and unit tabs. */
    position: relative;
}

/* ===== Left Panel — editor =====
 * No right padding on the panel itself — the inner .up-scroll-zone
 * picks up the right padding instead, which keeps the scroll bar
 * flush against the panel's right edge (so it doesn't visually float
 * inset from the edge of the panel) while still giving section cards
 * breathing room from the bar. */
.up-modal .split-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 0 24px 28px;
    overflow: hidden;
    min-width: 0;
}

/* The legacy .up-title-input / .up-date-range / .up-editor-header rules
 * lived here to style the title + date inputs that sat above the
 * sections. Both were removed 2026-05-06 (title is now the modal heading
 * h2; per-unit dates were unused). The .up-editor-label class is kept
 * because the Assessments tab still labels its rubric criteria with it
 * (.up-assessment-body .up-editor-label). */
.up-editor-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

/* ===== Tool Buttons (Rubrics / Standards) ===== */
.up-tool-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.up-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    flex: 1;
    justify-content: center;
}

.up-tool-btn:hover {
    border-color: #059669;
    color: #059669;
    background: #f0fdf4;
}

.up-tool-btn.active {
    border-color: #059669;
    color: #059669;
    background: #f0fdf4;
}

.up-tool-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.up-tool-btn-icon {
    font-size: 14px;
}

.up-tool-btn-badge {
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: #059669;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 14px;
    text-align: center;
    display: none;
}

.up-tool-btn-badge.has-items {
    display: inline-block;
}

.up-tool-btn-arrow {
    font-size: 8px;
    margin-left: auto;
    transition: transform 0.2s;
}

.up-tool-btn.active .up-tool-btn-arrow {
    transform: rotate(180deg);
}

/* ===== Expandable Panel ===== */
.up-panel {
    flex-shrink: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    margin-bottom: 0;
    overflow-y: auto;
}

.up-panel::-webkit-scrollbar { width: 5px; }
.up-panel::-webkit-scrollbar-track { background: transparent; }
.up-panel::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

.up-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px 10px;
    border-bottom: 1px solid #eee;
    background: transparent;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.up-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.up-panel-actions {
    display: flex;
    gap: 6px;
}

.up-panel-action-btn {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: white;
    border: 1px solid #059669;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.up-panel-action-btn:hover {
    background: #059669;
    color: white;
}

.up-panel-body {
    padding: 12px 20px;
}

.up-panel-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* Rubric cards */
.up-rubric-card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    transition: box-shadow 0.15s;
}

.up-rubric-card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.up-rubric-card.expanded {
    border-color: #059669;
    box-shadow: 0 2px 8px rgba(5,150,105,0.1);
}

.up-rubric-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    cursor: pointer;
    gap: 8px;
    min-height: 38px;
}

.up-rubric-card-header:hover {
    background: #f8faf9;
}

.up-rubric-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.up-rubric-card-arrow {
    font-size: 11px;
    color: #999;
    flex-shrink: 0;
    width: 12px;
    text-align: center;
}

.up-rubric-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-rubric-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.up-rubric-card-preview {
    font-size: 11px;
    color: #999;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-rubric-card-preview.empty {
    font-style: italic;
    color: #ccc;
}

.up-rubric-card-body {
    padding: 0 12px 14px;
    border-top: 1px solid #e8e8e8;
}

.up-rubric-name-row {
    padding: 10px 0 8px;
}

.up-rubric-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.up-rubric-name-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f8f9fa;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.up-rubric-name-input:focus {
    outline: none;
    border-color: #059669;
    background: white;
}

/* Rubric detail table (expanded view) */
.up-rubric-detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px 0;
    table-layout: fixed;
}

.up-rubric-detail-table th {
    text-align: center;
    padding: 8px 4px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 6px 6px 0 0;
}

.up-rdt-score {
    font-weight: 400;
    color: inherit;
    opacity: 0.7;
    font-size: 10px;
}

.up-rdt-level4 { color: #059669; background: #ecfdf5; }
.up-rdt-level3 { color: #2563eb; background: #eff6ff; }
.up-rdt-level2 { color: #d97706; background: #fffbeb; }
.up-rdt-level1 { color: #dc2626; background: #fef2f2; }

.up-rubric-detail-table td {
    vertical-align: top;
    padding: 0 0 6px;
}

.up-rubric-desc-input {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
    background: #fafbfc;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.15s;
}

.up-rubric-desc-input:focus {
    outline: none;
    border-color: #059669;
    background: white;
}

.up-rubric-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    transition: color 0.15s;
}

.up-rubric-remove:hover {
    color: #dc2626;
}

/* Standards list */
.up-standards-count {
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 6px;
}

.up-standards-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.up-standard-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 4px;
    background: white;
    border: 1px solid #f0f0f0;
}

.up-standard-code-edit {
    width: 72px;
    flex-shrink: 0;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    font-family: Arial, sans-serif;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    box-sizing: border-box;
}

.up-standard-code-edit:hover,
.up-standard-code-edit:focus {
    border-color: #e0e0e0;
    background: #f8f9fa;
    outline: none;
}

.up-standard-code-edit:focus {
    border-color: #059669;
}

.up-standard-desc-edit {
    flex: 1;
    padding: 4px 6px;
    font-size: 12px;
    color: #555;
    font-family: Arial, sans-serif;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    box-sizing: border-box;
    min-width: 0;
}

.up-standard-desc-edit:hover,
.up-standard-desc-edit:focus {
    border-color: #e0e0e0;
    background: #f8f9fa;
    outline: none;
}

.up-standard-desc-edit:focus {
    border-color: #059669;
}

.up-standard-code {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
    min-width: 50px;
}

.up-standard-desc {
    font-size: 12px;
    color: #555;
    flex: 1;
}

.up-standard-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color 0.15s;
}

.up-standard-remove:hover {
    color: #dc2626;
}

/* Standards browser */
.up-standards-browser {
    margin-top: 8px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.up-standards-browser-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.up-standards-category {
    margin-bottom: 8px;
}

.up-standards-category-title {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    padding: 4px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.up-standards-category-title:hover {
    color: #059669;
}

.up-standards-category-items {
    padding-left: 8px;
}

.up-standards-browse-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    font-size: 11px;
    color: #555;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s;
}

.up-standards-browse-item:hover {
    background: #f0fdf4;
}

.up-standards-browse-item.selected {
    background: #ecfdf5;
    color: #059669;
}

.up-standards-browse-item input[type="checkbox"] {
    accent-color: #059669;
}

/* Add row button */
.up-add-row-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #059669;
    background: none;
    border: 1px dashed #a7f3d0;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.15s;
    width: 100%;
    justify-content: center;
}

.up-add-row-btn:hover {
    background: #f0fdf4;
    border-color: #059669;
}

/* Import area */
.up-import-area {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    background: white;
}

.up-import-area-title {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.up-import-textarea {
    width: 100%;
    min-height: 50px;
    padding: 8px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
    box-sizing: border-box;
    line-height: 1.5;
}

.up-import-textarea:focus {
    outline: none;
    border-color: #059669;
}

.up-import-btn {
    margin-top: 6px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: #059669;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.up-import-btn:hover {
    background: #047857;
}

/* Custom standard input */
.up-custom-standard-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.up-custom-standard-input {
    flex: 1;
    padding: 6px 8px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box;
}

.up-custom-standard-input:focus {
    outline: none;
    border-color: #059669;
}

.up-custom-add-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: #059669;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.up-custom-add-btn:hover {
    background: #047857;
}

/* Plan tab scroll plumbing.
 *
 * Layout: title+dates row stays pinned at the top of the Plan tab; the
 * scroll zone underneath holds admin guidance + IDU panels + the section
 * cards and scrolls as a single block. So when the teacher scrolls down
 * to keep working on sections, admin guidance scrolls away with them. */
#upTabContentPlan {
    overflow: hidden;
}

.up-scroll-zone {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    /* Right padding lives here (was on .split-left-panel) so section
     * cards have breathing room from the scroll bar. The bar itself
     * is rendered at the panel's right edge by the browser, so the
     * padding on this element pushes content inward without moving
     * the bar. */
    padding: 0 22px 16px 0;
}
.up-scroll-zone::-webkit-scrollbar { width: 6px; }
.up-scroll-zone::-webkit-scrollbar-track { background: transparent; }
.up-scroll-zone::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }

/* Section cards container (replaces old textarea). No longer the scroll
 * owner — the parent .up-scroll-zone scrolls. */
.up-plan-sections-wrap {
    padding: 8px 0 0;
}

/* + Add Section button + 3-option popover (Blank / Multi-select /
 * Restore defaults). Replaces the older 2-button row. */
.up-add-section-row {
    display: flex;
    justify-content: center;
    margin: 14px 0 4px;
}
.up-add-section-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.up-add-section-caret {
    font-size: 10px;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
}
.up-add-section-menu {
    width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15,23,42,0.18);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: inherit;
}
.up-add-section-menu-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 9px 12px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #1e293b;
    transition: background 0.12s;
}
.up-add-section-menu-item:hover {
    background: #f0fdf4;
}
.up-add-section-menu-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}
.up-add-section-menu-help {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
}
.up-add-section-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 4px 8px;
}

/* Unit plan sections reuse .ld-plan-section-card classes from lesson-modal.css */

/* ===== Right Panel — AI chat ===== */
.up-modal .split-right-panel {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e0e0e0;
    background-color: #ffffff;
    position: relative;
}

/* ===== Footer ===== */
.up-footer {
    padding: 16px 32px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    background-color: white;
}

.up-footer-cancel-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.up-footer-cancel-btn:hover {
    background-color: #f9fafb;
    color: #333;
}

.up-footer-save-btn {
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    background-color: #059669;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.up-footer-save-btn:hover {
    background-color: #047857;
}

.up-footer-save-btn.saved {
    background-color: #2563eb;
}

/* Prechat-only footer buttons — replace the Create Unit CTA while the
   create-mode launcher is still on screen. Kept in this file so they ship
   alongside the modal markup. */
.up-footer-skip-btn {
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.up-footer-skip-btn:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.up-footer-generate-btn {
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2f6844, #059669);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(47, 104, 68, 0.22);
}
.up-footer-generate-btn:hover {
    background: linear-gradient(135deg, #264f35, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 104, 68, 0.3);
}

/* ===== Microphone button ===== */
.up-chat-mic-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 15px;
    padding: 5px 9px;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.up-chat-mic-btn:hover { color: #059669; }

/* Bold "I'm listening" state — solid red background, white glyph, and
   a soft pulsing halo around it so the teacher can't miss that the
   mic is hot. Applied consistently to every mic via the shared
   .recording class — see shared/mic.css for the cross-modal rules. */
.up-chat-mic-btn.recording {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
    animation: up-mic-pulse 1.4s ease-out infinite;
}

@keyframes up-mic-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.65); }
    70%  { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ===== File preview bar ===== */
.up-chat-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.up-file-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 11px;
    color: #555;
    max-width: 180px;
}

.up-file-chip-thumb {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
}

.up-file-chip-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.up-file-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.up-file-chip-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.up-file-chip-remove:hover { color: #dc2626; }

/* ===== Chat attachment display in messages ===== */
.up-chat-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.up-chat-attachment {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    font-size: 11px;
}

.up-chat-attachment-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.up-chat-attachment-icon {
    font-size: 20px;
}

.up-chat-attachment-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Apply button in chat ===== */
.up-apply-btn {
    display: block;
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background-color: #059669;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.up-apply-btn:hover {
    background-color: #047857;
}

.up-apply-btn.applied {
    background-color: #2563eb;
    cursor: default;
}

/* ===== Drive file chip variant ===== */
.up-drive-chip {
    border-color: #c4d6f7;
    background-color: #f0f5ff;
}

/* ===== Google Drive Button ===== */
.up-gdrive-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.up-gdrive-btn:hover {
    background: #f0f0f0;
}
.up-gdrive-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Library Button (first in the left cluster) ===== */
.up-library-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 4px 6px;
    border-radius: 4px;
    color: #4b5563;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.up-library-btn:hover {
    background: #f0fdf4;
    color: #2f6844;
}
/* Linked-state tint — mirrors lesson modal's "Materials Linked" pill so
   the chat-row library glyph also reads as active once any library file
   is wired to this unit plan. */
.up-library-btn.up-library-btn-linked {
    background: #f0fdf4;
    color: #047857;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}
.up-library-btn.up-library-btn-linked::after {
    content: '\2713';
    display: inline-block;
    margin-left: 4px;
    width: 12px;
    height: 12px;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

/* Spacer that pushes the mic + send buttons to the right edge of
   the chat-input-buttons row. Left cluster (library, paperclip,
   drive) + AG pill sit before it; mic + send come after. */
.up-chat-spacer {
    flex: 1 1 auto;
    min-width: 8px;
}

/* ===== Google Drive Picker Panel ===== */
.up-gdrive-picker {
    display: none;
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    flex-direction: column;
    overflow: hidden;
    max-height: 300px;
}
.up-gdrive-picker.open {
    display: flex;
}
.up-gdrive-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8f9fa;
}
.up-gdrive-picker-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.up-gdrive-picker-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}
.up-gdrive-picker-close:hover { color: #333; }
.up-gdrive-picker-search {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.up-gdrive-picker-search input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}
.up-gdrive-picker-search input:focus {
    border-color: #059669;
}
.up-gdrive-picker-files {
    flex: 1;
    overflow-y: auto;
    max-height: 180px;
}
.up-gdrive-picker-loading,
.up-gdrive-picker-empty {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}
.up-gdrive-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f5f5f5;
}
.up-gdrive-file:hover {
    background: #f0fdf4;
}
.up-gdrive-file.added {
    background: #ecfdf5;
    cursor: default;
}
.up-gdrive-file-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.up-gdrive-file-info {
    flex: 1;
    min-width: 0;
}
.up-gdrive-file-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.up-gdrive-file-meta {
    font-size: 10px;
    color: #999;
    margin-top: 1px;
}
.up-gdrive-file-check {
    color: #059669;
    font-size: 14px;
    flex-shrink: 0;
}
.up-gdrive-picker-status {
    padding: 4px 12px;
    font-size: 11px;
    color: #059669;
    min-height: 20px;
}

/* ===== TAB BAR ===== */
.up-tab-bar {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    padding: 0 24px;
    background: #fafbfc;
    flex-shrink: 0;
}
.up-tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.up-tab:hover { color: #374151; }
.up-tab.active {
    color: #059669;
    border-bottom-color: #059669;
}
.up-tab.disabled {
    color: #d1d5db;
    cursor: not-allowed;
}
.up-tab.disabled:hover { color: #d1d5db; }

.up-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    background: #e5e7eb;
    color: #9ca3af;
}
.up-tab-badge.has-items {
    background: #d1fae5;
    color: #059669;
}
.up-tab-badge:empty { display: none; }

.up-tab-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    margin-bottom: 6px;
}
.up-tab-tooltip.show { display: block; }
.up-tab-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #374151;
}

/* ===== TAB CONTENT ===== */
.up-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.up-tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Make rubrics/standards panels fill tab */
.up-tab-content .up-panel {
    flex: 1;
    overflow-y: auto;
}

/* Make the form panel a flex column so tabs fill space */
#up-form-panel {
    display: flex;
    flex-direction: column;
}

/* ===== ASSESSMENTS TAB ===== */
.up-assessments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
}
.up-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.up-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    flex: 1;
}
.up-empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
.up-empty-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 6px; }
.up-empty-desc { font-size: 13px; color: #6b7280; max-width: 340px; line-height: 1.5; margin-bottom: 16px; }

.up-add-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.up-add-btn:hover { background: #dcfce7; border-color: #86efac; }

.up-assessment-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 8px 16px;
    background: #fff;
    transition: all 0.15s;
}
.up-assessment-card.expanded { border-color: #86efac; box-shadow: 0 0 0 1px #86efac; }
.up-assessment-card:hover { border-color: #d1d5db; }

.up-assessment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    user-select: none;
}
.up-assessment-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}
.up-assessment-header-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.up-assessment-icon { font-size: 16px; flex-shrink: 0; }
.up-assessment-type-label { font-size: 12px; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: 0.3px; }
.up-assessment-title { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-assessment-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Slow Graded toggle in assessment header */
.up-sg-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.up-sg-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.up-assessment-arrow { font-size: 10px; color: #9ca3af; flex-shrink: 0; cursor: pointer; padding: 4px; }

.up-assessment-body {
    padding: 0 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.up-form-group {
    margin-top: 12px;
}
.up-form-row {
    display: flex;
    gap: 12px;
}
.up-form-row .up-form-group { flex: 1; }

.up-assessment-body .up-editor-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}
.up-assessment-body .up-input,
.up-assessment-body select {
    width: 100%;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}
.up-assessment-body .up-input:focus,
.up-assessment-body select:focus,
.up-assessment-body .up-textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5,150,105,0.1);
}
.up-assessment-body .up-textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8f9fa;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Rich-text variant for the assessment description — looks like a
   textarea but renders HTML so the AI's <b>/<ul>/<li> formatting
   shows up the way it was intended instead of as literal tags. */
.up-assessment-body .up-richtext {
    width: 100%;
    min-height: 92px;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f8f9fa;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.up-assessment-body .up-richtext:focus {
    border-color: #059669;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(5,150,105,0.1);
}
.up-assessment-body .up-richtext:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.up-assessment-body .up-richtext ul,
.up-assessment-body .up-richtext ol {
    margin: 4px 0 4px 18px;
    padding: 0;
}
.up-assessment-body .up-richtext li {
    margin: 2px 0;
}
.up-assessment-body .up-richtext b,
.up-assessment-body .up-richtext strong {
    font-weight: 700;
}
.up-assessment-body .up-richtext i,
.up-assessment-body .up-richtext em {
    font-style: italic;
}

.up-assessment-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}
.up-delete-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.up-delete-btn:hover { background: #fee2e2; border-color: #fca5a5; }

/* ===== TOGGLE SWITCH ===== */
.up-toggle-row {
    margin-top: 12px;
    padding: 8px 0;
}
.up-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
}
.up-toggle-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.up-toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.up-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.up-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #d1d5db;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}
.up-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s;
}
.up-toggle-switch input:checked + .up-toggle-slider {
    background: #059669;
}
.up-toggle-switch input:checked + .up-toggle-slider::before {
    transform: translateX(16px);
}

/* ===== TASK-SPECIFIC OBJECTIVES ===== */
.up-tso-section {
    margin-top: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #fafbfc;
}
.up-tso-header {
    margin-bottom: 4px;
}
/* Level bands grid */
.up-tso-levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}
.up-tso-level {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.up-tso-level-header {
    display: flex;
    align-items: center;
}
.up-tso-level-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}
.up-tso-l12 { background: #fee2e2; color: #b91c1c; }
.up-tso-l34 { background: #fef3c7; color: #b45309; }
.up-tso-l56 { background: #dbeafe; color: #1d4ed8; }
.up-tso-l78 { background: #d1fae5; color: #047857; }
.up-tso-level-text {
    font-size: 12px !important;
    min-height: 50px;
}
.up-tso-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.3;
}
.up-tso-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.up-tso-item {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.up-tso-item-header {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.up-tso-title {
    flex: 1;
    font-weight: 600 !important;
}
.up-tso-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.up-tso-remove:hover { background: #fee2e2; color: #dc2626; }
.up-tso-desc {
    font-size: 12px !important;
}
.up-tso-add {
    margin-top: 4px;
    align-self: flex-start;
}

/* ===== Rich-text toolbar (assessment description editor) ===== */
.up-rt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}
.up-rt-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.up-rt-btn:hover { background: #f3f4f6; border-color: #9ca3af; }
.up-rt-btn:active { background: #e5e7eb; }
.up-rt-sep {
    width: 1px;
    height: 18px;
    background: #d1d5db;
    margin: 0 4px;
}
.up-rt-toolbar + .up-richtext {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.up-assessment-body .up-richtext a {
    color: #047857;
    text-decoration: underline;
}
.up-assessment-body .up-richtext h1,
.up-assessment-body .up-richtext h2,
.up-assessment-body .up-richtext h3 {
    margin: 8px 0 4px;
    font-weight: 700;
}
.up-assessment-body .up-richtext h2 { font-size: 16px; }
.up-assessment-body .up-richtext h1 { font-size: 18px; }
.up-assessment-body .up-richtext h3 { font-size: 15px; }

/* ===== Empty-section auto-delete chips (Phase 1, 2026-05-27) =====
   The unit + lesson modals share the same chat-render branch for
   `empty_section_prompt` system messages. Lesson modal injects these
   styles via JS at load; we mirror them here for the unit modal so
   the chips look right even when only the unit modal has loaded. */
.ld-empty-prompt {
    margin: 8px 14px 12px;
    padding: 10px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    font-size: 12px;
    color: #0c4a6e;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ld-empty-prompt-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: #075985;
}
.ld-empty-prompt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-top: 1px dashed #bae6fd;
}
.ld-empty-prompt-row:first-of-type { border-top: none; padding-top: 2px; }
.ld-empty-prompt-row.is-muted { opacity: 0.6; }
.ld-empty-prompt-title { font-weight: 600; color: #0c4a6e; }
.ld-empty-prompt-actions { display: inline-flex; gap: 6px; align-items: center; }
.ld-empty-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid;
    background: #fff;
    font-family: inherit;
    line-height: 1.2;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ld-empty-chip-yes { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.ld-empty-chip-yes:hover { background: #d1fae5; border-color: #34d399; }
.ld-empty-chip-no { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.ld-empty-chip-no:hover { background: #e2e8f0; border-color: #94a3b8; }
.ld-empty-chip-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #e0f2fe;
    color: #075985;
}
.ld-empty-chip-status-done { background: #dcfce7; color: #166534; }
.ld-empty-chip-status-muted { background: #f1f5f9; color: #64748b; }

/* Shimmer on the placeholder section card while the AI fills it. */
.up-plan-section.ld-section-shimmer,
.up-plan-section-card.ld-section-shimmer {
    position: relative;
    overflow: hidden;
}
.up-plan-section.ld-section-shimmer::after,
.up-plan-section-card.ld-section-shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0, rgba(110, 231, 183, 0.22) 50%, transparent 100%);
    animation: ldSectionShimmer 1.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes ldSectionShimmer {
    0% { left: -40%; }
    100% { left: 120%; }
}

/* ===== Previous-units pill + dropdown (Phase 5, 2026-05-27) =====
   Shares the .tc-prev-lessons-pill / .tc-prev-lessons-dropdown classes
   with the lesson modal so the look is consistent. Mirrored here so the
   styles are available even when only the unit modal has loaded. */
.tc-prev-lessons-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #dbeafe;
    border: 1px solid #93c5fd;
    font: 600 12px/1.15 inherit;
    color: #1e40af;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.tc-prev-lessons-pill:hover {
    background: #bfdbfe;
    border-color: #60a5fa;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.tc-prev-lessons-pill:disabled {
    cursor: default;
    opacity: 0.55;
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
    box-shadow: none;
}
.tc-prev-lessons-pill:disabled:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: none;
}
.ld-launcher-prev-pill { align-self: flex-start; margin-top: 4px; }

.tc-prev-lessons-dropdown {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 25, 35, 0.18);
    padding: 10px 0;
    font: 13px/1.4 inherit;
    color: #0f172a;
    max-height: min(360px, calc(100vh - 40px));
    overflow: auto;
}
.tc-prev-lessons-dropdown-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 14px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}
.tc-prev-lessons-dropdown-sub {
    font-weight: 500;
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.1px;
}
.tc-prev-lessons-dropdown-empty {
    padding: 18px 16px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}
.tc-prev-lessons-dropdown-list { display: flex; flex-direction: column; padding: 4px 0; }
.tc-prev-lessons-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.12s;
}
.tc-prev-lessons-row:hover { background: #f1f5f9; }
.tc-prev-lessons-row input[type=checkbox] {
    margin: 3px 0 0;
    flex: 0 0 auto;
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: #2563eb;
}
.tc-prev-lessons-row-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tc-prev-lessons-row-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 12.5px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}
.tc-prev-lessons-row-date { font-size: 11px; color: #64748b; margin-top: 2px; letter-spacing: 0.1px; }
.tc-prev-lessons-more {
    display: block;
    width: calc(100% - 28px);
    margin: 6px 14px 4px;
    padding: 7px 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: #1e40af;
    font: 600 12px/1.2 inherit;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: background 0.12s, border-color 0.12s;
}
.tc-prev-lessons-more:hover { background: #eff6ff; border-color: #93c5fd; }

/* Launcher title row — title + summary info icon inline. */
.ld-launcher-title-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
