.semester-study { --study-line:var(--border,#bcc6d0); --study-surface:var(--surface-2,#fff); --study-ink:var(--text-primary,#18283d); color:var(--study-ink); }
.semester-study header { margin-bottom:1.5rem; }
.semester-study p { line-height:1.65; }
.semester-study [hidden] { display:none!important; }
.semester-study label { display:flex; flex-direction:column; gap:.45rem; font-weight:600; margin:.8rem 0; }
.semester-study input:not([type=checkbox]),.semester-study textarea,.semester-study select { width:100%; min-width:0; box-sizing:border-box; background:var(--study-surface); color:var(--study-ink); border:1px solid var(--study-line); border-radius:8px; padding:.7rem; font:inherit; }
.semester-study textarea { resize:vertical; line-height:1.5; }
.semester-study input[type=file] { font-size:.9rem; }
.semester-study button { border:1px solid var(--study-line); border-radius:8px; padding:.65rem .9rem; background:var(--study-surface); color:var(--study-ink); font:inherit; font-weight:600; cursor:pointer; }
.semester-study button:hover:not(:disabled) { border-color:var(--accent,#2266a8); box-shadow:0 0 0 1px var(--accent,#2266a8); }
.semester-study button[type=submit] { background:#174e7a; border-color:#174e7a; color:#fff; }
.semester-study button:disabled { opacity:.5; cursor:default; }
.semester-study :is(button,input,textarea,select,summary):focus-visible { outline:3px solid #558fc7; outline-offset:3px; }
.study-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; margin:1rem 0; }
.study-toolbar label { min-width:150px; }
.study-toolbar a { color:inherit; text-decoration:underline; }
.study-note,.semester-study small { font-size:.88rem; font-weight:400; }
.study-badge { display:inline-flex; background:#174e7a; color:#fff; padding:.25rem .65rem; border-radius:20px; font-size:.8rem; font-weight:700; }
.study-activity,.study-admin-list article,.study-editor,.study-report { border:1px solid var(--study-line); border-radius:12px; background:var(--study-surface); padding:1.3rem; margin:1rem 0; min-width:0; }
.study-activity>summary { display:flex; flex-wrap:wrap; align-items:center; gap:.8rem; cursor:pointer; font-weight:700; font-size:1.1rem; }
.study-activity>summary::before { content:'+'; font-size:1.4rem; }
.study-activity[open]>summary::before { content:'−'; }
.study-activity>summary small { margin-left:auto; }
.study-description,.study-prose { white-space:pre-wrap; overflow-wrap:anywhere; }
.study-question { padding:1.5rem 0; border-top:1px solid var(--study-line); }
.study-question h2 { font-size:1.3rem; margin:.5rem 0 1rem; }
.study-question form { border-top:1px dashed var(--study-line); padding-top:1rem; margin-top:1.5rem; }
.semester-study figure { max-width:650px; margin:1.2rem 0; }
.semester-study figure img { display:block; max-width:100%; max-height:480px; height:auto; object-fit:contain; background:#fff; border-radius:8px; padding:10px; box-sizing:border-box; }
.semester-study figcaption { font-size:.85rem; line-height:1.5; margin:.6rem 0; }
.semester-study .study-check { flex-direction:row; align-items:center; gap:.6rem; }
.semester-study .study-check input { width:18px; height:18px; flex-shrink:0; }
.study-form-row { display:grid; grid-template-columns:minmax(0,1fr) 160px; gap:1rem; }
.study-editor fieldset { border:1px solid var(--study-line); border-radius:8px; padding:1rem; min-width:0; margin:1.5rem 0; }
.study-editor legend { font-weight:700; padding:0 .4rem; }
.study-review-note { padding:1rem; border:1px solid #9b722f; border-radius:8px; }
.study-report article { border-top:1px solid var(--study-line); padding:1.5rem 0; }
.semester-study [role=status] { min-height:1.5em; overflow-wrap:anywhere; }
@media(max-width:640px){ .study-form-row { grid-template-columns:1fr; gap:0; } .study-activity,.study-editor,.study-report { padding:.85rem; } .study-activity>summary small { margin-left:0; width:100%; } }
