/* teacher/student-detail */
#teacher-panel > main {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}
#student-detail-view .student-det-pane,
#student-detail-view .teacher-mirror-shell,
#student-detail-view .mirror-pane {
    overflow: visible;
}
#teacher-panel .tdash-header-profile {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    overflow: hidden;
}
#teacher-panel .tdash-header-profile img,
#teacher-panel .tdash-header-profile .tdash-header-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.student-summary-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    aspect-ratio: 148 / 210;
    min-height: 11rem;
    max-width: 11.5rem;
    width: 100%;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.student-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.student-summary-card-photo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}
.student-summary-card-photo-fallback {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.student-summary-card-pills {
    display: flex;
    flex-direction: column;
    margin: 0 auto 0.5rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.det-profile-display img { width: 100%; height: 100%; object-fit: cover; }

/* Öğrenci Detay — Bento / Dinamik Ada */
.sdet-bento {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}
.sdet-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
}
.sdet-profile-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sdet-profile-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sdet-profile-photo {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    background: #f8fafc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sdet-profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.sdet-profile-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.sdet-profile-grade {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}
.sdet-pills {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .sdet-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sdet-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.sdet-pill-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
}
.sdet-pill-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.sdet-pill-trend {
    font-size: 0.6875rem;
    font-weight: 700;
}
.sdet-pill-trend.is-up { color: #10b981; }
.sdet-pill-trend.is-down { color: #f43f5e; }
.sdet-pill-trend.is-neutral { color: #94a3b8; }
.sdet-chart-card {
    background: #fff;
    border-color: #e2e8f0;
    color: inherit;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.sdet-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sdet-chart-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #059669;
    display: block;
}
.sdet-chart-sub {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.2rem;
}
.sdet-chart-trend {
    text-align: right;
    flex-shrink: 0;
}
.sdet-chart-trend-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.sdet-chart-trend-label {
    font-size: 0.625rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}
.sdet-chart-wrap {
    position: relative;
    height: 12rem;
}
.sdet-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.85rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
}
.sdet-chart-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.sdet-chart-legend i {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 9999px;
}
.sdet-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.sdet-section-title i { color: #059669; }
.sdet-exam-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 16rem;
    overflow-y: auto;
}
.sdet-exam-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    transition: border-color 0.15s, background 0.15s;
}
.sdet-exam-row:hover {
    background: #fff;
    border-color: #cbd5e1;
}
.sdet-exam-info { min-width: 0; flex: 1; }
.sdet-exam-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sdet-exam-meta {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.15rem;
}
.sdet-exam-scores {
    text-align: right;
    flex-shrink: 0;
}
.sdet-exam-score {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #059669;
}
.sdet-exam-net {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
}
.sdet-exam-action {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}
.sdet-exam-action button {
    padding: 0.4rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 0.625rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    transition: background 0.15s;
}
.sdet-exam-action button:hover { background: #d1fae5; }
.sdet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}
@media (min-width: 768px) {
    .sdet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sdet-grid-exams { grid-row: span 2; }
    .sdet-grid-submissions { grid-column: 1 / -1; }
    .sdet-grid-notes { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .sdet-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sdet-grid-exams { grid-row: span 1; }
    .sdet-grid-submissions { grid-column: 1 / -1; }
}
.sdet-grid-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.sdet-grid-card .sdet-exam-list,
.sdet-grid-card .sdet-hw-list,
.sdet-grid-card .sdet-submission-list {
    flex: 1;
    min-height: 0;
}
.sdet-islands {
    display: contents;
}
.sdet-island { padding: 1.25rem 1.5rem; }
.sdet-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
}
.sdet-status-badge.is-present {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.sdet-status-badge.is-absent {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
.sdet-status-detail {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}
.sdet-status-detail strong { color: #334155; }
.sdet-hw-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 12rem;
    overflow-y: auto;
}
.sdet-hw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
}
.sdet-hw-row-title {
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}
.sdet-hw-row-date {
    font-size: 0.625rem;
    color: #94a3b8;
    flex-shrink: 0;
}
.sdet-hw-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}
.sdet-submission-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .sdet-submission-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .sdet-submission-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sdet-envelope-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(145deg, #fffbeb 0%, #fff 55%);
    border: 1px solid #fde68a;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}
.sdet-envelope-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
    transform: translateY(-1px);
}
.sdet-envelope-icon {
    width: 2.6rem;
    height: 2.6rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b45309;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid #fcd34d;
}
.sdet-envelope-body { min-width: 0; flex: 1; }
.sdet-envelope-hw {
    font-size: 0.75rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sdet-envelope-file {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sdet-envelope-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.45rem;
    font-size: 0.625rem;
    color: #94a3b8;
}
.sdet-envelope-status {
    font-size: 0.625rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    flex-shrink: 0;
}
.sdet-envelope-status.is-pending {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}
.sdet-envelope-status.is-missing {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}
.sdet-envelope-card.is-compact {
    padding: 0.55rem 0.7rem;
    box-shadow: none;
}
.sdet-envelope-card.is-compact .sdet-envelope-icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
}
.sdet-envelope-card.is-compact .sdet-envelope-hw {
    font-size: 0.6875rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}
.sdet-envelope-card.is-compact .sdet-envelope-file,
.sdet-envelope-card.is-compact .sdet-envelope-meta {
    display: none;
}
.sdet-hw-envelope-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .sdet-hw-envelope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sdet-note-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.75rem;
    resize: none;
    margin-bottom: 0.65rem;
    min-height: 4rem;
}
.sdet-note-input:focus {
    outline: none;
    border-color: #059669;
}
.sdet-note-save {
    width: 100%;
    padding: 0.55rem;
    border-radius: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 800;
    background: #059669;
    color: #fff;
    border: none;
    transition: background 0.15s;
    margin-bottom: 0.85rem;
}
.sdet-note-save:hover { background: #047857; }
.sdet-notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 10rem;
    overflow-y: auto;
}
.sdet-note-item {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
}
.sdet-note-text {
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.45;
    white-space: pre-wrap;
}
.sdet-note-meta {
    font-size: 0.625rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}
.sdet-note-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
}
.sdet-note-imp-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
}
.sdet-note-imp {
    border: 1px solid #cbd5e1;
    border-radius: 0.45rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
}
.sdet-note-save {
    flex: 1 1 auto;
    min-width: 8rem;
    margin-bottom: 0 !important;
    width: auto;
}
.sdet-notes-list { max-height: 16rem; }
.sdet-note-item { position: relative; }
.sdet-note-item.is-low { background: #f8fafc; border-color: #cbd5e1; border-left: 4px solid #94a3b8; }
.sdet-note-item.is-normal { background: #f0f9ff; border-color: #bae6fd; border-left: 4px solid #0ea5e9; }
.sdet-note-item.is-high { background: #fff1f2; border-color: #fecdd3; border-left: 4px solid #f43f5e; }
.sdet-note-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
}
.sdet-note-btn {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.45rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    cursor: pointer;
}
.sdet-note-btn:hover { background: #e2e8f0; }
.sdet-note-btn.is-danger { color: #be123c; border-color: #fecdd3; }
.sdet-note-btn.is-danger:hover { background: #ffe4e6; }
.sdet-note-imp-tag {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.sdet-note-text { padding-right: 3.2rem; color: #0f172a; }
.sdet-sutlac-hint { font-size: 0.68rem; color: #64748b; margin-top: 0.35rem; }
.sdet-ai-card {
    background: linear-gradient(145deg, #0f172a 0%, #134e4a 100%);
    border-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.sdet-empty {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 1.25rem 0.5rem;
}

/* Öğrenci İlk Giriş Sihirbazı & Eğitim Turu */
.onboarding-wizard-card { max-height: min(92vh, 44rem); overflow-y: auto; }
.onboarding-step-dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #cbd5e1; transition: all 0.2s; }
.onboarding-step-dot.is-active { width: 1.25rem; background: #059669; }
.onboarding-step-dot.is-done { background: #34d399; }
.onboarding-gender-opt input:checked + span { border-color: #059669; background: #ecfdf5; color: #047857; }
.student-tour-spotlight {
    position: fixed; z-index: 282; pointer-events: none;
    border-radius: 1rem; transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
    box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.78);
}
.student-tour-backdrop {
    position: fixed; inset: 0; z-index: 281;
    pointer-events: auto;
    background: transparent;
}
.student-tour-tooltip {
    position: fixed; z-index: 283; max-width: min(22rem, calc(100vw - 2rem));
    animation: fadeIn 0.25s ease;
}
body.student-tour-active { overflow: hidden !important; }
body.student-tour-active #student-bottom-nav {
    position: fixed;
    z-index: 1;
}

/* Süper Admin güvenlik tabloları */
.sa-monitor-table { table-layout: auto; width: 100%; border-collapse: separate; border-spacing: 0; min-width: 52rem; }
.sa-monitor-table th,
.sa-monitor-table td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    line-height: 1.55;
    letter-spacing: 0.01em;
}
.sa-monitor-table .sa-cell-email {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #64748b !important;
    font-weight: 500;
}
.sa-monitor-table .sa-cell-name {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em;
}
.sa-monitor-table .sa-cell-username {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #5b21b6 !important;
}
.sa-monitor-table .sa-cell-seen {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    white-space: nowrap;
}
.sa-monitor-table .sa-cell-actions { width: 6.5rem; text-align: right; }
.sa-table-scroll {
    width: 100%;
    overflow-x: auto;
    border-radius: 1rem;
    -webkit-overflow-scrolling: touch;
}
.sa-monitor-card {
    border: 1px solid rgba(148,163,184,0.28);
    border-radius: 1.15rem;
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.sa-monitor-card-row { display: flex; justify-content: space-between; gap: 0.5rem; align-items: flex-start; }
.sa-monitor-card-label { color: #64748b; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; flex-shrink: 0; }
.sa-monitor-card-value { color: #0f172a; text-align: right; word-break: break-word; overflow-wrap: anywhere; min-width: 0; font-weight: 600; }

/* Geçici şifre rozeti — tema override'larından bağımsız görünür renkler */
.sa-temp-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.4rem 0.65rem;
    border-radius: 0.7rem;
    background: #fff7ed !important;
    border: 1.5px solid #fdba74 !important;
    color: #9a3412 !important;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', Menlo, monospace !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(251, 146, 60, 0.22);
    transition: transform 0.12s ease, filter 0.12s ease;
    user-select: all;
}
.sa-temp-badge:hover { transform: translateY(-1px); filter: brightness(1.03); }
.sa-temp-badge i { color: #ea580c !important; font-size: 0.78rem; }
.sa-temp-badge.is-empty {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    box-shadow: none;
    cursor: default;
    font-weight: 600 !important;
    letter-spacing: 0;
    font-family: inherit !important;
}

/* ===== Süper Yönetici — soft pastel adalar ===== */
#superadmin-view {
    --sa-bg: #eef2f7;
    --sa-bg-deep: #ffffff;
    --sa-card: #ffffff;
    --sa-border: rgba(100, 116, 139, 0.18);
    --sa-text: #0f172a;
    --sa-muted: #64748b;
    --sa-blue: #dbeafe;
    --sa-blue-border: #93c5fd;
    --sa-green: #dcfce7;
    --sa-green-border: #86efac;
    --sa-clay: #ffedd5;
    --sa-clay-border: #fdba74;
    --sa-amber: #fef3c7;
    --sa-amber-border: #fcd34d;
    --sa-violet: #ede9fe;
    --sa-violet-border: #c4b5fd;
    background:
        radial-gradient(ellipse at top left, rgba(147, 197, 253, 0.35), transparent 42%),
        radial-gradient(ellipse at bottom right, rgba(167, 243, 208, 0.28), transparent 45%),
        var(--sa-bg) !important;
    color: var(--sa-text);
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    font-size: 15.5px;
    line-height: 1.55;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}
#superadmin-view .sa-shell-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
    border-radius: 1.35rem;
}
#superadmin-view .sa-shell-header h2,
#superadmin-view .sa-shell-header .text-slate-100 { color: #f8fafc !important; }
#superadmin-view .sa-shell-header .text-slate-400 { color: #cbd5e1 !important; }

#superadmin-view .sa-island {
    background: #fff !important;
    border: 1.5px solid var(--sa-border) !important;
    border-radius: 1.35rem !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08) !important;
    padding: 1.35rem 1.4rem !important;
}
#superadmin-view .sa-island-form {
    background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 55%) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.14) !important;
    outline: 2px solid rgba(59, 130, 246, 0.18);
    outline-offset: 2px;
}
#superadmin-view .sa-island-blue {
    background: linear-gradient(165deg, #dbeafe 0%, #f0f9ff 42%, #ffffff 100%) !important;
    border-color: var(--sa-blue-border) !important;
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12) !important;
}
#superadmin-view .sa-island-green {
    background: linear-gradient(165deg, #dcfce7 0%, #f0fdf4 42%, #ffffff 100%) !important;
    border-color: var(--sa-green-border) !important;
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.12) !important;
}
#superadmin-view .sa-island-clay {
    background: linear-gradient(165deg, #ffedd5 0%, #fff7ed 40%, #ffffff 100%) !important;
    border-color: var(--sa-clay-border) !important;
    box-shadow: 0 16px 40px rgba(234, 88, 12, 0.12) !important;
}
#superadmin-view .sa-island-amber {
    background: linear-gradient(165deg, #fef3c7 0%, #fffbeb 45%, #ffffff 100%) !important;
    border-color: var(--sa-amber-border) !important;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.12) !important;
}
#superadmin-view .sa-island-violet {
    background: linear-gradient(165deg, #ede9fe 0%, #f5f3ff 45%, #ffffff 100%) !important;
    border-color: var(--sa-violet-border) !important;
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.1) !important;
}
#superadmin-view .sa-island-title {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155 !important;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
    padding-bottom: 0.65rem;
    margin-bottom: 0.35rem;
}
#superadmin-view .sa-grid-wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.35rem;
}
@media (min-width: 1024px) {
    #superadmin-view .sa-grid-wide {
        grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    }
    #superadmin-view .sa-full { grid-column: 1 / -1; }
}

