/* TDS 105 - Klavye Yazım Teknikleri — yönetim paneli (göz yormayan açık tema) */
body { overflow: hidden; }
.adm { display: flex; height: 100vh; height: 100dvh; }

/* ------------------------------------------------------------------ */
/* Kenar menü                                                          */
/* ------------------------------------------------------------------ */
.aside {
  width: 264px;
  flex: none;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(420px 260px at -10% -5%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(360px 260px at 120% 105%, rgba(167, 139, 250, .22), transparent 60%),
    linear-gradient(180deg, var(--side-2), var(--side));
  color: var(--side-muted);
  transition: margin-left .35s cubic-bezier(.22, 1, .36, 1);
  z-index: 30;
}
.adm.wide .aside { margin-left: -264px; }
.a-brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px; }
.a-brand .mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--card); color: var(--brand); box-shadow: 0 10px 24px -10px rgba(20, 24, 60, .5); }
.a-brand .mark svg { width: 24px; height: 24px; }
.a-brand b { display: block; color: #fff; font: 800 17px var(--display); }
.a-brand span { font-size: 12px; font-weight: 600; color: var(--side-muted); }
.a-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.a-nav .gh { padding: 14px 10px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #c7cdef; }
.a-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--side-ink);
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.a-item svg { width: 19px; height: 19px; flex: none; }
.a-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.a-item.active { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.a-item.active::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: #fcd34d; }
.a-item .cnt { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: rgba(187, 247, 208, .25); color: #dcfce7; font-size: 11.5px; font-weight: 800; }
.a-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 8px; }
.a-foot .a-item { justify-content: center; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); }
.a-foot .logout:hover { background: rgba(251, 113, 133, .28); color: #fff; border-color: rgba(254, 205, 211, .5); }

/* ------------------------------------------------------------------ */
/* İçerik                                                              */
/* ------------------------------------------------------------------ */
.a-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.a-top {
  height: 70px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: rgba(244, 246, 251, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.a-top h1 { font: 800 21px var(--display); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-top h1 small { font: 600 13px var(--font); color: var(--muted); margin-left: 10px; }
.clock { font: 700 14px var(--mono); color: var(--ink-2); padding: 7px 12px; border-radius: 10px; background: var(--card-2); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-2); }
.icon-btn:hover { background: var(--card-2); }
.icon-btn svg { width: 19px; height: 19px; }
.a-content { flex: 1; overflow-y: auto; padding: 24px; }
.panel { display: none; }
.panel.active { display: block; animation: panel-in .35s cubic-bezier(.22, 1, .36, 1); }
.panel#p-arena.active { display: flex; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 20px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-h h2 { font: 800 18px var(--display); flex: 1; min-width: 180px; }
.card-h p { width: 100%; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: -8px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; margin-top: 6px; font: 800 30px/1.1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi b.up { color: var(--ok); }
.kpi b.down { color: var(--bad); }
.kpi small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--grad); opacity: .08; }

/* Tablo */
.tbl-wrap { overflow: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card-hi); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; z-index: 1; background: var(--card-2); text-align: left; padding: 11px 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--brand); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid #e3e8f1; vertical-align: middle; }
.tbl tbody tr { transition: background .15s ease; }
.tbl tbody tr:hover { background: #edf0f8; }
.tbl tbody tr:last-child td { border-bottom: none; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .av { --s: 34px; }
.who b { display: block; font-weight: 700; white-space: nowrap; }
.who small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.pw-cell { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.pw-cell button { border: none; background: var(--card-2); border-radius: 8px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.pw-cell button:hover { background: #dbe1ec; color: var(--ink); }
.pw-cell svg { width: 15px; height: 15px; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-weight: 600; }

.bar { height: 7px; border-radius: 999px; background: #dde3ee; overflow: hidden; min-width: 70px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .6s cubic-bezier(.22, 1, .36, 1); }

/* Isı haritası */
.heat { display: grid; grid-template-columns: repeat(16, 16px); gap: 3px; }
.heat i { width: 16px; height: 16px; border-radius: 4px; background: #dde3ee; position: relative; }
.heat i.p { background: hsl(232 70% calc(88% - var(--p) * .3%)); }
.heat i.d { background: linear-gradient(135deg, #22c55e, #15803d); }

.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.search .input { padding-left: 38px; min-width: 240px; }

.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #dde3ee; gap: 2px; }
.seg button { border: none; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--card-hi); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 42, 68, .14); }

/* Takvim */
.mod-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 230px 170px 40px; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid #e3e8f1; }
.mod-row:last-child { border-bottom: none; }
.mod-num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font: 800 16px var(--display); }
.mod-row b { display: block; font-weight: 700; }
.mod-row small { color: var(--muted); font-size: 12.5px; }
.mod-row .input { padding: 9px 12px; }

/* Öğrenci detay */
.drawer { position: fixed; inset: 0; z-index: 9000; background: rgba(40, 48, 90, .38); backdrop-filter: blur(4px); animation: fade-in .2s ease; }
.drawer-card { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--card); box-shadow: -30px 0 60px -20px rgba(36, 44, 100, .35); padding: 26px; overflow-y: auto; animation: drawer-in .4s cubic-bezier(.22, 1, .36, 1); }
.drawer.out { animation: fade-out .2s ease forwards; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-h { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.drawer-h .av { --s: 54px; }
.drawer-h h3 { font: 800 21px var(--display); }
.drawer-h .x { margin-left: auto; }
.mod-list { display: flex; flex-direction: column; gap: 8px; }
.mod-it { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--card-2); }
.mod-it .n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #d7ddea; font: 800 13px var(--display); color: var(--ink-2); }
.mod-it.done .n { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; }
.mod-it.prog .n { background: var(--brand-soft); color: var(--brand); }
.mod-it b { font-size: 13.5px; }
.mod-it small { display: block; color: var(--muted); font-size: 12px; }
.mod-act { display: block; margin: 5px 0 0 auto; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-hi); color: var(--ink-2); font: 700 11.5px var(--font); cursor: pointer; opacity: .75; transition: opacity .2s ease, background .2s ease; }
.mod-it:hover .mod-act, .mod-act:focus-visible { opacity: 1; }
.mod-act:hover { background: var(--brand-soft); border-color: #c4ccf5; color: #3a46b0; }
.mod-act[data-undo]:hover { background: var(--bad-soft); border-color: #f2a9b4; color: var(--bad); }
/* Toplu tamamlama penceresi */
.mdl-card:has(.bulk-list) { width: min(640px, calc(100vw - 32px)); max-width: none; text-align: left; }
.bulk-bar { display: flex; gap: 8px; margin-bottom: 10px; }
.bulk-bar select { flex: 1; }
.bulk-list { max-height: min(52vh, 460px); overflow-y: auto; display: grid; gap: 6px; padding-right: 4px; }
.bulk-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--card-2); cursor: pointer; }
.bulk-it input { width: 17px; height: 17px; accent-color: var(--brand); }
.bulk-it b { display: block; font-size: 13.5px; color: var(--ink); }
.bulk-it small { display: block; font-size: 11.5px; color: var(--muted); }
.bulk-it.is-done { opacity: .6; cursor: default; }
.bulk-sum { margin-top: 10px; font-weight: 800; color: #3a46b0; font-size: 13.5px; }

/* ================================================================== */
/* GELİŞİM                                                             */
/* ================================================================== */
.g-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.g-grid + .card, .card + .g-grid, .g-grid + .g-grid { margin-top: 20px; }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: #d9dfea; stroke-width: 1; }
.chart .axis text { fill: var(--muted); font: 600 11.5px var(--font); }
.chart .axis-title { fill: var(--muted); font: 700 11px var(--font); letter-spacing: .04em; }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.dash { stroke-dasharray: 6 5; }
.chart .dot { stroke: var(--card); stroke-width: 2; }
.chart .lbl { font: 700 12px var(--font); fill: var(--ink-2); }
.chart .barr { transition: opacity .15s ease; }
.chart .cross { stroke: #9aa5bd; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #2f3a6e;
  color: #eef0fb;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 14px 34px -14px rgba(36, 44, 100, .6);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .12s ease, transform .12s ease;
}
.chart-tip.on { opacity: 1; transform: none; }
.chart-tip b { display: block; margin-bottom: 4px; color: #fff; font-size: 13px; }
.chart-tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 3px; border-radius: 2px; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 9px) !important; height: 2px; }
.chart-empty { padding: 50px 20px; text-align: center; color: var(--muted); font-weight: 600; }

.g-students { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.g-list { display: flex; flex-direction: column; gap: 6px; max-height: 760px; overflow-y: auto; padding-right: 4px; }
.g-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; }
.g-item:hover { background: var(--card-2); }
.g-item.on { background: var(--brand-soft); border-color: #c4ccf5; }
.g-item .av { --s: 32px; }
.g-item .nm { flex: 1; min-width: 0; }
.g-item .nm b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-item .nm small { color: var(--muted); font-size: 11.5px; font-family: var(--mono); }
.g-item .imp { font: 800 13px var(--mono); white-space: nowrap; }
.g-item .imp.up { color: var(--ok); }
.g-item .imp.down { color: var(--bad); }
.g-item .imp.na { color: var(--muted); font-weight: 600; }
.g-item svg { flex: none; }
.g-detail { min-width: 0; }
.g-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.g-head .av { --s: 52px; }
.g-head h3 { font: 800 21px var(--display); }
.g-head p { color: var(--muted); font-size: 13px; }
.g-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.g-kpi { padding: 12px 14px; border-radius: 14px; background: var(--card-2); }
.g-kpi span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.g-kpi b { display: block; font: 800 22px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.g-kpi b.up { color: var(--ok); }
.g-kpi b.down { color: var(--bad); }
.g-kpi small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.g-sub { font: 800 14px var(--display); margin: 18px 0 4px; color: var(--ink); }
.top-list { display: flex; flex-direction: column; gap: 8px; }
.top-it { display: grid; grid-template-columns: 26px 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--card-2); }
.top-it .n { font: 900 15px var(--display); color: var(--muted); text-align: center; }
.top-it .av { --s: 34px; }
.top-it b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-it small { color: var(--muted); font-size: 11.5px; }
.top-it .v { font: 800 15px var(--mono); color: var(--ok); }

/* ================================================================== */
/* CANLI ARENA — projeksiyon için açık tema                            */
/* ================================================================== */
#p-arena { margin: -24px; height: calc(100% + 48px); min-height: 560px; }
.arena {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 26px 18px;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(76, 91, 212, .14), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(139, 111, 224, .14), transparent 60%),
    radial-gradient(700px 500px at 50% 120%, rgba(20, 160, 150, .10), transparent 60%),
    linear-gradient(180deg, #e8edf6, #e1e7f2);
  position: relative;
  overflow: hidden;
  font-size: 15px;
}
.arena::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(76, 91, 212, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(76, 91, 212, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
  animation: grid-move 30s linear infinite;
}
@keyframes grid-move { to { background-position: 44px 44px; } }
/* Arka plan ızgarasının üstünde kalsınlar. Yalnızca arena bölümleri: tam ekranda arenaya eklenen
   konfeti tuvali ve bildirimler sabit konumlu kalmalı, yoksa yer kaplayıp kartları küçültürler. */
.ar-head, .ar-bar, .ar-top, .ar-mini, .board, .ar-foot { position: relative; }
.arena:fullscreen, .arena:-webkit-full-screen { padding: 26px 34px 20px; width: 100vw; height: 100vh; }
/* Arena öğesi tam ekran olamadığında sayfa tam ekran olur ve arena tek başına gösterilir */
body.arena-solo .aside, body.arena-solo .a-top { display: none !important; }
body.arena-solo .a-content { padding: 0; overflow: hidden; }
body.arena-solo #p-arena { margin: 0; min-height: 100vh; height: 100vh; }

.ar-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ar-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ar-logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(76, 91, 212, .7); color: #fff; flex: none; }
.ar-logo svg { width: 30px; height: 30px; }
.ar-title h2 { font: 800 30px/1.05 var(--display); color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.ar-title h2 span { background: linear-gradient(90deg, #4c5bd4, #8b4fd6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ar-title p { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fbe1e5; border: 1px solid #f2a9b4; color: #b4233a; font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.live-badge i { width: 9px; height: 9px; border-radius: 50%; background: #dc2640; animation: live-red 1.4s ease-in-out infinite; }
@keyframes live-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 64, .55); } 60% { box-shadow: 0 0 0 9px rgba(220, 38, 64, 0); } }
.ar-spacer { flex: 1; }
.ar-online { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ar-online b { font: 800 26px var(--display); color: var(--ok); font-variant-numeric: tabular-nums; }
.ar-online span { font-size: 13px; color: var(--muted); font-weight: 700; }
.ar-clock { font: 700 20px var(--mono); color: var(--ink-2); padding: 8px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.ar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow); }
.ar-btn:hover { background: var(--card-2); }
.ar-btn svg { width: 18px; height: 18px; }
.ar-btn.on { background: var(--brand-soft); border-color: #c4ccf5; color: #3a46b0; }

.ar-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ar-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.ar-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 700; font-size: 13.5px; white-space: nowrap; transition: all .2s ease; }
.ar-chip b { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--card-2); font-size: 12px; }
.ar-chip:hover { background: var(--card-2); }
.ar-chip.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -10px rgba(76, 91, 212, .8); }
.ar-chip.on b { background: rgba(255, 255, 255, .25); }
.ar-seg { display: inline-flex; padding: 4px; border-radius: 13px; background: #d9dfeb; border: 1px solid var(--line); }
.ar-seg button { border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px; padding: 7px 12px; border-radius: 9px; white-space: nowrap; }
.ar-seg button.on { background: var(--card-hi); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 42, 68, .16); }

.ar-top { display: grid; grid-template-columns: minmax(360px, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; height: 252px; flex: none; }
.glass { background: rgba(246, 248, 252, .92); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 14px 36px -24px rgba(36, 44, 100, .45); }

/* Podyum */
.podium { padding: 12px 14px 0; display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 10px; overflow: hidden; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.pod .av { --s: 44px; box-shadow: 0 0 0 3px var(--card), 0 10px 22px -10px rgba(36, 44, 100, .5); }
.pod.p1 .av { --s: 54px; box-shadow: 0 0 0 4px #f2b632, 0 0 26px rgba(242, 182, 50, .55); }
.pod.p2 .av { box-shadow: 0 0 0 4px #a9b4c7, 0 0 18px rgba(130, 145, 170, .35); }
.pod.p3 .av { box-shadow: 0 0 0 4px #d27a2c, 0 0 18px rgba(210, 122, 44, .35); }
.pod .crown { font-size: 20px; line-height: 1; animation: crown 2.2s ease-in-out infinite; filter: drop-shadow(0 4px 8px rgba(214, 158, 46, .5)); }
@keyframes crown { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(6deg); } }
.pod .nm { font-weight: 800; color: var(--ink); font-size: 14.5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .meta { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.pod .meta b { color: var(--ink-2); }
.pod .stand { width: 100%; border-radius: 12px 12px 0 0; display: grid; place-items: center; font: 900 20px var(--display); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.pod.p1 .stand { height: 40px; background: linear-gradient(180deg, #f2b632, #c4861a); }
.pod.p2 .stand { height: 28px; background: linear-gradient(180deg, #b5bfd0, #8592a8); }
.pod.p3 .stand { height: 20px; background: linear-gradient(180deg, #e0904a, #b0601f); }
.pod .score { font: 800 18px/1.1 var(--display); color: #3341b8; font-variant-numeric: tabular-nums; }
.pod.p1 .score { color: #a8680d; font-size: 22px; }
.pod .score small { color: var(--muted) !important; }
.pod.empty .av { opacity: .3; }
.pod.empty .nm { color: #9aa4ba; }

.ar-stats { padding: 12px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 8px; }
.ar-stat { padding: 7px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid #dde3ee; min-width: 0; }
.ar-stat span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ar-stat b { display: block; font: 800 19px/1.15 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.ar-stat b small { color: var(--muted) !important; }
.ar-stat small { display: block; font-size: 11.5px; font-weight: 700; color: #3a46b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed { min-height: 0; padding: 12px 12px 8px; display: flex; flex-direction: column; overflow: hidden; }
.feed h4 { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.feed-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #b9c2d8 transparent; }
.feed-list::-webkit-scrollbar { width: 6px; }
.feed-list::-webkit-scrollbar-thumb { background: #b9c2d8; border-radius: 999px; }
.ev { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; background: var(--card-2); font-size: 13px; color: var(--ink-2); flex: none; }
.ev.new { animation: ev-in .55s cubic-bezier(.34, 1.56, .64, 1); }
.ev .ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--card-hi); font-size: 16px; }
.ev.finish { background: linear-gradient(90deg, #d9f2e1, #eaf6ee); }
.ev.wpm { background: linear-gradient(90deg, #e1e5fa, #eceffb); }
.ev.paste { background: linear-gradient(90deg, #fbe1e5, #fbeef0); }
.mini-ev.paste { background: linear-gradient(90deg, #fbe1e5, #fbeef0); }
.ev.streak { background: linear-gradient(90deg, #fbe7d3, #f8efe4); }
.ev b { color: var(--ink); }
.ev span span { color: var(--muted) !important; }
.ev time { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 700; white-space: nowrap; }
@keyframes ev-in { from { opacity: 0; transform: translateX(-20px) scale(.96); } to { opacity: 1; transform: none; } }

/* Sıralama: öğrenci kartları (boyut ve yazı, alana göre admin.js'te hesaplanır: --tc, --th, --fs) */
.board { flex: 1; min-height: 200px; padding: 12px; display: flex; flex-direction: column; }
.board-list {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--tc, 3), minmax(0, 1fr));
  grid-auto-rows: var(--th, 84px);
  gap: var(--tg, 10px);
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.board-list::-webkit-scrollbar { display: none; }
.tl {
  --fsz: var(--fs, 15px);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "pos av id id" "pos st st score";
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: .6em;
  row-gap: .35em;
  padding: .45em .8em .45em .55em;
  border-radius: calc(var(--fsz) * .9);
  background: var(--card-hi);
  border: 1px solid #d6dcea;
  box-shadow: 0 6px 16px -12px rgba(36, 44, 100, .45);
  font-size: var(--fsz);
  line-height: 1.15;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: background .4s ease, border-color .4s ease, opacity .4s ease;
  will-change: transform;
}
.tl::before { content: ''; position: absolute; left: 0; bottom: 0; height: max(3px, .2em); width: var(--prog, 0%); border-radius: 0 999px 999px 0; background: var(--grad); opacity: .8; transition: width .8s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.tl > * { position: relative; }
.tl .pos { grid-area: pos; align-self: center; min-width: 1.5em; text-align: center; font: 900 1.55em/1 var(--display); color: #7a849c; font-variant-numeric: tabular-nums; }
.tl .av { grid-area: av; --s: 2.35em; align-self: center; }
.tl-id { grid-area: id; min-width: 0; align-self: center; }
.tl-id b { display: block; font-size: 1.16em; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-id small { display: block; margin-top: .12em; font-size: .78em; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-score { grid-area: score; align-self: center; text-align: right; white-space: nowrap; font: 900 1.4em/1 var(--display); color: #3341b8; font-variant-numeric: tabular-nums; }
.tl-score small { font: 800 .42em var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: .3em; }
.tl-st { grid-area: st; display: flex; align-items: center; gap: .4em .7em; min-width: 0; overflow: hidden; }
.tl-st .m { display: inline-flex; align-items: baseline; gap: .25em; white-space: nowrap; }
.tl-st .m b { font: 800 1.08em var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-st .m i { font-style: normal; font-size: .64em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tl-st .m.key { padding: .05em .4em; margin: -.05em -.1em; border-radius: .5em; background: var(--brand-soft); }
.tl-score.key { text-shadow: 0 0 1px rgba(51, 65, 184, .25); }
.tl-st .acc.g b { color: #15803d; }
.tl-st .acc.m b { color: #b45309; }
.tl-st .acc.b b { color: #c8293f; }
.tl-st .m .ic { font-size: .8em; letter-spacing: 0; }
.tl-id .pc { color: var(--ink-2); }
.tl-id .pc.key { padding: 0 .3em; border-radius: .4em; background: var(--brand-soft); }
.tl-st .fire { padding: .05em .45em; border-radius: 999px; background: #fbe0c8; }
.tl-st .fire b { color: #a8470f; font-size: .95em; }
.tl-tags { display: inline-flex; gap: .3em; }
.tl .tag { font-size: .72em; font-weight: 800; padding: .1em .5em; border-radius: 999px; background: #dde3ee; color: var(--ink-2); white-space: nowrap; }
.tl .tag.ok { background: var(--ok-soft); color: #166534; }
.tl .tag.warn { background: #f8d3d9; color: #a51d33; }
.tl.top1 { border-color: #efc560; background: #fdf3dc; box-shadow: 0 10px 24px -14px rgba(214, 158, 46, .7); }
.tl.top2 { border-color: #bcc5d6; background: #eef1f7; }
.tl.top3 { border-color: #e7ab78; background: #fbeadb; }
.tl.top1 .pos { color: #b07612; }
.tl.top2 .pos { color: #5f6b85; }
.tl.top3 .pos { color: #b4561c; }
.tl.done { border-color: #9fd8b3; }
.tl.idle { opacity: .62; }
.tl.away { opacity: .5; filter: grayscale(.5); }
.tl.flash-up { animation: flash-up 1.2s ease; }
.tl.flash-down { animation: flash-down 1.2s ease; }
.tl.new { animation: row-in .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes flash-up { 0% { background: #c9efd6; } 100% { background: var(--card-hi); } }
@keyframes flash-down { 0% { background: #f8d3d9; } 100% { background: var(--card-hi); } }
@keyframes row-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
.tl .delta { position: absolute; left: 50%; top: -.7em; transform: translateX(-50%); font-size: .45em; font-weight: 900; animation: delta 2.4s ease forwards; }
.tl .delta.up { color: var(--ok); }
.tl .delta.down { color: var(--bad); }
@keyframes delta { 0% { opacity: 0; transform: translate(-50%, 6px); } 15%, 75% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* Yoğun (tek satır) kart: çok öğrenci, küçük alan */
.board.dense .tl { grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "pos av id st score"; grid-template-rows: 1fr; row-gap: 0; padding-top: .2em; padding-bottom: .2em; }
.board.dense .tl .av { --s: 1.9em; }
.board.dense .tl-id small, .board.dense .tl-st .m:first-child i, .board.dense .tl-tags, .board.dense .tl-score small { display: none; }
.board.dense .tl-st { gap: .7em; }
.board.dense .tl-score { font-size: 1.3em; }
.board.dense .tl .pos { font-size: 1.3em; }

/* Kalabalık sınıfta podyum yerine ince özet şeridi */
.ar-mini { height: 64px; flex: none; display: flex; align-items: center; gap: 18px; padding: 0 16px; overflow: hidden; }
.mini-pod { display: flex; gap: 8px; min-width: 0; }
.mp { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 14px; background: var(--card-2); border: 1px solid #dde3ee; white-space: nowrap; font-size: 15px; }
.mp i { font-style: normal; font-size: 20px; }
.mp b { color: var(--ink); max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.mp em { font-style: normal; font: 800 15px var(--mono); color: #3341b8; }
.mp.p1 { background: #fdf3dc; border-color: #efc560; }
.mini-st { display: flex; gap: 8px; flex: none; }
.mini-st span { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 14px; background: var(--card-2); font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.mini-st b { font: 800 18px var(--display); color: var(--ink); }
.mini-ev { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 14px; background: var(--card-2); font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ev-in .55s cubic-bezier(.34, 1.56, .64, 1); }
.mini-ev span { overflow: hidden; text-overflow: ellipsis; }
.mini-ev i { font-style: normal; font-size: 18px; }
.mini-ev b { color: var(--ink); }
.mini-ev.finish { background: linear-gradient(90deg, #d9f2e1, #eaf6ee); }
.mini-ev.game { background: linear-gradient(90deg, #e1e5fa, #eceffb); }
.ev.game { background: linear-gradient(90deg, #e3e0f8, #eeecfa); }
@media (max-width: 1300px) { .mini-ev { display: none; } }

.ar-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 60px 20px; color: var(--muted); text-align: center; }
.ar-empty .big { font-size: 56px; animation: float-y 3s ease-in-out infinite; }
.ar-empty b { color: var(--ink); font: 800 20px var(--display); }

.spotlight {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 20;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1f9d55, #15803d);
  color: #fff;
  box-shadow: 0 30px 60px -20px rgba(21, 128, 61, .7);
  animation: spot 4.2s cubic-bezier(.34, 1.56, .64, 1) forwards;
  pointer-events: none;
}
.spotlight .av { --s: 48px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.spotlight b { font: 800 20px var(--display); display: block; }
.spotlight span { font-weight: 600; opacity: .95; }
@keyframes spot { 0% { opacity: 0; transform: translate(-50%, -30px) scale(.85); } 10% { opacity: 1; transform: translate(-50%, 0) scale(1.03); } 16% { transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -16px); } }

.ar-foot { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.ar-foot b { color: #3a46b0; }

@media (max-width: 1200px) {
  .ar-top { grid-template-columns: 1fr 1fr; height: auto; }
  .ar-top .feed { grid-column: 1 / -1; max-height: 200px; }
  .podium { min-height: 210px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .g-grid, .g-students { grid-template-columns: 1fr; }
  .g-list { max-height: 300px; }
  .g-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .aside { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .35s ease; }
  .adm.menu .aside { transform: none; box-shadow: 30px 0 60px -20px rgba(20, 24, 60, .45); }
  .adm.wide .aside { margin-left: 0; }
  .mod-row { grid-template-columns: 44px minmax(0, 1fr); }
  .mod-row > :nth-child(n+3) { grid-column: 2; }
}
