@font-face {
    font-family: 'TemelYazi';
    src: url('../../fontlar/temelyazi.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@page {
    size: A4 portrait;
    margin: 0;
}

* {
    box-sizing: border-box;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

:root {
    --theme-main: #2563eb;
    --theme-dark: #1e40af;
    --theme-light: #eff6ff;
    --theme-border: #bfdbfe;
    --ink: #0f172a;
    --muted: #475569;
}

body.theme-turkce {
    --theme-main: #e11d48;
    --theme-dark: #9f1239;
    --theme-light: #fff1f2;
    --theme-border: #fecdd3;
}

body.theme-matematik {
    --theme-main: #2563eb;
    --theme-dark: #1e40af;
    --theme-light: #eff6ff;
    --theme-border: #bfdbfe;
}

body.theme-fen {
    --theme-main: #059669;
    --theme-dark: #065f46;
    --theme-light: #ecfdf5;
    --theme-border: #a7f3d0;
}

body.theme-hayat {
    --theme-main: #d97706;
    --theme-dark: #92400e;
    --theme-light: #fffbeb;
    --theme-border: #fde68a;
}

body.theme-sosyal {
    --theme-main: #7c3aed;
    --theme-dark: #5b21b6;
    --theme-light: #f5f3ff;
    --theme-border: #ddd6fe;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'TemelYazi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background-color: #e2e8f0;
    -webkit-tap-highlight-color: transparent;
}

/* ==================== ÜST KONTROL BARI (SADECE EKRANDA) ==================== */
.top-toolbar,
.sd-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #0f172a;
    color: #ffffff;
    border-bottom: 3px solid var(--theme-main);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 10px 16px;
}

.toolbar-inner,
.sd-toolbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.toolbar-left,
.sd-toolbar-left,
.sd-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-btn,
.sd-btn,
.sd-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    font-family: inherit;
    white-space: nowrap;
}

.toolbar-btn:active,
.sd-btn:active,
.sd-back-btn:active {
    transform: scale(0.96);
}

.btn-back,
.sd-back-btn {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}
.btn-back:hover,
.sd-back-btn:hover {
    background: #334155;
    color: #ffffff;
}

.btn-rubric {
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}
.btn-rubric:hover {
    filter: brightness(1.1);
}

.btn-key,
.sd-btn-key {
    background: #1e293b;
    color: #fbbf24;
    border-color: #f59e0b;
}
.btn-key.active,
.sd-btn-key.active {
    background: #059669;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.btn-reset,
.sd-btn-outline {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}
.btn-reset:hover,
.sd-btn-outline:hover {
    background: #be123c;
    color: #ffffff;
    border-color: #e11d48;
}

.btn-print,
.sd-btn-print {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 14px;
    padding: 8px 16px;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
}
.btn-print:hover,
.sd-btn-print:hover {
    filter: brightness(1.08);
}

.quick-nav-select,
.sd-select {
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #475569;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.score-pill,
.sd-score-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fde68a;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==================== EKRAN ÖNİZLEME SAHNESİ ==================== */
.workspace-stage,
.sd-workspace {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 12px 40px 12px;
    gap: 28px;
}

/* ==================== A4 KAĞIT YAPISI (210mm x 297mm) ==================== */
.sheet,
.a4-page {
    width: 210mm;
    height: 297mm;
    max-height: 297mm;
    background: #ffffff;
    padding: 7mm 10mm 6mm 10mm;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.08);
    border-radius: 6px;
    page-break-after: always;
    break-after: page;
}

.sheet:last-of-type,
.a4-page:last-of-type {
    page-break-after: auto;
    break-after: auto;
}

.page-frame {
    display: none;
}

/* ==================== SADELEŞTİRME (FAZLA BİLGİ GİZLEME) ==================== */
.sheet-sub-title,
.ws-subtitle,
.ws-outcomes-bar,
.outcome-tag,
.seo-guide-container {
    display: none !important;
}

/* ==================== A4 ÜST BAŞLIK (2. SINIF & 3-4. SINIF ORTAK) ==================== */
.sheet-header,
.ws-header {
    border-bottom: 2.5px solid var(--theme-main);
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.header-top-strip,
.ws-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grade-pill,
.ws-Curriculum-pill {
    display: inline-block;
    background: var(--theme-main);
    color: #ffffff;
    font-weight: 900;
    font-size: 10pt;
    padding: 3px 10px;
    border-radius: 7px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ws-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.ws-eyebrow > span:first-child {
    display: none;
}

.sheet-main-title,
.ws-title-block h1 {
    margin: 0;
    font-size: 13.5pt;
    font-weight: 900;
    color: var(--theme-dark);
    line-height: 1.15;
}

.page-indicator {
    background: var(--theme-light);
    border: 1.5px solid var(--theme-border);
    color: var(--theme-dark);
    font-weight: 800;
    font-size: 9.5pt;
    padding: 3px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

/* 2. Sınıf Öğrenci Bilgi Barı */
.student-info-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1.1fr;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 9.5pt;
    font-weight: 800;
    color: #334155;
}

.student-info-bar span {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.dots-fill {
    color: #94a3b8;
    font-weight: 400;
    overflow: hidden;
    text-overflow: clip;
}

/* 3. ve 4. Sınıf Öğrenci Bilgi Kutusu */
.ws-student-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
    min-width: 245px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ws-field {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8.8pt;
    font-weight: 800;
    color: #334155;
}

.ws-field label {
    white-space: nowrap;
}

.ws-field-line {
    flex: 1;
    border-bottom: 1.5px dotted #94a3b8;
    height: 12px;
}

.ws-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ==================== GÖVDE VE BÖLÜMLER ==================== */
.sheet-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
}

.section-block,
.ws-section {
    border: 1.8px solid var(--theme-border);
    border-radius: 10px;
    background: #ffffff;
    padding: 6px 10px;
}

.section-header,
.ws-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--theme-light);
    border-left: 5px solid var(--theme-main);
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 6px;
}

.section-title-left,
.ws-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 10pt;
    font-weight: 800;
    color: var(--theme-dark);
}