#superadmin-view .bg-white,
#superadmin-view .bg-slate-50 {
    background: #fff !important;
    border-color: var(--sa-border) !important;
    color: var(--sa-text);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07) !important;
    border-radius: 1.25rem !important;
}
#superadmin-view .text-slate-900,
#superadmin-view .text-slate-800,
#superadmin-view .text-slate-700,
#superadmin-view .text-slate-600 {
    color: #1e293b !important;
}
#superadmin-view .text-slate-500,
#superadmin-view .text-slate-400,
#superadmin-view .text-slate-300 {
    color: #64748b !important;
}
#superadmin-view .text-brand-600,
#superadmin-view .text-brand-700 { color: #0369a1 !important; }
#superadmin-view .text-amber-700 { color: #b45309 !important; }
#superadmin-view .text-violet-700 { color: #6d28d9 !important; }
#superadmin-view .border-slate-100,
#superadmin-view .border-slate-200,
#superadmin-view .border-amber-100,
#superadmin-view .border-amber-200,
#superadmin-view .border-brand-200,
#superadmin-view .border-violet-200 {
    border-color: rgba(100, 116, 139, 0.18) !important;
}
#superadmin-view .bg-violet-50 { background: #ede9fe !important; }
#superadmin-view .bg-amber-50 { background: #fef3c7 !important; }
#superadmin-view .bg-brand-50 { background: #e0f2fe !important; }
#superadmin-view input:not([type="checkbox"]):not([type="radio"]),
#superadmin-view select,
#superadmin-view textarea {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    padding: 0.75rem 0.95rem !important;
    border-radius: 0.85rem !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
