/* ============ Tokens ============ */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --surface-3: #e7eaef;
  --border: #e2e6ec;
  --border-strong: #cdd3dc;
  --text: #0f172a;
  --text-2: #475467;
  --text-3: #667085;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-soft: #d5f5ef;
  --on-primary: #ffffff;
  --danger: #c81e1e;
  --danger-soft: #fde8e8;
  --warn: #a15c07;
  --warn-soft: #fdf1d8;
  --ok: #157f3b;
  --ok-soft: #dcf5e4;
  --info: #1d5fd1;
  --info-soft: #e1ebfd;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 16px -4px rgba(16, 24, 40, .10), 0 2px 4px -2px rgba(16, 24, 40, .05);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side-w: 248px;
  /* ders renkleri (hue ile türetilir) */
  --cL-bg: .955; --cC-bg: .045;
  --cL-bd: .64;  --cC-bd: .13;
  --cL-fg: .38;  --cC-fg: .10;
  --cL-solid: .66; --cC-solid: .15;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f15; --surface: #121821; --surface-2: #18202b; --surface-3: #202a37;
    --border: #232d3a; --border-strong: #334155;
    --text: #e8edf4; --text-2: #aab6c5; --text-3: #8a97a8;
    --primary: #2dd4bf; --primary-hover: #5eead4; --primary-soft: #0f3431; --on-primary: #04211e;
    --danger: #f87171; --danger-soft: #3a1618; --warn: #fbbf24; --warn-soft: #36270a;
    --ok: #4ade80; --ok-soft: #0f2e1b; --info: #7aa7ff; --info-soft: #14233f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 6px 20px -6px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7);
    --cL-bg: .29; --cC-bg: .055; --cL-bd: .70; --cC-bd: .12; --cL-fg: .93; --cC-fg: .045; --cL-solid: .72; --cC-solid: .14;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f15; --surface: #121821; --surface-2: #18202b; --surface-3: #202a37;
  --border: #232d3a; --border-strong: #334155;
  --text: #e8edf4; --text-2: #aab6c5; --text-3: #8a97a8;
  --primary: #2dd4bf; --primary-hover: #5eead4; --primary-soft: #0f3431; --on-primary: #04211e;
  --danger: #f87171; --danger-soft: #3a1618; --warn: #fbbf24; --warn-soft: #36270a;
  --ok: #4ade80; --ok-soft: #0f2e1b; --info: #7aa7ff; --info-soft: #14233f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 6px 20px -6px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7);
  --cL-bg: .29; --cC-bg: .055; --cL-bd: .70; --cC-bd: .12; --cL-fg: .93; --cC-fg: .045; --cL-solid: .72; --cC-solid: .14;
  color-scheme: dark;
}

.c {
  --c-bg: oklch(var(--cL-bg) var(--cC-bg) var(--h));
  --c-bd: oklch(var(--cL-bd) var(--cC-bd) var(--h));
  --c-fg: oklch(var(--cL-fg) var(--cC-fg) var(--h));
  --c-solid: oklch(var(--cL-solid) var(--cC-solid) var(--h));
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: var(--primary); }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: -.01em; }
.muted { color: var(--text-3); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Layout ============ */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 8px;
  padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-size: 20px; }
.brand-title { font-weight: 800; letter-spacing: -.02em; font-size: 16px; line-height: 1.2; }
.brand-sub { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14.5px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a svg { font-size: 19px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.nav .nav-badge { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--danger-soft); color: var(--danger); }
.side-foot { margin-top: auto; }
.side-card { padding: 14px; border-radius: var(--radius); background: var(--surface-2); font-size: 13px; }
.side-card .lbl { color: var(--text-3); font-weight: 600; font-size: 12px; }
.side-card .big { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--primary); transition: width .5s var(--ease); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 32px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; gap: 6px; }
.page-title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.week-pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 18px; transition: all .15s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.view { padding: 8px 32px 48px; outline: none; max-width: 1320px; width: 100%; }
.only-mobile { display: none !important; }

.tabbar { display: none; }

