/* NeduSis Yayınevi Portalı — tasarım tuvalindeki (v16) belirteçler.
   Yayınevi rengi --brand ile gelir; okunabilirlik için --on-brand otomatik seçilir. */
:root {
  --brand: #9f1239;
  --on-brand: #ffffff;
  --brand-soft: rgba(159, 18, 57, 0.1);
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --text: #334155;
  --muted: #5b6779;   /* Faz 6 denetimi: #64748b zemin (#f1f5f9) üzerinde 4,34:1 idi; bu ton her yüzeyde ≥ 4,5:1 */
  --muted-2: #475569;
  --border: #e2e8f0;
  --border-input: #cbd5e1;
  --link: #0e7490;
  --link-hover: #155e75;
  --ok: #166534; --ok-soft: #dcfce7;
  --run: #075985; --run-soft: #e0f2fe;
  --warn: #9a3412; --warn-soft: #ffedd5; --warn-strong: #c2410c;
  --amber: #92400e; --amber-soft: #fef3c7;
  --teal: #0f766e; --teal-soft: #ccfbf1; --teal-ink: #134e4a;
  --cyan-soft: #ecfeff; --cyan-border: #a5f3fc; --cyan-ink: #164e63;
  --font: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: 28px; font-weight: 800; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 800; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Kabuk: kenar çubuğu + içerik ---------- */
.app { min-height: 100vh; display: flex; }
.nav { width: 248px; flex: 0 0 248px; background: var(--surface); border-right: 1px solid var(--border); padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.nav-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.mono { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0; overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.nav-brand b { display: block; font-weight: 800; font-size: 15px; color: var(--ink); line-height: 1.2; }
.nav-brand small { font-size: 12px; color: var(--muted); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px; text-decoration: none; font-size: 15px; color: var(--text); font-weight: 600; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.nav-item svg { flex-shrink: 0; }
.nav-item .grow { flex-grow: 1; }
.nav-item.locked { opacity: 0.55; }
.badge { font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--warn-strong); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 0 8px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--border); color: var(--text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.user-card b { font-size: 14px; color: var(--ink); display: block; }
.user-card small { font-size: 12px; color: var(--muted); }
.user-card button { margin-left: auto; }
.signature { font-size: 12px; color: var(--muted); }
.signature a { font-weight: 700; color: var(--link); }
.nav-short { display: none; }
.nav-toggle { display: none; }
.nav-groups { display: flex; flex-direction: column; gap: 22px; }

.main-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.announcements { display: flex; flex-direction: column; gap: 10px; padding: 20px 32px 0; }
.announcements:empty { display: none; }
.main { flex: 1 1 auto; min-width: 0; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head .lead { font-size: 15px; color: var(--muted-2); max-width: 760px; margin-top: 6px; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--muted); }
.crumb { font-size: 14px; font-weight: 700; text-decoration: none; }

/* Tablet: ikonlu dar şerit (tasarım: 92 px) */
@media (max-width: 1180px) and (min-width: 761px) {
  .nav { width: 92px; flex-basis: 92px; padding: 18px 8px; gap: 14px; }
  .nav-brand { justify-content: center; padding: 0; }
  .nav-brand .txt, .nav-label, .nav-item .grow, .nav-foot .signature, .user-card .txt, .user-card button { display: none; }
  .nav-item { flex-direction: column; justify-content: center; gap: 4px; min-height: 56px; padding: 6px 2px; border-radius: 12px; text-align: center; }
  .nav-item .full { display: none; }
  .nav-item .nav-short { display: block; font-size: 11px; line-height: 1.15; }
  .nav-item .badge { position: absolute; transform: translate(16px, -18px); }
  .nav-item { position: relative; }
  .user-card { justify-content: center; background: transparent; padding: 0; }
  .main { padding: 24px 24px 36px; }
  .announcements { padding: 16px 24px 0; }
}
/* Mobil: üst çubuk + açılır menü */
@media (max-width: 760px) {
  .app { flex-direction: column; }
  .nav { position: sticky; top: 0; z-index: 30; width: 100%; flex-basis: auto; height: auto; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); gap: 10px; overflow: visible; }
  .nav-brand { padding: 0; }
  .nav-brand .mono { width: 38px; height: 38px; }
  .nav-toggle { display: inline-flex; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-input); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
  .nav-groups { display: none; flex-direction: column; gap: 10px; border-top: 1px solid #f1f5f9; padding-top: 8px; max-height: 70vh; overflow-y: auto; }
  .nav.open .nav-groups { display: flex; }
  .nav-foot { display: none; }
  .nav.open .nav-foot { display: flex; padding: 0; }
  .main { padding: 20px 16px 32px; gap: 18px; }
  .announcements { padding: 14px 16px 0; }
  h1 { font-size: 24px; }
}

/* ---------- Bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.flush { padding: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card-head .hint { font-size: 13px; color: var(--muted); }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi .label { font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi .value { font-size: 30px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi .sub { font-size: 13px; color: var(--muted); }
.kpi .sub.up { color: var(--ok); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.row > .grow-1 { flex: 1 1 340px; }
.row > .grow-2 { flex: 2 1 520px; min-width: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-input); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn-primary { background: var(--brand); color: var(--on-brand); border: 0; }
.btn-primary:hover { background: var(--brand); color: var(--on-brand); filter: brightness(1.08); }
.btn-dark { background: var(--ink); color: #fff; border: 0; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-teal { background: var(--teal); color: #fff; border: 0; }
.btn-danger { background: #b91c1c; color: #fff; border: 0; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-link { background: none; border: 0; color: var(--link); font-weight: 700; cursor: pointer; padding: 0; font-size: 14px; min-height: 24px; }   /* dokunma hedefi ≥ 24 px (WCAG 2.5.8) */
.btn[disabled], .btn[aria-disabled="true"] { background: var(--border); color: var(--muted-2); border: 0; cursor: not-allowed; filter: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .spin { animation: none; } }

.pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.run { background: var(--run-soft); color: var(--run); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.wait, .pill.draft { background: #f1f5f9; color: var(--muted-2); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.teal { background: var(--teal-soft); color: #115e59; }
.pill.cyan { background: #cffafe; color: #155e75; }
.pill.over { background: var(--warn-strong); color: #fff; }
.pill.sample { background: var(--amber-soft); color: var(--amber); padding: 2px 8px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--text); }
.input, .select, textarea.input { height: 44px; border: 1px solid var(--border-input); border-radius: var(--radius-sm); padding: 0 12px; font-size: 15px; color: var(--ink); background: #fff; width: 100%; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input.low, .select.low { border: 2px solid var(--warn-strong); }
.help { font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-2); min-height: 28px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.progress { height: 10px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width 0.3s; }
.progress.tall { height: 14px; }
/* Kota göstergesi (Paket ve kullanım, Panel, SuperAdmin › Kullanım): %80, kota ve tavan işaretleri */
.q-meter { position: relative; padding: 4px 0 22px; }
.q-meter .progress { display: block; }
.q-mark { position: absolute; top: 0; bottom: 18px; width: 0; border-left: 2px dashed var(--muted); }
.q-mark > span { position: absolute; top: calc(100% + 2px); left: 0; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.q-mark.end > span { transform: translateX(-100%); }

.table-wrap { overflow-x: auto; position: relative; }   /* gizli (sr-only) etiketler kabın dışına taşmasın */
/* A4 önizleme dar ekranda ui.js › fitSheet ile küçültülür; baskı her zaman tam boy */
@media print { [data-fit-sheet] { zoom: 1 !important; } }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; padding: 8px 10px; white-space: nowrap; }
table.t td { padding: 12px 10px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.t td b { color: var(--ink); }

.callout { border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.callout.info { background: var(--cyan-soft); border: 1px solid var(--cyan-border); color: var(--cyan-ink); }
.callout.warn { background: #fff7ed; color: #7c2d12; }
.callout.ok { background: #f0fdfa; color: var(--teal-ink); }
/* SuperAdmin › yayınevi düzenle › öğrenci eşleştirme anahtarı */
.key-panel { margin-top: 12px; flex-direction: column; gap: 4px; }
.key-panel .key-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.key-panel-wait { margin-top: 12px; }
.callout.plain { background: var(--surface-2); color: var(--text); }
.callout b { display: block; margin-bottom: 2px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tab { height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: 15px; font-weight: 600; color: var(--muted-2); cursor: pointer; }
.tab[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--ink); font-weight: 800; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 14px; border-radius: 99px; font-size: 14px; font-weight: 700; cursor: pointer; background: #fff; color: var(--text); border: 1px solid var(--border-input); }
.chip[aria-selected="true"], .chip[aria-checked="true"] { background: var(--brand); color: var(--on-brand); border-color: transparent; }

.list-btn { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border); cursor: pointer; text-align: left; color: var(--text); font-size: 14px; }
.list-btn[aria-pressed="true"] { border: 2px solid var(--brand); padding: 13px 15px; box-shadow: 0 0 0 4px var(--brand-soft); }
.list-btn b { color: var(--ink); font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.state { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.state.error { color: var(--warn); }
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; min-height: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Bildirim ve iletişim kutusu */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2); }
.toast.error { background: #7f1d1d; }
.toast.ok { background: var(--teal); }
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 90; }
.modal { background: #fff; border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Paket kilidi */
.locked-page { max-width: 560px; }
.input::placeholder { color: #94a3b8; }
@media (max-width: 760px) {
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .value { font-size: 24px; }
  .page-head .chips { width: 100%; }
}

/* ---------- Panel ---------- */
.link-strong { font-weight: 700; }
table.t.t-wide { min-width: 560px; }
.notice { border: 0; text-decoration: none; }
.notice-review { border: 2px solid var(--brand); }
.notice-warn { background: #fff7ed; color: #7c2d12; }
.notice-warn b { color: #7c2d12; }
.notice-muted { background: var(--surface-2); }
.notice-static { cursor: default; }
.notice-icon { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--brand); color: var(--on-brand); }
.notice-warn .notice-icon { background: var(--warn-strong); color: #fff; }
.notice-muted .notice-icon { background: var(--border); color: var(--text); }
.notice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 200px; }
.series-row { display: grid; grid-template-columns: minmax(140px, 260px) minmax(0, 1fr) 72px; align-items: center; gap: 14px; }
.series-name { font-weight: 700; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.series-name .small { font-weight: 600; }
.series-name:hover { text-decoration: underline; }
.series-count { text-align: right; font-weight: 700; color: var(--ink); }
/* Yerleşik <progress>: değer value/max özniteliğinden; satır içi stil gerekmez. */
.meter { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 14px; border: 0; border-radius: 99px; background: #f1f5f9; overflow: hidden; color: var(--brand); }
.meter::-webkit-progress-bar { background: #f1f5f9; border-radius: 99px; }
.meter::-webkit-progress-value { background: var(--brand); border-radius: 99px; }
.meter::-moz-progress-bar { background: var(--brand); border-radius: 99px; }
@media (max-width: 760px) {
  /* Dar ekranda tablo yana kaymaz: her yükleme iki satırlık bir kart olur
     (üstte bayi + durum, altta deneme + form). Sütunlar sınıfla eşlenir, sıra numarasıyla değil. */
  table.t.t-wide, table.t.t-wide tbody { display: block; min-width: 0; }
  table.t.t-wide thead { display: none; }
  table.t.t-wide tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid #f1f5f9; }
  table.t.t-wide td { display: block; padding: 0; border: 0; }
  table.t.t-wide .c-who { grid-column: 1; grid-row: 1; }
  table.t.t-wide .c-status { grid-column: 2; grid-row: 1; align-self: start; }
  table.t.t-wide .c-exam { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 13px; }
  table.t.t-wide .c-forms { grid-column: 2; grid-row: 2; text-align: right; font-size: 13px; }
  table.t.t-wide .c-forms::after { content: " form"; color: var(--muted); }
  .series-row { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px 10px; }
  .series-row .series-name { grid-column: 1 / -1; }
}

/* ---------- Kurumlar, optik şablonu, sonuç bildirme ---------- */
.modal.modal-wide { width: min(780px, 100%); }
.filters { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr)); }
table.t.t-list { min-width: 760px; }
table.t.t-list td { vertical-align: top; }
.col-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.col-list li { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-variant-numeric: tabular-nums; }
.col-list li.opt { color: var(--muted); font-weight: 600; }
.wa-bubble { align-self: flex-start; max-width: 460px; background: var(--ok-soft); border: 1px solid var(--border); border-radius: 4px 16px 16px 16px; padding: 12px 14px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.wa-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); }
.stat b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 200px; }
@media (max-width: 760px) {
  .filters { grid-template-columns: 1fr; }
}
.form-error { color: var(--warn-strong); font-weight: 700; }

/* Kitapçık düzeni (Faz 3 · Y-11) ve kalite hükmü (Y-10) */
fieldset.kd { border: 1px solid var(--border-input, #e2e8f0); border-radius: var(--radius, 12px); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
fieldset.kd legend { font-weight: 800; padding: 0 6px; color: var(--ink, #0f172a); }
fieldset.kd[disabled] { opacity: .7; }
.kd-order { display: flex; flex-direction: column; gap: 6px; }
.kd-title { font-weight: 700; font-size: 13px; }
.kd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kd-list li { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--border-input, #e2e8f0); border-radius: 10px; background: var(--surface-2, #f8fafc); }
.kd-range { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted, #64748b); font-size: 13px; }
.kd-lesson { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.kd-count { font-size: 13px; color: var(--muted, #64748b); font-variant-numeric: tabular-nums; }
.kd-move { display: flex; gap: 4px; }
.kd-move .btn { min-width: 34px; justify-content: center; }
.kd-note { flex-direction: column; gap: 4px; margin-top: 6px; }
.kd-quality ul { margin: 6px 0 4px 18px; padding: 0; }
.kd-quality li { margin: 2px 0; }
/* Ara sınıf ders listesi: ad · test · soru sayısı · taşı/sil */
.kd-list li.kd-free-row { grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) 76px auto; }
.kd-free-row .input { min-width: 0; padding: 7px 9px; }
.kd-free-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 560px) {
  .kd-list li { grid-template-columns: 56px 1fr auto; } .kd-count { display: none; }
  .kd-list li.kd-free-row { grid-template-columns: 1fr 76px; gap: 6px 8px; }
  .kd-free-row .kd-range, .kd-free-row [data-kd-f="lesson"] { grid-column: 1 / -1; }
  .kd-free-row .kd-move { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Taranmış optik inceleme (Faz 4): büyütülmüş baloncuk kırpıntıları dar ekranda taşmasın */
.omr-crop { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); display: block; }
.rv-item [data-crop] { flex: 1 1 220px; min-width: 0; }

/* SuperAdmin bileşenleri (Faz 7): anahtar–değer listesi */
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); font-weight: 700; }
dl.kv dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; gap: 2px; } dl.kv dd { margin-bottom: 8px; } }
.inline-form > .input { flex: 1 1 220px; width: auto; min-width: 0; }