#superadmin-view input:focus,
#superadmin-view select:focus,
#superadmin-view textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18) !important;
    outline: none !important;
}
#superadmin-view input::placeholder { color: #94a3b8 !important; }
#superadmin-view label {
    color: #475569 !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
}
#superadmin-view button.bg-brand-600,
#superadmin-view button.bg-brand-500 {
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28) !important;
    font-weight: 800 !important;
}
#superadmin-view button.bg-brand-600:hover,
#superadmin-view button.bg-brand-500:hover {
    filter: brightness(1.06);
}
#superadmin-view button.bg-violet-600,
#superadmin-view button.bg-violet-500 {
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25) !important;
}
#superadmin-view button.bg-amber-500,
#superadmin-view button.bg-amber-400 {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    color: #111827 !important;
    font-weight: 800 !important;
}
#superadmin-view button.bg-slate-700,
#superadmin-view button.bg-slate-600 {
    background: #334155 !important;
    color: #f8fafc !important;
}
#superadmin-view .text-\[10px\],
#superadmin-view .text-\[9px\],
#superadmin-view .text-\[8px\],
#superadmin-view .text-\[11px\] {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}
#superadmin-view .text-xs {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
}
#superadmin-view .text-sm {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
}
#superadmin-view h2 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.03em;
}
#superadmin-view .sa-monitor-table thead tr,
#superadmin-view .sa-monitor-table th {
    color: #475569 !important;
    border-color: rgba(100,116,139,0.2) !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.07em;
    background: rgba(255,255,255,0.55);
}
#superadmin-view .sa-monitor-table td {
    color: #1e293b !important;
    border-color: rgba(100,116,139,0.12) !important;
}
#superadmin-view .sa-monitor-table tbody tr {
    background: rgba(255, 255, 255, 0.72);
}
#superadmin-view .sa-monitor-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.95);
}
#superadmin-view .sa-tab-btn {
    background: #fff;
    border: 1.5px solid #cbd5e1;
    color: #475569;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    font-size: 0.85rem;
    padding: 0.65rem 1.1rem;
}
#superadmin-view .sa-tab-btn.is-active {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #f8fafc;
    border-color: #1e293b;
}
#pin-modal .bg-white {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.sdet-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(248, 250, 252, 0.92);
    border-radius: 1rem;
    color: #94a3b8;
    z-index: 2;
}
.sdet-chart-empty.hidden { display: none !important; }
.sdet-chart-empty i { font-size: 1.75rem; color: #cbd5e1; }
.sdet-chart-empty p { margin: 0; font-size: 0.9rem; font-weight: 600; color: #64748b; }
.sdet-chart-wrap.relative { position: relative; min-height: 16rem; }

.det-xp-btn {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.55rem 0.9rem; border-radius: 0.85rem; border: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(135deg, #f59e0b, #d97706); color: #0f172a;
    font-size: 0.75rem; font-weight: 800; cursor: pointer;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}
.det-xp-btn:hover { filter: brightness(1.06); }
.det-goal-btn {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.55rem 0.9rem; border-radius: 0.85rem; border: 1px solid #99f6e4;
    background: #f0fdfa; color: #0f766e;
    font-size: 0.75rem; font-weight: 800; cursor: pointer;
}
.det-goal-btn:hover { filter: brightness(0.97); }
.sdet-kpi-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem;
}
@media (max-width: 900px) { .sdet-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sdet-kpi-card {
    border: 1px solid #e8edf3;
    border-radius: 1rem;
    padding: 0.85rem 0.9rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.sdet-kpi-card .lbl { font-size: 0.62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin: 0 0 0.35rem; }
.sdet-kpi-card .val { font-size: 1.25rem; font-weight: 900; color: #0f172a; line-height: 1.15; }
.sdet-kpi-card .sub { font-size: 0.68rem; color: #94a3b8; margin-top: 0.25rem; font-weight: 600; }
.sdet-kpi-card .kpi-bar {
    margin-top: 0.45rem; height: 0.35rem; border-radius: 999px; background: #e8edf3; overflow: hidden;
}
.sdet-kpi-card .kpi-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sdet-accent-dark, #0d9488), var(--sdet-accent-mid, #14b8a6)); }
.ba-active-title {
    font-size: 1.2rem !important; font-weight: 900 !important; color: #f8fafc !important;
    line-height: 1.25; letter-spacing: -0.01em; margin: 0;
}
.ba-active-author { font-size: 0.75rem !important; font-weight: 500 !important; color: #94a3b8 !important; margin: 0.2rem 0 0; }
#student-detail-view.teacher-premium-cockpit .ba-active-title { color: #f8fafc !important; }
#student-detail-view.teacher-premium-cockpit .ba-card .font-bold.text-slate-900 { color: #f8fafc !important; }
.ba-range-toggle { display: inline-flex; gap: 0.3rem; margin-left: auto; }
.ba-range-toggle button {
    font-size: 0.65rem; font-weight: 800; padding: 0.3rem 0.55rem; border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.3); background: rgba(51,65,85,0.4); color: #cbd5e1; cursor: pointer;
}
.ba-range-toggle button.is-on { background: rgba(20,184,166,0.25); border-color: rgba(45,212,191,0.45); color: #99f6e4; }
.ba-history.is-compact { max-height: 6.5rem; overflow-y: auto; }
.ba-history.is-compact .ba-history-item { padding: 0.28rem 0.45rem; gap: 0.35rem; }
.ba-history.is-compact .ba-history-item strong { font-size: 0.75rem; }
#student-detail-view #det-mq-tb-shelf.s-tb-shelf {
    min-height: 11rem;
    margin-top: 0.35rem;
}
#manual-gp-modal .mgp-cat-active-sozel { border-color: #f43f5e !important; background: rgba(244,63,94,0.15) !important; color: #fda4af !important; }
#manual-gp-modal .mgp-cat-active-sayisal { border-color: #0ea5e9 !important; background: rgba(14,165,233,0.15) !important; color: #7dd3fc !important; }
#manual-gp-modal .mgp-cat-active-genel { border-color: #94a3b8 !important; background: rgba(148,163,184,0.15) !important; color: #e2e8f0 !important; }
#manual-gp-modal .mgp-cat-idle {
    border: 2px solid #334155 !important; background: #0f172a !important; color: #94a3b8 !important;
    border-radius: 0.85rem; font-weight: 700; font-size: 0.7rem; padding: 0.65rem 0.4rem;
}
.det-topics-accordion { display: flex; flex-direction: column; gap: 0.45rem; }
.det-acc-item { border: 1px solid rgba(148,163,184,0.22); border-radius: 1rem; overflow: hidden; background: rgba(15,23,42,0.55); }
.det-acc-head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.85rem 1rem; background: transparent; border: 0; color: #e2e8f0; cursor: pointer; text-align: left;
}
.det-acc-head:hover { background: rgba(148,163,184,0.08); }
.det-acc-head .left { display: flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; font-weight: 800; }
.det-acc-head .meta { font-size: 0.65rem; color: #94a3b8; font-weight: 700; }
.det-acc-body { display: none; padding: 0 1rem 0.9rem; border-top: 1px solid rgba(148,163,184,0.12); }
.det-acc-item.is-open .det-acc-body { display: block; }
.det-acc-item.is-open .det-acc-chevron { transform: rotate(180deg); }
.det-acc-chevron { transition: transform .18s ease; color: #94a3b8; }
.det-mq-gallery { margin-top: 1rem; }
.det-mq-gallery.hidden { display: none !important; }
.det-mq-back {
    font-size: 0.72rem; font-weight: 800; color: #94a3b8; background: transparent; border: 0;
    cursor: pointer; margin-bottom: 0.5rem; padding: 0;
}
.det-mq-back:hover { color: #5eead4; }
#student-detail-view.teacher-premium-cockpit .s-tb-shelf { margin-top: 0.5rem; }

/* ===== Öğrenci profil — açık premium tema (sınıf rengine göre) ===== */
#student-detail-view.sdet-view.hidden,
#student-detail-view.teacher-premium-cockpit.hidden {
    display: none !important;
}
#student-detail-view.sdet-view {
    --sdet-accent: #0d9488;
    --sdet-accent-mid: #14b8a6;
    --sdet-accent-dark: #0f766e;
    --sdet-accent-soft: #ccfbf1;
    --sdet-hero-from: #0f766e;
    --sdet-hero-to: #14b8a6;
    --sdet-fs-xs: 0.72rem;
    --sdet-fs-sm: 0.82rem;
    --sdet-fs-md: 0.92rem;
    --sdet-fs-lg: 1.05rem;
    --sdet-fs-xl: 1.22rem;
    font-size: var(--sdet-fs-sm);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.5rem;
    background: transparent !important;
    color: #0f172a;
}
#student-detail-view.sdet-view .sdet-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 1.15rem;
    border: 1px solid #e8edf3;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
#student-detail-view.sdet-view .sdet-sidebar {
    width: 100%;
    padding: 1rem;
    border-radius: 1.25rem;
    border: 1px solid #e8edf3;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
@media (min-width: 1024px) { #student-detail-view.sdet-view .sdet-sidebar { width: 16rem; } }
#student-detail-view.sdet-view .det-profile-display {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 3px solid var(--sdet-accent-soft);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--sdet-accent) 25%, transparent);
}
#student-detail-view.sdet-view .sdet-nav-btn {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    border: 1px solid transparent;
}
#student-detail-view.sdet-view .sdet-nav-btn:hover {
    background: #f8fafc;
    border-color: #e8edf3;
}
#student-detail-view.sdet-view .sdet-nav-btn.is-active {
    background: var(--sdet-accent-soft) !important;
    color: var(--sdet-accent-dark) !important;
    border-color: color-mix(in srgb, var(--sdet-accent) 35%, white) !important;
    font-weight: 800;
}
#student-detail-view.sdet-view .sdet-overview-hero {
    border-radius: 1.25rem;
    padding: 1rem 1.05rem;
    color: #fff;
    background: linear-gradient(145deg, var(--sdet-hero-from) 0%, var(--sdet-hero-to) 100%);
    box-shadow: 0 14px 36px color-mix(in srgb, var(--sdet-accent) 28%, transparent);
    margin-bottom: 0.75rem;
}
#student-detail-view.sdet-view .sdet-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}
#student-detail-view.sdet-view .sdet-hero-kicker {
    margin: 0;
    font-size: var(--sdet-fs-xs);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.92;
}
#student-detail-view.sdet-view .sdet-hero-title {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
#student-detail-view.sdet-view .sdet-hero-sub {
    margin: 0.25rem 0 0;
    font-size: var(--sdet-fs-sm);
    font-weight: 600;
    opacity: 0.95;
}
#student-detail-view.sdet-view .sdet-hero-live {
    font-size: var(--sdet-fs-xs);
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    color: rgba(255,255,255,0.8);
}
#student-detail-view.sdet-view .sdet-hero-live.is-on {
    background: rgba(16, 185, 129, 0.35);
    color: #ecfdf5;
}
#student-detail-view.sdet-view .sdet-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
#student-detail-view.sdet-view .sdet-hero-chip {
    text-align: center;
    padding: 0.55rem 0.35rem;
    border-radius: 0.85rem;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
