:root {
    /* Tasarım rehberi: Primary #2563EB */
    --bulma-primary-h: 217deg;
    --bulma-primary-s: 91%;
    --bulma-primary-l: 53%;
    --bulma-primary-invert-l: 100%;
    --bulma-link-h: 217deg;
    --bulma-link-s: 91%;
    --bulma-link-l: 53%;
    --bulma-link-invert-l: 100%;

    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-light: #eff6ff;
    --brand-muted: #dbeafe;

    --color-success: #16a34a;
    --color-danger: #dc2626;
    --color-warning: #f59e0b;
    --color-bg: #f8fafc;
    --color-card: #ffffff;
    --color-text: #0f172a;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;

    --radius-card: 1rem;
    --radius-btn: 0.75rem;
    --radius-input: 0.75rem;
    --shadow-soft: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, .08);
}

[x-cloak] { display: none !important; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

.title, .subtitle, .label, .button, .navbar, .card-header-title {
    font-family: inherit;
}

/* Navbar — düz kurumsal mavi, gradient yok */
.app-navbar {
    background: var(--brand);
    box-shadow: var(--shadow-soft);
}
.app-navbar .navbar-item,
.app-navbar .navbar-link {
    color: rgba(255, 255, 255, .95);
    background: transparent;
}
.app-navbar a.navbar-item:hover,
.app-navbar .navbar-link:hover,
.app-navbar a.navbar-item:focus,
.app-navbar .navbar-link:focus,
.app-navbar .navbar-item.has-dropdown.is-active > .navbar-link {
    background: rgba(255, 255, 255, .12) !important;
    color: #fff !important;
}
.app-navbar .navbar-link:not(.is-arrowless)::after {
    border-color: #fff !important;
    opacity: .9;
}
.app-navbar .navbar-item.has-dropdown:hover > .navbar-link:not(.is-arrowless)::after,
.app-navbar .navbar-item.has-dropdown.is-active > .navbar-link:not(.is-arrowless)::after {
    border-color: #fff !important;
}
.app-navbar .navbar-link .navbar-role-tag {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    font-weight: 600;
    font-size: .7rem;
}
.app-navbar .navbar-burger { color: #fff; }
.app-navbar .navbar-burger span { background-color: #fff; }
.app-navbar .navbar-dropdown {
    border-top: 2px solid var(--brand-muted);
    box-shadow: var(--shadow-card);
}
.app-navbar .navbar-dropdown .navbar-item { color: var(--color-text); }
.app-navbar .navbar-dropdown .navbar-item:hover { background: var(--brand-light); color: var(--brand-dark); }
@media (max-width: 1023px) {
    .app-navbar .navbar-menu { background: var(--brand-dark); }
    .app-navbar .navbar-item.has-dropdown .navbar-dropdown {
        display: none;
        background: rgba(0, 0, 0, .12);
        padding-left: .75rem;
    }
    .app-navbar .navbar-item.has-dropdown.is-active .navbar-dropdown { display: block; }
    .app-navbar .navbar-dropdown .navbar-item { color: #fff; }
    .app-navbar .navbar-dropdown .navbar-item:hover { background: rgba(255, 255, 255, .1); color: #fff; }
}

/* Kart */
.card {
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    background: var(--color-card);
}
.columns.is-equal-cards .card { height: 100%; }
.card .card-header {
    box-shadow: none;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    background: #fafbfc;
}
.card .card-header-title { font-weight: 600; color: var(--color-text); }

a { text-decoration: none; }

.button { border-radius: var(--radius-btn); font-weight: 600; }
.button.is-brand { background: var(--brand); color: #fff; }
.button.is-brand:hover { background: var(--brand-dark); color: #fff; }

.button.is-primary:not(.is-outlined),
.button.is-primary:not(.is-outlined):hover,
.button.is-primary:not(.is-outlined):focus,
.button.is-primary:not(.is-outlined):active {
    color: #fff;
}
.button.is-primary.is-outlined {
    color: var(--brand);
    border-color: var(--brand);
    background: #fff;
}
.button.is-primary.is-outlined:hover {
    color: var(--brand-dark);
    border-color: var(--brand-dark);
    background: var(--brand-light);
}

/* İstatistik kartları — düz yüzey, sol accent çizgi */
.stat-card {
    border-radius: var(--radius-card);
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.stat-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}
.stat-card .stat-icon {
    font-size: 1.75rem;
    opacity: 1;
    color: var(--color-text-secondary);
}
.stat-card .stat-num {
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--color-text);
}
.stat-card .stat-label { color: var(--color-text-secondary); font-size: .875rem; }
.bg-stat-1::before, .bg-grad-1::before { background: var(--brand); }
.bg-stat-1 .stat-icon, .bg-grad-1 .stat-icon { color: var(--brand); }
.bg-stat-2::before, .bg-grad-2::before { background: var(--color-success); }
.bg-stat-2 .stat-icon, .bg-grad-2 .stat-icon { color: var(--color-success); }
.bg-stat-3::before, .bg-grad-3::before { background: var(--color-warning); }
.bg-stat-3 .stat-icon, .bg-grad-3 .stat-icon { color: var(--color-warning); }

.shortcode-badge {
    font-family: ui-monospace, 'Courier New', monospace;
    letter-spacing: 3px;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: .4rem 1rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--brand-muted);
    display: inline-block;
}

/* Durum etiketleri */
.status-pill {
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-weight: 600;
}
.status-Aktif { background: #dcfce7; color: #166534; }
.status-Taslak { background: #f1f5f9; color: #475569; }
.status-Bekliyor { background: #fef3c7; color: #92400e; }
.status-Bitti { background: #fee2e2; color: #991b1b; }

/* Optik form */
.answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .5rem;
}
.subject-divider {
    grid-column: 1 / -1;
    font-weight: 600;
    font-size: .8rem;
    color: var(--brand-dark);
    padding: .6rem 0 .35rem;
    border-bottom: 1px solid var(--brand-muted);
    margin-top: .35rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.subject-row-header td { background: var(--brand-light); font-size: .875rem; }
.opt-pos { min-width: 1.75rem; font-size: .7rem; }
.opt-cell { cursor: pointer; }
.opt-cell input { display: none; }
.opt-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: border-color .12s, background .12s, color .12s;
    user-select: none;
}
.opt-cell:hover .opt-label { border-color: var(--brand); color: var(--brand); }
.opt-cell input:checked + .opt-label {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.opt-clear { display: inline-flex; align-items: center; padding: 0 .25rem; cursor: pointer; }

.action-card {
    transition: box-shadow .15s, border-color .15s;
    border: 1px solid var(--color-border);
}
.action-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    border-color: var(--brand-muted);
}

/* Sınav ekranı */
.exam-toolbar { position: sticky; top: 0; z-index: 30; }
.exam-progress-wrap {
    flex: 1;
    min-width: 120px;
    max-width: 280px;
    margin: 0 .5rem;
}
.exam-progress-wrap progress.progress {
    height: 6px;
    margin-bottom: 0;
}
.exam-progress-label {
    font-size: .7rem;
    color: var(--color-text-secondary);
    margin-top: 2px;
}
.pdf-wrap { height: calc(100vh - 175px); min-height: 460px; }
.pdf-pages {
    overflow-y: auto;
    background: #525659;
    padding: 12px;
    text-align: center;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.pdf-page-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
    user-select: none;
    -webkit-user-drag: none;
}
.optic-scroll {
    height: calc(100vh - 175px);
    min-height: 460px;
    overflow-y: auto;
}
@media (max-width: 1023px) {
    .pdf-wrap, .optic-scroll { height: calc(100vh - 230px); }
    .exam-progress-wrap { max-width: 100%; order: 3; flex-basis: 100%; }
}
@media print { .pdf-pages { display: none !important; } }

.save-status { font-weight: 600; }

/* Cevap kâğıdı */
.ans-seq { font-family: ui-monospace, 'Courier New', monospace; }
.ans-line { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.ans-rownum {
    width: 34px;
    text-align: right;
    padding-right: 8px;
    font-size: 11px;
    color: var(--color-text-secondary);
}
.ans-ltr {
    position: relative;
    width: 26px;
    height: 28px;
    margin: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
}
.ans-ltr sup { font-size: 8px; font-weight: 700; color: var(--color-success); margin-left: 1px; }
.ans-correct { background: #dcfce7; color: #166534; }
.ans-wrong { background: #fee2e2; color: #991b1b; text-decoration: line-through; }
.ans-empty { background: #f1f5f9; color: #94a3b8; }
.ans-legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.ans-legend.ans-correct { background: #dcfce7; border: 1px solid #86efac; }
.ans-legend.ans-wrong { background: #fee2e2; border: 1px solid #fca5a5; }
.ans-legend.ans-empty { background: #f1f5f9; border: 1px solid var(--color-border); }

/* Giriş ekranı — sade arka plan */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 1rem;
}
.auth-wrapper::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, .08), transparent),
        var(--color-bg);
    z-index: -1;
}
.auth-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid var(--color-border);
}

/* Form */
.label { color: var(--color-text); font-weight: 600; margin-bottom: .35rem; font-size: .875rem; }
.field { margin-bottom: 1rem; }

.input, .textarea, select.input, .select select {
    border-radius: var(--radius-input);
    border: 1.5px solid var(--color-border);
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
    background-color: #fff;
    font-family: inherit;
    height: auto;
}
.input::placeholder, .textarea::placeholder { color: #94a3b8; }
.input:hover, .textarea:hover, select.input:hover, .select select:hover {
    border-color: #cbd5e1;
}
.input:focus, .textarea:focus, select.input:focus, .select select:focus,
.input:active, .textarea:active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
    outline: none;
}

.select:not(.is-multiple) { height: auto; }
.select:not(.is-multiple):not(.is-loading)::after {
    border-color: var(--brand);
    z-index: 4;
}
.select.is-fullwidth, .select.is-fullwidth select { width: 100%; }

select.input, .select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.4em;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9em center;
    background-size: 1em;
    cursor: pointer;
}

.filter-toolbar .select select {
    min-height: 2.5em;
    padding-top: .45em;
    padding-bottom: .45em;
}

input[type="file"].input {
    padding: 0;
    height: auto;
    line-height: 1.5;
    display: flex;
    align-items: center;
    overflow: hidden;
}
input[type="file"].input::file-selector-button,
input[type="file"].input::-webkit-file-upload-button {
    background: var(--brand-light);
    color: var(--brand-dark);
    border: none;
    border-right: 1.5px solid var(--color-border);
    padding: .55em 1em;
    margin-right: .9em;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
input[type="file"].input:hover::file-selector-button { background: var(--brand-muted); }

.checkbox input, .radio input { margin-right: .4rem; transform: scale(1.05); }
.checkbox:hover, .radio:hover { color: var(--brand); }

.control.has-icons-left select.input { padding-left: 2.5em; }
.control.has-icons-left .icon.is-left { color: #94a3b8; z-index: 4; }

.switch-toggle { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none; }
.switch-toggle input { display: none; }
.switch-slider {
    width: 46px; height: 26px; background: #cbd5e1; border-radius: 999px;
    position: relative; transition: background .2s; flex: none;
}
.switch-slider::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.switch-toggle input:checked + .switch-slider { background: var(--brand); }
.switch-toggle input:checked + .switch-slider::after { transform: translateX(20px); }

.form-section-title {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1.5rem 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border);
}
.form-section-title:first-child { margin-top: 0; }

/* Dashboard mobil kart listesi */
.exam-table-desktop { display: block; }
.exam-cards-mobile { display: none; }
@media (max-width: 768px) {
    .exam-table-desktop { display: none; }
    .exam-cards-mobile { display: block; }
}
.exam-mobile-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1rem;
    margin-bottom: .75rem;
    background: var(--color-card);
}
.exam-mobile-card .exam-mobile-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: .35rem;
}

/* Tablo */
.table { color: var(--color-text); }
.table thead th {
    color: var(--color-text-secondary);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    border-bottom-width: 1px;
}
.table tbody tr:hover { background: #f8fafc; }

/* Yardımcılar */
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: 1rem; }
.is-flex-gap { display: flex; gap: .5rem; align-items: center; }
.is-clickable { cursor: pointer; }
.w-100 { width: 100%; }
@media (max-width: 768px) {
    .is-fullwidth-mobile { width: 100%; }
    .column.is-full-mobile {
        flex: none;
        width: 100%;
    }
}

.has-text-grey { color: var(--color-text-secondary) !important; }

/* Sayfa düzeni — ortak başlık & sınav detay */
main.section { padding-top: 1.25rem !important; }
.container.is-fluid { max-width: 1280px; }
.page-container { max-width: 720px; margin: 0 auto; }
.page-container--wide { max-width: 1280px; }

.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}
.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}
.page-header-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: .35rem;
}
.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .75rem;
}
.page-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    color: var(--color-text-secondary);
}
.page-meta-item i { color: var(--brand); font-size: .9rem; }
.page-subtitle {
    margin: .25rem 0 0;
    font-size: .8125rem;
    color: var(--color-text-secondary);
}
.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.page-header-actions form { margin: 0; }

.exam-layout .column.exam-layout-side { position: relative; }
.exam-sidebar {
    position: sticky;
    top: 1rem;
    z-index: 2;
    border: 1px solid var(--brand-muted);
    box-shadow: var(--shadow-card);
}
.exam-sidebar .card-header {
    background: var(--brand-light);
}

.exam-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 1.25rem 1.5rem !important;
}
.exam-shortcode-label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-secondary);
    margin-bottom: .35rem;
}
.exam-join-url {
    display: block;
    margin-top: .5rem;
    font-size: .7rem;
    color: var(--color-text-secondary);
    word-break: break-all;
}
.exam-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}
.exam-stat {
    text-align: center;
    min-width: 4.5rem;
}
.exam-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--brand-dark);
}
.exam-stat.is-success strong { color: var(--color-success); }
.exam-stat span {
    font-size: .75rem;
    color: var(--color-text-secondary);
}

