/* ==========================================================================
   Yönetim paneli: gruplu yan menü, toplu işlemler, öğrenci seçici, okul vitrini
   Renkler app.css :root token'larından gelir.
   ========================================================================== */

/* ------------------------------------------------------------------ Yan menü ağacı
   Üstte en sık kullanılan işler; çok sayfalı bölümler açılır gruptur (akordeon, etkin grup açık gelir). */
.nav-tree { gap: 2px; }
.nav-tree .nav-label { padding: 14px 12px 6px; }
.nav-tree .nav-label:first-child { padding-top: 4px; }
.nav-tree .nav-link { padding: 9px 12px; font-size: 14px; }
.nav-branch > summary { list-style: none; cursor: pointer; user-select: none; }
.nav-branch > summary::-webkit-details-marker { display: none; }
.nav-branch > summary:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-branch > summary .nav-chev { margin-left: auto; flex: none; color: #5F857C; transition: transform .2s var(--ease); }
.nav-branch > summary .nav-count ~ .nav-chev { margin-left: -4px; }
/* Grup başlığı tek satırda kalır ("Onay bekleyenler" + sayı + ok iki satıra bölünüyordu) */
.nav-branch > summary { gap: 10px; padding-right: 8px; }
.nav-branch > summary > span:not(.nav-count) { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-branch[open] > summary .nav-chev { transform: rotate(90deg); color: #9FC3BA; }
.nav-branch.has-active > summary { color: #fff; }
.nav-branch.has-active > summary > .i:first-child { color: #C9F3DB; }
.nav-sub { display: grid; gap: 1px; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--ink-line-2); }
.nav-sub .nav-link { padding: 7px 10px; font-size: 13.5px; }
.nav-sub .nav-link .i { width: 16px; height: 16px; }
.nav-sub .nav-link.is-active::before { display: none; }
.nav-count.is-hot { background: #E0A21A; color: var(--ink); }

/* ------------------------------------------------------------------ Üst çubuk: arama ve hızlı oluşturma */
.admin-topbar .top-search-box { flex: 1 1 auto; width: auto; max-width: 440px; margin-left: auto; }
.admin-topbar .top-search-box:focus-within { width: auto; }
.admin-topbar .top-search-box input { padding-right: 62px; }
.admin-topbar .topbar-actions { margin-left: 0; gap: 8px; }
.quick-create .btn, a.quick-create { height: 36px; white-space: nowrap; }
.quick-create .menu { min-width: 220px; }
.menu .menu-label { display: block; padding: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }

/* ------------------------------------------------------------------ Hızlı işlemler ve organizasyon özeti */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
/* Yönetim paneli: 9 kısayol ızgaraya bölünmeyince ikinci satırda boş hücre kalıyordu; esnek sarma ile satırlar dolar */
.is-admin-suite .quick-actions { display: flex; flex-wrap: wrap; }
.is-admin-suite .quick-actions a { flex: 1 1 180px; white-space: nowrap; }
@media (max-width: 600px) { .is-admin-suite .quick-actions a { flex-basis: 140px; white-space: normal; } }
.quick-actions a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 13.5px; color: var(--text); transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.quick-actions a:hover { border-color: var(--primary-green); transform: translateY(-1px); box-shadow: var(--shadow); }
.org-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.org-kpis a.card-mini { display: block; color: var(--text); transition: border-color .15s var(--ease); }
.org-kpis a.card-mini:hover { border-color: var(--border-strong); }

.list-rows { display: grid; }
.list-rows > li { display: grid; gap: 4px; padding: 12px 20px; border-top: 1px solid var(--border); }
.list-rows > li.row-between { display: flex; }
.list-rows .title { font-weight: 700; font-size: 14px; color: var(--text); }
.list-rows a.title:hover { color: var(--dark-green); }

/* ------------------------------------------------------------------ Filtre çubuğu ve toplu işlem */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-bar .select { width: auto; min-width: 140px; }

.table tr.is-muted td { opacity: .62; }
.class-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--dark-green); font-size: 12px; font-weight: 800; letter-spacing: .02em; }

.bulk-bar { position: sticky; bottom: 16px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--sidebar); color: #fff; box-shadow: var(--shadow-lg); }
.bulk-bar .select, .bulk-bar .input { min-height: 40px; width: auto; color: var(--text); background-color: var(--surface); }
.bulk-bar .input::placeholder { color: var(--subtle); }
.bulk-bar .select { min-width: 200px; }
.bulk-count { font-size: 13.5px; color: #B9CCC7; margin-right: 4px; }
.bulk-count strong { color: #fff; font-size: 15px; }
.bulk-fields { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.bulk-fields[hidden] { display: none; }
.bulk-bar.is-empty { opacity: .9; }

/* ------------------------------------------------------------------ Adımlı formlar, seçim kartları */
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--tint); color: var(--dark-green); font: 800 13px var(--font-body); vertical-align: 2px; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); transition: border-color .15s var(--ease), background .15s var(--ease); }
.choice > span .i { color: var(--dark-green); }
.choice small { color: var(--muted); font-size: 12.5px; }
.choice:hover > span { border-color: var(--border-strong); }
.choice input:checked + span { border-color: var(--primary-green); background: var(--tint); box-shadow: inset 0 0 0 1px var(--primary-green); }
.choice input:focus-visible + span { box-shadow: var(--focus); }
.choice-sm > span { padding: 10px 14px; }

.preview-box { padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border-strong); font-size: 13.5px; min-height: 52px; }
.preview-box strong.big { display: block; font-family: var(--font-display); font-size: 26px; color: var(--dark-green); line-height: 1.1; }
.preview-box.is-error { background: var(--warning-bg); border-color: #F4D58D; color: var(--warning); }
.sticky-col { position: sticky; top: calc(var(--topbar-h) + 16px); }

/* ------------------------------------------------------------------ Pencere (dialog): üst katmanda açılır, hiçbir kutuda kırpılmaz */
dialog.modal { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); white-space: normal; text-align: left; overflow: auto; }
dialog.modal::backdrop { background: rgba(var(--ink-rgb),  .55); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in .18s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-body { padding: 20px 22px; }
.modal-body .h3 { margin: 0; }

/* ------------------------------------------------------------------ Açılır Seçim Menüsü (Dropdown / Combobox Picker)
   Üstte: Arama kutusu ve filtreler. Ortada: Temiz liste. Altta: Onay ve sayaç. */
.pick-dropdown-root { position: relative; width: 100%; }
.pick-dropdown-root.is-open { z-index: 600 !important; }

.pick-combo-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 50px;
  padding: 8px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; transition: all .2s var(--ease);
  position: relative;
}
.pick-combo-box:hover {
  border-color: var(--primary-green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pick-dropdown-root.is-open .pick-combo-box,
.pick-combo-box:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(var(--brand-2-rgb),  0.18);
  background: var(--surface);
}
.pick-placeholder {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-sub); font-size: 14px; font-weight: 500;
  user-select: none;
}
.pick-placeholder .i { color: var(--primary-green); }
.pick-combo-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pick-combo-chips:empty { display: none; }
.pick-combo-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.pick-arrow { display: inline-flex; color: var(--muted); transition: transform .25s var(--ease); }
.pick-dropdown-root.is-open .pick-arrow { transform: rotate(180deg); color: var(--primary-green); }

.pick-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 30px;
  padding: 3px 6px 3px 12px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--brand-2-rgb),  0.14) 0%, rgba(var(--brand-2-rgb),  0.08) 100%);
  color: var(--dark-green); font-size: 13px; font-weight: 700;
  border: 1px solid rgba(var(--brand-2-rgb),  0.3);
  box-shadow: 0 1px 3px rgba(var(--brand-2-rgb),  0.1);
  animation: pickChipIn .2s var(--ease);
}
@keyframes pickChipIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
.pick-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pick-chip > button {
  flex: none; width: 20px; height: 20px; border: 0; border-radius: 50%;
  background: rgba(var(--brand-2-rgb),  0.15); color: var(--dark-green); font-size: 15px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: all .15s ease;
}
.pick-chip > button:hover { background: var(--danger); color: #fff; }
.pick-chip > button:focus-visible { outline: none; }

.pick-badge {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 8px;
  border-radius: 999px; background: var(--primary-green); color: #fff; font-size: 12px;
  font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(var(--brand-2-rgb),  .35);
  transition: all .2s var(--ease);
}
.pick-dropdown-root:not(.has-value) .pick-badge {
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

/* Açılır Liste Paneli */
.pick-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  z-index: 700 !important;
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.22), 0 8px 24px -4px rgba(0, 0, 0, 0.1);
  display: flex; flex-direction: column; max-height: 480px; overflow: hidden;
  animation: pickSlideDown .2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pickSlideDown {
  from { opacity: 0; transform: translateY(-8px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Üst Kontroller: Arama ve Filtreler */
.pick-panel-top {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 12px;
}
.pick-search-bar {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: 12px; padding: 8px 14px;
  transition: all .2s var(--ease);
}
.pick-search-bar:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(var(--brand-2-rgb),  0.15);
}
.pick-search-icon { color: var(--primary-green); display: inline-flex; }
.pick-search-input {
  flex: 1; border: none; background: transparent; font-size: 14.5px; color: var(--text);
  outline: none; font-family: inherit; font-weight: 500;
}
.pick-search-input::placeholder { color: var(--muted); }
.pick-search-clear {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: var(--surface-2); color: var(--muted); font-size: 14px;
  line-height: 1; cursor: pointer; padding: 0; transition: all .15s ease;
}
.pick-search-clear:hover { background: var(--danger-bg); color: var(--danger); }

.pick-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.pick-filters-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pick-filter-select {
  height: 34px; font-size: 13px; font-weight: 600; border-radius: 8px;
  padding: 4px 28px 4px 10px; border-color: var(--border-strong);
}
.pick-quick-actions { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.pick-count-text { font-size: 12.5px; color: var(--muted); }
.pick-count-text strong { color: var(--text); font-weight: 800; }

.pick-btn-all {
  border-color: rgba(var(--brand-2-rgb),  0.4) !important;
  color: var(--dark-green) !important;
  background: rgba(var(--brand-2-rgb),  0.08) !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  transition: all .15s ease !important;
}
.pick-btn-all:hover {
  background: var(--primary-green) !important;
  color: #fff !important;
  border-color: var(--primary-green) !important;
  box-shadow: 0 2px 8px rgba(var(--brand-2-rgb),  0.3) !important;
}
.pick-btn-clear {
  color: var(--muted) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  transition: all .15s ease !important;
}
.pick-btn-clear:hover {
  color: var(--danger) !important;
  background: var(--danger-bg) !important;
}

/* Orta Liste Alanı */
.pick-panel-scroll {
  overflow-y: auto; flex: 1; overscroll-behavior: contain;
  max-height: 290px; min-height: 120px;
}
.pick-panel-scroll::-webkit-scrollbar { width: 6px; }
.pick-panel-scroll::-webkit-scrollbar-track { background: var(--surface-2); }
.pick-panel-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.pick-panel-scroll::-webkit-scrollbar-thumb:hover { background: var(--primary-green); }

.pick-panel-list { list-style: none; margin: 0; padding: 4px 0; }
.pick-group-heading {
  padding: 8px 18px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); background: var(--surface-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pick-group-heading:first-child { border-top: none; }

.pick-option-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background .12s, border-color .12s;
  position: relative;
}
.pick-option-row:last-child { border-bottom: none; }
.pick-option-row:hover { background: var(--surface-2); }
.pick-option-row.is-checked {
  background: rgba(var(--brand-2-rgb),  0.08);
}
.pick-option-row.is-checked::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5px;
  background: var(--primary-green); border-radius: 0 2px 2px 0;
}
.pick-option-row.is-checked .pick-option-title { font-weight: 700; color: var(--dark-green); }

.pick-option-label {
  display: flex; align-items: center; gap: 14px; padding: 11px 18px;
  cursor: pointer; margin: 0; user-select: none;
}
.pick-option-label input[type=checkbox] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}

/* Özel Tasarım Checkbox */
.pick-custom-check {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface); color: transparent;
  flex: none; transition: all .15s var(--ease);
}
.pick-option-row:hover .pick-custom-check {
  border-color: var(--primary-green);
}
.pick-option-row.is-checked .pick-custom-check {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(var(--brand-2-rgb),  .35);
}

.pick-option-info { flex: 1; min-width: 0; }
.pick-option-title {
  font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px;
  line-height: 1.3;
}
.pick-option-title .i { color: var(--primary-green); flex: none; }

.pick-option-sub {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 4px; line-height: 1.4;
}
.pick-sub-tag {
  display: inline-flex; align-items: center;
  padding: 1px 8px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}
.pick-option-row.is-checked .pick-sub-tag {
  background: rgba(var(--brand-2-rgb),  0.12);
  border-color: rgba(var(--brand-2-rgb),  0.22);
  color: var(--dark-green);
}

.pick-empty-state {
  padding: 36px 20px; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pick-empty-state .i { color: var(--muted); opacity: .6; }
.pick-empty-state p { margin: 0; font-size: 13.5px; }

/* Alt Onay Alanı */
.pick-panel-footer {
  padding: 12px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.pick-footer-summary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-sub);
}
.pick-footer-badge {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px;
  padding: 0 8px; border-radius: 999px;
  background: var(--primary-green); color: #fff;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(var(--brand-2-rgb),  .35);
}
.pick-footer-btn {
  padding: 7px 24px !important; border-radius: 10px !important;
  font-weight: 700 !important; font-size: 13.5px !important;
  box-shadow: 0 4px 12px -2px rgba(var(--brand-2-rgb),  0.4) !important;
  transition: all .2s var(--ease) !important;
}
.pick-footer-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px -2px rgba(var(--brand-2-rgb),  0.5) !important;
}