#student-detail-view.sdet-view .sdet-hero-chip strong {
    display: block;
    font-size: var(--sdet-fs-lg);
    font-weight: 900;
    line-height: 1.15;
}
#student-detail-view.sdet-view .sdet-hero-chip em {
    display: block;
    font-style: normal;
    font-size: var(--sdet-fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0.15rem;
    opacity: 0.85;
}
#student-detail-view.sdet-view .sdet-hero-chip--lvl {
    background: #fff;
    border: 1px solid rgba(255,255,255,0.9);
}
#student-detail-view.sdet-view .sdet-hero-chip--xp {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
#student-detail-view.sdet-view .sdet-hero-chip--gp {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
#student-detail-view.sdet-view .sdet-hero-chip--streak {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
#student-detail-view.sdet-view .sdet-hero-chip--streak strong i {
    color: #ea580c;
    margin-right: 0.15rem;
}
#student-detail-view.sdet-view .sdet-hero-exam {
    margin: 0;
    font-size: var(--sdet-fs-sm);
    font-weight: 600;
    opacity: 0.96;
}
#student-detail-view.sdet-view .sdet-data-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0.75rem 0;
}
@media (min-width: 768px) {
    #student-detail-view.sdet-view .sdet-data-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#student-detail-view.sdet-view .sdet-matrix-cell {
    padding: 0.7rem 0.75rem;
    border-radius: 0.9rem;
    background: #f8fafc;
    border: 1px solid #eef2f6;
}
#student-detail-view.sdet-view .sdet-matrix-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--sdet-fs-xs);
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
#student-detail-view.sdet-view .sdet-matrix-val {
    display: block;
    margin-top: 0.28rem;
    font-size: var(--sdet-fs-md);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.25;
}
#student-detail-view.sdet-view .sdet-matrix-sub {
    display: block;
    font-size: var(--sdet-fs-xs);
    font-weight: 600;
    color: #64748b;
    margin-top: 0.15rem;
}
#student-detail-view.sdet-view .sdet-pill-label { font-size: var(--sdet-fs-xs); }
#student-detail-view.sdet-view .sdet-pill-value { font-size: 1.45rem; }
#student-detail-view.sdet-view .sdet-pill-trend { font-size: var(--sdet-fs-xs); }
#student-detail-view.sdet-view .sdet-kpi-card .lbl { font-size: var(--sdet-fs-xs) !important; color: #475569 !important; }
#student-detail-view.sdet-view .sdet-kpi-card .val { font-size: 1.35rem !important; }
#student-detail-view.sdet-view .sdet-kpi-card .sub { font-size: var(--sdet-fs-xs) !important; color: #64748b !important; }
#student-detail-view.sdet-view .sdet-kpi-unit { font-size: 0.9rem; font-weight: 700; color: #64748b; }
#student-detail-view.sdet-view .sdet-kpi-mood { font-size: 1.1rem !important; }
#student-detail-view.sdet-view .sdet-kpi-sm { font-size: 1rem !important; }
#student-detail-view.sdet-view .sdet-section-title { font-size: var(--sdet-fs-sm); color: #334155; }
#student-detail-view.sdet-view .sdet-matrix-label i { color: var(--sdet-accent); }
#student-detail-view.sdet-view .sdet-sidebar-dock {
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
#student-detail-view.sdet-view .sdet-sidebar-panel {
    padding: 0.75rem;
    border-radius: 0.95rem;
    background: #f8fafc;
    border: 1px solid #e8edf3;
}
#student-detail-view.sdet-view .sdet-sidebar-panel-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--sdet-fs-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    margin-bottom: 0.55rem;
}
#student-detail-view.sdet-view .sdet-sidebar-panel-title i { color: var(--sdet-accent); }
#student-detail-view.sdet-view .sdet-note-input-compact {
    min-height: 3.5rem;
    font-size: var(--sdet-fs-sm);
    margin-bottom: 0.45rem;
}
#student-detail-view.sdet-view .sdet-note-save-compact {
    margin-bottom: 0.55rem;
    font-size: var(--sdet-fs-xs);
    padding: 0.5rem;
}
#student-detail-view.sdet-view .sdet-notes-list-compact {
    max-height: 9rem;
}
#student-detail-view.sdet-view .sdet-status-detail {
    font-size: var(--sdet-fs-xs);
}
#student-detail-view.sdet-view .sdet-status-badge {
    font-size: var(--sdet-fs-xs);
}
.sdet-exam-row-rich {
    flex-direction: column;
    align-items: stretch !important;
    padding: 1rem 1.05rem !important;
}
.sdet-exam-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}
.sdet-exam-badge {
    font-size: var(--sdet-fs-xs, 0.72rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--sdet-accent-soft, #dbeafe);
    color: var(--sdet-accent-dark, #1d4ed8);
    border: 1px solid color-mix(in srgb, var(--sdet-accent) 25%, white);
    flex-shrink: 0;
}
#student-detail-view.sdet-view .sdet-exam-title {
    font-size: var(--sdet-fs-md, 0.92rem);
    white-space: normal;
}
#student-detail-view.sdet-view .sdet-exam-meta {
    font-size: var(--sdet-fs-sm, 0.82rem);
    color: #475569;
    font-weight: 600;
}
.sdet-exam-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}
.sdet-exam-chip {
    font-size: var(--sdet-fs-xs, 0.72rem);
    font-weight: 700;
    padding: 0.28rem 0.5rem;
    border-radius: 0.55rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.sdet-exam-chip strong { color: #0f172a; font-weight: 900; }
#student-detail-view.sdet-view .sdet-exam-row .sdet-exam-action {
    margin-top: 0.65rem;
    align-self: flex-end;
}
#student-detail-view.sdet-view .sdet-exam-row .sdet-exam-action button {
    font-size: var(--sdet-fs-xs);
    padding: 0.45rem 0.75rem;
}
#student-detail-view.sdet-view .sdet-envelope-hw { font-size: 0.85rem !important; }
#student-detail-view.sdet-view .sdet-envelope-file { font-size: 0.78rem !important; }
#student-detail-view.sdet-view .sdet-envelope-meta { font-size: 0.72rem !important; }
#student-detail-view.sdet-view .sdet-envelope-card {
    padding: 1rem 1.05rem !important;
}
#student-detail-view.sdet-view .sdet-envelope-icon {
    width: 3rem !important;
    height: 3rem !important;
    font-size: 1.2rem !important;
}
#student-detail-view.sdet-view .sdet-card {
    background: #fff !important;
    border-color: #e8edf3 !important;
    color: #0f172a !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}
