/* ============ PANEL (giriş sonrası) ============ */
.app { --sb-w: 240px; background: var(--bg-alt); }
.sb-collapsed .app, html.sb-collapsed body.app { --sb-w: 84px; }

/* ---- Sol menü ---- */
.sidebar {
  position: fixed; inset: 12px auto 12px 12px; width: var(--sb-w); z-index: 40;
  background: #0b1f4d; color: #c8d3ea; border-radius: 22px; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 18px; transition: width .2s; overflow: hidden;
}
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.sb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-size: 1.2rem; white-space: nowrap; }
.sb-logo .logo-text strong { color: #93c5fd; }
.sb-collapse { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; border: 1px solid #1f3a78; background: transparent; color: #c8d3ea; display: grid; place-items: center; }
.sb-collapse svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .2s; }
.sb-nav, .sb-bottom { display: grid; gap: 2px; align-content: start; }
.sb-nav { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
.sb-bottom { border-top: 1px solid #1a3268; padding-top: 10px; }

/* Grup başlıkları */
.sb-group { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a88a3; padding: 16px 12px 6px; white-space: nowrap; }

/* Menü öğeleri */
.sb-nav a, .sb-bottom a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: #b4b2c8; white-space: nowrap; transition: background .15s, color .15s;
}
.sb-ic { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.sb-nav a:hover, .sb-bottom a:hover { background: #16306b; color: #fff; }
.sb-nav a:hover .sb-ic, .sb-bottom a:hover .sb-ic { opacity: 1; }

/* Aktif sayfa: sol çubuk + kalın yazı + hafif zemin */
:is(.sb-nav, .sb-bottom) a.active { background: linear-gradient(90deg, rgba(96, 165, 250,.24), rgba(96, 165, 250,.05)); color: #fff; font-weight: 800; }
:is(.sb-nav, .sb-bottom) a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: #93c5fd; }
:is(.sb-nav, .sb-bottom) a.active .sb-ic { stroke: #93c5fd; opacity: 1; }

/* Durum rozetleri */
.sb-badge { margin-left: auto; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #1a3268; color: #dbe4f5; display: inline-flex; align-items: center; gap: 5px; }
.sb-badge.b-count { background: #3b82f6; color: #fff; }
.sb-badge.b-live { background: rgba(255,92,115,.16); color: #ff8a9b; }
.sb-badge.b-admin, .m-grid .sb-badge.b-admin { background: #f5c542; color: #1c1b29; }
.sb-badge.b-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5c73; animation: pulse 1.6s infinite; }
.sb-dot { display: none; }
.sb-version { color: #aab3c8; padding: 6px 12px 0; }

/* Daraltılmış menü */
.sb-collapsed .sb-label, .sb-collapsed .sb-badge { display: none; }
.sb-collapsed .sb-group { font-size: 0; padding: 8px 0; }
.sb-collapsed .sb-group::after { content: ""; display: block; height: 1px; background: #1f3a78; margin: 0 14px; }
.sb-collapsed .sb-dot { display: block; position: absolute; top: 7px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; border: 2px solid #0b1f4d; }
.sb-collapsed .sb-dot.live { background: #ff5c73; }
.sb-collapsed .sb-ic { width: 22px; height: 22px; }
.sb-collapsed .sb-top { flex-direction: column; }
.sb-collapsed .sb-collapse svg { transform: rotate(180deg); }
.sb-collapsed .sb-nav a, .sb-collapsed .sb-bottom a { justify-content: center; padding: 12px; }
.sb-collapsed .sb-nav a:hover::after, .sb-collapsed .sb-nav a:focus-visible::after {
  content: attr(data-label); position: fixed; left: calc(var(--sb-w) + 20px); background: #0b1f4d; color: #fff;
  padding: 6px 10px; border-radius: 8px; font-size: .85rem; pointer-events: none;
}

/* ---- Ana alan ---- */
.app-body { margin-left: calc(var(--sb-w) + 24px); padding: 12px 20px 32px 4px; transition: margin .2s; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.profile-wrap, .notif-wrap { position: relative; }
.profile-pill {
  display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); text-align: left;
}
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.pp-text { display: grid; line-height: 1.25; }
.pp-text small { color: var(--muted); font-size: .8rem; }
.pp-caret { color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.top-search {
  display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 10px 8px 14px; width: 300px;
}
.top-search:focus-within { border-color: var(--primary); }
.top-search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }
.top-search input { border: 0; background: transparent; font: inherit; color: var(--text); flex: 1; min-width: 0; outline: none; }
kbd { font: inherit; font-size: .72rem; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.notif-btn { position: relative; }
.notif-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.notif-btn .dot[hidden] { display: none; }

.menu {
  position: absolute; top: calc(100% + 8px); z-index: 30; min-width: 240px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 8px;
}
.menu[hidden] { display: none; }
#profileMenu { left: 0; }
.menu a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.menu a:hover, .menu a:focus-visible { background: var(--bg-alt); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.notif-menu { right: 0; width: 340px; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 10px; }
.menu-head .link-btn { font-size: .8rem; background: none; border: 0; color: var(--primary); font-weight: 700; }
.notif-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.notif-menu li { display: flex; gap: 10px; padding: 10px; border-radius: 10px; font-size: .9rem; }
.notif-menu li.unread { background: var(--primary-soft); }
.notif-menu li small { display: block; color: var(--muted); font-size: .78rem; }

/* ---- Dashboard ---- */
.dash { display: grid; gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.1; }
.stat small { color: var(--muted); }
.st-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; }
.si-1 { background: var(--accent-soft); } .si-2 { background: var(--primary-soft); } .si-3 { background: var(--amber-soft); }
.ring { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; stroke: var(--bg-alt); }
.ring circle + circle { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .4s; }

/* Hero */
.hero-card {
  display: grid; grid-template-columns: 1.2fr .6fr 1fr; gap: 24px; align-items: center; color: #fff;
  border-radius: 26px; padding: 28px 32px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 60% 120%, rgba(59, 130, 246,.7), transparent 50%),
    linear-gradient(120deg, #0b1f4d, #1e3a8a 50%, #1d4ed8);
}
.chip-link { display: inline-block; color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; background: rgba(255,255,255,.14); padding: 4px 12px; border-radius: 99px; }
.chip-link:hover { background: rgba(255,255,255,.24); }
.hero-card h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 500; margin: 12px 0 18px; }
.hero-card h1 b { font-weight: 800; }
.week { display: flex; align-items: center; gap: 8px; }
.days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; flex: 1; }
.days button {
  width: 100%; aspect-ratio: 1; max-width: 54px; border-radius: 50%; border: 2px solid transparent;
  background: rgba(255,255,255,.12); color: #fff; display: grid; place-content: center; line-height: 1.1; padding: 0;
}
.days button small { font-size: .62rem; opacity: .75; font-weight: 600; }
.days button b { font-size: 1rem; }
.days button:hover { background: rgba(255,255,255,.24); }
.days button[aria-pressed="true"] { background: #fff; color: #0b1f4d; }
.days button.today { border-color: #bfdbfe; }
.days button.has-task::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); justify-self: center; margin-top: 2px; }
.wk-nav { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: inherit; font-size: 1.2rem; font-weight: 700; display: grid; place-items: center; }
.wk-nav:hover { background: rgba(255,255,255,.3); }
.hc-art { position: relative; height: 180px; display: grid; place-items: center; }
.art-main { font-size: 6rem; filter: drop-shadow(0 12px 20px rgba(0,0,0,.25)); }
.art-bubble { position: absolute; top: 10%; left: 8%; background: rgba(255,255,255,.18); border-radius: 14px; padding: 8px 10px; font-size: 1.4rem; animation: float 5s ease-in-out infinite; }
.art-bubble.b2 { top: auto; bottom: 12%; left: auto; right: 6%; animation-delay: -2s; }
.hc-progress { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 20px 22px; }
.hc-progress h2 { font-size: 1.1rem; }
.hc-progress p { font-size: .95rem; opacity: .92; }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #bfdbfe, var(--accent)); }
.bar-legend { display: flex; justify-content: space-between; margin: 6px 0 14px; opacity: .85; }
.btn-light { background: #fff; color: #0b1f4d; }

/* Grid */
.grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 18px; align-items: start; }
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.pill-light { background: rgba(255,255,255,.2); color: #fff; }
.empty { color: var(--muted); text-align: center; padding: 12px; margin: 0; }

/* Görevler */
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg-alt); }
.task input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; cursor: pointer; }
.task label { cursor: pointer; flex: 1; }
.task b { display: block; font-size: .95rem; }
.task small { color: var(--muted); }
.task.done b { text-decoration: line-through; color: var(--muted); }
.task .t-go { font-size: .8rem; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; align-self: center; }

/* Hızlı erişim */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick a {
  position: relative; display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 18px; text-decoration: none; font-weight: 700; font-size: 1.05rem; transition: transform .15s, border-color .15s;
}
.quick a:hover { transform: translateY(-2px); border-color: var(--primary); }
.quick em { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .75rem; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 99px; }
.q-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; }
.qi-1 { background: var(--primary-soft); } .qi-2 { background: var(--accent-soft); } .qi-3 { background: var(--green-soft); } .qi-4 { background: var(--amber-soft); }

/* Koyu kart: devam et */
.card.dark { background: #0b1f4d; border-color: #0b1f4d; color: #eeedf5; }
.scroller-nav { display: flex; gap: 6px; }
.scroller-nav .wk-nav { background: #1a3268; color: #fff; }
.course-row { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.course { scroll-snap-align: start; border-radius: 18px; padding: 16px; display: grid; gap: 6px; }
.course h3 { font-size: 1.05rem; margin: 6px 0 0; }
.course small { opacity: .75; }
.c-mat { background: #0d1d3a; } .c-tar { background: #3a2420; } .c-fen { background: #183328; } .c-tr { background: #382a14; }
.c-top { display: flex; justify-content: space-between; align-items: center; }
.c-emoji { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; }
.badge-soft { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.14); justify-self: start; }
.c-bar { height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 6px; }
.c-bar span { display: block; height: 100%; background: #93c5fd; }
.c-link { color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; margin-top: 4px; }
.c-link:hover { text-decoration: underline; }

/* AI kartı */
.card.ai { background: linear-gradient(135deg, var(--accent), #f59e0b); border: 0; color: #fff; }
.ai-chat { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; margin-bottom: 12px; }
.msg { padding: 10px 14px; border-radius: 16px; font-size: .93rem; max-width: 90%; }
.msg.bot { background: rgba(255,255,255,.95); color: #1c1b29; border-bottom-left-radius: 4px; }
.msg.user { background: #0b1f4d; color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.msg.typing { opacity: .7; font-style: italic; }
.ai-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ai-suggest .chip { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.35); color: #fff; font-size: .82rem; padding: 6px 12px; }
.ai-suggest .chip:hover { background: rgba(255,255,255,.32); }
.ai-form { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 5px; }
.ai-form input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; padding: 0 12px; background: transparent; color: #1c1b29; }
.ai-form .btn-primary { background: #0b1f4d; color: #fff; box-shadow: none; }

/* Öne çıkan içerik */
.card.feature { position: relative; overflow: hidden; background: linear-gradient(150deg, #1e3a8a, #2563eb); border: 0; color: #fff; padding: 24px; }
.feature h2 { font-size: 1.35rem; margin: 12px 0 8px; max-width: 14ch; }
.feature p { opacity: .92; max-width: 26ch; position: relative; }
.feat-meta { display: flex; gap: 14px; font-size: .88rem; font-weight: 600; margin-bottom: 16px; }
.feature .btn-light { color: #1e3a8a; position: relative; }
.feat-art { position: absolute; right: -10px; bottom: -14px; font-size: 6.5rem; opacity: .9; transform: rotate(-12deg); }

/* Canlı dersler mini */
.live-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.live-mini li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-alt); border-radius: 14px; }
.live-mini time { font-weight: 800; color: var(--primary); min-width: 46px; }
.live-mini li div { flex: 1; display: grid; line-height: 1.3; }
.live-mini small { color: var(--muted); }

/* Bağlantı listesi */
.link-list { padding: 8px; display: grid; }
.link-list a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; text-decoration: none; }
.link-list a + a { border-top: 1px solid var(--border); }
.link-list a:hover { background: var(--bg-alt); }
.link-list span:not(.ll-ic) { flex: 1; display: grid; font-weight: 700; line-height: 1.3; }
.link-list small { color: var(--muted); font-weight: 500; }
.ll-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.link-list i { font-style: normal; color: var(--muted); font-size: 1.3rem; }

/* ---- Kart kaldırma (fareyle üzerine gelince ✕) ---- */
.dash-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: -4px; }
.dash-tools[hidden], .hidden-list[hidden] { display: none; }
.hidden-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border); }
.hidden-list .chip { font-size: .82rem; padding: 6px 12px; }
.hidden-list .chip:hover { background: var(--primary-soft); color: var(--primary); }
.hidden-list .link-btn { background: none; border: 0; color: var(--primary); font-weight: 700; font-size: .85rem; text-decoration: underline; margin-left: auto; }

[data-widget] { position: relative; }
.w-hidden { display: none !important; }
.w-x {
  position: absolute; top: -10px; right: -10px; z-index: 6; width: 28px; height: 28px; border-radius: 50%; padding: 0;
  border: 2px solid var(--surface); background: #0b1f4d; color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); opacity: 0; transform: scale(.7); pointer-events: none;
  transition: opacity .15s, transform .15s, background .15s;
}
.w-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
/* Taşmayı kesen kartlarda ✕ içeride dursun */
.hero-card > .w-x, .card.feature > .w-x { top: 10px; right: 10px; border-color: transparent; }
[data-widget]:hover > .w-x, [data-widget]:focus-within > .w-x, .w-x:focus-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
[data-widget] > .w-x:hover, [data-widget] > .w-x:focus-visible { background: var(--live); transform: scale(1.12); }
/* Dokunmatik cihazlarda (fare yok) ✕ hep görünür */
@media (hover: none) { .w-x { opacity: .9; transform: scale(1); pointer-events: auto; } }
.w-leaving { opacity: 0; transform: scale(.97); transition: opacity .18s, transform .18s; }
.w-flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--primary); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (min-width: 1001px) {
  .grid[data-cols="2"] { grid-template-columns: 1fr 1fr; }
  .grid[data-cols="1"] { grid-template-columns: 1fr; }
  .grid[data-cols="2"] .col:nth-child(3), .grid[data-cols="1"] .col:nth-child(3) { grid-column: auto; grid-template-columns: 1fr; }
}
.dash-empty { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 40px 20px; }
.dash-empty[hidden] { display: none; }
.dash-empty p { margin: 0 0 8px; }

.snack {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 310; display: flex; align-items: center; gap: 16px;
  background: #0b1f4d; color: #fff; padding: 12px 14px 12px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px);
}
.snack[hidden] { display: none; }
.snack button { border: 0; background: rgba(255,255,255,.14); color: #c4c0ff; font-weight: 800; padding: 6px 12px; border-radius: 10px; white-space: nowrap; }
.snack button:hover { background: rgba(255,255,255,.24); }
@media (max-width: 760px) { .snack { bottom: 90px; } }
@media (prefers-reduced-motion: reduce) { .w-flash { animation: none; } .w-x, .w-leaving { transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Bildirim kartları (sağ üst, kendiliğinden kaybolur) ---- */
.toast-stack { position: fixed; top: 84px; right: 20px; z-index: 300; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.tst {
  --tc: var(--primary);
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 40px 16px 14px; overflow: hidden; pointer-events: auto;
  background: var(--surface); color: var(--text); text-decoration: none; border: 1px solid var(--border); border-left: 4px solid var(--tc);
  border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 14, 30, .18); animation: tst-in .28s cubic-bezier(.2, .8, .3, 1);
}
a.tst:hover { border-color: var(--tc); }
.tst-basari { --tc: var(--green); } .tst-uyari { --tc: var(--amber); } .tst-hata { --tc: var(--live); }
.tst-ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: color-mix(in srgb, var(--tc) 15%, transparent); color: var(--tc); }
.tst-body { display: grid; gap: 2px; line-height: 1.4; font-size: .9rem; font-weight: 600; min-width: 0; padding-top: 4px; }
.tst-body b { font-size: .95rem; }
.tst-body b + span { font-weight: 500; color: var(--muted); }
.tst-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.tst-x:hover { background: var(--bg-alt); color: var(--text); }
.tst-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--tc); opacity: .55; transform-origin: left; animation: tst-bar linear forwards; }
.tst.paused .tst-bar { animation-play-state: paused; }
.tst.out { animation: tst-out .25s ease forwards; }
@keyframes tst-in { from { opacity: 0; transform: translateX(110%); } to { opacity: 1; transform: none; } }
@keyframes tst-out { to { opacity: 0; transform: translateX(40%); } }
@keyframes tst-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 760px) { .toast-stack { top: 72px; right: 16px; left: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .tst, .tst.out { animation-duration: .01s; } }
html.reduce-motion .tst, html.reduce-motion .tst.out { animation-duration: .01s !important; }
html.reduce-motion .tst-bar { animation: tst-bar linear forwards !important; }

/* ---- Responsive ---- */
.app-bottom { display: none; }
@media (max-width: 1280px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid .col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { grid-template-columns: 1.3fr 1fr; }
  .hc-art { display: none; }
}
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* minmax(0,1fr): kaydırılabilir içerik (ders kartları) sütunu ekrandan taşırmasın */
  .grid { grid-template-columns: minmax(0, 1fr); }
  .grid .col:nth-child(3) { grid-template-columns: minmax(0, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .top-search { width: 200px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .app-body { margin-left: 0; padding: 12px 16px 88px; }
  .top-search, kbd { display: none; }
  .pp-text small { display: none; }
  .profile-pill { padding-right: 12px; }
  .avatar { width: 36px; height: 36px; }
  .hero-card { padding: 22px 18px; border-radius: 20px; }
  .days button small { display: none; }
  .wk-nav { width: 28px; height: 28px; }
  .notif-menu { width: min(340px, calc(100vw - 32px)); }
  .app-bottom { display: grid; z-index: 100; }
  .course-row { grid-auto-columns: 80%; }

  /* Özet kutuları: ikon üstte, yazı altta, sıkışmasın */
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .st-ic, .ring { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 11px; }
  .stat b { font-size: 1.3rem; }
  .stat small { font-size: .82rem; line-height: 1.3; }

  /* Üst çubukta logo */
  .topbar .tb-logo { display: grid; }
  .topbar { gap: 10px; }
  .profile-wrap { margin-right: auto; }
  .topbar-actions { gap: 8px; }

  /* Kart ve başlık boşlukları */
  .card { padding: 18px; border-radius: 18px; }
  .dash { gap: 14px; }
  .hc-progress { padding: 16px; }
  .ai-suggest { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ai-suggest .chip { white-space: nowrap; flex-shrink: 0; }
  .menu { max-width: calc(100vw - 32px); }
}
@media (max-width: 380px) {
  .pp-text { display: none; }
  .profile-pill { padding: 4px; }
  .pp-caret { display: none; }
}

/* ---- Üst çubuk logosu (yalnızca telefonda) ---- */
.tb-logo { display: none; width: 40px; height: 40px; place-items: center; text-decoration: none; background: none; flex-shrink: 0; }
.tb-logo img { width: 100%; height: 100%; display: block; }

/* ---- Mobil menü (alttan açılan) ---- */
.m-sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,20,.5); backdrop-filter: blur(2px); }
.m-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-height: 82vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: 24px 24px 0 0; padding: 10px 16px calc(84px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0,0,0,.3); transform: translateY(0); transition: transform .22s ease;
}
.m-sheet[hidden], .m-sheet-bg[hidden] { display: none; }
.m-grab { width: 44px; height: 5px; border-radius: 99px; background: var(--border); margin: 0 auto 10px; }
.m-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.m-head b { font-size: 1.15rem; }
.m-group { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 16px 4px 8px; }
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.m-grid a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; text-decoration: none;
  background: var(--bg-alt); font-weight: 700; font-size: .92rem; min-height: 52px;
}
.m-grid a.active { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.m-grid svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--primary); }
.m-grid a > span:not(.sb-badge) { min-width: 0; line-height: 1.25; }
.m-grid .sb-badge { margin-left: auto; background: var(--surface); color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.m-grid .sb-badge.b-count { background: #3b82f6; color: #fff; }
.m-grid .sb-badge.b-live { background: var(--accent-soft); color: var(--live); }
.m-grid .sb-dot { display: none; }
.app-bottom .is-open { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .m-sheet { transition: none; } }

/* ============ KULLANICI TERCİHLERİ (Ayarlar) ============ */
html[data-font="kucuk"] { font-size: 93.75%; }
html[data-font="buyuk"] { font-size: 112.5%; }
html[data-font="cokbuyuk"] { font-size: 125%; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.ul-links main a:not(.btn):not(.chip):not([class*="card"]) { text-decoration: underline; text-underline-offset: 2px; }

/* ============ ALT MENÜ ÖĞESİ (ör. Derslerim › Video Dersler) ============ */
.sb-nav a.sb-sub { position: relative; margin-left: 22px; padding-top: 7px; padding-bottom: 7px; font-size: .9rem; }
.sb-nav a.sb-sub::after { content: ""; position: absolute; left: -10px; top: -4px; height: calc(50% + 4px); width: 9px;
  border-left: 1.5px solid #3a3950; border-bottom: 1.5px solid #3a3950; border-bottom-left-radius: 6px; }
.sb-nav a.sb-sub .sb-ic { width: 18px; height: 18px; }
html.sb-collapsed .sb-nav a.sb-sub { margin-left: 0; }
html.sb-collapsed .sb-nav a.sb-sub::after { display: none; }

/* ============ TELEFON: filtre şeritleri ve sayaçlar ============ */
@media (max-width: 600px) {
  /* Filtre düğmeleri tek satırda, parmakla yana kaydırılır (satırlara yayılıp içeriği itmez) */
  body.app .filters { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; max-width: 100%; padding: 3px 2px 4px; scroll-padding-inline: 8px; }
  body.app .filters::-webkit-scrollbar { display: none; }
  body.app .filters > * { flex-shrink: 0; }
  body.app .toolbar > .filters, body.app .page-head > .filters { width: 100%; }
  /* Başlıktaki sayaç kutuları: eşit genişlikte tek satır */
  body.app .page-head { align-items: stretch; }
  body.app .page-head .ph-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; gap: 8px; }
  body.app .ph-stats div { padding: 8px 10px; min-width: 0; }
  body.app .ph-stats b { font-size: 1.1rem; }
  body.app .ph-stats small { font-size: .74rem; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
  /* Arama ve sıralama kutuları tam genişlik */
  body.app .toolbar .tb-search { flex: 1 1 100%; }
}

/* ============ Kaydırma kutuları sayfayı genişletmesin ============
   Telefon tarayıcıları sayfa genişliğini hesaplarken kaydırma kutusundaki geniş tablonun
   en küçük genişliğini de sayabiliyor; contain ile kutunun genişliği içeriğinden bağımsız olur. */
.tbl-scroll, .tt-wrap { max-width: 100%; overflow-x: auto; contain: inline-size; -webkit-overflow-scrolling: touch; }
/* Izgara ve esnek kutu çocukları içeriklerinden dar olabilsin */
.app-body main, .rep-grid > *, .t-layout > *, .vid-layout > *, .bk-layout > *, .d-grid > *, .cal-layout > *, .set-layout > * { min-width: 0; }
/* Çubuk grafiklerdeki uzun adlar (ör. ödev başlıkları) satıra sığsın */
.hb-name a { display: block; }
@media (max-width: 1100px) { .rep-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .hbars li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; } }

/* Kaydırma kutuları konumlanmış olsun: içlerindeki mutlak konumlu öğeler (ör. ekran okuyucu
   metinleri .sr-only) kutunun içinde kalsın, kırpılsın ve sayfayı yana genişletmesin. */
.tbl-scroll, .tt-wrap, .d-tabs, .filters, .set-nav, .course-row { position: relative; }
.sr-only { margin: -1px; padding: 0; border: 0; }

/* ---- Yaklaşanlar kartı ---- */
.upcoming .card-head { margin-bottom: 8px; }
.up-all { font-size: .85rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.up-all:hover { text-decoration: underline; }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; }
.up-list li + li { border-top: 1px solid var(--border); }
.up-list a { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-radius: 12px; text-decoration: none; color: inherit; min-width: 0; }
.up-list a:hover { background: var(--bg-alt); }
.up-ic { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 1.1rem; }
.up-ic.k-o { background: var(--primary-soft); }
.up-ic.k-s { background: var(--accent-soft); }
.up-ic.k-g { background: var(--green-soft); }
.up-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.up-txt b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-txt small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-chip { flex-shrink: 0; font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.up-chip.warn { background: var(--amber-soft); color: var(--amber); }
.up-chip.late { background: color-mix(in srgb, var(--live) 14%, transparent); color: var(--live); }
.up-bos { padding: 18px 6px; color: var(--muted); }
.up-edu { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  font: inherit; color: #fff; background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.up-edu > span:first-child { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.18); }
.up-edu > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.up-edu small { opacity: .88; font-size: .8rem; }
.up-edu i { font-style: normal; font-size: 1.3rem; opacity: .85; }
.up-edu:hover { filter: brightness(1.08); }
.up-edu:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* ---- Son duyuru kartı ---- */
.ann-card { display: grid; align-content: start; gap: 6px; padding: 18px 20px; text-decoration: none; color: inherit; border-left: 4px solid var(--amber); }
.ann-card:hover { border-color: var(--amber); background: var(--bg-alt); }
.ann-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ann-top small { color: var(--muted); font-size: .78rem; }
.ann-card b { font-size: 1.02rem; }
.ann-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann-who { color: var(--muted); font-size: .78rem; font-weight: 600; }
/* ---- Profil: kurtarma kodu ---- */
.kod-sonuc { display: grid; gap: 6px; padding: 12px 14px; margin-bottom: 14px; border: 2px dashed var(--amber); border-radius: var(--radius-sm); background: var(--amber-soft); }
.kod-sonuc[hidden] { display: none; }
.kod-sonuc small { color: var(--text); font-weight: 600; }
.kod-sonuc code { font-family: ui-monospace, Consolas, monospace; font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; user-select: all; overflow-wrap: anywhere; }
/* ---- Profil: veli bağlantısı ---- */
.veli-kart { margin-top: 18px; }
.veli-kart .opt { font-weight: 500; color: var(--muted); font-size: .85em; }
.veli-durum { margin: 4px 0 14px; }
.veli-durum p { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; overflow-wrap: anywhere; }
.veli-yok { background: var(--bg-alt); color: var(--muted); }
.veli-bekliyor { background: var(--amber-soft); color: var(--text); }
.veli-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.veli-liste li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; }
.veli-liste li > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.veli-liste small { color: var(--muted); overflow-wrap: anywhere; }
.veli-av { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.veli-ok { flex-shrink: 0; font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.veli-kod { display: grid; gap: 6px; justify-items: start; margin: 0 0 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--primary-soft); border: 1px dashed var(--primary); }
.veli-kod[hidden] { display: none; }
.veli-kod p { margin: 0; font-size: .92rem; }
.vk-kod { font-size: 1.5rem; letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; user-select: all; }
.veli-kod small { color: var(--muted); }
/* ---- Sınıfım: şube seçimi ---- */
.sube-sec { margin-bottom: 18px; border: 2px solid var(--primary); }
.ss-bas { display: flex; gap: 14px; align-items: flex-start; }
.ss-ikon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); font-size: 1.4rem; }
.ss-bas h2 { margin: 0 0 4px; font-size: 1.2rem; }
.ss-bas p { margin: 0; line-height: 1.5; }
.ss-ops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
@media (max-width: 600px) { .ss-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ss-op { position: relative; cursor: pointer; }
.ss-op input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ss-op span { display: grid; gap: 2px; padding: 14px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); text-align: center; background: var(--surface); transition: border-color .15s; }
.ss-op b { font-size: 1.25rem; }
.ss-op small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.ss-op input:checked + span { border-color: var(--primary); background: var(--primary-soft); }
.ss-op input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ss-onay { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 8px; cursor: pointer; }
.ss-onay input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.ss-hata { color: var(--live); font-size: .88rem; margin: 0 0 8px; min-height: 0; }
.ss-hata:empty { display: none; }
.sube-sec .btn:disabled { opacity: .5; cursor: not-allowed; }
.sube-bekliyor { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--amber-soft); font-size: .9rem; overflow-wrap: anywhere; }
/* ---- Ders Programı ---- */
.prg-head { margin-bottom: 14px; }
.prg-sekmeler { margin-bottom: 16px; }
.prg-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.prg-sec { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.prg-sec select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; max-width: 100%; }
.prg-rozet { font-size: 1.1rem; font-weight: 800; padding: 6px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.prg-simdi-kart { padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: .9rem; }
.prg-kaydir { overflow-x: auto; position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.prg-tablo { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.prg-tablo th, .prg-tablo td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0; text-align: center; vertical-align: middle; }
.prg-tablo tr > *:last-child { border-right: 0; }
.prg-tablo tbody tr:last-child > * { border-bottom: 0; }
.prg-tablo thead th { padding: 10px 6px; font-size: .85rem; background: var(--bg-alt); }
.prg-tablo thead th small { color: var(--primary); font-weight: 600; }
.prg-tablo tbody th { width: 86px; padding: 8px 6px; font-size: .82rem; background: var(--bg-alt); }
.prg-tablo tbody th small { display: block; color: var(--muted); font-weight: 500; }
.prg-tablo .is-today { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.prg-tablo td { position: relative; height: 62px; }
.prg-tablo td.is-now { box-shadow: inset 0 0 0 2px var(--green); }
.prg-hucre { width: 100%; height: 100%; min-height: 62px; display: grid; place-content: center; gap: 2px; padding: 6px; border: 0; background: none; color: inherit; font: inherit; line-height: 1.25; }
button.prg-hucre { cursor: pointer; }
button.prg-hucre:hover { background: var(--primary-soft); }
button.prg-hucre:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
.prg-hucre b { font-size: .86rem; overflow-wrap: anywhere; }
.prg-hucre small { font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.prg-tablo td.benim .prg-hucre b { color: var(--primary); }
.prg-bos { color: var(--border); }
.prg-ekle { font-size: 1.2rem; color: var(--muted); opacity: .45; }
button.prg-hucre:hover .prg-ekle { opacity: 1; color: var(--primary); }
.prg-simdi { position: absolute; top: 3px; right: 4px; font-size: .62rem; font-weight: 800; color: var(--green); text-transform: uppercase; }
.prg-ogr { margin-top: 18px; }
.prg-ogr ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.prg-ogr li { display: grid; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.prg-ogr li span { font-size: .9rem; } .prg-ogr li small { color: var(--muted); font-size: .76rem; }
.prg-ice textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); resize: vertical; margin-bottom: 10px; }
.prg-adim { line-height: 1.7; padding-left: 20px; }
.prg-adim code, .prg-ice code { font-size: .85em; padding: 1px 5px; border-radius: 5px; background: var(--bg-alt); }
.prg-dosya { cursor: pointer; }
.prg-onizle-b { margin: 20px 0 10px; font-size: 1rem; }
.prg-uyari-k { margin: 12px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--amber-soft); font-size: .9rem; }
.prg-uyari-k ul { margin: 6px 0 0; padding-left: 18px; }
.prg-not { font-size: .88rem; margin: 8px 0; color: var(--muted); }
.prg-uyari { margin-top: 16px; }
.prg-dlg { width: min(420px, calc(100vw - 32px)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 20px; }
.prg-dlg::backdrop { background: rgba(10, 10, 20, .5); }
.prg-dlg h2 { margin: 0 0 12px; font-size: 1.15rem; } .prg-dlg h2 small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.prg-dlg .field { margin-bottom: 12px; }
.prg-dlg .field[hidden] { display: none; }
.prg-dlg input, .prg-dlg select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.prg-dlg-btn { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .prg-dlg-btn span { flex: 1; }
.danger-t { color: var(--live); }
.timetable .tt-ogr { display: block; font-size: .74rem; color: var(--muted); font-weight: 500; }
/* ---- Ana sayfa: ders programı kısayolu ---- */
.quick a.q-genis { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.q-genis .q-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.q-genis small { font-size: .82rem; font-weight: 500; color: var(--muted); }
.q-genis i { font-style: normal; font-size: 1.4rem; color: var(--muted); }
.qi-5 { background: var(--primary-soft); }
/* ---- Ders programı: hızlı ekleme ---- */
.hz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 420px) { .hz-grid { grid-template-columns: 1fr; } }
.hz-durum { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; font-size: .86rem; }
.hz-durum.bos { background: var(--green-soft); color: var(--green); }
.hz-durum.dolu { background: var(--amber-soft); color: var(--amber); }
.hz-eklenen { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; max-height: 120px; overflow-y: auto; font-size: .85rem; color: var(--green); }
.hz-eklenen:empty { display: none; }