.training-shell{max-width:1800px;margin:auto;padding:24px}.training-grid{display:grid;grid-template-columns:240px minmax(360px,1fr) 360px;gap:18px;align-items:start}.training-grid .card{margin:0;min-width:0}.catalogue{position:sticky;top:16px}.catalogue #types{max-height:68vh;overflow:auto}.type-choice{display:block;text-align:left;width:100%;padding:12px;margin:7px 0;background:#f6f8fc;border:1px solid #d7dfec;border-radius:8px;cursor:pointer}.type-choice[aria-pressed=true]{border:2px solid #225bd5;background:#edf3ff}.type-choice small{display:block;color:#58657b;margin-top:5px}.prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.turn{border-bottom:1px solid #dae2ef;padding:20px 0}.turn .teacher{background:#eef4ff;padding:14px;border-radius:10px}.turn .assistant{padding:14px 0}.turn h3{font-size:15px;color:#355176}.turn img,#previews img{max-width:160px;max-height:180px;object-fit:contain;margin:8px;border:1px solid #cad5e6;border-radius:8px}.turn img{cursor:zoom-in}.turn textarea{margin:10px 0;min-height:65px}.review-line{color:#355176;font-size:14px}.version{padding:12px 0;border-bottom:1px solid #dae2ef}.version button{margin:8px 0}#notice{position:sticky;top:0;background:#eff5ff;padding:12px;z-index:5;border-radius:8px}#notice.error{background:#fff0ed;color:#a52919}button:disabled{opacity:.5;cursor:wait}.memory textarea{font-size:14px}.katex-display{overflow:auto;padding:8px 0}#messages{max-height:65vh;overflow:auto}details{margin:12px 0}#composer{margin-top:20px}#previews{display:flex;flex-wrap:wrap}@media(max-width:1200px){.training-grid{grid-template-columns:220px minmax(320px,1fr)}.memory{grid-column:2}}@media(max-width:700px){.training-shell{padding:12px}.training-grid{display:block}.training-grid .card{margin-bottom:16px}.catalogue{position:static}.catalogue #types{max-height:200px}.topbar{display:block}#messages{max-height:none}.memory textarea{min-height:350px}.actions{flex-wrap:wrap}}
.training-shell #notice{position:static}
.figure-card{margin:12px 0;padding:12px;border:1px solid #cbd5e1;border-radius:10px;overflow-wrap:anywhere;background:#f8fafc}.figure-card img,.turn .figure-card img{display:block;width:100%;max-width:100%;max-height:350px;object-fit:contain;margin:8px 0;cursor:zoom-in}.figure-card textarea{min-height:75px!important;width:100%}.figure-card input[type=checkbox]{width:auto;margin:8px}.figure-card select{width:100%}.figure-card button{margin:5px 0;white-space:normal}.figure-dialog{max-width:95vw;max-height:92vh;padding:12px;border:1px solid #cbd5e1;border-radius:12px}.figure-dialog img{display:block;max-width:90vw;max-height:80vh;object-fit:contain}.figure-dialog::backdrop{background:#0009}
.note-editor{min-height:380px;max-height:70vh;overflow:auto;border:1px solid #cbd5e1;border-radius:10px;padding:16px;line-height:1.85;font-size:15px;overflow-wrap:anywhere;background:#fff;white-space:pre-wrap;font-weight:400}
.note-editor:focus{outline:3px solid rgba(16,185,129,.16);border-color:#059669}
.note-editor p,.prose p{margin:0 0 12px}.note-editor h1,.note-editor h2,.note-editor h3,.note-editor h4,.note-editor h5,.note-editor h6{font-size:17px;line-height:1.65;margin:16px 0 10px;color:#173c58}
.note-editor ul,.note-editor ol,.prose ul,.prose ol{padding-left:26px;white-space:normal}.note-editor li,.prose li{white-space:pre-wrap}
.note-editor pre,.prose pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f6f8fc;padding:10px}
.note-toolbar{margin:8px 0}.note-toolbar .button{padding:6px 10px;font-size:13px}.note-editor .note-formula{cursor:pointer;border-radius:4px}.note-editor .note-formula:hover,.note-editor .note-formula:focus{background:#e6f4ed;outline:1px solid #55ad86}
.note-formula[data-display=true]{display:block;max-width:100%;overflow-x:auto}.note-formula .katex{white-space:normal}.note-editor .katex-display{margin:8px 0}#draftLabel{margin-bottom:6px;font-weight:700}
.formula-dialog{width:min(560px,calc(100% - 24px));padding:24px;max-height:85vh;overflow:auto}.formula-dialog::backdrop{background:#17263866}.formula-preview{min-height:55px;overflow:auto;margin:12px 0}.formula-dialog .check{margin-top:10px}
.attachment{display:flex;flex-direction:column;align-items:center;border:1px solid #dbe4ee;border-radius:10px;margin:5px;padding:6px;max-width:170px}.attachment small{max-width:100%;overflow-wrap:anywhere;font-size:12px}.attachment .button{font-size:12px;padding:5px 8px;margin-top:5px}#previews .attachment img{max-width:140px;max-height:140px;margin:0 0 5px}
@media(min-width:1450px){.training-grid{grid-template-columns:220px minmax(360px,1fr) minmax(380px,.85fr)}}
@media(max-width:700px){.note-editor{min-height:320px;max-height:65vh}.attachment{max-width:135px}#previews .attachment img{max-width:110px}.formula-dialog{padding:16px}}
.example-card { border: 1px solid #dbe3ec; border-radius: 12px; padding: 12px; margin: 12px 0; min-width: 0; }
.example-card summary { cursor: pointer; font-weight: 600; }
.example-card .note-editor { max-height: 420px; }
#improve { margin-bottom: 10px; }
#reasoningModes { min-width: 0; margin: 16px 0; padding: 14px; border: 1px solid #cbd5e1; border-radius: 10px; }
#reasoningModes label { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 12px; border: 1px solid #dbe3ec; border-radius: 8px; cursor: pointer; }
#reasoningModes label:has(input:checked) { border-color: #059669; background: #eefaf5; }
#reasoningModes input[type=radio] { width: auto; margin: 0; flex: 0 0 auto; }
#modelInfo { overflow-wrap: anywhere; font-size: 13px; }
#promptSupplement { min-height: 140px; max-height: 320px; resize: vertical; }
.example-card > button { color: #b42318; margin: 10px 0; }
#manualTypePanel summary { cursor: pointer; font-weight: 600; }
#manualTypePanel .button { width: 100%; white-space: normal; }