.ws-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--theme-main);
    color: #ffffff;
    font-size: 9.5pt;
    font-weight: 900;
    flex-shrink: 0;
}

.section-badge-img,
.ws-section-icon {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.section-title-text {
    font-size: 10.5pt;
    font-weight: 900;
    color: var(--theme-dark);
}

.section-instruction {
    font-size: 9.2pt;
    font-weight: 700;
    color: #334155;
    margin-left: 4px;
}

.ws-section-pts {
    background: #ffffff;
    border: 1px solid var(--theme-border);
    color: var(--theme-dark);
    font-size: 8.5pt;
    font-weight: 800;
    padding: 1.5px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ==================== OKUMA METNİ KUTUSU ==================== */
.reading-card {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fffdf9;
    border: 1.5px dashed var(--theme-main);
    border-radius: 9px;
    padding: 6px 10px;
    margin-bottom: 6px;
}

.reading-illustration {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    flex-shrink: 0;
}

.reading-visual {
    width: 82px !important;
    max-width: 82px !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
}

.reading-visual img {
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
    object-fit: contain;
    display: block;
}

.reading-visual-caption {
    font-size: 7pt;
    font-weight: 800;
    color: #64748b;
    text-align: center;
    margin-top: 2px;
}

.reading-content h4,
.reading-text h4 {
    margin: 0 0 2px 0;
    font-size: 10.5pt;
    font-weight: 900;
    color: var(--theme-dark);
}

.reading-content p,
.reading-text p {
    margin: 0;
    font-size: 9.5pt;
    line-height: 1.34;
    color: #1e293b;
}

/* ==================== 5N1K & ANALİZ KUTULARI (3-4. SINIF BÖLÜM A) ==================== */
.fivew-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.fivew-box {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 9px;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fivew-box:hover {
    border-color: var(--theme-main);
}

.fivew-label {
    font-size: 8.5pt;
    font-weight: 900;
    color: var(--theme-dark);
}

.fivew-line {
    border-bottom: 1.5px dotted #94a3b8;
    height: 16px;
    margin-top: 2px;
}

.ans-reveal {
    display: none;
    font-size: 9pt;
    font-weight: 800;
    color: #047857;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 5px;
    margin-top: 2px;
}

.fivew-box.revealed .fivew-line,
body.show-answer-key .fivew-box .fivew-line {
    display: none;
}

.fivew-box.revealed .ans-reveal,
body.show-answer-key .fivew-box .ans-reveal {
    display: block;
}

/* ==================== DOĞRU / YANLIŞ TABLOSU ==================== */
.tf-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tf-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 7px;
    border: 1.4px solid #e2e8f0;
    background: #f8fafc;
    font-size: 9.5pt;
    font-weight: 700;
}

.tf-row:nth-child(even) {
    background: #ffffff;
}

.tf-text,
.tf-statement {
    flex: 1;
    line-height: 1.26;
}

.tf-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tf-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-main);
    color: #ffffff;
    font-size: 8.5pt;
    font-weight: 900;
    flex-shrink: 0;
}