#student-detail-view.sdet-view .sdet-sutlac-card {
    padding: 1.1rem 1.15rem;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--sdet-accent-soft) 0%, #fff 55%) !important;
    border-color: color-mix(in srgb, var(--sdet-accent) 22%, white) !important;
}
#student-detail-view.sdet-view .sdet-chart-card {
    border: 1px solid #e8edf3;
    border-radius: 1.25rem;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
#student-detail-view.sdet-view .sdet-chart-label { color: var(--sdet-accent-dark) !important; }
#student-detail-view.sdet-view .sdet-chart-wrap { height: 14rem; }
#student-detail-view.sdet-view .mirror-pane,
#student-detail-view.sdet-view .teacher-mirror-shell {
    background: #fff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 1.25rem !important;
    color: #0f172a !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}
#student-detail-view.sdet-view .mirror-pane-title { color: #0f172a !important; }
#student-detail-view.sdet-view .mirror-pane-sub { color: #64748b !important; }
#student-detail-view.sdet-view .sdet-layout {
    align-items: flex-start;
}
#student-detail-view.sdet-view .sdet-sidebar {
    align-self: flex-start;
    height: auto;
    max-height: none;
}
@media (min-width: 1024px) {
    #student-detail-view.sdet-view .sdet-sidebar {
        position: sticky;
        top: 0.75rem;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }
}
#student-detail-view.sdet-view .flex-1.space-y-6 {
    min-width: 0;
    flex: 1 1 auto;
}
#student-detail-view.sdet-view .sdet-kpi-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
    backdrop-filter: none !important;
}
#student-detail-view.sdet-view .sdet-kpi-card .lbl {
    color: #475569 !important;
}
#student-detail-view.sdet-view .sdet-kpi-card .val {
    color: #0f172a !important;
    font-family: inherit !important;
    font-weight: 900 !important;
}
#student-detail-view.sdet-view .sdet-kpi-card .sub {
    color: #64748b !important;
}
#student-detail-view.sdet-view .sdet-kpi-card .kpi-bar {
    background: #e8edf3 !important;
}
#student-detail-view.sdet-view .sdet-chart-wrap {
    height: 17rem;
    min-height: 17rem;
}
#student-detail-view.sdet-view .sdet-chart-wrap canvas {
    filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--sdet-accent) 12%, transparent));
}
#student-detail-view.sdet-view .sdet-metrics-panel {
    padding: 1rem 1.05rem;
}
#student-detail-view.sdet-view .sdet-metrics-head {
    margin-bottom: 0.75rem;
}
#student-detail-view.sdet-view .sdet-metrics-hint,
#student-detail-view.sdet-view .sdet-panel-hint {
    margin: 0.2rem 0 0;
    font-size: var(--sdet-fs-xs);
    font-weight: 600;
    color: #64748b;
}
#student-detail-view.sdet-view .sdet-metrics-deck {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
@media (min-width: 640px) {
    #student-detail-view.sdet-view .sdet-metrics-deck { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    #student-detail-view.sdet-view .sdet-metrics-deck { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#student-detail-view.sdet-view .sdet-metric-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 5.25rem;
    min-width: 0;
    padding: 0.7rem 0.75rem 0.65rem 2.65rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    overflow: hidden;
}
#student-detail-view.sdet-view .sdet-metric-tile.is-featured {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-color: color-mix(in srgb, var(--sdet-accent) 22%, #eef2f6);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
#student-detail-view.sdet-view .sdet-metric-icon {
    position: absolute;
    left: 0.65rem;
    top: 0.65rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    color: var(--sdet-accent-dark);
    background: var(--sdet-accent-soft);
    border: 1px solid color-mix(in srgb, var(--sdet-accent) 18%, white);
}
#student-detail-view.sdet-view .sdet-metric-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
#student-detail-view.sdet-view .sdet-metric-val {
    color: #0f172a;
}
#student-detail-view.sdet-view .sdet-metric-sub {
    color: #64748b;
}
#student-detail-view.sdet-view .sdet-metric-trend {
    margin-top: 0.1rem;
}
#student-detail-view.sdet-view .sdet-metric-trend.is-up { color: #059669; }
#student-detail-view.sdet-view .sdet-metric-trend.is-down { color: #e11d48; }
#student-detail-view.sdet-view .sdet-metric-trend.is-neutral { color: #94a3b8; }
#student-detail-view.sdet-view .sdet-bottom-deck {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1.15rem;
    margin-top: 0.25rem;
    min-width: 0;
    width: 100%;
    container-type: inline-size;
    container-name: sdet-bottom;
}
#student-detail-view.sdet-view .sdet-bottom-deck.is-stacked {
    flex-direction: column;
}
#student-detail-view.sdet-view .sdet-bottom-deck.is-stacked .sdet-grid-exams,
#student-detail-view.sdet-view .sdet-bottom-deck.is-stacked .sdet-grid-hw-panel {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100%;
}
#student-detail-view.sdet-view .sdet-grid-exams,
#student-detail-view.sdet-view .sdet-grid-hw-panel {
    flex: 1 1 18rem;
    min-width: min(100%, 18rem);
    max-width: 100%;
    box-sizing: border-box;
}
@container sdet-bottom (min-width: 44rem) {
    .sdet-bottom-deck:not(.is-stacked) > .sdet-grid-exams {
        flex: 1.15 1 22rem;
        min-width: 0;
    }
    .sdet-bottom-deck:not(.is-stacked) > .sdet-grid-hw-panel {
        flex: 0.85 1 17rem;
        min-width: 0;
        max-width: 42%;
    }
}
#student-detail-view.sdet-view .sdet-exam-list {
    max-height: 26rem;
    overflow-y: auto;
    min-height: 8rem;
    padding-right: 0.15rem;
}
#student-detail-view.sdet-view .sdet-exam-row-latest {
    position: relative;
    border: 1.5px solid color-mix(in srgb, var(--sdet-accent) 30%, #e2e8f0) !important;
    background: linear-gradient(180deg, #fff 0%, var(--sdet-accent-soft) 120%) !important;
}
#student-detail-view.sdet-view .sdet-exam-latest-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--sdet-fs-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sdet-accent-dark);
    margin-bottom: 0.45rem;
}
#student-detail-view.sdet-view .sdet-exam-row-compact {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem !important;
    flex-direction: row !important;
}
#student-detail-view.sdet-view .sdet-exam-badge-sm {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
}
#student-detail-view.sdet-view .sdet-exam-compact-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
#student-detail-view.sdet-view .sdet-exam-compact-title {
    font-size: var(--sdet-fs-sm);
    font-weight: 800;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#student-detail-view.sdet-view .sdet-exam-compact-meta {
    font-size: var(--sdet-fs-xs);
    font-weight: 600;
    color: #64748b;
}
#student-detail-view.sdet-view .sdet-exam-compact-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #047857;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#student-detail-view.sdet-view .sdet-hw-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}
#student-detail-view.sdet-view .sdet-hw-panel-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}
#student-detail-view.sdet-view .sdet-hw-panel-label {
    margin: 0 0 0.5rem;
    font-size: var(--sdet-fs-xs);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
