.study-workspace {display:grid;gap:1.1rem;margin-block:1.2rem 2rem}
.study-panel .study-head {display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.study-panel .study-head h2 {margin:0}
.study-panel h3 {margin:.9rem 0 .4rem}
.study-tag {display:inline-block;padding:.25rem .55rem;background:#e4efdf;color:#264c36;border-radius:.3rem;font-size:.88rem}
.study-panel p,.study-panel dl {margin:.55rem 0}
.study-text,.study-entry dd {white-space:pre-wrap}
.study-disclosure {margin:1rem 0 0;border-top:1px solid var(--line);padding-top:.7rem}
.study-disclosure summary {cursor:pointer;color:var(--green);min-height:44px;padding:.68rem 0;font-weight:650}
.study-form {display:grid;gap:.8rem;margin-block:1rem .5rem;max-width:45rem}
.study-form label,.study-picker {display:grid;gap:.3rem;font-weight:600}
.study-form input:not([type=checkbox]),.study-form textarea,.study-workspace select {width:100%;min-width:0;max-width:100%;padding:.65rem .75rem;border:1px solid #aab9ac;border-radius:.3rem;font:inherit;color:var(--ink);background:var(--paper)}
.study-workspace select {min-height:44px;appearance:none;padding-right:2rem;background-image:linear-gradient(45deg,transparent 50%,#41634c 50%),linear-gradient(135deg,#41634c 50%,transparent 50%);background-position:calc(100% - 17px) center,calc(100% - 12px) center;background-size:5px 5px;background-repeat:no-repeat}
.study-form fieldset {margin:0;padding:0;border:0;min-width:0}.study-form legend {font-weight:650;margin-bottom:.3rem}
.study-form button {width:fit-content;max-width:100%}
.study-columns {display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.study-picker {width:min(100%,32rem)}
.study-form .study-choice {display:flex;align-items:flex-start;min-height:44px;gap:.65rem;padding:.65rem 0;cursor:pointer}
.study-choice input[type=checkbox] {appearance:auto;width:1.25rem;height:1.25rem;min-height:0;flex:none;margin:0;padding:0;accent-color:var(--green)}
.study-choice small {display:block;font-size:.9rem;font-weight:400;color:var(--muted);white-space:pre-wrap}
.study-candidate,.study-entry {border-top:1px solid var(--line);padding:.8rem 0}
.study-candidate>a {margin-left:1.9rem;font-size:.9rem}
.study-list {list-style:none;margin:.8rem 0;padding:0}.study-list li {display:flex;align-items:baseline;gap:.5rem 1rem;justify-content:space-between;padding:.6rem 0;border-bottom:1px solid var(--line)}
.study-list li>span {flex:none;font-size:.9rem;color:var(--muted)}
.study-entry dt {font-weight:650;margin-top:.45rem}
.study-form p.form-message {color:var(--danger)}
.study-save:empty {display:none}
.page-heading.study-head {display:flex;align-items:center;justify-content:space-between;gap:1rem}
.page-heading.study-head .button {background:var(--paper);border-color:var(--line);color:var(--green)}
@media (max-width: 640px) {
  .study-workspace, .study-columns { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .study-columns > label + label, .study-form > label + label { margin-top: 0; }
  .study-candidate > a, .study-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .study-list li { flex-wrap: wrap; align-items: center; gap: .2rem .7rem; }
  .page-heading.study-head { flex-wrap: wrap; }
}
@media (max-width: 640px), (pointer: coarse) {
  .study-form input:not([type=checkbox]), .study-form textarea, .study-workspace select { font-size: 1rem; }
}
