/* Approved Teacher Work desktop shell. Kept separate from legacy teacher/student presentation. */
.teacher-work {
    --tw-nav-width: 216px;
    --tw-task-width: 264px;
    --tw-accent: #c41b22;
    --tw-ink: #202938;
    --tw-muted: #657185;
    --tw-line: #e0e5eb;
    display: grid;
    grid-template-columns: var(--tw-nav-width) var(--tw-task-width) minmax(480px, 1fr);
    width: 100%; height: 100%; min-width: 1024px; min-height: 0;
    overflow: hidden; position: relative; background: #fff; color: var(--tw-ink);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px; line-height: 1.6;
}
.teacher-work *, .teacher-work *::before, .teacher-work *::after { box-sizing: border-box; }
.teacher-work button, .teacher-work textarea, .teacher-work input { font: inherit; }
.teacher-work button { cursor: pointer; }
.teacher-work button:disabled { cursor: not-allowed; opacity: .56; }
.teacher-work button:focus-visible, .teacher-work textarea:focus-visible, .teacher-work input:focus-visible,
.teacher-work [tabindex="-1"]:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work h1, .teacher-work h2, .teacher-work h3, .teacher-work p { margin: 0; }
.teacher-work h1, .teacher-work h2, .teacher-work-preview-heading h3 {
    font-family: 'Noto Serif SC', Georgia, serif; font-weight: 600; color: #111827;
}
.teacher-work--navigation-collapsed { --tw-nav-width: 68px; }
.teacher-work--tasks-collapsed { --tw-task-width: 48px; }
.teacher-work-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.teacher-work-icon-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 5px;
    background: transparent; color: #647184; font-size: 20px; line-height: 1; }
