/* ================================================================
   front.css  —  Learnfy Frontend UI
   Build gerekmez. Sunucudan direkt servis edilir.
   Değişiklik yapınca sayfayı yenile, hazır.
   ================================================================ */

/* ── Temel ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Sayfa Wrapper ──────────────────────────────────────────────── */
.fl-page {
    min-height: 100vh;
    background: #eef0f5;
    color: #111827;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.fl-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 1rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
@media (min-width: 768px) { .fl-nav { padding: 0 1.5rem; } }

.fl-nav__logo { display: flex; align-items: center; }
.fl-nav__spacer { flex: 1; }
.fl-nav__actions { display: flex; align-items: center; gap: .5rem; }

/* Navbar buton / link */
.fl-nav-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    background: #fff;
    padding: .4rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    text-decoration: none;
    transition: background 150ms;
    font-family: inherit;
    line-height: 1.25rem;
    white-space: nowrap;
}
.fl-nav-btn:hover { background: #f9fafb; color: #111827; }

/* Lokasyon dropdown */
.fl-location { position: relative; }
.fl-location summary { cursor: pointer; list-style: none; }
.fl-location summary::-webkit-details-marker { display: none; }
.fl-location__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1000;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .625rem;
    padding: .375rem;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.fl-location__item {
    display: block;
    padding: .5rem .75rem;
    border-radius: .375rem;
    font-size: .875rem;
    color: #374151;
    text-decoration: none;
    transition: background 150ms;
}
.fl-location__item:hover { background: #f3f4f6; color: #111827; }

/* ── Main Content ────────────────────────────────────────────────── */
.fl-main {
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    padding: 1.5rem 1rem;
}
@media (min-width: 768px) { .fl-main { padding: 1.5rem; } }

/* ================================================================
   Account Layout
   ================================================================ */
.al-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}
@media (min-width: 768px) { .al-wrap { flex-direction: row; } }

.al-sidebar {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}
@media (min-width: 768px) { .al-sidebar { width: 220px; } }

.al-sidebar__item {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-left: 3px solid transparent;
    padding: .625rem 1rem;
    font-size: .875rem;
    color: #374151;
    text-decoration: none;
    transition: background 150ms, color 150ms;
}
.al-sidebar__item:hover { background: #f9fafb; }
.al-sidebar__item--active {
    border-left-color: #4f46e5;
    background: #f5f3ff;
    font-weight: 600;
    color: #4f46e5;
}

.al-badge-count {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    padding: 0 .375rem;
    border-radius: 9999px;
    background: #ef4444;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}
.al-badge-active {
    margin-left: auto;
    padding: .125rem .5rem;
    border-radius: 9999px;
    background: #dcfce7;
    font-size: 10px;
    font-weight: 600;
    color: #166534;
}

.al-content { min-width: 0; flex: 1; }

.al-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.al-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* ================================================================
   Auth Layout
   ================================================================ */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f9fafb;
    padding: 3rem 1rem;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
.auth-logo { margin-bottom: 2rem; display: flex; justify-content: center; }
.auth-heading { margin-bottom: 1.5rem; text-align: center; }
.auth-heading h1 { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 0; }
.auth-heading p  { margin-top: .25rem; font-size: .875rem; color: #6b7280; }
.auth-card {
    width: 100%;
    max-width: 24rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

/* ================================================================
   Welcome Page
   ================================================================ */
.wl-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #f9fafb;
    padding: 2.5rem 1rem;
    color: #111827;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
.wl-logo {
    margin-bottom: 2.75rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
}
.wl-logo__icon {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    box-shadow: 0 4px 12px rgba(79,70,229,.35);
}
.wl-logo__text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.04em;
    color: #111827;
}
.wl-logo__text span { color: #4f46e5; }

.wl-heading { margin-bottom: 2.5rem; text-align: center; }
.wl-heading h1 {
    font-size: clamp(1.35rem, 4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.25;
    margin: 0 0 .5rem;
}
.wl-heading p { font-size: .9rem; color: #6b7280; margin: 0; }
.wl-sep { margin: 0 .5rem; color: #9ca3af; }

.wl-grid {
    display: grid;
    width: 100%;
    max-width: 300px;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}
@media (min-width: 581px) { .wl-grid { max-width: 660px; grid-template-columns: repeat(3, 1fr); } }

.wl-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    padding: 2rem 1.25rem 1.75rem;
    text-align: center;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.wl-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ede9fe 0%, #fff 70%);
    opacity: 0;
    transition: opacity 200ms;
}
.wl-card:hover {
    border-color: #4f46e5;
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(79,70,229,.18);
}
.wl-card:hover::after { opacity: 1; }
.wl-card--active {
    border-color: #4f46e5;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.wl-card__badge {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
    border-radius: 9999px;
    background: #4f46e5;
    padding: .2rem .55rem;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: #fff;
    text-transform: uppercase;
}
.wl-card__flag { position: relative; z-index: 1; font-size: 3rem; margin-bottom: .8rem; line-height: 1; }
.wl-card__name { position: relative; z-index: 1; font-size: 1.05rem; font-weight: 600; margin-bottom: .25rem; }
.wl-card__domain { position: relative; z-index: 1; font-size: .75rem; color: #6b7280; }
.wl-card__go {
    position: relative;
    z-index: 1;
    margin-top: .85rem;
    font-size: .78rem;
    font-weight: 600;
    color: #4f46e5;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 200ms, transform 200ms;
}
.wl-card:hover .wl-card__go { opacity: 1; transform: translateY(0); }

.wl-footer {
    margin-top: 3rem;
    text-align: center;
    font-size: .76rem;
    color: #6b7280;
}
.wl-footer a { color: #6b7280; text-decoration: none; transition: color 150ms; }
.wl-footer a:hover { color: #4f46e5; }
.wl-footer__sep { margin: 0 .4rem; }

/* ================================================================
   Ortak Form Elemanları
   ================================================================ */
.f-label {
    display: block;
    margin-bottom: .375rem;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
}
.f-input {
    display: block;
    width: 100%;
    border-radius: .75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: .625rem .75rem;
    font-size: .875rem;
    color: #111827;
    outline: none;
    font-family: inherit;
    transition: border-color 150ms, box-shadow 150ms;
}
.f-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.f-input:disabled { background: #f9fafb; color: #9ca3af; cursor: not-allowed; }

.f-error { margin-top: .25rem; font-size: .75rem; color: #dc2626; }
.f-help  { margin-top: .25rem; font-size: .75rem; color: #9ca3af; }

.f-field { margin-bottom: 1rem; }

/* Butonlar */
.f-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    border-radius: .75rem;
    background: #4f46e5;
    padding: .625rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms;
    text-decoration: none;
    white-space: nowrap;
}
.f-btn:hover:not(:disabled) { background: #4338ca; color: #fff; }
.f-btn:disabled { opacity: .5; cursor: not-allowed; }
.f-btn--danger  { background: #dc2626; }
.f-btn--danger:hover:not(:disabled) { background: #b91c1c; }
.f-btn--block { width: 100%; }
.f-btn--amber  { background: #d97706; }
.f-btn--amber:hover:not(:disabled) { background: #b45309; }

/* ================================================================
   Frontend Kartlar
   ================================================================ */
.f-card {
    margin-bottom: 1.25rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
@media (min-width: 768px) { .f-card { padding: 1.5rem; } }
.f-card__title {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

/* Uyarı / Bilgi kutuları */
.f-alert {
    margin-bottom: 1rem;
    border-radius: .75rem;
    border: 1px solid;
    padding: .75rem 1rem;
    font-size: .875rem;
}
.f-alert--success { background: #f0fdf4; border-color: #86efac; color: #166534; }
.f-alert--warning { background: #fef9c3; border-color: #fde047; color: #854d0e; }
.f-alert--error   { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }

/* Info satırı (profil bilgi tablosu) */
.f-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .625rem 0;
    font-size: .875rem;
    border-bottom: 1px solid #f3f4f6;
}
.f-info-row:last-child { border-bottom: none; }
.f-info-row__label { color: #6b7280; }
.f-info-row__value { font-weight: 500; color: #374151; }
.f-info-row__value--success { font-weight: 600; color: #059669; }

/* Sayfalama */
.f-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}
.f-pagination__btn {
    border-radius: .75rem;
    border: 1px solid #d1d5db;
    padding: .375rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    text-decoration: none;
    transition: background 150ms;
    cursor: pointer;
}
.f-pagination__btn:hover { background: #f9fafb; }
.f-pagination__info { font-size: .75rem; color: #9ca3af; }

/* ================================================================
   Category Slider
   ================================================================ */
.category-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    border: none;
    cursor: pointer;
    transition: background 150ms;
    color: #6b7280;
}
.category-arrow:hover { background: #f9fafb; }
.category-arrow--left  { left:  0; transform: translateY(-50%) translateX(-50%); }
.category-arrow--right { right: 0; transform: translateY(-50%) translateX(50%); }

/* ── Kategori kart (yatay scroll içi) ──────────────────────────── */
.urk-cat-link {
    flex-shrink: 0;
    width: 250px;
    height: 68px;
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    transition: transform 150ms, box-shadow 150ms, border-color 150ms;
}
.urk-cat-link:hover {
    box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, .12);
    border-color: #c7d2fe;
}
.urk-cat-link-active {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 2px #c7d2fe, 0 4px 12px rgba(79,70,229,.15);
}
.urk-cat-link-passive { /* default */ }

/* Sol: resim veya harf */
.urk-cat-link-a {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}
.urk-cat-link-b {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    /* gradient inline style ile set edilir */
}

/* Sağ: isim */
.urk-cat-link-c {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    word-break: break-word;
    overflow: hidden;
}

/* ================================================================
   Exam Sayfaları — Ortak Elemanlar
   ================================================================ */
.ex-back-btn {
    display: inline-flex;
    align-items: center;
    border-radius: .5rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: .4rem .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: background 150ms;
    cursor: pointer;
    font-family: inherit;
}
.ex-back-btn:hover { background: #f9fafb; color: #111827; }

.ex-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    font-size: .875rem;
    color: #6b7280;
    margin-bottom: .75rem;
}
.ex-breadcrumb a { color: #6b7280; text-decoration: none; transition: color 150ms; }
.ex-breadcrumb a:hover { color: #4f46e5; }
.ex-breadcrumb__sep { color: #d1d5db; }
.ex-breadcrumb__current { font-weight: 500; color: #374151; }

.ex-tag {
    display: inline-block;
    border-radius: 9999px;
    padding: .2rem .6rem;
    font-size: .7rem;
    font-weight: 600;
}
.ex-tag--purple { background: #ede9fe; color: #4f46e5; }
.ex-tag--gray   { background: #f3f4f6; color: #4b5563; font-weight: 500; }
.ex-tag--red    { background: #fef2f2; color: #dc2626; }

.ex-section { margin-bottom: 2rem; }
.ex-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #111827;
    margin: 0 0 1rem;
}
.ex-section-sub {
    font-size: .875rem;
    color: #6b7280;
    margin: 0 0 .75rem;
}

/* ================================================================
   Exams Index Sayfası (.exi-*)
   ================================================================ */
.exi-topbar {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) {
    .exi-topbar { flex-direction: row; align-items: center; justify-content: space-between; }
}

.exi-search-wrap {
    position: relative;
    width: 100%;
}
@media (min-width: 640px) { .exi-search-wrap { max-width: 320px; } }

.exi-search-icon {
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: .75rem;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #6b7280;
}
.exi-search-input {
    width: 100%;
    border-radius: .5rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: .5rem .75rem .5rem 2.25rem;
    font-size: .875rem;
    color: #111827;
    outline: none;
    font-family: inherit;
    transition: border-color 150ms, box-shadow 150ms;
}
.exi-search-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79,70,229,.12);
}

.exi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px)  { .exi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .exi-grid { grid-template-columns: repeat(3, 1fr); } }

.exi-card {
    overflow: hidden;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: transform 150ms, box-shadow 150ms;
}
.exi-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }

.exi-card__img {
    position: relative;
}

/* Görsel üstü badge grubu */
.exi-card__img-badges {
    position: absolute;
    right: 10px;
    top: 10px;
    display: flex;
    gap: 6px;
}

.exi-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.exi-badge--red {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.9);
}

/* Kategori + ders bölümü */
.exi-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.exi-card__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: #9ca3af;
}

.exi-card__crumb {
    white-space: nowrap;
}

.exi-card__crumb-sep {
    margin: 0 5px;
    color: #d1d5db;
}

.exi-card__subject {
    flex-shrink: 0;
    font-size: 12px;
}

.exi-card__img {
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #f3f4f6;
}
.exi-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.exi-card__body { padding: 1.25rem; }
.exi-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    margin-bottom: .75rem;
}
.exi-card__sep { font-size: .75rem; color: #9ca3af; }
.exi-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    margin: 0 0 .375rem;
    min-height: 75px;
}
.exi-card__desc {
    font-size: .875rem;
    line-height: 1.625;
    color: #6b7280;
    margin: .5rem 0 0;
}
.exi-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}
.exi-card__btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    border-radius: .5rem;
    background: #4f46e5;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background 150ms;
}
.exi-card__btn:hover { background: #4338ca; color: #fff; }

.exi-empty {
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: .875rem;
}

.exi-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .375rem;
    margin-top: 2rem;
}
.exi-pager__item {
    display: flex;
    min-width: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
    border: 1px solid;
    padding: .375rem .75rem;
    font-size: .875rem;
    transition: background 150ms;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
}
.exi-pager__item--active { border-color: #4f46e5; background: #4f46e5; color: #fff; }
.exi-pager__item--link   { border-color: #d1d5db; background: #fff; color: #374151; }
.exi-pager__item--link:hover { background: #f9fafb; }
.exi-pager__item--disabled { border-color: #e5e7eb; background: #f9fafb; color: #9ca3af; cursor: default; }

/* ================================================================
   Exam Show Sayfası (.exs-*)
   ================================================================ */
.exs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 1024px) {
    .exs-grid { grid-template-columns: minmax(0,1fr) 300px; }
}

.exs-article {
    overflow: hidden;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.exs-img {
    max-height: 360px;
    overflow: hidden;
    background: #f3f4f6;
}
.exs-img img {
    width: 100%;
    height: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}
.exs-body {
    padding: 1.5rem;
    position: relative;
    height: 100%;
}
.exs-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    margin-bottom: .75rem;
}
.exs-sep { font-size: .75rem; color: #9ca3af; }
.exs-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: #111827;
    margin: 0;
}
.exs-desc {
    margin-top: 1rem;
    font-size: .9375rem;
    line-height: 1.75;
    color: #6b7280;
    white-space: pre-line;
}
.exs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
}
.exs-warn {
    margin-top: 1.5rem;
    border-radius: .75rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
    padding: 1rem;
}
.exs-warn__title { font-weight: 700; color: #92400e; margin: 0 0 .25rem; }
.exs-warn__text { font-size: .875rem; line-height: 1.625; color: #92400e; margin: 0; }
.exs-warn__btn {
    display: inline-flex;
    align-items: center;
    margin-top: .75rem;
    border-radius: .5rem;
    background: #d97706;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 150ms;
}
.exs-warn__btn:hover { background: #b45309; color: #fff; }
.exs-start-wrap {
    margin-top: 0px;
    text-align: right;
    position: absolute;
    bottom: 20px;
    right: 20px;
}
.exs-start-btn {
    cursor: pointer;
    border-radius: .5rem;
    background: #4f46e5;
    padding: .625rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    font-family: inherit;
    transition: background 150ms, opacity 150ms;
    border-radius: 10px;
    border: 0px;
}
.exs-start-btn:hover:not(:disabled) { background: #4338ca; }
.exs-start-btn:disabled { opacity: .6; cursor: not-allowed; }

.exs-aside {
    height: fit-content;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.exs-aside__hd {
    font-size: .875rem;
    font-weight: 700;
    color: #111827;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
    margin: 0 0 0;
}
.exs-nostat {
    padding: 2.5rem 0;
    text-align: center;
}
.exs-nostat__icon { font-size: 1.75rem; color: #9ca3af; }
.exs-nostat__msg { margin-top: .75rem; font-size: .875rem; font-weight: 600; color: #374151; }
.exs-nostat__sub { margin-top: .25rem; font-size: .75rem; color: #9ca3af; }

.exs-stat-row {
    display: flex;
    gap: .75rem;
    border-bottom: 1px solid #f3f4f6;
    padding: 1rem 0;
}
.exs-stat-row:last-child { border-bottom: none; }
.exs-stat-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    font-weight: 700;
}
.exs-stat-icon--neutral { background: #f3f4f6; color: #374151; }
.exs-stat-icon--green   { background: #f0fdf4; color: #16a34a; }
.exs-stat-icon--amber   { background: #fffbeb; color: #d97706; }
.exs-stat-icon--red     { background: #fef2f2; color: #dc2626; }
.exs-stat-icon--indigo  { background: #eef2ff; color: #4f46e5; }

.exs-stat-body { min-width: 0; }
.exs-stat-label { font-size: .75rem; font-weight: 500; color: #6b7280; }
.exs-stat-value { margin-top: .125rem; font-size: 1.25rem; font-weight: 700; color: #111827; }
.exs-stat-sub   { margin-top: .125rem; font-size: .75rem; color: #9ca3af; }

/* ================================================================
   Exam Runner (.run-*)
   ================================================================ */
.run-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding-bottom: 6rem;
    color: #111827;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

.run-violation-toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    z-index: 10000;
    transform: translateX(-50%);
    border-radius: .5rem;
    background: #111827;
    padding: .75rem 1rem;
    font-size: .875rem;
    font-weight: 500;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.run-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 50;
    display: flex;
    height: 64px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    padding: 0 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.run-header__title {
    flex: 1;
    min-width: 0;
    padding: 0 1rem;
    text-align: center;
    font-size: .875rem;
    font-weight: 700;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
@media (min-width: 768px) { .run-header__title { font-size: 1rem; } }
.run-header__actions { display: flex; align-items: center; gap: .5rem; }
.run-timer {
    border-radius: .5rem;
    padding: .5rem .75rem;
    font-family: monospace;
    font-size: .875rem;
    font-weight: 700;
}
.run-timer--normal { background: #eef2ff; color: #4f46e5; }
.run-timer--urgent { background: #fef2f2; color: #dc2626; }
.run-hdr-btn {
    border-radius: .5rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: .5rem .75rem;
    font-size: .75rem;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms;
}
.run-hdr-btn:hover { background: #f9fafb; }

.run-layout { display: flex; padding-top: 64px; }

.run-sheet-sidebar {
    position: fixed;
    top: 64px;
    right: 0;
    display: none;
    height: calc(100vh - 64px);
    width: 280px;
    overflow-y: auto;
    border-left: 1px solid #e5e7eb;
    background: #fff;
    padding: .75rem;
    box-shadow: -1px 0 4px rgba(0,0,0,.04);
}
@media (min-width: 1280px) { .run-sheet-sidebar { display: block; } }
.run-sheet-title { margin-bottom: .75rem; font-size: .875rem; font-weight: 700; color: #111827; }

.run-sheet-row {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: .5rem;
    border-radius: .5rem;
    padding: .5rem .625rem;
    transition: background 150ms;
    background: #f9fafb;
    margin-bottom: .25rem;
}
.run-sheet-row:hover { background: #f3f4f6; }
.run-sheet-row--current { background: #eef2ff; }
.run-sheet-row--answered { background: #f0fdf4; }
.run-sheet-row--answered:hover { background: #dcfce7; }

.run-sheet-num {
    width: 1.25rem;
    flex-shrink: 0;
    text-align: center;
    font-size: .75rem;
    font-weight: 700;
    color: #6b7280;
}
.run-sheet-num--current  { color: #4f46e5; }
.run-sheet-num--answered { color: #059669; }

.run-choice-mini {
    height: 1.5rem;
    min-width: 22px;
    border-radius: .25rem;
    padding: 0 .25rem;
    font-size: 10px;
    font-weight: 700;
    transition: background 150ms;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.run-choice-mini--selected  { background: #4f46e5; color: #fff; }
.run-choice-mini--current   { background: #fff; color: #4f46e5; box-shadow: 0 0 0 1px #c7d2fe; }
.run-choice-mini--answered  { background: #fff; color: #059669; box-shadow: 0 0 0 1px #86efac; }
.run-choice-mini--neutral   { background: #fff; color: #9ca3af; box-shadow: 0 0 0 1px #e5e7eb; }
.run-choice-mini--neutral:hover { color: #4f46e5; box-shadow: 0 0 0 1px #c7d2fe; }
.run-open-tag { font-size: 10px; font-weight: 500; color: #9ca3af; }
.run-open-tag--current { color: #4f46e5; }

.run-main {
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    padding: 2rem 1rem;
}
@media (min-width: 1280px) { .run-main { margin-right: 300px; } }

.run-empty {
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 2.5rem;
    text-align: center;
    color: #6b7280;
}
.run-question {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media (min-width: 768px) { .run-question { padding: 2rem; } }

.run-q-body { font-size: 1.05rem; line-height: 2; font-weight: 600; }
.run-q-img  { margin-top: 1.25rem; max-height: 420px; max-width: 100%; border-radius: .5rem; object-fit: contain; }
.run-q-extra { margin-top: 1rem; line-height: 1.75; color: #4b5563; }

.run-open-hint { margin-bottom: .75rem; font-size: .875rem; color: #6b7280; }
.run-textarea {
    width: 100%;
    resize: vertical;
    border-radius: .75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 1rem;
    outline: none;
    font-family: inherit;
    font-size: .875rem;
    transition: border-color 150ms, box-shadow 150ms;
}
.run-textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.run-choices { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.run-choice {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: .75rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    text-align: left;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms, background 150ms;
    font-family: inherit;
}
.run-choice:hover { border-color: #c7d2fe; background: #fafaff; }
.run-choice--selected { border-color: #4f46e5; background: #eef2ff; }
.run-choice--selected:hover { border-color: #4f46e5; background: #eef2ff; }

.run-choice-letter {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #4b5563;
}
.run-choice-letter--selected { background: #4f46e5; color: #fff; }
.run-choice-body { flex: 1; min-width: 0; line-height: 1.75; }
.run-choice-img  { margin-top: .75rem; max-height: 260px; max-width: 100%; border-radius: .5rem; object-fit: contain; }
.run-choice-extra { margin-top: .5rem; display: block; font-size: .875rem; color: #6b7280; }

.run-footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    z-index: 30;
    transform: translateX(-50%);
}
.run-footer__bar {
    display: flex;
    align-items: center;
    gap: .25rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: rgba(255,255,255,.95);
    padding: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    backdrop-filter: blur(4px);
}
@media (min-width: 768px) { .run-footer__bar { gap: .375rem; padding: .625rem .75rem; } }

.run-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: background 150ms;
    font-family: inherit;
}
.run-nav-btn:hover { background: #f3f4f6; }
.run-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
@media (min-width: 768px) { .run-nav-btn { width: 2.5rem; height: 2.5rem; } }
.run-nav-btn--primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.run-nav-btn--primary:hover { background: #4338ca; }
.run-nav-btn--hidden-xl { /* shown always except xl override via JS */ }

/* Mobile sheet modal */
.run-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
@media (min-width: 1280px) { .run-mobile-backdrop { display: none; } }
.run-mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    border: none;
    cursor: pointer;
}
.run-mobile-panel {
    position: relative;
    z-index: 10;
    max-height: 80vh;
    width: 100%;
    max-width: 36rem;
    overflow-y: auto;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.run-mobile-panel__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.run-mobile-close {
    border-radius: .375rem;
    padding: .25rem .5rem;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.run-mobile-close:hover { background: #f3f4f6; }

/* Submit & Report modals */
.run-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.run-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    border: none;
    cursor: pointer;
}
.run-modal-panel {
    position: relative;
    width: 100%;
    max-width: 28rem;
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.run-modal-panel--wide { max-width: 36rem; border-radius: 1.25rem; border: 1px solid #e5e7eb; }
.run-modal-title { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 0 0 .75rem; }
.run-modal-title--lg { font-size: 1.5rem; letter-spacing: -.02em; }
.run-modal-info { font-size: .875rem; color: #6b7280; margin: 0; }
.run-modal-warn {
    margin-top: 1rem;
    border-radius: .5rem;
    background: #fffbeb;
    padding: .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: #92400e;
}
.run-modal-ok {
    margin-top: 1rem;
    border-radius: .5rem;
    background: #ecfdf5;
    padding: .75rem;
    font-size: .875rem;
    font-weight: 500;
    color: #047857;
}
.run-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.5rem;
}
.run-modal-cancel {
    border-radius: .5rem;
    border: 1px solid #d1d5db;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    background: #fff;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
}
.run-modal-cancel:hover { background: #f9fafb; }
.run-modal-submit-btn {
    border-radius: .5rem;
    background: #dc2626;
    padding: .5rem 1rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms, opacity 150ms;
}
.run-modal-submit-btn:disabled { opacity: .5; cursor: not-allowed; }
.run-modal-submit-btn:not(:disabled):hover { background: #b91c1c; }

.run-report-sub { margin-top: .25rem; font-size: .875rem; line-height: 1.625; color: #6b7280; margin-bottom: 0; }
.run-report-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}
@media (min-width: 640px) { .run-report-grid { grid-template-columns: repeat(2,1fr); } }
.run-report-label {
    cursor: pointer;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    padding: .875rem;
    font-size: .875rem;
    background: #fff;
    transition: border-color 150ms, background 150ms;
    display: block;
}
.run-report-label:hover { border-color: #c7d2fe; }
.run-report-label--active { border-color: #4f46e5; background: #eef2ff; color: #312e81; }
.run-report-divider { margin-top: 1.5rem; border-top: 1px solid #f3f4f6; padding-top: 1rem; }
.run-report-comment-lbl { display: block; font-size: .875rem; font-weight: 600; color: #111827; margin-bottom: .5rem; }
.run-report-opt { font-weight: 400; color: #9ca3af; }
.run-report-error {
    margin-top: .75rem;
    border-radius: .75rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    padding: .75rem;
    font-size: .875rem;
    color: #dc2626;
}
.run-report-done { padding: 1.25rem 0; text-align: center; }
.run-report-done__icon { font-size: 2.5rem; }
.run-report-done__title { margin-top: .75rem; font-size: 1.25rem; font-weight: 700; }
.run-report-done__sub { margin-top: .5rem; font-size: .875rem; color: #6b7280; }
.run-report-send-btn {
    border-radius: .75rem;
    background: #4f46e5;
    padding: .5rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms, opacity 150ms;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.run-report-send-btn:hover:not(:disabled) { background: #4338ca; }
.run-report-send-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ================================================================
   Exam Result (.res-*)
   ================================================================ */
.res-wrap {
    margin: 0 auto;
    width: 100%;
    max-width: 72rem;
    padding: 2rem 1rem;
}
.res-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
    .res-header { flex-direction: row; align-items: center; justify-content: space-between; }
}
.res-back-link {
    display: inline-block;
    margin-bottom: .75rem;
    font-size: .875rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}
.res-back-link:hover { text-decoration: underline; color: #4f46e5; }
.res-exam-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
@media (min-width: 768px) { .res-exam-title { font-size: 1.875rem; } }
.res-date { font-size: .875rem; color: #6b7280; }

.res-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px)  { .res-stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .res-stat-grid { grid-template-columns: repeat(6, 1fr); } }

.res-stat-card {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.res-stat-card__label {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
}
.res-stat-card__value {
    margin-top: .5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}
.res-stat-card__value--green  { color: #16a34a; }
.res-stat-card__value--red    { color: #dc2626; }
.res-stat-card__value--amber  { color: #d97706; }

.res-progress {
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.res-progress__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.res-progress__label { font-weight: 600; color: #374151; }
.res-progress__track {
    height: .75rem;
    overflow: hidden;
    border-radius: 9999px;
    background: #f3f4f6;
}
.res-progress__bar { height: 100%; border-radius: 9999px; transition: width .4s; }

.res-violations {
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    border: 1px solid #fecaca;
    background: #fff7f7;
    padding: 1.25rem;
}
.res-violations__inner { display: flex; gap: .75rem; }
.res-violations__icon  { font-size: 1.25rem; }
.res-violations__body  { flex: 1; min-width: 0; }
.res-violations__title { font-weight: 700; color: #991b1b; margin: 0 0 .25rem; }
.res-violations__text  { font-size: .875rem; line-height: 1.625; color: #7f1d1d; margin: 0; }
.res-violations__tags  { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.res-violations__tag {
    border-radius: .5rem;
    border: 1px solid #fecaca;
    background: #fff;
    padding: .5rem .75rem;
    font-size: .75rem;
    font-weight: 500;
    color: #7f1d1d;
}

.res-eval-hd {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 2rem 0 1rem;
}
.res-nodetail {
    margin-top: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}
.res-q-list { display: flex; flex-direction: column; gap: 1.25rem; }

.res-q {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.res-q__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid #f3f4f6;
    padding: .75rem 1.25rem;
}
.res-q__num {
    display: flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: #f3f4f6;
    font-size: .875rem;
    font-weight: 700;
}
.res-q__meta { flex: 1; }
.res-q__pts { margin-right: .75rem; font-size: .75rem; font-weight: 600; color: #4b5563; }
.res-q__time { font-size: .75rem; color: #9ca3af; }
.res-q__status {
    display: flex;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid;
    font-weight: 700;
}
.res-q__status--correct { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.res-q__status--wrong   { border-color: #fecaca; background: #fef2f2; color: #dc2626; }
.res-q__status--pending { border-color: #c7d2fe; background: #eef2ff; color: #4f46e5; }
.res-q__status--blank   { border-color: #fde68a; background: #fffbeb; color: #b45309; }

.res-q__inner { display: grid; }
@media (min-width: 1024px) { .res-q__inner { grid-template-columns: 1fr 260px; } }

.res-q__body  { padding: 1.25rem; }
@media (min-width: 768px) { .res-q__body { padding: 1.5rem; } }

.res-q__text  { font-size: .9375rem; font-weight: 600; line-height: 1.75; color: #111827; }
.res-q__img   { margin-top: 1rem; max-height: 420px; max-width: 100%; border-radius: .5rem; object-fit: contain; }
.res-q__extra { margin-top: 1rem; line-height: 1.75; color: #4b5563; }
.res-q__choices { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }

.res-choice {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    border-radius: .75rem;
    border: 1px solid;
    padding: 1rem;
}
.res-choice--selected-correct    { border-color: #86efac; background: #f0fdf4; }
.res-choice--selected-wrong      { border-color: #fca5a5; background: #fef2f2; }
.res-choice--correct-unselected  { border-color: #bbf7d0; background: rgba(240,253,244,.6); }
.res-choice--selected-plain      { border-color: #a5b4fc; background: #eef2ff; }
.res-choice--default             { border-color: #e5e7eb; background: #fff; }

.res-choice__letter {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: #f3f4f6;
    font-size: .875rem;
    font-weight: 700;
}
.res-choice__body { min-width: 0; flex: 1; line-height: 1.625; }
.res-choice__extra { margin-top: .5rem; font-size: .875rem; color: #6b7280; }
.res-choice__img   { margin-top: .75rem; max-height: 260px; max-width: 100%; border-radius: .5rem; object-fit: contain; }
.res-choice__check { font-weight: 700; }
.res-choice__check--ok  { color: #16a34a; }
.res-choice__check--err { color: #dc2626; }
.res-choice__sel        { color: #4f46e5; }

.res-q__open-wrap {
    margin-top: 1.5rem;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 1rem;
}
.res-q__open-lbl {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
}
.res-q__open-text { margin-top: .5rem; white-space: pre-wrap; color: #111827; }
.res-q__open-empty { margin-top: .5rem; font-style: italic; color: #9ca3af; }

.res-q__explain {
    margin-top: 1.5rem;
    border-radius: .75rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    padding: 1rem;
}
.res-q__explain-lbl {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1d4ed8;
}
.res-q__explain-text { margin-top: .5rem; line-height: 1.75; color: #1e3a8a; }

.res-sidebar {
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    padding: 1.25rem;
}
@media (min-width: 1024px) { .res-sidebar { border-top: none; border-left: 1px solid #e5e7eb; } }
.res-sidebar__title { font-size: .875rem; font-weight: 700; color: #374151; margin: 0 0 1rem; }
.res-sidebar__rows  { display: flex; flex-direction: column; gap: .75rem; font-size: .875rem; }
.res-sidebar-row    { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.res-sidebar-row__label { color: #6b7280; }
.res-sidebar-row__value { font-weight: 700; color: #111827; }
.res-sidebar-row__value--green { color: #16a34a; }
.res-sidebar-row__value--amber { color: #d97706; }

.res-sidebar__rate { margin-top: 1.25rem; }
.res-sidebar__rate-lbl { margin-bottom: .5rem; font-size: .75rem; font-weight: 700; }
.res-sidebar__bar-track { height: .5rem; overflow: hidden; border-radius: 9999px; background: #e5e7eb; }
.res-sidebar__bar-fill  { height: 100%; border-radius: 9999px; }

.res-sidebar__time { margin-top: 1.25rem; border-top: 1px solid #e5e7eb; padding-top: 1rem; }

.res-verdict {
    margin-top: 1.25rem;
    border-radius: .5rem;
    padding: .75rem;
    font-size: .75rem;
    font-weight: 600;
}
.res-verdict--good    { background: #ecfdf5; color: #047857; }
.res-verdict--bad     { background: #fef2f2; color: #b91c1c; }
.res-verdict--neutral { background: #f3f4f6; color: #4b5563; }