.booklet-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-dark);
}

/* Kitapçık pill renkleri */
.booklet-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 .5rem;
    border-radius: .5rem;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}
.booklet-pill--a { background: var(--brand); }
.booklet-pill--b { background: #16a34a; }
.booklet-pill--c { background: #d97706; }
.booklet-pill--d { background: #7c3aed; }
.booklet-pill--e { background: #64748b; }

.booklet-pdf-form {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}
.booklet-pdf-form .input {
    max-width: 140px;
    margin: 0;
    font-size: .75rem;
    padding: .35rem .5rem;
    height: auto;
}
.qo-toolbar > .button.is-outlined {
    border-width: 1px;
    background: var(--color-card);
}

/* Kitapçıklar sayfası */
.booklet-excel-panel { overflow: hidden; }
.booklet-excel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: .9375rem;
    background: #fafbfc;
    user-select: none;
}
.booklet-excel-summary::-webkit-details-marker { display: none; }
.booklet-excel-panel[open] .booklet-excel-chevron { transform: rotate(180deg); }
.booklet-excel-chevron {
    color: var(--color-text-secondary);
    transition: transform .2s ease;
}
.booklet-excel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}
.booklet-excel-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    flex: 1;
    min-width: 200px;
}
.booklet-excel-form .input { max-width: 220px; margin: 0; }

.booklet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.booklet-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.booklet-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--color-border);
    background: #fafbfc;
}
.booklet-card-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.booklet-card-actions-top {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}
.booklet-card-actions-top form { margin: 0; }
.booklet-card-body {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}
.booklet-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--color-text-secondary);
    margin-bottom: .35rem;
}
.booklet-progress-label strong { color: var(--color-text); }
.booklet-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.booklet-progress-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 999px;
    transition: width .3s ease;
}
.booklet-pdf-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: .5rem;
}
.booklet-add-column { position: relative; }
.booklet-add-card {
    position: sticky;
    top: 1rem;
}
.booklet-suggest-label {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-secondary);
    margin-bottom: .35rem;
}
.booklet-code-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.booklet-code-chip {
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: .5rem;
    padding: .35rem .75rem;
    font-weight: 800;
    font-size: .9375rem;
    cursor: pointer;
    transition: border-color .12s, background .12s;
}
.booklet-code-chip--a { color: var(--brand); }
.booklet-code-chip--b { color: #16a34a; }
.booklet-code-chip--c { color: #d97706; }
.booklet-code-chip--d { color: #7c3aed; }
.booklet-code-chip:hover {
    background: var(--brand-light);
    border-color: var(--brand-muted);
}
.booklet-add-hint {
    margin: 1rem 0 0;
    font-size: .75rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
}
.booklet-empty-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--brand-muted);
    margin-bottom: .75rem;
}

/* Sınav detay — kitapçık önizleme */
.exam-booklet-preview {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
}
.booklet-preview-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: background .12s;
}
.booklet-preview-item:last-child { border-bottom: none; }
.booklet-preview-item:hover {
    background: var(--brand-light);
}
.booklet-preview-meta {
    flex: 1;
    font-size: .8125rem;
    color: var(--color-text-secondary);
}
.booklet-preview-arrow {
    color: var(--color-text-secondary);
    font-size: .75rem;
    opacity: 0;
    transition: opacity .12s;
}
.booklet-preview-item:hover .booklet-preview-arrow { opacity: 1; }

