/* YUNEX PREMIUM – tasarım sistemi
   Lacivert mürekkep + tek vurgu mavisi; altın yalnızca marka ve "net" vurgusunda. */
:root {
  --ink: #0e1a33; --ink-2: #1b2438; --muted: #667085; --faint: #98a2b3;
  --paper: #f3f5fa; --card: #ffffff; --line: #e3e7f1; --line-2: #d3d9e8;
  --accent: #2f5bea; --accent-ink: #1f43b8; --accent-soft: #e8edff;
  --gold: #c8962e; --gold-soft: #fbf3e0;
  --good: #0e9f6e; --good-soft: #e3f6ee; --bad: #d64545; --bad-soft: #fdecec; --warn: #b7791f; --warn-soft: #fdf3dd;
  --c-TUR: #2f5bea; --c-INK: #9b51e0; --c-DIN: #d6336c; --c-ING: #0891b2; --c-MAT: #e07b00; --c-FEN: #0e9f6e;
  --r-card: 12px; --r-ctl: 8px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) { :root { color-scheme: light; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink-2); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
p { margin: 0 0 8px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }

/* ---------- yerleşim ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d3ee; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; }
.brand { padding: 6px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: 12px; }
.brand b { display: block; color: #fff; font-size: 19px; letter-spacing: .04em; }
.brand span { display: block; color: var(--gold); font-size: 11.5px; margin-top: 2px; letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-ctl); color: #c9d3ee; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.side-foot { margin-top: auto; padding: 10px; font-size: 12.5px; border-top: 1px solid rgba(255,255,255,.09); }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot button { background: none; border: 0; color: #9fb0dc; padding: 0; cursor: pointer; margin-right: 12px; }
.side-foot button:hover { color: #fff; text-decoration: underline; }
.main { padding: 26px 32px 60px; min-width: 0; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.banner { background: var(--warn-soft); color: #7a5410; border: 1px solid #f1d9a0; padding: 10px 14px; border-radius: var(--r-ctl); margin-bottom: 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- kartlar ve ızgaralar ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g12 { grid-template-columns: 1.4fr 1fr; }
.grid > .card + .card { margin-top: 0; }
.stat { padding: 16px 18px; }
.stat .v { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); margin-top: 4px; }
.stat.gold { border-color: #ecd9a6; background: linear-gradient(180deg, #fff, var(--gold-soft)); }
.stat.gold .v { color: #7a5410; }

/* ---------- düğmeler, formlar ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer; font-weight: 550; white-space: nowrap; }
.btn:hover { background: #f7f8fc; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { color: var(--bad); border-color: #f0c4c4; } .btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.f { display: block; font-weight: 550; margin-bottom: 12px; color: var(--ink-2); }
label.f > span.hint { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); background: #fff; color: var(--ink-2); margin-top: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input[disabled] { background: #f1f3f9; color: var(--muted); }
input[type=checkbox] { width: auto; margin: 0 6px 0 0; vertical-align: -2px; }
textarea { min-height: 70px; resize: vertical; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; letter-spacing: .08em; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.search { max-width: 340px; margin: 0; }

/* ---------- tablolar ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 10px 12px; background: #f8f9fd; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; } td.r { font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover td { background: #f7f9ff; }
.card .tbl-wrap { border: 0; border-radius: 0; }

/* ---------- küçük bileşenler ---------- */
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef0f6; color: var(--muted); white-space: nowrap; }
.chip.good { background: var(--good-soft); color: #0a7a55; } .chip.bad { background: var(--bad-soft); color: #b13030; }
.chip.warn { background: var(--warn-soft); color: #8a5d0f; } .chip.accent { background: var(--accent-soft); color: var(--accent-ink); }
.chip.pilot { background: #fff1d6; color: #8a5d0f; border: 1px dashed #d9b160; }
.delta { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); } .delta.flat { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.tabs a:hover { color: var(--ink); text-decoration: none; } .tabs a.active { color: var(--accent); border-color: var(--accent); }
.empty { text-align: center; padding: 38px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.notice { padding: 10px 14px; border-radius: var(--r-ctl); background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 10px; }
.notice.warn { background: var(--warn-soft); color: #7a5410; } .notice.bad { background: var(--bad-soft); color: #9b2c2c; } .notice.good { background: var(--good-soft); color: #0a6a4a; }
ul.clean { margin: 0; padding: 0; list-style: none; } ul.clean li { padding: 6px 0; border-bottom: 1px solid var(--line); } ul.clean li:last-child { border: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.bar { height: 8px; background: #e9ecf4; border-radius: 4px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; border-radius: 4px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; padding: 5px 0; }
.hbar .bar { height: 10px; position: relative; overflow: visible; }
.hbar .bar > i { border-radius: 5px; } .hbar .avg { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--ink); border-radius: 1px; }

/* ---------- öğrenci başlığı ve "net" bandı ---------- */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.netband { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: 18px 26px; min-width: 210px; border-bottom: 3px solid var(--gold); }
.netband .k { color: #c9d3ee; font-size: 12.5px; }
.netband .v { font-size: 42px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.netband .s { color: #c9d3ee; margin-top: 4px; }
.netband .delta.up { color: #4de3ae; } .netband .delta.down { color: #ff8f8f; }
.subj-card { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 12px 14px; }
.subj-card .n { font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.subj-card .v { font-size: 22px; font-weight: 700; color: var(--ink); margin: 4px 0 6px; font-variant-numeric: tabular-nums; }

/* ---------- grafikler ---------- */
svg.chart text { font: 11.5px var(--font); fill: var(--muted); }
svg.chart .grid-line { stroke: var(--line); stroke-width: 1; }
svg.chart .val { fill: var(--ink); font-weight: 650; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(14,26,51,.25); max-width: 260px; }

/* ---------- modal, toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(14,26,51,.45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: var(--r-card); width: 100%; max-width: 560px; padding: 22px; box-shadow: 0 20px 60px rgba(14,26,51,.3); }
.modal.wide { max-width: 860px; }
.modal h2 { margin-bottom: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 70; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r-ctl); box-shadow: 0 8px 24px rgba(14,26,51,.3); max-width: 380px; border-left: 4px solid var(--gold); }
.toast.err { border-left-color: var(--bad); background: #3a1417; } .toast.ok { border-left-color: var(--good); }

/* ---------- giriş ekranı ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background:
  linear-gradient(180deg, var(--ink) 0 38%, var(--paper) 38% 100%); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 14px; padding: 30px; box-shadow: 0 20px 60px rgba(14,26,51,.25); border-top: 3px solid var(--gold); }
.login-card .brand { border: 0; padding: 0 0 18px; }
.login-card .brand b { color: var(--ink); font-size: 24px; } .login-card .brand span { color: var(--gold); }

.maprow select { margin: 0; padding: 4px 6px; }
.keyin { font-family: Consolas, monospace; letter-spacing: .12em; }
.heat { display: inline-block; height: 10px; border-radius: 3px; vertical-align: middle; }

/* ---------- tablet / dar ekran ---------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .brand { border: 0; padding: 0 12px 0 4px; margin: 0; } .nav { flex-direction: row; flex-wrap: wrap; flex: 1; }
  .nav a { padding: 7px 10px; } .nav a.active { box-shadow: inset 0 -3px 0 var(--gold); }
  .side-foot { margin: 0; border: 0; padding: 0 4px; }
  .main { padding: 18px 16px 50px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g12 { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .row { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 80px 1fr 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* LGS sayacı */
.countdown { margin: 4px 4px 14px; padding: 10px 12px; border-radius: 10px; background: rgba(200,150,46,.14); border: 1px solid rgba(200,150,46,.45); }
.countdown .cd-n { color: #fff; font-size: 13px; }
.countdown .cd-n b { font-size: 26px; color: #E8C778; letter-spacing: -.5px; }
.countdown .cd-l { color: #c9d3ee; font-size: 11.5px; margin-top: 1px; }
/* kronometre */
.timer-box { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 270px; background: #0E1A33; color: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(14,26,51,.35); border: 1px solid rgba(255,255,255,.12); }
.timer-box .tm-title { font-size: 12.5px; color: #c9d3ee; margin-bottom: 4px; max-height: 2.6em; overflow: hidden; }
.timer-box .tm-t { font-size: 38px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; line-height: 1.1; }
.timer-box .tm-s { font-size: 12px; color: #9fb0dc; margin: 2px 0 10px; }
.timer-box .tm-btns { display: flex; gap: 6px; }
.timer-box .tm-btns .btn { flex: 1; justify-content: center; }
.timer-box.over { background: #0b3d2e; border-color: #0E9F6E; }
.timer-box.over .tm-s { color: #7be0b5; }
@media (max-width: 700px) { .timer-box { left: 12px; right: 12px; width: auto; bottom: 12px; } }

/* ---------- Derse Başla ---------- */
.mascot { display: inline-block; flex: none; }
.wiz { min-width: min(520px, 86vw); }
.wiz-dots { display: flex; gap: 6px; margin-bottom: 6px; }
.wiz-dot { width: 26px; height: 5px; border-radius: 3px; background: var(--line); }
.wiz-dot.done { background: #9cc7f3; } .wiz-dot.on { background: var(--accent); }
.wiz-h { margin: 6px 0 10px; font-size: 17px; }
.wiz-say { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.wiz-bubble { background: #eef5fd; border: 1px solid #cfe2f8; border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.wiz-task { margin-bottom: 10px; }
.wiz-moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wiz-mood { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 12.5px; }
.wiz-mood .e { font-size: 26px; }
.wiz-mood.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.wiz-checks li { padding: 4px 0; }
.wiz-photo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.wiz-photo img { height: 64px; border-radius: 8px; border: 1px solid var(--line); }
.wiz-sum { background: #f6f7fb; border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; margin-top: 8px; }
.wiz-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.wiz-nav .btn:first-child { margin-right: auto; }
.wiz textarea { min-height: 70px; }
@media (max-width: 560px) { .wiz-moods { grid-template-columns: repeat(2, 1fr); } }

/* ---------- kaynak grafikleri ---------- */
.book-chart { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 4px; }
.book-chart.hidden { display: none; }
.act-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; }
.act-cell { border: 1px solid var(--line); border-radius: 8px; padding: 6px 2px; text-align: center; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); background: #fff; min-height: 46px; }
.act-cell b { font-size: 13px; color: var(--ink, #12304d); font-weight: 700; }
.act-cell.on { background: #e3f1fe; border-color: #9cc7f3; color: #1f5fae; }
@media (max-width: 640px) { .act-strip { grid-template-columns: repeat(7, 1fr); } }

/* ---------- seviye profili sihirbazı ---------- */
.pw-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; margin: 6px 0; font-size: 14px; }
.pw-sc { display: flex; gap: 6px; }
.pw-sc button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 0; cursor: pointer; font: inherit; }
.pw-sc button.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.pw-q { margin: 12px 0 4px; font-weight: 600; font-size: 14px; }
.pw-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; margin: 3px 4px 3px 0; cursor: pointer; font: inherit; font-size: 13px; }
.pw-chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pw-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 12px; margin: 6px 0; cursor: pointer; font: inherit; }
.pw-opt.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.pw-add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pw-add input, .pw-add select { margin: 0; flex: 1; min-width: 90px; }

/* rozet ve liderlik */
.badge-new{display:flex;gap:12px;align-items:center;margin-top:12px;padding:12px 16px;text-decoration:none;color:inherit;border-left:4px solid #e0a82e}
.badge-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.badge{border:1px solid var(--line,#ddd);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px;opacity:.6}
.badge.got{opacity:1;background:rgba(224,168,46,.10);border-color:#e0a82e}
.badge.fresh{animation:badgepop .6s ease-out 1}
.badge-ic{font-size:28px}
.lb-row{display:flex;gap:10px;align-items:center;padding:7px 8px;border-bottom:1px solid var(--line,#eee)}
.lb-row.me{background:rgba(224,168,46,.14);border-radius:8px;font-weight:600}
.lb-rank{width:26px;text-align:center;font-weight:700}
@keyframes badgepop{0%{transform:scale(.85)}60%{transform:scale(1.06)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.badge.fresh{animation:none}}

/* kaynak seçimi */
.cat-list{max-height:320px;overflow:auto;border:1px solid var(--line,#ddd);border-radius:8px;padding:6px;margin-top:8px}
.cat-pub{display:flex;gap:8px;align-items:center;padding:6px 4px;background:rgba(0,0,0,.04);border-radius:6px;margin-top:6px;position:sticky;top:0}
.cat-row{display:flex;gap:8px;align-items:center;padding:5px 6px;cursor:pointer;font-size:14px}
.cat-row:hover{background:rgba(47,127,216,.08)}
.book-sel{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px}
.book-sel>input{margin-top:20px;width:18px;height:18px}

/* ödev kontrolü */
.hw-line{display:flex;justify-content:space-between;gap:10px;padding:8px 6px;border-bottom:1px solid var(--line,#eee);cursor:pointer;flex-wrap:wrap}
.hw-line:hover{background:rgba(47,127,216,.06)}
.hw-row{display:grid;grid-template-columns:minmax(120px,1.1fr) minmax(300px,2.2fr) 70px minmax(100px,1fr);gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line,#eee)}
.hw-name{font-weight:600}
.hw-seg{display:flex;border:1px solid #d5dbe6;border-radius:8px;overflow:hidden}
.hw-b{flex:1;border:0;border-right:1px solid #d5dbe6;background:#fff;padding:7px 4px;font-size:12.5px;cursor:pointer;color:#334}
.hw-b:last-child{border-right:0}.hw-b.on{color:#fff;font-weight:600}
.hw-b.on.g{background:#2a9d6a}.hw-b.on.y{background:#e0a82e}.hw-b.on.x{background:#d8453b}.hw-b.on.k{background:#6b5bd6}.hw-b.on.l{background:#e07a2e}
.hw-n{padding:6px 8px;border:1px solid #d5dbe6;border-radius:6px;width:100%}
.hw-found .hw-line{padding:5px 8px}
.hw-picked{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.hw-mx{border-collapse:collapse;width:100%}.hw-mx th,.hw-mx td{padding:6px 8px;text-align:center;font-size:13px;border-bottom:1px solid var(--line,#eee)}
.hw-mx th:first-child,.hw-mx td:first-child{text-align:left}
.hw-d{display:inline-block;width:20px;height:20px;border-radius:5px;background:#e8ecf3}
.hw-d.g{background:#2a9d6a}.hw-d.y{background:#e0a82e}.hw-d.x{background:#d8453b}.hw-d.k{background:#6b5bd6}.hw-d.l{background:#e07a2e}
@media (max-width:760px){.hw-row{grid-template-columns:1fr}}

.badge-row .chip.on{background:#1b2a4a;color:#fff}

/* görüntüleme modu şeridi */
.viewas-bar{position:sticky;top:0;z-index:60;background:#6b5bd6;color:#fff;padding:8px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-weight:600}
.viewas-bar .btn{background:#fff;color:#3b2fa0;border:0}
.viewas-bar + .shell{min-height:calc(100vh - 44px)}
.viewas-bar + .shell .side{top:44px;height:calc(100vh - 44px)}
@media (max-width:860px){.viewas-bar + .shell .side{top:0;height:auto}}
.brand-logo { display: block; max-height: 40px; max-width: 160px; margin-bottom: 8px; border-radius: 6px; }

/* ---------- sınıf yönetim merkezi (Güncelleme 31) ---------- */
.cm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cm-kpi { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-card); padding: 14px 16px; font: inherit; text-align: left; color: inherit; }
.cm-kpi .v { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cm-kpi .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cm-kpi.warn .v { color: var(--warn); }
button.cm-kpi { cursor: pointer; } button.cm-kpi:hover { border-color: var(--warn); }
.cm-chart { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; margin-top: 12px; }
.cm-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; cursor: pointer; border: 0; background: none; padding: 0; font: inherit; border-radius: 8px; color: inherit; }
.cm-col .n { font-weight: 650; color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; }
.cm-col .b { width: 100%; max-width: 56px; background: var(--accent); opacity: .35; border-radius: 4px 4px 0 0; transition: opacity .15s; }
.cm-col:hover .b { opacity: .7; } .cm-col.on .b { opacity: 1; } .cm-col.dim .b { opacity: .18; }
.cm-col .x { font-size: 12.5px; color: var(--muted); } .cm-col.on .x { color: var(--ink); font-weight: 650; }
.cm-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.cm-pill { font: inherit; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.cm-pill b { font-weight: 650; margin-left: 4px; color: var(--muted); }
.cm-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; } .cm-pill.on b { color: #c9d3ee; }
.cm-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.cm-tools input[type=search], .cm-tools select { margin: 0; min-width: 0; }
.cm-tools input[type=search] { flex: 1 1 200px; max-width: 320px; }
.cm-chk { display: flex; align-items: center; gap: 6px; }
.cm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cm-card.pending { border-color: #ecd9a8; } .cm-card.off { opacity: .6; border-style: dashed; }
.cm-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cm-card .cnt { color: var(--ink); font-weight: 650; font-size: 18px; font-variant-numeric: tabular-nums; } .cm-card .cnt small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cm-line { display: flex; flex-direction: column; gap: 2px; font-size: 13px; } .cm-line .k { color: var(--faint); font-size: 12px; }
.cm-acts { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.cm-sel { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.cm-danger { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.cm-danger .actions { margin-top: 8px; }
.cm-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; align-items: start; }
.cm-back { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; margin-bottom: 10px; }
@media (max-width: 1100px) { .cm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-two { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cm-grid { grid-template-columns: 1fr; } .cm-chart { gap: 4px; } .cm-col .x { font-size: 11px; } }
.cm-tools input[type=search] { width: auto; } .cm-tools select { width: auto; max-width: 100%; }
.cm-chk input, .cm-sel input { width: auto; margin: 0; }
.cm-line .chip { align-self: flex-start; }
.cm-card > .chip { align-self: flex-start; }
.cm-two td { white-space: nowrap; } .cm-two td:first-child { white-space: normal; }

/* öğrenci listesi (sm-) ve deneme listesi (em-) */
.sm-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.sm-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 90px minmax(0, 1.4fr) 130px; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.sm-row:last-child { border-bottom: 0; }
.sm-head { background: #f8f9fd; color: var(--muted); font-size: 12.5px; font-weight: 600; padding-top: 8px; padding-bottom: 8px; }
.sm-row.click { cursor: pointer; } .sm-row.click:hover, .sm-row.click:focus-visible { background: var(--accent-soft); outline: none; }
.sm-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sm-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.sm-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sm-nm b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-nm small { color: var(--faint); font-size: 12px; }
.sm-adv { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.sm-ex { text-align: right; }
.sm-head .sm-ex { text-align: right; }
.sm-bar { display: inline-flex; align-items: center; gap: 8px; width: 100%; max-width: 130px; }
.sm-bar i { display: block; height: 6px; border-radius: 3px; background: var(--accent); opacity: .55; min-width: 0; }
.sm-bar b { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; min-width: 18px; text-align: right; }
.sm-row .sm-bar { justify-content: flex-end; }
.sm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.em-month { font-size: 15px; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 10px; } .em-month small { color: var(--faint); font-weight: 400; font-size: 12.5px; }
.em-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.em-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px 14px; min-width: 0; }
.em-card.click { cursor: pointer; } .em-card.click:hover, .em-card.click:focus-visible { border-color: var(--accent); background: #fbfcff; outline: none; }
.em-date { flex: none; width: 56px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; padding: 6px 0; }
.em-date b { font-size: 22px; font-variant-numeric: tabular-nums; } .em-date span { font-size: 12.5px; font-weight: 600; } .em-date small { font-size: 11px; opacity: .75; }
.em-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.em-body h3 { margin: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.em-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.em-part { display: flex; align-items: center; gap: 8px; }
.em-part .sm-bar { max-width: none; flex: 1; } .em-part b { font-variant-numeric: tabular-nums; color: var(--ink); } .em-part small { color: var(--muted); }
.em-part .sm-bar i { height: 8px; border-radius: 4px; }
.em-latest { font-size: 22px; }
.cm-tools .btn { white-space: nowrap; }
@media (max-width: 860px) { .em-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .sm-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .sm-head { display: none; }
  .sm-row > span:nth-child(2), .sm-row .sm-adv { grid-column: 1; }
  .sm-row .sm-adv { font-size: 12.5px; color: var(--muted); }
  .sm-row .sm-ex { grid-column: 2; grid-row: 1 / span 3; }
}

/* Danışman paneli (tek sayfa): süzgeçler tek satır, iki sütun, uzun listeler pencerede */
.dp .page-head { margin-bottom: 14px; align-items: center; }
.dp-filters { display: flex; gap: 8px; flex-wrap: nowrap; }
.dp-cards .stat { padding: 12px 16px; } .dp-cards .stat .v { font-size: 26px; }
.dp-card { cursor: pointer; } .dp-card.on { box-shadow: inset 0 0 0 2px var(--gold); }
.dp-cols { margin: 14px 0; align-items: start; }
.dp-row { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; padding: 7px 6px; }
.dp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.dp-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dp-more { margin-top: 8px; }
.dp-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; }
.dp-strip { color: var(--muted); font-size: 13.5px; } .dp-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dp-modal { max-height: 62vh; overflow: auto; }
@media (max-width: 1100px) { .dp-filters { flex-wrap: wrap; } }

/* Danışman kartları (yönetici) */
.dp-adv { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.dp-advcard { padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.dp-advcard:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.dp-advtop { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.dp-advtop b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .dp-advtop span { white-space: nowrap; flex: none; }
.dp-advmid { display: flex; align-items: center; gap: 8px; } .dp-advmid .big { font-size: 22px; font-weight: 700; min-width: 48px; }
.dp-advmid svg { margin-left: auto; } .dp-advchips { display: flex; gap: 4px; flex-wrap: wrap; }
.dp-advdetail { margin-bottom: 14px; }

.dp-trends { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.dp-trend { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 10px; }
.dp-trendhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
