/* gamedschool — arayüz 2 (ortak): çift tonlu simgeler, giriş ekranı, öğrenci/öğretmen ana ekranı, yönetim paneli düzenlemeleri */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.77, 0, .175, 1); }

/* ---------- çift tonlu simgeler (duo-icons.js) ---------- */
.di { width: 1.2em; height: 1.2em; flex-shrink: 0; display: inline-block; vertical-align: -.2em; --di-a: #ff8a1f; overflow: visible; }
.di-sm { width: 1em; height: 1em; }
.di-f > * { fill: currentColor; opacity: .16; stroke: none; }
.di-s > * { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.di-a > * { fill: var(--di-a); stroke: none; }
.di-a > [fill="none"] { fill: none; stroke: var(--di-a); }
.ico-t { --tone: #e8432f; width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; flex-shrink: 0; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent); }
.ico-t .di { width: 23px; height: 23px; }
.ico-t.ico-sm { width: 36px; height: 36px; border-radius: 11px; } .ico-t.ico-sm .di { width: 19px; height: 19px; }
.ico-t.ico-lg { width: 56px; height: 56px; border-radius: 17px; } .ico-t.ico-lg .di { width: 28px; height: 28px; }
.tn-red { --tone: #e8432f; } .tn-orange { --tone: #f07a12; } .tn-purple { --tone: #8b5cf6; } .tn-blue { --tone: #3b82f6; } .tn-green { --tone: #16a34a; }
.tn-amber { --tone: #d99a06; } .tn-teal { --tone: #0d9488; } .tn-pink { --tone: #db2777; } .tn-slate { --tone: #64748b; }

/* basılınca hafif küçülme: arayüz kendisini dinlediğini hissettirir */
.btn, .hd-act, .hd-qa a, .icon-btn { transition: transform .16s var(--ease-out), background-color .2s ease, box-shadow .2s ease, filter .2s ease, color .2s ease, border-color .2s ease; }
.btn:active, .hd-act:active, .hd-qa a:active, .icon-btn:active { transform: scale(.97); }

/* ================= giriş / kayıt ekranı ================= */
.auth-bg { background: color-mix(in srgb, var(--bg) 45%, rgba(10, 6, 8, .45)); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); padding: 20px; }
.auth-bg.open { animation: auth-fade .25s ease-out; }
.auth { width: min(1060px, 100%); min-height: min(660px, calc(100dvh - 40px)); grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); border-radius: 30px; border: 1px solid var(--border); box-shadow: 0 50px 120px -40px rgba(20, 10, 12, .55); animation: auth-in .4s var(--ease-out); }
@keyframes auth-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes auth-fade { from { opacity: 0; } }
.auth-side { padding: 32px; gap: 20px; background:
  radial-gradient(120% 70% at 100% 100%, rgba(239, 62, 58, .32), transparent 60%),
  radial-gradient(80% 50% at 0% 0%, rgba(255, 138, 31, .16), transparent 60%),
  linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 28px 28px, #140e10; }
.auth-side::before { display: none; }
.as-head h2 { font-size: 30px; letter-spacing: -.03em; }
.as-slider { border-radius: 20px; background: rgba(255, 255, 255, .04); }
.auth-form { padding: 44px 52px; display: flex; flex-direction: column; justify-content: center; }
.auth-form > * { width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; }
.auth-form h3 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.auth-form .switch { margin: 6px 0 26px; font-size: 15px; }
.auth-form .field { margin-bottom: 16px; }
.auth-form .label { font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.auth-form .input, .auth-form .select { height: 50px; border-radius: 14px; font-size: 15px; background-color: var(--surface-2); border-color: var(--border); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.auth-form .input:focus, .auth-form .select:focus { background-color: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.auth-form textarea.textarea { border-radius: 14px; background-color: var(--surface-2); }
.auth-form .pw-field .eye { width: 38px; height: 38px; right: 6px; border-radius: 10px; }
.auth-form .remember { margin: 2px 0 22px; font-size: 14px; }
.auth-form .btn-lg { height: 52px; border-radius: 14px; font-size: 16px; }
.auth-form .btn-primary { box-shadow: 0 10px 26px -10px rgba(239, 62, 58, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.auth-alt { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 13px; color: var(--muted); }
.auth-alt::before, .auth-alt::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-try { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--text); }
.auth-try .di { width: 20px; height: 20px; color: var(--accent); }
.auth-safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.auth-safe .di { width: 15px; height: 15px; color: #16a34a; }
.wiz-steps { gap: 6px; margin-bottom: 22px; }
.wiz-steps span { height: 5px; border-radius: 5px; transition: background-color .3s ease; }
.role-pick { gap: 10px; }
.role-pick label { min-height: 58px; border-radius: 16px; font-weight: 700; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.role-pick label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent); }
@media (hover: hover) and (pointer: fine) { .auth-try:hover { background: var(--surface-2); } }
@media (max-width: 900px) {
  .auth-bg { padding: 0; place-items: stretch; }
  .auth { min-height: 100dvh; border-radius: 0; border: 0; grid-template-columns: 1fr; }
  .auth-form { padding: 28px 22px 40px; justify-content: flex-start; }
  .auth-form h3 { font-size: 26px; }
}

/* ================= öğrenci ana ekranı ================= */
.hd { display: flex; flex-direction: column; gap: 18px; }
.hd-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hd-date { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hd-top h1 { margin: 6px 0 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hd-top p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.hd-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 14.5px; color: var(--text); }
.hd-pill .di { width: 20px; height: 20px; }
.hd-pill.fl .di { color: #f07a12; } .hd-pill.cn .di { color: #d99a06; } .hd-pill.lgx .di { color: #8b5cf6; }
.hd-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.hd-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: 0 1px 2px rgba(40, 24, 20, .04); min-width: 0; }
.hd-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hd-card-h h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.015em; flex: 1; min-width: 0; }
.hd-card-h .more { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.hd-card-h .ico-t { width: 34px; height: 34px; border-radius: 10px; } .hd-card-h .ico-t .di { width: 18px; height: 18px; }
/* devam kartı */
.hd-hero { grid-column: span 8; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 22px; align-items: center; overflow: hidden; padding: 26px;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%), var(--surface); }
.hd-lvl { display: flex; align-items: center; gap: 16px; }
.hd-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.hd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hd-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.hd-ring .bg { stroke: var(--surface-3); }
.hd-ring .fg { stroke: url(#hdGrad); stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1s var(--ease-out) .15s; }
.hd-ring b { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hd-ring b small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; color: var(--muted); margin-bottom: 3px; }
.hd-lvl-t h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.hd-lvl-t p { margin: 5px 0 0; font-size: 14px; color: var(--muted); }
.hd-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hd-act { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 13px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.hd-act .di { width: 19px; height: 19px; }
.hd-act.pri { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(239, 62, 58, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.hd-act.pri .di { --di-a: #fff; }
.hd-scene { position: relative; border-radius: 18px; overflow: hidden; border: 3px solid #120d0e; aspect-ratio: 4 / 3; background: #2b8a3e; }
.hd-scene canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.hd-scene span { position: absolute; left: 8px; top: 8px; font: 7px var(--pixel); color: #fff; background: rgba(18, 13, 14, .72); padding: 5px 8px; border-radius: 7px; }
/* günlük ödül / seri */
.hd-streak { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; }
.hd-streak-top { display: flex; align-items: center; gap: 14px; }
.hd-streak-top b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hd-streak-top small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.hd-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hd-days span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--muted); }
.hd-days span b { font-size: 12.5px; color: var(--text-2); }
.hd-days span.got { background: color-mix(in srgb, #16a34a 12%, var(--surface)); border-color: color-mix(in srgb, #16a34a 30%, transparent); color: #16a34a; }
.hd-days span.today { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: var(--accent); color: var(--accent); }
.hd-streak .btn { margin-top: auto; }
/* göstergeler */
.hd-kpi { grid-column: span 3; display: flex; align-items: center; gap: 14px; padding: 18px; }
.hd-kpi b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hd-kpi span { font-size: 13.5px; color: var(--muted); }
/* hızlı erişim */
.hd-qa { grid-column: span 12; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hd-qa a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 14.5px; color: var(--text); min-width: 0; }
.hd-qa a > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* iki sütun */
.hd-cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hd-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hd-quest { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); margin-bottom: 8px; }
.hd-quest:last-child { margin-bottom: 0; }
.hd-quest .qi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: 18px; flex-shrink: 0; }
.hd-quest.done .qi { background: #16a34a; border-color: #16a34a; color: #fff; }
.hd-quest .qm { flex: 1; min-width: 0; }
.hd-quest .qm b { display: block; font-size: 14.5px; margin-bottom: 7px; }
.hd-quest .qbar { height: 7px; border-radius: 7px; background: var(--surface-3); overflow: hidden; }
.hd-quest .qbar i { display: block; height: 100%; border-radius: 7px; background: var(--grad); }
.hd-quest.done .qbar i { background: #16a34a; }
.hd-quest .qn { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.hd-quest .qr { font-size: 12.5px; font-weight: 800; padding: 5px 9px; border-radius: 99px; background: color-mix(in srgb, #d99a06 14%, transparent); color: #b7810a; white-space: nowrap; }
.hd-hw { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border); color: var(--text); }
.hd-hw:last-child { border-bottom: 0; }
.hd-hw .d { width: 46px; flex-shrink: 0; text-align: center; padding: 6px 0; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.hd-hw .d b { display: block; font-size: 17px; font-weight: 800; line-height: 1.1; }
.hd-hw .d small { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.hd-hw .t { flex: 1; min-width: 0; } .hd-hw .t b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hd-hw .t small { font-size: 12.5px; color: var(--muted); }
.hd-hw.late .d { border-color: var(--accent); color: var(--accent); }
.hd-lb { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; color: var(--text); }
.hd-lb.me { background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.hd-lb .rk { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--muted); }
.hd-lb .rk.r1 { background: #fde68a; color: #92400e; } .hd-lb .rk.r2 { background: #e5e7eb; color: #374151; } .hd-lb .rk.r3 { background: #fed7aa; color: #9a3412; }
.hd-lb .n { flex: 1; min-width: 0; } .hd-lb .n b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hd-lb .n small { font-size: 12px; color: var(--muted); }
.hd-lb .xp { font-size: 13px; font-weight: 800; color: var(--text-2); }
.hd-tip { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.hd-tip p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hd-tip b { font-size: 15px; }
.hd-prog { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.hd-prog .bar { flex: 1; height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.hd-prog .bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #8b5cf6, #c084fc); }
.hd-prog b { font-size: 13.5px; }
.hd-ann { padding: 10px 0; border-bottom: 1px dashed var(--border); } .hd-ann:last-child { border-bottom: 0; }
.hd-ann b { display: block; font-size: 14px; } .hd-ann small { font-size: 12.5px; color: var(--muted); }
.hd-recent { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--text); }
.hd-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.hd-empty .ico-t { margin-bottom: 4px; }
/* girişte kısa, sıralı belirme (yalnızca sayfa açılışında; hızlı ve küçük) */
.hd-in > * { animation: hd-rise .45s var(--ease-out) both; }
.hd-in > *:nth-child(2) { animation-delay: 40ms; } .hd-in > *:nth-child(3) { animation-delay: 80ms; } .hd-in > *:nth-child(4) { animation-delay: 120ms; } .hd-in > *:nth-child(n+5) { animation-delay: 150ms; }
@keyframes hd-rise { from { opacity: 0; transform: translateY(8px); } }
@media (hover: hover) and (pointer: fine) {
  .hd-act:hover { background: var(--surface-2); } .hd-act.pri:hover { background: var(--grad); filter: brightness(1.06); }
  .hd-qa a:hover { border-color: var(--border-2); box-shadow: 0 8px 22px -14px rgba(40, 24, 20, .35); }
  .hd-quest:hover, .hd-lb:hover:not(.me) { background: var(--surface-2); border-color: var(--border-2); }
}
@media (max-width: 1180px) { .hd-qa { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .hd-hero, .hd-streak { grid-column: span 12; }
  .hd-kpi { grid-column: span 6; }
  .hd-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hd-hero { grid-template-columns: 1fr; padding: 20px; }
  .hd-scene { order: -1; }
  .hd-ring { width: 78px; height: 78px; } .hd-ring b { font-size: 21px; }
  .hd-acts .hd-act { flex: 1 1 auto; justify-content: center; }
  .hd-kpi { padding: 14px; gap: 10px; } .hd-kpi b { font-size: 21px; } .hd-kpi .ico-t { width: 38px; height: 38px; }
  .hd-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-card { padding: 18px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .hd-in > * { animation: none; } .hd-ring .fg { transition: none; } }

/* ================= yönetim paneli ================= */
.adm .nav .nav-label, .adm .nav-group { display: block; margin: 16px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--side-muted); text-transform: uppercase; }
.adm .nav .nav-group:first-child { margin-top: 4px; }
.adm .page-head h1 { font-size: 30px; letter-spacing: -.03em; }
.adm .card { border-radius: 22px; }
.adm .stat { border-radius: 20px; padding: 18px; }
.adm .stat .ic { border-radius: 13px; }
.adm .stat .v { font-size: 26px; letter-spacing: -.03em; }
.adm .tbl th { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.adm .tbl tbody tr:hover { background: var(--surface-2); }
.adm .input, .adm .select { border-radius: 12px; }
.adm-qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-qa a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: 14.5px; transition: transform .16s var(--ease-out), border-color .2s ease, box-shadow .2s ease; }
.adm-qa a:active { transform: scale(.97); }
.adm-qa a small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.adm-qa a .n { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .adm-qa a:hover { border-color: var(--border-2); box-shadow: 0 8px 22px -14px rgba(40, 24, 20, .35); } }
@media (max-width: 1000px) { .adm-qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* yönetim: başlık, menü grupları, avatar */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-head h1 { margin: 6px 0 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.adm-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.adm-qa a > span:nth-child(2) { min-width: 0; }
.adm-qa a b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm .nav-group { display: flex; align-items: center; gap: 8px; margin: 16px 12px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--side-muted); }
.adm .nav-group::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .06); }
.adm .nav .nav-group:first-child { margin-top: 2px; }
.adm .side-mini .nav-group { visibility: hidden; height: 1px; margin: 8px 12px; }
.adm-av { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 30%; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.adm-av svg { width: 72%; height: 72%; overflow: visible; }
.adm .stat { display: flex; align-items: center; gap: 14px; color: var(--text); transition: transform .16s var(--ease-out), border-color .2s ease, box-shadow .2s ease; }
.adm .stat:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .adm .stat:hover { border-color: var(--border-2); box-shadow: 0 10px 26px -16px rgba(40, 24, 20, .35); } }
.adm .live-hero { border-radius: 24px; }
.adm .page-head h1 svg { color: var(--accent); }
.adm .tbl .cut { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm .tbl td:last-child .row { flex-wrap: nowrap; }
@media (max-width: 640px) {
  .adm-qa { grid-template-columns: 1fr; gap: 8px; }
  .adm-qa a { padding: 12px 14px; }
  .adm-head { align-items: flex-start; }
}
/* geniş tablolarda işlem sütunu sağa sabit */
.adm .table-wrap .tbl th:last-child, .adm .table-wrap .tbl td:last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -10px 0 12px -10px rgba(40, 24, 20, .18); }
.adm .table-wrap .tbl tbody tr:hover td:last-child { background: var(--surface-2); }
.adm .tbl td { padding-top: 9px; padding-bottom: 9px; }

/* ---------- giriş: alan simgeleri, otomatik doldurma, tek odak halkası ---------- */
.in-ico { position: relative; }
.in-ico .input { padding-left: 46px; }
.f-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; z-index: 2; transition: color .15s ease; }
.f-ico svg { display: block; width: 100%; height: 100%; }
.in-ico:focus-within .f-ico { color: var(--accent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none !important; }
.auth-form .input:-webkit-autofill, .auth-form .input:-webkit-autofill:hover { -webkit-text-fill-color: var(--text) !important; -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset !important; box-shadow: 0 0 0 1000px var(--surface-2) inset !important; }
.auth-form .input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent) !important; box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent) !important; }
.auth-form .pw-field .eye { display: grid; place-items: center; color: var(--muted); font-size: 0; }
.auth-form .pw-field .eye svg { width: 19px; height: 19px; }
.auth-form .pw-field .eye:hover { color: var(--text); }
.auth-form .pw-field .input { padding-right: 50px; }
/* sol taraf: dengeli dağılım ve özellik rozetleri */
.auth-side { justify-content: space-between; }
.as-slider { margin-top: 0; }
.as-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.as-trust span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #e9e1df; min-width: 0; }
.as-trust span b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-trust .di { width: 18px; height: 18px; color: #ff9a6b; --di-a: #ffd166; flex-shrink: 0; }
.auth-safe .di { color: var(--muted); }

/* ================= gezinme (UX sadeleştirme) ================= */
.nav a { min-height: 42px; }
.side-help { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.side-help a { flex: none; display: flex; align-items: center; justify-content: flex-start; gap: 11px; min-height: 42px; padding: 0 12px; white-space: nowrap; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--side-text, #e9e3e4); background: rgba(255, 255, 255, .04); transition: background-color .15s ease, color .15s ease; }
.side-help a svg { width: 19px; height: 19px; flex: none; }
.side-help a:hover { background: var(--side-2); color: #fff; }
.side-mini .side-help { flex-direction: column; } .side-mini .side-help span { display: none; }
.side-me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; border-radius: 10px; }
.side-me:hover .name { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* grup sekmeleri */
.subnav { display: flex; align-items: center; gap: 14px; margin: 2px 0 18px; padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(40, 24, 20, .04); }
.subnav[hidden] { display: none; }
.sn-title { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--border); }
.sn-title svg { width: 17px; height: 17px; color: var(--accent); }
.sn-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.sn-tabs::-webkit-scrollbar { display: none; }
.sn-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; flex-shrink: 0; transition: background-color .15s ease, color .15s ease; }
.sn-tabs a svg { width: 17px; height: 17px; opacity: .8; }
.sn-tabs a b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; color: #fff; background: var(--accent); }
.sn-tabs a.on { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.sn-tabs a.on svg { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .sn-tabs a:not(.on):hover { background: var(--surface-2); color: var(--text); } }
/* telefon alt çubuğu */
.botnav { display: none; }
@media (max-width: 900px) {
  .botnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .botnav a, .botnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; font: 600 11px var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s ease, transform .12s ease; }
  .botnav a:active, .botnav button:active { transform: scale(.94); }
  .botnav svg { width: 22px; height: 22px; }
  .botnav a.active { color: var(--accent); }
  .botnav a.active::before { content: ''; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .botnav a.bn-world svg { color: #65a30d; }
  .botnav a.bn-world.active svg { color: var(--accent); }
  .bn-badge { position: absolute; top: 2px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; font: 700 10px var(--font); font-style: normal; color: #fff; background: var(--accent); }
  .main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  body.on-world .botnav { display: none; }
  body.on-world .main { padding-bottom: 14px; }
  .subnav { margin: 0 -2px 14px; gap: 0; padding: 4px; border-radius: 14px; }
  .sn-title { display: none; }
  .sn-tabs a { height: 36px; padding: 0 12px; font-size: 13.5px; }
}

/* ---------- sol menü: açılır-kapanır gruplar ---------- */
.nav-acc-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--side-text); font: 500 14.5px var(--font); text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.nav-acc-h > span:not(.badge) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-acc-h > svg:first-child { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.nav-acc-h .nav-chev { width: 16px; height: 16px; flex-shrink: 0; opacity: .55; transition: transform .25s var(--ease-out), opacity .2s ease; }
.nav-acc.open .nav-chev { transform: rotate(90deg); opacity: .9; }
.nav-acc-h .badge { margin-left: 0; }
.nav-acc.open > .nav-acc-h .badge { display: none; }
.nav-acc.has-active > .nav-acc-h { color: #fff; font-weight: 600; }
.nav-acc.has-active > .nav-acc-h > svg:first-child { color: var(--accent-2); opacity: 1; }
.nav-acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s var(--ease-out); }
.nav-acc.open > .nav-acc-b { grid-template-rows: 1fr; }
.nav-acc-in { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 1px; margin-left: 21px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .08); }
.nav-acc.open > .nav-acc-b > .nav-acc-in { padding-top: 2px; padding-bottom: 6px; }
.nav .nav-acc-in a { min-height: 36px; padding: 8px 10px; font-size: 13.5px; color: var(--side-muted); }
.nav .nav-acc-in a svg { width: 16px; height: 16px; }
.nav .nav-acc-in a:hover { color: #fff; }
.nav .nav-acc-in a.active { color: #fff; background: rgba(239, 62, 58, .14); }
.nav .nav-acc-in a.active::before { display: none; }
@media (hover: hover) and (pointer: fine) { .nav-acc-h:hover { background: var(--side-2); color: #fff; } }
.side-mini .nav-acc-b { display: none; }
.side-mini .nav-acc-h > span, .side-mini .nav-acc-h .nav-chev { display: none; }
.side-mini .nav-acc-h { justify-content: center; }
/* sayfanın üstündeki sekmeler yalnızca telefonda (masaüstünde aynı bağlantılar sol menüde açılıyor) */
@media (min-width: 901px) { .subnav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .nav-acc-b, .nav-chev { transition: none; } }

/* profil resmi: renkli insan silueti */
.avatar.person { overflow: hidden; display: inline-grid; place-items: end center; flex-shrink: 0; }
.avatar.person svg { width: 100%; height: 100%; display: block; }
/* sol üst: logo, rozet ve daraltma düğmesi menü genişliğine sığar */
.side-logo { gap: 6px; padding-right: 10px; }
.side-logo > a { flex: 1 1 auto; min-width: 0; }
.side-logo .gs-logo { --gs: 27px; }
.side-logo:has(.admin-chip) .gs-logo { --gs: 23px; }
.side-logo .ver { display: none; }
.side-logo .admin-chip { margin-left: 0; padding: 4px 7px; font-size: 8.5px; }
.side-toggle { margin-left: auto; width: 30px; height: 30px; }
/* sahip olunan ev ve arabalar: yatay kart, küçük görsel */
.own-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card.own { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 16px; }
.card.own > canvas { grid-column: 1; grid-row: 1 / span 8; width: 112px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 14px; }
.card.own > :not(canvas) { grid-column: 2; min-width: 0; }
.card.own > canvas + .row { margin-top: 0; }
@media (max-width: 520px) { .own-grid { grid-template-columns: 1fr; } .card.own { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; } .card.own > canvas { width: 84px; } }
/* yönetici: ADMİN rozeti logonun altında, logo ve daraltma düğmesi üst satırda */
.side-logo:has(.admin-chip) { flex-wrap: wrap; row-gap: 4px; }
.side-logo:has(.admin-chip) > a { flex: 1 1 calc(100% - 44px); }
.side-logo:has(.admin-chip) .gs-logo { --gs: 27px; }
.side-logo .admin-chip { order: 3; margin-left: 3px; }
.side-mini .side-logo .admin-chip { display: none; }

/* ---------- özel rütbe rozeti ---------- */
.rank-chip { --r1: #7c3aed; --r2: #7c3aed; --rf: #fff; --rb: #1b1315; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px 0 8px; border-radius: 8px; overflow: hidden; vertical-align: middle;
  font: 800 12.5px/1 var(--font); letter-spacing: .01em; color: var(--rf); background: linear-gradient(135deg, var(--r1), var(--r2)); box-shadow: 0 0 0 1.5px var(--rb), inset 0 1px 0 rgba(255,255,255,.22); white-space: nowrap; }
.rank-chip .rk-i { font-size: 13px; line-height: 1; }
.rank-chip .rk-i:empty { display: none; }
.rank-chip.badge-title { --r1: #5b32c4; --r2: #5b32c4; --rf: #fde68a; --rb: transparent; }
.rank-chip.fx-glow { box-shadow: 0 0 0 1.5px var(--rb), 0 0 14px color-mix(in srgb, var(--r1) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.22); }
.rank-chip.fx-pulse { animation: rk-pulse 1.8s ease-in-out infinite; }
@keyframes rk-pulse { 50% { box-shadow: 0 0 0 1.5px var(--rb), 0 0 16px color-mix(in srgb, var(--r2) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.22); } }
.rank-chip.fx-shine::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: rk-shine 2.6s ease-in-out infinite; }
@keyframes rk-shine { 60%, 100% { left: 130%; } }
.rank-chip.fx-rainbow { background: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444); background-size: 300% 100%; animation: rk-rainbow 4s linear infinite; }
@keyframes rk-rainbow { to { background-position: 300% 0; } }
.rank-chip.rk-lg { height: 32px; font-size: 14px; padding: 0 14px 0 10px; border-radius: 10px; } .rank-chip.rk-lg .rk-i { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .rank-chip { animation: none !important; } .rank-chip::after { display: none; } }
.px-chip.px-rank { background: linear-gradient(135deg, var(--r1), var(--r2)); color: var(--rf); border-color: var(--rb); }
.profile-hero .rank-chip { margin-left: 2px; }
/* ---------- yönetim: rütbeler ---------- */
.rk-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.rk-tpl { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); text-align: left; cursor: pointer; transition: border-color .15s ease, transform .16s var(--ease-out); }
.rk-tpl small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.rk-tpl:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .rk-tpl:hover { border-color: var(--accent); } }
.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.rk-card { display: flex; flex-direction: column; gap: 14px; }
.rk-cv { display: block; width: 100%; height: 120px; border-radius: 14px; image-rendering: pixelated; border: 1px solid var(--border); }
.rk-cv.big { height: 150px; }
.rk-body { display: flex; flex-direction: column; gap: 10px; }
.rk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rk-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.rk-ed { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; margin: 6px 0 4px; }
.rk-icons { display: flex; flex-wrap: wrap; gap: 4px; }
.rk-icons button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 18px; cursor: pointer; }
.rk-icons button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent); }
.rk-colors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 2px 0 14px; }
.rk-colors label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.rk-colors input[type=color] { width: 100%; height: 40px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.rk-prev { display: flex; flex-direction: column; gap: 6px; }
.rk-site { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: 14px; border: 1px solid var(--border); }
.rk-site.light { background: #f4f2ee; } .rk-site.dark { background: #120d0e; }
.rh-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; margin-top: 6px; }
.rh-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.rk-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.rk-tg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 12px; border: 1px dashed var(--border-2); background: none; cursor: pointer; opacity: .55; transition: opacity .15s ease, border-color .15s ease; }
.rk-tg.on { opacity: 1; border-style: solid; border-color: var(--green); }
.rk-tg svg { width: 15px; height: 15px; color: var(--green); }
@media (max-width: 760px) { .rk-ed { grid-template-columns: 1fr; } .rk-colors { grid-template-columns: repeat(2, 1fr); } .rk-grid { grid-template-columns: 1fr; } }

/* ---------- Pixel Dünyası: sohbet ---------- */
.w-log { pointer-events: auto; cursor: pointer; }
.w-line.to-me { box-shadow: inset 3px 0 0 #facc15; }
.w-line-re { font-size: 10.5px; color: #b9aeb0; margin-right: 5px; }
.w-chatlog { left: 14px; bottom: 16px; z-index: 13; width: min(380px, calc(100% - 28px)); height: min(440px, 62%); display: flex; flex-direction: column; padding: 0; overflow: hidden; font-family: var(--font); }
.w-chatlog[hidden] { display: none; }
.world-wrap.cl-open .w-log { display: none; }
.w-chatlog header { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-bottom: 2px solid rgba(255,255,255,.08); font: 9px var(--pixel); color: var(--lime); }
.w-chatlog header .w-cl-where { flex: 1; color: #b9aeb0; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-chatlog header button { width: 28px; height: 28px; border-radius: 7px; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.w-cl-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 8px 12px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; overscroll-behavior: contain; }
.w-cl-msg { position: relative; padding: 6px 34px 6px 8px; border-radius: 9px; color: #f1ebe9; font-size: 13.5px; line-height: 1.4; }
.w-cl-msg.grp { padding-top: 1px; }
.w-cl-msg.mine { background: rgba(212,240,74,.06); }
.w-cl-msg.to-me { background: rgba(250,204,21,.12); box-shadow: inset 3px 0 0 #facc15; }
.w-cl-msg.flash { animation: cl-flash 1.2s ease-out; }
@keyframes cl-flash { 0%, 30% { background: rgba(212,240,74,.25); } }
.w-cl-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 1px; }
.w-cl-name { font-weight: 800; font-size: 13.5px; }
.w-cl-name[data-who] { cursor: pointer; }
.w-cl-name[data-who]:hover { text-decoration: underline; text-underline-offset: 2px; }
.w-cl-lv { font: 6px var(--pixel); color: #1b1315; background: var(--lime); padding: 2px 4px; border-radius: 3px; }
.w-cl-head time { margin-left: auto; font-size: 11px; color: #8d807c; }
.w-cl-text { word-break: break-word; }
.w-cl-quote { display: block; width: 100%; text-align: left; margin: 0 0 4px; padding: 4px 8px; border: 0; border-left: 3px solid rgba(255,255,255,.25); border-radius: 0 6px 6px 0; background: rgba(255,255,255,.05); color: #b9aeb0; font: 12px var(--font); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-cl-quote span { margin-right: 4px; }
.w-cl-rep { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 7px; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 14px; cursor: pointer; opacity: 0; transition: opacity .12s ease; }
.w-cl-msg:hover .w-cl-rep, .w-cl-rep:focus-visible { opacity: 1; }
@media (hover: none) { .w-cl-rep { opacity: .7; } }
.w-cl-older { align-self: center; margin: 2px 0 8px; padding: 6px 10px; border-radius: 8px; border: 0; background: rgba(255,255,255,.07); color: #e6dedb; font: 7px var(--pixel); cursor: pointer; }
.w-cl-start, .w-cl-empty { align-self: center; margin: 6px 0; font-size: 12px; color: #8d807c; }
.w-cl-empty { margin-top: 30px; text-align: center; }
.w-cl-new { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 7px 12px; border-radius: 99px; border: 2px solid #000; background: var(--lime); color: #1b1315; font: 7px var(--pixel); cursor: pointer; }
.w-cl-new[hidden] { display: none; }
.w-reply { pointer-events: auto; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(24,16,18,.92); border: 2px solid #000; color: #e6dedb; font: 12.5px var(--font); }
.w-reply[hidden] { display: none; }
.w-reply span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-reply button { width: 26px; height: 26px; border-radius: 7px; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.w-chat .w-cl-btn { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; flex-shrink: 0; }
.w-chat .w-cl-btn .w-ico { width: 18px; height: 18px; }
.w-cl-dot { position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px #000; }
.w-cl-dot[hidden] { display: none; }
.world-wrap.touch .w-chatlog { left: 8px; right: 8px; width: auto; bottom: calc(176px + env(safe-area-inset-bottom)); height: min(360px, 48%); }
@media (orientation: landscape) and (max-height: 540px) { .world-wrap.touch .w-chatlog { left: calc(140px + env(safe-area-inset-left)); right: auto; width: min(380px, calc(100% - 320px)); bottom: 70px; top: 54px; height: auto; } }
/* geçmiş paneli açıkken alt çubuk panelin sağına kayar (masaüstü) */
.world-wrap:not(.touch) .w-bottom { transition: left .25s var(--ease-out); }
.world-wrap.cl-open:not(.touch) .w-bottom { left: min(max(50%, 644px), calc(100% - 244px)); }

/* ---------- Bilge (mavi tema): “Bilge’ye sor” kutusu, penceresi, yüzen düğme ve Bilge sayfası ---------- */
:root { --bilge-1: #1e40af; --bilge-2: #2563eb; --bilge-3: #0ea5e9; --bilge-soft: #e6f0ff; --bilge-ink: #1e3a8a; }
:root[data-theme="dark"] { --bilge-soft: rgba(59, 130, 246, .16); --bilge-ink: #bfdbfe; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bilge-soft: rgba(59, 130, 246, .16); --bilge-ink: #bfdbfe; } }
/* Bilge karakteri (piksel SVG) */
.bilge-svg { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.bilge-av { overflow: hidden; padding: 3px 5px 0; background: linear-gradient(160deg, #dbeafe, #bfdbfe) !important; }
.bilge-av .bilge-svg { width: 100%; height: auto; }
/* Yönetim paneli: Yapay Zekâ ve Sistem Sağlığı sayfaları */
.aia-status { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-left: 4px solid var(--c); --c: #d97706; }
.aia-status.ok { --c: #16a34a; }
.aia-status b { display: block; font-size: 15px; }
.aia-status small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.aia-status .aia-err { color: var(--red); }
.aia-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); flex-shrink: 0; }
.aia-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.aia-stat small { font-size: 12px; color: var(--muted); font-weight: 600; }
.aia-stat b { font: 800 24px var(--font); }
.aia-stat span { font-size: 12px; color: var(--muted); }
.aia-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 16px; }
.aia-b { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; position: relative; }
.aia-b i { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: linear-gradient(var(--bilge-3), var(--bilge-2)); }
.aia-b em { position: absolute; top: -2px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.aia-b span { font-size: 10.5px; color: var(--muted); }
.aia-ans { padding: 12px; border-radius: 12px; background: var(--surface-2); max-height: 340px; overflow: auto; }
.aia-log { display: flex; flex-direction: column; }
.aia-row { border-bottom: 1px solid var(--border); }
.aia-row summary { display: flex; align-items: center; gap: 10px; padding: 9px 4px; cursor: pointer; list-style: none; }
.aia-row summary::-webkit-details-marker { display: none; }
.aia-row summary .grow { min-width: 0; }
.aia-q { display: block; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aia-row[open] .aia-q { white-space: normal; }
.aia-a { padding: 4px 4px 12px 40px; }
.sys-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.sys-counts div { padding: 10px; border-radius: 12px; background: var(--surface-2); }
.sys-counts b { display: block; font: 800 18px var(--font); }
.sys-counts span { font-size: 12px; color: var(--muted); }
.sys-errs { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.sys-errs div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--red) 8%, var(--surface)); }
.sys-errs code { font-size: 12px; white-space: pre-wrap; word-break: break-word; background: none; padding: 0; }
/* Öğretmen: sohbette öğrenci seçici */
.bp { margin: 0 12px 8px; }
.bd-bp { margin: 0 10px 8px; }
.bp-open { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--bilge-2) 45%, transparent); background: none; color: var(--bilge-ink); font: 600 13px var(--font); cursor: pointer; text-align: left; }
.bp-open:hover { background: var(--bilge-soft); }
.bp-open span { font-size: 16px; }
.bp-open small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 11.5px; }
.bp-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--bilge-soft); border: 1px solid color-mix(in srgb, var(--bilge-2) 30%, transparent); }
.bp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bp-who small { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.bp-who b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-who em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.bp-x { width: 28px; height: 28px; border-radius: 8px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.bp-x:hover { color: var(--red); }
.bp-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.bp-acts button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 12px var(--font); cursor: pointer; }
.bp-acts button:hover { border-color: var(--bilge-2); color: var(--bilge-2); }
.bp-search { padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.bp-search .input { height: 36px; flex: 1; }
.bp-list { display: flex; flex-direction: column; gap: 2px; max-height: 210px; overflow-y: auto; margin-top: 6px; }
.bp-list button { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.bp-list button:hover { background: var(--bilge-soft); }
.bp-tag { display: inline-block; margin: 0 6px 4px 0; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.22); font-size: 11.5px; font-weight: 700; }
/* Bilge cevaplarında tablo ve ayraç; yerel mod uyarısı */
.md-table { overflow-x: auto; margin: 8px 0 10px; border-radius: 10px; border: 1px solid var(--border); }
.md-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-table th, .md-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.md-table th { background: var(--bilge-soft); color: var(--bilge-ink); font-weight: 700; white-space: nowrap; }
.md-table tr:last-child td { border-bottom: 0; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
/* Bilge mesajları: okunaklı ve renkli biçim */
.md { font-size: 14.5px; line-height: 1.65; color: var(--text); }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p { margin: 0 0 9px; }
.md b { font-weight: 800; color: var(--bilge-ink); }
.md u { text-decoration: underline; text-decoration-color: var(--bilge-3); text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* fosforlu kalem: yarı saydam olduğu için açık ve koyu temada yazı okunur kalır */
.md mark { padding: 1px 4px; border-radius: 4px; background: linear-gradient(transparent 40%, rgba(250, 204, 21, .45) 40%); color: inherit; font-weight: 600; }
.md h3 { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; font: 800 16px var(--font); color: var(--bilge-1); }
.md h3::before { content: ''; width: 4px; height: 18px; border-radius: 3px; background: linear-gradient(var(--bilge-2), var(--bilge-3)); }
:root[data-theme="dark"] .md h3 { color: #93c5fd; }
.md h4 { margin: 12px 0 6px; font: 800 14.5px var(--font); color: var(--text); }
.md ul { margin: 0 0 10px; padding-left: 20px; }
.md ul li { margin: 3px 0; }
.md ul li::marker { color: var(--bilge-2); }
.md ol { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: md; }
.md ol li { position: relative; margin: 6px 0; padding-left: 32px; counter-increment: md; }
.md ol li::before { content: counter(md); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bilge-2); color: #fff; font: 800 11.5px var(--font); }
.md code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-size: .92em; }
.md-call { margin: 10px 0; padding: 10px 12px; border-radius: 12px; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); --c: #64748b; }
.md-call p { margin: 0 0 4px; }
.md-call p:last-child { margin: 0; }
.md-call.tip { --c: #2563eb; } .md-call.warn { --c: #d97706; } .md-call.ok { --c: #16a34a; } .md-call.bad { --c: #dc2626; } .md-call.note { --c: #7c3aed; }
.md-pct { display: inline-block; padding: 0 7px; border-radius: 99px; font-weight: 800; font-size: .9em; }
.md-pct.lo { background: #fee2e2; color: #b91c1c; } .md-pct.mid { background: #fef3c7; color: #b45309; } .md-pct.hi { background: #dcfce7; color: #15803d; }
:root[data-theme="dark"] .md-pct.lo { background: rgba(239, 68, 68, .2); color: #fca5a5; } :root[data-theme="dark"] .md-pct.mid { background: rgba(245, 158, 11, .2); color: #fcd34d; } :root[data-theme="dark"] .md-pct.hi { background: rgba(34, 197, 94, .2); color: #86efac; }
.ai-msg.me .bubble { font-size: 14.5px; line-height: 1.55; }
.bg-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fef3c7; color: #78350f; font-size: 13.5px; }
.bg-warn b { display: block; }
.bg-warn span { display: block; margin-top: 2px; }
:root[data-theme="dark"] .bg-warn { background: rgba(245, 158, 11, .14); color: #fde68a; }
/* Bilge düğmesi (öğrenci kartı, yanlışlarım) ve sohbetteki işlem kartı */
.bilge-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--bilge-2); color: #fff; border-color: var(--bilge-2); }
.bilge-btn:hover { background: var(--bilge-1); }
.bilge-btn.ghost { background: var(--bilge-soft); color: var(--bilge-ink); border-color: transparent; }
.bilge-btn:disabled { opacity: .7; }
.bilge-svg.mini { width: 16px; height: 20px; flex-shrink: 0; }
.bg-act { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bilge-2) 30%, transparent); background: var(--bilge-soft); color: var(--text); text-decoration: none; transition: transform .15s ease; }
.bg-act:hover { transform: translateY(-1px); }
.bg-act-ic { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--bilge-2); color: #fff; font-size: 16px; }
.bg-act-ic svg { width: 17px; height: 17px; }
.bg-act b { display: block; font-size: 13.5px; }
.bg-act small { display: block; font-size: 11.5px; color: var(--muted); }
.bg-act em { font-style: normal; font: 700 12.5px var(--font); color: var(--bilge-2); white-space: nowrap; }
.ai-msg.me .bg-act { display: none; }
/* sayfa içi “Bilge’ye sor” kutusu: tek satırlık, sade */
.bilge-box { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bilge-soft); border: 1px solid color-mix(in srgb, var(--bilge-2) 22%, transparent); }
.bilge-box .bb-av { flex-shrink: 0; width: 36px; height: 44px; animation: bbBob 3.4s ease-in-out infinite; }
.bilge-box .bb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bilge-box .bb-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bilge-box .bb-title { flex-shrink: 0; font: 800 14px var(--font); color: var(--bilge-ink); }
.bilge-box .bb-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--muted); }
.bilge-box .bb-row { display: flex; gap: 6px; }
.bilge-box .bb-in { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: 500 13.5px var(--font); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.bilge-box .bb-in::placeholder { color: var(--muted); }
.bilge-box .bb-in:focus { border-color: var(--bilge-2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.bilge-box .bb-go { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bilge-2); color: #fff; cursor: pointer; transition: background .15s ease; }
.bilge-box .bb-go svg { width: 16px; height: 16px; }
.bilge-box .bb-go:hover { background: var(--bilge-1); }
.bilge-box .bb-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bilge-box .bb-chip { padding: 3px 9px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 11.5px var(--font); cursor: pointer; }
.bilge-box .bb-chip:hover { border-color: var(--bilge-2); color: var(--bilge-2); }
.bilge-box.bb-shake { animation: bbShake .35s ease; }
@media (max-width: 600px) { .bilge-box .bb-sub { display: none; } .bilge-box { align-items: flex-start; } }
/* sağ altta açılan sohbet paneli */
.bilge-dock { position: fixed; right: 18px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 210; display: flex; flex-direction: column; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(15, 23, 42, .28); opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.bilge-dock.open { opacity: 1; transform: none; pointer-events: auto; }
.bd-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; color: #fff; background: linear-gradient(120deg, var(--bilge-1), var(--bilge-2) 60%, var(--bilge-3)); }
.bd-av { width: 34px; height: 40px; flex-shrink: 0; padding: 2px 3px 0; border-radius: 10px; background: rgba(255,255,255,.18); }
.bd-head b { display: block; font-size: 15px; }
.bd-head small { display: block; font-size: 11.5px; opacity: .88; }
.bd-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 14px; text-decoration: none; cursor: pointer; }
.bd-ic:hover { background: rgba(255,255,255,.26); }
.bd-log { flex: 1; min-height: 0; max-height: none; overflow-y: auto; padding: 14px 12px; gap: 10px; background: linear-gradient(180deg, var(--bilge-soft), transparent 120px); }
.bd-log .ai-msg .bubble { max-width: 86%; padding: 8px 12px; font-size: 13.5px; border-radius: 4px 14px 14px 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bd-log .ai-msg.me .bubble { border-radius: 14px 4px 14px 14px; background: var(--bilge-2); color: #fff; border-color: transparent; }
.bd-log .ai-av { width: 28px; height: 28px; border-radius: 9px; }
.bd-hello { margin: auto; padding: 10px 14px; text-align: center; }
.bd-hello .bilge-svg { width: 56px; height: 70px; margin: 0 auto 8px; animation: bbBob 3.4s ease-in-out infinite; }
.bd-hello b { display: block; font-size: 15px; }
.bd-hello p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.bd-chips[hidden] { display: none; }
.bd-chips button { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 12px var(--font); cursor: pointer; }
.bd-chips button:hover { border-color: var(--bilge-2); color: var(--bilge-2); }
.bd-input { display: flex; align-items: flex-end; gap: 6px; margin: 0 10px; padding: 4px 4px 4px 12px; border-radius: 14px; border: 1.5px solid var(--border-2); background: var(--surface); }
.bd-input:focus-within { border-color: var(--bilge-2); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.bd-input textarea { flex: 1; min-height: 34px; max-height: 120px; padding: 8px 0; border: 0; outline: none; resize: none; background: none; color: var(--text); font: 500 14px/1.4 var(--font); }
.bd-send { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 0; background: var(--bilge-2); color: #fff; cursor: pointer; }
.bd-send svg { width: 16px; height: 16px; }
.bd-send:disabled { opacity: .5; }
.bd-note { margin: 6px 12px 8px; font-size: 10.5px; color: var(--muted); text-align: center; }
@media (max-width: 600px) { .bilge-dock { right: 8px; left: 8px; width: auto; bottom: calc(132px + env(safe-area-inset-bottom)); height: min(520px, calc(100vh - 170px)); } }
/* yüzen düğme: küçük yuvarlak simge; yazı fareyle üstüne gelince açılır */
.bilge-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: 0; height: 46px; padding: 0 5px; border-radius: 99px; border: 0;
  background: linear-gradient(135deg, var(--bilge-2), var(--bilge-3)); color: #fff; font: 700 13.5px var(--font); cursor: pointer; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); animation: bfPulse 3.2s ease-in-out infinite; transition: transform .15s ease, gap .2s ease, padding .2s ease; }
.bilge-fab[hidden] { display: none; }
.bilge-fab .bf-owl { display: grid; place-items: end center; width: 36px; height: 36px; padding: 3px 6px 0; border-radius: 50%; overflow: hidden; background: #dbeafe; }
.bilge-fab .bf-t { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease; }
.bilge-fab:hover, .bilge-fab:focus-visible { gap: 8px; padding-right: 14px; transform: translateY(-1px); }
.bilge-fab:hover .bf-t, .bilge-fab:focus-visible .bf-t { max-width: 120px; }
@media (max-width: 900px) { .bilge-fab { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); height: 44px; } }
body.on-world .bilge-fab { display: none; }
@keyframes bbBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes bbGlow { 0%, 100% { transform: translate(0, 0); opacity: .8; } 50% { transform: translate(-40px, 30px); opacity: 1; } }
@keyframes bbShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes bfPulse { 0%, 100% { box-shadow: 0 6px 18px rgba(37, 99, 235, .35), 0 0 0 0 rgba(14, 165, 233, .45); } 50% { box-shadow: 0 6px 18px rgba(37, 99, 235, .35), 0 0 0 8px rgba(14, 165, 233, 0); } }

/* Bilge sayfası */
.bg-page { display: flex; flex-direction: column; gap: 18px; }
.bg-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 20px; padding: 24px 26px; border-radius: var(--radius-xl); color: #fff;
  background: linear-gradient(125deg, var(--bilge-1) 0%, var(--bilge-2) 50%, var(--bilge-3) 100%); box-shadow: 0 14px 40px rgba(30, 64, 175, .25); }
.bg-hero-glow { position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%); z-index: -1; animation: bbGlow 8s ease-in-out infinite; }
.bg-hero-owl { flex-shrink: 0; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; font-size: 44px; background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); animation: bbBob 3.6s ease-in-out infinite; }
.bg-hero-text { flex: 1; min-width: 0; }
.bg-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.16); font: 700 12px var(--font); }
.bg-kicker svg { width: 13px; height: 13px; }
.bg-hero h1 { margin: 6px 0 2px; font: 900 34px var(--font); letter-spacing: -.02em; color: #fff; }
.bg-hero p { margin: 0; font-size: 15px; opacity: .92; max-width: 520px; }
.bg-meter { flex-shrink: 0; width: 230px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.bg-meter-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; opacity: .95; }
.bg-meter-top b { font: 800 20px var(--font); }
.bg-bar { height: 8px; margin: 8px 0; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.bg-bar i { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .4s ease; }
.bg-mode { font-size: 11.5px; opacity: .88; }
.bg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.bg-chat { display: flex; flex-direction: column; min-height: min(70vh, 680px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.bg-chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.bg-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.bg-tag { padding: 2px 9px; border-radius: 99px; background: var(--bilge-soft); color: var(--bilge-ink); font: 700 11.5px var(--font); }
.bg-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--text-2); font: 600 12.5px var(--font); cursor: pointer; }
.bg-ghost svg { width: 14px; height: 14px; }
.bg-ghost:hover { background: var(--surface-2); }
.bg-log { flex: 1; max-height: none; min-height: 320px; padding: 18px 16px; gap: 14px; background: linear-gradient(180deg, var(--bilge-soft), transparent 140px); }
.bg-page .ai-av, .bilge-modal .ai-av { background: linear-gradient(135deg, var(--bilge-2), var(--bilge-3)); }
.bg-page .ai-msg .bubble, .bilge-modal .ai-msg .bubble { border-radius: 4px 16px 16px 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.bg-page .ai-msg.me .bubble, .bilge-modal .ai-msg.me .bubble { border-radius: 16px 4px 16px 16px; background: var(--bilge-2); color: #fff; border-color: transparent; }
.bg-msg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border); font-size: 11.5px; color: var(--muted); }
.bg-msg-foot button { border: 0; background: none; color: var(--bilge-2); font: 700 11.5px var(--font); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.bg-msg-foot button:hover { background: var(--bilge-soft); }
.bg-welcome { padding: 40px 10px; }
.bg-welcome-owl { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 22px; font-size: 40px; background: linear-gradient(135deg, var(--bilge-2), var(--bilge-3)); box-shadow: 0 10px 24px rgba(37, 99, 235, .3); }
.bg-starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.bg-starters[hidden] { display: none; }
.bg-starters button { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 13px var(--font); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.bg-starters button:hover { border-color: var(--bilge-2); color: var(--bilge-2); }
.bg-input { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 6px 6px 6px 14px; border-radius: 16px; border: 1.5px solid var(--border-2); background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease; }
.bg-input:focus-within { border-color: var(--bilge-2); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.bg-input textarea { flex: 1; min-height: 40px; max-height: 180px; padding: 10px 0; border: 0; outline: none; resize: none; background: none; color: var(--text); font: 500 14.5px/1.45 var(--font); }
.bg-send { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: linear-gradient(135deg, var(--bilge-2), var(--bilge-3)); color: #fff; cursor: pointer; transition: transform .12s ease, opacity .15s ease; }
.bg-send svg { width: 18px; height: 18px; }
.bg-send:hover { transform: translateY(-1px); }
.bg-send:disabled { opacity: .5; cursor: default; transform: none; }
.bg-note { margin: 0 16px 12px; font-size: 11.5px; color: var(--muted); }
.bg-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.bg-card { padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.bg-card > b { display: block; margin-bottom: 10px; font-size: 14.5px; }
.bg-card p { margin: 0; font-size: 13px; color: var(--text-2); }
.bg-card-soft { background: var(--bilge-soft); border-color: transparent; }
.bg-tpls { display: flex; flex-direction: column; gap: 6px; }
.bg-tpls button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--border); background: none; color: var(--text); font: 600 13.5px var(--font); text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.bg-tpls button span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--bilge-soft); font-size: 16px; }
.bg-tpls button:hover { border-color: var(--bilge-2); background: var(--bilge-soft); }
.bg-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
@media (max-width: 980px) {
  .bg-grid { grid-template-columns: 1fr; }
  .bg-side { position: static; }
  .bg-meter { width: 100%; }
  .bg-hero { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .bg-hero { padding: 18px 16px; gap: 14px; }
  .bg-hero-owl { width: 56px; height: 56px; font-size: 32px; border-radius: 18px; }
  .bg-hero h1 { font-size: 26px; }
  .bg-chat { min-height: 60vh; }
}
.bg-hero-owl { padding: 8px 12px 0; align-items: end; }
.bg-welcome-owl { padding: 8px 12px 0; align-items: end; }
@media (prefers-reduced-motion: reduce) { .bilge-box .bb-av, .bilge-fab, .bg-hero-owl, .bg-hero-glow, .bd-hello .bilge-svg { animation: none; } .bilge-dock { transition: none; } }

/* ---------- satranç: maç sonu hamle analizi ---------- */
.ch-review { margin-top: 12px; }
.ch-review[hidden] { display: none; }
.rv { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.rv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-seg button { font-size: 11.5px; padding: 4px 8px; }
.rv-prog { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rv-prog i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2563eb, #0ea5e9); transition: width .2s ease; }
.rv-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-side { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.rv-side.me { box-shadow: inset 0 0 0 2px #2563eb; }
.rv-acc { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.rv-acc b { font: 800 20px var(--font); line-height: 1; }
.rv-acc small { font-size: 10px; color: var(--muted); }
.rv-side > .grow > b { font-size: 12.5px; }
.rv-counts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.rvc, .rv-b { display: inline-flex; align-items: center; justify-content: center; padding: 1px 6px; border-radius: 6px; font: 800 11px var(--font); color: #fff; background: #64748b; }
.great { --rvc: #0891b2; } .best { --rvc: #16a34a; } .book { --rvc: #a16207; } .good { --rvc: #65a30d; } .forced { --rvc: #64748b; } .inacc { --rvc: #ca8a04; } .mistake { --rvc: #ea580c; } .blunder { --rvc: #dc2626; }
.rvc, .rv-b { background: var(--rvc, #64748b); }
.rv-tips { padding: 10px 12px; border-radius: 12px; background: var(--bilge-soft); font-size: 12.5px; }
.rv-tips ul { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.rv-detail { min-height: 40px; }
.rv-d { padding: 10px 12px; border-radius: 12px; border-left: 4px solid var(--rvc, #64748b); background: var(--surface-2); font-size: 13px; }
.rv-d p { margin: 6px 0; }
.rv-d-top { display: flex; align-items: center; gap: 8px; }
.rv-better { color: #15803d; font-weight: 600; }
:root[data-theme="dark"] .rv-better { color: #86efac; }
.rv-list { display: flex; flex-direction: column; gap: 3px; max-height: 260px; overflow: auto; }
.rv-mv { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 9px; border: 0; background: none; color: var(--text); font: 500 13px var(--font); text-align: left; cursor: pointer; }
.rv-mv:hover { background: var(--surface-2); }
.rv-mv.on { background: var(--bilge-soft); }
.rv-n { width: 30px; color: var(--muted); font-size: 11.5px; }
.rv-mv b { min-width: 52px; }
.rv-t { margin-left: auto; font-size: 11.5px; color: var(--muted); }
@media (max-width: 600px) { .rv-sides { grid-template-columns: 1fr; } }

/* ---------- konu anlatımı: okuma deneyimi ---------- */
.ls-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.ls-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--bilge-2), var(--bilge-3)); transition: width .1s linear; }
.ls-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.ls-layout.focus { grid-template-columns: minmax(0, 860px); justify-content: center; }
.ls-layout.focus .ls-aside { display: none; }
.ls-aside { position: sticky; top: 70px; }
.ls-read { font-size: var(--ls-fs, 17px); }
.ls-read .ls-body, .ls-read .ls-body p, .ls-read .ls-body li { font-size: var(--ls-fs, 17px); line-height: 1.75; }
.ls-body .md p { margin: 0 0 10px; }
.ls-body .md ul { margin: 0 0 10px; padding-left: 22px; }
.ls-title { font-size: 30px; margin: 12px 0 6px; letter-spacing: -.01em; }
.ls-sum { color: var(--muted); font-size: 16px; margin: 0; }
.ls-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ls-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ls-tg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ls-tg button, .ls-btn { padding: 5px 10px; border: 0; background: none; color: var(--text-2); font: 700 12.5px var(--font); cursor: pointer; }
.ls-tg button + button { border-left: 1px solid var(--border); }
.ls-btn { border: 1px solid var(--border); border-radius: 10px; }
.ls-tg button:hover, .ls-btn:hover { background: var(--surface-2); }
.ls-btn.on { background: var(--bilge-soft); color: var(--bilge-ink); border-color: transparent; }
.ls-sec { scroll-margin-top: 80px; transition: background .2s ease; }
.ls-sec.got h2 span { background: #22c55e; color: #fff; }
.ls-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ls-acts button { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 12.5px var(--font); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.ls-acts button:hover { border-color: var(--bilge-2); color: var(--bilge-2); }
.ls-acts button.on { background: #dcfce7; border-color: #86efac; color: #15803d; }
:root[data-theme="dark"] .ls-acts button.on { background: rgba(34, 197, 94, .15); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.ls-acts button[data-ls=speak].on { background: var(--bilge-soft); color: var(--bilge-ink); }
.ls-keys { scroll-margin-top: 80px; }
.ls-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.ls-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 14px/1.5 var(--font); text-align: left; cursor: default; }
.ls-card span { flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--bilge-soft); color: var(--bilge-ink); font-weight: 800; font-size: 12px; }
.ls-card em { font-style: normal; transition: filter .2s ease; }
.ls-cards.hide .ls-card { cursor: pointer; }
.ls-cards.hide .ls-card:not(.open) em { filter: blur(6px); user-select: none; }
.ls-try { margin-top: 10px; min-height: 60px; }
.ls-sol { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border-left: 4px solid #22c55e; }
.ls-toc a { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; font-size: 13px; color: var(--text-2); text-decoration: none; }
.ls-toc a:hover { background: var(--surface-2); }
.ls-toc a span { flex-shrink: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); font-size: 11px; font-weight: 800; }
.ls-toc a.got span { background: #22c55e; color: #fff; }
.ls-toc-prog { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.ls-toc-prog b { color: var(--text); font-size: 15px; }
@media (max-width: 1000px) { .ls-layout { grid-template-columns: 1fr; } .ls-aside { position: static; } .ls-title { font-size: 25px; } }

/* ---------- bildirimler: türe göre renk (--nt) ---------- */
#notifDrop { width: 380px; padding: 10px 8px 8px; }
#notifDrop h4 { gap: 8px; }
.nt-count { margin-right: auto; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; }
.nt-drop-list { max-height: min(60vh, 460px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.nt { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 10px 10px 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; background: var(--surface); border: 1px solid transparent; transition: background .15s ease, transform .15s ease, opacity .2s ease; animation: ntIn .3s ease both; }
.nt:hover { background: color-mix(in srgb, var(--nt) 7%, var(--surface)); }
.nt.unread { background: color-mix(in srgb, var(--nt) 9%, var(--surface)); border-color: color-mix(in srgb, var(--nt) 22%, transparent); }
.nt.unread::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--nt); }
.nt.out { opacity: 0; transform: translateX(20px); }
.nt-ic { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 18px; color: var(--nt); background: color-mix(in srgb, var(--nt) 15%, transparent); }
.nt-ic svg { width: 19px; height: 19px; }
.nt.compact .nt-ic { width: 34px; height: 34px; border-radius: 11px; }
.nt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-text { font-size: 13.5px; line-height: 1.4; }
.nt.unread .nt-text { font-weight: 600; }
.nt-meta { font-size: 11.5px; color: var(--muted); }
.nt-meta b { color: var(--nt); font-weight: 700; }
.nt-dot { flex-shrink: 0; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--nt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nt) 20%, transparent); }
.nt-acts { display: flex; gap: 4px; opacity: 0; transition: opacity .15s ease; }
.nt:hover .nt-acts, .nt:focus-within .nt-acts { opacity: 1; }
.nt-acts button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12px; cursor: pointer; }
.nt-acts button:hover { color: var(--nt); border-color: var(--nt); }
@media (hover: none) { .nt-acts { opacity: 1; } }
.nt-all { display: block; margin-top: 6px; padding: 10px; border-radius: 12px; text-align: center; font: 700 13px var(--font); color: var(--accent); text-decoration: none; background: var(--surface-2); }
.nt-all:hover { background: var(--surface-3); }
.nt-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.nt-stat { --nt: var(--text); padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.nt-stat b { display: block; font: 800 24px var(--font); color: var(--nt); }
.nt-stat span { font-size: 12.5px; color: var(--muted); }
.nt-stat.hot { --nt: var(--accent); }
.nt-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.nt-filters button { --nt: var(--text-2); padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 13px var(--font); cursor: pointer; }
.nt-filters button span { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--surface-2); font-size: 11px; }
.nt-filters button.on { background: var(--nt); border-color: var(--nt); color: #fff; }
.nt-filters button.on span { background: rgba(255,255,255,.25); }
#ntList { display: flex; flex-direction: column; gap: 6px; max-width: 820px; }
#ntList .nt { border-color: var(--border); }
#ntList .nt.unread { border-color: color-mix(in srgb, var(--nt) 30%, transparent); }
.nt-grp { margin: 10px 4px 2px; font: 800 12px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
@keyframes ntIn { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) { #notifDrop, #streakDrop { width: auto; } }

/* ---------- günlük seri: canlı alev ---------- */
#streakDrop { width: 320px; padding: 0; overflow: hidden; }
.sk { --f1: #ff9f1c; --f2: #ff4d2e; --f3: #ffd166; position: relative; padding: 22px 18px 18px; text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--f2) 18%, transparent), transparent 70%); }
.sk.cold { --f1: #94a3b8; --f2: #64748b; --f3: #cbd5e1; }
.sk.blue { --f1: #38bdf8; --f2: #2563eb; --f3: #bae6fd; }
.sk.legend { --f1: #c084fc; --f2: #7c3aed; --f3: #f0abfc; }
.sk-flame { display: block; width: 64px; height: 80px; margin: 0 auto 6px; overflow: visible; filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--f2) 50%, transparent)); }
.sk-flame path, .sk-flame ellipse { transform-box: fill-box; transform-origin: 50% 100%; }
.sk-flame .fo { animation: skF 1.1s ease-in-out infinite alternate; }
.sk-flame .fi { animation: skF .8s ease-in-out infinite alternate-reverse; }
.sk-flame .fc { animation: skF .6s ease-in-out infinite alternate; }
.sk.cold .sk-flame { opacity: .5; filter: grayscale(.5); }
.sk.cold .sk-flame * { animation-duration: 3s; }
.sk-sparks { position: absolute; left: 50%; top: 70px; z-index: -1; }
.sk-sparks i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--f3); box-shadow: 0 0 6px var(--f1); opacity: 0; animation: skSpark 1.8s ease-out infinite; animation-delay: var(--d); }
.sk.cold .sk-sparks { display: none; }
.sk-num { position: relative; font: 900 48px/1 var(--font); letter-spacing: -.03em; background: linear-gradient(180deg, var(--f1), var(--f2)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: skPop .5s cubic-bezier(.2, 1.6, .4, 1) both .1s; }
.sk-label { font: 800 14px var(--font); margin-top: 2px; }
.sk-msg { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.sk-goal { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-align: left; }
.sk-goal-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.sk-goal-top b { color: var(--text); }
.sk-bar { height: 9px; margin: 7px 0 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sk-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--f1), var(--f2)); animation: skBar 1s ease-out .25s forwards; }
.sk-goal small { font-size: 11.5px; color: var(--muted); }
.sk-week { display: flex; justify-content: center; gap: 5px; margin-top: 12px; }
.sk-week span { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 34px; padding: 5px 0 6px; border-radius: 11px; background: var(--surface-2); font: 700 10.5px var(--font); color: var(--muted); animation: skDay .35s cubic-bezier(.2, 1.4, .4, 1) both; }
/* gün kutusundaki küçük alev (emoji yerine CSS damla) */
.sk-mini { display: block; width: 10px; height: 13px; margin: 1px 0 2px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: transparent; }
.sk-week span.on .sk-mini { background: linear-gradient(180deg, #fff, rgba(255,255,255,.55)); clip-path: polygon(50% 0, 85% 45%, 100% 75%, 80% 100%, 20% 100%, 0 75%, 15% 45%); animation: skF .9s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.sk-week span.today:not(.on) .sk-mini { width: 6px; height: 6px; margin: 4px 0 5px; border-radius: 50%; background: var(--f1); }
.sk-week span.on { background: linear-gradient(180deg, var(--f1), var(--f2)); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--f2) 40%, transparent); }
.sk-week span.today:not(.on) { box-shadow: inset 0 0 0 2px var(--f1); color: var(--text); }
.sk-freeze { margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: #e0f2fe; color: #075985; font-size: 12px; }
:root[data-theme="dark"] .sk-freeze { background: rgba(14, 165, 233, .15); color: #bae6fd; }
@keyframes skF { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(.94, 1.06) rotate(2deg); } }
@keyframes skLick { 0%, 100% { transform: translate(0, 0) scale(.6); opacity: 0; } 40% { opacity: .8; } 70% { transform: translate(-4px, -22px) scale(.3); opacity: 0; } }
@keyframes skSpark { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), -70px); } }
@keyframes skPop { from { transform: scale(.4); opacity: 0; } }
@keyframes skBar { to { width: var(--w); } }
@keyframes skDay { from { transform: scale(.5) translateY(6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sk *, .sk-week span { animation: none !important; } .sk-bar i { width: var(--w); } }

/* ---------- özel mesajlar: yazıyor, görüldü, son görülme ---------- */
.dm-pres { display: flex; align-items: center; gap: 5px; }
.dm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.dm-set { right: 0; left: auto; width: 300px; padding: 10px; }
.dm-set-h { font: 800 13px var(--font); padding: 2px 4px 8px; }
.dm-tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.dm-tg:hover { background: var(--surface-2); }
.dm-tg b { display: block; font-size: 13px; }
.dm-tg small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.dm-typing { display: flex; align-items: center; gap: 8px; padding: 4px 18px 6px; font-size: 12.5px; color: var(--muted); background: var(--surface-2); }
.dm-typing[hidden], .dm-emo[hidden] { display: none; }
.dm-emo { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 0; }
.dm-emo button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--surface-2); font-size: 19px; cursor: pointer; }
.dm-emo button:hover { background: var(--border); }
.dm-day { display: flex; justify-content: center; margin: 10px 0 4px; }
.dm-day span { padding: 3px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 11.5px; font-weight: 600; color: var(--muted); }
.msg.grp { margin-top: -3px; }
.msg .t { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.dm-tick { font-size: 11px; letter-spacing: -2px; opacity: .75; }
.dm-tick.read { color: #7dd3fc; opacity: 1; font-weight: 800; }
.dm-seen { align-self: flex-end; font-size: 11px; color: var(--muted); margin: -2px 4px 0; }

/* ---------- satranç oyun ekranı: ince başlık + ekrana sığan tahta + sekmeli yan panel ---------- */
.ch-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ch-head h1 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.ch-head-sub { font-size: 13px; color: var(--muted); }
.ch-head-sub:empty { display: none; }
@media (min-width: 901px) {
  /* üst çubuk + duyuru + başlık + iki oyuncu satırı düşülür: tahta ekranın içinde kalır */
  .view .ch-play:not(.lesson) .ch-board-col, .view .ch-play.lesson .ch-board-col { max-width: max(300px, calc(100vh - 300px)); }
  /* yan panel tahta sütunuyla aynı boyda; hamle listesi kalan boşluğu doldurur */
  .view .ch-play:not(.lesson) { align-items: stretch; }
  .view .ch-play:not(.lesson) .ch-side { position: static; max-height: calc(100vh - 190px); }
}
.ch-sum b { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
@media (min-width: 901px) {
  .ch-play:not(.lesson) .ch-side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: hidden; }
  .ch-play:not(.lesson) .ch-pane:not([hidden]) { flex: 1; min-height: 0; }
  .ch-play:not(.lesson) .ch-pane[data-pane=play] .ch-nav { flex: 1; min-height: 120px; }
  .ch-play:not(.lesson) .ch-pane[data-pane=play] .nv-list { flex: 1; max-height: none; }
  .ch-play:not(.lesson) .ch-pane[data-pane=review], .ch-play:not(.lesson) .ch-pane[data-pane=setup] { overflow-y: auto; }
}
.ch-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.ch-tabs button { flex: 1; padding: 7px 8px; border-radius: 9px; border: 0; background: none; color: var(--muted); font: 700 13px var(--font); cursor: pointer; transition: background .15s ease, color .15s ease; }
.ch-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.ch-tabs button[hidden] { display: none; }
.ch-pane { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ch-pane[hidden] { display: none; }
.ch-pane .ch-review { margin-top: 0; }
.ch-pane .rv-list { max-height: none; }
.ch-sum { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--border-2); background: none; color: var(--text-2); font: 600 13px var(--font); text-align: left; cursor: pointer; }
.ch-sum:hover { border-color: var(--accent); }
.ch-sum span { flex: 1; min-width: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ch-sum i { font-style: normal; color: var(--muted); }
.ch-sum em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.ch-seg4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.ch-seg4 button { padding: 8px 4px; font-size: 12.5px; }
.ch-seg-tc { display: grid; grid-template-columns: repeat(3, 1fr); }
.ch-seg-tc button { padding: 7px 4px; font-size: 12.5px; }
.ch-pane[data-pane=play] .ch-acts { flex-wrap: nowrap; }
.ch-pane[data-pane=play] .ch-acts .btn { flex: 1; justify-content: center; padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.ch-pane[data-pane=play] .ch-acts .btn[hidden] { display: none; }
.px-chess-host .ch-tabs { background: #1b1416; }
.px-chess-host .ch-tabs button.on { background: #3a2e32; color: #fff; }

/* ---------- satranç ana sayfa: bilgisayar, bulmaca, akademi girişleri ---------- */
.ch-modes { display: grid; grid-template-columns: minmax(0, 1fr) 150px 150px; gap: 12px; }
.ch-bot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: linear-gradient(120deg, color-mix(in srgb, #2563eb 10%, var(--surface)), var(--surface)); }
.ch-bot-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #2563eb; font-size: 24px; flex-shrink: 0; }
.ch-bot b { display: block; font-size: 16px; }
.ch-bot small { display: block; font-size: 12.5px; color: var(--muted); }
.ch-bot-lv { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-bot-lv button { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 66px; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 700 12.5px var(--font); cursor: pointer; transition: transform .12s ease, border-color .15s ease; }
.ch-bot-lv button span { font-size: 18px; }
.ch-bot-lv button small { font-size: 10.5px; font-weight: 600; }
.ch-bot-lv button:hover { transform: translateY(-2px); border-color: #2563eb; color: #2563eb; }
.ch-mini-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 14px; text-decoration: none; color: inherit; transition: transform .15s ease; }
.ch-mini-card:hover { transform: translateY(-2px); }
.ch-mini-card span { font-size: 24px; }
.ch-mini-card small { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .ch-modes { grid-template-columns: 1fr 1fr; } .ch-bot { grid-column: 1 / -1; } }

/* ---------- satranç: bulmaca antrenmanı ---------- */
.pz-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.pz-card .pz-ic { font-size: 28px; }
.pz-card small { display: block; font-size: 12px; color: var(--muted); }
.pz-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 6px 0 10px; }
.pz-meta b { font-size: 17px; }
.pz-stats { display: flex; gap: 14px; margin: 14px 0 8px; font-size: 13px; font-weight: 600; }
.pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.pz-grid button { height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 700 13px var(--font); cursor: pointer; }
.pz-grid button.done { background: #dcfce7; border-color: #86efac; color: #15803d; }
:root[data-theme="dark"] .pz-grid button.done { background: rgba(34, 197, 94, .15); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.pz-grid button.on { box-shadow: 0 0 0 2px #2563eb; }


/* ---------- renkli simgeler (site geneli): ince siyah çizgiler yerine kendi rengi, başlıklarda dolgulu kutucuk ---------- */
.gi-e > .gi { color: var(--ic, currentColor); stroke-width: 2.3; }
.btn-primary .gi-e > .gi, .btn-danger .gi-e > .gi, .on > .gi-e > .gi, .active > .gi-e > .gi, [aria-selected="true"] .gi-e > .gi, .nt-acts .gi-e > .gi { color: inherit; }
.card-title > .gi, .card-title > .gi-e:first-child > .gi, .card-title > a > .gi-e:first-child > .gi {
  width: 1.95em; height: 1.95em; padding: .42em; box-sizing: border-box; border-radius: 11px; stroke-width: 2.4;
  color: var(--ic, var(--accent)); background: color-mix(in srgb, var(--ic, var(--accent)) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ic, var(--accent)) 22%, transparent);
}
.card-title > .gi-e:first-child { margin-right: 2px; }
/* kendi çizdiğimiz doğru / yanlış / boş işaretleri */
.mk { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, .18)); }
.gi-mk { gap: 0; }
.gi-mk > .mk { width: 1.1em; height: 1.1em; }
.chip .gi-mk > .mk { width: 13px; height: 13px; }
.opt .letter .gi-mk > .mk { width: 1.25em; height: 1.25em; }
:root[data-theme="dark"] .mk-empty circle { fill: #1e293b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mk-empty circle { fill: #1e293b; } }

/* konu tabloları: zorlandığı / güçlü olduğu */
.tp-card { overflow: hidden; position: relative; }
.tp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--tp1), var(--tp2)); }
.tp-card.weak { --tp1: #f97316; --tp2: #ef4444; --tps: rgba(239, 68, 68, .1); --tpi: #dc2626; }
.tp-card.strong { --tp1: #22c55e; --tp2: #0d9488; --tps: rgba(34, 197, 94, .12); --tpi: #16a34a; }
.tp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tp-head b { display: block; font-size: 16px; color: var(--tpi); }
.tp-head small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.tp-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--tp1), var(--tp2)); box-shadow: 0 6px 16px -6px var(--tp2), inset 0 1px 0 rgba(255, 255, 255, .35); }
.tp-ic .gi { width: 22px; height: 22px; stroke-width: 2.4; color: #fff; }
.tp-tbl th { vertical-align: middle; }
.tp-tbl th.c, .tp-tbl td.c { text-align: center; width: 46px; padding-left: 4px; padding-right: 4px; }
.tp-tbl th .mk { width: 22px; height: 22px; vertical-align: middle; }
.tp-tbl tbody tr { transition: background .15s; }
.tp-tbl tbody tr:hover { background: var(--tps); }
.tp-n { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 9px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.tp-n.sm { min-width: 24px; height: 22px; font-size: 12px; margin-left: 4px; }
.tp-n.ok { background: rgba(34, 197, 94, .14); color: #15803d; }
.tp-n.no { background: rgba(239, 68, 68, .12); color: #dc2626; }
.tp-n.em { background: rgba(100, 116, 139, .12); color: #64748b; }
.tp-acc { min-width: 92px; }
.tp-acc b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.tp-acc i { display: block; height: 7px; border-radius: 99px; background: var(--surface-2, rgba(100, 116, 139, .14)); overflow: hidden; }
.tp-acc s { display: block; height: 100%; border-radius: inherit; text-decoration: none; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.tp-acc.hi b { color: #15803d; } .tp-acc.hi s { background: linear-gradient(90deg, #4ade80, #16a34a); }
.tp-acc.mid b { color: #d97706; } .tp-acc.mid s { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.tp-acc.lo b { color: #dc2626; } .tp-acc.lo s { background: linear-gradient(90deg, #fb923c, #ef4444); }
.tp-empty { padding: 18px 8px; text-align: center; color: var(--muted); font-size: 13px; }
.nowrap { white-space: nowrap; }
:root[data-theme="dark"] .tp-n.ok, :root[data-theme="dark"] .tp-acc.hi b { color: #4ade80; } :root[data-theme="dark"] .tp-n.no, :root[data-theme="dark"] .tp-acc.lo b { color: #f87171; } :root[data-theme="dark"] .tp-n.em { color: #94a3b8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tp-n.ok, :root:not([data-theme="light"]) .tp-acc.hi b { color: #4ade80; } :root:not([data-theme="light"]) .tp-n.no, :root:not([data-theme="light"]) .tp-acc.lo b { color: #f87171; } }

/* ---------- Bilge: müdür okul düzeni planı (onay kartı) ---------- */
.bg-plan { margin-top: 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--bilge-2) 35%, transparent); background: var(--surface, #fff); overflow: hidden; box-shadow: 0 6px 18px -12px var(--bilge-2); }
.bg-plan-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bilge-soft); }
.bg-plan-h b { display: block; font-size: 14px; color: var(--bilge-ink, var(--bilge-2)); }
.bg-plan-h small { display: block; font-size: 12px; color: var(--muted); }
.bg-plan-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--bilge-1, #60a5fa), var(--bilge-2, #2563eb)); }
.bg-plan-ic .gi { width: 18px; height: 18px; color: #fff; }
.bg-plan ul { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.bg-plan li { font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.bg-plan li.more { background: none; color: var(--muted); font-size: 12px; }
.bg-plan-a { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.bg-plan-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; background: rgba(34, 197, 94, .1); }
.bg-plan-ok .mk { width: 20px; height: 20px; }
.bg-plan-ok span { flex: 1; }
.bg-plan-ok a { font-weight: 700; font-size: 12px; white-space: nowrap; }
.bg-plan-off { padding: 9px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.bg-plan.off { opacity: .6; }
.bg-plan.done { border-color: rgba(34, 197, 94, .45); }

/* ---------- Sınıflar: hızlı atama şeridi ---------- */
.qa-strip { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; gap: 12px; align-items: stretch; }
.qa-bilge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bilge-1, #3b82f6), var(--bilge-2, #1d4ed8)); box-shadow: 0 10px 26px -16px var(--bilge-2, #1d4ed8); flex-wrap: wrap; }
.qa-bilge > div { flex: 1; min-width: 160px; }
.qa-bilge b { display: block; font-size: 15px; }
.qa-bilge small { display: block; font-size: 12px; opacity: .88; line-height: 1.4; margin-top: 2px; }
.qa-av { width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.qa-av svg { width: 34px; height: 34px; }
.qa-go { background: #fff !important; color: var(--bilge-2, #1d4ed8) !important; border: 0 !important; font-weight: 700; }
.qa-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface, #fff); color: inherit; cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.qa-item:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(15, 23, 42, .4); border-color: color-mix(in srgb, var(--bilge-2, #2563eb) 40%, transparent); }
.qa-item[disabled] { cursor: default; }
.qa-item b { display: block; font-size: 13px; }
.qa-item small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.qa-n { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; background: rgba(37, 99, 235, .12); color: #2563eb; }
.qa-item.warn .qa-n { background: rgba(245, 158, 11, .16); color: #d97706; }
.qa-item.ok .qa-n { background: rgba(34, 197, 94, .14); color: #16a34a; }
@media (max-width: 900px) { .qa-strip { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .qa-items { grid-template-columns: 1fr; } }
.cl-home { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 600; }
.cl-home .select { height: 28px; width: auto; font-size: 12px; padding: 0 26px 0 8px; border-radius: 999px; }
.un-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2, rgba(100, 116, 139, .08)); position: sticky; top: 64px; z-index: 2; }
/* otomatik dağıtım önizlemesi */
.ap-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.ap-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; text-align: left; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.ap-row details { grid-column: 1 / -1; }
.ap-bar { height: 8px; border-radius: 99px; background: rgba(100, 116, 139, .15); overflow: hidden; }
.ap-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #2563eb); }
/* öğretmen görev tablosu */
.tm-load, .tm-tabs, .tm-list { text-align: left; } .tm-load { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 999px; font-size: 12px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.tm-chip b { min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; background: #2563eb; color: #fff; }
.tm-chip.idle b { background: #94a3b8; }
.tm-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; align-items: center; }
.tm-tabs button { white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface, #fff); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-tabs button.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.tm-add { width: auto !important; height: 34px; font-size: 13px; }
.tm-list { display: grid; gap: 6px; margin-top: 10px; max-height: 46vh; overflow: auto; padding-right: 2px; }
.tm-row { text-align: left; display: grid; grid-template-columns: 1fr minmax(180px, 1.3fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--border); }
.tm-row.empty { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .06); }
.tm-row.ch { border-color: #2563eb; background: rgba(37, 99, 235, .06); }
.tm-row em { font-style: normal; font-size: 11px; font-weight: 700; color: #2563eb; }
.tm-c b { display: block; font-size: 14px; }
.tm-c small { font-size: 11.5px; color: var(--muted); }
.tm-row .select { height: 36px; }
/* ---------- e-posta doğrulama ekranı (giriş / kayıt penceresi) ---------- */
.vf-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; margin: 2px 0 18px; }
.vf-ic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(239, 62, 58, .55); }
.vf-ic svg { width: 30px; height: 30px; }
.vf-ic i { position: absolute; top: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--surface); }
.vf-lead { margin: 0; max-width: 340px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.vf-lead b { color: var(--text); overflow-wrap: anywhere; }
.vf-code { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 18px; }
.vf-code input { width: 48px; height: 58px; padding: 0; border-radius: 14px; border: 2px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 800 26px/1 var(--font); text-align: center; caret-color: var(--accent); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .12s ease; }
.vf-code input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); background: var(--surface); }
.vf-code input.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--border-2)); background: var(--surface); }
.vf-dash { width: 10px; height: 3px; border-radius: 2px; background: var(--border-2); }
.vf-code.bad input { border-color: var(--red); animation: vf-shake .36s ease; }
@keyframes vf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .vf-code.bad input { animation: none; } }
@media (max-width: 420px) { .vf-code { gap: 5px; } .vf-code input { width: 40px; height: 50px; font-size: 22px; border-radius: 12px; } .vf-dash { width: 6px; } }
.vf-foot { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.vf-link { padding: 0; border: 0; background: none; color: var(--accent); font: 700 14px var(--font); cursor: pointer; }
.vf-link:disabled { color: var(--muted); cursor: default; }
.vf-link:not(:disabled):hover { text-decoration: underline; text-underline-offset: 3px; }
.vf-wait { color: var(--muted); font-variant-numeric: tabular-nums; }
.vf-tip { margin: 10px auto 0; max-width: 360px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.vf-ok { text-align: center; padding: 16px 0 6px; }
.vf-ok h3 { margin-top: 14px; }
.vf-ok-ic { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; background: var(--green-soft); color: var(--green); font: 900 32px/1 var(--font); }
.vf-ok-ic.bad { background: var(--red-soft); color: var(--red); }
.vf-spin { width: 46px; height: 46px; margin: 10px auto 0; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--accent); animation: vf-spin .8s linear infinite; }
@keyframes vf-spin { to { transform: rotate(360deg); } }
/* uygulama içi: e-posta doğrulanmadı uyarısı (hatırlat modu) */
.vf-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--amber) 40%, var(--border)); background: var(--amber-soft); color: var(--text); font-size: 14px; }
.vf-banner b { font-weight: 800; }
.vf-banner .grow { flex: 1; min-width: 200px; }
.vf-banner button { flex-shrink: 0; }

/* ---------- Bilge: müdür okul düzeni planı (onay kartı) ---------- */
.bg-plan { margin-top: 10px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--bilge-2) 35%, transparent); background: var(--surface, #fff); overflow: hidden; box-shadow: 0 6px 18px -12px var(--bilge-2); }
.bg-plan-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bilge-soft); }
.bg-plan-h b { display: block; font-size: 14px; color: var(--bilge-ink, var(--bilge-2)); }
.bg-plan-h small { display: block; font-size: 12px; color: var(--muted); }
.bg-plan-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, var(--bilge-1, #60a5fa), var(--bilge-2, #2563eb)); }
.bg-plan-ic .gi { width: 18px; height: 18px; color: #fff; }
.bg-plan ul { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.bg-plan li { font-size: 13px; padding: 5px 8px; border-radius: 8px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.bg-plan li.more { background: none; color: var(--muted); font-size: 12px; }
.bg-plan-a { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.bg-plan-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; background: rgba(34, 197, 94, .1); }
.bg-plan-ok .mk { width: 20px; height: 20px; }
.bg-plan-ok span { flex: 1; }
.bg-plan-ok a { font-weight: 700; font-size: 12px; white-space: nowrap; }
.bg-plan-off { padding: 9px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); }
.bg-plan.off { opacity: .6; }
.bg-plan.done { border-color: rgba(34, 197, 94, .45); }

/* ---------- Sınıflar: hızlı atama şeridi ---------- */
.qa-strip { display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; gap: 12px; align-items: stretch; }
.qa-bilge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bilge-1, #3b82f6), var(--bilge-2, #1d4ed8)); box-shadow: 0 10px 26px -16px var(--bilge-2, #1d4ed8); flex-wrap: wrap; }
.qa-bilge > div { flex: 1; min-width: 160px; }
.qa-bilge b { display: block; font-size: 15px; }
.qa-bilge small { display: block; font-size: 12px; opacity: .88; line-height: 1.4; margin-top: 2px; }
.qa-av { width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.qa-av svg { width: 34px; height: 34px; }
.qa-go { background: #fff !important; color: var(--bilge-2, #1d4ed8) !important; border: 0 !important; font-weight: 700; }
.qa-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qa-item { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface, #fff); color: inherit; cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.qa-item:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(15, 23, 42, .4); border-color: color-mix(in srgb, var(--bilge-2, #2563eb) 40%, transparent); }
.qa-item[disabled] { cursor: default; }
.qa-item b { display: block; font-size: 13px; }
.qa-item small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.qa-n { min-width: 42px; height: 42px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; background: rgba(37, 99, 235, .12); color: #2563eb; }
.qa-item.warn .qa-n { background: rgba(245, 158, 11, .16); color: #d97706; }
.qa-item.ok .qa-n { background: rgba(34, 197, 94, .14); color: #16a34a; }
@media (max-width: 900px) { .qa-strip { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .qa-items { grid-template-columns: 1fr; } }
.cl-home { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 600; }
.cl-home .select { height: 28px; width: auto; font-size: 12px; padding: 0 26px 0 8px; border-radius: 999px; }
.un-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2, rgba(100, 116, 139, .08)); position: sticky; top: 64px; z-index: 2; }
/* otomatik dağıtım önizlemesi */
.ap-list { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.ap-row { display: grid; grid-template-columns: minmax(130px, 200px) 1fr auto; text-align: left; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.ap-row details { grid-column: 1 / -1; }
.ap-bar { height: 8px; border-radius: 99px; background: rgba(100, 116, 139, .15); overflow: hidden; }
.ap-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #2563eb); }
/* öğretmen görev tablosu */
.tm-load, .tm-tabs, .tm-list { text-align: left; } .tm-load { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 999px; font-size: 12px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.tm-chip b { min-width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; background: #2563eb; color: #fff; }
.tm-chip.idle b { background: #94a3b8; }
.tm-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; align-items: center; }
.tm-tabs button { white-space: nowrap; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface, #fff); color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-tabs button.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.tm-add { width: auto !important; height: 34px; font-size: 13px; }
.tm-list { display: grid; gap: 6px; margin-top: 10px; max-height: 46vh; overflow: auto; padding-right: 2px; }
.tm-row { text-align: left; display: grid; grid-template-columns: 1fr minmax(180px, 1.3fr) auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--border); }
.tm-row.empty { border-color: rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .06); }
.tm-row.ch { border-color: #2563eb; background: rgba(37, 99, 235, .06); }
.tm-row em { font-style: normal; font-size: 11px; font-weight: 700; color: #2563eb; }
.tm-c b { display: block; font-size: 14px; }
.tm-c small { font-size: 11.5px; color: var(--muted); }
.tm-row .select { height: 36px; }
/* ---------- veli: rolün üst çubuğu (oyun öğeleri gizli) ---------- */
body.role-parent #coinChip, body.role-parent #streakBtn, body.role-parent .search { display: none !important; }
/* ---------- veli paneli ---------- */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.pc-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface, #fff); border: 1px solid var(--border); color: inherit; text-decoration: none; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.pc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #14b8a6, #0d9488 50%, #2563eb); }
.pc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(13, 148, 136, .55); border-color: rgba(13, 148, 136, .45); }
.pc-top { display: flex; gap: 14px; align-items: flex-start; }
.pc-name { display: block; font-size: 19px; line-height: 1.2; }
.pc-top small { color: var(--muted); font-size: 12.5px; }
.pc-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pc-week > div { text-align: center; padding: 9px 4px; border-radius: 12px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.pc-week b { display: block; font-size: 17px; font-weight: 800; }
.pc-week span { font-size: 11px; color: var(--muted); }
.pc-week .hi b { color: #16a34a; } .pc-week .mid b { color: #d97706; } .pc-week .lo b { color: #dc2626; }
.pc-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pc-more { font-weight: 700; font-size: 13px; color: #0d9488; }
.pr-empty { text-align: center; padding: 34px 22px; }
.pr-empty-ic { font-size: 54px; }
.pr-empty h2 { margin: 6px 0 4px; }
.pr-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; text-align: left; }
.pr-ways > div { padding: 14px; border-radius: 14px; border: 1px dashed rgba(13, 148, 136, .5); background: rgba(13, 148, 136, .06); }
@media (max-width: 640px) { .pr-ways { grid-template-columns: 1fr; } .pc-grid { grid-template-columns: 1fr; } .pc-week { grid-template-columns: repeat(3, 1fr); } }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.pr-row:last-child { border-bottom: 0; }
.pr-row b { display: block; font-size: 14px; }
.pr-row small { display: block; font-size: 12px; color: var(--muted); }
.pr-row.hover { border-radius: 12px; padding: 10px; }
.pr-row.hover:hover { background: var(--surface-2, rgba(100, 116, 139, .08)); }
.pr-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(13, 148, 136, .12); font-size: 18px; }
.pr-wait { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .06); }
.pr-tips ul, .pr-info ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; }
.pr-code-in { text-transform: uppercase; font-weight: 800; letter-spacing: .25em; font-size: 18px; text-align: center; }
/* çocuk sayfası */
.pr-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #0f766e, #0d9488 45%, #2563eb); box-shadow: 0 18px 40px -26px #0d9488; }
.pr-hero h1 { margin: 2px 0; font-size: 28px; color: #fff; }
.pr-hero p { margin: 0; opacity: .9; }
.pr-hero .chip { background: rgba(255, 255, 255, .18); color: #fff; }
.pr-kick { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.pr-kick.red { color: #dc2626; opacity: 1; }
.pr-hero-acts { display: flex; flex-direction: column; gap: 8px; }
.pr-hero-acts .btn:not(.bilge-btn) { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (max-width: 760px) { .pr-hero-acts { flex-direction: row; flex-wrap: wrap; width: 100%; } }
.pr-h { font-size: 20px; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-h small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pr-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1100px) { .pr-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .pr-kpis { grid-template-columns: repeat(2, 1fr); } }
.pr-kpi { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface, #fff); border: 1px solid var(--border); }
.pr-kpi b { display: block; font-size: 20px; font-weight: 800; }
.pr-kpi span { font-size: 12px; color: var(--muted); }
.pr-d { font-style: normal; font-size: 11px; font-weight: 800; margin-left: 6px; vertical-align: 3px; }
.pr-d.up { color: #16a34a; } .pr-d.down { color: #dc2626; }
.pr-ins { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 12px; }
.pr-in { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; border: 1px solid var(--border); }
.pr-in p { margin: 0; }
.pr-in.good { background: rgba(34, 197, 94, .08); border-color: rgba(34, 197, 94, .3); }
.pr-in.warn { background: rgba(245, 158, 11, .09); border-color: rgba(245, 158, 11, .35); }
.pr-in.info { background: rgba(37, 99, 235, .07); border-color: rgba(37, 99, 235, .25); }
.pr-chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 170px; }
.pr-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.pr-bars { flex: 1; width: 100%; display: flex; gap: 3px; align-items: flex-end; justify-content: center; }
.pr-bars i { width: 42%; max-width: 14px; border-radius: 6px 6px 3px 3px; transition: height .6s; }
.pr-bars .q { background: linear-gradient(180deg, #60a5fa, #2563eb); }
.pr-bars .m { background: linear-gradient(180deg, #fdba74, #f97316); }
.pr-col span { font-size: 11px; font-weight: 700; margin-top: 4px; }
.pr-col small { font-size: 10px; color: var(--muted); }
.pr-fb { display: block; font-style: normal; font-size: 12px; margin-top: 3px; padding: 4px 8px; border-radius: 8px; background: rgba(37, 99, 235, .08); }
.pr-date { width: 44px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; align-content: center; background: rgba(239, 68, 68, .1); color: #dc2626; line-height: 1; }
.pr-date b { font-size: 17px; } .pr-date small { font-size: 10px; text-transform: uppercase; }
.pr-subj { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.pr-subj .nm { width: 150px; font-size: 13px; }
.pr-subj small { width: 52px; font-size: 11px; color: var(--muted); text-align: right; }
.pr-subj .tp-acc b { display: none; }
.pr-mini { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-mini span { font-size: 12.5px; padding: 6px 10px; border-radius: 10px; background: var(--surface-2, rgba(100, 116, 139, .08)); }
.pr-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pr-topic { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pr-topic small { display: block; font-size: 11px; color: var(--muted); }
.pr-topic b.lo { color: #dc2626; } .pr-topic b.hi { color: #16a34a; }
@media (max-width: 560px) { .pr-topics { grid-template-columns: 1fr; } }
.pr-class .pr-cname { font-size: 18px; }
.pr-sub { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.pr-mates { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-mates span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2, rgba(100, 116, 139, .08)); border: 1px solid var(--border); }
.pr-card .pr-row b { font-size: 14px; }
/* öğrenci: velilerim */
.pr-alert { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .05); }
.pr-req { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; }
.pr-req b { display: block; } .pr-req small { color: var(--muted); font-size: 12px; }
.pr-code { font-family: Consolas, 'Courier New', monospace; font-weight: 800; font-size: 34px; letter-spacing: .25em; text-align: center; padding: 14px; margin-top: 8px; border-radius: 16px; border: 2px dashed #0d9488; color: #0d9488; background: rgba(13, 148, 136, .07); }
.pr-modal { text-align: center; }
.pr-modal-ic { font-size: 46px; display: block; }
.pr-modal h3 { margin: 4px 0 8px; }
.pr-modal-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Bilge site turu ---------- */
.tr-root { position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: 0; transition: opacity .25s; }
.tr-root.on { opacity: 1; }
.tr-block { position: absolute; inset: 0; pointer-events: auto; }
.tr-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 200vmax rgba(7, 12, 28, .66); transition: left .5s cubic-bezier(.2, .8, .2, 1), top .5s cubic-bezier(.2, .8, .2, 1), width .5s cubic-bezier(.2, .8, .2, 1), height .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tr-root.moving .tr-hole { transition-duration: .01s; }
.tr-ring { position: fixed; border-radius: 16px; border: 3px solid #60a5fa; box-shadow: 0 0 0 6px rgba(96, 165, 250, .25), 0 0 34px rgba(96, 165, 250, .55); transition: all .5s cubic-bezier(.2, .8, .2, 1); pointer-events: none; animation: trRing 1.8s ease-in-out infinite; }
@keyframes trRing { 50% { box-shadow: 0 0 0 11px rgba(96, 165, 250, .12), 0 0 46px rgba(96, 165, 250, .7); } }
.tr-card { position: fixed; pointer-events: auto; background: var(--surface, #fff); color: var(--text, #111); border-radius: 20px; padding: 16px 16px 14px; box-shadow: 0 26px 60px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(37, 99, 235, .25); transition: left .45s cubic-bezier(.2, .8, .2, 1), top .45s cubic-bezier(.2, .8, .2, 1); animation: trPop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes trPop { from { transform: scale(.92); opacity: 0; } }
.tr-head { display: flex; gap: 10px; align-items: center; }
.tr-av { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, var(--bilge-1, #60a5fa), var(--bilge-2, #2563eb)); animation: trBob 2.4s ease-in-out infinite; }
.tr-av svg { width: 36px; height: 36px; }
@keyframes trBob { 50% { transform: translateY(-3px) rotate(-3deg); } }
.tr-count { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #2563eb; text-transform: uppercase; }
.tr-title { display: block; font-size: 16.5px; line-height: 1.25; }
.tr-x { border: 0; background: var(--surface-2, rgba(100, 116, 139, .1)); color: inherit; width: 30px; height: 30px; border-radius: 10px; cursor: pointer; flex: none; }
.tr-text { margin: 10px 0 12px; font-size: 14px; line-height: 1.6; }
.tr-prog { height: 5px; border-radius: 99px; background: rgba(37, 99, 235, .12); overflow: hidden; margin-bottom: 12px; }
.tr-prog i { display: block; height: 100%; background: linear-gradient(90deg, #60a5fa, #2563eb); border-radius: inherit; transition: width .4s; }
.tr-acts { display: flex; gap: 6px; align-items: center; }
.tr-acts .btn[disabled] { opacity: .35; }
.tr-focus { animation: trZoom .9s cubic-bezier(.2, .8, .2, 1); position: relative; z-index: 1; }
@keyframes trZoom { 0% { transform: scale(.97); } 45% { transform: scale(1.035); } 100% { transform: scale(1); } }
.tr-navpulse { animation: trNav 1.2s ease-in-out 3; border-radius: 12px; box-shadow: 0 0 0 2px #60a5fa inset; }
@keyframes trNav { 50% { background: rgba(96, 165, 250, .25); } }
/* ilk giriş teklifi */
.tr-offer { position: fixed; inset: 0; z-index: 9001; display: grid; place-items: center; padding: 16px; background: rgba(7, 12, 28, .55); opacity: 0; transition: opacity .25s; }
.tr-offer.on { opacity: 1; }
.tr-offer-card { width: min(440px, 100%); text-align: center; padding: 26px 22px 18px; border-radius: 26px; background: var(--surface, #fff); color: var(--text, #111); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); position: relative; overflow: hidden; animation: trPop .4s cubic-bezier(.2, .9, .3, 1.2); }
.tr-offer-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 110px; background: radial-gradient(circle at 50% 0, rgba(96, 165, 250, .45), transparent 70%); pointer-events: none; }
.tr-offer-av { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; background: linear-gradient(135deg, var(--bilge-1, #60a5fa), var(--bilge-2, #2563eb)); box-shadow: 0 14px 30px -12px #2563eb; animation: trBob 2.4s ease-in-out infinite; position: relative; }
.tr-offer-av svg { width: 72px; height: 72px; }
.tr-kick { display: block; margin-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #2563eb; }
.tr-offer-card h3 { margin: 4px 0 6px; font-size: 21px; }
.tr-offer-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.55; }
.tr-offer-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.tr-offer-card small { display: block; margin-top: 12px; font-size: 11.5px; color: var(--muted); }

/* ---------- yönetim: E-posta · Doğrulama ---------- */
.ml-guide > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.ml-guide > summary::-webkit-details-marker { display: none; }
.ml-guide > summary::after { content: '▾'; color: var(--muted); transition: transform .2s ease; }
.ml-guide[open] > summary::after { transform: rotate(180deg); }
.ml-sum-r { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.ml-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.ml-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.ml-step code, .ml-trouble code { padding: 1px 6px; border-radius: 6px; background: var(--surface-3); font-size: 12.5px; }
.ml-n { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.ml-trouble { margin-top: 14px; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--border-2); font-size: 13.5px; }
.ml-trouble ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }
.ml-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-presets .chip { cursor: pointer; border: 1px solid var(--border); }
.ml-modes { display: grid; gap: 8px; }
.ml-mode { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; border: 1.5px solid var(--border); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ml-mode input { margin-top: 3px; accent-color: var(--accent); }
.ml-mode span { display: flex; flex-direction: column; gap: 2px; }
.ml-mode small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.ml-mode.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.ml-prev { margin-top: 12px; padding: 14px; border-radius: 16px; background: #f6f1ea; display: flex; justify-content: center; overflow: hidden; }
.ml-prev iframe { display: block; width: 100%; max-width: 100%; height: 880px; border: 0; border-radius: 10px; background: #f6f1ea; transition: width .25s ease; }
.ml-log { max-height: 220px; overflow: auto; margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; }

/* ---------- v8: meslek adımları, davet sayfası, çiftlik mevsim kartı ---------- */
.job-steps { margin: 4px 0 0 16px; padding: 0; line-height: 1.55; }
.ref-code { font-family: var(--pixel, monospace); letter-spacing: .12em; color: var(--accent); }
.ref-promo { display: block; text-decoration: none; color: inherit; border-left: 4px solid var(--accent); }
.farm-season { border-left: 5px solid var(--sc); }
.side-mini .side-help a { justify-content: center; padding: 0; }