/* Uzun okul / ders adları başlık satırını yana taşırmasın */
.page-head .author, .page-head .author > div { min-width: 0; }
.page-head .chip { white-space: normal; text-align: left; }

/* ------------------------------------------------------------------ Kişi satırları, açılır kutular */
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.add-box > summary { list-style: none; }
.add-box > summary::-webkit-details-marker { display: none; }
.mentor-group > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); list-style: none; }
.mentor-group > summary::-webkit-details-marker { display: none; }
.link-code { display: block; margin-top: 6px; word-break: break-all; font-family: var(--font-mono); font-size: 12.5px; }
.team-card { color: var(--text); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.team-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ Okul rozeti, vitrin */
.school-badge { background: hsl(var(--h, 150) 60% 92%); color: hsl(var(--h, 150) 55% 28%); }
.school-card { color: var(--text); border-top: 4px solid hsl(var(--h, 150) 55% 45%); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.school-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.school-hero { display: grid; gap: 22px; padding: 30px 32px; margin-bottom: 8px; border-radius: 24px; background: linear-gradient(135deg, hsl(var(--h, 150) 55% 96%) 0%, var(--surface) 70%); border: 1px solid hsl(var(--h, 150) 40% 86%); }
.school-hero-in { display: flex; gap: 18px; align-items: flex-start; }
.school-hero .h1 { margin: 6px 0 6px; }
.school-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.school-stats > div { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.school-stats dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.school-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 22px; color: hsl(var(--h, 150) 55% 28%); }

/* ------------------------------------------------------------------ Yan menü her zaman sabit ve görünür
   Masaüstü ve tablette menü solda sabit durur (sayfa kayarken yerinde kalır); yalnızca telefonda çekmeceye döner. */
.shell.shell-sidebar .sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overscroll-behavior: contain; }
@media (min-width: 769px) and (max-width: 1100px) {
  .shell.shell-sidebar, body.is-admin-suite .shell { grid-template-columns: 232px minmax(0, 1fr) !important; }
  .shell.shell-sidebar .sidebar { position: sticky; width: auto; transform: none; box-shadow: none; padding: 16px 10px; }
  .shell.shell-sidebar .icon-btn.sidebar-close, .admin-topbar .icon-btn.menu-btn { display: none; }
  .shell.shell-sidebar .backdrop { display: none; }
  .admin-topbar { padding: 0 18px; gap: 10px; }
  .admin-topbar .admin-status-badge { display: none; }
  .admin-topbar .top-user-pill .name { display: none; }
  .admin-topbar .top-search-box kbd { display: none; }
  .admin-topbar .top-search-box input { padding-right: 12px; }
}

/* ------------------------------------------------------------------ Telefon: yönetim yan menüsü çekmeceye döner */
@media (max-width: 768px) {
  .shell.shell-sidebar, body.is-admin-suite .shell { grid-template-columns: minmax(0, 1fr) !important; }
  .shell.shell-sidebar .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh; width: min(300px, 86vw); z-index: 60;
    transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg);
  }
  body.nav-open .shell.shell-sidebar .sidebar { transform: none; }
  .shell.shell-sidebar .backdrop { z-index: 55; }
  .admin-topbar { padding: 0 16px; gap: 10px; }
  .admin-topbar .icon-btn.menu-btn { display: grid; }
  .admin-topbar .admin-status-badge { display: none; }
  .admin-topbar .top-search-box { flex: 1; width: auto; margin-left: 0; }
  .sticky-col { position: static; }
  /* Alt çubuk varken de ☰ görünür (menüye iki yoldan ulaşılır) */
  .has-bottom-nav .admin-topbar .icon-btn.menu-btn { display: grid; }
  .quick-create .qc-text { display: none; }
  .quick-create .btn, a.quick-create { width: 36px; padding: 0; justify-content: center; }
  .admin-topbar .top-user-pill .name { display: none; }
  .admin-topbar .top-search-box kbd { display: none; }
  .admin-topbar .top-search-box input { padding-right: 12px; }
  .school-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-hero { padding: 22px 18px; }
  .school-hero-in { flex-direction: column; }
  .bulk-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .bulk-bar .select, .bulk-bar .input { flex: 1 1 140px; min-width: 0; }
  .filter-bar .select { flex: 1 1 140px; min-width: 0; }
}
/* Telefonda bildirim kutusu zilin altına değil üst çubuğun tam genişliğine yerleşir (ekrandan taşmaz) */
@media (max-width: 600px) {
  .dropdown[data-notifications] { position: static; }
  .dropdown[data-notifications] .menu-notif { left: 12px; right: 12px; width: auto; min-width: 0; top: calc(100% + 6px); }
  .dropdown[data-notifications] .notif-list { max-height: min(360px, 55dvh); }
}
@media (prefers-reduced-motion: reduce) {
  .shell.shell-sidebar .sidebar, .nav-group .nav-chev, .quick-actions a, .school-card { transition: none; }
}
/* Telefonda seçim penceresi tam ekran açılır; alt çubuk her zaman görünür */
@media (max-width: 640px) {
  dialog.pick-dialog { width: 100vw; max-width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .pick-head { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 12px; }
  .pick-tools, .pick-bar, .pick-scroll { padding-left: 16px; padding-right: 16px; }
  .pick-tools .pick-filter { flex: 1 1 140px; min-width: 0; }
  .pick-list { grid-template-columns: minmax(0, 1fr); }
  .pick-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .pick-foot { display: grid; gap: 10px; }
  .pick-foot .btn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px; }
  .pick-foot .btn-row .btn { justify-content: center; }
  .pick-open { margin-left: 0; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.modal[open] { animation: none; }
}

/* ------------------------------------------------------------------ Ödev sayfası: gönderim, özet, teslim listesi (pages/admin/assignment-hub.ejs) */
.mt-4 { margin-top: 4px; }
.hub-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.hub-send .h3 { margin: 0 0 2px; }
.hub-send p { margin: 0; max-width: 78ch; }
.hub-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hub-kpis > .card-mini { display: grid; gap: 2px; align-content: start; color: var(--text); }
.hub-kpis a.card-mini { transition: border-color .15s var(--ease), transform .15s var(--ease); }
.hub-kpis a.card-mini:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.hub-kpis .kpi { margin: 2px 0 0; font-size: 26px; line-height: 1.1; }
.hub-kpis .is-hot { border-color: #F2C94C; background: var(--warning-bg); }
.hub-progress { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.hub-progress span { min-width: 4px; }
.hub-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.hub-legend li { display: inline-flex; align-items: center; gap: 6px; }
.hub-legend strong { color: var(--text); font-variant-numeric: tabular-nums; }
.hub-legend .dot { width: 9px; height: 9px; border-radius: 3px; }
.seg-ok { background: var(--dark-green); }
.seg-wait { background: #E0A21A; }
.seg-ai { background: var(--info); }
.seg-back { background: #D97706; }
.seg-err { background: var(--danger); }
.seg-none { background: var(--border-strong); }
.hub-tabs { align-self: flex-start; }
.hub-filter { padding: 0; }
.hub-table .score { font-size: 18px; }
.hub-table .score.is-low { color: var(--danger); }
.hub-table td { vertical-align: top; }

dialog.send-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: hidden; }
.send-dlg { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 42px); }
.send-body { overflow-y: auto; padding: 4px 22px 18px; }
.send-body legend.label { margin-bottom: 8px; }

/* Eğitmen inceleme sayfası: aynı ödevde bekleyen teslim kuyruğu */
.review-queue { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--warning-bg); color: var(--text); font-size: 14px; }
.review-queue > .i { color: var(--warning); }
.review-queue .link { margin-left: auto; }

@media (max-width: 1100px) { .hub-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .hub-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog.send-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .send-dlg { height: 100dvh; max-height: none; }
  .send-body { padding: 4px 16px 16px; }
}

/* ------------------------------------------------------------------ Profil fotoğrafı (fmt.avatar) ve profil kartı */
.avatar.has-img { background: var(--surface-2); padding: 0; overflow: hidden; }
.avatar.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-xxl { width: 112px; height: 112px; font-size: 38px; }
.profile-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.profile-photo { flex: none; display: grid; place-items: center; padding: 5px; border-radius: 50%; background: linear-gradient(140deg, var(--primary-green), var(--tint)); }
.profile-photo .avatar { box-shadow: 0 0 0 4px var(--surface); }
.profile-id { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.profile-id .h2 { margin: 4px 0 0; font-size: 24px; overflow-wrap: anywhere; }
.profile-id > p { margin: 0; overflow-wrap: anywhere; }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.profile-photo-actions label.btn { cursor: pointer; }
.profile-photo-actions input[type=file]:focus-visible + label.btn { box-shadow: var(--focus); }
.hint.is-error { color: var(--danger); font-weight: 600; }
@media (max-width: 640px) {
  .profile-hero { justify-content: center; text-align: center; }
  .profile-id .row, .profile-photo-actions { justify-content: center; }
}

/* ------------------------------------------------------------------ Değerlendirme kutusu (pages/review-inbox.ejs + partials/review-detail.ejs) */
.review-table tbody tr[data-review-row] { cursor: pointer; transition: background .12s var(--ease); }
.review-table tbody tr[data-review-row]:hover { background: var(--surface-2); }
.review-table tbody tr.is-current { background: var(--tint); box-shadow: inset 3px 0 0 var(--primary-green); }

dialog.review-dialog { width: min(1120px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); max-height: none; overflow: hidden; }
.review-dlg { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.review-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.review-bar [data-review-pos] { min-width: 64px; text-align: center; }
.review-bar .review-keys { margin-right: auto; }
.review-bar .icon-btn { margin-left: auto; }
.review-body { overflow-y: auto; overscroll-behavior: contain; }
.review-loading { margin: 0; padding: 48px 24px; text-align: center; color: var(--muted); }

.rd { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; min-height: 100%; }
.rd-main { display: grid; gap: 16px; padding: 22px 24px 28px; min-width: 0; }
.rd-head .h3 { margin: 0; }
.rd-head p { margin: 4px 0 0; }
.rd-sec { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.rd-h { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--text); }
.rd-h .xs { margin-left: auto; font-weight: 600; letter-spacing: 0; }
.rd-checks, .rd-rubric { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rd-checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.rd-checks li.ok .rd-check-ic { color: var(--dark-green); }
.rd-checks li.no { background: var(--danger-bg); }
.rd-checks li.no .rd-check-ic { color: var(--danger); }
.rd-check-ic { flex: none; margin-top: 1px; }
.rd-rubric li { display: grid; gap: 5px; }
.rd-rubric-top { display: flex; align-items: center; gap: 8px; }
.rd-rubric-top .chip { padding: 1px 7px; }
.rd-rubric-score { margin-left: auto; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.rd-rubric-score small { font-family: var(--font-body); font-size: 11px; color: var(--muted); }
.rd-bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.rd-bar span { display: block; height: 100%; border-radius: inherit; background: var(--primary-green); }
.rd-bar span.is-low { background: #E0A21A; }
.rd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rd-two ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rd-good { background: var(--tint); border-color: transparent; }
.rd-todo { background: var(--warning-bg); border-color: transparent; }
.rd-code > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 700; font-size: 14px; list-style: none; }
.rd-code > summary::-webkit-details-marker { display: none; }
.rd-code[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rd-file { display: grid; gap: 4px; margin-top: 10px; }
.rd-file pre { margin: 0; max-height: 360px; overflow: auto; border-radius: 10px; }

.rd-side { position: sticky; top: 0; display: grid; gap: 14px; padding: 22px 20px 28px; border-left: 1px solid var(--border); background: var(--surface-2); min-height: 100%; align-content: start; }
.rd-score { display: grid; justify-items: start; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.rd-score-n { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; color: var(--dark-green); }
.rd-score-of { font-size: 13px; color: var(--muted); margin-top: -4px; }
.rd-score.is-low .rd-score-n { color: var(--danger); }
.rd-score-input { font-size: 20px; font-weight: 800; }
.rd-return > summary { list-style: none; }
.rd-return > summary::-webkit-details-marker { display: none; }
.rd-links { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 900px) {
  .rd { grid-template-columns: minmax(0, 1fr); }
  .rd-side { position: static; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  dialog.review-dialog { width: 100vw; max-width: 100vw; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .review-bar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .review-bar .review-keys { display: none; }
  .rd-main { padding: 16px; }
  .rd-side { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* ------------------------------------------------------------------ Danışma (pages/danisma.ejs): açılır satırlar */
.consult-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.consult-list > li + li { border-top: 1px solid var(--border); }
.consult-row > summary { display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; list-style: none; transition: background .12s var(--ease); }
.consult-row > summary::-webkit-details-marker { display: none; }
.consult-row > summary:hover { background: var(--surface-2); }
.consult-row > summary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px rgba(var(--brand-rgb),  .35); }
.consult-row[open] > summary { background: var(--surface-2); }
.cr-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cr-main strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-main .xs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-state { flex: none; }
.cr-chev { flex: none; color: var(--muted); transition: transform .15s var(--ease); }
.consult-row[open] .cr-chev { transform: rotate(180deg); }
.cr-body { display: grid; gap: 12px; padding: 4px 20px 18px 20px; background: var(--surface-2); }
.cr-q { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; line-height: 1.55; white-space: pre-line; }
.cr-reply { padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.cr-reply strong { display: flex; align-items: center; gap: 6px; color: var(--dark-green); }
.cr-reply p { margin: 6px 0 0; white-space: pre-line; }
.urg { flex: none; min-width: 62px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 800; text-align: center; letter-spacing: .02em; }
.urg-acil { background: var(--danger-bg); color: var(--danger); }
.urg-onemli { background: var(--warning-bg); color: var(--warning); }
.urg-normal { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.advisor-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.advisor-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
@media (max-width: 640px) {
  .consult-row > summary { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .consult-row > summary .avatar { display: none; }
  .cr-main { flex-basis: calc(100% - 100px); }
  .cr-state { margin-left: 72px; }
  .cr-body { padding: 4px 16px 16px; }
}

/* ================================================================
   KURS ATAMA SAYFASI — Premium Yeniden Tasarım
   ================================================================ */

/* ---- Adım Çubuğu (Stepper) ---- */
.assign-stepper {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 0 0 28px; padding: 16px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stepper-item {
  display: flex; align-items: center; gap: 10px; flex: 1;
  cursor: pointer; user-select: none; transition: opacity .2s var(--ease);
}
.stepper-item:last-child { flex: 0; }
.stepper-num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-strong);
  color: var(--muted);
  font-weight: 800; font-size: 14px;
  transition: all .3s var(--ease);
}
.stepper-label {
  font-weight: 700; font-size: 13.5px; color: var(--muted);
  white-space: nowrap;
  transition: color .3s var(--ease);
}
.stepper-line {
  flex: 1; height: 2px; margin: 0 16px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.stepper-line::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--primary-green);
  border-radius: inherit;
  transition: width .5s var(--ease);
}
.stepper-item.is-active .stepper-num {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  border-color: var(--primary-green);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(var(--brand-rgb),  .45);
}
.stepper-item.is-active .stepper-label { color: var(--dark-green); }
.stepper-item.is-active .stepper-line::after { width: 100%; }
.stepper-item.is-done .stepper-num {
  background: var(--tint); border-color: var(--primary-green); color: var(--dark-green);
}
.stepper-item.is-done .stepper-label { color: var(--dark-green); }
.stepper-item.is-done .stepper-line::after { width: 100%; }

/* ---- Paneller (Assign Cards) ---- */
.assign-panels { gap: 24px; align-items: start; }

.assign-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.assign-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-green), rgba(var(--brand-rgb),  .2));
  opacity: 0; transition: opacity .3s var(--ease);
  border-top-left-radius: calc(var(--radius-lg) - 1.5px);
  border-top-right-radius: calc(var(--radius-lg) - 1.5px);
  pointer-events: none;
}
.assign-card:hover { border-color: rgba(var(--brand-rgb),  .35); box-shadow: var(--shadow); }
.assign-card:hover::before { opacity: 1; }

/* Açık dropdown bulunan kart her zaman en üst katmana çıkar */
.assign-card:has(.pick-dropdown-root.is-open),
.assign-card.has-open-dropdown {
  z-index: 500 !important;
}

.assign-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  cursor: pointer; user-select: none;
  transition: background .2s var(--ease);
  border-top-left-radius: calc(var(--radius-lg) - 1.5px);
  border-top-right-radius: calc(var(--radius-lg) - 1.5px);
}
.assign-card.is-collapsed .assign-card-head {
  border-bottom-left-radius: calc(var(--radius-lg) - 1.5px);
  border-bottom-right-radius: calc(var(--radius-lg) - 1.5px);
  border-bottom: none;
}
.assign-card-head:hover { background: var(--surface-2); }

.assign-card-head-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.assign-card-head-right { display: flex; align-items: center; gap: 10px; flex: none; }

.assign-panel-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  font-size: 12px; font-weight: 700; color: var(--muted);
  transition: all .2s var(--ease);
}
.assign-panel-status.is-filled {
  background: rgba(var(--brand-2-rgb),  0.12);
  border-color: rgba(var(--brand-2-rgb),  0.35);
  color: var(--dark-green);
}

.assign-step-badge {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  color: #fff;
  font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px -3px rgba(var(--brand-rgb),  .4);
}

.assign-card-title {
  font-size: 17px; font-weight: 800; color: var(--text); margin: 0 0 2px;
  letter-spacing: -.01em;
}
.assign-card-sub { font-size: 13px; color: var(--muted); margin: 0; }

.assign-collapse-btn {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border: 1.5px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: all .2s var(--ease);
}
.assign-collapse-btn:hover {
  border-color: var(--primary-green); color: var(--primary-green); background: var(--tint);
}
.assign-card.is-collapsed .assign-collapse-btn .i { transform: rotate(-90deg); }

.assign-card-body {
  padding: 24px;
  animation: assignFadeIn .3s var(--ease);
}
.assign-card.is-collapsed .assign-card-body {
  display: none;
}
@keyframes assignFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Alan Etiketleri ---- */
.assign-field-label {
  display: inline-flex !important; align-items: center; gap: 8px;
  font-weight: 700 !important; font-size: 14px !important; color: var(--text) !important;
}
.assign-field-label .i { color: var(--primary-green); }
.mb-8 { margin-bottom: 8px; }

/* ---- İşlem Modu Seçici (Ata / Kaldır) ---- */
.assign-mode-selector {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.assign-mode-option { cursor: pointer; }
.assign-mode-option input { position: absolute; opacity: 0; pointer-events: none; }

.assign-mode-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface);
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.assign-mode-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: width .3s var(--ease);
}
.assign-mode-ata::before { background: linear-gradient(180deg, rgba(var(--brand-rgb),  .15), rgba(var(--brand-rgb),  .05)); }
.assign-mode-kaldir::before { background: linear-gradient(180deg, rgba(180, 35, 24, .1), rgba(180, 35, 24, .03)); }

.assign-mode-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.assign-mode-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  transition: all .25s var(--ease);
}
.assign-mode-ata .assign-mode-icon { background: var(--tint); color: var(--dark-green); }
.assign-mode-kaldir .assign-mode-icon { background: var(--danger-bg); color: var(--danger); }

.assign-mode-content { flex: 1; min-width: 0; }
.assign-mode-content strong { display: block; font-size: 14.5px; color: var(--text); }
.assign-mode-content small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.assign-mode-check {
  display: grid; place-items: center;
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  color: transparent;
  transition: all .25s var(--ease);
}

/* Seçili durum */
.assign-mode-option input:checked + .assign-mode-card {
  transform: translateY(-1px);
}
.assign-mode-option input:checked + .assign-mode-card::before { width: 100%; }
.assign-mode-option input:checked + .assign-mode-ata {
  border-color: var(--primary-green);
  box-shadow: 0 4px 16px -4px rgba(var(--brand-rgb),  .25), inset 0 0 0 1px rgba(var(--brand-rgb),  .15);
}
.assign-mode-option input:checked + .assign-mode-kaldir {
  border-color: var(--danger);
  box-shadow: 0 4px 16px -4px rgba(180, 35, 24, .15), inset 0 0 0 1px rgba(180, 35, 24, .1);
}
.assign-mode-option input:checked + .assign-mode-ata .assign-mode-icon {
  background: var(--primary-green); color: #fff;
  box-shadow: 0 4px 12px -3px rgba(var(--brand-rgb),  .5);
}
.assign-mode-option input:checked + .assign-mode-kaldir .assign-mode-icon {
  background: var(--danger); color: #fff;
  box-shadow: 0 4px 12px -3px rgba(180, 35, 24, .35);
}
.assign-mode-option input:checked + .assign-mode-card .assign-mode-check {
  border-color: var(--primary-green); background: var(--primary-green); color: #fff;
}
.assign-mode-option input:checked + .assign-mode-kaldir .assign-mode-check {
  border-color: var(--danger); background: var(--danger);
}
.assign-mode-option input:focus-visible + .assign-mode-card { box-shadow: var(--focus); }

/* ---- Bilgi Kutusu ---- */
.assign-info-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--tint) 0%, rgba(234, 248, 240, .5) 100%);
  border: 1px solid rgba(var(--brand-rgb),  .2);
  font-size: 13.5px; color: var(--dark-green);
}
.assign-info-box .i { color: var(--primary-green); flex: none; }

/* ---- Hedef Dropdown Seçici ---- */
.assign-target-dropdown { position: relative; }
.assign-target-select {
  width: 100%; min-height: 48px;
  padding: 12px 44px 12px 16px;
  border: 2px solid var(--border-strong); border-radius: 12px;
  background: var(--surface);
  font-size: 14.5px; font-weight: 700; color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23657579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.assign-target-select:hover { border-color: var(--primary-green); }
.assign-target-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb),  .12);
  outline: none;
}