.exam-nav-group { border-bottom: 1px solid var(--color-border); }
.exam-nav-group:last-child { border-bottom: none; }
.exam-nav-label {
    padding: .65rem 1.25rem .25rem;
    margin: 0;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-secondary);
}
.exam-nav-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem 1.25rem;
    color: var(--color-text);
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background .12s, border-color .12s;
}
.exam-nav-link > i:first-child {
    width: 1.25rem;
    text-align: center;
    color: var(--brand);
    font-size: 1rem;
}
.exam-nav-link > i:last-child {
    margin-left: auto;
    font-size: .75rem;
    color: var(--color-text-secondary);
    opacity: 0;
    transition: opacity .12s;
}
.exam-nav-link:hover {
    background: var(--brand-light);
    border-left-color: var(--brand);
    color: var(--brand-dark);
}
.exam-nav-link:hover > i:last-child { opacity: 1; }

/* Sınav formu */
.exam-form-layout .exam-form-sidebar { position: sticky; top: 1rem; }
.exam-publish-toggle {
    align-items: flex-start !important;
    width: 100%;
}
.exam-publish-text { flex: 1; line-height: 1.35; }
.exam-form .select.is-fullwidth select { width: 100%; }

.subject-qcount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .75rem 1rem;
}
.subject-qcount-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.subject-qcount-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-text);
}
.subject-qcount-template {
    font-size: .7rem;
    color: var(--color-text-secondary);
    margin-bottom: .15rem;
}
.subject-qcount-item .input { margin-bottom: 0; }

