/*
 * DC360 Marking: the shared marking bar, comments and badges (marking.js). Light by default; dark inside a
 * dark teacher page (.dc360-theme-dark) or with .dcm-dark (Photo Graphics).
 */
.dcm {
    --dcm-bg: #ffffff;
    --dcm-soft: #f5f6fa;
    --dcm-line: #e1e4ec;
    --dcm-ink: #1f2430;
    --dcm-muted: #6b7280;
    --dcm-accent: #6d28d9;
    --dcm-red: #dc2626;
    --dcm-amber: #f59e0b;
    --dcm-green: #16a34a;
    --dcm-star: #eab308;
    --dcm-check: #0e7490;
    --dcm-resubmit: #c2410c;
    --dcm-resubmitted: #2563eb;
    color: var(--dcm-ink);
    font-size: 14px;
    line-height: 1.45;
}

.dc360-theme-dark .dcm,
.dcm.dcm-dark {
    --dcm-bg: #2b3035;
    --dcm-soft: #343a40;
    --dcm-line: #4b5259;
    --dcm-ink: #e9ecef;
    --dcm-muted: #aab;
    --dcm-accent: #a78bfa;
}

.dcm.is-busy .dcm-bar { opacity: 0.6; pointer-events: none; }

/* ---- the bar ---- */
.dcm-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--dcm-soft);
    border: 1px solid var(--dcm-line);
    border-radius: 8px;
}

.dcm-rag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 8px;
    margin-right: 2px;
    border-right: 1px solid var(--dcm-line);
}

.dcm-dot-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.15s, transform 0.15s;
}

.dcm-dot-btn:hover { opacity: 0.75; }
.dcm-dot-btn.is-on { opacity: 1; transform: scale(1.12); border-color: var(--dcm-ink); }
.dcm-dot-btn.dcm-dot-red { background: var(--dcm-red); }
.dcm-dot-btn.dcm-dot-amber { background: var(--dcm-amber); }
.dcm-dot-btn.dcm-dot-green { background: var(--dcm-green); }

.dcm-clear {
    padding: 0 4px;
    background: none;
    border: 0;
    color: var(--dcm-muted);
    cursor: pointer;
    font-size: 13px;
}

.dcm-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid var(--dcm-line);
    border-radius: 999px;
    background: var(--dcm-bg);
    color: var(--dcm-muted);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.dcm-toggle:hover { color: var(--dcm-ink); text-decoration: none; }