#student-detail-view.sdet-view .sdet-hw-panel-label i { color: var(--sdet-accent); }
#student-detail-view.sdet-view .sdet-hw-list {
    max-height: 11rem;
    overflow-y: auto;
}
#student-detail-view.sdet-view .sdet-grid-hw-panel .sdet-submission-list {
    max-height: 14rem;
    overflow-y: auto;
    min-height: 6rem;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
}
#student-detail-view.sdet-view .sdet-grid-exams,
#student-detail-view.sdet-view .sdet-grid-hw-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#student-detail-view.sdet-view .sdet-sutlac-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 2px solid color-mix(in srgb, var(--sdet-accent) 30%, white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--sdet-accent) 18%, transparent);
}
#student-detail-view.sdet-view .sdet-sutlac-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#student-detail-view.sdet-view .sdet-sutlac-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--sdet-accent-dark);
    letter-spacing: 0.02em;
}
#student-detail-view.sdet-view .sdet-sutlac-sub {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}
#student-detail-view.sdet-view .sdet-sutlac-report {
    font-size: var(--sdet-fs-sm) !important;
    color: #334155 !important;
    background: rgba(255,255,255,0.72);
    border: 1px solid #e8edf3;
    border-radius: 0.85rem;
    padding: 0.85rem;
}
#student-detail-view.sdet-view .sdet-sutlac-refresh {
    background: var(--sdet-accent-dark);
    color: #fff;
    border: none;
    border-radius: 0.85rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--sdet-accent) 28%, transparent);
}
#student-detail-view.sdet-view .sdet-sutlac-card .tai-dock {
    margin-top: 0.75rem;
}
#student-detail-view.sdet-view .sdet-sutlac-refresh:hover {
    filter: brightness(1.06);
}
#student-detail-view.sdet-view #det-pane-homework,
#student-detail-view.sdet-view #det-pane-timeline,
#student-detail-view.sdet-view #det-pane-activity {
    background: #fff !important;
    border: 1px solid #e8edf3 !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

/* Eski koyu tema — devre dışı */
#student-detail-view.sdet-view #det-mq-gallery-title { color: #0f172a !important; }
#student-detail-view.sdet-view .det-mq-tab {
    background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0;
}
#student-detail-view.sdet-view .det-mq-tab.is-active {
    background: var(--sdet-accent-soft); color: var(--sdet-accent-dark); border-color: color-mix(in srgb, var(--sdet-accent) 35%, white);
}