.form-actions-bar {
    position: sticky;
    bottom: 0;
    z-index: 15;
    display: flex;
    gap: .5rem;
    padding: 1rem 0;
    margin-top: .5rem;
    background: linear-gradient(to top, var(--color-bg) 75%, transparent);
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .exam-form-layout .exam-form-sidebar { position: static; }
    .exam-form-layout .column.is-4 { order: -1; margin-bottom: 0; }
    .subject-qcount-grid { grid-template-columns: repeat(2, 1fr); }
    .exam-sidebar { position: static; }
    .exam-layout .exam-layout-side { order: -1; margin-bottom: 1rem; }
    .exam-overview { flex-direction: column; align-items: flex-start; }
    .exam-stats { width: 100%; justify-content: space-between; }
    .page-header-actions { width: 100%; }
}

/* Soru–Kazanım ekranı */
.qo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    padding: .75rem 1.25rem !important;
}
.qo-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    flex: 1;
    min-width: 200px;
}
.qo-toolbar-form .input { max-width: 180px; margin: 0; }
.qo-toolbar-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
}
.qo-toolbar-hint {
    font-size: .75rem;
    color: var(--color-text-secondary);
    margin-left: auto;
}
.qo-upload-card .label { font-size: .9rem; }
.qo-upload-row { flex-wrap: wrap; }
.qo-upload-row .input { flex: 1; min-width: 180px; }
.has-text-right-desktop { text-align: right; }
.is-fullwidth-mobile { width: auto; }

.qo-details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius, 8px);
    overflow: hidden;
}
.qo-details-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1.25rem;
    cursor: pointer;
    list-style: none;
    background: var(--color-card);
    user-select: none;
}
.qo-details-summary::-webkit-details-marker { display: none; }
.qo-details-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
}
.qo-chevron {
    transition: transform .15s;
    color: var(--color-text-secondary);
    font-size: .85rem;
}
.qo-details.is-open .qo-chevron { transform: rotate(90deg); }
.qo-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.qo-details-body {
    border-top: 1px solid var(--color-border);
    background: var(--color-card);
}

.qo-subject-card .card-header-title { font-size: 1rem; }
.qo-subject-name { color: var(--brand-dark); font-weight: 600; }

.qo-table-head {
    display: grid;
    grid-template-columns: 100px minmax(160px, 240px) minmax(160px, 1fr);
    gap: .75rem;
    padding: .5rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-secondary);
}

.qo-row {
    display: grid;
    grid-template-columns: 100px minmax(160px, 240px) minmax(160px, 1fr);
    gap: .75rem;
    align-items: center;
    padding: .65rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    transition: background .12s;
}
.qo-row:last-child { border-bottom: none; }
.qo-row:hover { background: #fafbfc; }
.qo-row--done { background: #f0fdf4; }
.qo-row--done:hover { background: #ecfdf5; }

.qo-col-soru { display: flex; flex-direction: column; gap: .15rem; }
.qo-num { width: fit-content; font-size: .75rem !important; }
.qo-pos { padding-left: 2px; }

.qo-col-outcome {
    min-width: 0;
    max-width: 240px;
}
.qo-col-outcome .qo-select,
.qo-col-video .input { margin-bottom: 0; width: 100%; max-width: 100%; }
.qo-col-outcome .qo-select {
    font-size: .8rem;
    text-overflow: ellipsis;
}

.qo-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    gap: .5rem;
    padding: 1rem 0;
    background: linear-gradient(to top, var(--color-bg) 70%, transparent);
}

.qo-sidebar { position: sticky; top: 1rem; }

.qo-progress-ring {
    --pct: 0;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--brand) calc(var(--pct) * 1%), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.qo-progress-ring::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: var(--color-card);
    border-radius: 50%;
}
.qo-progress-num {
    position: relative;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-dark);
}

.qo-stat-list { display: flex; flex-direction: column; gap: .65rem; }
.qo-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .875rem;
}

.qo-subject-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: .875rem;
}
.qo-subject-summary:last-child { border-bottom: none; }

/* Sonuç sayfası (öğrenci) */
.mr-page { padding-bottom: 1.5rem; }
.mr-header { border-bottom: none; padding-bottom: 0; margin-bottom: 1rem; }
.mr-meta { margin-top: .35rem; }
.mr-code-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--color-text);
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    padding: .25rem .65rem;
}
.mr-code-badge i { color: var(--color-text-secondary); font-size: .85rem; }