.teacher-work-icon-button:hover { background: #f2f5f8; color: var(--tw-ink); }
.teacher-work-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 42px; padding: 9px 14px; border: 1px solid var(--tw-line); border-radius: 6px;
    background: #fff; color: var(--tw-ink); font-size: 14px; font-weight: 500; line-height: 1.4; }
.teacher-work-button i { font-size: 18px; }
.teacher-work-button--primary { background: var(--tw-accent); border-color: var(--tw-accent); color: #fff; }
.teacher-work-button--primary:hover { background: #ae0a18; }
.teacher-work-button--outline { color: var(--tw-accent); border-color: var(--tw-accent); }
.teacher-work-button--quiet:hover:not(:disabled) { background: #f5f7fa; }
.teacher-work-muted { color: var(--tw-muted); font-size: 13px; line-height: 1.7; }

.teacher-work-navigation { display: flex; flex-direction: column; align-items: stretch;
    min-height: 0; padding: 16px 10px; border-right: 1px solid var(--tw-line); background: #fff; }
.teacher-work-brand { display: flex; align-items: center; gap: 13px; height: 48px;
    margin: 0 8px 12px; flex-shrink: 0; overflow: hidden; }
.teacher-work-brand-seal { display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 38px; height: 40px; border-radius: 3px; background: #c51b23; color: #fff;
    font-family: 'Noto Serif SC', 'Songti SC', serif; font-size: 29px; line-height: 1; }
.teacher-work-brand-name { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap;
    color: #111827; font-family: 'Noto Serif SC', 'Songti SC', serif; }
.teacher-work-brand-name strong { font-size: 23px; letter-spacing: .08em; }
.teacher-work-brand-name small { margin-top: 4px; font-size: 14px; letter-spacing: .02em; }
.teacher-work-navigation-fold { justify-content: flex-start; gap: 9px; width: 100%; height: auto; min-height: 34px;
    padding: 6px 12px; margin-bottom: 10px; border-color: #e5e9ef; border-radius: 5px; background: #fff;
    color: #647084; font-size: 12px; }
.teacher-work-navigation-fold i { font-size: 19px; }
.teacher-work-navigation-items { width: 100%; display: flex; flex-direction: column; gap: 4px;
    flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.teacher-work-navigation-item { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 14px;
    width: 100%; height: 42px; min-height: 42px; padding: 0 14px; flex-shrink: 0; border: 0; border-radius: 4px;
    background: transparent; color: #354052; text-align: left; line-height: 1; }
.teacher-work-navigation-item i { flex-shrink: 0; font-size: 23px; }
.teacher-work-navigation-label { font-size: 15px; font-weight: 500; white-space: nowrap; }
.teacher-work-navigation-item:hover { background: #f5f7fa; }
.teacher-work-navigation-item--active { color: #bc1820; background: #fdf0f1; box-shadow: inset 3px 0 0 #c41b22; }
.teacher-work-navigation-footer { position: relative; flex-shrink: 0; padding: 12px 4px 0; margin-top: 10px;
    border-top: 1px solid #e4e9f0; }
.teacher-work-user { display: flex; align-items: center; gap: 11px; width: 100%; padding: 4px; border: 0;
    background: transparent; color: #374151; text-align: left; }
.teacher-work-user-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 36px; height: 36px; border: 1px solid var(--tw-line); border-radius: 50%; background: #edf1f5;
    color: #556174; font-size: 14px; font-weight: 600; }
.teacher-work-user-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.teacher-work-user-caret { flex-shrink: 0; font-size: 15px; }
.teacher-work-logout { position: absolute; left: 0; bottom: 100%; z-index: 20; display: flex; align-items: center; gap: 9px;
    width: 188px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--tw-line); border-radius: 6px;
    background: #fff; color: #354052; font-size: 14px; visibility: hidden; opacity: 0; }
.teacher-work-navigation-footer:hover .teacher-work-logout, .teacher-work-navigation-footer:focus-within .teacher-work-logout { visibility: visible; opacity: 1; }
.teacher-work-logout:hover { background: #f1f4f8; }
.teacher-work--navigation-collapsed .teacher-work-navigation { padding-right: 6px; padding-left: 6px; }
.teacher-work--navigation-collapsed .teacher-work-brand { margin-right: 9px; margin-left: 9px; }
.teacher-work--navigation-collapsed .teacher-work-brand-name, .teacher-work--navigation-collapsed .teacher-work-navigation-fold span,
.teacher-work--navigation-collapsed .teacher-work-navigation-label, .teacher-work--navigation-collapsed .teacher-work-user-name,
.teacher-work--navigation-collapsed .teacher-work-user-caret { display: none; }
.teacher-work--navigation-collapsed .teacher-work-navigation-fold, .teacher-work--navigation-collapsed .teacher-work-navigation-item,
.teacher-work--navigation-collapsed .teacher-work-user { justify-content: center; padding-right: 0; padding-left: 0; }

.teacher-work-tasks { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--tw-line); background: #fff; }
.teacher-work-task-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; flex-shrink: 0;
    padding: 28px 18px 18px 22px; }
.teacher-work-task-heading h2 { font-size: 26px; line-height: 1.5; white-space: nowrap; }
.teacher-work--tasks-collapsed .teacher-work-task-heading { padding: 20px 6px; justify-content: center; }
.teacher-work-task-content { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 20px 18px; }
.teacher-work-new-task { width: 100%; min-height: 46px; font-size: 16px; }
.teacher-work-task-groups { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 26px 0; }
.teacher-work-task-group { margin-bottom: 26px; }
.teacher-work-task-group h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.teacher-work-task-group h3 i { font-size: 14px; color: #667386; }
.teacher-work-task-group p { padding: 10px 0 0 25px; font-size: 13px; color: var(--tw-muted); }
.teacher-work-task-group .teacher-work-current-task { color: var(--tw-ink); font-weight: 500; overflow-wrap: anywhere; }
.teacher-work-task-tools { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0;
    padding-top: 16px; border-top: 1px solid var(--tw-line); }
.teacher-work-task-tools button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px;
    padding: 8px 6px; border: 0; border-radius: 5px; background: transparent; color: var(--tw-ink);
    font-family: 'Noto Serif SC', Georgia, serif; font-size: 18px; font-weight: 500; text-align: left; }
.teacher-work-task-tools button:hover { background: #f5f7fa; }
.teacher-work-task-tools button i { font-size: 23px; }
.teacher-work-task-tools button i:last-child { margin-left: auto; font-size: 16px; color: var(--tw-muted); }

.teacher-work-stage { display: grid; grid-template-columns: minmax(480px, 1fr) 380px;
    grid-template-rows: 54px minmax(0, 1fr); min-width: 480px; min-height: 0; background: #f8fafc; }
.teacher-work-breadcrumb { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 0 28px; min-width: 0; border-bottom: 1px solid var(--tw-line); background: #fff;
    color: #626e80; font-size: 13px; line-height: 1.4; }
.teacher-work-breadcrumb strong { color: var(--tw-ink); font-weight: 600; }
.teacher-work-breadcrumb-divider { padding: 0 12px; color: #a1aab8; }
.teacher-work-breadcrumb .teacher-work-button { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.teacher-work-private-label { font-size: 12px; color: var(--tw-muted); }
.teacher-work-conversation { grid-column: 1; grid-row: 2; display: flex; flex-direction: column;
    min-width: 480px; min-height: 0; padding: 0 28px; background: #f8fafc; }
.teacher-work-dialogue { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 28px 0 24px; }
.teacher-work-dialogue h1 { font-size: 38px; line-height: 1.4; letter-spacing: .01em; }
.teacher-work-lesson-meta { margin-top: 7px !important; font-size: 15px; color: #626e80; }
.teacher-work-flow { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none;
    padding: 0; margin: 28px 0 32px; font-size: 15px; color: #626e80; }
.teacher-work-flow i { font-size: 18px; color: #98a2af; }
.teacher-work-availability { padding-left: 18px; border-left: 3px solid var(--tw-accent); }
.teacher-work-availability h2 { margin-bottom: 12px; font-size: 23px; line-height: 1.6; }
.teacher-work-availability p { margin-top: 7px; font-size: 14px; line-height: 1.8; }
.teacher-work-reason-code { font-family: 'Barlow', sans-serif; font-size: 11px !important;
    color: #626e80; letter-spacing: .035em; overflow-wrap: anywhere; }
.teacher-work-availability-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.teacher-work-empty-conversation { padding: 38px 0 12px; color: var(--tw-muted); }
.teacher-work-empty-conversation > i { display: block; margin-bottom: 10px; font-size: 28px; color: #a0aab8; }
.teacher-work-empty-conversation h3 { font-size: 15px; font-weight: 500; }
.teacher-work-empty-conversation p { margin-top: 5px; font-size: 13px; line-height: 1.8; }
.teacher-work-create, .teacher-work-selected-task { margin-top: 26px; padding: 20px;
    border: 1px solid var(--tw-line); border-radius: 8px; background: #fff; }
.teacher-work-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.teacher-work-create h2, .teacher-work-selected-task h2 { font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.teacher-work-create-fields { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.teacher-work-create-fields label, .teacher-work-target-slides { display: flex; flex-direction: column; gap: 6px;
    min-width: 0; font-size: 14px; font-weight: 500; }
.teacher-work-create-fields input, .teacher-work-target-slides input { width: 100%; min-width: 0; min-height: 40px;
    padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: var(--tw-ink); }
.teacher-work-numeric-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.teacher-work-target-slides { max-width: 190px; margin-top: 16px; }
.teacher-work-resources { min-width: 0; margin: 20px 0; padding: 14px; border: 1px solid var(--tw-line); border-radius: 6px; }
.teacher-work-resources legend { padding: 0 5px; color: var(--tw-ink); font-size: 14px; font-weight: 600; }
.teacher-work-resources .teacher-work-button { margin-top: 12px; }
.teacher-work-resource-option { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px;
    color: var(--tw-ink); font-size: 14px; cursor: pointer; }
.teacher-work-resource-option input { flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; accent-color: var(--tw-accent); }
.teacher-work-resource-option span { min-width: 0; overflow-wrap: anywhere; }
.teacher-work-resource-option small { display: block; color: var(--tw-muted); font-size: 12px; }
.teacher-work-task-read-status, .teacher-work-task-read-actions { margin-top: 18px; }
.teacher-work-task-read-actions .teacher-work-button { margin-top: 10px; }
.teacher-work-create > .teacher-work-input-error { margin-bottom: 12px !important; }
.teacher-work-artifact-content > .teacher-work-resources { margin-top: 0; }
.teacher-work-composer { flex-shrink: 0; padding: 14px 14px 10px; background: #fff;
    border: 1px solid #d2dbe5; border-radius: 9px; box-shadow: 0 2px 5px rgba(24, 39, 59, .025); }
.teacher-work-composer textarea { display: block; width: 100%; min-height: 72px; max-height: 180px; resize: vertical;
    padding: 0 2px 8px; border: 0; background: #fff; color: var(--tw-ink); font-size: 15px; line-height: 1.65; }
.teacher-work-composer textarea::placeholder { color: #626e80; }
.teacher-work-composer-controls { display: flex; align-items: center; gap: 9px; padding-top: 4px; }
.teacher-work-composer-controls .teacher-work-button { min-height: 38px; padding: 8px 10px; font-size: 13px; }
.teacher-work-composer-controls .teacher-work-button i { font-size: 17px; }
.teacher-work-send { display: flex; align-items: center; justify-content: center; width: 44px; height: 42px;
    margin-left: auto; padding: 0; border: 0; border-radius: 6px; background: var(--tw-accent); color: #fff; font-size: 23px; }
.teacher-work-composer-note { margin-top: 8px !important; font-size: 11px; color: #626e80; }
.teacher-work-input-error { margin-top: 9px !important; color: #a10b18; font-size: 13px; }
.teacher-work-review-note { flex-shrink: 0; padding: 8px 0 12px; text-align: center; font-size: 11px; color: #626e80; }

.teacher-work-artifacts { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0;
    border-left: 1px solid var(--tw-line); background: #fff; overflow: hidden; }
.teacher-work-artifact-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 25px 22px 18px; flex-shrink: 0; }
.teacher-work-artifact-heading h2 { font-size: 27px; line-height: 1.5; }
.teacher-work-artifact-tabs { display: flex; flex-shrink: 0; gap: 14px; margin: 0 22px; border-bottom: 1px solid var(--tw-line); }
.teacher-work-artifact-tabs button { position: relative; min-height: 44px; padding: 9px 12px 13px;
    border: 0; background: transparent; color: #697587; font-size: 16px; font-weight: 500; }
.teacher-work-artifact-tabs button[aria-selected="true"] { color: var(--tw-accent); }
.teacher-work-artifact-tabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: var(--tw-accent); }
.teacher-work-artifact-content { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 24px 22px; }
.teacher-work-artifact-empty { padding: 24px 0 30px; border-bottom: 1px solid var(--tw-line); }
.teacher-work-artifact-empty > i { display: block; margin-bottom: 12px; color: #98a4b3; font-size: 29px; }
.teacher-work-artifact-empty h3 { font-size: 15px; font-weight: 500; }
.teacher-work-artifact-empty p { margin-top: 8px; font-size: 13px; color: var(--tw-muted); }
.teacher-work-preview { margin-top: 28px; }
.teacher-work-preview-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.teacher-work-preview-heading h3 { font-size: 19px; line-height: 1.6; }
.teacher-work-preview-heading span { color: #626e80; font-size: 11px; }
.teacher-work-preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; min-height: 205px; margin-top: 14px; padding: 24px; border: 1px solid #e0e5eb; border-radius: 3px;
    background: #fff; color: #626e80; text-align: center; font-size: 14px; }
.teacher-work-preview-empty i { font-size: 30px; color: #a5afbd; }
.teacher-work-preview-empty small { font-size: 11px; color: #626e80; }
.teacher-work-artifact-private { flex-shrink: 0; margin: 0 22px !important; padding: 15px 0 20px;
    border-top: 1px solid var(--tw-line); color: #626e80; font-size: 12px; }
.teacher-work--artifacts-collapsed:not(.teacher-work--drawer-mode) .teacher-work-stage { grid-template-columns: minmax(480px, 1fr) 48px; }
.teacher-work--artifacts-collapsed:not(.teacher-work--drawer-mode) .teacher-work-artifact-heading { justify-content: center; padding: 24px 6px; }
.teacher-work--drawer-mode .teacher-work-stage { grid-template-columns: minmax(480px, 1fr); }
.teacher-work-artifacts--drawer { grid-column: auto; grid-row: auto; position: absolute; z-index: 52; top: 54px; right: 0; bottom: 0; width: 420px;
    max-width: calc(100% - 96px); box-shadow: -8px 0 24px rgba(24, 39, 59, .08); }
.teacher-work-backdrop { position: absolute; z-index: 50; inset: 0; background: rgba(28, 39, 56, .18); }
.teacher-work-catalog-backdrop { position: absolute; z-index: 60; inset: 0; display: flex; justify-content: center; align-items: center;
    padding: 56px; background: rgba(28, 39, 56, .18); }
.teacher-work-catalog { display: flex; flex-direction: column; width: 560px; max-height: 100%;
    border: 1px solid var(--tw-line); border-radius: 8px; background: #fff; box-shadow: 0 12px 40px rgba(24, 39, 59, .12); }
.teacher-work-catalog > header { display: flex; justify-content: space-between; align-items: center;
    padding: 22px 26px; border-bottom: 1px solid var(--tw-line); }
.teacher-work-catalog h2 { font-size: 26px; line-height: 1.5; }
.teacher-work-catalog-content { min-height: 0; overflow-y: auto; padding: 32px 26px 28px; }
.teacher-work-catalog-content > i { display: block; margin-bottom: 16px; color: #8994a3; font-size: 30px; }
.teacher-work-catalog-content h3 { font-size: 18px; font-weight: 500; }
.teacher-work-catalog-content p { margin-top: 10px; font-size: 14px; }
.teacher-work-catalog-content .teacher-work-button { margin-top: 24px; }
@media (max-width: 1359px) {
    .teacher-work-stage { grid-template-columns: minmax(480px, 1fr); }
    .teacher-work-artifacts:not(.teacher-work-artifacts--drawer) { display: none; }
    .teacher-work-dialogue h1 { font-size: 36px; }
}
@media (max-width: 1179px) {
    .teacher-work:not(.teacher-work--tasks-collapsed) { --tw-task-width: 248px; }
    .teacher-work-breadcrumb { padding-right: 22px; padding-left: 22px; }
    .teacher-work-conversation { padding-right: 22px; padding-left: 22px; }
}

/* Persisted private chat; desktop four-region layout and explicit requirements save are unchanged. */
.teacher-work-chat-history { margin-top: 26px; }
.teacher-work-chat-history h2 { font-size: 22px; }
.teacher-work-chat-messages { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.teacher-work-chat-message { padding: 15px 18px; border: 1px solid var(--tw-line); border-radius: 8px; background: #fff; }
.teacher-work-chat-message--user { border-left: 3px solid var(--tw-accent); }
.teacher-work-chat-message-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 9px; }
.teacher-work-chat-message-heading strong { font-size: 14px; }
.teacher-work-chat-message-heading time { color: var(--tw-muted); font-size: 11px; overflow-wrap: anywhere; }
.teacher-work-chat-plain-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.teacher-work-composer-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--tw-muted); }
.teacher-work-chat-composer { margin-top: 10px; padding: 14px 18px; border: 1px solid var(--tw-line); border-radius: 8px; background: #fff; }
.teacher-work-chat-composer textarea { display: block; width: 100%; min-height: 48px; max-height: 160px; padding: 0; resize: vertical;
    border: 0; background: transparent; color: var(--tw-ink); font: inherit; font-size: 14px; line-height: 1.7; }
.teacher-work-chat-composer .teacher-work-composer-controls { gap: 8px; flex-wrap: wrap; }
.teacher-work-chat-composer .teacher-work-button { min-height: 34px; padding: 7px 10px; font-size: 12px; }

/* Desktop teaching workspace: persisted AI conversation and materials have independent surfaces. */
.teacher-work-workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    flex-shrink: 0; padding: 23px 0 17px; }
.teacher-work-workspace-heading > div { min-width: 0; }
.teacher-work-workspace-heading h1 { margin: 0; font-size: 27px; line-height: 1.45; overflow-wrap: anywhere; }
.teacher-work-workspace-heading .teacher-work-lesson-meta { margin-top: 5px !important; font-size: 13px; }
.teacher-work-heading-sources { flex-shrink: 0; min-height: 35px; padding: 7px 10px; font-size: 12px; }
.teacher-work-workspace-tabs { display: flex; gap: 24px; flex-shrink: 0; border-bottom: 1px solid var(--tw-line); }
.teacher-work-workspace-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
    padding: 9px 3px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent;
    color: #556174; font: inherit; font-size: 14px; }
.teacher-work-workspace-tabs button[aria-selected="true"] { color: var(--tw-accent); border-bottom-color: var(--tw-accent); font-weight: 600; }
.teacher-work-workspace-tabs button i { font-size: 19px; }
.teacher-work-dialogue { padding-top: 18px; }
.teacher-work-availability--ready { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 3px 14px; padding: 9px 12px; margin-bottom: 12px; border: 1px solid var(--tw-line); border-radius: 5px; background: #fff; }
.teacher-work-availability--ready h2 { display: none; }
.teacher-work-availability--ready p { margin-top: 0; font-size: 11px; line-height: 1.6; }
.teacher-work-availability--ready .teacher-work-availability-actions { margin-top: 0; }
.teacher-work-availability--ready .teacher-work-availability-actions > button:first-child { display: none; }
.teacher-work-availability--ready .teacher-work-button { min-height: 28px; padding: 4px 7px; font-size: 11px; }
.teacher-work-availability--ready .teacher-work-button i { font-size: 14px; }
.teacher-work-scenarios .teacher-work-scenario-note { padding: 5px 0 11px; font-size: 11px; }
.teacher-work-scenario { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 37px; margin-bottom: 4px;
    padding: 8px 9px; border: 1px solid transparent; border-radius: 5px; background: #fff; color: #425169;
    text-align: left; font-size: 13px; }
.teacher-work-scenario:hover:not(:disabled) { border-color: #e4c7cb; background: #fcf3f4; color: var(--tw-accent); }
.teacher-work-scenario i { font-size: 18px; }
.teacher-work-scenario i:last-child { margin-left: auto; font-size: 13px; color: #728095; }
.teacher-work-chat-history { margin-top: 12px; }
.teacher-work-chat-history .teacher-work-section-heading h2 { color: var(--tw-muted); font-family: inherit; font-size: 12px; font-weight: 500; }
.teacher-work-chat-history .teacher-work-section-heading .teacher-work-button { min-height: 28px; padding: 4px 7px; font-size: 11px; }
.teacher-work-chat-messages { gap: 24px; max-width: 920px; margin: 20px auto 0; }
.teacher-work-chat-message { display: flex; align-items: flex-start; gap: 12px; padding: 0; border: 0; background: transparent; }
.teacher-work-message-avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    flex-shrink: 0; border: 1px solid #e5c4c7; border-radius: 8px; background: #fff3f4; color: var(--tw-accent); font-size: 20px; }
.teacher-work-message-avatar--teacher { border-color: #d7dfe8; border-radius: 50%; background: #edf1f5; color: #425169; font-size: 13px; }
.teacher-work-message-content { min-width: 0; flex: 1; padding: 13px 16px; border: 1px solid var(--tw-line); border-radius: 8px; background: #fff; }
.teacher-work-chat-message--user { flex-direction: row-reverse; max-width: 88%; margin-left: auto; border: 0; }
.teacher-work-chat-message--user .teacher-work-message-content { background: #f1f4f8; border-color: #dce3eb; }
.teacher-work-chat-message-heading { justify-content: flex-start; align-items: center; margin-bottom: 8px; }
.teacher-work-chat-message-heading strong { font-size: 12px; }
.teacher-work-chat-message-heading time { font-size: 10px; }
.teacher-work-chat-plain-text { line-height: 1.9; }
.teacher-work-chat-source-action { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--tw-line); }
.teacher-work-chat-source-action .teacher-work-button { min-height: 27px; padding: 4px 7px; font-size: 11px; }
.teacher-work-chat-welcome { max-width: 640px; margin: 52px auto 36px; padding: 16px; text-align: center; }
.teacher-work-chat-welcome > i { display: block; margin-bottom: 14px; color: var(--tw-accent); font-size: 35px; }
.teacher-work-chat-welcome h3 { font-family: 'Noto Serif SC', Georgia, serif; font-size: 26px; font-weight: 600; }
.teacher-work-chat-welcome p { margin: 12px 0 22px; color: var(--tw-muted); font-size: 13px; line-height: 1.9; }
.teacher-work-welcome-scenarios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.teacher-work-welcome-scenarios .teacher-work-button { justify-content: flex-start; padding: 12px 14px; min-height: 45px; }
.teacher-work-chat-composer { flex-shrink: 0; margin: 6px 0 0; padding: 10px 16px 8px; }
.teacher-work-chat-composer .teacher-work-composer-controls > .teacher-work-button--primary { margin-left: auto; }
.teacher-work-chat-composer .teacher-work-chat-send { width: 34px; padding: 7px; }
#teacher-work-materials-panel > .teacher-work-composer { margin-top: 16px; }
#teacher-work-materials-panel > .teacher-work-composer .teacher-work-composer-label { margin-bottom: 0; color: var(--tw-ink); font-size: 15px; }
#teacher-work-materials-panel > .teacher-work-composer textarea { min-height: 90px; }
.teacher-work-curated-skill .teacher-work-button { margin-top: 14px; }
.teacher-work-export-section { margin-top: 18px; border: 1px solid var(--tw-line); border-radius: 6px; background: #fff; }
.teacher-work-export-section > summary { display: flex; align-items: center; gap: 9px; padding: 13px 16px;
    color: var(--tw-ink); cursor: pointer; font-size: 14px; font-weight: 600; }
.teacher-work-export-section > summary:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work-export-section > summary i { color: var(--tw-accent); font-size: 18px; }
.teacher-work-export-section > summary span { margin-left: auto; color: var(--tw-muted); font-size: 11px; font-weight: 400; }
.teacher-work-export-section > .teacher-work-packages { margin-top: 0; border: 0; border-top: 1px solid var(--tw-line); border-radius: 0; }
.teacher-work-source-prerequisite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px;
    margin-top: 14px; padding: 11px 13px; border: 1px solid #e7d4b5; border-radius: 6px; background: #fffaf1; color: #765216; font-size: 12px; }
.teacher-work-source-prerequisite .teacher-work-button { min-height: 31px; padding: 5px 9px; font-size: 12px; }
.teacher-work-create-resources { margin: 18px 0; border: 1px solid var(--tw-line); border-radius: 5px; }
.teacher-work-create-resources > summary { cursor: pointer; padding: 11px 12px; color: var(--tw-ink); font-size: 13px; }
.teacher-work-create-resources > summary span { float: right; color: var(--tw-muted); font-size: 12px; }
.teacher-work-create-resources > summary:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work-create-resources > .teacher-work-resources { margin: 0; border: 0; padding-top: 0; }
.teacher-work-resource-search { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; font-size: 12px; color: var(--tw-muted); }
.teacher-work-resource-search input { display: block; width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px;
    border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: var(--tw-ink); font-size: 13px; }
.teacher-work-resource-options { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }

/* Manual materials uses the existing light desktop Work shell. */
.teacher-work-materials { min-width: 0; margin-top: 26px; padding: 20px; border: 1px solid var(--tw-line);
    border-radius: 8px; background: #fff; color: var(--tw-ink); }
.teacher-work-materials-heading { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.teacher-work-materials-heading h2 { font-size: 22px; line-height: 1.5; }
.teacher-work-materials h3 { font-size: 17px; font-weight: 600; }
.teacher-work-materials h4 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.teacher-work-materials h5 { margin: 0 0 9px; font-size: 14px; font-weight: 600; }
.teacher-work-materials h4 small { margin-left: 8px; color: var(--tw-muted); font-size: 12px; font-weight: 400; }
.teacher-work-materials-status { margin-bottom: 12px; font-size: 13px; }
.teacher-work-materials-warning { margin-top: 14px; padding: 12px; border: 1px solid #e6c7cd;
    border-radius: 6px; background: #fff8f8; color: #862331; font-size: 13px; }
.teacher-work-materials-errors { padding-left: 20px; color: #a10b18; font-size: 13px; }
.teacher-work-materials-saved { margin-top: 18px; padding: 14px; border: 1px solid var(--tw-line); border-radius: 6px; background: #f8fafc; }
.teacher-work-materials-metadata { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 6px 10px; margin: 12px 0; font-size: 12px; }
.teacher-work-materials-metadata dt { color: var(--tw-muted); }
.teacher-work-materials-metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.teacher-work-materials-snapshot { margin: 14px 0; font-size: 13px; }
.teacher-work-materials-snapshot summary { cursor: pointer; color: var(--tw-ink); }
.teacher-work-materials-snapshot summary:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work-materials-snapshot h4 { margin-top: 18px; }
.teacher-work-materials-snapshot p, .teacher-work-materials-snapshot li { white-space: pre-wrap; overflow-wrap: anywhere; }
.teacher-work-materials-snapshot-slide { margin-top: 12px; padding: 12px 0; border-top: 1px solid var(--tw-line); }
.teacher-work-materials-receipt { margin-top: 10px !important; color: var(--tw-muted); font-size: 11px; overflow-wrap: anywhere; }
.teacher-work-materials-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.teacher-work-materials-actions .teacher-work-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.teacher-work-materials-form { min-width: 0; margin: 22px 0 0; padding: 16px; border: 1px solid var(--tw-line); border-radius: 6px; }
.teacher-work-materials-form legend { padding: 0 5px; font-size: 16px; font-weight: 600; }
.teacher-work-materials-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 10px 0; font-size: 13px; font-weight: 500; }
.teacher-work-materials-form input, .teacher-work-materials-form textarea, .teacher-work-materials-form select { width: 100%; min-width: 0;
    min-height: 38px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 5px; background: #fff; color: var(--tw-ink); font: inherit; }
.teacher-work-materials-form textarea { resize: vertical; line-height: 1.65; }
.teacher-work-materials-form select:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work-materials-form:disabled input, .teacher-work-materials-form:disabled textarea, .teacher-work-materials-form:disabled select { background: #f8fafc; color: var(--tw-muted); }
.teacher-work-materials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.teacher-work-materials-array { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--tw-line); }
.teacher-work-materials-item { display: flex; align-items: flex-end; gap: 8px; min-width: 0; margin: 8px 0; }
.teacher-work-materials-item label { flex: 1; margin: 0; }
.teacher-work-materials-item > .teacher-work-button { flex-shrink: 0; min-height: 34px; padding: 6px 9px; font-size: 12px; margin-bottom: 2px; }
.teacher-work-materials-subform, .teacher-work-materials-slide { min-width: 0; margin-top: 12px; padding: 14px;
    border: 1px solid var(--tw-line); border-radius: 6px; background: #fff; }
.teacher-work-materials-slide-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.teacher-work-materials-slide-heading h4, .teacher-work-materials-slide-heading .teacher-work-materials-actions { margin: 0; }
.teacher-work-materials-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.teacher-work-materials-columns > section { min-width: 0; }
.teacher-work-materials-export { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--tw-line); }

/* Compact manual editor disclosures retain the existing desktop layout. */
.teacher-work-materials-technical { margin-top: 12px; color: var(--tw-muted); font-size: 12px; }
.teacher-work-materials-technical summary { cursor: pointer; }
.teacher-work-materials-technical summary:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work-materials-access { margin-top: 12px !important; }
.teacher-work-materials-editor { min-width: 0; }

/* Manual approved exports; compact desktop files/history within the existing Work flow. */
.teacher-work-packages { min-width: 0; margin-top: 18px; padding: 16px 20px; border: 1px solid var(--tw-line);
    border-radius: 8px; background: #fff; color: var(--tw-ink); font-size: 13px; }
.teacher-work-packages-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.teacher-work-packages-heading h2 { font-size: 19px; line-height: 1.5; }
.teacher-work-packages-heading h3 { font-size: 16px; font-weight: 600; }
.teacher-work-packages-heading + p { margin-top: 6px; }
.teacher-work-packages-status { margin-top: 8px; }
.teacher-work-packages-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.teacher-work-packages-actions:empty { display: none; }
.teacher-work-packages .teacher-work-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.teacher-work-packages-note { margin-top: 7px !important; font-size: 12px; overflow-wrap: anywhere; }
.teacher-work-packages-warning { margin-top: 10px; padding: 10px 12px; border: 1px solid #e6c7cd;
    border-radius: 5px; background: #fff8f8; color: #862331; font-size: 13px; overflow-wrap: anywhere; }
.teacher-work-package-history, .teacher-work-packages-technical { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tw-line); }
.teacher-work-packages summary { cursor: pointer; color: var(--tw-ink); font-size: 12px; }
.teacher-work-packages summary:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work-package-versions { margin: 10px 0 0; padding: 0; list-style: none; max-height: 280px; overflow-y: auto; }
.teacher-work-package-versions li + li { margin-top: 5px; }
.teacher-work-package-version { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px;
    width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--tw-line); border-radius: 5px;
    background: #fff; color: var(--tw-ink); text-align: left; }
.teacher-work-package-version:hover:not(:disabled) { background: #f8fafc; }
.teacher-work-package-version--selected .teacher-work-package-version { border-color: #c80b1b; background: #fff8f8; }
.teacher-work-package-version > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.teacher-work-package-version small, .teacher-work-package-version time { color: var(--tw-muted); font-size: 11px; overflow-wrap: anywhere; }
.teacher-work-package-format-summary { display: flex; flex-wrap: wrap; gap: 4px 12px; width: 100%; }
.teacher-work-package-detail { min-width: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tw-line); }
.teacher-work-package-stage { color: var(--tw-muted); font-size: 12px; }
.teacher-work-package-artifacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.teacher-work-package-artifact { min-width: 0; padding: 10px 12px; border: 1px solid var(--tw-line); border-radius: 5px; background: #f8fafc; }
.teacher-work-package-artifact-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.teacher-work-package-artifact-heading span { color: var(--tw-muted); font-size: 11px; }
.teacher-work-package-filename { margin-top: 5px !important; overflow-wrap: anywhere; font-size: 12px; }
.teacher-work-package-artifact .teacher-work-muted { margin-top: 5px; font-size: 11px; }
.teacher-work-package-artifact .teacher-work-button { margin-top: 8px; }
.teacher-work-package-error { margin-top: 6px !important; color: #862331; font-size: 12px; overflow-wrap: anywhere; }
.teacher-work-package-metadata { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 5px 8px; margin: 10px 0; font-size: 11px; }
.teacher-work-package-metadata dt { color: var(--tw-muted); }
.teacher-work-package-metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.teacher-work-package-validation h4 { margin: 10px 0 0; font-size: 12px; }
.teacher-work-package-warnings { margin: 7px 0; padding-left: 18px; color: var(--tw-muted); font-size: 11px; overflow-wrap: anywhere; }
.teacher-work-packages--sidebar { margin-top: 0; padding: 0; border: 0; border-radius: 0; }
.teacher-work-packages--sidebar .teacher-work-packages-heading h2 { font-size: 17px; }
.teacher-work-packages--sidebar .teacher-work-package-artifacts { grid-template-columns: minmax(0, 1fr); }

/* Curated material suggestions remain read-only until explicitly filled into the manual draft. */
.teacher-work-material-proposals { min-width: 0; margin-top: 26px; padding: 18px 20px; border: 1px solid var(--tw-line);
    border-radius: 8px; background: #fff; color: var(--tw-ink); font-size: 13px; }
.teacher-work-proposal-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.teacher-work-proposal-heading h2 { font-size: 21px; line-height: 1.5; }
.teacher-work-proposal-heading h3 { font-size: 17px; font-weight: 600; }
.teacher-work-proposal-heading + p, .teacher-work-proposal-status { margin-top: 8px; }
.teacher-work-proposal-source { margin-top: 12px; padding: 12px; border: 1px solid var(--tw-line); border-radius: 5px; background: #f8fafc; }
.teacher-work-proposal-source details { margin-top: 8px; }
.teacher-work-material-proposals summary { color: var(--tw-ink); cursor: pointer; }
.teacher-work-material-proposals summary:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 3px; }
.teacher-work-proposal-actions, .teacher-work-chat-source-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.teacher-work-proposal-actions .teacher-work-button, .teacher-work-chat-source-action .teacher-work-button { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.teacher-work-chat-source-action .teacher-work-button[aria-pressed="true"] { border-color: var(--tw-accent); color: var(--tw-accent); background: #fff8f8; }
.teacher-work-chat-source-action span { font-size: 12px; }
.teacher-work-proposal-note { margin-top: 10px !important; font-size: 12px; }
.teacher-work-proposal-warning { margin-top: 12px; padding: 10px 12px; border: 1px solid #e6c7cd; border-radius: 5px;
    background: #fff8f8; color: #862331; font-size: 13px; overflow-wrap: anywhere; }
.teacher-work-proposal-preview { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tw-line); }
.teacher-work-proposal-preview > p { margin-top: 8px; }
.teacher-work-proposal-content, .teacher-work-proposal-technical { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tw-line); }
.teacher-work-proposal-content h4 { margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
.teacher-work-proposal-content h5 { margin: 10px 0 5px; font-size: 13px; font-weight: 600; }
.teacher-work-proposal-content ul, .teacher-work-proposal-content ol { margin: 6px 0; padding-left: 22px; }
.teacher-work-proposal-content li + li { margin-top: 5px; }
.teacher-work-proposal-content p, .teacher-work-proposal-content li, .teacher-work-proposal-source details p,
.teacher-work-proposal-metadata dd { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.teacher-work-proposal-metadata { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 6px 10px; margin: 10px 0; font-size: 12px; }
.teacher-work-proposal-metadata dt { color: var(--tw-muted); }
.teacher-work-proposal-metadata dd { min-width: 0; margin: 0; }
.teacher-work-proposal-slide { min-width: 0; padding: 10px 0; border-top: 1px solid var(--tw-line); }
.teacher-work-proposal-slide:first-of-type { border-top: 0; }
.teacher-work-proposal-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.teacher-work-proposal-columns > section { min-width: 0; }
.teacher-work-proposal-technical { color: var(--tw-muted); font-size: 12px; }
.teacher-work-curated-skill { margin-top: 14px; padding: 14px; border: 1px solid var(--tw-line); border-radius: 6px; background: #f8fafc; }
.teacher-work-curated-skill strong { font-size: 15px; }
.teacher-work-proposal-history { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--tw-line); }
.teacher-work-proposal-history > .teacher-work-button { min-height: 34px; margin-top: 8px; padding: 6px 10px; font-size: 12px; }
.teacher-work-proposal-history > p { margin-top: 8px; font-size: 12px; }
.teacher-work-proposal-runs { max-height: 280px; overflow-y: auto; margin: 10px 0 0; padding: 0; list-style: none; }
.teacher-work-proposal-runs li + li { margin-top: 6px; }
.teacher-work-proposal-run { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; padding: 10px 12px;
    border: 1px solid var(--tw-line); border-radius: 5px; background: #fff; color: var(--tw-ink); text-align: left; }
.teacher-work-proposal-run[aria-pressed="true"] { border-color: var(--tw-accent); background: #fff8f8; }
.teacher-work-proposal-run strong { font-size: 13px; }
.teacher-work-proposal-run span { color: var(--tw-muted); font-size: 11px; overflow-wrap: anywhere; }
