.fen-written-exam{max-width:1180px;margin:24px auto;border:1px solid #d8e3ec;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 14px 40px rgba(30,66,92,.08);color:#17212b}.fen-written-exam>header{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:28px 34px;background:linear-gradient(135deg,#07508d,#0877ce);color:#fff}.fen-written-exam header span{font-size:12px;font-weight:800;letter-spacing:1.4px}.fen-written-exam h2{margin:6px 0 4px;font-size:32px;color:#fff}.fen-written-clock{padding:12px 20px;border:1px solid rgba(255,255,255,.35);border-radius:16px;text-align:center;background:rgba(255,255,255,.12)}.fen-written-clock strong{display:block;font-size:26px}.fen-written-body{display:grid;grid-template-columns:92px 1fr;min-height:620px}.fen-written-body nav{padding:24px 14px;background:#f5f9fc;border-right:1px solid #dbe6ee;display:flex;flex-direction:column;gap:10px}.fen-written-body nav button{width:48px;height:48px;border:1px solid #bdd0df;border-radius:50%;background:#fff;font-weight:800}.fen-written-body nav button.active{background:#0877ce;color:#fff;border-color:#0877ce}.fen-written-body nav button.answered{box-shadow:0 0 0 4px #d9f4e4}.fen-written-body main{padding:34px 42px}.fen-written-meta{display:flex;justify-content:space-between;color:#587086;font-weight:700;margin-bottom:20px}.fen-written-question-text,.fen-written-question-after{font-size:18px;line-height:1.6;white-space:pre-wrap}.fen-written-question-after{font-weight:700;margin-top:18px}.fen-written-exam figure{text-align:center;margin:24px 0}.fen-written-exam figure img{max-width:100%;max-height:520px;object-fit:contain}.fen-written-answer-label{display:block;margin-top:28px;font-weight:800}.fen-written-answer-label textarea{display:block;width:100%;margin-top:10px;border:2px solid #cbdbe7;border-radius:14px;padding:16px;font-size:17px;line-height:1.5;resize:vertical;box-sizing:border-box}.fen-written-save-state{min-height:24px;color:#198754}.fen-written-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin-top:24px}.fen-written-actions button,.fen-written-finish,.fen-written-retry{border:0;border-radius:12px;padding:14px 18px;font-weight:800;cursor:pointer}.fen-written-actions button{background:#eef5fa;color:#07508d}.fen-written-actions [data-action="written-save"]{background:#0877ce;color:#fff}.fen-written-finish{display:block;width:min(420px,100%);margin:22px auto 0;background:#0d5f8d;color:#fff}.fen-written-result{padding:4px 0}.fen-written-score{text-align:center;padding:24px;background:#edf8f2;border-radius:18px;margin-bottom:24px}.fen-written-score strong{display:block;font-size:44px;color:#198754}.fen-written-result article{border:1px solid #d7e3ec;border-radius:16px;padding:20px;margin:16px 0}.fen-written-result article h4{margin:0 0 14px}.fen-written-result article p{white-space:pre-wrap}.fen-written-result .sample{background:#f4f8fb;border-radius:12px;padding:12px}.fen-written-result .self{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px}.fen-written-result .self button{border:1px solid #b9ccdb;background:#fff;border-radius:999px;padding:8px 12px}.fen-written-retry{display:block;margin:24px auto;background:#0877ce;color:#fff}@media(max-width:700px){.fen-written-exam{border-radius:0;margin:0}.fen-written-exam>header{padding:20px}.fen-written-exam h2{font-size:24px}.fen-written-body{grid-template-columns:1fr}.fen-written-body nav{border-right:0;border-bottom:1px solid #dbe6ee;flex-direction:row;overflow:auto;padding:12px}.fen-written-body main{padding:22px 16px}.fen-written-actions{grid-template-columns:1fr 1fr}.fen-written-actions [data-action="written-save"]{grid-column:1/-1;grid-row:1}.fen-written-question-text,.fen-written-question-after{font-size:16px}}
/* 1.8.1 – Açık uçlu puanlama ve görünür öz değerlendirme */
.fen-written-result .self button{color:#17324a!important;font-weight:700!important;min-width:150px;line-height:1.25;opacity:1!important;-webkit-text-fill-color:#17324a!important}
.fen-written-result .self button:hover{border-color:#0877ce;background:#edf6ff;color:#07508d!important;-webkit-text-fill-color:#07508d!important}
.fen-written-result .self button.selected{background:#0877ce!important;border-color:#0877ce!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 0 0 3px rgba(8,119,206,.15)}
.fen-written-criteria{margin-top:14px;padding:14px 16px;border-radius:12px;background:#f7fafc}
.fen-written-criteria ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.fen-written-criteria li{display:flex;gap:9px;align-items:flex-start;line-height:1.45}
.fen-written-criteria li span{font-weight:900;flex:0 0 auto}
.fen-written-criteria li.matched{color:#147a45}.fen-written-criteria li.missing{color:#8a4b17}
@media(max-width:700px){.fen-written-result .self{align-items:stretch}.fen-written-result .self span{width:100%}.fen-written-result .self button{min-width:0;flex:1 1 100%}}
.fen-written-admin-answer-box input[type="number"]{display:block;width:140px;margin-top:8px}
.fen-written-match-summary{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:#eef6ff;color:#17324d}
.fen-written-empty-note{padding:10px 14px;border-radius:10px;background:#fff3f3;color:#9b1c1c;font-weight:700}

/* 1.8.3 – Çok bölümlü açık uçlu sorular */
.fen-written-subparts{display:grid;gap:18px;margin-top:26px}
.fen-written-subpart-card{padding:18px;border:1px solid #cfdee9;border-radius:14px;background:#fbfdff}
.fen-written-subpart-card h4{margin:0 0 12px;font-size:18px;line-height:1.45;color:#172c3d}
.fen-written-subpart-card h4 span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;margin-right:8px;border-radius:50%;background:#e5f3fb;color:#07679b;text-transform:lowercase}
.fen-written-subpart-card .fen-written-answer-label{margin-top:8px}
.fen-written-result-subparts{display:grid;gap:14px;margin-top:16px}
.fen-written-result-part{padding:16px;border:1px solid #d8e5ee;border-radius:12px;background:#fcfeff}
.fen-written-result-part h5{margin:0 0 12px;font-size:17px;color:#07508d}
.fen-written-result article .fen-written-result-part p{margin:8px 0}
@media(max-width:700px){.fen-written-subpart-card{padding:14px}.fen-written-subpart-card h4{font-size:16px}}


/* 2.6.20 – Mobil yazılı soru görünürlüğü ve tema/cache uyumluluğu */
.fen-written-exam [data-role="written-question"]{display:block!important;visibility:visible!important;opacity:1!important;color:#17212b!important;-webkit-text-fill-color:#17212b!important}
.fen-written-exam [data-role="written-question"] .fen-written-meta,
.fen-written-exam [data-role="written-question"] .fen-written-question-text,
.fen-written-exam [data-role="written-question"] .fen-written-question-after,
.fen-written-exam [data-role="written-question"] .fen-written-answer-label,
.fen-written-exam [data-role="written-question"] .fen-written-subpart-card,
.fen-written-exam [data-role="written-question"] .fen-written-subpart-card h4{visibility:visible!important;opacity:1!important;color:#17212b!important;-webkit-text-fill-color:#17212b!important}
.fen-written-exam [data-role="written-question"] textarea{color:#17212b!important;-webkit-text-fill-color:#17212b!important;background:#fff!important;opacity:1!important}
@media(max-width:700px){
 .fen-written-exam [data-role="written-question"]{min-height:0!important;height:auto!important;overflow:visible!important}
 .fen-written-exam [data-role="written-question"] .fen-written-question-text,
 .fen-written-exam [data-role="written-question"] .fen-written-question-after{display:block!important;position:static!important;height:auto!important;max-height:none!important;overflow:visible!important}
 .fen-written-exam [data-role="written-question"] .fen-written-answer-label{display:block!important}
 .fen-written-exam [data-role="written-question"] textarea{display:block!important;width:100%!important;min-height:110px!important;height:auto;max-height:none!important}
}