.mr-summary {
    border-left: 4px solid var(--brand);
}
.mr-summary-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem 2rem;
}
.mr-summary-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 110px;
    padding-right: 1.75rem;
    border-right: 1px solid var(--color-border);
}
.mr-summary-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-text-secondary);
}
.mr-summary-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--color-text);
}
.mr-summary-net {
    display: inline-block;
    margin-top: .35rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: .2rem .75rem;
}
.mr-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.mr-summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    padding: .75rem .5rem;
    border-radius: var(--radius-btn);
    background: #f8fafc;
    border: 1px solid var(--color-border);
    text-align: center;
}
.mr-summary-stat strong {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}
.mr-summary-stat span:last-child {
    font-size: .75rem;
    color: var(--color-text-secondary);
}
.mr-summary-stat--ok strong { color: var(--color-success); }
.mr-summary-stat--bad strong { color: var(--color-danger); }
.mr-summary-stat--empty strong { color: var(--color-text-secondary); }

.mr-ranks-card .card-content { padding-top: .85rem !important; }
.mr-ranks-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -.25rem;
    padding: 0 .25rem .15rem;
}
.mr-rank-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .65rem;
    min-width: 0;
}
.mr-rank-item {
    position: relative;
    text-align: center;
    padding: .85rem .5rem .75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-btn);
    background: var(--color-card);
    transition: box-shadow .15s ease, transform .15s ease;
}
.mr-rank-item:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}
.mr-rank-icon {
    display: block;
    font-size: 1rem;
    margin-bottom: .25rem;
    opacity: .75;
}
.mr-rank-label {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-text-secondary);
    margin-bottom: .1rem;
}
.mr-rank-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text);
}
.mr-rank-total {
    font-size: .7rem;
    color: var(--color-text-secondary);
}
.mr-rank-item--general { border-top: 3px solid var(--color-warning); }
.mr-rank-item--il { border-top: 3px solid #64748b; }
.mr-rank-item--ilce { border-top: 3px solid #0d9488; }
.mr-rank-item--school { border-top: 3px solid var(--color-success); }
.mr-rank-item--class { border-top: 3px solid #7c3aed; }

.mr-subjects-table tbody tr:hover { background: #f8fafc; }
.mr-subject-cell { font-weight: 600; font-size: .875rem; }
.mr-net-pill {
    display: inline-block;
    min-width: 2.25rem;
    font-weight: 700;
    font-size: .8125rem;
    color: var(--color-text);
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: .15rem .55rem;
}

.mr-subject-card {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--color-border);
}
.mr-subject-card:last-child { border-bottom: none; }
.mr-subject-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .5rem;
}
.mr-subject-name { font-weight: 600; font-size: .9rem; }
.mr-subject-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.mr-mini-stat {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .8125rem;
    font-weight: 600;
    border-radius: 999px;
    padding: .2rem .55rem;
}
.mr-mini-stat i { font-size: .75rem; }
.mr-mini-stat--ok { color: #166534; background: #dcfce7; }
.mr-mini-stat--bad { color: #991b1b; background: #fee2e2; }
.mr-mini-stat--empty { color: #64748b; background: #f1f5f9; }

.mr-outcome-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .5rem .75rem;
    padding: .55rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: .8125rem;
}
.mr-outcome-row:last-child { border-bottom: none; }
.mr-outcome-main {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    min-width: 0;
}
.mr-outcome-code {
    flex-shrink: 0;
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: .7rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: #f1f5f9;
    border-radius: 4px;
    padding: .1rem .35rem;
}
.mr-outcome-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
}
.mr-outcome-meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-shrink: 0;
}
.mr-outcome-bar {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}
.mr-outcome-track {
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.mr-outcome-fill {
    height: 100%;
    border-radius: 999px;
}
.mr-outcome-fill.is-success { background: var(--color-success); }
.mr-outcome-fill.is-danger { background: var(--color-danger); }
.mr-outcome-pct {
    font-size: .75rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: right;
}
.mr-outcomes-card .card-header .tag { margin-left: auto; }

.mr-outcome-subject {
    border-bottom: 1px solid var(--color-border);
}
.mr-outcome-subject:last-child { border-bottom: none; }
.mr-outcome-subject-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    cursor: pointer;
    list-style: none;
    background: #fafbfc;
    user-select: none;
}
.mr-outcome-subject-summary::-webkit-details-marker { display: none; }
.mr-outcome-subject-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    font-size: .875rem;
    color: var(--color-text);
    min-width: 0;
}
.mr-outcome-chevron {
    flex-shrink: 0;
    transition: transform .15s ease;
    color: var(--color-text-secondary);
    font-size: .8rem;
}
.mr-outcome-subject[open] .mr-outcome-chevron { transform: rotate(90deg); }
.mr-outcome-subject[open] > .mr-outcome-subject-summary {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
}
.mr-outcome-subject-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
    flex-shrink: 0;
}
.mr-outcome-subject-body {
    background: var(--color-card);
}

.mr-answer-body {
    max-height: min(560px, calc(100vh - 220px));
    overflow: auto;
    padding-top: .75rem !important;
}
.mr-ans-seq { padding: .15rem 0; }
.mr-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    font-size: .75rem;
    color: var(--color-text-secondary);
    margin-left: auto;
}
.mr-legend .ans-legend { margin-right: .2rem; }

@media (min-width: 1024px) {
    .mr-answer-card { position: sticky; top: 1rem; }
    .mr-layout .column.is-5 > .card:last-child { margin-bottom: 0; }
}

@media (max-width: 900px) {
    .mr-rank-grid {
        grid-template-columns: repeat(5, minmax(92px, 1fr));
        min-width: max(100%, 460px);
    }
}

