/* ExamGuard Study — text-first learning workspace; no exam guard overrides. */
.study-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.study-set-card{border:1px solid #dce7e7;border-radius:14px;padding:18px;background:linear-gradient(145deg,#fff,#f1faf8)}
.study-set-card h3{margin:0 0 10px;overflow-wrap:anywhere}.study-set-card p{font-size:13px}
.study-editor{margin-top:22px}.study-item{border:1px solid #cfdede;border-radius:12px;padding:18px;margin:16px 0;background:#fff}
.study-item legend{color:#17665d;font-weight:750;padding:0 8px}.study-item textarea{min-height:80px}
[data-study-share]{overflow-wrap:anywhere;margin-top:18px}[data-study-share] a{display:block}
[data-study-preview-dialog]{max-width:900px;width:94vw;max-height:88vh;overflow:auto;border:1px solid #cfdede;border-radius:16px;padding:24px}
.study-text{white-space:pre-wrap;overflow-wrap:anywhere}
#study-student{max-width:1000px;margin:auto}#study-student.hidden{display:none!important}
.study-student-heading{display:flex;justify-content:space-between;align-items:start;gap:18px;flex-wrap:wrap}
.study-open{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:20px;border:1px solid #dce7e7;background:white;border-radius:14px}
.study-open label{flex:1;min-width:180px;margin:0}.study-open input{text-transform:uppercase;letter-spacing:.08em}
[data-study-learning]{margin-top:24px}[data-study-learning].hidden{display:none!important}
.study-flashcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;min-height:240px;width:100%;padding:28px;border:2px solid #cce5dd;border-radius:22px;background:linear-gradient(150deg,#fff,#eaf8f4);color:#133f3c;box-shadow:0 10px 35px #195d4e11;transition:background .16s,transform .16s;white-space:normal;text-align:center}
.study-flashcard span{font-size:12px;text-transform:uppercase;letter-spacing:.1em}.study-flashcard strong{font-size:24px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.study-flashcard.is-flipped{background:linear-gradient(150deg,#f0f8ff,#e6f4fc);border-color:#b2d5e5;transform:translateY(-2px)}
#study-student .actions{margin:16px 0}.study-option{display:flex;align-items:start;gap:12px;border:1px solid #dce7e7;background:white;padding:14px;border-radius:10px;margin:10px 0}.study-option input{width:auto;flex:none}
#study-student details{padding:14px;border:1px solid #dce7e7;border-radius:10px;margin:10px 0;background:white}
#teacher-study [data-study-teacher-status],#study-student [data-study-student-status]{min-height:24px;white-space:pre-wrap}
#teacher-study input[type=checkbox]{width:auto}#teacher-study .tablewrap{max-width:100%;overflow:auto}
[data-study-flip]:focus-visible,#study-student button:focus-visible{outline:3px solid #e7b63c;outline-offset:3px}
@media(max-width:760px){.study-library{grid-template-columns:1fr}.study-flashcard{min-height:200px;padding:20px}.study-flashcard strong{font-size:20px}#teacher-study .form-grid,#study-student .form-grid{grid-template-columns:1fr}.study-item{padding:12px}}
@media(prefers-reduced-motion:reduce){.study-flashcard{transition:none;transform:none}}