/* ============ Primitives ============ */
.grid { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-t { margin: 0; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-t svg { color: var(--text-3); font-size: 17px; }
.section-t { font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 10px; }
.link-btn { background: none; border: 0; color: var(--primary); font-weight: 650; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 6px; text-decoration: none; }
.link-btn:hover { color: var(--primary-hover); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  font-weight: 650; font-size: 14px; color: var(--text); transition: all .15s var(--ease); white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { font-size: 16px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; line-height: 1.6; }
.badge svg { font-size: 12px; }
.b-neutral { background: var(--surface-2); color: var(--text-2); }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-primary { background: var(--primary-soft); color: var(--primary); }

.chip-code { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--c-bg); color: var(--c-fg); border: 1px solid color-mix(in oklab, var(--c-bd) 35%, transparent); white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-solid); flex-shrink: 0; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 11px; border: 1px solid var(--border); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; min-height: 32px; border-radius: 8px; font-weight: 650; font-size: 13px; color: var(--text-2); position: relative; transition: all .15s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.seg button .rec { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.input, .select, textarea.input {
  min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.help { font-size: 12.5px; color: var(--text-3); }

.empty { text-align: center; padding: 28px 16px; color: var(--text-3); font-size: 14px; }
.empty svg { font-size: 28px; margin-bottom: 6px; color: var(--text-3); }

.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.5; }
.callout svg { font-size: 18px; margin-top: 1px; }
.callout.info { background: var(--info-soft); color: color-mix(in srgb, var(--info) 70%, var(--text)); }
.callout.warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 75%, var(--text)); }
.callout.danger { background: var(--danger-soft); color: color-mix(in srgb, var(--danger) 75%, var(--text)); }
.callout.ok { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 75%, var(--text)); }
.callout b { font-weight: 700; }

/* ============ Dashboard ============ */
.hello { margin: 6px 0 20px; }
.hello h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.hello p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dash-col { display: grid; gap: 16px; min-width: 0; }

.hero {
  position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius);
  background: var(--c-bg, var(--surface)); border: 1px solid color-mix(in oklab, var(--c-bd, var(--border)) 40%, transparent);
}
.hero.neutral { background: var(--surface); border-color: var(--border); }
.hero-k { font-size: 12.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--c-fg, var(--text-3)); display: flex; align-items: center; gap: 8px; }
.hero-k .live { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-name { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin: 8px 0 4px; line-height: 1.2; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--c-fg, var(--text-3)); }
.hero-count { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.hero-count b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero .progress { margin-top: 12px; background: color-mix(in oklab, var(--c-bd, var(--border)) 22%, transparent); }
.hero .progress > i { background: var(--c-solid, var(--primary)); }
.hero-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat .k { font-size: 12.5px; color: var(--text-3); font-weight: 650; }
.stat .v { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.stat .s { font-size: 12px; color: var(--text-3); }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 62px 1fr; gap: 14px; position: relative; padding: 0 0 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-time { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); padding-top: 11px; line-height: 1.3; }
.tl-time small { display: block; color: var(--text-3); }
.tl-body {
  border-radius: var(--radius-sm); padding: 11px 14px; background: var(--c-bg); border-left: 4px solid var(--c-bd);
  display: flex; gap: 12px; align-items: center; justify-content: space-between; min-width: 0; cursor: pointer; transition: transform .15s var(--ease);
}
.tl-body:hover { transform: translateX(2px); }
.tl-item.past .tl-body > div:first-child, .tl-item.past .tl-time { opacity: .5; }
.tl-item.now .tl-body { box-shadow: 0 0 0 2px var(--c-bd); }
.tl-name { font-weight: 700; color: var(--text); font-size: 14.5px; line-height: 1.3; }
.tl-sub { font-size: 12.5px; color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.tl-sub span { display: inline-flex; align-items: center; gap: 4px; }
.att-q { display: flex; gap: 4px; flex-shrink: 0; }
.att-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid color-mix(in oklab, var(--c-bd) 45%, transparent);
  background: var(--surface); color: var(--text-3); font-size: 16px; transition: all .15s var(--ease);
}
.att-btn:hover { color: var(--text); }
.att-btn.on-var { background: var(--ok); border-color: var(--ok); color: #fff; }
.att-btn.on-yok { background: var(--danger); border-color: var(--danger); color: #fff; }

.risk-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--border); cursor: pointer; }
.risk-row:first-child { border-top: 0; padding-top: 0; }
.risk-row .nm { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.risk-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.risk-row .num { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.risk-row .progress { grid-column: 1 / -1; }
.lvl-ok > i { background: var(--ok) !important; }
.lvl-warn > i { background: var(--warn) !important; }
.lvl-danger > i { background: var(--danger) !important; }
.lvl-muted > i { background: var(--text-3) !important; }

.gno-mini { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.gno-mini .v { font-size: 38px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.gno-mini .arrow { color: var(--text-3); font-size: 20px; margin-bottom: 8px; }

/* ============ Timetable ============ */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tt-wrap { overflow-x: auto; padding: 0; }
.tt { --ppm: 1.12px; display: grid; grid-template-columns: 58px repeat(5, minmax(128px, 1fr)); min-width: 760px; }
.tt-head { position: sticky; top: 0; z-index: 3; padding: 12px 8px; text-align: center; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--border); background: var(--surface); }
.tt-head.today { color: var(--primary); }
.tt-head.today::after { content: ""; display: block; width: 22px; height: 3px; border-radius: 3px; background: var(--primary); margin: 5px auto 0; }
.tt-head small { display: block; font-weight: 500; color: var(--text-3); font-size: 11.5px; }
.tt-times { position: relative; border-right: 1px solid var(--border); }
.tt-time { position: absolute; right: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-3); transform: translateY(-6px); }
.tt-day { position: relative; border-right: 1px solid var(--border); }
.tt-day:last-child { border-right: 0; }
.tt-day.today { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.tt-line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); }
.tt-lunch {
  position: absolute; left: 0; right: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--text-3);
  background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--border) 60%, transparent) 6px 7px);
}
.tt-now { position: absolute; left: -4px; right: 0; height: 2px; background: var(--danger); z-index: 4; pointer-events: none; }
.tt-now::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.blk {
  position: absolute; border-radius: 9px; padding: 6px 8px; overflow: hidden; text-align: left; z-index: 2;
  background: var(--c-bg); border: 1px solid color-mix(in oklab, var(--c-bd) 38%, transparent); border-left: 3.5px solid var(--c-bd);
  color: var(--text); display: flex; flex-direction: column; gap: 1px; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.blk:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); z-index: 5; }
