/* ==========================================================================
   Eğitim Takip — tasarım sistemi
   --------------------------------------------------------------------------
   Renkler ve yazı tipi şartnamedeki paletten gelir; koyu tonlar (…-700) aynı
   renklerin metin olarak okunabilmesi için türetilmiştir (WCAG AA kontrastı).
   İmza öğe: "hafta şeridi" (.week) — pazartesiden pazara yedi günün durumu.
   ========================================================================== */

:root {
  --orange: #FF9B71;
  --orange-600: #FF8A5A;
  --orange-700: #BF4F25;
  --yellow: #FFD166;
  --yellow-100: #FFF1CC;
  --yellow-700: #7A5A0B;
  --coral: #EF6F6C;
  --coral-100: #FDE4E3;
  --coral-700: #B93B38;
  --cream: #FFF9F2;
  --peach: #FFE8D6;
  --ink: #343434;
  --ink-2: #5E5A57;
  --ink-3: #7A746F;
  --white: #FFFFFF;
  --green: #72B89C;
  --green-100: #E3F2EA;
  --green-700: #2F7A5C;
  --blue-100: #E4EEF9;
  --blue-700: #2F5F96;
  --line: #F1E3D5;
  --line-strong: #E3CFBD;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(120, 72, 40, .05), 0 8px 24px rgba(255, 155, 113, .08);
  --shadow-2: 0 12px 34px rgba(170, 96, 60, .18);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Bootstrap değişkenleri */
  --bs-body-font-family: var(--font);
  --bs-body-font-size: .9375rem;
  --bs-body-line-height: 1.55;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;
  --bs-link-color: var(--orange-700);
  --bs-link-color-rgb: 191, 79, 37;
  --bs-link-hover-color-rgb: 140, 54, 22;
  --bs-secondary-color: var(--ink-2);
  --bs-emphasis-color: var(--ink);
  --bs-heading-color: var(--ink);
}

html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-weight: 400; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
strong, b { font-weight: 700; }
a { text-underline-offset: 3px; }
.icon { flex-shrink: 0; vertical-align: -.2em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.text-soft { color: var(--ink-2); }
.text-mute { color: var(--ink-3); }
.fw-800 { font-weight: 800; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* ------------------------------------------------------------ düğmeler */
.btn {
  --bs-btn-font-weight: 600; --bs-btn-border-radius: 12px; --bs-btn-padding-y: .6rem; --bs-btn-padding-x: 1.05rem;
  --bs-btn-font-size: .9375rem; --bs-btn-focus-shadow-rgb: 52, 52, 52;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; line-height: 1.3;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: none; }
.btn-sm { --bs-btn-padding-y: .4rem; --bs-btn-padding-x: .75rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 10px; gap: .375rem; }
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: 14px; font-weight: 700; }
.btn-primary {
  --bs-btn-color: var(--ink); --bs-btn-bg: var(--orange); --bs-btn-border-color: var(--orange);
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--orange-600); --bs-btn-hover-border-color: var(--orange-600);
  --bs-btn-active-color: var(--ink); --bs-btn-active-bg: #F57E4D; --bs-btn-active-border-color: #F57E4D;
  --bs-btn-disabled-color: #6f625a; --bs-btn-disabled-bg: #FFD3BF; --bs-btn-disabled-border-color: #FFD3BF;
  box-shadow: 0 6px 16px rgba(255, 155, 113, .35);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(255, 138, 90, .42); }