.tf-actions,
.tf-btns {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.tf-btn {
    width: 28px;
    height: 23px;
    border: 1.6px solid #94a3b8;
    border-radius: 6px;
    background: #ffffff;
    font-weight: 900;
    font-size: 9pt;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: all 0.15s;
}

.tf-btn:hover {
    border-color: var(--theme-main);
}

.tf-btn.selected-correct,
body.show-answer-key .tf-btn[data-correct="true"],
body.show-answer-key .tf-row[data-correct="D"] .tf-btn[data-val="D"],
body.show-answer-key .tf-row[data-correct="Y"] .tf-btn[data-val="Y"] {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.tf-btn.selected-wrong {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

/* ==================== KELİME KUTUSU & BOŞLUK DOLDURMA (BÖLÜM C) ==================== */
.word-bank {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: var(--theme-light);
    border: 1.4px dashed var(--theme-main);
    border-radius: 8px;
    padding: 4px 10px;
    margin-bottom: 6px;
}

.word-bank-label {
    font-size: 9pt;
    font-weight: 900;
    color: var(--theme-dark);
}

.word-pill {
    background: #ffffff;
    border: 1.4px solid var(--theme-border);
    color: #0f172a;
    font-size: 9pt;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
}

.fill-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 7px;
    border: 1.4px solid #e2e8f0;
    background: #f8fafc;
    font-size: 9.5pt;
    font-weight: 700;
    line-height: 1.3;
}

.fill-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--theme-main);
    color: #ffffff;
    font-size: 8.5pt;
    font-weight: 900;
    flex-shrink: 0;
}

.fill-illus {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
}

.blank-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 21px;
    padding: 1px 8px;
    border-bottom: 2px dashed var(--theme-main);
    background: #ffffff;
    border-radius: 4px;
    font-weight: 900;
    font-size: 9.2pt;
    color: #047857;
    cursor: pointer;
    vertical-align: middle;
}

.blank-slot::after {
    content: "....................";
    color: #94a3b8;
    font-weight: 400;
}

.blank-slot.revealed::after,
body.show-answer-key .blank-slot::after {
    content: attr(data-answer) !important;
    color: #047857 !important;
    font-weight: 900 !important;
}

.blank-slot.revealed,
body.show-answer-key .blank-slot {
    background: #ecfdf5 !important;
    border-bottom: 2px solid #10b981 !important;
}

/* ==================== UYGULAMA / KART ETKİNLİKLERİ (2. SINIF) ==================== */
.activity-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.activity-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.activity-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.act-card {
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 8px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 4px;
    font-size: 9.5pt;
}

.act-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-weight: 800;
    color: #1e293b;
}

.act-img {
    width: 46px !important;
    height: 46px !important;
    object-fit: contain;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px;
}

.write-blank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 22px;
    padding: 2px 8px;
    border: 1.6px dashed #64748b;
    border-radius: 6px;
    background: #ffffff;
    font-weight: 800;
    font-size: 9.2pt;
    color: transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.write-blank::after {
    content: "....................";
    color: #94a3b8;
    font-weight: 400;
}

.write-blank.revealed,
body.show-answer-key .write-blank {
    color: #047857 !important;
    border-style: solid !important;
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
}

.write-blank.revealed::after,
body.show-answer-key .write-blank::after {
    content: none !important;
}

/* ==================== ÇOKTAN SEÇMELİ KAZANIM TESTİ (SAYFA 2) ==================== */
.quiz-grid-2,
.mc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
}

.quiz-card,
.mc-card {
    border: 1.6px solid #cbd5e1;
    border-radius: 9px;
    padding: 6px 9px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
}

.quiz-card.full-width,
.mc-card.full-width {
    grid-column: span 2;
}

.quiz-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 3px;
}

.mc-top {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.quiz-num-badge {
    background: var(--theme-main);
    color: #ffffff;
    font-size: 8.8pt;
    font-weight: 900;
    padding: 1.5px 8px;
    border-radius: 6px;
}

.mc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--theme-main);
    color: #ffffff;
    font-size: 9pt;
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 1px;
}

.quiz-body-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quiz-thumb {
    width: 54px !important;
    height: 54px !important;
    max-width: 54px !important;
    max-height: 54px !important;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 2px;
    background: #ffffff;
    flex-shrink: 0;
}

.quiz-question-text,
.mc-stem {
    margin: 0;
    font-size: 9.5pt;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.32;
}