.dcm-toggle-icon { font-size: 15px; line-height: 1; }
.dcm-star.is-on { background: var(--dcm-star); border-color: var(--dcm-star); color: #1f2430; font-weight: 700; }
.dcm-check.is-on { background: var(--dcm-check); border-color: var(--dcm-check); color: #fff; font-weight: 700; }
.dcm-resubmit.is-on { background: var(--dcm-resubmit); border-color: var(--dcm-resubmit); color: #fff; font-weight: 700; }
.dcm-edit { color: var(--dcm-accent); border-color: var(--dcm-accent); }
.dcm-edit[hidden] { display: none; }
/* 1.5.0: what the school's tier does not have (Edit: Classroom Pro; comments: Classroom Plus) stays, greyed out. */
.dcm-edit.is-locked { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }
.dcm-form.is-locked .dcm-textarea { background: #f1f5f9; cursor: not-allowed; }
.dcm-form.is-locked .dcm-textarea::placeholder { color: #64748b; font-style: italic; }
.dcm-form.is-locked .dcm-btn { opacity: 0.5; cursor: not-allowed; }
/* 1.6.0: the sample class seen by a trial teacher: the whole bar is view only. */
.dcm-teacher.is-viewonly .dcm-toggle.is-locked, .dcm-teacher.is-viewonly .dcm-dot-btn.is-locked, .dcm-teacher.is-viewonly .dcm-clear.is-locked { opacity: 0.45; cursor: not-allowed; }

.dcm-info { margin: 8px 2px 0; font-size: 12.5px; color: var(--dcm-muted); }
.dcm-info[hidden] { display: none; }
.dcm-info-star { color: #a16207; }
.dcm-info-check { color: var(--dcm-check); }
.dcm-info-resubmit { color: var(--dcm-resubmit); }
.dcm-info-resubmitted { color: var(--dcm-resubmitted); font-weight: 700; }
.dc360-theme-dark .dcm-info-star, .dcm-dark .dcm-info-star { color: var(--dcm-star); }

.dcm-msg { margin-top: 8px; padding: 6px 10px; border-radius: 6px; background: #fee2e2; color: #991b1b; font-size: 13px; }

/* ---- comments ---- */
.dcm-comments { margin-top: 12px; }

.dcm-comments-head {
    margin: 10px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dcm-accent);
}

.dcm-comment {
    padding: 8px 10px;
    margin-bottom: 8px;
    border: 1px solid var(--dcm-line);
    border-radius: 8px;
    background: var(--dcm-bg);
}

.dcm-comment.is-read { opacity: 0.85; }
.dcm-comment-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dcm-muted); }
.dcm-comment-author { color: var(--dcm-accent); font-weight: 700; }
.dcm-comment-body { margin: 4px 0; white-space: pre-wrap; word-break: break-word; }
.dcm-comment-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.dcm-receipt { color: var(--dcm-muted); margin-right: auto; }
.dcm-receipt.is-read { color: var(--dcm-green); }

.dcm-link { padding: 0; background: none; border: 0; color: var(--dcm-accent); cursor: pointer; font: inherit; font-size: 12px; }
.dcm-link-danger { color: var(--dcm-red); }

.dcm-form { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
/* 1.2.2: 🎤 Speak your comment (speech.js draws the button) beside Add comment / Save. */
.dcm-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.dcm-speak-slot { display: inline-flex; align-items: center; min-width: 0; }
.dcm-speak-slot:empty { display: none; }
.dcm-speak-slot .dc360-speak-note { max-width: 260px; }
.dcm-comment-foot .dcm-speak-slot { margin-right: auto; }

.dcm-textarea {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--dcm-line);
    border-radius: 8px;
    background: var(--dcm-bg);
    color: var(--dcm-ink);
    font: inherit;
    resize: vertical;
}

.dcm-btn {
    padding: 5px 14px;
    border: 1px solid var(--dcm-line);
    border-radius: 6px;
    background: var(--dcm-bg);
    color: var(--dcm-ink);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.dcm-btn-primary { background: var(--dcm-accent); border-color: var(--dcm-accent); color: #fff; font-weight: 700; }
.dcm-btn:disabled { opacity: 0.5; cursor: default; }
.dcm-empty { color: var(--dcm-muted); font-style: italic; padding: 4px 0; }

/* ---- what the student sees ---- */
.dcm-you { display: flex; flex-direction: column; gap: 6px; }
.dcm-you-line { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--dcm-soft); font-weight: 600; }
.dcm-you-icon { font-size: 16px; }
.dcm-you-star { background: #fef3c7; color: #854d0e; }
.dcm-you-rag-red .dcm-you-icon { color: var(--dcm-red); }
.dcm-you-rag-amber .dcm-you-icon { color: var(--dcm-amber); }
.dcm-you-rag-green .dcm-you-icon { color: var(--dcm-green); }
.dcm-you-resubmit { background: #ffedd5; color: #9a3412; }
.dcm-you-resubmitted { background: #dbeafe; color: #1e40af; }

/* ---- badges in lists ---- */
.dcm-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dcm-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.dcm-dot-red { background: #dc2626; }
.dcm-dot-amber { background: #f59e0b; }
.dcm-dot-green { background: #16a34a; }
.dcm-badge { font-size: 13px; line-height: 1; }
.dcm-badge-star { color: #eab308; }
.dcm-badge-check { color: #0e7490; font-weight: 700; }
.dcm-badge-edit { color: #6d28d9; }
.dcm-badge-comments { font-size: 11px; color: #6b7280; }
.dcm-tag { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 10.5px; font-weight: 700; line-height: 1.5; }
.dcm-tag-resubmit { background: #ffedd5; color: #9a3412; }
.dcm-tag-resubmitted { background: #dbeafe; color: #1e40af; }
.dcm-tag-new { background: #2563eb; color: #fff; }
.dcm-resubmit-btn { margin-left: auto; }

/* 1.0.5: a comment about one part of the work (Frame 3, Panel 2), named by the app. */
.dcm-comment-who { display: inline-flex; align-items: center; gap: 6px; }
.dcm-anchor { display: inline-block; padding: 1px 8px; border: 0; border-radius: 999px; background: var(--dcm-accent-soft, #ede9fe); color: var(--dcm-accent, #5b21b6); font: inherit; font-size: 11px; font-weight: 700; }
button.dcm-anchor { cursor: pointer; }
button.dcm-anchor:hover { text-decoration: underline; }

/* 1.0.6: the larger picture shown while pointing at a small picture of a student's work (every app). */
.dcm-zoom { position: fixed; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid #d7dce3; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(17, 24, 39, 0.28); pointer-events: none; box-sizing: border-box;
	--dc360-primary: #2f6fed; --dc360-primary-dark: #1f4fb8; --dc360-danger: #d64545; --dc360-ink: #1f2733; --dc360-muted: #6b7686; --dc360-border: #d7dce3; }
.dcm-zoom[hidden] { display: none; }
.dcm-zoom > img, .dcm-zoom > svg { display: block; width: 100%; height: 100%; object-fit: contain; }

/* 1.0.8: a character peeping round a corner of the larger picture through binoculars. */
.dcm-zoom { overflow: visible; }
.dcm-peek { position: absolute; width: 64px; height: 64px; pointer-events: none; animation: dcm-peek-in 0.35s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)); }
.dcm-peek img, .dcm-peek svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dcm-zoom .dcm-peek img, .dcm-zoom .dcm-peek svg { width: 100%; height: 100%; }
.dcm-peek-tl { top: -26px; left: -26px; --dcm-tilt: -18deg; }
.dcm-peek-tr { top: -26px; right: -26px; --dcm-tilt: 18deg; }
.dcm-peek-bl { bottom: -26px; left: -26px; --dcm-tilt: 18deg; }
.dcm-peek-br { bottom: -26px; right: -26px; --dcm-tilt: -18deg; }
.dcm-peek { transform: rotate(var(--dcm-tilt)); }
@keyframes dcm-peek-in { from { opacity: 0; transform: rotate(var(--dcm-tilt)) scale(0.3); } to { opacity: 1; transform: rotate(var(--dcm-tilt)) scale(1); } }
@media (prefers-reduced-motion: reduce) { .dcm-peek { animation: none; } }
/* 1.0.9: a whole box (grid of frames, code) copied and scaled up; the page's own list class is on the wrapper. */
.dcm-zoom .dcm-zoom-whole { position: relative; display: block !important; flex: none; margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: none !important; overflow: hidden; background: transparent !important; box-shadow: none !important; }
.dcm-zoom .dcm-zoom-whole > * { position: absolute; top: 0; left: 0; margin: 0; }

/* 1.1.1: the work's changes (Edited by / Saved by / Created by), under the marking bar on every teacher page. */
.dcm-history { margin-top: 6px; }
.dcm-history-head { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dcm-muted, #6b7280); margin-bottom: 2px; }
.dcm-history-list { list-style: none; margin: 0; padding: 0; }
.dcm-history-list li { display: flex; align-items: baseline; gap: 6px; padding: 2px 0; font-size: 12px; color: var(--dcm-text, #1f2937); }
.dcm-history-list li[hidden] { display: none; }
.dcm-history-icon { width: 16px; flex: none; text-align: center; }
.dcm-history-who { flex: 1 1 auto; }
.dcm-history-when { flex: none; color: var(--dcm-muted, #6b7280); }
.dcm-history-edited .dcm-history-who { color: var(--dcm-accent, #6d28d9); }
/* 1.1.2: the student list's counts on every teacher page: how many pieces of work, and a red number still to do or
   a green tick when every piece has had a teacher action. */
.dcm-count { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.dcm-count-total { min-width: 18px; padding: 0 6px; border-radius: 999px; background: #eef0fe; color: #4338ca; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.dcm-count-todo { min-width: 18px; padding: 0 6px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.dcm-count-done { width: 18px; height: 18px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
/* 1.1.3: one row of a teacher page's column 2, the same in every app (Draw's layout): picture, title, Created and
   Last Edit, badges, and a green tick in a circle (a teacher did something) or a red circle (not yet). */
.dcm-work-item { display: flex !important; align-items: center; gap: 10px; }
.dcm-work-pic { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 64px; width: 64px; height: 48px; border: 1px solid #e2e5eb; border-radius: 6px; background: #fff; overflow: hidden; }
.dcm-work-pic img, .dcm-work-pic svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.dcm-work-pic.is-empty::after { content: ''; width: 18px; height: 18px; border-radius: 4px; background: #e5e7eb; }
.dcm-work-text { align-items: flex-start; justify-content: flex-start; background: #1f2733; border-color: #1f2733; }
.dcm-work-text-inner { display: block; padding: 3px 4px; color: #e5e7eb; font: 5px/1.3 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; text-align: left; }
.dcm-work-text.is-words { background: #fffdf5; border-color: #ead9a8; }
.dcm-work-text.is-words .dcm-work-text-inner { color: #374151; font-family: inherit; font-size: 6px; }
.dcm-work-lines { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.dcm-work-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcm-work-date { font-size: 11px; font-weight: 400; color: #6b7280; white-space: nowrap; }
.dcm-work-side { display: flex; align-items: center; gap: 6px; flex: none; }
.dcm-work-flag { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.dcm-work-flag.is-done { background: #16a34a; }
.dcm-work-flag.is-todo { background: #dc2626; }
.dcm-zoom .dcm-work-text-inner { font-size: 5px; }
/* 1.1.4: column 2 badges on their own line under the dates. */
.dcm-work-badges { margin-top: 2px; flex-wrap: wrap; }
.dcm-work-date { overflow: hidden; text-overflow: ellipsis; }

/* 1.1.5: column 2 (any list of shared work rows) stays within the screen and scrolls only when it is longer
   (user 2026-10-15). Works on every teacher page because they all use .dcm-work-item rows. */
:is(ul, ol, div):has(> .dcm-work-item) { max-height: max(320px, calc(100vh - 220px)); overflow-y: auto; overscroll-behavior: contain; }
/* 1.1.6: never cut a date short in a narrow column 2; a slightly smaller picture leaves room for it. */
.dcm-work-date { white-space: normal; overflow: visible; text-overflow: clip; }
.dcm-work-item { gap: 8px; }
.dcm-work-pic { flex-basis: 56px; width: 56px; height: 44px; }

/* 1.1.7: column 1 (the student list) also stays within the screen and scrolls only when longer (a class of 30). */
:is(ul, ol, div):has(> [data-dc360-student]) { max-height: max(320px, calc(100vh - 280px)); overflow-y: auto; overscroll-behavior: contain; }

/* 1.1.8: the full list of changes or comments in a pop-up (the bottom part shows only the newest 2). */
.dcm-show-all { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; }
.dcm-pop { position: fixed; inset: 0; z-index: 10060; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17, 24, 39, 0.45); }
.dcm-pop-box { display: flex; flex-direction: column; width: min(640px, 100%); max-height: min(80vh, 720px); border-radius: 12px; background: #fff; box-shadow: 0 18px 48px rgba(17, 24, 39, 0.35); overflow: hidden; }
.dcm-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
.dcm-pop-title { font-weight: 700; font-size: 15px; color: #1f2937; }
.dcm-pop-close { border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: #6b7280; }
.dcm-pop-body { padding: 12px 16px; overflow-y: auto; }
.dcm-pop-body .dcm-history-head { display: none; }
/* Column 3 fits the screen (1.1.8, user 2026-10-15): title at the top, marking at the bottom, and the work in
   between takes the space left and scrolls only when it is bigger. Set by Dc360Marking's fitViewer(). */
.dcm-fit-col { display: flex; flex-direction: column; min-height: 0; overflow: hidden; box-sizing: border-box; }
.dcm-fit-col > * { flex: none; }
.dcm-fit-col > .dcm-fit-view { flex: 1 1 auto; min-height: 0; height: auto; max-height: none; overflow: hidden; }
.dcm-fit-view { display: flex; flex-direction: column; min-height: 0; }
.dcm-fit-view > * { flex: none; }
.dcm-fit-view > .dcm-fit-body { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; overscroll-behavior: contain; }
.dcm-fit-view > .dcm-fit-mark { flex: none !important; height: auto !important; max-height: none !important; overflow: visible !important; }
.dcm-fit-view > .dcm-fit-extra { flex: 0 1 auto; min-height: 60px; max-height: 35%; overflow: auto; }

/* 1.1.9 (user 2026-10-15): the same bottom part on every teacher page, so every preview gets the same room:
   one status line, one Changes line, the newest 2 comments in a fixed box, then the comment form. */
.dcm-teacher .dcm-status { min-height: 18px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcm-teacher .dcm-history { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; min-height: 20px; white-space: nowrap; overflow: hidden; }
.dcm-teacher .dcm-history-head { margin: 0; flex: none; }
.dcm-history-latest { display: flex; align-items: baseline; gap: 6px; flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--dcm-text, #1f2937); overflow: hidden; }
.dcm-history-latest .dcm-history-who { overflow: hidden; text-overflow: ellipsis; }
.dcm-history-latest.dcm-history-edited .dcm-history-who { color: var(--dcm-accent, #6d28d9); }
.dcm-history-none { flex: 1 1 auto; font-size: 12px; font-style: italic; color: var(--dcm-muted, #6b7280); }
.dcm-teacher .dcm-history .dcm-show-all { margin: 0; flex: none; }
.dcm-teacher .dcm-comments-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dcm-teacher .dcm-comments-head .dcm-show-all { margin: 0; text-transform: none; letter-spacing: 0; }
/* 1.3.0: the teacher's comment bank. */
.dcm-teacher .dcm-comments-head .dcm-bank-link { margin-left: auto; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; text-decoration: none; }
.dcm-teacher .dcm-comments-head .dcm-bank-link:hover { text-decoration: underline; }
.dcm-fit-mark .dcm-teacher .dcm-list { height: 150px; overflow-y: auto; overscroll-behavior: contain; }
/* The same top on every teacher page: title, then "Student · Created <date time>", buttons on the right. */
.dcm-fit-view > .dcm-fit-head { flex: none !important; box-sizing: border-box; height: 76px !important; min-height: 0 !important; margin: 0 !important; padding: 12px 16px !important; display: flex !important; align-items: center; justify-content: space-between; gap: 12px; overflow: hidden; }
.dcm-fit-head > :first-child { flex: 1 1 auto; min-width: 0; }
.dcm-fit-head :is(.dc360-teacher-viewer-title, .mm-teacher-viewer-title, .wbt-chapter-title, .fct-title, #tvProgName) { display: block; margin: 0 !important; font-size: 17px !important; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcm-fit-head :is(.dc360-teacher-viewer-meta, .dt-viewer-meta, .gt-viewer-meta, .mm-teacher-viewer-meta, .wbt-chapter-meta, .fct-meta, #tvProgMeta) { display: block; margin: 4px 0 0 !important; font-size: 12.5px !important; line-height: 1.3; color: var(--dcm-muted, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcm-fit-head > :not(:first-child) { flex: none; }
/* Compact comments and form under a fitted column 3, so the work keeps as much room as it can. */
.dcm-fit-mark .dcm-teacher .dcm-comments { margin-top: 6px; }
.dcm-fit-mark .dcm-teacher .dcm-comments-head { margin: 4px 0 4px; }
.dcm-fit-mark .dcm-teacher .dcm-list { height: 104px; }
.dcm-fit-mark .dcm-teacher .dcm-comment { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 4px 10px; margin-bottom: 4px; }
.dcm-fit-mark .dcm-teacher .dcm-comment-head { order: 1; flex: 1 1 auto; }
.dcm-fit-mark .dcm-teacher .dcm-comment-foot { order: 2; flex: none; font-size: 11px; }
.dcm-fit-mark .dcm-teacher .dcm-receipt { margin-right: 0; }
.dcm-fit-mark .dcm-teacher .dcm-comment-body, .dcm-fit-mark .dcm-teacher .dcm-comment > .dcm-textarea { order: 3; flex: 1 1 100%; margin: 1px 0 0; font-size: 13px; }
.dcm-fit-mark .dcm-teacher .dcm-form { flex-direction: row; align-items: stretch; gap: 8px; margin-top: 4px; }
.dcm-fit-mark .dcm-teacher .dcm-form > .dcm-textarea { flex: 1 1 auto; height: 44px; min-height: 44px; resize: none; }
.dcm-fit-mark .dcm-teacher .dcm-form > .dcm-btn { flex: none; align-self: stretch; }
.dcm-fit-mark .dcm-teacher .dcm-form > .dcm-form-actions { flex: none; align-self: stretch; flex-wrap: nowrap; align-items: stretch; max-width: 50%; }
.dcm-fit-mark .dcm-teacher .dcm-form-actions > .dcm-btn { flex: none; }
.dcm-fit-mark .dcm-teacher .dcm-speak-slot .dc360-speak { flex-wrap: nowrap; }
.dcm-fit-mark .dcm-teacher .dcm-speak-slot .dc360-speak-note { max-width: 200px; font-size: 11px; }
/* 1.1.11: the same spacing round every part, so every app's work gets exactly the same room (user 2026-10-15). */
.dcm-fit-view { padding: 0 !important; gap: 0 !important; row-gap: 0 !important; }
.dcm-fit-view > .dcm-fit-head { border-bottom: 1px solid rgba(127, 127, 127, 0.22); }
.dcm-fit-view > .dcm-fit-body { margin: 0 !important; padding: 8px 16px !important; box-sizing: border-box; }
.dcm-fit-view > .dcm-fit-extra { margin: 0 !important; padding: 0 16px 8px !important; box-sizing: border-box; }
.dcm-fit-view > .dcm-fit-mark { margin: 0 !important; padding: 8px 12px 10px !important; border-top: 1px solid rgba(127, 127, 127, 0.22); box-sizing: border-box; }
.dcm-fit-view > .dcm-fit-mark > :not(.dcm) { margin: 0 !important; padding: 0 !important; border: 0 !important; }
/* 1.4.0: the student's short description, one line above the marking bar (the whole of it on hover). */
.dcm-desc { display: flex; gap: 6px; align-items: baseline; min-width: 0; margin: 0 0 6px; font-size: 13px; line-height: 1.35; }
.dcm-desc[hidden] { display: none !important; }
.dcm-desc-head { flex: none; font-weight: 700; }
.dcm-desc-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcm-desc-text.is-empty { font-style: italic; color: var(--dcm-muted, #6b7280); }
/* 1.1.12: Resubmitted, as a tag in the marking bar (no status line). */
.dcm-bar-tag { align-self: center; padding: 3px 10px; border-radius: 999px; background: rgba(37, 99, 235, 0.12); color: var(--dcm-resubmitted, #1d4ed8); font-size: 12px; font-weight: 700; white-space: nowrap; }
.dcm-bar-tag[hidden] { display: none; }
.dcm-teacher .dcm-status { display: none; }
/* 1.1.13 (user 2026-10-15): a slimmer top (two lines of text), the space goes to the work. */
.dcm-fit-view > .dcm-fit-head { height: 56px !important; padding: 6px 16px !important; }
.dcm-fit-head :is(.dc360-teacher-viewer-title, .mm-teacher-viewer-title, .wbt-chapter-title, .fct-title, #tvProgName) { font-size: 16px !important; line-height: 1.25; }
.dcm-fit-head :is(.dc360-teacher-viewer-meta, .dt-viewer-meta, .gt-viewer-meta, .mm-teacher-viewer-meta, .wbt-chapter-meta, .fct-meta, #tvProgMeta) { margin-top: 2px !important; font-size: 12px !important; }
.dcm-fit-head :is(button, a.dc360-teacher-btn, .tv-btn) { max-height: 40px; }
/* 1.1.14 (user 2026-10-15): a slimmer page bar (app name, View Student Work, Class, Refresh, dark mode) on every
   teacher page, the same size everywhere; the room goes to the lists and the work. */
:is(.dc360-teacher-header, .mm-teacher-header, #tv-header) { min-height: 0 !important; padding: 4px 12px !important; margin-bottom: 8px !important; }
:is(.dc360-teacher-header, .mm-teacher-header) :is(h1, h2), #tv-header #tv-title { margin: 0 !important; font-size: 18px !important; line-height: 1.2 !important; }
:is(.dc360-teacher-header, .mm-teacher-header, #tv-header) :is(button, select, .dc360-teacher-btn, .tv-btn) { min-height: 0 !important; padding-top: 4px !important; padding-bottom: 4px !important; }
:is(ul, ol, div):has(> .dcm-work-item) { max-height: max(320px, calc(100vh - 196px)); }
:is(ul, ol, div):has(> [data-dc360-student]) { max-height: max(320px, calc(100vh - 256px)); }
#tv-root { row-gap: 8px !important; }
#tv-header { margin-bottom: 0 !important; line-height: 1.3 !important; }
#tv-header :is(button, select, span) { line-height: 1.3 !important; }

/* Acknowledge Work (1.2.0, user 2026-10-17): in the column 1 and column 2 headings of every teacher page. */
.dcm-ack-box { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 0 auto; flex: none; }
.dcm-ack-btn { padding: 2px 9px; border: 1px solid #16a34a; border-radius: 999px; background: #f0fdf4; color: #15803d; font-weight: 700; font-size: 11px; line-height: 1.6;
    font-family: inherit; text-transform: none; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.dcm-ack-btn:hover, .dcm-ack-btn:focus-visible { background: #16a34a; color: #fff; outline: none; }
.dcm-ack-student { margin-left: auto; }
.dcm-ack-undo { width: 22px; height: 22px; padding: 0; border: 1px solid #cbd5e1; border-radius: 50%; background: #fff; color: #475569;
    font-weight: 700; font-size: 13px; line-height: 1; font-family: inherit; cursor: pointer; }
.dcm-ack-undo:hover, .dcm-ack-undo:focus-visible { background: #f1f5f9; color: #1f2937; outline: none; }
.dcm-ack-box [hidden], .dcm-ack-student[hidden] { display: none !important; }
.dc360-theme-dark .dcm-ack-btn { background: #14532d; color: #bbf7d0; border-color: #22c55e; }
.dc360-theme-dark .dcm-ack-undo { background: #242a34; color: #e6e9ef; border-color: #475163; }