/* Mobil — yatay taşmayı kes, negatif margin'i sıfırla */
@media (max-width: 767px) {
    #teacher-panel main.flex-1,
    #teacher-panel > .flex-1 main {
        overflow-x: clip !important;
        max-width: 100% !important;
    }
    #student-detail-view {
        padding: 0.65rem !important;
        margin: 0 !important;
        max-width: 100% !important;
        overflow-x: clip !important;
        box-sizing: border-box;
    }
    #student-detail-view > .flex.flex-col.lg\:flex-row {
        gap: 0.75rem !important;
        min-width: 0;
    }
    #student-detail-view .flex-1.space-y-6 {
        min-width: 0 !important;
        max-width: 100% !important;
    }
    #student-detail-view .sdet-bento,
    #student-detail-view .sdet-card,
    #student-detail-view .sdet-grid,
    #student-detail-view .sdet-chart-wrap,
    #student-detail-view .teacher-mirror-shell,
    #student-detail-view .mirror-pane {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    #student-detail-view .sdet-card {
        padding: 0.85rem !important;
        border-radius: 1rem !important;
    }
    #student-detail-view .sdet-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.45rem !important;
    }
    #student-detail-view .sdet-chart-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.35rem !important;
    }
    #student-detail-view .sdet-chart-wrap canvas {
        max-width: 100% !important;
    }
    #student-detail-view .w-full.lg\:w-64 {
        width: 100% !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.35rem !important;
        padding: 0.65rem !important;
    }
    #student-detail-view .w-full.lg\:w-64 > .text-center {
        flex: 0 0 auto;
        border-bottom: none !important;
        border-right: 1px solid rgba(148, 163, 184, 0.2);
        padding-right: 0.65rem !important;
        padding-bottom: 0 !important;
        text-align: left !important;
    }
    #student-detail-view .w-full.lg\:w-64 > button {
        flex: 1 1 calc(50% - 0.2rem) !important;
        min-width: 0 !important;
        min-height: 2.25rem !important;
        padding: 0.45rem 0.5rem !important;
        font-size: 0.62rem !important;
        justify-content: center;
    }
    #student-detail-view .w-full.lg\:w-64 > button i {
        display: none;
    }
    #student-detail-view > .flex.justify-between.items-center {
        padding: 0.65rem !important;
        border-radius: 1rem !important;
        gap: 0.45rem !important;
    }
    #student-detail-view > .flex.justify-between.items-center h2 {
        font-size: 0.72rem !important;
    }
    #student-detail-view > .flex.justify-between.items-center button {
        padding: 0.4rem 0.55rem !important;
        font-size: 0.62rem !important;
        min-height: 2rem !important;
    }
    #student-detail-view .teacher-mirror-ro .s-shelf {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    #student-detail-view .sa-monitor-table-wrap {
        overflow-x: auto !important;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