@media (max-width: 768px) {
    .mr-summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .mr-summary-score {
        align-items: center;
        text-align: center;
        width: 100%;
        padding-right: 0;
        padding-bottom: .85rem;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .mr-summary-value { font-size: 2.15rem; }
    .mr-summary-stats { gap: .5rem; }
    .mr-summary-stat { padding: .6rem .35rem; }
    .mr-summary-stat strong { font-size: 1.2rem; }

    .mr-actions .button { flex: 1 1 calc(50% - .25rem); }
    .mr-layout .column.is-7 { order: -1; margin-bottom: 1rem; }
    .mr-answer-body { max-height: none; }
    .mr-outcome-row {
        grid-template-columns: 1fr;
        gap: .35rem;
        padding: .6rem .85rem;
    }
    .mr-outcome-subject-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: .45rem;
    }
    .mr-outcome-subject-meta { width: 100%; }
    .mr-outcome-meta { justify-content: flex-start; }
    .mr-outcome-track { flex: 1; width: auto; max-width: 120px; }
}

@media (max-width: 480px) {
    .mr-summary-value { font-size: 1.85rem; }
    .mr-rank-num { font-size: 1.2rem; }
    .mr-ans-seq .ans-ltr {
        width: 22px;
        height: 24px;
        font-size: 12px;
        margin: 1px;
    }
    .mr-ans-seq .ans-rownum {
        width: 28px;
        font-size: 10px;
        padding-right: 4px;
    }
}

/* ========== Responsive — global ========== */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-desktop { display: block; }
.cards-mobile { display: none; }

.tabs.is-boxed > ul,
.tabs.is-toggle > ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tabs li { flex-shrink: 0; }

.card-header.is-wrap {
    flex-wrap: wrap;
    height: auto;
    gap: .5rem;
    padding: .75rem 1rem;
}
.card-header.is-wrap .card-header-title { flex-shrink: 1; min-width: 0; }
.card-header.is-wrap .card-header-icon {
    margin-left: auto;
    flex-wrap: wrap;
    gap: .35rem;
    max-width: 100%;
}

.modal-card {
    width: 92vw;
    max-width: 520px;
}