.blk.lab { background-image: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in oklab, var(--c-bd) 13%, transparent) 7px 9px); }
.blk.opt { border-style: dashed; border-left-style: solid; }
.blk.conf-kritik { box-shadow: 0 0 0 2px var(--danger); }
.blk.conf-dikkat { box-shadow: 0 0 0 2px var(--warn); }
.blk.conf-dusuk { box-shadow: 0 0 0 1.5px var(--text-3); }
.blk .b-code { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--c-fg); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.blk .b-code svg { font-size: 12px; }
.blk.conf-kritik .b-code svg { color: var(--danger); }
.blk.conf-dikkat .b-code svg { color: var(--warn); }
.blk.conf-dusuk .b-code svg { color: var(--text-3); }
.blk.short .b-name { -webkit-line-clamp: 1; }
.blk.short .b-room { display: none; }
.blk .b-name { font-weight: 700; font-size: 12.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blk .b-room { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk.narrow .b-name { font-size: 11.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--text-2); padding: 12px 16px; border-top: 1px solid var(--border); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg-sw { width: 22px; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1.5px solid var(--text-3); }
.lg-sw.dash { border-style: dashed; }
.lg-sw.lab { background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--border-strong) 4px 6px); border-color: var(--border-strong); }
.lg-sw.cf { border-color: var(--warn); border-width: 2px; }