.det-timeline-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 28rem; overflow-y: auto; }
.det-timeline-item { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.65rem 0.75rem; border-radius: 0.85rem; border: 1px solid #e2e8f0; background: #f8fafc; }
.det-timeline-icon { width: 2rem; height: 2rem; border-radius: 0.65rem; display: flex; align-items: center; justify-content: center; background: #e0f2fe; color: #0369a1; flex-shrink: 0; font-size: 0.75rem; }
.det-timeline-item.is-study .det-timeline-icon { background: #dbeafe; color: #1d4ed8; }
.det-timeline-item.is-hw .det-timeline-icon { background: #fef3c7; color: #b45309; }
.det-timeline-item.is-book .det-timeline-icon { background: #d1fae5; color: #047857; }
.det-timeline-item.is-alert .det-timeline-icon { background: #fee2e2; color: #b91c1c; }
.det-timeline-item.is-mood .det-timeline-icon { background: #fce7f3; color: #be185d; }
.det-timeline-body { min-width: 0; flex: 1; }
.det-timeline-body strong { display: block; font-size: 0.72rem; font-weight: 800; color: #0f172a; }
.det-timeline-body p { font-size: 0.68rem; color: #475569; margin: 0.2rem 0; line-height: 1.35; }
.det-timeline-body span { font-size: 0.62rem; color: #94a3b8; font-weight: 600; }
.det-timeline-empty { font-size: 0.72rem; color: #94a3b8; font-style: italic; text-align: center; padding: 1.5rem 0; }

/* —— Öğrenci ana sayfası 2026 panelleri —— */
.sdet-pane-back {
    display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.85rem;
}
.sdet-pane-back button {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 800; padding: 0.42rem 0.75rem;
    border-radius: 0.8rem; border: 1px solid #e2e8f0; background: #fff; color: #334155; cursor: pointer;
}
.sdet-pane-back button:hover { background: #f8fafc; color: #0f766e; }

.sdet-ai-card {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    padding: 0.15rem 0.15rem 0.35rem;
}
.sdet-ai-toggle {
    width: 100%; display: flex; align-items: center; gap: 0.75rem;
    padding: 0.85rem 1rem; border: 0; background: linear-gradient(180deg, #f8fafc, #fff);
    cursor: pointer; text-align: left; border-radius: 1rem;
}
.sdet-ai-icon {
    width: 2.1rem; height: 2.1rem; border-radius: 0.7rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: #ecfdf5; color: #047857; flex-shrink: 0;
}
.sdet-ai-kicker {
    display: block; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.06em;
    text-transform: uppercase; color: #0f172a;
}
.sdet-ai-hub { margin: 0.15rem 0 0; font-size: 0.72rem; color: #64748b; line-height: 1.35; }
.sdet-ai-chevron { color: #94a3b8; font-size: 0.75rem; transition: transform 0.2s ease; }
.sdet-ai-body { padding: 0 1rem 1rem; }
#det-ai-report-box { font-size: 0.8rem; line-height: 1.5; color: #334155; max-height: 22rem; overflow-y: auto; }
.sdet-ai-table { width: 100%; border-collapse: collapse; margin: 0.4rem 0 0.75rem; font-size: 0.75rem; }
.sdet-ai-table th, .sdet-ai-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #e2e8f0; text-align: left; }
.sdet-ai-table th { color: #64748b; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sdet-ai-weak { color: #b45309; }
.sdet-ai-gain { color: #047857; }
.sdet-ai-fineprint { font-size: 0.68rem; color: #94a3b8; font-style: italic; }
.sdet-ai-outcomes { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #e2e8f0; }
.sdet-ai-outcomes-title { font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.sdet-ai-outcomes-title .is-kritik { color: #be123c; }
.sdet-ai-outcomes-title .is-orta { color: #b45309; }
.sdet-ai-outcome-block { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.85rem; padding: 0.65rem 0.75rem; margin-bottom: 0.45rem; }
.sdet-ai-outcome-subj { display: block; font-weight: 800; color: #0f766e; margin-bottom: 0.35rem; }
.sdet-ai-outcome-row { font-size: 0.75rem; color: #334155; display: flex; justify-content: space-between; gap: 0.5rem; }
.sdet-ai-badge { font-size: 0.58rem; font-weight: 900; padding: 0.12rem 0.4rem; border-radius: 999px; }
.sdet-ai-badge.is-kritik { background: #ffe4e6; color: #be123c; }
.sdet-ai-badge.is-orta { background: #fef3c7; color: #b45309; }
.sdet-ai-refresh {
    width: 100%; margin-top: 0.65rem; padding: 0.55rem;
    background: #0f766e; color: #fff; border: 0; border-radius: 0.8rem;
    font-size: 0.75rem; font-weight: 800; cursor: pointer;
}

.ba-cover.is-xl { width: 5.5rem; height: 7.4rem; border-radius: 0.7rem; }
#student-detail-view .s-shelf-book-cover { min-height: 8.2rem; }
#student-detail-view .s-shelf-book.is-hero .s-shelf-book-cover { min-height: 10.5rem; }
.sdet-book-overdue { color: #be123c; font-size: 0.72rem; font-weight: 800; margin: 0.4rem 0 0; }
.sdet-lib-in-book { margin-top: 1.1rem; }

.sdet-parent-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.12), rgba(15, 23, 42, 0.55));
    color: #fecaca;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.sdet-parent-entry:hover {
    border-color: rgba(248, 113, 113, 0.55);
    transform: translateY(-1px);
}
.sdet-parent-entry-ico {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    background: rgba(127, 29, 29, 0.45);
    flex-shrink: 0;
}
.sdet-parent-entry-copy {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
    flex: 1;
}
.sdet-parent-entry-copy strong {
    font-size: 0.82rem;
    font-weight: 900;
    color: #fff1f2;
}
.sdet-parent-entry-copy em {
    font-style: normal;
    font-size: 0.72rem;
    color: #fca5a5;
}
.sdet-parent-entry-chev {
    opacity: 0.75;
    flex-shrink: 0;
}
.det-parent-pane {
    margin-top: 0;
    background: #fff;
}
.det-parent-section {
    padding: 0.85rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.det-parent-section:last-child { border-bottom: 0; }
.det-parent-section-title {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.det-parent-activity {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #64748b;
}
.det-parent-check-log {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.det-parent-check-log li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.det-parent-check-log li span { font-weight: 800; color: #0f172a; }
.det-parent-check-log li em { font-style: normal; color: #64748b; }
.det-parent-msg-hint {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}
.det-parent-msg-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border-radius: 0.65rem;
    border: 1px solid #cbd5e1;
    font: inherit;
    font-size: 0.82rem;
    resize: vertical;
    min-height: 4.5rem;
}
.det-parent-msg-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}
.det-parent-msg-status {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
}
.det-parent-msg-status.is-ok { color: #059669; }
.det-parent-msg-status.is-warn { color: #dc2626; }

.sdet-book-light {
    position: fixed; inset: 0; z-index: 190; background: rgba(15, 23, 42, 0.35);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.sdet-book-light.hidden { display: none !important; }
.sdet-book-light-card {
    position: relative; width: min(28rem, 100%); background: #fff; color: #0f172a;
    border-radius: 1.25rem; padding: 1.35rem 1.25rem 1.2rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.sdet-book-light-close {
    position: absolute; top: 0.7rem; right: 0.7rem; width: 2rem; height: 2rem;
    border: 0; border-radius: 999px; background: #f1f5f9; cursor: pointer;
}
.sdet-book-light-kicker { font-size: 0.65rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: #0f766e; margin: 0; }
.sdet-book-light-card h3 { font-size: 1.15rem; font-weight: 900; margin: 0.25rem 0 0; }
.sdet-book-light-author { font-size: 0.8rem; color: #64748b; margin: 0.15rem 0 0.85rem; }
.sdet-book-light-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
.sdet-book-light-stats span { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.85rem; padding: 0.55rem 0.65rem; }
.sdet-book-light-stats strong { display: block; font-size: 0.95rem; }
.sdet-book-light-stats em { font-style: normal; font-size: 0.62rem; color: #64748b; }
.sdet-book-light-bar { height: 0.45rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin: 0.85rem 0; }
.sdet-book-light-bar i { display: block; height: 100%; }
.sdet-book-light-review {
    width: 100%; padding: 0.55rem; border: 0; border-radius: 0.8rem;
    background: #0f766e; color: #fff; font-weight: 800; cursor: pointer;
}

.sdet-indiv-hw {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 0.9rem 1rem;
    display: grid; gap: 0.5rem;
}
.sdet-indiv-hw-title { font-size: 0.75rem; font-weight: 900; color: #0f172a; margin: 0; }
.sdet-hw-field {
    width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 0.7rem;
    padding: 0.5rem 0.7rem; font-size: 0.78rem; background: #fff;
}
.sdet-hw-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sdet-hw-dates label { font-size: 0.65rem; font-weight: 800; color: #64748b; display: grid; gap: 0.25rem; }
.sdet-hw-publish {
    justify-self: start; padding: 0.5rem 0.9rem; border: 0; border-radius: 0.75rem;
    background: #0f766e; color: #fff; font-size: 0.75rem; font-weight: 800; cursor: pointer;
}

.sdet-topics-exam, .sdet-topics-road {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 1.15rem; padding: 1rem 1.05rem; margin-bottom: 0.85rem;
}
.sdet-topics-exam-head { display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 0.75rem; }
.sdet-topics-exam h3, .sdet-topics-road h3 { font-size: 0.95rem; font-weight: 900; margin: 0; color: #0f172a; }
.sdet-topics-exam p, .sdet-topics-road-sub { font-size: 0.72rem; color: #64748b; margin: 0.2rem 0 0; }
.sdet-topics-share {
    font-size: 0.72rem; font-weight: 800; padding: 0.45rem 0.75rem; border: 0; border-radius: 0.75rem;
    background: #0f766e; color: #fff; cursor: pointer;
}
.sdet-topics-exam-subj { margin-top: 0.55rem; }
.sdet-topics-exam-subj strong { font-size: 0.78rem; color: #0f766e; }
.sdet-topics-exam-subj ul { list-style: none; padding: 0; margin: 0.3rem 0 0; }
.sdet-topics-exam-subj li { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; padding: 0.25rem 0; border-bottom: 1px solid #f1f5f9; }
.sdet-topics-exam-subj em.is-kritik { color: #be123c; font-style: normal; font-weight: 800; }
.sdet-topics-exam-subj em.is-orta { color: #b45309; font-style: normal; font-weight: 800; }
.sdet-road-branch { margin-top: 0.85rem; }
.sdet-road-branch h4 { font-size: 0.8rem; font-weight: 900; color: #0f172a; display: flex; align-items: center; gap: 0.4rem; }
.sdet-road-branch h4 small { color: #64748b; font-weight: 700; }
.sdet-road-steps { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.3rem; }
.sdet-road-step {
    display: flex; justify-content: space-between; gap: 0.5rem;
    padding: 0.4rem 0.55rem; border-radius: 0.65rem; font-size: 0.72rem; font-weight: 700;
}
.sdet-road-step.is-done { background: #ecfdf5; color: #047857; }
.sdet-road-step.is-partial { background: #fffbeb; color: #b45309; }
.sdet-road-step.is-missing { background: #fff1f2; color: #be123c; }

.det-mq-topic-picker { margin-top: 0.75rem; }
.det-mq-topic-list { display: grid; gap: 0.45rem; }
.det-mq-topic-item {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; text-align: left; padding: 0.7rem 0.85rem;
    border-radius: 0.85rem; border: 1px solid #e2e8f0; background: #fff; cursor: pointer;
    font-size: 0.8rem; font-weight: 800; color: #0f172a;
}
.det-mq-topic-item em { font-style: normal; color: #0f766e; font-size: 0.7rem; }
.sdet-tb-icon {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 1.45rem; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    position: relative; z-index: 1; margin-bottom: 0.35rem;
}
.sdet-tb-icon-sub { font-size: 1.05rem; opacity: 0.9; }
.sdet-tb-letter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.7rem; height: 1.7rem; border-radius: 0.4rem;
    background: rgba(255,255,255,0.2); font-weight: 900; font-size: 1.1rem;
}

#student-detail-view .ba-active-title { color: #0f172a !important; }
#student-detail-view .ba-active-author { color: #64748b !important; }
#student-detail-view .ba-range-toggle button {
    background: #f1f5f9; color: #475569; border-color: #e2e8f0;
}
#student-detail-view .ba-range-toggle button.is-on {
    background: #ccfbf1; color: #0f766e; border-color: #99f6e4;
}
