/* Classroom plugin styles */

.classroom-class-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: #fafffd;
}

.classroom-class-card .classroom-class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.classroom-class-card h3 {
    /* The theme forces h3 to 26px; keep the class name a tidy, readable size. */
    font-size: 1.15rem !important;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.classroom-class-code {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: #29f1c3;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 1rem;
}

.classroom-class-meta {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.classroom-class-actions button {
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}

.classroom-class-actions button:hover {
    color: #000;
}

.classroom-class-actions .classroom-toggle-students {
    color: #1cb495;
    font-weight: 600;
}

.classroom-students {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid #e9ecef;
}

/* Teacher per-student assignment lists: compact subject labels + titles. */
.classroom-student-assignments .classroom-student-assignments-table {
    font-size: 11px;
}
.classroom-student-assignments .classroom-student-assignments-table td {
    padding: 2px 8px;
}
/* Subject label sits flush-left under the student name (de-indents the panel
   padding + border so it aligns with the name above it). */
.classroom-roster-subject {
    margin-left: 0;
    font-size: 9px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    margin-bottom: 1px;
}
.classroom-student-assignments .ra-status {
    color: #9ca3af;
    font-size: 10px;
    text-transform: capitalize;
    text-align: right;
    white-space: nowrap;
}

.classroom-students-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.classroom-students-list li {
    display: block;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #f0f0f0;
}

.classroom-students-list li:last-child {
    border-bottom: none;
}

.classroom-student-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.classroom-student-name-btn {
    background: none;
    border: none;
    padding: 0;
    color: #1a1a1a;
    font-weight: 400;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}
.classroom-student-name-btn:hover {
    text-decoration: underline;
    color: #000;
}

/* Teacher view of an assignment's content (digital test / word list / etc.). */
.ta-content { max-width: 760px; margin: 0 auto; text-align: left; }
.ta-content h2 { text-align: left; }
.ta-questions { padding-left: 22px; }
.ta-questions > li { margin: 0 0 12px; }
.ta-opts { margin: 4px 0 0; }
.ta-opts li { margin: 2px 0; }
.ta-tf { color: #555; font-size: 13px; margin-top: 4px; }
.ta-wordlist { padding-left: 20px; }
.ta-wordlist li { margin: 0 0 6px; }
.ta-wordlist-inline { columns: 2; }

.classroom-student-assignments {
    margin-top: 0.25rem;
    padding-left: 0.5rem;
    border-left: 2px solid #e8fffa;
}

.classroom-student-assignments-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
    margin-top: 0.25rem;
}
.classroom-student-assignments-table th,
.classroom-student-assignments-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.classroom-student-assignments-table th {
    color: #9ca3af;
    font-weight: 500;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.classroom-student-assignments-table a {
    color: #29f1c3;
    text-decoration: none;
}
.classroom-student-assignments-table a:hover {
    text-decoration: underline;
}
.classroom-assignment-row {
    cursor: pointer;
}
.classroom-assignment-row:hover {
    background: #f7f8fa;
}

.classroom-add-student {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.classroom-add-student input {
    flex: 1;
    min-width: 150px;
}

.classroom-empty-students {
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
}

.classroom-remove-student {
    color: #cbd5e1;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
    transition: color 0.15s;
}
.classroom-remove-student:hover { color: #b91c1c; }

/* ----- Assign worksheet button on worksheet pages ----- */

.classroom-assign-btn {
    display: inline-flex;
    align-items: center;
    background: #29f1c3;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 43px;
    padding: 15px 3rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.classroom-assign-btn:hover {
    filter: brightness(0.95);
}

/* ----- Modal ----- */

.classroom-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classroom-modal.d-none {
    display: none !important;
}

.classroom-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.classroom-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 92%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

/* Practice Digitally modal — wider so the flashcards / activity grid
   has room to breathe. */
.classroom-practice-modal-dialog {
    max-width: 880px;
}

.classroom-modal-header,
.classroom-modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.classroom-modal-header {
    border-bottom: 1px solid #eee;
}

.classroom-modal-footer {
    border-top: 1px solid #eee;
    gap: 0.5rem;
}

.classroom-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.classroom-modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}

.classroom-modal-body {
    padding: 1.25rem 1.5rem;
}

.classroom-assign-students-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.classroom-assign-students-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

/* ----- Assignments lists ----- */

.classroom-assignment-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #fff;
}

.classroom-assignment-card .classroom-assignment-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

.classroom-status-badge {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.classroom-status-not_started { background: #f1f3f5; color: #495057; }
.classroom-status-in_progress { background: #fff3cd; color: #8a6d3b; }
.classroom-status-completed { background: #d1f7e7; color: #1cb495; }

/* ----- Paper-preview wrapper for the assignment worksheet ----- */

.classroom-assignment-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.classroom-assignment-header h1 {
    font-size: 1.5rem !important;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.25rem 0;
}

.classroom-assignment-header .classroom-meta {
    color: #6c757d;
    font-size: 0.875rem;
}

.classroom-paper-preview {
    margin: 1rem auto;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 8.5 / 11;
    background: #fff;
    border: 1px solid #d1d5db;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    overflow-x: hidden;
}

.classroom-paper-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.classroom-assignment-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.classroom-roster-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.classroom-roster-table th,
.classroom-roster-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.classroom-roster-table th {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8f9fa;
}

.classroom-roster-table tbody tr:last-child td {
    border-bottom: none;
}

.classroom-roster-row-expandable {
    cursor: pointer;
}
.classroom-roster-row-expandable:hover {
    background: #f7f8fa;
}
.classroom-roster-caret {
    display: inline-block;
    color: #6b7280;
    font-size: 0.8em;
    width: 0.9em;
}
.classroom-roster-answers > td {
    background: #fafcfb;
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
    padding-left: 2.25rem !important;
}
.ta-answers {
    margin: 0;
    padding-left: 1.25rem;
}
.ta-answers > li {
    margin: 0 0 0.75rem;
}
.ta-ans-q {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
}
.ta-ans-a {
    margin-top: 2px;
    color: #333;
    font-size: 0.9rem;
    white-space: pre-wrap;
}
.ta-ans-empty {
    color: #9ca3af;
    font-style: italic;
}

.classroom-word-list-table td {
    vertical-align: top;
}
.classroom-word-list-table input,
.classroom-word-list-table textarea {
    font-size: 0.95rem;
}
.classroom-word-list-table .classroom-word-definition {
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    line-height: 1.3;
    padding: 6px 8px;
}

/* Action bar above the word-list table — uniform pill buttons */
.wl-actions .wl-action-btn {
    font-size: 0.9rem;
    min-width: 110px;
    text-align: center;
}

/* Reset the site's global !important styles inside the WP media modal.
   The site has `*{font-family/style !important}` and `h1{font-size:46px!important}`
   inline in body. Use html-prefix to bump specificity over those rules. */
html body .media-modal, html body .media-modal *,
html body .media-frame, html body .media-frame * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
html body .media-modal h1, html body .media-frame h1 {
    font-size: 22px !important; font-weight: 600 !important;
    margin: 0 !important; padding: 0 0 0 20px !important;
    line-height: 50px !important; height: 50px !important;
}
html body .media-modal h2, html body .media-frame h2 {
    font-size: 18px !important; font-weight: 600 !important;
    margin: 0 !important; padding: 0 !important; line-height: 1.2 !important;
}
html body .media-modal h3, html body .media-frame h3 {
    font-size: 14px !important; font-weight: 600 !important;
    margin: 0 !important; padding: 0 !important; line-height: 1.2 !important;
}
html body .media-modal .media-frame-title {
    height: 50px !important;
    line-height: 50px !important;
}
html body .media-modal .media-frame-router {
    top: 50px !important;
    font-size: 14px !important;
}
html body .media-modal .media-frame-menu .media-menu-item,
html body .media-modal .media-router .media-menu-item {
    font-size: 14px !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 8px 12px !important;
}
html body .media-modal a, html body .media-frame a {
    display: inline !important;
    color: #2271b1 !important;
}
html body .media-modal .button, html body .media-frame .button,
html body .media-modal button, html body .media-frame button {
    display: inline-block !important;
    line-height: 2 !important;
    font-weight: normal !important;
}
html body .media-modal .media-modal-close,
html body .media-frame .media-modal-close {
    display: block !important;
    line-height: 1 !important;
}
html body .media-modal .attachments-browser .attachments,
html body .media-modal .attachments {
    font-size: 13px !important;
}

/* Image cell on each word row — single clickable dashed-border box. */
.classroom-word-image-cell {
    position: relative;
    display: inline-block;
}
.classroom-word-image-pick {
    width: 70px;
    height: 64px;
    background: #fff;
    border: 1px dashed #c4c4c4;
    border-radius: 6px;
    color: #999;
    font-size: 11px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.classroom-word-image-pick:hover {
    border-color: #29f1c3;
    color: #1bc7a0;
}
.classroom-word-image-pick.has-image {
    border-style: solid;
    padding: 0;
}
.classroom-word-image-pick.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.classroom-word-image-find {
    display: block;
    margin-top: 4px;
    background: transparent;
    border: none;
    color: #29f1c3;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: center;
    width: 70px;
}
.classroom-word-image-find:hover { color: #1bc7a0; text-decoration: underline; }

.classroom-word-image-results {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    z-index: 20;
    min-width: 320px;
    max-width: 360px;
}
.classroom-word-image-loading,
.classroom-word-image-error {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 8px;
}
.classroom-word-image-error { color: #c66; }
.classroom-word-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    max-height: 260px;
    overflow-y: auto;
}
.classroom-word-image-result {
    background: none;
    border: 1px solid transparent;
    padding: 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: border-color 0.1s ease;
}
.classroom-word-image-result:hover { border-color: #29f1c3; }
.classroom-word-image-result img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}
.classroom-word-image-close-results {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 4px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
}
.classroom-word-image-close-results:hover { background: #e8e8e8; }

/* Source badge on each word list card */
.wl-source-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}
.wl-source-shared      { background: #e3f2fd; color: #0d4d7a; }
.wl-source-public      { background: #d4f8ec; color: #0d7a52; }
.wl-source-mine-public { background: #d4f8ec; color: #0d7a52; }
.wl-source-pending     { background: #fff3cd; color: #7a5c00; }

/* Word list sharing block on the editor */
.wl-share-block {
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.wl-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.wl-status-private  { background: #f1f1f1; color: #555; }
.wl-status-pending  { background: #fff3cd; color: #7a5c00; }
.wl-status-approved { background: #d4f8ec; color: #0d7a52; }
.wl-status-rejected { background: #f8d7da; color: #842029; }
.wl-share-people {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wl-share-people li {
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wl-share-people li:last-child { border-bottom: none; }
.wl-share-remove {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #c66;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
}
.wl-share-remove:hover { color: #a44; }

/* Pixabay image-picker modal */
html body .classroom-pixabay-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
html body .classroom-pixabay-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.55) !important;
}
html body .classroom-pixabay-content {
    position: relative !important;
    z-index: 1 !important;
    background: #fff !important;
    width: 90vw !important;
    max-width: 760px !important;
    max-height: 85vh !important;
    border-radius: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}
html body .classroom-pixabay-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #eee !important;
}
html body .classroom-pixabay-header h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #222 !important;
}
html body .classroom-pixabay-close {
    background: transparent !important;
    border: none !important;
    color: #666 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 4px !important;
}
html body .classroom-pixabay-close:hover { color: #000 !important; }
html body .classroom-pixabay-searchbar {
    display: flex !important;
    gap: 8px !important;
    padding: 12px 18px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
html body .classroom-pixabay-input {
    flex: 1 !important;
    padding: 8px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    outline: none !important;
}
html body .classroom-pixabay-input:focus { border-color: #29f1c3 !important; }
html body .classroom-pixabay-search-btn {
    padding: 8px 18px !important;
    background: #29f1c3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
}
html body .classroom-pixabay-search-btn:hover { background: #1bc7a0 !important; }
html body .classroom-pixabay-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 16px 18px !important;
    min-height: 200px !important;
}
html body .classroom-pixabay-loading,
html body .classroom-pixabay-error {
    text-align: center !important;
    padding: 30px 10px !important;
    color: #666 !important;
    font-size: 14px !important;
}
html body .classroom-pixabay-error { color: #c66 !important; }
html body .classroom-pixabay-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}
@media (min-width: 640px) {
    html body .classroom-pixabay-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
html body .classroom-pixabay-result {
    background: none !important;
    border: 2px solid transparent !important;
    padding: 0 !important;
    cursor: pointer !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    transition: border-color 0.1s ease, transform 0.1s ease !important;
}
html body .classroom-pixabay-result:hover {
    border-color: #29f1c3 !important;
    transform: translateY(-2px) !important;
}
html body .classroom-pixabay-result img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 4px !important;
}

.classroom-word-image-clear {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ccc;
    color: #c66;
    font-size: 14px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.classroom-word-image-clear:hover { color: #a44; border-color: #a44; }

/* Student-side flashcard viewer */
.classroom-flashcards {
    max-width: 600px;
    margin: 1rem auto;
    text-align: center;
}
.classroom-fc-card {
    position: relative;
    background: #fff;
    border: 2px solid #29f1c3;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    min-height: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}
.classroom-fc-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.classroom-fc-card:focus { box-shadow: 0 0 0 3px rgba(41,241,195,0.5); }
.classroom-fc-side { display: none; }
.classroom-fc-show-term .classroom-fc-front { display: block; }
.classroom-fc-show-def .classroom-fc-back { display: block; }
.classroom-fc-text {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    margin: 1rem 0 0.5rem;
}
.classroom-fc-back .classroom-fc-text { font-size: 1.2rem; font-weight: 500; }
.classroom-fc-image {
    max-width: 220px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    display: block;
}
.classroom-fc-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.classroom-fc-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    gap: 0.5rem;
}
.classroom-fc-prev,
.classroom-fc-next {
    background: #29f1c3;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.classroom-fc-prev:hover,
.classroom-fc-next:hover { background: #1bc7a0; }
.classroom-fc-counter {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}
.classroom-fc-extra {
    margin-top: 1rem;
    text-align: center;
}
.classroom-fc-create-ws {
    display: inline-block;
    background: #29f1c3;
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
}
.classroom-fc-create-ws:hover { background: #1bc7a0; color: #fff !important; text-decoration: none !important; }

.classroom-word-list-table textarea {
    resize: vertical;
    min-height: 38px;
}

.classroom-word-num {
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
    vertical-align: middle;
}

/* ===== Digital test form (student-assignment page) ===== */
.dt-form { max-width: 760px; margin: 0 auto; }
.dt-question { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }
.dt-prompt { font-weight: 600; font-size: 15px; color: #1a1a1a; margin-bottom: 12px; line-height: 1.5; }
.dt-options { display: flex; flex-direction: column; gap: 8px; }
.dt-options.dt-tf { flex-direction: row; gap: 24px; }
.dt-option { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: #374151; padding: 6px 10px; border-radius: 6px; margin: 0; }
.dt-option:hover { background: #f9fafb; }
.dt-option input[type="radio"] { margin: 0; }
.dt-text { width: 100%; resize: vertical; font-size: 14px; }
.dt-matching { width: 100%; border-collapse: collapse; }
.dt-matching td { padding: 8px 6px; vertical-align: middle; }
.dt-m-term { font-weight: 500; width: 45%; font-size: 14px; color: #1a1a1a; }
.dt-m-pick select { font-size: 14px; }
.dt-submit-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.dt-submitted-note { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 10px; padding: 14px 18px; text-align: center; font-weight: 500; }
.dt-form.dt-locked .dt-question { opacity: 0.85; }

/* ===== Teacher grading (page-teacher-grading) ===== */
.tg-list { display: flex; flex-direction: column; gap: 8px; }
.tg-card { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
.tg-card-main { flex: 1; min-width: 200px; }
.tg-card-title { font-weight: 600; font-size: 15px; color: #1a1a1a; }
.tg-card-meta { font-size: 12px; color: #6b7280; margin-top: 2px; }
.tg-card-side { display: flex; align-items: center; gap: 12px; }
.tg-card-score { font-weight: 600; font-size: 14px; color: #374151; min-width: 50px; text-align: center; }
.tg-badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.tg-badge-pending { background: #fef3c7; color: #92400e; }
.tg-badge-released { background: #d1fae5; color: #065f46; }
.tg-grading { display: flex; flex-direction: column; gap: 14px; }
.tg-q { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; }
.tg-q-head { font-weight: 600; font-size: 14px; color: #1a1a1a; margin-bottom: 10px; }
.tg-q-num { color: #6b7280; margin-right: 4px; }
.tg-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
@media (max-width: 600px) { .tg-q-grid { grid-template-columns: 1fr; } }
.tg-q-cell { background: #f9fafb; border-radius: 8px; padding: 10px 12px; }
.tg-q-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin-bottom: 4px; }
.tg-q-ans { font-size: 14px; color: #1a1a1a; }
.tg-q-correct { color: #065f46; }
.tg-q-grade { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tg-grade-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 13px; cursor: pointer; margin: 0; }
.tg-comment { flex: 1; min-width: 180px; max-width: 360px; font-size: 13px; }
.tg-mlist { margin: 0; padding-left: 18px; }
.tg-mlist li { font-size: 13px; }
.tg-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.dt-result-banner { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; border-radius: 10px; padding: 14px 18px; text-align: center; font-weight: 600; margin-bottom: 16px; }
.dt-result-banner .dt-score { font-size: 22px; display: block; margin-top: 4px; }
.dt-q-feedback { margin-top: 8px; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.dt-q-feedback.dt-correct { background: #d1fae5; color: #065f46; }
.dt-q-feedback.dt-incorrect { background: #fee2e2; color: #991b1b; }
.dt-q-comment { margin-top: 4px; font-style: italic; }

.classroom-score-badge { background: #d1fae5; color: #065f46; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* ===== Practice viewer (word-list assignments) ===== */
.practice-viewer { max-width: 760px; margin: 0 auto; }
.practice-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; justify-content: center; }
.practice-tab { background: #fff; border: 1px solid #e5e7eb; color: #374151; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; }
.practice-tab:hover { background: #f9fafb; }
.practice-tab.active { background: #29f1c3; color: #fff; border-color: #29f1c3; }
.pmode { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px 22px; }
.pmode-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; color: #6b7280; }
.pmode-score { font-weight: 600; color: #065f46; }
.pmode-prompt { font-size: 17px; font-weight: 500; color: #1a1a1a; margin-bottom: 16px; padding: 14px 18px; background: #f9fafb; border-radius: 10px; line-height: 1.5; }
.pmode-options { display: flex; flex-direction: column; gap: 8px; }
.pmode-opt { background: #fff; border: 2px solid #e5e7eb; color: #1a1a1a; padding: 12px 16px; border-radius: 10px; font-size: 15px; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pmode-opt:hover:not(.locked) { border-color: #29f1c3; background: #f0fdfa; }
.pmode-opt.locked { cursor: default; }
.pmode-opt.correct { border-color: #10b981; background: #d1fae5; color: #065f46; font-weight: 600; }
.pmode-opt.wrong { border-color: #ef4444; background: #fee2e2; color: #991b1b; font-weight: 600; }
.pmode-tf-row { flex-direction: row; gap: 12px; }
.pmode-tf-row .pmode-opt { flex: 1; text-align: center; font-weight: 600; }
.pmode-feedback { margin-top: 14px; font-size: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pmode-fb-correct { color: #065f46; font-weight: 600; }
.pmode-fb-wrong { color: #991b1b; font-weight: 600; }
.pmode-next, .pmode-restart, .pmode-written-check, .sw-check, .sw-scramble-check { background: #29f1c3; color: #fff; border: none; border-radius: 999px; padding: 8px 18px; font-weight: 600; cursor: pointer; }
.pmode-next:hover, .pmode-restart:hover, .pmode-written-check:hover, .sw-check:hover, .sw-scramble-check:hover { background: #1bc7a0; }
.sw-scramble-check:disabled { opacity: 0.6; cursor: default; }
.pmode-done { text-align: center; padding: 20px 0; }
.pmode-done-title { font-size: 20px; font-weight: 700; color: #065f46; margin-bottom: 6px; }
.pmode-done-score { font-size: 16px; color: #374151; margin-bottom: 16px; }
.pmatch-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pmatch-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 10px; align-items: stretch; }
.pmatch-term-cell { background: #f9fafb; border: 1px solid #e5e7eb; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #1a1a1a; display: flex; align-items: center; }
.pmatch-slot { background: #fff; border: 2px dashed #d1d5db; padding: 12px 14px; border-radius: 10px; font-size: 14px; min-height: 46px; color: #9ca3af; display: flex; align-items: center; }
.pmatch-slot.drag-over { border-color: #29f1c3; background: #ecfdf5; }
.pmatch-slot.filled { color: #1a1a1a; }
.pmatch-slot.correct { border-style: solid; border-color: #10b981; background: #d1fae5; }
.pmatch-slot.wrong { border-color: #ef4444; background: #fee2e2; animation: pmShake 0.4s; }
.pmatch-pool-label { margin-bottom: 6px; }
.pmatch-pool { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: #f9fafb; border-radius: 12px; min-height: 60px; }
.pmatch-def-card { background: #fff; border: 2px solid #e5e7eb; padding: 10px 14px; border-radius: 10px; font-size: 14px; cursor: grab; user-select: none; transition: border-color 0.15s, transform 0.15s; }
.pmatch-def-card:hover:not(.locked) { border-color: #29f1c3; }
.pmatch-def-card.selected { border-color: #29f1c3; background: #ecfdf5; }
.pmatch-def-card.dragging { opacity: 0.5; cursor: grabbing; }
.pmatch-def-card.wrong { border-color: #ef4444; background: #fee2e2; animation: pmShake 0.4s; }
@keyframes pmShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.pmatch-status { margin-top: 14px; }
.pmode-written-input { display: flex; gap: 8px; align-items: stretch; }
.pmode-written-text { flex: 1; font-size: 15px; }
.pmode-written-text.correct { border-color: #10b981 !important; background: #d1fae5; }
.pmode-written-text.wrong { border-color: #ef4444 !important; background: #fee2e2; }

/* Sight-word one-at-a-time inputs */
.sw-input { flex: 1; font-size: 18px; }
.sw-input.correct { border-color: #10b981 !important; background: #d1fae5; }
.sw-input.wrong { border-color: #ef4444 !important; background: #fee2e2; }
.sw-scramble-dd { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 14px; }
.sw-scramble-dd .spelling-tile { font-size: 26px; min-width: 44px; height: 50px; }
.sw-scramble-dd .spelling-tile-target { min-width: 44px; height: 50px; }
.sw-scramble-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

/* Optional word bank in the digital scramble */
.sw-bank-toggle { background: none; border: none; color: #1bc7a0; font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; margin-left: auto; text-decoration: underline; }
.sw-bank { background: #f8fafc; border: 1px solid #e9ecef; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.sw-bank-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #555; margin-bottom: 8px; }
.sw-bank-words { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-bank-word { display: inline-block; background: #fff; border: 1px solid #d1d5db; color: #222; border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.sw-lcw-word-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sw-lcw-word { font-size: 34px; font-weight: 700; color: #111; letter-spacing: 0.02em; }
.sw-lcw-word.covered { color: transparent; background: #e5e7eb; border-radius: 6px; user-select: none; }
.sw-lcw-cover { background: #fff; border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }

.classroom-done-group { margin-top: 12px; border-top: 1px solid #e5e7eb; padding-top: 12px; }
.classroom-done-group summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #6b7280; padding: 6px 0; list-style: none; user-select: none; }
.classroom-done-group summary::before { content: "▸"; display: inline-block; margin-right: 6px; transition: transform 0.15s; }
.classroom-done-group[open] summary::before { transform: rotate(90deg); }
.classroom-done-list { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

/* Image modal tabs */
.classroom-img-tabs { display:flex; gap:6px; padding: 0 24px; border-bottom: 1px solid #e5e7eb; margin-bottom: 16px; }
.classroom-img-tab { background: transparent; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.classroom-img-tab:hover { color: #1a1a1a; }
.classroom-img-tab.active { color: #1a1a1a; border-bottom-color: #29f1c3; }
.classroom-img-pane { padding: 0 24px 16px; }
.classroom-img-upload-btn { background: #29f1c3; color: #fff; border: none; border-radius: 999px; padding: 10px 22px; font-weight: 700; cursor: pointer; }
.classroom-img-upload-btn:hover { background: #1bc7a0; }

.roster-section { margin-bottom: 14px; }
.roster-section h5 { font-size: 13px; font-weight: 700; color: #374151; margin: 0 0 6px 0; text-transform: uppercase; letter-spacing: 0.04em; }
.roster-done { margin-top: 6px; }
.roster-done summary { cursor: pointer; font-size: 12px; font-weight: 600; color: #6b7280; padding: 4px 0; list-style: none; user-select: none; }
.roster-done summary::before { content: "▸"; margin-right: 4px; display: inline-block; transition: transform 0.15s; }
.roster-done[open] summary::before { transform: rotate(90deg); }

.classroom-roster-unassign,
.classroom-roster-delete {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    transition: color 0.15s;
}
.classroom-roster-unassign:hover,
.classroom-roster-delete:hover { color: #b91c1c; }

/* Class header chevron + section disclosure tweaks */
.classroom-class-chevron { display: inline-block; margin-left: 6px; color: #6b7280; font-size: 0.8em; transition: transform 0.15s; }
details.roster-section > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.04em; list-style: none; padding: 6px 0; user-select: none; }
details.roster-section > summary::before { content: "▸"; margin-right: 6px; display: inline-block; transition: transform 0.15s; color: #6b7280; }
details.roster-section[open] > summary::before { transform: rotate(90deg); }
details.roster-section > summary::-webkit-details-marker { display: none; }
details.roster-section > *:not(summary) { padding-left: 20px; }

/* View progress button + modal in teacher roster */
.classroom-view-progress { background: transparent; border: 1px solid #29f1c3; color: #1bc7a0; font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.classroom-view-progress:hover { background: #ecfdf5; color: #065f46; text-decoration: none; }
.classroom-progress-modal { position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center; }
.classroom-progress-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.classroom-progress-content { position: relative; background: #fff; border-radius: 14px; width: 90%; max-width: 480px; box-shadow: 0 18px 60px rgba(0,0,0,0.25); }
.classroom-progress-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #eee; }
.classroom-progress-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
.classroom-progress-close { background: transparent; border: none; font-size: 22px; line-height: 1; color: #6b7280; cursor: pointer; }
.classroom-progress-body { padding: 16px 20px; }
.classroom-progress-table { width: 100%; border-collapse: collapse; }
.classroom-progress-table th, .classroom-progress-table td { padding: 8px 4px; border-bottom: 1px solid #f3f4f6; font-size: 14px; text-align: left; }
.classroom-progress-table th { color: #6b7280; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.pmode-done-actions { display: flex; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pmode-save-score { background: #fff; color: #1bc7a0; border: 2px solid #29f1c3; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.pmode-save-score:hover { background: #ecfdf5; }
.pmode-save-score:disabled { opacity: 0.7; cursor: default; }

.classroom-study-btn { display: inline-block; background: #29f1c3; color: #fff !important; font-weight: 700; font-size: 13px; padding: 6px 18px; border-radius: 999px; text-decoration: none; }
.classroom-study-btn:hover { background: #1bc7a0; color: #fff !important; text-decoration: none; }

/* TTS speaker buttons */
.tts-btn { background: transparent; border: none; padding: 0 4px; font-size: 0.95em; line-height: 1; cursor: pointer; opacity: 0.55; transition: opacity 0.15s, transform 0.15s; vertical-align: middle; }
.tts-btn:hover { opacity: 1; transform: scale(1.15); }
.tts-btn:active { transform: scale(0.95); }
.classroom-fc-tts { margin-top: 12px; }
.classroom-fc-tts .tts-btn { font-size: 1.4em; opacity: 0.7; }


/* ===== Spelling List Activities ===== */
.spelling-activities { margin-top: 16px; }
.spelling-tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #e0e0e0; padding-bottom: 8px; margin-bottom: 16px; }
.spelling-tab { background: transparent; border: 1px solid #ccc; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: #444; }
.spelling-tab:hover { background: #f5f5f5; }
.spelling-tab.active { background: #29c39c; border-color: #29c39c; color: #fff; }
.spelling-mode-help { color: #666; font-size: 14px; margin-bottom: 12px; }
.spelling-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.spelling-save-msg { font-size: 13px; }
.spelling-score-banner { background: #f0f8f4; border: 1px solid #c8e6d4; color: #1e7d2e; padding: 8px 12px; border-radius: 6px; margin-bottom: 12px; font-size: 14px; }

/* ABC Order */
.spelling-bank { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; background: #f7f7f7; border: 2px dashed #ccc; border-radius: 8px; min-height: 60px; margin-bottom: 16px; }
.spelling-bank.drag-over { background: #e8f4ee; border-color: #29c39c; }
.spelling-chip { background: #fff; border: 1px solid #999; border-radius: 6px; padding: 8px 14px; font-size: 18px; cursor: grab; user-select: none; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.spelling-chip:active { cursor: grabbing; }
.spelling-chip.dragging { opacity: 0.5; }
.spelling-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spelling-slot { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fafafa; border: 1px solid #e0e0e0; border-radius: 6px; min-height: 48px; }
.spelling-slot.drag-over { background: #e8f4ee; border-color: #29c39c; }
.spelling-slot-num { font-weight: bold; color: #666; min-width: 28px; }
.spelling-slot-drop { flex: 1; min-height: 36px; display: flex; align-items: center; }
.spelling-slot-correct { background: #e7f7ec; border-color: #1e7d2e; }
.spelling-slot-wrong { background: #fdecea; border-color: #c0392b; }
.spelling-abc-result { font-weight: bold; font-size: 14px; }

/* Word Scramble */
.spelling-scramble-list { display: flex; flex-direction: column; gap: 12px; }
.spelling-scramble-row { display: grid; grid-template-columns: 1fr 30px 1fr 60px; gap: 10px; align-items: center; padding: 8px; border: 1px solid #e0e0e0; border-radius: 6px; }
.spelling-scramble-row.spelling-row-correct { background: #e7f7ec; border-color: #1e7d2e; }
.spelling-scramble-row.spelling-row-wrong { background: #fdecea; border-color: #c0392b; }
/* Source tray on the left (the scrambled letters) keeps the dashed
   container so the cluster of tiles reads as one bank. */
.spelling-tile-tray { display: flex; flex-wrap: wrap; gap: 4px; min-height: 44px; padding: 4px; background: #fafafa; border: 1px dashed #ccc; border-radius: 4px; }
.spelling-tile-tray.drag-over { background: #e8f4ee; }
/* Drop zone on the right is a row of distinct boxed slots, one per
   letter, so kids see exactly where each tile goes. */
.spelling-tile-targets { display: flex; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 0; background: transparent; border: none; }
.spelling-tile-target {
    width: 40px; height: 40px;
    border: 2px solid #999;
    border-radius: 6px;
    background: #fafafa;
    display: flex; align-items: center; justify-content: center;
    box-sizing: border-box;
}
.spelling-tile-target.drag-over { background: #e8f4ee; border-color: #1cb495; border-style: solid; }
.spelling-tile-target .spelling-tile { border: none; border-radius: 4px; padding: 0; min-width: 0; width: 100%; height: 100%; background: transparent; }
.spelling-tile { background: #fff; border: 1px solid #999; border-radius: 4px; padding: 4px 10px; font-family: monospace; font-size: 22px; font-weight: bold; cursor: grab; user-select: none; min-width: 30px; text-align: center; display: flex; align-items: center; justify-content: center; }
.spelling-tile:active { cursor: grabbing; }
.spelling-tile.dragging { opacity: 0.5; }
.spelling-arrow { color: #999; font-size: 20px; text-align: center; }
.spelling-scramble-result { font-size: 18px; font-weight: bold; }
.spelling-scramble-summary { font-weight: bold; font-size: 14px; }

/* LCW: Look (word + Cover btn) | Write1 | Check1 | Write2 | Check2 */
.spelling-lcw-list { display: flex; flex-direction: column; gap: 8px; }
.spelling-lcw-header,
.spelling-lcw-row {
    display: grid;
    grid-template-columns: 200px 1fr 80px 1fr 80px;
    gap: 10px;
    align-items: center;
    padding: 6px;
}
.spelling-lcw-header {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0;
    margin-bottom: -4px;
    text-align: center;
}
.spelling-lcw-header span:nth-child(1) { text-align: left; }
.spelling-lcw-header span:nth-child(2),
.spelling-lcw-header span:nth-child(4) { text-align: left; }

.spelling-lcw-look { display: flex; align-items: center; gap: 10px; }
.spelling-lcw-word { font-family: monospace; font-size: 22px; font-weight: bold; min-width: 90px; }
.spelling-lcw-word.covered { visibility: hidden; }
.spelling-lcw-cover { background: #f0f0f0; border: 1px solid #999; border-radius: 4px; padding: 4px 12px; cursor: pointer; font-size: 13px; }

.spelling-lcw-input:disabled { background: #f7f7f7; }
.spelling-lcw-mark { font-size: 22px; font-weight: bold; text-align: center; }

/* 3x Each */
.spelling-3x-list { display: flex; flex-direction: column; gap: 10px; }
.spelling-3x-row { display: grid; grid-template-columns: 140px 1fr 40px; gap: 12px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.spelling-3x-prompt { font-weight: bold; font-size: 16px; }
.spelling-3x-inputs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.spelling-3x-result { font-size: 22px; font-weight: 700; text-align: center; line-height: 1; }
.spelling-3x-row.spelling-row-correct { background: #e7f7ec; }
.spelling-3x-row.spelling-row-correct .spelling-3x-result { color: #1e7d2e; }
.spelling-3x-row.spelling-row-wrong { background: #fdecea; }
.spelling-3x-row.spelling-row-wrong .spelling-3x-result { color: #c0392b; }

/* Word Scramble — optional word bank */
.spelling-scramble-bank-toggle { display: inline-flex; align-items: center; font-size: 14px; margin: 4px 0 8px; cursor: pointer; }
.spelling-scramble-bank { background: #f8fafc; border: 1px solid #e9ecef; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
.spelling-scramble-bank-pill { display: inline-block; background: #fff; border: 1px solid #1cb495; color: #1e7d2e; border-radius: 999px; padding: 2px 10px; font-size: 13px; margin: 2px 4px 2px 0; }

/* Free-text per-word (Sentences, Definitions) */
.spelling-ft-list { display: flex; flex-direction: column; gap: 12px; }
.spelling-ft-row { display: flex; flex-direction: column; gap: 4px; }
.spelling-ft-prompt { font-size: 15px; }

/* Letter */
.spelling-letter-bank { background: #f7f7f7; border: 1px solid #e0e0e0; border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.spelling-pill { display: inline-block; background: #fff; border: 1px solid #ccc; border-radius: 999px; padding: 2px 10px; margin: 2px; font-size: 13px; }
button.spelling-pill-toggle { cursor: pointer; transition: background 0.15s, color 0.15s, opacity 0.15s, border-color 0.15s; }
button.spelling-pill-toggle:hover { border-color: #999; }
button.spelling-pill-toggle.used { background: #d1f7e7; border-color: #1cb495; color: #1e7d2e; opacity: 0.65; text-decoration: line-through; }
.spelling-letter-text { font-size: 15px; }

/* RMW */
.spelling-rmw-list { display: flex; flex-direction: column; gap: 10px; }
.spelling-rmw-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 8px; border: 1px solid #e0e0e0; border-radius: 6px; align-items: center; }
.spelling-rmw-cell { display: flex; align-items: center; gap: 8px; }
.spelling-rmw-reveal { background: #f0f0f0; border: 1px solid #999; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-size: 13px; }
.spelling-rmw-reveal:disabled { opacity: 0.6; cursor: default; }
.spelling-rmw-word { font-family: monospace; font-size: 18px; font-weight: bold; }

@media (max-width: 600px) {
    .spelling-slots { grid-template-columns: 1fr; }
    .spelling-3x-row { grid-template-columns: 1fr; }
    .spelling-rmw-row { grid-template-columns: 1fr; }
    .spelling-scramble-row { grid-template-columns: 1fr; }
    .spelling-arrow { display: none; }
    .spelling-lcw-row { grid-template-columns: 1fr; }
}

/* ===== Teacher Assignments collapsible groups ===== */
.classroom-assignments-group { margin-bottom: 16px; }
.classroom-assignments-group-summary { list-style: none; cursor: pointer; user-select: none; padding: 8px 0; }
.classroom-assignments-group-summary::-webkit-details-marker { display: none; }
.classroom-assignments-group-summary:hover .classroom-assignments-group-title { color: #29c39c; }
.classroom-assignments-group-title { display: inline-block; font-weight: bold; font-size: 20px; color: #333; }
.classroom-assignments-group-body { padding: 8px 0 0 0; }

/* ===== Word list editor: spelling-kind layout ===== */
/* Hide Definition and Image columns when the editor is in spelling mode.
   Header columns are already trimmed in JS; this hides the matching td
   cells in each existing row template. */
.classroom-word-list-table-spelling td:nth-child(3),
.classroom-word-list-table-spelling td:nth-child(4) { display: none; }

/* ABC Order: optional alphabet reference bar */
.spelling-abc-alphabet {
    background: #b8e6d4;
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    margin-bottom: 14px;
    font-size: 14px;
    letter-spacing: 0.4em;
    text-align: center;
    font-weight: 600;
}
.spelling-abc-letter { display: inline-block; }

/* LCW Check column: clickable ✓ / ✗ pair the student toggles to grade
   their own attempt. Mutually exclusive within a cell. */
.spelling-lcw-check { display: flex; gap: 4px; align-items: center; justify-content: center; }
.spelling-lcw-mark-btn {
    width: 30px; height: 30px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fafafa;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: all 0.1s;
}
.spelling-lcw-mark-btn:hover { background: #f0f0f0; }
.spelling-lcw-mark-check { color: #1e7d2e; }
.spelling-lcw-mark-x     { color: #c0392b; }
.spelling-lcw-mark-check.selected { background: #e7f7ec; border-color: #1e7d2e; }
.spelling-lcw-mark-x.selected     { background: #fdecea; border-color: #c0392b; }

/* Submit + Reset bar at the bottom of the spelling activities. The
   per-activity "Save responses" buttons are hidden because autosave
   handles persistence on every change. */
.spelling-activities .spelling-save-btn,
.spelling-activities .spelling-save-msg { display: none; }

.spelling-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}
.spelling-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.spelling-autosave-msg { min-height: 18px; }

/* ===== Sight Words: Flashcards (non-flip, click speaker to hear) ===== */
.sw-flashcards { max-width: 600px; margin: 1rem auto; text-align: center; }
.sw-flashcard-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 16px;
}
.sw-flashcard {
    display: none;
    position: relative;
    width: 100%;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #29f1c3;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.sw-flashcard.active { display: flex; }
.sw-flashcard-word {
    font-size: 72px;
    font-weight: 700;
    color: #2b2b2b;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.1;
}
.sw-flashcard-speaker.tts-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf8;
    color: #1cb495;
    border: 1px solid #29f1c3;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.sw-flashcard-speaker.tts-btn:hover { background: #29f1c3; }
.sw-flashcard-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sw-flashcard-count { font-size: 15px; color: #666; min-width: 60px; text-align: center; }

/* ===== Letter Sounds digital practice ===== */
.ls-pic-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.ls-pic-opt { background: #fff; border: 2px solid #d8d8d8; border-radius: 12px; padding: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ls-pic-opt:hover:not(.locked) { border-color: #29f1c3; }
.ls-pic-opt.locked { cursor: default; }
.ls-pic-opt.correct { border-color: #1cb495; background: #ecfdf8; }
.ls-pic-opt.wrong { border-color: #d9534f; background: #fdecec; }
.ls-pic-opt img { width: 100%; height: 140px; object-fit: contain; display: block; }

.ls-rec-cap { display: inline-block; font-size: 2.4em; font-weight: bold; vertical-align: middle; margin: 0 4px; }
.ls-rec-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.ls-rec-opt { background: #fff; border: 2px solid #d8d8d8; border-radius: 12px; padding: 18px 0; font-size: 2.2em; font-weight: bold; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ls-rec-opt:hover:not(.locked) { border-color: #29f1c3; }
.ls-rec-opt.locked { cursor: default; }
.ls-rec-opt.correct { border-color: #1cb495; background: #ecfdf8; }
.ls-rec-opt.wrong { border-color: #d9534f; background: #fdecec; }

.ls-fill-sequence { display: flex; justify-content: center; gap: 10px; margin: 16px 0; }
.ls-fill-cell, .ls-fill-slot { width: 70px; height: 80px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2.2em; font-weight: bold; }
.ls-fill-cell { background: #f6f6f6; color: #333; }
.ls-fill-slot { background: #fff; border: 2.5px dashed #29f1c3; color: #333; }
.ls-fill-slot.over { background: #ecfdf8; }
.ls-fill-tray { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.ls-fill-chip { width: 60px; height: 60px; border-radius: 8px; background: #fff; border: 2px solid #d8d8d8; display: flex; align-items: center; justify-content: center; font-size: 1.8em; font-weight: bold; cursor: grab; user-select: none; }
.ls-fill-chip.selected { border-color: #29f1c3; background: #ecfdf8; }
.ls-fill-chip.dragging { opacity: 0.5; }
.ls-fill-chip.placed { cursor: default; width: auto; height: auto; border: none; background: transparent; font-size: 1em; }
.ls-fill-slot .ls-fill-chip.placed { width: 100%; height: 100%; font-size: 2.2em; }
.ls-fill-actions { display: flex; justify-content: center; margin-top: 8px; }
.ls-fill-check { background: #1cb495; color: #fff; border: none; border-radius: 999px; padding: 8px 24px; font-weight: bold; cursor: pointer; }
.ls-fill-check:hover:not(:disabled) { background: #16a385; }
.ls-fill-check:disabled { opacity: 0.6; cursor: default; }

.ls-pic-opt { position: relative; }
.ls-pic-speaker { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: #ecfdf8; color: #1cb495; border: 1px solid #29f1c3; border-radius: 50%; font-size: 16px; line-height: 1; cursor: pointer; }
.ls-pic-speaker:hover { background: #29f1c3; }

/* Letter Sound + Phonics + Sight Word Assessment digital modes (shared) */
.pmode-lsassess .ls-assess-section, .pmode-phonicsassess .ls-assess-section, .pmode-sightassess .ls-assess-section { text-align: center; color: #777; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.pmode-lsassess .ls-assess-letter, .pmode-phonicsassess .ls-assess-letter, .pmode-sightassess .ls-assess-letter { text-align: center; font-size: 8rem; font-weight: bold; line-height: 1; margin: 12px 0 18px; }
.pmode-lsassess .ls-assess-letter .tts-btn, .pmode-phonicsassess .ls-assess-letter .tts-btn, .pmode-sightassess .ls-assess-letter .tts-btn { font-size: 1.6rem; vertical-align: middle; margin-left: 12px; }
.pmode-lsassess .ls-assess-prompt, .pmode-phonicsassess .ls-assess-prompt, .pmode-sightassess .ls-assess-prompt { text-align: center; font-size: 16px; color: #444; margin-bottom: 18px; }
.pmode-lsassess .ls-assess-actions, .pmode-phonicsassess .ls-assess-actions, .pmode-sightassess .ls-assess-actions { display: flex; justify-content: center; gap: 18px; }
.pmode-lsassess .ls-assess-got, .pmode-lsassess .ls-assess-missed,
.pmode-phonicsassess .phonics-assess-got, .pmode-phonicsassess .phonics-assess-missed,
.pmode-sightassess .sight-assess-got, .pmode-sightassess .sight-assess-missed { border: none; border-radius: 999px; padding: 12px 32px; font-weight: bold; font-size: 16px; cursor: pointer; }
.pmode-lsassess .ls-assess-got, .pmode-phonicsassess .phonics-assess-got, .pmode-sightassess .sight-assess-got { background: #1cb495; color: #fff; }
.pmode-lsassess .ls-assess-got:hover, .pmode-phonicsassess .phonics-assess-got:hover, .pmode-sightassess .sight-assess-got:hover { background: #16a385; }
.pmode-lsassess .ls-assess-missed, .pmode-phonicsassess .phonics-assess-missed, .pmode-sightassess .sight-assess-missed { background: #fff; color: #d9534f; border: 2px solid #d9534f; }
.pmode-lsassess .ls-assess-missed:hover, .pmode-phonicsassess .phonics-assess-missed:hover, .pmode-sightassess .sight-assess-missed:hover { background: #fdecec; }
.pmode-lsassess .ls-assess-missed-header { font-weight: bold; margin: 14px 0 6px; }
.pmode-lsassess .ls-assess-missed-list { background: #fafafa; border: 1px solid #eee; border-radius: 8px; padding: 10px 14px; }

.pmode-lsassess .ls-assess-cue, .pmode-phonicsassess .ls-assess-cue, .pmode-sightassess .ls-assess-cue { text-align: center; color: #888; font-size: 14px; margin-top: -8px; margin-bottom: 18px; }
.ls-assess-done .ls-rec-form { margin: 16px 0; padding: 14px; background: #fafafa; border: 1px solid #eee; border-radius: 8px; }
.ls-assess-done .ls-rec-form-header { margin-bottom: 12px; }
.ls-assess-done .ls-rec-name-row { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 10px; }
.ls-assess-done .ls-rec-name-label { font-size: 14px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 8px; margin: 0; }
.ls-assess-done .ls-rec-name, .ls-assess-done .ls-rec-date { border: 1px solid #ccc; border-radius: 4px; padding: 4px 8px; font-size: 14px; }
.ls-assess-done .ls-rec-section-title { font-size: 16px; font-weight: bold; }
.ls-assess-done .ls-rec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ls-assess-done .ls-rec-table th, .ls-assess-done .ls-rec-table td { border: 1px solid #ddd; padding: 6px 10px; text-align: left; }
.ls-assess-done .ls-rec-table th { background: #eee; }
.ls-assess-done .ls-rec-row-missed td { background: #fdecec; }
.ls-assess-done .ls-rec-mark-missed { color: #b71c1c; font-weight: bold; }
.ls-assess-done .ls-rec-mark-got { color: #1cb495; font-weight: bold; }
.ls-assess-done .ls-rec-print { background: #fff; color: #1cb495; border: 2px solid #1cb495; border-radius: 999px; padding: 8px 22px; font-weight: bold; cursor: pointer; }
.ls-assess-done .ls-rec-print:hover { background: #ecfdf8; }

.ls-assess-done .ls-rec-save { background: #1cb495; color: #fff; border: none; border-radius: 999px; padding: 8px 22px; font-weight: bold; cursor: pointer; }
.ls-assess-done .ls-rec-save:hover:not(:disabled) { background: #16a385; }
.ls-assess-done .ls-rec-save:disabled { opacity: 0.7; cursor: default; }
.classroom-saved-assessments table { width: 100%; border-collapse: collapse; font-size: 14px; }
.classroom-saved-assessments th, .classroom-saved-assessments td { border-bottom: 1px solid #eee; padding: 6px 10px; text-align: left; }
.classroom-saved-assessments th { background: #f4f4f4; }
.classroom-saved-assessments .saved-missed { color: #b71c1c; }
.classroom-saved-assessments .saved-delete { background: transparent; border: none; color: #b71c1c; cursor: pointer; }

.ls-rec-save-msg .ls-rec-signup-btn,
.ls-rec-save-msg .ls-rec-login-btn { background: #1cb495; color: #fff; border: none; border-radius: 999px; padding: 4px 16px; font-weight: bold; font-size: 13px; cursor: pointer; margin: 0 2px; }
.ls-rec-save-msg .ls-rec-login-btn { background: #fff; color: #1cb495; border: 2px solid #1cb495; padding: 2px 14px; }

/* ===== Phonics digital practice ===== */
.pmode-phmiss .pmode-prompt, .pmode-phscramble .pmode-prompt, .pmode-phsort .pmode-prompt { text-align: center; font-size: 16px; color: #444; margin-bottom: 14px; }
.ph-miss-image, .ph-scramble-image { text-align: center; margin: 8px 0; }
.ph-miss-image img, .ph-scramble-image img { max-height: 140px; max-width: 60%; object-fit: contain; }
.ph-miss-word { text-align: center; font-size: 3.5rem; font-weight: bold; letter-spacing: 0.12em; margin: 8px 0 16px; font-family: 'Courier New', monospace; }
.ph-miss-word .ph-miss-blank { color: #d9534f; text-decoration: underline; min-width: 0.7em; display: inline-block; }
.ph-miss-word .tts-btn { font-size: 1.4rem; vertical-align: middle; margin-left: 12px; }
.ph-miss-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 480px; margin: 0 auto; }
.ph-miss-opt { background: #fff; border: 2px solid #d8d8d8; border-radius: 12px; padding: 18px 0; font-size: 2rem; font-weight: bold; cursor: pointer; transition: border-color 0.15s, background 0.15s; font-family: 'Courier New', monospace; }
.ph-miss-opt:hover:not(.locked) { border-color: #29f1c3; }
.ph-miss-opt.locked { cursor: default; }
.ph-miss-opt.correct { border-color: #1cb495; background: #ecfdf8; }
.ph-miss-opt.wrong { border-color: #d9534f; background: #fdecec; }

/* Missing Sounds drag-and-drop: a single blank slot in the word that the
   student drags the correct sound tile into. */
.ph-miss-word .ph-miss-slot {
    display: inline-block;
    min-width: 1em;
    padding: 0 0.12em;
    margin: 0 0.05em;
    border: 3px dashed #c0c0c0;
    border-radius: 8px;
    vertical-align: middle;
    color: #1cb495;
}
.ph-miss-word .ph-miss-slot.drag-over { border-color: #1cb495; background: #e8f4ee; }
.ph-miss-word .ph-miss-slot.filled { border-style: solid; }
.ph-miss-word .ph-miss-slot.correct { color: #1cb495; border-color: #1cb495; }
.ph-miss-word .ph-miss-slot.wrong { color: #d9534f; border-color: #d9534f; }
.ph-miss-bank { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 8px auto 0; max-width: 480px; }
.ph-miss-tile {
    background: #fff;
    border: 2px solid #d8d8d8;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 2rem;
    font-weight: bold;
    cursor: grab;
    user-select: none;
    font-family: 'Courier New', monospace;
    min-width: 2.2rem;
    text-align: center;
}
.ph-miss-tile:hover:not(.locked):not(.used) { border-color: #29f1c3; }
.ph-miss-tile:active { cursor: grabbing; }
.ph-miss-tile.dragging { opacity: 0.5; }
.ph-miss-tile.used { visibility: hidden; }
.ph-miss-tile.locked { cursor: default; }

.ph-scramble-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.ph-scramble-check { background: #1cb495; color: #fff; border: none; border-radius: 999px; padding: 8px 24px; font-weight: bold; cursor: pointer; }
.ph-scramble-check:hover:not(:disabled) { background: #16a385; }
.ph-scramble-check:disabled { opacity: 0.6; cursor: default; }

.pmode-phsort .ph-sort-buckets { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 10px 0 16px; }
.pmode-phsort .ph-sort-bucket { flex: 1 1 200px; min-height: 120px; background: #fafafa; border: 2px dashed #29f1c3; border-radius: 10px; padding: 10px; }
.pmode-phsort .ph-sort-bucket.over { background: #ecfdf8; }
.pmode-phsort .ph-sort-bucket-label { text-align: center; font-weight: bold; color: #333; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #ddd; }
.pmode-phsort .ph-sort-bucket-words { display: flex; flex-wrap: wrap; gap: 6px; min-height: 60px; }
.pmode-phsort .ph-sort-tray { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 12px; background: #fff; border: 1px solid #eee; border-radius: 8px; }
.pmode-phsort .ph-sort-word { background: #fff; border: 2px solid #d8d8d8; border-radius: 8px; padding: 8px 14px; font-size: 1.1rem; font-weight: 500; cursor: grab; user-select: none; }
.pmode-phsort .ph-sort-word.dragging { opacity: 0.5; }
.pmode-phsort .ph-sort-word.placed-correct { border-color: #1cb495; background: #ecfdf8; cursor: default; }
.pmode-phsort .ph-sort-word.placed-wrong { border-color: #d9534f; background: #fdecec; cursor: default; }
.pmode-phsort .ph-sort-actions { text-align: center; margin-top: 10px; }
.pmode-phsort .ph-sort-check, .pmode-phsort .ph-sort-next { background: #1cb495; color: #fff; border: none; border-radius: 999px; padding: 8px 22px; font-weight: bold; cursor: pointer; }

.ph-miss-filter { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 14px; flex-wrap: wrap; }
.ph-miss-filter-label { font-size: 13px; color: #666; margin-right: 4px; }
.ph-miss-pos-btn { background: #fff; border: 2px solid #d8d8d8; border-radius: 999px; padding: 4px 14px; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; }
.ph-miss-pos-btn:hover { border-color: #29f1c3; }
.ph-miss-pos-btn.active { background: #1cb495; color: #fff; border-color: #1cb495; }
.pmode-phsort .ph-sort-expected { font-size: 0.75rem; color: #b71c1c; margin-left: 4px; font-weight: 600; }

/* ============================================================
 * Touch + mobile support for the practice activities
 * Paired with assets/drag-drop-touch.js (HTML5-DnD touch polyfill).
 * touch-action:none on the draggable tiles/handles stops the page from
 * scrolling while a drag is in progress, so dragging is reliable on phones.
 * ============================================================ */
.pmatch-def-card,
.spelling-chip, .spelling-tile,
.ls-fill-chip, .ph-miss-tile, .ph-scr-tile, .ph-sort-word {
  touch-action: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
/* The floating clone the polyfill drags under the finger. */
.ddt-drag-image { opacity: 0.7; pointer-events: none; }

@media (max-width: 500px) {
  /* Let the practice viewer use the full screen on phones. */
  .classroom-practice-modal-dialog { max-width: 100vw; width: 100%; border-radius: 0; }
  .classroom-modal-dialog { width: 96%; }
}

@media (max-width: 480px) {
  /* Stack each term/definition pair so neither column gets crushed. */
  .pmatch-row { grid-template-columns: 1fr !important; }
  /* Roomier flashcards. */
  .classroom-fc-card { padding: 1rem 1rem; min-height: 180px; }
  .classroom-fc-text { font-size: 1.25rem; }
}

/* Long options/words must wrap rather than overflow the screen. */
.pmode-opt { word-wrap: break-word; overflow-wrap: anywhere; }
/* Press feedback (mobile has no hover). */
.pmode-opt:active:not(.locked) { background: #f0fdfa; border-color: #29f1c3; }

/* Touch targets: bump the small controls up toward the 44px minimum. */
.classroom-modal-close { padding: 8px; }
.practice-tab { padding: 9px 16px; }
.classroom-fc-prev, .classroom-fc-next { padding: 0.7rem 1.4rem; }

/* ===== Teacher: Arcade Skill Focus (objectives) ===== */
.classroom-obj-group { margin-bottom: 14px; }
.classroom-obj-group-title { font-weight: 700; margin-bottom: 6px; }
.classroom-obj-packs { display: flex; flex-wrap: wrap; gap: 8px; }
.classroom-obj-pack { display: inline-flex; align-items: center; gap: 6px; background: #f6f6fb; border: 1px solid #e6e6f0;
  border-radius: 999px; padding: 7px 14px; margin: 0; font-size: 14px; cursor: pointer; }
.classroom-obj-pack input { margin: 0; }
.classroom-obj-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.classroom-obj-table th, .classroom-obj-table td { border: 1px solid #eee; padding: 8px 10px; text-align: center; }
.classroom-obj-table th:first-child, .classroom-obj-table td:first-child { text-align: left; white-space: nowrap; }
.classroom-obj-table thead th { background: #faf9ff; font-weight: 700; }
.classroom-obj-cell { font-weight: 700; }
.classroom-obj-cell.hi { background: #e7fff5; color: #0c7d56; }
.classroom-obj-cell.mid { background: #fff7e0; color: #b06b00; }
.classroom-obj-cell.lo { background: #ffeef0; color: #c0392b; }
.classroom-obj-cell.na { color: #b8b8c8; }

/* Student dashboard: "Your Goals" cards */
.classroom-goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.classroom-goal-card { display: block; text-decoration: none; color: inherit; background: #f6f6fb;
  border: 1px solid #e6e6f0; border-radius: 16px; padding: 14px; text-align: center; }
.classroom-goal-card:hover { border-color: #29f1c3; }
.classroom-goal-emoji { font-size: 2rem; line-height: 1; }
.classroom-goal-name { font-weight: 700; margin: 4px 0; }
.classroom-goal-meter { height: 7px; border-radius: 999px; background: #e3e3ef; overflow: hidden; }
.classroom-goal-meter span { display: block; height: 100%; background: linear-gradient(90deg, #1ec98b, #ffb300); }
.classroom-goal-pct { font-size: 12px; color: #6b6f93; margin-top: 4px; }