.assign-target-block {
  animation: assignSlideDown .25s var(--ease);
}
@keyframes assignSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Filtre Grid (Okul / Sınıf / Şube) ---- */
.assign-filter-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.assign-filter-item { display: grid; gap: 6px; }
.assign-filter-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.assign-filter-label .i { color: var(--primary-green); width: 14px; height: 14px; }
.assign-filter-select {
  width: 100%; min-height: 44px;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border-strong); border-radius: 10px;
  background: var(--surface);
  font-size: 14px; color: var(--text);
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23657579' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.assign-filter-select:hover { border-color: var(--primary-green); }
.assign-filter-select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb),  .1);
  outline: none;
}

/* ---- İşlem Çubuğu (Action Bar) ---- */
.assign-action-bar {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.assign-action-bar::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary-green), var(--dark-green), var(--primary-green));
  background-size: 200% auto;
  animation: assignShimmer 3s linear infinite;
}
@keyframes assignShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.assign-action-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 28px;
}

.assign-action-left { flex: 1 1 320px; min-width: 0; }

.assign-action-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.assign-action-header .i { color: var(--primary-green); }
.assign-action-title {
  margin: 0; font-size: 16px; font-weight: 800; color: var(--text);
}

.assign-preview-box {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1.5px dashed var(--border-strong);
  font-size: 13.5px; min-height: 52px;
  color: var(--text-sub);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.assign-preview-box strong.big {
  display: block; font-family: var(--font-display);
  font-size: 28px; color: var(--dark-green); line-height: 1.1;
}
.assign-preview-box.is-error {
  background: var(--warning-bg); border-color: #F4D58D; color: var(--warning);
}

.assign-action-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}

