.study-config-page { background:#fff; color:#20283e; padding:24px; min-height:calc(100vh - 120px); }
.study-config-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.study-config-header h1 { font-size:22px; font-weight:600; margin:0; }
.study-config-header>div { display:flex; gap:10px; }
.study-config-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:24px; }
.study-config-main { min-width:0; }
.study-config-tabs { display:flex; border-bottom:1px solid #e5eaf3; margin-bottom:20px; }
.study-config-tabs button { border:0; background:none; color:#737c91; padding:12px 22px; font-size:15px; cursor:pointer; border-bottom:2px solid transparent; }
.study-config-tabs button[aria-selected=true] { border-color:#4c73f8; color:#4266e8; font-weight:600; }
.study-config-filters { display:flex; align-items:end; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.study-config-filters label { display:grid; gap:8px; font-size:13px; flex:1; min-width:135px; }
.study-config-filters input,.study-config-filters select,.study-options-preview select,.study-config-drawer input:not([type=checkbox]):not([type=radio]),.study-config-drawer select { width:100%; background:#fff; border:1px solid #dce3f0; border-radius:4px; padding:9px 10px; min-height:38px; font:inherit; color:#20283e; box-sizing:border-box; }
.study-config-table { width:100%; }
.study-config-table td { padding-top:14px; padding-bottom:14px; }
.study-subject-name { display:flex; align-items:center; gap:12px; white-space:nowrap; }
.study-subject-name i,.study-preview-options i { font-style:normal; width:32px; height:32px; display:grid; place-items:center; background:#f0f5ff; border-radius:6px; color:#4b75e7; flex-shrink:0; }
.study-subject-name img,.study-preview-options img { width:28px; height:28px; object-fit:contain; }
.study-subject-intro { max-width:240px; color:#68738a; font-size:13px; line-height:1.6; }
.study-subject-intro-empty { color:#a0a7b5; }
.study-subject-intro-field small { color:#7b8498; font-size:12px; justify-self:end; }
.study-grade-summary { font-size:13px; line-height:1.8; max-width:280px; }
.study-config-pagination { display:flex; justify-content:space-between; align-items:center; padding:16px 0; color:#737c91; font-size:13px; }
.study-config-pagination>div { display:flex; align-items:center; gap:12px; }
.study-options-preview { border-left:1px solid #e5eaf3; padding-left:24px; }
.study-options-preview h2 { font-size:16px; margin:8px 0 16px; font-weight:600; }
.study-options-preview section { margin-top:24px; }
.study-options-preview h3 { font-size:14px; font-weight:600; display:flex; justify-content:space-between; }
.study-options-preview h3 small { color:#7e8799; font-weight:400; }
.study-preview-options { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.study-preview-options>span { display:flex; align-items:center; gap:6px; font-size:13px; min-width:104px; }
.study-preview-options i { width:28px; height:28px; }
.study-empty { color:#8992a7; padding:24px 0; }
.study-config-drawer { position:fixed; inset:0 0 0 auto; width:min(550px,100vw); height:100dvh; max-height:100dvh; max-width:100vw; padding:0; margin:0; border:0; border-left:1px solid #e2e7f1; color:#20283e; box-shadow:-8px 0 36px #23375420; }
.study-config-drawer::backdrop { background:#17243f50; }
.study-config-drawer form { display:flex; flex-direction:column; height:100%; }
.study-config-drawer header { display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid #e8ecf4; flex-shrink:0; }
.study-config-drawer h2 { font-size:19px; margin:0; }
.study-config-drawer header button { border:0; background:none; color:#8590a3; font-size:28px; width:32px; height:32px; cursor:pointer; }
.study-drawer-body { overflow-y:auto; flex:1; padding:24px; }
.study-config-drawer footer { border-top:1px solid #e8ecf4; display:flex; justify-content:flex-end; gap:12px; padding:18px 24px; flex-shrink:0; }
.study-field { display:grid; gap:10px; margin-bottom:20px; font-size:14px; }
.study-config-drawer fieldset { border:0; padding:0; margin:0 0 22px; }
.study-config-drawer fieldset[hidden] { display:none; }
.study-config-drawer legend { font-size:14px; font-weight:600; margin-bottom:14px; }
.study-icon-picker>label:not(.study-field) { display:inline-flex; align-items:center; gap:4px; margin:0 14px 12px 0; }
.study-icon-picker .study-field { margin-top:8px; }
.study-category-picker label { display:inline-flex; gap:8px; margin-right:28px; }
.study-stage { border-top:1px solid #eff2f7; padding:12px 0; }
.study-stage-title { font-size:13px; font-weight:600; display:flex; gap:8px; margin-bottom:12px; }
.study-stage>div { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.study-stage>div label { font-size:13px; display:flex; gap:6px; }
.study-config-drawer input[type=checkbox],.study-config-drawer input[type=radio] { accent-color:#4c73f8; width:16px; height:16px; }
.study-editor-bottom { border-top:1px solid #e5eaf3; padding-top:20px; display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
.study-editor-bottom>label:first-child { display:grid; gap:10px; }
.study-rule-summary section { border-top:1px solid #e5eaf3; margin-top:24px; padding-top:12px; }
.study-rule-summary h3 { font-size:15px; }
.study-rule-summary p { display:flex; justify-content:space-between; gap:12px; font-size:13px; line-height:1.8; }
.study-rule-summary small { color:#7b8498; text-align:right; }
@media(max-width:1150px) { .study-config-layout { grid-template-columns:minmax(0,1fr); } .study-options-preview { border-left:0; border-top:1px solid #e5eaf3; padding:20px 0 0; } .study-preview-options>span { min-width:120px; } }

.study-preview-group { display:flex; justify-content:space-between; font-size:13px; margin:18px 0 0; color:#64728a; }
.study-preview-group small { font-weight:400; }
.study-preview-options .study-empty { padding:0; margin:0; font-size:13px; }
.study-pending-grade { display:block; margin-top:6px; color:#b7792d; }