.quiz-options,
.mc-options {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
}

.quiz-options.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.quiz-options.horizontal .quiz-opt {
    flex: 1;
    min-width: 90px;
}

.quiz-opt,
.mc-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3.5px 7px;
    border: 1.4px solid #cbd5e1;
    border-radius: 7px;
    background: #f8fafc;
    font-size: 9.2pt;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.15s;
}

.quiz-opt:hover,
.mc-opt:hover {
    border-color: var(--theme-main);
    background: var(--theme-light);
}

.opt-letter,
.mc-letter {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #1e293b;
    font-weight: 900;
    font-size: 8.2pt;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quiz-opt.selected-correct,
.mc-opt.selected-correct,
body.show-answer-key .quiz-opt[data-correct="true"],
body.show-answer-key .mc-card[data-correct="A"] .mc-opt[data-opt="A"],
body.show-answer-key .mc-card[data-correct="B"] .mc-opt[data-opt="B"],
body.show-answer-key .mc-card[data-correct="C"] .mc-opt[data-opt="C"],
body.show-answer-key .mc-card[data-correct="D"] .mc-opt[data-opt="D"] {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

.quiz-opt.selected-correct .opt-letter,
.mc-opt.selected-correct .mc-letter,
body.show-answer-key .quiz-opt[data-correct="true"] .opt-letter,
body.show-answer-key .mc-card[data-correct="A"] .mc-opt[data-opt="A"] .mc-letter,
body.show-answer-key .mc-card[data-correct="B"] .mc-opt[data-opt="B"] .mc-letter,
body.show-answer-key .mc-card[data-correct="C"] .mc-opt[data-opt="C"] .mc-letter,
body.show-answer-key .mc-card[data-correct="D"] .mc-opt[data-opt="D"] .mc-letter {
    background: #10b981 !important;
    color: #ffffff !important;
}

.quiz-opt.selected-wrong,
.mc-opt.selected-wrong {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

.quiz-opt.selected-wrong .opt-letter,
.mc-opt.selected-wrong .mc-letter {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* ==================== ALT ÖZ DEĞERLENDİRME & ÖĞRETMEN ÖLÇEĞİ ==================== */
.rubric-footer-box,
.self-eval-box {
    border: 1.8px solid var(--theme-main);
    border-radius: 9px;
    background: var(--theme-light);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rubric-title,
.self-eval-title {
    font-size: 9pt;
    font-weight: 900;
    color: var(--theme-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.self-eval-title img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
}

.rubric-levels,
.self-eval-faces {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rubric-lvl,
.eval-face {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border: 1.4px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 8.5pt;
    font-weight: 800;
    color: #1e293b;
    cursor: pointer;
}

.rubric-lvl.active,
.eval-face.selected {
    border-color: var(--theme-main);
    background: #dbeafe;
}

/* Cevap Anahtarı Alt Şeridi (Sadece Cevap Anahtarı Açıkken Gösterilir) */
.answer-key-strip {
    display: none;
    background: #ecfdf5;
    border: 1.5px solid #10b981;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 8pt;
    color: #065f46;
    line-height: 1.35;
}

body.show-answer-key .answer-key-strip {
    display: block;
}

.sheet-footer-meta,
.ws-page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 8pt;
    font-weight: 700;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    padding-top: 3px;
}

/* ==================== BASKI (PRINT) KURALLARI ==================== */
@media print {
    html, body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .no-print,
    .top-toolbar,
    .sd-toolbar,
    .seo-guide-container,
    .adsbygoogle,
    ins.adsbygoogle,
    iframe {
        display: none !important;
        height: 0 !important;
        visibility: hidden !important;
    }
    .workspace-stage,
    .sd-workspace {
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        display: block !important;
    }
    .sheet,
    .a4-page {
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        max-height: 297mm !important;
        page-break-after: always !important;
        break-after: page !important;
    }
    .sheet:last-of-type,
    .a4-page:last-of-type {
        page-break-after: auto !important;
        break-after: auto !important;
    }
}

/* Mobil ve Tablet Uyumluluğu */
@media screen and (max-width: 820px) {
    .sheet,
    .a4-page {
        width: 100%;
        height: auto;
        max-height: none;
        padding: 12px;
    }
    .quiz-grid-2, .mc-grid, .fivew-grid, .activity-grid-2, .activity-grid-3, .activity-grid-4 {
        grid-template-columns: 1fr !important;
    }
    .quiz-card.full-width, .mc-card.full-width {
        grid-column: span 1;
    }
    .student-info-bar, .ws-brand-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}