/* ---- Bildirim Toggle Switch ---- */
.assign-notify-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
}
.assign-notify-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.assign-notify-switch {
  display: block; width: 44px; height: 24px; flex: none;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  transition: background .25s var(--ease);
}
.assign-notify-switch::after {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .25s var(--ease);
}
.assign-notify-toggle input:checked + .assign-notify-switch {
  background: var(--primary-green);
}
.assign-notify-toggle input:checked + .assign-notify-switch::after {
  transform: translateX(20px);
}
.assign-notify-label { font-size: 14px; font-weight: 600; color: var(--text); }

.assign-action-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.assign-btn-cancel {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  border: 1.5px solid var(--border-strong) !important;
  background: var(--surface) !important;
  color: var(--muted) !important;
  font-weight: 700; font-size: 14px;
  transition: all .2s var(--ease) !important;
}
.assign-btn-cancel:hover {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: var(--danger-bg) !important;
}

.assign-btn-submit {
  padding: 12px 28px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  box-shadow: 0 4px 14px -4px rgba(var(--brand-rgb),  .45) !important;
  transition: all .2s var(--ease), transform .15s var(--ease) !important;
}
.assign-btn-submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px -4px rgba(var(--brand-rgb),  .5) !important;
}
.assign-btn-submit:active {
  transform: translateY(0) !important;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .assign-panels { grid-template-columns: 1fr !important; }
  .assign-filter-grid { grid-template-columns: 1fr; }
  .assign-stepper { padding: 12px 16px; gap: 0; }
  .stepper-label { display: none; }
  .stepper-line { margin: 0 10px; }
}
@media (max-width: 768px) {
  .assign-card-head { padding: 16px 18px; }
  .assign-card-body { padding: 18px; }
  .assign-mode-selector { grid-template-columns: 1fr; }
  .assign-action-inner { padding: 18px 20px; }
  .assign-action-right { align-items: stretch; }
  .assign-action-btns { flex-direction: column; }
  .assign-btn-cancel, .assign-btn-submit { justify-content: center; }
  .stepper-label { display: block; font-size: 12px; }
  .stepper-line { margin: 0 8px; }
}
@media (max-width: 480px) {
  .assign-stepper { flex-wrap: wrap; gap: 8px; justify-content: space-between; }
  .stepper-line { display: none; }
  .stepper-item { flex: 0 0 auto; }
}

/* Toplu kurs atama: "Bu kayıtları sil" kırmızı çerçeveli ikincil düğme */
.assign-btn-delete { border-color: var(--danger) !important; color: var(--danger) !important; }

/* ------------------------------------------------------------------ Yönetim üst çubuğu açık zemindedir
   Öğrenci üst çubuğu koyu olduğu için arama, zil ve hesap düğmesi orada beyaz yazılıdır (panels.css);
   aynı kurallar yönetim çubuğunda beyaz zeminde görünmez kalıyordu. Burada koyu yazıya döner. */
.admin-topbar .top-search-box input { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 12px; }
.admin-topbar .top-search-box input::placeholder { color: var(--subtle); }
.admin-topbar .top-search-box input:focus { border-color: var(--primary-green); background: #fff; box-shadow: var(--focus); }
.admin-topbar .top-search-box .search-ic { color: var(--muted); }
.admin-topbar .top-search-box kbd { background: #fff; border-color: var(--border); color: var(--subtle); }
.admin-topbar .top-nav-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.admin-topbar .top-nav-btn:hover { background: var(--surface-2); color: var(--dark-green); border-color: var(--border-strong); }
.admin-topbar .top-user-pill { background: var(--surface); border: 1px solid var(--border); color: var(--text); padding: 3px 12px 3px 4px; }
.admin-topbar .top-user-pill:hover { background: var(--surface-2); border-color: var(--border-strong); }
.admin-topbar .top-user-pill .i { color: var(--muted); }

/* ---------------------------------------------------------------- Yönetim > Güvenlik */
.sec-card { display: grid; gap: 4px; }
.sec-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--border); }
.sec-row:first-of-type { border-top: 0; }
.sec-row .sec-text p { margin: 4px 0 0; max-width: 64ch; }
.sec-row.is-info { grid-template-columns: auto minmax(0, 1fr); }
.sec-select { min-width: 150px; }
.sec-switch input:focus-visible + .assign-notify-switch { outline: 2px solid var(--primary-green); outline-offset: 3px; }
@media (max-width: 640px) {
  .sec-row { grid-template-columns: auto minmax(0, 1fr); }
  .sec-row > .sec-switch, .sec-row > .sec-select { grid-column: 2; justify-self: start; }
}

/* ---------------------------------------------------------------- Ana sayfa vitrini: ana sayfadaki eğitmenler */
.he-inst { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.he-inst-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) 84px; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.he-inst-row.is-on { border-color: var(--primary-green); background: var(--tint); }
.he-inst-check input { width: 20px; height: 20px; accent-color: var(--primary-green); }
.he-inst-info { display: grid; gap: 2px; min-width: 0; }
.he-inst-bio { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.he-inst-order { display: grid; gap: 4px; }
.he-inst-order .input { min-height: 38px; text-align: center; }
.he-photo { cursor: pointer; }
@media (max-width: 640px) {
  .he-inst-row { grid-template-columns: auto auto minmax(0, 1fr); }
  .he-inst-order { grid-column: 2 / -1; grid-template-columns: auto 80px; align-items: center; }
}

/* ---------------------------------------------------------------- Yönetim genel bakış: öğrenci vitrini kartları */
.dv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.dv-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; transition: transform var(--duration-fast, .2s) var(--ease-smooth-out, ease), box-shadow var(--duration-fast, .2s); }
.dv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 12px 28px -14px rgba(16, 35, 41, .35)); }
.dv-card:hover .wk-media > img { transform: scale(1.04); }
.dv-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.dv-body strong { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dv-body small { font-size: 12.5px; color: var(--muted); }
.dv-body .xs .i { vertical-align: -2px; }
.dv-body > .chip { justify-self: start; }

/* ---------------------------------------------------------------- Vitrin onayı (yönetim, eğitmen, öğretmen, mentör) */
.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); gap: 16px; }
.sr-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; padding: 0; }
.sr-thumb { display: block; position: relative; min-height: 100%; }
.sr-thumb .wk-media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.sr-thumb:hover .wk-media > img, .sr-thumb:hover .wk-media > video { transform: scale(1.04); }
.sr-body { display: grid; gap: 10px; padding: 16px 18px; align-content: start; min-width: 0; }
.sr-title { margin: 0; font-size: 17px; }
.sr-title a { color: inherit; }
.sr-title a:hover { color: var(--deep-green); }
.sr-desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sr-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--border); }
.sr-form .input { flex: 1; min-width: 160px; min-height: 38px; }
.sr-form .select { width: auto; min-height: 38px; }
@media (max-width: 640px) {
  .sr-card { grid-template-columns: minmax(0, 1fr); }
  .sr-thumb { min-height: 0; }
  .sr-thumb .wk-media { position: relative; aspect-ratio: 16 / 10; height: auto; }
}

/* Yönetim → Dersler: dikey ders kartları ızgarası (admin/list.ejs + partials/admin-course-list.ejs).
   Kapak üstte (durum ve fiyat kapağın üzerinde), bilgiler ve 2×2 kutular ortada, işlemler altta. Dar ekranda tek sütun. */
