/* Teacher workflow — quiet ink, editorial type, deliberate evidence. */
.twf-workspace { --twf-ink: #f0eadd; --twf-muted: #a4b3b6; --twf-gold: #e8bc75; --twf-line: rgba(195, 206, 207, .14); color: var(--twf-ink); padding-top: 12px; }
.twf-workspace h1, .twf-workspace h2, .twf-workspace h3 { color: var(--twf-ink); margin: 0; font-weight: 600; }
.twf-workspace h1 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.4; margin-top: 9px; letter-spacing: .03em; }
.twf-workspace h2 { font-size: 22px; line-height: 1.5; }
.twf-workspace h3 { font-size: 16px; line-height: 1.6; }
.twf-workspace p { line-height: 1.85; overflow-wrap: anywhere; }
.twf-workspace button:focus-visible, .twf-workspace input:focus-visible, .twf-workspace textarea:focus-visible, .twf-workspace select:focus-visible, .twf-workspace summary:focus-visible { outline: 2px solid var(--twf-gold); outline-offset: 4px; }
.twf-workspace button:disabled { cursor: not-allowed; opacity: .45; }
.twf-header { padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.twf-header p, .twf-heading p { margin: 8px 0 0; color: var(--twf-muted); font-size: 13px; }
.twf-header > button { flex: none; }
.twf-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; border: 1px solid var(--twf-line); border-radius: 18px; overflow: hidden; background: rgba(16, 29, 37, .68); }
.twf-metrics > div { padding: 19px 24px; border-right: 1px solid var(--twf-line); display: flex; align-items: baseline; gap: 14px; }
.twf-metrics > div:last-child { border-right: 0; }
.twf-metrics b { color: var(--twf-gold); font: 500 31px Georgia, serif; }
.twf-metrics span { font-size: 12px; color: var(--twf-muted); }
.twf-review-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 18px; }
.twf-review-list { padding: 20px; position: sticky; top: 16px; }
.twf-review-detail { padding: 28px; min-height: 580px; min-width: 0; }
.twf-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0 0 18px; }
.twf-field > span { color: #d3dce0; font-size: 12px; font-weight: 500; letter-spacing: .03em; }
.twf-field input, .twf-field textarea, .twf-field select, .twf-search { width: 100%; color: #f0eadd; font-size: 14px; line-height: 1.7; border: 1px solid rgba(184, 199, 205, .23); border-radius: 10px; background: rgba(7, 17, 24, .62); padding: 11px 13px; min-height: 44px; box-sizing: border-box; }
.twf-field input::placeholder, .twf-field textarea::placeholder, .twf-search::placeholder { color: #8fa1a8; }
.twf-field textarea { resize: vertical; }
.twf-field select option { background: #15232b; color: #f0eadd; }
.twf-field small { color: #96a9af; font-size: 11px; line-height: 1.8; }
.twf-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border: 1px solid var(--twf-line); border-radius: 10px; background: rgba(6, 17, 24, .5); }
.twf-tabs button { flex: 1; min-width: max-content; padding: 9px 9px; border: 1px solid transparent; border-radius: 7px; color: var(--twf-muted); font-size: 11px; transition: background .16s ease; }
.twf-tabs button.is-active { color: #f0d29d; border-color: rgba(232, 188, 117, .24); background: rgba(232, 188, 117, .11); }
.twf-entry-list { max-height: 68vh; overflow: auto; margin-top: 14px; padding: 2px; }
.twf-entry { width: 100%; display: block; padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--twf-line); border-radius: 9px; }
.twf-entry + .twf-entry { margin-top: 6px; }
.twf-entry.is-selected { background: rgba(232, 188, 117, .08); box-shadow: inset 3px 0 0 var(--twf-gold); }
.twf-entry:hover { background: rgba(202, 216, 221, .055); }
.twf-entry > div { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.twf-entry strong { font-size: 14px; }
.twf-entry p { font-size: 11px; margin: 8px 0 3px; color: #b4c0c3; }
.twf-entry small { font-size: 10px; line-height: 1.8; color: #859da5; display: block; }
.twf-status { display: inline-flex; flex: none; align-items: center; font-size: 10px; padding: 4px 8px; line-height: 1.6; border: 1px solid rgba(159, 184, 195, .25); border-radius: 5px; color: #a9bec7; background: rgba(120, 146, 159, .09); }
.twf-status.pending { color: #f0cc8f; border-color: rgba(232, 188, 117, .3); background: rgba(232, 188, 117, .08); }
.twf-status.approved { color: #a2dbce; border-color: rgba(113, 198, 176, .28); background: rgba(113, 198, 176, .08); }
.twf-status.returned { color: #edba94; border-color: rgba(230, 151, 109, .28); background: rgba(230, 151, 109, .08); }
.twf-heading { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.twf-heading .exhibit-eyebrow { font-size: 9px; }
.twf-heading h2 { margin-top: 7px; }
.twf-read-block { padding: 21px 0; border-top: 1px solid var(--twf-line); }
.twf-read-block h3 { margin-bottom: 10px; }
.twf-read-block h3 small { display: block; color: #94a9b0; font-size: 11px; font-weight: 400; margin-top: 5px; }
.twf-read-block > p, .twf-ai-result p { white-space: pre-wrap; color: #c4d0d3; font-size: 14px; margin: 0; }
.twf-muted { color: var(--twf-muted); font-size: 12px; }
.twf-note, .twf-error { font-size: 12px; line-height: 1.9; padding: 14px 17px; border-radius: 10px; margin: 14px 0; overflow-wrap: anywhere; }
.twf-note { background: rgba(232, 188, 117, .07); color: #d6c7ac; border: 1px solid rgba(232, 188, 117, .16); }
.twf-error { color: #ffd0b9; background: rgba(205, 106, 72, .12); border: 1px solid rgba(227, 136, 99, .34); }
.twf-error ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.twf-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 14px 0; }
.twf-media-grid .media-thumb { width: 100%; aspect-ratio: 4/3; }
.twf-warning-text { display: block; color: #eac297; margin-top: 5px; font-size: 10px; }
.twf-media-preview img, .twf-media-preview video { max-width: 100%; max-height: 72vh; display: block; margin: auto; object-fit: contain; }
.twf-media-preview audio { width: 100%; }
.twf-media-preview .twf-heading h3 { overflow-wrap: anywhere; }
.twf-conversation { margin: 20px 0; border: 1px solid var(--twf-line); border-radius: 12px; overflow: hidden; }
.twf-conversation summary { padding: 14px 17px; color: #d6c5a7; cursor: pointer; font-size: 13px; }
.twf-conversation > div { padding: 4px 15px 15px; max-height: 430px; overflow: auto; }
.twf-conversation article { padding: 13px; border-radius: 9px; background: rgba(203, 218, 223, .035); margin: 10px 0; }
.twf-conversation article.is-student { border-left: 2px solid #94c0b4; }
.twf-conversation b { font-size: 12px; color: #e1d1b3; }
.twf-conversation small { color: #839ba3; display: inline-block; margin-left: 10px; font-size: 10px; }
.twf-conversation p { white-space: pre-wrap; font-size: 12px; color: #bbcacf; margin: 8px 0 0; }
.twf-rule-card { border: 1px solid var(--twf-line); border-radius: 12px; background: rgba(189, 204, 212, .025); padding: 18px; margin-top: 20px; }
.twf-rule-card h3 span { display: inline-block; font-size: 10px; color: #a5afb1; font-weight: 400; margin-left: 8px; }
.twf-rule-card p { font-size: 11px; color: #93a6ad; margin: 9px 0 15px; }
.twf-rule-scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.twf-rule-scores > div { display: flex; flex-direction: column; gap: 8px; }
.twf-rule-scores span { font-size: 10px; color: #b8c4c8; }
.twf-rule-scores b { font-size: 18px; font-weight: 500; color: #d7d0c0; }
.twf-rule-scores small { font-size: 10px; color: #8ca0a8; }
.twf-ai-review { margin: 22px 0; padding: 20px; background: linear-gradient(130deg, rgba(102, 173, 156, .07), rgba(110, 144, 168, .035)); border: 1px solid rgba(112, 178, 162, .18); border-radius: 12px; }
.twf-ai-review .twf-heading { margin: 0; }
.twf-ai-review h3 { font-size: 14px; }
.twf-ai-review .twf-heading p { font-size: 11px; }
.twf-ai-result { border-top: 1px solid var(--twf-line); padding-top: 17px; margin-top: 17px; }
.twf-ai-result > small { color: #8fa9ad; font-size: 10px; margin-left: 10px; }
.twf-ai-result p { margin: 14px 0; font-size: 13px; }
.twf-score-editor { margin: 25px 0 0; padding-top: 24px; border-top: 1px solid var(--twf-line); }
.twf-score-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.twf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.twf-workspace .sand-button { font-size: 12px; padding: 10px 14px; line-height: 1.5; min-height: 40px; }
.twf-text-button { font-size: 11px; color: #d7b37e; padding: 9px 4px; min-height: 40px; text-underline-offset: 4px; }
.twf-text-button:hover { text-decoration: underline; }
.twf-danger { color: #ce9e87; }
.twf-empty { padding: 25px 10px; text-align: center; color: #91a9b3; }
.twf-empty h3 { font-size: 14px; margin: 10px 0; }
.twf-empty p { font-size: 12px; line-height: 1.9; }
.twf-empty-large { padding: 110px 20px; }
.twf-empty-large .exhibition-icon { color: #c5a778; margin-bottom: 22px; }
.twf-empty-large p { max-width: 300px; margin: 14px auto; }
.twf-source-panel, .twf-work-editor, .twf-work-library { padding: 25px 28px; margin: 18px 0; }
.twf-source-row { display: flex; align-items: end; gap: 14px; }
.twf-source-row .twf-field { flex: 1; margin-bottom: 0; }
.twf-source-row .sand-button { flex: none; min-height: 47px; }
.twf-material-checklist { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; border: 1px solid rgba(232, 188, 117, .19); border-radius: 16px; padding: 25px 28px; background: rgba(188, 155, 101, .045); margin: 20px 0; }
.twf-material-checklist h3 { margin-top: 12px; }
.twf-material-checklist p { color: #a9b4b5; font-size: 12px; margin: 8px 0 0; }
.twf-material-checklist ol { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 25px; }
.twf-material-checklist li { display: flex; flex-direction: column; gap: 8px; }
.twf-material-checklist li b { color: #d1ba93; font-size: 12px; font-weight: 500; }
.twf-material-checklist li span { font-size: 11px; line-height: 1.8; color: #8fa6ad; }
.twf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.twf-process-editor { border-top: 1px solid var(--twf-line); padding-top: 22px; margin: 10px 0 3px; }
.twf-process-editor > p { margin: 9px 0 20px; }
.twf-process-editor .twf-field > span { color: #c6af89; }
.twf-consent { display: flex; align-items: flex-start; gap: 13px; border: 1px solid rgba(123, 189, 169, .24); padding: 18px; background: rgba(123, 189, 169, .05); border-radius: 12px; cursor: pointer; }
.twf-consent input { flex: none; width: 20px; height: 20px; accent-color: #d1b47f; margin-top: 1px; }
.twf-consent b { font-size: 12px; font-weight: 500; color: #c5ddd5; line-height: 1.8; display: block; }
.twf-consent small { color: #8eaaa4; font-size: 11px; line-height: 1.9; display: block; margin-top: 6px; }
.twf-editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-top: 22px; border-top: 1px solid var(--twf-line); padding-top: 22px; }
.twf-editor-foot > span { color: #a2b1b4; font-size: 11px; }
.twf-library-tools { display: flex; align-items: center; gap: 18px; justify-content: space-between; margin: 20px 0; }
.twf-library-tools .twf-tabs { min-width: 350px; }
.twf-search { max-width: 330px; font-size: 12px; }
.twf-work-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.twf-work-card { border: 1px solid var(--twf-line); border-radius: 13px; padding: 20px; background: rgba(5, 18, 26, .27); min-width: 0; }
.twf-work-card .twf-heading { margin-bottom: 15px; gap: 8px; }
.twf-work-card h3 { font-size: 16px; overflow-wrap: anywhere; }
.twf-work-card > small { display: block; color: #95a9b0; font-size: 10px; margin: 8px 0 12px; }
.twf-work-card > p { font-size: 12px; color: #afc0c7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 64px; margin-bottom: 14px; }
.twf-card-evidence { display: flex; gap: 9px; flex-wrap: wrap; color: #afaa91; font-size: 10px; padding-bottom: 15px; border-bottom: 1px solid var(--twf-line); margin-bottom: 10px; }
.twf-work-card .sand-button { padding: 8px 10px; font-size: 11px; }
@media (max-width: 1100px) { .twf-review-grid { grid-template-columns: 270px minmax(0, 1fr); } .twf-work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .twf-metrics > div { padding: 16px; gap: 9px; } .twf-score-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .twf-header { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px; } .twf-review-grid { grid-template-columns: 1fr; } .twf-review-list { position: static; padding: 18px; } .twf-entry-list { max-height: 260px; } .twf-review-detail { padding: 23px; } .twf-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .twf-metrics > div:nth-child(2) { border-right: 0; } .twf-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--twf-line); } .twf-material-checklist { grid-template-columns: 1fr; gap: 22px; } .twf-library-tools { flex-direction: column; align-items: stretch; } .twf-library-tools .twf-tabs { min-width: 0; } .twf-search { max-width: none; } }
@media (max-width: 560px) { .twf-header, .twf-source-panel, .twf-work-editor, .twf-work-library { padding: 20px 17px; } .twf-workspace h2 { font-size: 19px; } .twf-review-detail { padding: 20px 17px; } .twf-metrics > div { padding: 16px 12px; flex-direction: column; gap: 7px; } .twf-metrics b { font-size: 28px; } .twf-metrics span { font-size: 11px; } .twf-form-grid, .twf-work-cards { grid-template-columns: 1fr; } .twf-source-row { flex-direction: column; align-items: stretch; gap: 12px; } .twf-material-checklist { padding: 20px 17px; } .twf-material-checklist ol { gap: 17px; } .twf-ai-review { padding: 16px 12px; } .twf-rule-card { padding: 16px 12px; } .twf-rule-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .twf-heading { gap: 13px; } .twf-score-fields { gap: 10px; } .twf-field > span { font-size: 11px; } .twf-field input, .twf-field textarea, .twf-field select, .twf-search { font-size: 16px; } .twf-entry-list { max-height: 230px; } .twf-editor-foot { align-items: stretch; flex-direction: column; } .twf-editor-foot .twf-actions { display: grid; grid-template-columns: 1fr 1fr; } .twf-consent { padding: 14px 12px; } }
@media (prefers-reduced-motion: reduce) { .twf-workspace *, .twf-workspace *::before, .twf-workspace *::after { scroll-behavior: auto !important; transition: none !important; } }