/* --- In-app yardım modal & kurulum rehberi --- */
.help-modal.modal {
    display: none;
}
.help-modal.modal.is-active {
    display: flex;
}
.help-modal-card {
    max-width: 720px;
    width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.help-modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 8rem);
}
.help-visual-wrap {
    background: var(--brand-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.help-visual-scene {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.help-visual-icon {
    font-size: 3.5rem;
    color: var(--brand);
    animation: help-pulse 2.4s ease-in-out infinite;
}

/* Kitapçık A–D animasyonu */
.help-vis-booklets {
    display: flex;
    align-items: center;
    gap: .5rem;
    position: relative;
}
.help-vis-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .5rem;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    animation: help-pill-float 3s ease-in-out infinite;
}
.help-vis-pill--a { background: var(--brand); animation-delay: 0s; }
.help-vis-pill--b { background: #16a34a; animation-delay: .3s; }
.help-vis-pill--c { background: #d97706; animation-delay: .6s; }
.help-vis-pill--d { background: #7c3aed; animation-delay: .9s; }
.help-vis-pdf {
    position: absolute;
    right: -1.5rem;
    bottom: -.5rem;
    font-size: 1.75rem;
    color: var(--color-danger);
    opacity: .85;
    animation: help-pulse 2s ease-in-out infinite;
}

/* Excel grid */
.help-vis-excel {
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 200px;
}
.help-vis-excel-head,
.help-vis-excel-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.help-vis-excel-head span {
    height: 8px;
    border-radius: 3px;
    background: var(--brand-muted);
}
.help-vis-excel-row span {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: .25rem .35rem;
    text-align: center;
}
.help-vis-excel-row--anim span:nth-child(n+2) {
    animation: help-cell-highlight 2.5s ease-in-out infinite;
}
.help-vis-excel-row--anim span:nth-child(2) { animation-delay: 0s; }
.help-vis-excel-row--anim span:nth-child(3) { animation-delay: .4s; }
.help-vis-excel-row--anim span:nth-child(4) { animation-delay: .8s; }

/* Akış diyagramları */
.help-vis-flow,
.help-vis-publish,
.help-vis-key {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    justify-content: center;
}
.help-vis-code,
.help-vis-badge,
.help-vis-pos,
.help-vis-ans {
    padding: .35rem .65rem;
    border-radius: .5rem;
    font-size: .8125rem;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--color-border);
}
.help-vis-badge--draft { color: var(--color-text-secondary); }
.help-vis-badge--live { background: #dcfce7; border-color: #86efac; color: #166534; }
.help-vis-badge--result { background: var(--brand-light); border-color: var(--brand-muted); color: var(--brand-dark); }
.help-vis-ans { background: #dcfce7; color: #166534; }
.help-vis-arrow { color: var(--brand); font-size: 1.1rem; animation: help-pulse 1.8s ease-in-out infinite; }
.help-vis-person, .help-vis-exam { font-size: 1.75rem; color: var(--brand); }

/* Kurulum adımları */
.help-vis-steps {
    display: flex;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.help-vis-steps li {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--brand-dark);
    animation: help-pill-float 3s ease-in-out infinite;
}
.help-vis-steps li:nth-child(2) { animation-delay: .25s; }
.help-vis-steps li:nth-child(3) { animation-delay: .5s; }
.help-vis-steps li:nth-child(4) { animation-delay: .75s; }

@keyframes help-pill-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes help-cell-highlight {
    0%, 100% { background: #fff; }
    50% { background: var(--brand-muted); border-color: var(--brand); }
}
@keyframes help-pulse {
    0%, 100% { opacity: .55; transform: scale(.95); }
    50% { opacity: 1; transform: scale(1); }
}

.help-lottie-wrap {
    background: var(--brand-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: .5rem;
    margin-bottom: 1rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.help-lottie-wrap lottie-player,
.help-lottie-canvas {
    width: 100%;
    max-width: 380px;
    height: 160px;
    margin: 0 auto;
}
.help-lottie-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    font-size: 3rem;
    color: var(--brand);
    animation: help-pulse 2s ease-in-out infinite;
}
@keyframes help-pulse {
    0%, 100% { opacity: .55; transform: scale(.95); }
    50% { opacity: 1; transform: scale(1); }
}
.help-section { margin-bottom: 1rem; }
.help-section:last-child { margin-bottom: 0; }
.help-section-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: .35rem;
}
.help-section-body {
    font-size: .875rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: .35rem;
}
.help-tips {
    font-size: .8125rem;
    color: var(--color-text-secondary);
    margin: .35rem 0 0 1.1rem;
    list-style: disc;
}
.help-tips li { margin-bottom: .25rem; }
.help-table { font-size: .75rem !important; }
.help-table-scroll { overflow-x: auto; }
.help-code {
    font-size: .75rem;
    background: #f1f5f9;
    border: 1px solid var(--color-border);
    border-radius: .5rem;
    padding: .65rem .85rem;
    white-space: pre-wrap;
    line-height: 1.5;
    color: var(--color-text);
}
.help-trigger { white-space: nowrap; }
body.help-modal-open { overflow: hidden; }

.help-modal-enter { transition: opacity .2s ease, transform .2s ease; }
.help-modal-enter-start { opacity: 0; transform: translateY(12px) scale(.98); }
.help-modal-enter-end { opacity: 1; transform: translateY(0) scale(1); }
.help-modal-leave { transition: opacity .15s ease, transform .15s ease; }
.help-modal-leave-start { opacity: 1; transform: translateY(0) scale(1); }
.help-modal-leave-end { opacity: 0; transform: translateY(8px) scale(.99); }

.setup-checklist {
    border-left: 4px solid var(--brand);
    overflow: hidden;
}
.setup-checklist-summary {
    display: flex;
    align-items: center;
    gap: .75rem 1rem;
    padding: .85rem 1.25rem;
    cursor: pointer;
    list-style: none;
    background: #fafbfc;
    border-bottom: 1px solid transparent;
    user-select: none;
}
.setup-checklist-summary::-webkit-details-marker { display: none; }
.setup-checklist[open] .setup-checklist-summary {
    border-bottom-color: var(--color-border);
}
.setup-checklist-summary-title {
    font-weight: 600;
    font-size: .9375rem;
    color: var(--color-text);
    white-space: nowrap;
}
.setup-checklist-progress {
    flex: 1;
    min-width: 80px;
    max-width: 200px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}
.setup-checklist-progress-bar {
    display: block;
    height: 100%;
    background: var(--color-success);
    border-radius: 999px;
    transition: width .3s ease;
}
.setup-checklist-count { flex-shrink: 0; }
.setup-checklist-chevron {
    flex-shrink: 0;
    color: var(--color-text-secondary);
    font-size: .85rem;
    transition: transform .2s ease;
}
.setup-checklist[open] .setup-checklist-chevron { transform: rotate(180deg); }
.setup-checklist-body { background: var(--color-card); }
.setup-checklist-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.setup-step {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: .875rem;
}
.setup-step:last-child { border-bottom: none; }
.setup-step-icon { flex-shrink: 0; width: 1.25rem; text-align: center; }
.setup-step--done .setup-step-icon { color: var(--color-success); }
.setup-step--pending .setup-step-icon { color: var(--color-text-secondary); }
.setup-step-label {
    flex: 1;
    min-width: 0;
    color: var(--color-text);
    font-weight: 500;
}
.setup-step-label:hover { color: var(--brand-dark); }
.setup-step-help {
    flex-shrink: 0;
    font-size: .75rem !important;
    height: auto !important;
    padding: .15rem .4rem !important;
}
.setup-checklist-foot {
    padding: .65rem 1rem;
    border-top: 1px solid var(--color-border);
    background: #fafbfc;
}
.setup-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1024px) {
    .setup-checklist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .setup-checklist-grid { grid-template-columns: 1fr; }
    .setup-checklist-summary { flex-wrap: wrap; }
    .setup-checklist-progress { max-width: none; order: 3; flex-basis: 100%; }
}

@media (max-width: 1023px) {
    main.section { padding-top: 1rem !important; }
    .container.is-fluid { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 768px) {
    .table-desktop { display: none !important; }
    .cards-mobile { display: block !important; }

    .level:not(.is-mobile) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }
    .level:not(.is-mobile) .level-left,
    .level:not(.is-mobile) .level-right {
        width: 100%;
    }
    .level:not(.is-mobile) .level-right .buttons {
        flex-wrap: wrap;
        width: 100%;
    }
    .level:not(.is-mobile) .level-right .button { flex: 1 1 auto; }

    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    .page-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .page-header-actions .button { flex: 1 1 calc(50% - .25rem); }

    .filter-toolbar .column {
        flex: none;
        width: 100%;
    }

    .stat-card { padding: 1rem; }
    .stat-card .stat-num { font-size: 1.5rem; }

    .booklet-pdf-form { width: 100%; }
    .booklet-pdf-form .input { max-width: none; flex: 1; min-width: 0; }

    .booklet-add-card { position: static; }
    .booklet-layout .booklet-add-column { order: -1; margin-bottom: 1rem; }
    .booklet-grid { grid-template-columns: 1fr; }
    .booklet-excel-form .input { max-width: none; flex: 1; }
    .booklet-excel-actions .button { flex: 1 1 auto; }

    .outcome-layout .column.is-5 { order: -1; }

    .answer-grid {
        grid-template-columns: 1fr;
    }

    .data-mobile-card {
        border: 1px solid var(--color-border);
        border-radius: var(--radius-card);
        padding: .85rem 1rem;
        margin-bottom: .65rem;
        background: var(--color-card);
    }
    .data-mobile-card:last-child { margin-bottom: 0; }
    .data-mobile-card-title {
        font-weight: 600;
        color: var(--color-text);
        margin-bottom: .35rem;
    }
    .data-mobile-card-meta {
        font-size: .8125rem;
        color: var(--color-text-secondary);
        margin-bottom: .5rem;
    }
    .data-mobile-card-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .35rem;
    }

    .participant-info-grid .column {
        flex: none;
        width: 50%;
    }

    .qo-row {
        grid-template-columns: 1fr;
        gap: .5rem;
        padding: .85rem 1rem;
    }
    .qo-col-outcome { max-width: none; }
    .qo-col-soru {
        flex-direction: row;
        align-items: center;
        gap: .5rem;
    }
    .qo-sidebar { position: static; }
    .columns .column.is-4 { order: -1; margin-bottom: 1rem; }
    .has-text-right-desktop { text-align: left; margin-top: .75rem; }
    .is-fullwidth-mobile { width: 100%; }
    .qo-details-summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .qo-upload-row .button { width: 100%; }
}

/* Sınav türleri listesi & form */
.examtype-card {
    transition: box-shadow .15s, border-color .15s;
}
.examtype-card:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, .07);
    border-color: var(--brand-muted);
}
.examtype-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.examtype-card .card-content { padding: 0; }
.examtype-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem 1rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--color-border);
    background: #fafbfc;
}
.examtype-card-title {
    flex: 1;
    min-width: 0;
}
.examtype-card-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.examtype-card-head .button.is-outlined {
    background: #fff;
    border-color: var(--brand);
    color: var(--brand-dark);
}
.examtype-card-head .button.is-outlined:hover {
    background: var(--brand-light);
    border-color: var(--brand-dark);
    color: var(--brand-dark);
}
.examtype-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 .15rem;
    line-height: 1.3;
}
.examtype-desc {
    margin: 0;
    font-size: .8125rem;
    color: var(--color-text-secondary);
    max-width: 42rem;
}
.examtype-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .55rem;
    padding: .85rem 1.35rem;
    border-bottom: 1px solid var(--color-border);
}
.examtype-metric {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: .3rem .65rem;
}
.examtype-metric i { color: var(--brand); font-size: .85rem; }
.examtype-metric.is-accent {
    background: var(--brand-light);
    border-color: var(--brand-muted);
    color: var(--brand-dark);
}
.examtype-metric.is-muted { opacity: .85; }
.examtype-subjects {
    padding: .65rem 1.35rem 1.1rem;
}
.examtype-subjects-head,
.examtype-subject-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(140px, 2fr) 4.5rem;
    gap: .65rem 1rem;
    align-items: center;
}
.examtype-subjects-head {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--color-text-secondary);
    padding-bottom: .45rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: .35rem;
}
.examtype-subject-name {
    font-size: .875rem;
    font-weight: 600;
    color: var(--color-text);
}
.examtype-subject-bar-wrap {
    position: relative;
    height: 1.35rem;
    background: #f1f5f9;
    border-radius: .35rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.examtype-subject-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--brand-muted);
    border-radius: .35rem 0 0 .35rem;
    min-width: 2px;
    transition: width .3s ease;
}
.examtype-subject-count {
    position: relative;
    z-index: 1;
    font-size: .75rem;
    font-weight: 700;
    color: var(--brand-dark);
    padding-left: .5rem;
}
.examtype-subject-coef {
    text-align: right;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-variant-numeric: tabular-nums;
}
.examtype-subject-row + .examtype-subject-row { margin-top: .35rem; }
.examtype-empty-subjects {
    margin: 0;
    padding: 1rem 1.35rem 1.25rem;
    font-size: .8125rem;
    color: var(--color-text-secondary);
    background: #fffbeb;
    border-top: 1px solid #fde68a;
}
.examtype-empty-icon {
    display: block;
    font-size: 2.5rem;
    color: var(--brand-muted);
    margin-bottom: .75rem;
}
.examtype-formula {
    margin-top: .75rem;
    padding: .65rem .85rem;
    background: var(--brand-light);
    border-radius: var(--radius-btn);
    color: var(--brand-dark);
    border: 1px solid var(--brand-muted);
}
.examtype-subject-table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--color-text-secondary);
    background: #fafbfc;
    border-bottom-width: 1px;
}
.examtype-subject-table .col-narrow { width: 7rem; max-width: 7rem; }
.examtype-subject-table .col-check { width: 3.5rem; }
.examtype-subject-table td .input {
    font-size: .875rem;
    padding: .45rem .65rem;
    height: auto;
}
.examtype-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: .25rem;
}
.examtype-delete-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 1.5rem;
}