.btn-ghost {
  --bs-btn-color: var(--ink); --bs-btn-bg: var(--white); --bs-btn-border-color: var(--line-strong);
  --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--peach); --bs-btn-hover-border-color: var(--line-strong);
  --bs-btn-active-color: var(--ink); --bs-btn-active-bg: #FFDCC2; --bs-btn-active-border-color: var(--line-strong);
}
.btn-soft {
  --bs-btn-color: var(--orange-700); --bs-btn-bg: var(--peach); --bs-btn-border-color: var(--peach);
  --bs-btn-hover-color: #8C3616; --bs-btn-hover-bg: #FFDCC2; --bs-btn-hover-border-color: #FFDCC2;
  --bs-btn-active-color: #8C3616; --bs-btn-active-bg: #FFD0AE; --bs-btn-active-border-color: #FFD0AE;
}
.btn-danger {
  --bs-btn-color: #fff; --bs-btn-bg: var(--coral-700); --bs-btn-border-color: var(--coral-700);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #9F302D; --bs-btn-hover-border-color: #9F302D;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #8B2926; --bs-btn-active-border-color: #8B2926;
}
.btn-danger-soft {
  --bs-btn-color: var(--coral-700); --bs-btn-bg: var(--white); --bs-btn-border-color: #F3C4C2;
  --bs-btn-hover-color: #8B2926; --bs-btn-hover-bg: var(--coral-100); --bs-btn-hover-border-color: #F3C4C2;
  --bs-btn-active-color: #8B2926; --bs-btn-active-bg: #FAD2D0; --bs-btn-active-border-color: #F3C4C2;
}
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading > .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--peach); }
.link-btn { border: 0; background: none; padding: 0; color: var(--orange-700); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-btn:hover { text-decoration: underline; }

/* -------------------------------------------------------------- formlar */
.stack { display: grid; gap: 16px; }
.stack > .row { --bs-gutter-y: 16px; }
.field { min-width: 0; }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: 6px; color: var(--ink); }
.label-hint { font-weight: 400; color: var(--ink-3); font-size: .8125rem; margin-left: 4px; }
.form-control, .form-select {
  border-color: var(--line-strong); border-radius: 12px; padding: .68rem .9rem; min-height: 46px;
  font-size: 1rem; color: var(--ink); background-color: var(--white);
}
.form-select { padding-right: 2.4rem; }
textarea.form-control { min-height: 96px; }
.form-control::placeholder { color: #A39B95; }
.form-control:focus, .form-select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 155, 113, .28); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--coral-700); background-image: none; padding-right: .9rem; }
.form-control.is-invalid:focus, .form-select.is-invalid:focus { border-color: var(--coral-700); box-shadow: 0 0 0 4px rgba(239, 111, 108, .25); }
.form-control:disabled, .form-control[readonly] { background: #FBF4EC; color: var(--ink-2); }
.form-text { color: var(--ink-2); font-size: .8125rem; margin-top: 6px; }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--coral-700); font-size: .8125rem; font-weight: 600; margin-top: 6px; }
.field-error .icon { margin-top: 1px; }
.form-check-input { width: 1.25em; height: 1.25em; margin-top: .15em; border-color: var(--line-strong); }
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23343434' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-check-input[type=radio]:checked { --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23343434'/%3e%3c/svg%3e"); }
.form-check-input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 155, 113, .28); }
.form-check-label { padding-left: 4px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 4px; }
.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--ink-2); border-radius: 10px; display: grid; place-items: center; }
.password-toggle:hover { color: var(--ink); background: var(--cream); }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn .form-control { flex: 1; min-width: 0; }