.acl-help { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--info-bg); color: var(--info); font-size: 14px; }
.acl-help summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.acl-help p { margin: 8px 0 2px; color: var(--text); line-height: 1.55; }
.acl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: stretch; }
.acl-item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .2s, transform .2s; }
.acl-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.acl-item.is-pending { border-color: #F0C877; box-shadow: 0 0 0 3px var(--warning-bg), var(--shadow); }
.acl-cover { position: relative; display: block; }
.acl-item.is-draft .acl-cover > svg, .acl-item.is-draft .acl-cover > img { filter: saturate(.6); opacity: .85; }
.acl-state { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: #fff; color: var(--text); font-size: 13px; font-weight: 800; box-shadow: var(--shadow-sm); }
.acl-state.is-success { background: var(--dark-green); color: #fff; }
.acl-state.is-warning { background: #F0B44C; color: #3B2600; }
.acl-state.is-draft { background: rgba(16, 35, 41, .85); color: #fff; }
.acl-price { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: #fff; color: var(--text); font-size: 14px; font-weight: 800; box-shadow: var(--shadow-sm); }
.acl-price .i { color: #C98A12; }
.acl-price.is-free { color: var(--dark-green); }
.acl-price.is-free .i { color: var(--primary-green); }
.acl-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 16px; }
.acl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acl-title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; overflow-wrap: anywhere; }
.acl-title a { color: var(--text); text-decoration: none; }
.acl-title a:hover { color: var(--dark-green); text-decoration: underline; text-underline-offset: 3px; }
.acl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--muted); font-size: 14px; }
.acl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.acl-next { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--muted); }
.acl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: auto 0 0; padding-top: 8px; }
.acl-stats > div { min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.acl-stats dt { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.acl-stats dt .i { color: var(--dark-green); }
.acl-stats dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 4px 0 0; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acl-stats dd small { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.acl-actions { display: grid; gap: 12px; padding: 12px 18px 16px; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.acl-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.acl-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--dark-green); }
.acl-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.acl-buttons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.acl-buttons form { display: contents; }
.acl-buttons .btn { width: 100%; justify-content: center; }

/* Yönetim formu: onay kutusu grubu (ör. ödev animasyonları) */
.check-group { display: grid; gap: 6px; padding: 4px 0; }

/* Yönetim → Veliler: liste (admin/parents.ejs) */
.pl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.pl-stats > div { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.pl-stats dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pl-stats dd { margin-top: 2px; font-size: 24px; font-weight: 800; }
.pl-stats .is-warn { border-color: #F0C877; background: var(--warning-bg); }
.pl-stats .is-warn dd { color: var(--warning); }
.pl-search { position: relative; display: flex; gap: 8px; max-width: 640px; }
.pl-search .search-ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pl-search .input { flex: 1; min-width: 0; padding-left: 36px; }
.pl-list { display: grid; gap: 10px; }
.pl-item { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.4fr) auto; grid-template-areas: "who kids state" "actions actions actions"; align-items: center; gap: 12px 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.pl-who { grid-area: who; display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-name { display: block; font-size: 15.5px; font-weight: 800; overflow-wrap: anywhere; }
.pl-contact { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--muted); }
.pl-contact span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.pl-kids { grid-area: kids; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.pl-label { margin-right: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pl-kids .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pl-kids a.chip:hover { border-color: var(--primary-green); color: var(--dark-green); }
.pl-state { grid-area: state; justify-self: end; }
.pl-actions { grid-area: actions; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding-top: 10px; border-top: 1px dashed var(--border); }
.pl-actions form { display: contents; }
@media (max-width: 1100px) {
  .pl-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who state" "kids kids" "actions actions"; }
}
@media (max-width: 640px) {
  .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "who" "state" "kids" "actions"; }
  .pl-state { justify-self: start; }
  .pl-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Yeni veli hesabı (admin/parent-new.ejs): ilk şifre alanı ve adımlar */
.pv-pass { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-pass .input { flex: 1 1 240px; min-width: 0; font-family: var(--font-mono); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.pv-how ol { counter-reset: s; display: grid; gap: 12px; margin-top: 12px; }
.pv-how li { counter-increment: s; position: relative; padding-left: 34px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pv-how li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--dark-green); font-size: 12.5px; font-weight: 800; }
.pv-how li strong { color: var(--text); }

/* Veli giriş bilgileri kartı (admin/parent-credentials.ejs): kopyala / yazdır */
.vc-layout { display: grid; grid-template-columns: minmax(0, 620px) minmax(240px, 300px); gap: 24px; align-items: start; }
.vc-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.vc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px;
  background: radial-gradient(420px 200px at 100% 0%, rgba(var(--brand-rgb),  .3), transparent 65%), linear-gradient(120deg, var(--ink), var(--ink-4)); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.vc-head .brand-img { width: auto; height: 34px; }
.vc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(var(--brand-rgb),  .18); color: var(--brand-soft); font-size: 12.5px; font-weight: 700; }
.vc-body { display: grid; gap: 18px; padding: 24px 28px 28px; }
.vc-title { font-size: 20px; font-weight: 800; }
.vc-for { margin-top: -12px; color: var(--muted); }
.vc-creds { display: grid; gap: 10px; }
.vc-creds > div { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.vc-creds dt { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vc-creds dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vc-creds code { min-width: 0; padding: 0; border: 0; background: none; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.vc-creds > .vc-pass { border-color: var(--primary-green); background: var(--tint); }
.vc-pass code { font-size: 22px; font-weight: 700; letter-spacing: .03em; color: var(--deep-green); }
.vc-kids { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vc-steps { counter-reset: s; display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.vc-steps li { counter-increment: s; position: relative; padding-left: 28px; font-size: 14px; color: var(--text); }
.vc-steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-green); color: #fff; font-size: 11.5px; font-weight: 800; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.vc-sep { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--border); }
@media (max-width: 960px) { .vc-layout { grid-template-columns: minmax(0, 1fr); } }
@media print {
  body:has(#vc-print) .sidebar, body:has(#vc-print) .admin-topbar, body:has(#vc-print) .bottom-nav, body:has(#vc-print) .toast-wrap,
  body:has(#vc-print) .impersonation-bar, body:has(#vc-print) .no-print { display: none !important; }
  body:has(#vc-print) .shell { display: block !important; }
  body:has(#vc-print) .content { max-width: none; padding: 0; }
  body:has(#vc-print) .vc-layout { display: block; }
  body:has(#vc-print) .vc-card { max-width: 640px; margin: 0 auto; box-shadow: none; }
}

/* Okul formu: öğrenci paneli rengi (form.ejs type 'theme') ve okullar listesindeki renk hücresi */
.theme-pick { display: grid; gap: 12px; }
.theme-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-sw { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.theme-sw:has(input[type=radio]:checked) { border-color: var(--text); box-shadow: 0 0 0 2px var(--text) inset; }
.theme-sw input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.theme-sw:has(input[type=radio]:focus-visible) { outline: 3px solid var(--primary-green); outline-offset: 2px; }
.theme-dot { flex: none; display: inline-block; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.theme-color { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.theme-cell { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.theme-preview { --p: #43B063; max-width: 520px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tp-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: color-mix(in srgb, var(--p) 16%, #050807); color: #fff; font-size: 13px; }
.tp-bar b { margin-right: auto; }
.tp-act { padding: 3px 10px; border-radius: 99px; background: var(--p); }
.tp-body { display: grid; gap: 10px; padding: 14px; }
.tp-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tp-chip { padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--p) 12%, #fff); color: color-mix(in srgb, var(--p) 65%, #000); font-size: 12.5px; font-weight: 700; }
.tp-title { font-weight: 700; }
.tp-prog { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tp-prog span { display: block; width: 45%; height: 100%; background: var(--p); }
.tp-btn { padding: 7px 14px; border-radius: 10px; background: var(--p); color: #fff; font-size: 13px; font-weight: 700; }
.tp-link { color: color-mix(in srgb, var(--p) 70%, #000); font-size: 13.5px; font-weight: 700; }

/* ------------------------------------------------------------------ Yönetim → Vitrin (kontrol paneli, gönderiler, yarışmalar, yasaklar) */
.nowrap { white-space: nowrap; }
.ml-8 { margin-left: 8px; }
.card-mini.is-hot { border-color: #F3DDB0; background: linear-gradient(135deg, #FFF8EA, var(--surface) 75%); }
.vt-admin-tabs { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.vt-admin-tabs a { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.vt-admin-tabs .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: #E0A21A; color: var(--ink); font-size: 11px; font-weight: 800; margin-left: 2px; }
.vtk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.vtk-grid .card-mini { display: block; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.vtk-grid a.card-mini:hover { border-color: var(--primary-green); transform: translateY(-1px); }
.vtk-4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.vt-th { --h: 160; width: 52px; height: 40px; flex: none; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, hsl(var(--h) 45% 22%), hsl(var(--h) 55% 34%)); color: #fff; }
.vt-th img { width: 100%; height: 100%; object-fit: cover; }
.vt-rank { width: 22px; flex: none; text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.vt-filters { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 1fr)) auto; gap: 14px; align-items: end; }
.vt-filters .search { width: 100%; }
.vt-filter-actions { display: flex; gap: 8px; }
.select.select-inline { width: auto; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.vt-pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.vt-table td { vertical-align: middle; }
.vt-contest-card { display: flex; flex-direction: column; }
.vt-contest-card .btn-row { margin-top: auto; padding-top: 16px; }
.vt-contest-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.vt-contest-stats div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.vt-contest-stats dt { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.vt-contest-stats dd { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.vt-podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.vt-podium-item { display: flex; align-items: center; gap: 12px; }
.vt-medal { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; background: #B08D2B; }
.vt-podium-item.is-1 { border-color: #E9C46A; } .vt-podium-item.is-1 .vt-medal { background: linear-gradient(135deg, #E9B949, #B7861B); }
.vt-podium-item.is-2 .vt-medal { background: linear-gradient(135deg, #A9B4BA, #6E7A80); }
.vt-podium-item.is-3 .vt-medal { background: linear-gradient(135deg, #C98A55, #8F5A2E); }
@media (max-width: 1100px) { .vt-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vt-filters .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .vt-filters { grid-template-columns: minmax(0, 1fr); } .vt-filter-actions .btn-primary { flex: 1; } }
/* Kayıt geçmişi süzgeci */
.el-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.el-filters .el-q { grid-column: span 2; }
.el-filters .search { width: 100%; }
@media (max-width: 600px) { .el-filters .el-q { grid-column: auto; } }

/* ------------------------------------------------------------------ Toplu kurs atama (iki panel: kurslar | öğrenci tablosu) */
.link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--dark-green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ca-grid { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(0, 2.15fr); gap: 20px; align-items: start; }
.ca-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; margin: 0; }
.ca-step { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; background: var(--dark-green); }
.ca-courses { position: sticky; top: calc(var(--topbar-h) + 16px); }
.ca-courses .search { width: 100%; }
.ca-course-list { max-height: min(60vh, 520px); overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 6px; background: var(--surface); scrollbar-width: thin; }
.ca-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.ca-group + .ca-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.ca-group legend { padding: 6px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ca-course { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.ca-course:hover { background: var(--surface-2); }
.ca-course:has(input:checked) { background: var(--tint); }
.ca-course input { width: 17px; height: 17px; accent-color: var(--dark-green); grid-row: span 2; }
.ca-course-t { font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.ca-course-m { font-size: 12px; color: var(--muted); }
.ca-nores { padding: 10px; margin: 0; }
.ca-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ca-filters-2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.ca-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ca-actions { display: flex; gap: 8px; }
.ca-actions .btn-primary { min-width: 120px; justify-content: center; }
.ca-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--dark-green); list-style: none; }
.ca-more summary::-webkit-details-marker { display: none; }
.ca-more .ca-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ca-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ca-selall { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ca-selall input { width: 17px; height: 17px; accent-color: var(--dark-green); }
[data-selected-info] { margin-left: auto; }
.ca-table th { white-space: nowrap; }
.ca-sort { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-weight: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.ca-sort .i { opacity: .45; }
th[aria-sort="ascending"] .ca-sort .i, th[aria-sort="descending"] .ca-sort .i { opacity: 1; color: var(--dark-green); }
.ca-table tbody tr.is-selected { background: var(--tint); }
.ca-table input[type="checkbox"], .ca-table thead input { width: 17px; height: 17px; accent-color: var(--dark-green); }
.ca-table-wrap { border: 1px solid var(--border); border-radius: 12px; }
.ca-bar .bulk-count strong { font-size: 16px; }
.ca-bar .assign-notify-toggle { color: #fff; }
.ca-bar .btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.ca-bar .btn-primary.btn-danger { background: var(--danger); border-color: var(--danger); }
@media (max-width: 1200px) { .ca-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .ca-grid { grid-template-columns: minmax(0, 1fr); } .ca-courses { position: static; } .ca-course-list { max-height: 320px; } }
@media (max-width: 600px) {
  .ca-filters, .ca-more .ca-filters, .ca-pair, .ca-filters-2 { grid-template-columns: minmax(0, 1fr); }
  .ca-actions .btn-primary { flex: 1; }
  [data-selected-info] { margin-left: 0; }
}
.ca-table th, .ca-table td { padding-left: 12px; padding-right: 12px; }
.ca-col-ad { min-width: 170px; }
.ca-col-okul { min-width: 170px; }
.ca-col-ad .sub { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.ca-mail-sub { display: none; word-break: break-all; }
@media (max-width: 1500px) { .ca-col-email { display: none; } .ca-mail-sub { display: inline; } }

/* ------------------------------------------------------------------ Bakım Modu sayfası */
.mt-row { display: flex; align-items: center; gap: 10px; }
.mt-row .i { width: 26px; height: 26px; color: var(--muted); }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.mt-status { display: grid; justify-items: center; gap: 10px; padding: 32px 28px 24px; text-align: center; }
.mt-orb { width: 58px; height: 58px; border-radius: 50%; margin-bottom: 4px;
  background: radial-gradient(circle at 35% 30%, #A7F3C8, #34C77B 55%, #1E9A5C); box-shadow: 0 10px 26px -8px rgba(52, 199, 123, .7); }
.mt-status.is-off .mt-orb { background: radial-gradient(circle at 35% 30%, #FFC2C2, #EF4444 55%, #B91C1C); box-shadow: 0 10px 26px -8px rgba(239, 68, 68, .7);
  animation: mt-pulse 1.8s ease-in-out infinite; }
@keyframes mt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45), 0 10px 26px -8px rgba(239, 68, 68, .7); } 50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0), 0 10px 26px -8px rgba(239, 68, 68, .7); } }
.mt-state { margin: 4px 0 0; font-size: 26px; font-weight: 800; color: #1E8F55; }
.mt-status.is-off .mt-state { color: #DC2626; }
.mt-desc { margin: 0; max-width: 46ch; color: var(--muted); line-height: 1.6; }
.mt-toggle { width: 100%; margin-top: 8px; }
.mt-big { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 60px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 19px; font-weight: 800; letter-spacing: .01em; color: #fff; transition: transform .15s ease, filter .15s ease; }
.mt-big .i { width: 22px; height: 22px; }
.mt-big.is-stop { background: #DC3545; box-shadow: 0 12px 26px -14px rgba(220, 53, 69, .9); }
.mt-big.is-go { background: #1E9A5C; box-shadow: 0 12px 26px -14px rgba(30, 154, 92, .9); }
.mt-big:hover { filter: brightness(1.06); transform: translateY(-1px); }
.mt-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.mt-since { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; }
.mt-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mt-role { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.mt-role:has(input:checked) { border-color: var(--primary-green); background: var(--tint); }
.mt-code { margin: 10px 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2, #F3F6F5); font-size: 13px; line-height: 1.7; overflow-x: auto; }
.mt-preview { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.mt-preview-box { display: grid; justify-items: center; gap: 8px; margin-top: 8px; padding: 26px 20px; border-radius: 16px; text-align: center; color: #CFE3DB;
  background: radial-gradient(420px 200px at 50% 0%, rgba(67, 176, 99, .3), transparent 70%), #061B19; }
.mt-preview-badge { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mt-preview-box strong { font-size: 20px; color: #fff; }
.mt-preview-box p { margin: 0; max-width: 52ch; font-size: 14px; line-height: 1.6; }
.mt-preview-eta { padding: 6px 12px; border-radius: 10px; background: rgba(67, 176, 99, .18); color: #7FE6AC; font-size: 13px; font-weight: 700; }
.mt-preview-eta[hidden] { display: none; }
.mt-link-card { align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.mt-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #34C77B; box-shadow: 0 0 0 5px rgba(52, 199, 123, .18); }
.mt-link-card.is-off .mt-dot { background: #EF4444; box-shadow: 0 0 0 5px rgba(239, 68, 68, .18); }
@media (max-width: 980px) { .mt-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .mt-status.is-off .mt-orb { animation: none; } }

/* ------------------------------------------------------------------ Kayıt geçmişi (başlık kartı, süzgeç çubuğu, tablo) */
.el-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin-bottom: 16px; }
.el-head-t { display: flex; align-items: center; gap: 14px; }
.el-head-t > .i { width: 26px; height: 26px; color: var(--dark-green); }
.el-head .breadcrumb { margin: 0 0 2px; }
.el-title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.el-card { padding: 20px 22px; }
.el-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.el-bar .el-q { flex: 1 1 220px; width: auto; min-width: 200px; }
.el-range { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--muted); }
.el-range input { border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--text); min-width: 0; }
.el-range input:focus { outline: none; }
.el-range:focus-within { border-color: var(--primary-green); box-shadow: 0 0 0 3px rgba(67, 176, 99, .18); }
.el-go { min-width: 110px; justify-content: center; }
.el-more { flex-basis: 100%; }
.el-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.el-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.el-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; font-size: 14px; color: var(--muted); }
.el-table td { vertical-align: middle; }
.el-table .el-course { font-weight: 600; color: var(--text); }
.el-table a.el-course:hover { color: var(--dark-green); }
.el-table tr.is-removed td { background: #FFF8F7; }
.el-opt { text-align: center; width: 90px; }
.el-del { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2, #F3F6F5); }
.el-del:hover { background: #FDECEC; color: var(--danger); }
.el-pager { margin-top: 16px; }

/* ------------------------------------------------------------------ Ödeme raporu (gelir kartları, aylık çubuklar, listeler) */
.el-sel { width: auto; min-width: 150px; height: 44px; }
.rv-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rv-kpi { display: grid; gap: 6px; padding: 18px 20px; }
.rv-kpi > span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rv-kpi b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.rv-kpi small { font-size: 12.5px; color: var(--muted); }
.rv-kpi .up { color: var(--dark-green); font-weight: 800; }
.rv-kpi .down { color: var(--danger); font-weight: 800; }
.rv-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 220px; margin-top: 14px; }
.rv-bar { display: grid; grid-template-rows: 18px 1fr 20px; height: 100%; text-align: center; min-width: 0; }
.rv-bar-v { font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-bar-col { display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--border); }
.rv-bar-col i { display: block; width: min(100%, 38px); border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #5BC983, var(--primary-green)); }
.rv-bar-l { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.rv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.rv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.rv-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.rv-li-t { flex: 1; min-width: 0; }
.rv-li-t strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-li-t span { font-size: 13px; color: var(--muted); }
.rv-list .rv-meter { width: 110px; }
.rv-meter { display: block; height: 8px; border-radius: 99px; background: var(--surface-2, #EEF3F1); overflow: hidden; }
.rv-meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary-green); }
.iv-courses { margin-top: 6px; font-size: 13px; }
.iv-courses summary { cursor: pointer; color: var(--dark-green); font-weight: 700; }
.iv-courses ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.iv-courses li { display: flex; justify-content: space-between; gap: 10px; }
.iv-courses li span { color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .rv-two { grid-template-columns: minmax(0, 1fr); } .rv-bars { gap: 4px; } .rv-bar-v { display: none; } }

/* ------------------------------------------------------------------ Sistem ve güvenlik (uyarılar, anahtarlar, açılır bölümler) */
.sys-alerts { padding: 18px 20px; margin-bottom: 16px; border-left: 4px solid #F59E0B; }
.sys-alerts.is-clear { border-left-color: var(--primary-green); }
.sys-alerts-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sys-alerts-h .h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.sys-alerts-h .h3 .i { color: #D97706; }
.sys-alerts.is-clear .sys-alerts-h .h3 .i { color: var(--primary-green); }
.sys-al-list { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.sys-al-list:empty { display: none; }
.sys-al { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid; }
.sys-al > .i { flex: none; width: 20px; height: 20px; }
.sys-al > div { flex: 1; min-width: 0; }
.sys-al strong { display: block; font-size: 14.5px; }
.sys-al span { display: block; font-size: 13px; opacity: .85; overflow-wrap: anywhere; }
.sys-al.is-danger { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.sys-al.is-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.sys-al.is-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.sys-al .btn { flex: none; }
.sys-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 16px; }
.sys-switch { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 0; }
.sys-switch.is-alert { border-color: #FCA5A5; background: #FFF7F7; }
.sys-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--dark-green); }
.sys-ic .i { width: 21px; height: 21px; }
.sys-ic.is-red { background: #FEE2E2; color: #DC2626; }
.sys-sw-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sys-sw-t strong { font-size: 15px; }
.sys-sw-t > span { font-size: 12.5px; color: var(--muted); }
.sys-sw { flex: none; }
.sys-switch .assign-notify-switch { width: 50px; height: 28px; }
.sys-switch .assign-notify-switch::after { width: 22px; height: 22px; }
.sys-switch .assign-notify-toggle input:checked + .assign-notify-switch::after { transform: translateX(22px); }
.sys-switch.is-alert .assign-notify-toggle input:checked + .assign-notify-switch { background: #DC2626; }
.sys-idle { height: 34px; padding-block: 0; font-size: 13.5px; margin-top: 4px; }
.sys-secs { display: grid; gap: 12px; }
.sys-sec { padding: 0; overflow: hidden; scroll-margin-top: 80px; }
.sys-sec > summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.sys-sec > summary::-webkit-details-marker { display: none; }
.sys-sec > summary:hover { background: var(--surface-2, #F7FAF9); }
.sys-sec-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sys-sec-t strong { font-size: 16px; }
.sys-sec-t > span { font-size: 13px; color: var(--muted); }
.sys-chev { flex: none; color: var(--muted); transition: transform .2s ease; }
.sys-sec[open] .sys-chev { transform: rotate(180deg); }
.sys-sec-b { padding: 4px 20px 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.sys-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.sys-box { display: block; }
.sys-sess { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.sys-sess .kpi { display: block; }
@media (max-width: 900px) { .sys-two { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Kursları yönet, kurs sıralaması, atölye şubeleri ve yoklama */
.cm-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cm-kpi { display: grid; gap: 4px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.cm-kpi b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.cm-kpi span { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.cm-kpi:hover { border-color: var(--primary-green); transform: translateY(-2px); }
.cm-kpi.is-on { border-color: var(--primary-green); background: var(--tint); }
.cm-filter { position: relative; }
.cm-filter > summary { list-style: none; }
.cm-filter > summary::-webkit-details-marker { display: none; }
.cm-filter-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; display: grid; gap: 10px; width: 280px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow, 0 16px 40px -20px rgba(16, 35, 41, .35)); }
.cm-course { display: flex; align-items: center; gap: 12px; }
.cm-thumb { flex: none; position: relative; width: 64px; height: 42px; border-radius: 8px; overflow: hidden; }
.cm-thumb > svg, .cm-thumb > img, .cm-thumb > .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Satır menüleri tablonun dışına açılabilsin diye kaydırma kapalı; tablo dar ekranda sütun gizleyerek sığar (aşağıdaki @media) */
.cm-wrap { overflow: visible; }
.cm-col-course { min-width: 260px; }
.cm-cat-sub { display: none; }
.cm-menu { position: relative; display: inline-block; }
.cm-menu > summary { list-style: none; cursor: pointer; }
.cm-menu > summary::-webkit-details-marker { display: none; }
.cm-menu-pop { position: absolute; z-index: 30; right: 0; top: calc(100% + 4px); display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -18px rgba(16, 35, 41, .4); text-align: left; }
.cm-menu-pop a, .cm-menu-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; color: var(--text); text-decoration: none; cursor: pointer; }
.cm-menu-pop a:hover, .cm-menu-pop button:hover { background: var(--surface-2, #F3F6F5); }
.cm-menu-pop form { margin: 0; }
.co-bar { position: sticky; top: 70px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font-weight: 600; }
.co-bar[hidden] { display: none; }
.co-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.co-item { display: flex; align-items: center; gap: 16px; padding: 12px 18px; margin: 0; cursor: grab; transition: box-shadow .15s ease, opacity .15s ease; }
.co-item.is-dragging { opacity: .5; box-shadow: 0 0 0 2px var(--primary-green); }
.co-num { flex: none; display: grid; place-items: center; min-width: 34px; height: 30px; border-radius: 8px; background: var(--surface-2, #F3F6F5); font-weight: 800; }
.co-thumb { flex: none; position: relative; width: 78px; height: 52px; border-radius: 8px; overflow: hidden; }
.co-thumb > svg, .co-thumb > img, .co-thumb > .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-t { flex: 1; min-width: 0; display: grid; gap: 4px; }
.co-t strong { font-size: 16px; }
.co-t .chip { height: 22px; }
.co-move { display: flex; gap: 4px; }
.co-grip { flex: none; color: var(--muted); }
.wm-title { font-size: 15.5px; font-weight: 800; }
.wm-act { text-align: right; }
.wm-btn { min-width: 96px; justify-content: center; }
.wmg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.wmg-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; }
.wmg-facts > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.wmg-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wmg-facts dd { margin: 4px 0 0; font-weight: 700; }
.wmg-sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); margin: 0; }
.wmg-sw > div { display: grid; gap: 2px; }
.wmg-sw > div > span { font-size: 12.5px; color: var(--muted); }
.wmg-att { display: inline-flex; gap: 6px; }
.wmg-att form { margin: 0; }
.wmg-b { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--muted); }
.wmg-b.is-yes.is-on { background: #DCFCE7; border-color: #86EFAC; color: #166534; }
.wmg-b.is-no.is-on { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }
.wa-daybar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wa-daybar .h3 { margin: 0; min-width: 240px; text-align: center; }
.wa-pick { margin-left: auto; }
.wa-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.wa-card { display: flex; align-items: center; gap: 16px; padding: 14px 18px; text-decoration: none; color: inherit; }
.wa-card:hover { border-color: var(--primary-green); }
.wa-time { flex: none; font-family: var(--font-display); font-size: 20px; font-weight: 600; min-width: 64px; }
.wa-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.wa-t > span { font-size: 13px; color: var(--muted); }
.wa-n { flex: none; text-align: center; font-weight: 700; }
.wa-n b { font-size: 20px; }
.wa-n small { display: block; font-size: 11.5px; color: var(--muted); }
/* Telefonda gün çubuğu üç satıra dağılıyor, atölye kartı sayfayı yana taşırıyordu */
@media (max-width: 600px) {
  .wa-daybar .h3 { flex: 1; min-width: 0; font-size: 16px; }
  .wa-pick { flex-basis: 100%; margin-left: 0; }
  .wa-pick .input { width: 100%; }
  .wa-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; }
  .wa-time { min-width: 0; font-size: 18px; }
  .wa-card > .btn { grid-column: 1 / -1; }
}
@media (max-width: 1100px) { .cm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .wmg-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .co-move { display: none; } }
/* Kurs tablosu yan menülü dizüstü ekranda "Seçenekler" sütununu kartın dışına itiyordu: # ve kategori sütunu gizlenir,
   kategori kurs adının altında yazar. Daha dar ekranda satırlar kart düzenine geçer (telefonda tablo sayfayı 1089 px'e genişletiyordu). */
@media (max-width: 1440px) {
  .cm-table .cm-col-n, .cm-table .cm-col-cat { display: none; }
  .cm-cat-sub { display: block; }
  .cm-table th, .cm-table td { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 1240px) {
  .cm-table, .cm-table tbody { display: block; }
  .cm-table thead { display: none; }
  .cm-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .cm-table tr:last-child { border-bottom: 0; }
  .cm-table td { display: block; padding: 0; border: 0; }
  .cm-table td.cm-col-course { flex: 1 1 calc(100% - 58px); min-width: 0; }
  .cm-table td.el-opt { flex: none; width: 40px; }
  .cm-table td:not(.cm-col-course):not(.el-opt) { order: 1; }
}
@media (max-width: 768px) {
  .el-bar { position: relative; }
  .cm-filter { position: static; }
  .cm-filter-pop { top: auto; left: 0; right: 0; width: auto; margin-top: 6px; }
}

/* ------------------------------------------------------------------ Genel bakış (yönetim gösterge paneli) */
.db-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 26px 28px; border-radius: 22px; color: #fff;
  background: radial-gradient(600px 260px at 100% 0%, rgba(67, 176, 99, .35), transparent 70%), linear-gradient(135deg, #0B3A2C, #061B19 70%); }
.db-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .7); }
.db-title { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.db-sub { margin: 6px 0 0; color: rgba(255, 255, 255, .78); }
.db-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.db-actions a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s ease; }
.db-actions a:hover { background: rgba(255, 255, 255, .16); }
.db-actions a > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(67, 176, 99, .3); }
.db-sec { margin-bottom: 22px; }
.db-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.db-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.db-task { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: inherit; border-left: 4px solid #60A5FA; transition: transform .15s ease, box-shadow .15s ease; }
.db-task:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(16, 35, 41, .45); }
.db-task.is-warn { border-left-color: #F59E0B; }
.db-task.is-danger { border-left-color: #EF4444; }
.db-task-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #EFF6FF; color: #2563EB; }
.db-task.is-warn .db-task-ic { background: #FFFBEB; color: #D97706; }
.db-task.is-danger .db-task-ic { background: #FEF2F2; color: #DC2626; }
.db-task-t { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.db-task-t b { font-family: var(--font-display); font-size: 24px; font-weight: 600; grid-row: span 2; }
.db-task-t strong { font-size: 14.5px; }
.db-task-t > span { font-size: 12.5px; color: var(--muted); }
.db-task-go { color: var(--muted); }
.db-clear { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.db-clear-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--primary-green); }
.db-clear strong { display: block; }
.db-clear span { font-size: 13.5px; color: var(--muted); }
.db-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.db-stat { display: grid; gap: 4px; padding: 16px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.db-stat:hover { border-color: var(--primary-green); }
.db-stat-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.db-stat-k .i { color: var(--primary-green); }
.db-stat b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.db-stat-s { font-size: 12.5px; color: var(--muted); }
.db-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1280px) { .db-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .db-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .db-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .db-hero { padding: 22px 18px; } }

/* Genel bakış: üst alandaki devre kartı */
.db-hero { align-items: center; overflow: hidden; position: relative; }
.db-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.db-hero > * { position: relative; }
.db-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.db-pills span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); }
.db-led { width: 8px; height: 8px; border-radius: 50%; background: #43B063; box-shadow: 0 0 0 3px rgba(67, 176, 99, .25); animation: db-led 2s ease-in-out infinite; }
@keyframes db-led { 50% { opacity: .4; } }
.db-circuit { flex: 1 1 360px; max-width: 560px; height: auto; min-width: 0; }
.db-tr path { fill: none; stroke: rgba(67, 176, 99, .28); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.db-lit path { fill: none; stroke: #6EE7A0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26 400; animation: db-flow 4.5s linear infinite; }
.db-lit .d2 { animation-delay: -1.2s; } .db-lit .d3 { animation-delay: -2.3s; animation-duration: 3.6s; } .db-lit .d4 { animation-delay: -3.1s; animation-duration: 5.2s; }
@keyframes db-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -426; } }
.db-nodes circle, .db-nodes rect { fill: #0B2A21; stroke: #43B063; stroke-width: 2; }
.db-pins rect { fill: rgba(67, 176, 99, .55); }
.db-chip { fill: #0E3226; stroke: #43B063; stroke-width: 2; filter: drop-shadow(0 0 12px rgba(67, 176, 99, .35)); }
.db-chip-n { fill: #fff; font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.db-chip-l { fill: #7FE6AC; font-size: 9.5px; font-weight: 800; letter-spacing: .14em; }
@media (max-width: 860px) { .db-circuit { display: none; } }
@media (prefers-reduced-motion: reduce) { .db-lit path, .db-led { animation: none; } .db-lit path { stroke-dasharray: none; opacity: .5; } }
.mt-role span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mt-role.is-fixed { background: var(--surface-2, #F3F6F5); color: var(--muted); cursor: default; }

/* ------------------------------------------------------------------ Ana sayfa içerik yönetimi (home-editor) */
.he-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.he-jump a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.he-jump a:hover { border-color: var(--primary-green); color: var(--primary-green); }
.he-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.he-main { display: grid; gap: 18px; min-width: 0; }
.he-card { padding: 22px; scroll-margin-top: 90px; }
.he-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.he-head > div { flex: 1; min-width: 0; }
.he-head .h3 { margin: 0 0 3px; font-size: 17px; }
.he-head p { margin: 0; }
.he-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--primary-green); }
.he-sub { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 14px; font-weight: 800; }
.he-sub small { font-weight: 600; font-size: 12.5px; }
.he-sws { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.he-sw { position: relative; display: grid; justify-items: center; gap: 6px; width: 72px; padding: 10px 4px 8px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.he-sw:hover { transform: translateY(-2px); border-color: var(--border-strong, #C9D6D1); }
.he-sw > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.he-sw:has(> input:checked) { border-color: var(--text); box-shadow: 0 0 0 3px rgba(16, 35, 41, .08); }
.he-sw:has(> input:focus-visible) { outline: 2px solid var(--primary-green); outline-offset: 2px; }
.he-sw-dot { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c, #fff); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 6px 14px -6px var(--c, transparent); }
.he-sw:has(> input:checked) .he-sw-dot::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); pointer-events: none; }
.he-sw-dot.is-auto { background: conic-gradient(from 0deg, #43B063, #2563EB, #7C3AED, #FF1E44, #EA580C, #43B063); color: #fff; }
.he-sw-dot.is-auto .i { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.he-sw:has(> input:checked) .he-sw-dot.is-auto::after { display: none; }
.he-sw-dot.is-pick { overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.he-sw-dot.is-pick input[type=color] { position: absolute; inset: -8px; width: 50px; height: 50px; border: 0; padding: 0; cursor: pointer; opacity: 0; }
.he-sw:has(> input:checked) .he-sw-dot.is-pick input[type=color] { opacity: 1; }
.he-sw-l { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
.he-sw:has(> input:checked) .he-sw-l { color: var(--text); }
.he-card > .field + .field, .he-card > .grid + .field, .he-card > .field + .grid, .he-card > .grid + .grid { margin-top: 14px; }
.he-toggle { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.he-toggle input { position: absolute; opacity: 0; }
.he-toggle-ui { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--border-strong, #C9D6D1); transition: background .15s ease; }
.he-toggle-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.he-toggle input:checked + .he-toggle-ui { background: var(--primary-green); }
.he-toggle input:checked + .he-toggle-ui::after { transform: translateX(20px); }
.he-toggle input:focus-visible + .he-toggle-ui { outline: 2px solid var(--primary-green); outline-offset: 2px; }
.he-rows { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.he-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) 34px; gap: 8px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color .15s ease; }
.he-row.is-empty { background: var(--surface-2, #F6F8F7); border-style: dashed; }
.he-row-say { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr) 110px 34px; }
.he-row-say textarea { grid-column: 2 / 5; resize: vertical; }
.he-row-say .he-clear { grid-row: 1; grid-column: 5; }
.he-num { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tint); color: var(--primary-green); font-size: 12.5px; font-weight: 800; }
.he-row-say .he-num { align-self: start; margin-top: 6px; grid-row: 1 / 3; }
.he-row.is-empty .he-num { background: transparent; color: var(--muted); border: 1px dashed var(--border); }
.he-row .inp { min-width: 0; }
.he-clear { width: 34px; padding: 0; justify-content: center; color: var(--muted); }
.he-row.is-empty .he-clear { visibility: hidden; }
.he-side { position: sticky; top: 84px; }
.he-pv { --he-h: color-mix(in srgb, var(--he-c) 78%, #000); overflow: hidden; border-radius: 18px; background: #070E0D; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); color: #fff; }
.he-pv-ann { padding: 7px 12px; background: var(--he-c); font-size: 11.5px; font-weight: 700; text-align: center; }
.he-pv-body { position: relative; display: grid; gap: 10px; justify-items: start; padding: 16px 18px 20px;
  background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--he-c) 35%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 22px 22px; }
.he-pv-top { display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 4px; }
.he-pv-top span { height: 5px; width: 22px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.he-pv-top .he-pv-logo { width: 18px; height: 18px; border-radius: 6px; background: var(--he-c); margin-right: auto; }
.he-pv-badge { padding: 3px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--he-c) 60%, transparent); background: color-mix(in srgb, var(--he-c) 16%, transparent); font-size: 10.5px; font-weight: 700; }
.he-pv-title { font-family: var(--font-display); font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.he-pv-title em { display: block; font-style: normal; color: var(--he-c); }
.he-pv-lead { margin: 0; font-size: 11.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.he-pv-btns, .he-pv-hover { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.he-pv-btn, .he-pv-btn2 { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 11.5px; font-weight: 800; cursor: pointer; transition: background .15s ease; }
.he-pv-btn { background: var(--he-c); }
.he-pv-btn:hover, .he-pv-btn.is-hover { background: var(--he-h); }
.he-pv-btn2 { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.he-pv-hover { margin-top: 4px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .14); width: 100%; color: rgba(255, 255, 255, .6); }
.he-pv-cap { display: flex; align-items: center; gap: 6px; margin: 0; padding: 9px 14px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); }
.he-bar { grid-column: 1 / -1; position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 40px -24px rgba(16, 35, 41, .45); transition: border-color .15s ease, box-shadow .15s ease; }
.he-bar-st { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.he-bar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary-green); }
.he-bar.is-dirty { border-color: #F59E0B; box-shadow: 0 18px 40px -20px rgba(245, 158, 11, .55); }
.he-bar.is-dirty .he-bar-st { color: var(--text); }
.he-bar.is-dirty .he-bar-dot { background: #F59E0B; animation: he-pulse 1.4s ease-in-out infinite; }
@keyframes he-pulse { 50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, .2); } }
.he-inst-card { margin-top: 20px; max-width: calc(100% - 360px); }
.he-inst-card .he-head .btn { flex: none; }
@media (max-width: 1200px) {
  .he-form { grid-template-columns: 1fr; }
  .he-side { position: static; order: -1; }
  .he-pv { max-width: 520px; }
  .he-inst-card { max-width: none; }
}
@media (max-width: 760px) {
  .he-row, .he-row-say { grid-template-columns: 28px minmax(0, 1fr) 34px; }
  .he-row .inp, .he-row-say textarea { grid-column: 2; }
  .he-row .he-clear, .he-row-say .he-clear { grid-row: 1; grid-column: 3; }
  .he-row .he-num { grid-row: 1 / 5; align-self: start; }
  .he-card { padding: 16px; }
  .he-sw { width: 64px; }
}
@media (prefers-reduced-motion: reduce) { .he-bar.is-dirty .he-bar-dot { animation: none; } }

/* ------------------------------------------------------------------ Token atama (tokens.ejs) */
.tk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tk-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tk-stat-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--tint); color: var(--primary-green); }
.tk-stat span { display: block; font-size: 12.5px; color: var(--muted); }
.tk-stat strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.tk-card { padding: 22px 24px; }
.tk-sec + .tk-sec { margin-top: 18px; }
.tk-h { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--muted); }
.tk-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 14px; max-width: 980px; }
.tk-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tk-filters .select:disabled { background: var(--surface-2); }
.tk-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 20px 0 16px; }
.tk-act-l, .tk-act-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-btn-outline { border-color: var(--primary-green); color: var(--dark-green); }
.tk-btn-add { background: var(--primary-green); border-color: var(--primary-green); color: #fff; }
.tk-btn-add:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.tk-btn-del { background: #E5484D; border-color: #E5484D; color: #fff; }
.tk-btn-del:hover:not(:disabled) { background: #CD3A3F; border-color: #CD3A3F; }
.tk-btn-add:disabled, .tk-btn-del:disabled { opacity: .55; }
.tk-btn-search { background: #2563EB; border-color: #2563EB; color: #fff; }
.tk-btn-search:hover { background: #1D4FD7; border-color: #1D4FD7; }
.tk-btn-clear { background: #5B6670; border-color: #5B6670; color: #fff; }
.tk-btn-clear:hover { background: #48525B; border-color: #48525B; }
.tk-badge { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; font-weight: 800; }
.tk-reset { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.tk-reset input { width: 16px; height: 16px; accent-color: #E5484D; }
.tk-tablebar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.tk-q { width: min(280px, 60vw); }
.tk-table-wrap { border: 1px solid var(--border); border-radius: 12px; }
.tk-table th { white-space: nowrap; }
.tk-table tbody tr:nth-child(odd) { background: var(--surface-2); }
.tk-table tbody tr.is-selected { background: var(--tint); }
.tk-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--dark-green); }
.tk-table .sub { font-size: 12px; color: var(--muted); }
.tk-bal { font-weight: 700; color: var(--muted); }
.tk-bal.is-on { color: var(--dark-green); }
.tk-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.tk-recent > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.tk-recent > summary::-webkit-details-marker { display: none; }
.tk-recent[open] > summary .i { transform: rotate(180deg); }
@media (max-width: 1200px) { .tk-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .tk-filters, .tk-detail { grid-template-columns: 1fr 1fr; }
  .tk-card { padding: 16px; }
  .tk-col-email, .tk-col-okul { display: none; }
}

/* ------------------------------------------------------------------ Atölye başvuruları (Yönetim → Bootcamp) */
.wap-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.wap-top.is-single { grid-template-columns: minmax(0, 1fr); }
.wap-ws-table td { vertical-align: top; }
.wap-schools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 28px; }
.wap-bar { display: flex; height: 6px; margin-top: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.wap-bar .ok { background: var(--primary-green); }
.wap-bar .wait { background: #E0A21A; }
.wap-sel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.wap-sel-grid > div { display: grid; gap: 2px; align-content: start; }
.wap-sel-grid strong.num { font-size: 20px; }
.wap-filters { grid-template-columns: minmax(200px, 1.3fr) repeat(4, minmax(130px, 1fr)) auto; }
.wap-table th, .wap-table td { padding: 12px 12px; vertical-align: top; }
.wap-table tr.is-hot td { background: var(--warning-bg); }
.wap-who { min-width: 240px; }
.wap-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.wap-kind { height: 20px; font-size: 11px; }
.wap-school { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text); }
.wap-school > svg { flex: none; margin-top: 2px; color: var(--dark-green); }
.wap-school .muted { font-weight: 500; }
.wap-note { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wap-ws { min-width: 150px; }
.wap-state { min-width: 170px; }
.wap-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.wap-actions { text-align: right; width: 1%; white-space: nowrap; }
.wap-act-row, .wap-pay-row { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.wap-act-row { align-items: flex-start; }
.wap-pay-row { margin-top: 8px; }
.wap-pay-row .check-row { padding: 0; font-size: 12px; gap: 6px; }
.wap-pay-row .check-row input { width: 16px; height: 16px; }
.wap-actions .select.select-sm { min-height: 32px; height: 32px; padding: 0 26px 0 8px; font-size: 12.5px; width: 116px; background-position: right 8px center; }
.wap-reject { text-align: right; }
.wap-reject[open] > summary { background: var(--surface-2); }
.wap-reject > summary { list-style: none; cursor: pointer; }
.wap-reject > summary::-webkit-details-marker { display: none; }
.wap-reject-pop { margin-top: 8px; width: 240px; padding: 12px; text-align: left; white-space: normal; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
/* Yan menülü 1280 px ekranda altı sütun karta sığmıyordu (Ara düğmesi taşıyordu): iki satıra geçer */
@media (max-width: 1440px) {
  .wap-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .wap-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wap-filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wap-filters { grid-template-columns: minmax(0, 1fr); }
}