@media (max-width: 768px) {
    .examtype-form .columns.is-desktop { display: block; }
    .examtype-subject-table thead { display: none; }
    .examtype-subject-table tbody tr {
        display: block;
        padding: .85rem 1rem;
        border-bottom: 1px solid var(--color-border);
    }
    .examtype-subject-table tbody tr:last-child { border-bottom: none; }
    .examtype-subject-table td {
        display: block;
        width: 100%;
        max-width: none;
        padding: .25rem 0;
        border: none;
    }
    .examtype-subject-table td.col-check {
        text-align: left;
        padding-top: .5rem;
    }
    .examtype-subject-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: var(--color-text-secondary);
        margin-bottom: .15rem;
    }
    .examtype-subject-table td:first-of-type::before { content: 'Ders adı'; }
    .examtype-subject-table td:nth-of-type(2)::before { content: 'Sıra'; }
    .examtype-subject-table td:nth-of-type(3)::before { content: 'Soru sayısı'; }
    .examtype-subject-table td:nth-of-type(4)::before { content: 'Katsayı'; }
    .examtype-subjects-head { display: none; }
    .examtype-subject-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: .25rem .65rem;
        padding: .55rem 0;
        border-bottom: 1px solid var(--color-border);
    }
    .examtype-subject-row:last-child { border-bottom: none; }
    .examtype-subject-bar-wrap { grid-column: 1 / -1; }
    .examtype-subject-coef {
        grid-row: 1;
        grid-column: 2;
    }
}