/* ------------------------------------------------------- uygulama iskeleti */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { --bs-offcanvas-width: 288px; --bs-offcanvas-bg: var(--white); background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .sidebar { width: 268px; flex: 0 0 268px; position: sticky; top: 0; height: 100vh; height: 100dvh; }
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.sidebar-brand { text-decoration: none; color: var(--ink); min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; flex-shrink: 0; }
.brand-name { font-weight: 700; font-size: 1rem; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav-group { font-size: .75rem; font-weight: 600; color: var(--ink-3); margin: 12px 12px 4px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border-radius: 12px; border: 0; background: none; color: var(--ink-2); font-weight: 500; font-size: .9375rem; text-decoration: none; text-align: left; transition: background-color .12s ease, color .12s ease; }
.nav-item:hover { background: var(--cream); color: var(--ink); }
.nav-item.is-active { background: var(--peach); color: var(--ink); font-weight: 600; }
.nav-item.is-active .icon { color: var(--orange-700); }
.nav-text { flex: 1; min-width: 0; }
.nav-badge { background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .75rem; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; }
.sidebar-foot { padding: 10px 12px 16px; border-top: 1px solid var(--line); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 28px; background: rgba(255, 249, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-brand { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-context { font-weight: 600; color: var(--ink-2); font-size: .875rem; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip, .student-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-weight: 600; font-size: .875rem; }
.student-chip { padding-left: 6px; background: var(--peach); border-color: var(--peach); }
.student-chip.is-static { cursor: default; }
.user-chip:hover, button.student-chip:hover { border-color: var(--orange); }
.user-chip-name, .student-chip-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu { --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: 14px; --bs-dropdown-link-active-bg: var(--peach); --bs-dropdown-link-active-color: var(--ink); --bs-dropdown-link-hover-bg: var(--cream); --bs-dropdown-padding-y: 8px; --bs-dropdown-font-size: .9375rem; box-shadow: var(--shadow-2); min-width: 220px; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-weight: 500; }
.dropdown-header { color: var(--ink); font-weight: 700; font-size: .875rem; white-space: normal; }
.dropdown-header small { color: var(--ink-2); font-weight: 500; }

.content { width: 100%; max-width: 1360px; padding: 28px 32px 56px; }
.content:focus { outline: none; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-title { font-size: 1.625rem; line-height: 1.2; margin: 0; }
.page-sub { color: var(--ink-2); margin: 6px 0 0; max-width: 68ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .875rem; color: var(--ink-2); text-decoration: none; margin-bottom: 10px; }
.back-link:hover { color: var(--ink); }
.section-title { font-size: 1.0625rem; margin: 28px 0 12px; }

/* Telefonlarda veli portalının alt gezinme çubuğu */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: var(--white); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(170, 96, 60, .08); }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--ink-2); text-decoration: none; font-size: .6875rem; font-weight: 600; border-radius: 12px; min-height: 52px; justify-content: center; }
.bottom-nav-item.is-active { color: var(--orange-700); }
.bottom-nav-item.is-primary .bottom-nav-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; margin-top: -22px; box-shadow: 0 8px 18px rgba(255, 155, 113, .5); border: 4px solid var(--white); }
.bottom-nav-item.is-primary { color: var(--ink); }

/* ---------------------------------------------------------------- paneller */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 22px; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--narrow { max-width: 620px; }
.panel--medium { max-width: 860px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.panel--flush > .panel-head { padding: 18px 22px 0; margin-bottom: 14px; }
.panel-title { font-size: 1rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-note { color: var(--ink-2); font-size: .8125rem; margin: 2px 0 0; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.flow > * + * { margin-top: 20px; }

/* İstatistik kutuları: büyük rakam, kısa etiket; renkler anlam taşımaz, yalnızca gruplar */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { position: relative; border-radius: 22px; padding: 18px 20px 16px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.stat--peach { background: var(--peach); border-color: transparent; }
.stat--yellow { background: var(--yellow-100); border-color: transparent; }
.stat--green { background: var(--green-100); border-color: transparent; }
.stat--coral { background: var(--coral-100); border-color: transparent; }
.stat-icon { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .75); display: grid; place-items: center; color: var(--ink); }
.stat--plain .stat-icon, .stat:not([class*="--"]) .stat-icon { background: var(--cream); }
.stat-label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); margin: 0 44px 8px 0; }
.stat-value { font-size: 2rem; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 0; }
.stat-value small { font-size: .9375rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.stat-hint { font-size: .8125rem; color: var(--ink-2); margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }

.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .8125rem; }
.delta--up { color: var(--green-700); }
.delta--down { color: var(--coral-700); }
.delta--flat { color: var(--ink-2); }

/* ------------------------------------------------------------ hafta şeridi */
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.week-day > a, .week-day > span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 2px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.week-day > a:hover { background: rgba(255, 255, 255, .7); }
.week-name { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.week-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .875rem; border: 2px dashed var(--line-strong); background: var(--white); color: var(--ink-2); }
.week-num { font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.week-day.is-done .week-dot { background: var(--orange); border: 2px solid var(--orange); color: var(--ink); }
.week-day.is-zero .week-dot { border: 2px solid var(--ink-3); color: var(--ink); }
.week-day.is-none .week-num, .week-day.is-future .week-num { color: var(--ink-3); }
.week-day.is-future .week-dot { border-style: dotted; background: transparent; opacity: .55; }
.week-day.is-future .week-name { color: var(--ink-3); }
.week-day.is-today .week-name { color: var(--ink); font-weight: 800; }
.week-day.is-today .week-dot { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.week--compact { display: inline-grid; gap: 3px; grid-template-columns: repeat(7, 16px); vertical-align: middle; }
.week--compact .week-day > a, .week--compact .week-day > span { padding: 0; gap: 0; }
.week--compact .week-name { display: none; }
.week--compact .week-dot { width: 16px; height: 16px; border-width: 1.5px; font-size: 0; }
.week--compact .week-dot .icon { display: none; }
.week--compact .week-day.is-done .week-dot, .week--compact .week-day.is-zero .week-dot { border-width: 1.5px; }
.week--compact .week-day.is-zero .week-dot { font-size: .5625rem; }
.week--compact .week-day.is-today .week-dot { box-shadow: 0 0 0 1.5px var(--white), 0 0 0 2.5px var(--ink-2); }
.week-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .75rem; color: var(--ink-2); margin: 12px 0 0; padding: 0; list-style: none; }
.week-legend li { display: inline-flex; align-items: center; gap: 6px; }
.week-legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 1.5px dashed var(--line-strong); background: var(--white); }
.week-legend i.done { background: var(--orange); border: 1.5px solid var(--orange); }
.week-legend i.zero { border: 1.5px solid var(--ink-3); }

/* -------------------------------------------------------------- hedef çubuğu */
.goal { --c: var(--orange); }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .8125rem; color: var(--ink-2); margin-bottom: 6px; }
.goal-count strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.goal-pct { font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.goal.is-complete .goal-pct { color: var(--green-700); }
.goal-track { height: 10px; border-radius: 999px; background: #F5EAE0; overflow: hidden; }
.goal-fill { height: 100%; border-radius: 999px; background: var(--c); transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.goal--compact .goal-track { height: 8px; }
.goal-none { font-size: .8125rem; color: var(--ink-3); font-style: italic; }

/* --------------------------------------------------------------- ders kartı */
.subjects { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.subject-card { --c: var(--orange); --ct: var(--peach); position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 18px 18px; box-shadow: var(--shadow-1); overflow: hidden; }
.subject-card::before { content: ""; position: absolute; left: 18px; top: 0; width: 44px; height: 5px; border-radius: 0 0 6px 6px; background: var(--c); }
.subject-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.subject-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ct); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.subject-name { font-weight: 700; font-size: .9375rem; line-height: 1.25; margin: 0; }
.subject-today { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.subject-today strong { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.subject-today span { color: var(--ink-2); font-size: .8125rem; font-weight: 500; }
.subject-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.subject-meta div { background: var(--cream); border-radius: 12px; padding: 8px 10px; }
.subject-meta dt { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.subject-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.subject-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--orange)); display: inline-block; flex-shrink: 0; }
.subject-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }

/* ----------------------------------------------------------------- etiketler */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.tag--green { background: var(--green-100); color: var(--green-700); }
.tag--yellow { background: var(--yellow-100); color: var(--yellow-700); }
.tag--coral { background: var(--coral-100); color: var(--coral-700); }
.tag--orange { background: var(--peach); color: var(--orange-700); }
.tag--blue { background: var(--blue-100); color: var(--blue-700); }
.tag--gray { background: #F1ECE7; color: var(--ink-2); }

.avatar { --s: 40px; --c: var(--orange); width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); color: var(--ink); font-weight: 700; font-size: calc(var(--s) * .36); display: inline-grid; place-items: center; flex-shrink: 0; letter-spacing: 0; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person-name { font-weight: 600; color: var(--ink); text-decoration: none; display: block; }
a.person-name:hover { color: var(--orange-700); text-decoration: underline; }
.person-sub { font-size: .8125rem; color: var(--ink-2); display: block; }

/* ----------------------------------------------------------------- tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.data-table th, .data-table td { padding: 12px 14px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: .8125rem; font-weight: 600; color: var(--ink-2); background: #FFFCF8; white-space: nowrap; text-align: left; border-bottom: 1px solid var(--line-strong); }
.data-table thead th.num { text-align: right; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #FFFCF8; }
.data-table tfoot td, .data-table tfoot th { background: #FFF3E8; font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line-strong); }
.data-table th:first-child, .data-table td:first-child { padding-left: 22px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 22px; }
.data-table .is-total { font-weight: 800; }
.data-table .is-missing { color: var(--ink-3); }
.data-table tr.is-today td, .data-table tr.is-today th, .data-table tbody tr.is-today .sticky-col { background: #FFF8EE; }
.data-table .th-subject { display: inline-flex; align-items: center; gap: 6px; }
abbr[title] { text-decoration: none; cursor: inherit; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cell-note { display: block; font-size: .8125rem; color: var(--ink-2); max-width: 40ch; white-space: normal; }
.sticky-col { position: sticky; left: 0; background: var(--white); z-index: 1; }
thead .sticky-col { background: #FFFCF8; z-index: 2; }
tfoot .sticky-col { background: #FFF3E8; }
.data-table tbody tr:hover .sticky-col { background: #FFFCF8; }
.no-record { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: .8125rem; font-weight: 500; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.pager-links { display: inline-flex; align-items: center; gap: 10px; }
.pager-link { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.pager-link:hover { background: var(--peach); color: var(--ink); }
.pager-link.is-disabled { opacity: .45; pointer-events: none; }
.pager-current { font-weight: 600; color: var(--ink); }

/* ------------------------------------------------------------ süzgeç çubuğu */
.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 20px; }
.filters .form-label { font-size: .8125rem; margin-bottom: 4px; }
.filters .form-control, .filters .form-select { min-height: 42px; padding-top: .5rem; padding-bottom: .5rem; font-size: .9375rem; }
.filters-actions { display: flex; gap: 8px; }
.filters-actions .btn { min-height: 42px; flex: 0 1 auto; min-width: 124px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.segmented a { padding: 7px 13px; border-radius: 10px; font-weight: 600; font-size: .875rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.segmented a:hover { background: var(--cream); color: var(--ink); }
.segmented a.is-active { background: var(--peach); color: var(--ink); }
.period-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period-label { font-weight: 700; font-size: 1.0625rem; min-width: 0; }
.period-label small { display: block; font-weight: 500; font-size: .8125rem; color: var(--ink-2); }
.export-bar { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------------------------------------------------------------- bildirimler */
.notices { position: fixed; top: 76px; right: 20px; z-index: 1080; display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--ink-3); border-radius: 14px; padding: 14px 12px 14px 14px; box-shadow: var(--shadow-2); animation: notice-in .28s ease-out both; }
.notice > .icon { margin-top: 1px; }
.notice-body { flex: 1; min-width: 0; font-size: .9375rem; font-weight: 500; overflow-wrap: anywhere; }
.notice-close { border: 0; background: none; color: var(--ink-2); width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.notice-close:hover { background: var(--cream); color: var(--ink); }
.notice--success { border-left-color: var(--green); } .notice--success > .icon { color: var(--green-700); }
.notice--error { border-left-color: var(--coral); } .notice--error > .icon { color: var(--coral-700); }
.notice--warning { border-left-color: var(--yellow); } .notice--warning > .icon { color: var(--yellow-700); }
.notice--info { border-left-color: var(--orange); } .notice--info > .icon { color: var(--orange-700); }
.notice.is-leaving { opacity: 0; transform: translateX(12px); transition: opacity .2s ease, transform .2s ease; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r); padding: 14px 16px; background: var(--yellow-100); color: var(--ink); font-size: .875rem; }
.callout > .icon { margin-top: 2px; color: var(--yellow-700); }
.callout--info { background: var(--peach); } .callout--info > .icon { color: var(--orange-700); }
.callout--success { background: var(--green-100); } .callout--success > .icon { color: var(--green-700); }
.callout--danger { background: var(--coral-100); } .callout--danger > .icon { color: var(--coral-700); }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }

/* Boş durum: ne olduğunu ve ne yapılabileceğini söyler */
.empty { text-align: center; padding: 40px 20px; }
.empty-icon { width: 60px; height: 60px; border-radius: 20px; background: var(--peach); color: var(--orange-700); display: inline-grid; place-items: center; margin-bottom: 14px; }
.empty-title { font-weight: 700; font-size: 1.0625rem; margin: 0 0 6px; }
.empty-text { color: var(--ink-2); margin: 0 auto; max-width: 46ch; }
.empty-action { margin-top: 18px; }

.chart-box { position: relative; width: 100%; }
.chart-empty { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--ink-3); font-size: .875rem; background: repeating-linear-gradient(135deg, #FFFCF8, #FFFCF8 10px, #FFF7EE 10px, #FFF7EE 20px); border-radius: var(--r); }

/* Onay penceresi */
.modal-content { border: 0; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.modal-title { font-size: 1.0625rem; font-weight: 700; }
.modal-body { padding: 22px; }
.modal-footer { border-top: 1px solid var(--line); padding: 14px 22px; }
.confirm-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--coral-100); color: var(--coral-700); display: grid; place-items: center; margin: 4px 0 14px; }
.confirm-title { font-size: 1.1875rem; margin: 0 0 6px; }
.confirm-text { color: var(--ink-2); margin: 0 0 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* -------------------------------------------------------- veli: karşılama */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 26px 28px; background: linear-gradient(135deg, #FFE8D6 0%, #FFF1CC 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 20px; }
.hero::after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 155, 113, .28); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-hello { font-weight: 600; color: var(--ink-2); margin: 0 0 4px; }
.hero-title { font-size: 1.625rem; line-height: 1.2; margin: 0 0 14px; }
.hero-today { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.hero-today strong { font-size: 3.25rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-today span { font-weight: 600; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-week { background: rgba(255, 255, 255, .78); border-radius: 22px; padding: 16px 14px 14px; backdrop-filter: blur(4px); }
.hero-week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 6px 8px; }
.hero-week-head span { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.hero-week-head strong { font-weight: 800; font-variant-numeric: tabular-nums; }

.student-card { display: flex; gap: 16px; align-items: center; }
.student-card-body { min-width: 0; flex: 1; }
.student-card-name { font-size: 1.125rem; font-weight: 700; margin: 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0; }
.kv div { background: var(--cream); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.kv dt { font-size: .75rem; font-weight: 500; color: var(--ink-2); }
.kv dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.kv dd.big { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Günlük soru girişi: telefonda tek elle kullanılacak biçimde */
.entry { display: grid; gap: 10px; }
.entry-row { --c: var(--orange); --ct: var(--peach); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 12px 12px 12px 14px; }
.entry-row.has-error { border-color: var(--coral-700); }
.entry-label { display: flex; align-items: center; gap: 12px; min-width: 0; font-weight: 600; margin: 0; }
.entry-label .subject-icon { width: 38px; height: 38px; }
.entry-label > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 46px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); display: grid; place-items: center; }
.stepper button:hover { background: var(--peach); }
.stepper button:active { background: #FFDCC2; }
.stepper input { width: 84px; text-align: center; font-weight: 800; font-size: 1.125rem; padding-left: .4rem; padding-right: .4rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.entry-row .field-error { grid-column: 1 / -1; margin-top: 0; }
.entry-total { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 12px 12px 20px; box-shadow: var(--shadow-2); margin-top: 6px; }
.entry-total-label { font-size: .8125rem; font-weight: 500; opacity: .85; display: block; }
.entry-total-value { font-size: 1.625rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.entry-total-value small { font-size: .875rem; font-weight: 600; opacity: .85; }

/* Aylık takvim */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-head { font-size: .75rem; font-weight: 600; color: var(--ink-2); text-align: center; padding: 4px 0; }
.calendar-cell { min-height: 68px; border-radius: 14px; border: 1.5px dashed var(--line-strong); background: var(--white); padding: 7px 8px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: var(--ink); }
a.calendar-cell:hover { border-color: var(--orange); }
.calendar-cell.is-out { visibility: hidden; }
.calendar-cell.is-future { border-style: dotted; opacity: .5; }
.calendar-cell.has-record { border: 1.5px solid transparent; }
.calendar-cell.is-zero { border: 1.5px solid var(--ink-3); }
.calendar-cell.lvl-1 { background: #FFF0E4; } .calendar-cell.lvl-2 { background: #FFDFC9; } .calendar-cell.lvl-3 { background: #FFC7A6; } .calendar-cell.lvl-4 { background: var(--orange); }
.calendar-cell.is-today { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); }
.calendar-date { font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.calendar-cell.lvl-3 .calendar-date, .calendar-cell.lvl-4 .calendar-date { color: var(--ink); }
.calendar-total { font-weight: 800; font-size: 1rem; text-align: right; font-variant-numeric: tabular-nums; }
.calendar-total.is-none { font-weight: 500; font-size: .75rem; color: var(--ink-3); }

/* Ödev kartları */
.task-list { display: grid; gap: 12px; }
.task { --c: var(--orange); --ct: var(--peach); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
a.task:hover { border-color: var(--orange); box-shadow: var(--shadow-1); color: var(--ink); }
.task-title { font-weight: 700; margin: 0 0 2px; overflow-wrap: anywhere; }
.task-meta { font-size: .8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.prose { color: var(--ink); line-height: 1.65; overflow-wrap: anywhere; }
.prose p { margin: 0 0 12px; max-width: 72ch; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { position: relative; padding-left: 20px; font-size: .875rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.timeline li::after { content: ""; position: absolute; left: 6.5px; top: 19px; bottom: -12px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline time { color: var(--ink-2); font-size: .8125rem; display: block; }

/* Seçim ızgaraları (ikon, renk, öğrenci) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; max-height: 196px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--white); border: 1.5px solid transparent; color: var(--ink-2); cursor: pointer; }
.choice input:checked + span { border-color: var(--ink); color: var(--ink); background: var(--peach); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 1px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch span { width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 3px solid var(--white); box-shadow: 0 0 0 1.5px var(--line-strong); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--ink); background: var(--c); }
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; max-height: 280px; overflow-y: auto; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); }
.check-list.is-invalid { border-color: var(--coral-700); }
.check-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; margin: 0; }
.check-item:hover { background: var(--cream); }
.check-item small { color: var(--ink-2); display: block; }
.order-btns { display: inline-flex; gap: 4px; }

.checklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.checklist li strong { font-weight: 600; }
.checklist li p { margin: 2px 0 0; color: var(--ink-2); font-size: .8125rem; }
.checklist .is-ok > .icon { color: var(--green-700); }
.checklist .is-bad > .icon { color: var(--coral-700); }
.checklist .is-warn > .icon { color: var(--yellow-700); }
.checklist .is-auto > .icon { color: var(--orange-700); }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line-strong); margin-bottom: 20px; padding-bottom: 0; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); border-bottom-color: var(--orange); }

/* ------------------------------------------------------------ giriş ekranı */
.auth-body { background: var(--cream); }
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 56px 48px; background: linear-gradient(155deg, #FFF1CC 0%, #FFE8D6 42%, #FFCDB6 100%); }
.auth-side::before, .auth-side::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-side::before { width: 380px; height: 380px; right: -140px; top: -120px; background: rgba(255, 209, 102, .55); }
.auth-side::after { width: 300px; height: 300px; left: -110px; bottom: -110px; background: rgba(239, 111, 108, .22); }
.auth-side-inner { position: relative; z-index: 1; max-width: 400px; width: 100%; }
.auth-tagline { font-size: clamp(2rem, 3.3vw, 2.875rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 0 0 32px; }
.auth-demo { background: rgba(255, 255, 255, .94); border-radius: 26px; padding: 20px 18px 18px; box-shadow: var(--shadow-2); transform: rotate(-2deg); }
.auth-demo-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 10px; }
.auth-demo-head span { font-weight: 600; color: var(--ink-2); font-size: .875rem; }
.auth-demo-head strong { font-weight: 800; font-size: 1.25rem; }
.auth-demo-bars { display: grid; gap: 8px; padding: 14px 6px 2px; }
.auth-demo-bars span { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--c) var(--w), #F5EAE0 var(--w)); }
.auth-side-note { margin: 30px 0 0; font-weight: 500; color: var(--ink); max-width: 30ch; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-brand { margin-bottom: 28px; }
.auth-brand .brand-name { font-size: 1.0625rem; }
.auth-title { font-size: 1.75rem; line-height: 1.15; margin: 0 0 8px; }
.auth-lead { color: var(--ink-2); margin: 0 0 24px; }
.auth-section { font-size: 1rem; margin: 26px 0 12px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 20px; font-weight: 600; font-size: .9375rem; }
.auth-links a { display: inline-flex; align-items: center; gap: 6px; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); font-size: .8125rem; margin: 22px 0 0; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.auth-note .icon { margin-top: 2px; }
.auth-note--warn { background: var(--yellow-100); border-color: transparent; color: var(--ink); margin: 0 0 16px; }
.auth-explain { margin-top: 24px; font-size: .875rem; color: var(--ink-2); }
.auth-explain p { margin: 0 0 6px; color: var(--ink); }
.auth-explain ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.auth-foot { width: 100%; max-width: 440px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .8125rem; color: var(--ink-3); }
.auth-foot a { color: var(--ink-2); }
.auth-card .notices { position: static; width: auto; margin-bottom: 18px; }
.auth-card .notice { box-shadow: none; }

/* --------------------------------------------------------------- duyarlılık */
@media (max-width: 1199.98px) {
  .split, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-main { justify-content: flex-start; padding-top: 48px; background: linear-gradient(180deg, #FFE8D6 0, var(--cream) 220px); }
  .topbar { padding: 0 12px; }
  .content { padding: 20px 16px 48px; }
  .is-parent .content { padding-bottom: 104px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  /* Dar ekranda bildirimler içeriğin üstünü örtmez; sayfa akışında, başlığın üzerinde durur. */
  .notices { position: static; width: auto; margin-bottom: 16px; }
  .notice { box-shadow: var(--shadow-1); }
}
@media (max-width: 575.98px) {
  .page-title { font-size: 1.375rem; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .panel { padding: 16px; border-radius: 18px; }
  .panel--flush { padding: 0; }
  .panel--flush > .panel-head { padding: 16px 16px 0; }
  .data-table th, .data-table td { padding: 10px 10px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 16px; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 16px; }
  .pager { padding: 12px 16px; }
  .stats, .stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px 14px 12px; border-radius: 18px; }
  .stat-value { font-size: 1.5rem; }
  .stat-icon { display: none; }
  .stat-label { margin-right: 0; }
  .subjects { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .subject-card { padding: 16px 12px 12px; border-radius: 18px; }
  .subject-card::before { left: 12px; }
  .subject-head { gap: 8px; margin-bottom: 10px; }
  .subject-icon { width: 34px; height: 34px; border-radius: 10px; }
  .subject-name { font-size: .8125rem; }
  .subject-today { flex-wrap: wrap; gap: 2px 6px; margin-bottom: 10px; }
  .subject-today strong { font-size: 1.625rem; }
  .subject-meta { gap: 6px; margin-bottom: 10px; }
  .subject-meta div { padding: 6px 8px; }
  .goal-top { flex-wrap: wrap; gap: 0 6px; }
  .student-card > .avatar { display: none; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-actions { flex-direction: column; }
  .hero-title { font-size: 1.375rem; }
  .hero-today strong { font-size: 2.75rem; }
  .hero-actions .btn { width: 100%; }
  .week-dot { width: 32px; height: 32px; }
  .form-actions .btn { flex: 1; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
  .filters-actions { grid-column: 1 / -1; }
  .filters-actions .btn { flex: 1; }
  .stepper input { width: 62px; }
  .task { grid-template-columns: auto minmax(0, 1fr); }
  .task-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .calendar { gap: 4px; }
  .calendar-cell { min-height: 54px; padding: 5px 5px; border-radius: 10px; }
  .calendar-total { font-size: .8125rem; }
  .calendar-total.is-none { font-size: 0; }

  /* Gün × ders tabloları: telefonda yatay kaydırmadan sığacak kadar sıkı */
  .data-table--matrix { font-size: .8125rem; }
  .data-table--matrix th, .data-table--matrix td { padding: 9px 5px; }
  .data-table--matrix th:first-child, .data-table--matrix td:first-child { padding-left: 12px; padding-right: 4px; }
  .data-table--matrix th:last-child, .data-table--matrix td:last-child { padding-right: 12px; }
  .data-table--matrix thead th { font-size: .75rem; }
  .data-table--matrix .th-subject { gap: 3px; }
  .data-table--matrix .subject-dot { width: 7px; height: 7px; }
  .data-table--matrix .person-sub { font-size: .6875rem; }
  .entry-row { padding: 10px 10px 10px 12px; gap: 8px; }
  .entry-label { gap: 8px; font-size: .9375rem; }
  .entry-label .subject-icon { width: 32px; height: 32px; }
  .stepper { gap: 4px; }
  .stepper button { width: 40px; }
  .is-parent .entry-total { bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* Liste tabloları telefonda kartlara dönüşür; her hücre kendi etiketini taşır */
  .data-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table--stack, .data-table--stack tbody, .data-table--stack tr, .data-table--stack td { display: block; width: 100%; }
  .data-table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .data-table--stack tbody tr:last-child { border-bottom: 0; }
  .data-table--stack td { padding: 4px 0 !important; border: 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; text-align: right; }
  .data-table--stack td::before { content: attr(data-label); font-size: .8125rem; font-weight: 600; color: var(--ink-2); text-align: left; flex-shrink: 0; }
  .data-table--stack td[data-label=""]::before, .data-table--stack td:not([data-label])::before { display: none; }
  .data-table--stack td.cell-main { text-align: left; justify-content: flex-start; padding-bottom: 8px !important; }
  .data-table--stack td.cell-actions { justify-content: flex-end; padding-top: 10px !important; }
  .data-table--stack tbody tr:hover td { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .sidebar, .topbar, .bottom-nav, .notices, .page-actions, .filters, .export-bar, .row-actions, .btn, .pager-links { display: none !important; }
  body, .app-body { background: #fff; }
  .content { padding: 0; max-width: none; }
  .panel, .stat, .subject-card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
}