.sec-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.sec-item { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.sec-item .top { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; min-width: 0; }
.sec-item .top span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec-item .when { font-size: 12px; color: var(--text-3); }

.conf-list { display: flex; flex-direction: column; gap: 8px; }
.conf-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); align-items: start; }
.conf-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; }
.conf-item .t { font-weight: 650; font-size: 14px; }
.conf-item .d { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.day-tabs { display: none; }
.agenda { display: none; }

/* ============ Courses ============ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.fchip { border: 1px solid var(--border); background: var(--surface); border-radius: 99px; padding: 0 14px; min-height: 36px; font-weight: 650; font-size: 13.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; transition: all .15s var(--ease); }
.fchip:hover { border-color: var(--border-strong); color: var(--text); }
.fchip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.fchip .n { font-size: 11.5px; opacity: .7; }
.search { position: relative; margin-left: auto; min-width: 220px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .input { padding-left: 36px; min-height: 38px; border-radius: 99px; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ccard {
  position: relative; text-align: left; padding: 16px 16px 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.ccard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c-solid); }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.ccard .top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ccard h3 { margin: 0; font-size: 16.5px; font-weight: 750; letter-spacing: -.015em; line-height: 1.3; }
.ccard .teacher { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.ccard .sched { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--text-2); }
.ccard .sched div { display: flex; gap: 8px; }
.ccard .sched b { font-weight: 650; color: var(--text); min-width: 30px; }
.ccard .meta { display: flex; gap: 0; border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.ccard .meta div { flex: 1; text-align: center; border-right: 1px solid var(--border); }
.ccard .meta div:last-child { border-right: 0; }
.ccard .meta .k { font-size: 11px; color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.ccard .meta .v { font-weight: 750; font-size: 15px; }
.ccard .att { display: flex; flex-direction: column; gap: 5px; }
.ccard .att .row { font-size: 12.5px; justify-content: space-between; color: var(--text-2); }

.hist { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.g { font-family: var(--mono); font-weight: 600; font-size: 11.5px; padding: 1px 6px; border-radius: 5px; }
.g-pass { background: var(--ok-soft); color: var(--ok); }
.g-cond { background: var(--warn-soft); color: var(--warn); }
.g-fail { background: var(--danger-soft); color: var(--danger); }
.g-none { background: var(--surface-2); color: var(--text-3); }

/* ============ Drawer ============ */
.drawer-wrap { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgba(8, 12, 20, .45); animation: fade .2s var(--ease); }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: slide .28s var(--ease); outline: none;
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-wrap.closing .scrim { animation: fade .16s reverse forwards; }
.drawer-wrap.closing .drawer { animation: slide .16s reverse forwards; }
.dr-head { padding: 20px 22px 16px; background: var(--c-bg); border-bottom: 1px solid color-mix(in oklab, var(--c-bd) 30%, transparent); position: relative; }
.dr-head .close { position: absolute; top: 14px; right: 14px; }
.dr-head h2 { margin: 8px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; padding-right: 40px; }
.dr-body { overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.info { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.info .k { font-size: 11.5px; font-weight: 650; color: var(--text-3); }
.info .v { font-weight: 700; font-size: 14px; }
.info.span2 { grid-column: span 2; }
.info.span3 { grid-column: 1 / -1; }

.att-grid { display: grid; gap: 14px; }
.att-sess-h { font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
.att-sess-h b { color: var(--text); font-weight: 700; }
.att-weeks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.att-cell {
  position: relative; height: 40px; border-radius: 9px; border: 1px dashed var(--border-strong); background: var(--surface);
  color: var(--text-3); display: grid; place-items: center; padding: 0; transition: all .12s var(--ease);
}
.att-cell:hover { border-color: var(--text-3); }
.att-cell .wn { position: absolute; top: 3px; left: 6px; font-size: 10.5px; font-weight: 700; line-height: 1; }
.att-cell svg { font-size: 16px; margin-top: 6px; stroke-width: 2.6; }
.att-cell.var { border: 1px solid var(--ok); background: var(--ok-soft); color: var(--ok); }
.att-cell.yok { border: 1px solid var(--danger); background: var(--danger-soft); color: var(--danger); }
.att-cell.cur { box-shadow: 0 0 0 2px var(--primary); border-color: transparent; }
.att-cell.future:not(.var):not(.yok) { opacity: .5; }

.grade-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grade-out { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); flex-wrap: wrap; }
.info .v .muted { font-size: 12.5px; }
.grade-out .avg { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.letter { display: inline-grid; place-items: center; min-width: 44px; height: 32px; padding: 0 8px; border-radius: 9px; font-family: var(--mono); font-weight: 600; font-size: 14px; }

/* ============ Tasks ============ */
.task-form { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; }
.task-group { margin-top: 18px; }
.task-group h3 { font-size: 13px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.task { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; transition: opacity .2s; }
.task.done { opacity: .6; }
.task.done .tt-title { text-decoration: line-through; }
.check { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; color: transparent; font-size: 14px; padding: 0; transition: all .15s var(--ease); }
.check:hover { border-color: var(--primary); }
.check.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tt-title { font-weight: 650; font-size: 14.5px; }
.tt-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

/* ============ Academic ============ */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.kpi .k { font-size: 12.5px; font-weight: 650; color: var(--text-3); }
.kpi .s { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.delta-up { color: var(--ok); font-weight: 700; }
.delta-down { color: var(--danger); font-weight: 700; }
.acad { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.chart { width: 100%; height: auto; display: block; overflow: visible; stroke: none; stroke-width: 1; }
.chart .hit { outline: none; cursor: default; }
.chart .hit:focus-visible { fill: color-mix(in srgb, var(--primary) 8%, transparent); }
.chart text { font-family: var(--font); fill: var(--text-3); font-size: 11px; }
.chart .val { fill: var(--text); font-weight: 700; font-size: 11.5px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: 7px 10px; border-radius: 8px; font-size: 12.5px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); box-shadow: var(--shadow-md); z-index: 5; }
.chart-tip b { font-weight: 700; }
.sim-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 108px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--border); }
.sim-row:first-child { border-top: 0; }
.sim-row .nm { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sim-row .nm span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-row .old { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sim-sticky { position: sticky; top: 80px; }
.term { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 8px; overflow: hidden; }
.term summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 650; }
.term summary::-webkit-details-marker { display: none; }
.term summary .chev { margin-left: auto; transition: transform .2s var(--ease); color: var(--text-3); }
.term[open] summary .chev { transform: rotate(180deg); }
.term table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.term td, .term th { padding: 8px 14px; border-top: 1px solid var(--border); text-align: left; }
.term th { font-size: 11.5px; color: var(--text-3); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
.term td.r, .term th.r { text-align: right; }
.target-box { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
input[type="range"] { accent-color: var(--primary); width: 100%; }

/* ============ Settings ============ */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.scale-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

/* ============ Toast ============ */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); padding: 10px 12px 10px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; animation: rise .25s var(--ease); }
.toast button { background: transparent; border: 0; color: var(--primary-soft); font-weight: 700; padding: 4px 8px; border-radius: 6px; }
:root[data-theme="dark"] .toast button { color: var(--primary-hover); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .dash, .acad { grid-template-columns: 1fr; }
  .sim-sticky { position: static; }
}
@media (max-width: 1024px) {
  :root { --side-w: 76px; }
  .brand > div:last-child, .nav a span, .nav .nav-badge, .side-foot { display: none; }
  .brand { justify-content: center; padding: 4px 0 18px; }
  .nav a { justify-content: center; padding: 12px; }
  .kpis, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-form { grid-template-columns: 1fr 1fr; }
  .task-form .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .page-title { font-size: 20px; }
  .view { padding: 4px 16px calc(96px + env(safe-area-inset-bottom)); }
  .only-mobile { display: grid !important; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; min-height: 52px; justify-content: center; border-radius: 12px; text-decoration: none; color: var(--text-3); font-size: 11px; font-weight: 650; position: relative; }
  .tabbar a svg { font-size: 22px; }
  .tabbar a[aria-current="page"] { color: var(--primary); }
  .tabbar a[aria-current="page"] svg { stroke-width: 2.4; }
  .tabbar .nav-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; font-size: 10px; border-radius: 99px; background: var(--danger); color: #fff; display: grid; place-items: center; padding: 0 4px; }
  .hello h2 { font-size: 23px; }
  .tl-item { grid-template-columns: 44px 1fr; gap: 10px; }
  .tl-time { font-size: 12px; }
  .tl-body { padding: 10px 10px 10px 12px; gap: 8px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat .v { font-size: 20px; }
  .card-pad { padding: 16px; }
  .hero { padding: 18px; }
  .hero-name { font-size: 21px; }
  .tt-wrap.card { display: none; }
  .legend-card { display: none; }
  .day-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 12px; position: sticky; top: 64px; z-index: 10; background: var(--bg); padding: 4px 0; }
  .day-tabs button { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 8px 0; min-height: 52px; font-weight: 700; font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; line-height: 1.2; position: relative; }
  .day-tabs button small { font-weight: 500; font-size: 11px; color: var(--text-3); }
  .day-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
  .day-tabs button[aria-pressed="true"] small { color: inherit; opacity: .75; }
  .day-tabs .cf-dot { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
  .agenda { display: block; }
  .search { margin-left: 0; width: 100%; }
  .course-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info.span2 { grid-column: 1 / -1; }
  .grade-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .task-form { grid-template-columns: 1fr 1fr; }
  .kpi .v { font-size: 24px; }
  .set-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; top: 6vh; border-radius: 18px 18px 0 0; animation-name: up; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .dr-head { border-radius: 18px 18px 0 0; }
  .sim-row { grid-template-columns: minmax(0, 1fr) 96px; }
  .sim-row .old { grid-column: 1; grid-row: 2; margin-top: -6px; }
  .sim-row select { grid-row: 1 / span 2; grid-column: 2; }
  .toast-wrap { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 400px) {
  .stats, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .att-q .att-btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .tabbar, .topbar-right, .toolbar .btn { display: none !important; }
  .app { grid-template-columns: 1fr; }
  body { background: #fff; }
}

/* ============ Kilit ekranı ============ */
.lock { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%), var(--bg); }
.lock-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-md); padding: 32px 28px 24px; text-align: center; }
.lock-mark { width: 52px; height: 52px; border-radius: 15px; font-size: 26px; margin: 0 auto 14px; }
.lock-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.lock-sub { margin: 6px 0 22px; color: var(--text-2); font-size: 14.5px; }
.lock-form { display: grid; gap: 14px; text-align: left; }
.lock-form .btn { min-height: 46px; font-size: 15px; }
.lock-form .btn:disabled { opacity: .7; cursor: progress; }
.lock-remember { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); cursor: pointer; min-height: 32px; }
.lock-remember input { width: 18px; height: 18px; accent-color: var(--primary); }
.lock-err { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 600; }
.lock-foot { margin: 18px 0 0; }

/* ============ Eşitleme ============ */
.sync-pill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 11px; font-size: 13px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.sync-pill svg { font-size: 16px; }
.sync-pill.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.steps a { font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 760px) {
  .sync-pill { width: 40px; padding: 0; justify-content: center; }
  .sync-pill span { display: none; }
}

/* ============ Ana ekrana ekle ============ */
.install-banner { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; padding: 10px 8px 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.install-banner img { border-radius: 10px; flex-shrink: 0; }
.ib-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ib-text b { font-size: 14.5px; }
.ib-text span { font-size: 12.5px; color: var(--text-3); }
.install-banner .ib-close { border: 0; background: transparent; width: 36px; height: 36px; }
.steps svg { vertical-align: -2px; margin-left: 2px; color: var(--primary); }
@media (display-mode: standalone) {
  .topbar { padding-top: max(14px, env(safe-area-inset-top)); }
}
.toast-wrap { width: calc(100% - 32px); max-width: 520px; }
.toast { max-width: 100%; }

/* ============ Çalışma ============ */
.study-tabs { margin-bottom: 4px; }
.study-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; min-height: 36px; border-radius: 8px; font-weight: 650; font-size: 14px; color: var(--text-2); text-decoration: none; }
.study-tabs a svg { font-size: 16px; }
.study-tabs a:hover { color: var(--text); }
.study-tabs a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }
.study-tabs .n { font-size: 11.5px; font-weight: 700; padding: 0 6px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); }
.study-tabs .n.late { background: var(--danger-soft); color: var(--danger); }
.study-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; margin-top: 16px; align-items: start; }
.ss-big { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.ss-big b { font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.ss-big span { color: var(--text-2); font-size: 14px; }
.tw-list { display: flex; flex-direction: column; gap: 6px; }
.tw-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--c-bg); border-left: 3px solid var(--c-bd); }
.tw-main { min-width: 0; }
.tw-course { font-size: 12px; font-weight: 650; color: var(--text-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tw-course .dot { width: 7px; height: 7px; }
.tw-topic { font-weight: 650; font-size: 14px; line-height: 1.35; }
.study-list { display: flex; flex-direction: column; gap: 10px; }
.study-course { overflow: hidden; padding: 0; }
.study-course > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) 140px auto; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.study-course > summary::-webkit-details-marker { display: none; }
.study-course > summary .dot { width: 12px; height: 12px; }
.study-course > summary .chev { color: var(--text-3); transition: transform .2s var(--ease); }
.study-course[open] > summary .chev { transform: rotate(180deg); }
.study-course[open] > summary { border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--c-bg) 60%, transparent); }
.sc-name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.sc-sub { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.sc-body { padding: 8px 16px 16px; }
.sc-note { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.topics { list-style: none; margin: 0; padding: 0; }
.topic { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 6px; border-bottom: 1px dashed var(--border); border-radius: 8px; }
.topic:last-child { border-bottom: 0; }
.topic .check { margin-top: 2px; }
.topic.cur { background: color-mix(in srgb, var(--primary) 7%, transparent); border-bottom-color: transparent; }
.topic.behind .wk { color: var(--warn); }
.topic.done .topic-title { color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 60%, transparent); }
.topic-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.topic-meta .wk { font-weight: 700; color: var(--text-2); }
.topic-meta .badge { font-size: 11px; padding: 0 7px; }
.topic-title { font-weight: 650; font-size: 14.5px; line-height: 1.4; margin-top: 2px; }
.topic-prep { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.topic-divider { list-style: none; display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 12px; font-weight: 700; color: var(--info); text-transform: uppercase; letter-spacing: .05em; }
.topic-divider::before, .topic-divider::after { content: ""; flex: 1; border-top: 1.5px dashed color-mix(in srgb, var(--info) 45%, transparent); }
.flag { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); display: grid; place-items: center; padding: 0; font-size: 15px; transition: all .15s var(--ease); }
.flag:hover { color: var(--warn); border-color: var(--warn); }
.flag.on { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.flag.on svg { fill: currentColor; }
.sc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.sc-info .lbl { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.eval-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sources { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); display: grid; gap: 4px; }
.sc-more { margin-top: 12px; font-size: 13.5px; color: var(--text-2); }
.sc-more > summary { cursor: pointer; font-weight: 650; color: var(--primary); font-size: 13.5px; padding: 4px 0; }
.sc-more p { margin: 8px 0; line-height: 1.55; }
.sc-src { margin: 12px 0 0; }
.sc-src a { display: inline-flex; align-items: center; gap: 4px; }
.grade-inputs { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important; }
@media (max-width: 1024px) {
  .study-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .study-course > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .study-course > summary .sc-prog { grid-column: 2 / 3; grid-row: 2; }
  .sc-sub { white-space: normal; }
  .topic { gap: 10px; padding: 10px 2px; }
  .study-tabs { display: flex; }
  .study-tabs a { flex: 1; justify-content: center; }
}
.topic .check, .tw-row .check { width: 28px; height: 28px; }
@media (max-width: 760px) {
  .topic .check, .tw-row .check { width: 32px; height: 32px; border-radius: 9px; }
  .flag { width: 36px; height: 36px; }
}

/* ============ Takvim, tatil ve kaynaklar ============ */
.tt-holiday { position: absolute; left: 0; right: 0; z-index: 3; display: grid; place-items: center; padding: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--text-2);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bg) 88%, transparent) 0 8px, color-mix(in srgb, var(--surface-3) 88%, transparent) 8px 10px); }
.tt-holiday span { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; }
.att-cell.holiday { cursor: default; border-style: solid; background: var(--surface-2); color: var(--text-3); }
.att-cell.holiday svg { margin-top: 6px; font-size: 14px; stroke-width: 2; }
.task.event { grid-template-columns: auto 1fr auto; }
.ev-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: var(--surface-2); color: var(--text-2); }
.ev-sinav { background: var(--info-soft); color: var(--info); }
.ev-tatil { background: var(--ok-soft); color: var(--ok); }
.ev-kayit { background: var(--warn-soft); color: var(--warn); }
.sources-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sources-list li { padding: 10px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.sources-list li:first-child { border-top: 0; padding-top: 0; }
.sources-list a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.callout a { color: inherit; font-weight: 700; }
