/* YKS Takip Paneli — /takip
 * Sade çalışma alanı: nötr zemin, beyaz yüzeyler, ince çizgi, az gölge, marka yeşili.
 * Tüm kurallar .tp-* / .takip-body altında; site geneline sızmaz. style.css'in global
 * etiket kuralları (header, nav, section, h2{text-align:center}) sonda nötrlenir.
 */
.takip-body {
    --tp-bg: #f5f6f4;
    --tp-surface: #ffffff;
    --tp-surface-2: #fafbfa;
    --tp-line: #e2e5e1;
    --tp-line-strong: #c9cec8;
    --tp-ink: #1d2725;
    --tp-ink-2: #3c4744;
    --tp-muted: #5b6662;          /* beyaz üzerinde ~5.9:1 */
    --tp-primary: #00746c;        /* marka yeşili */
    --tp-primary-ink: #005a54;
    --tp-primary-soft: #e5f2f0;
    --tp-primary-soft-2: #cfe7e3;
    --tp-accent: #ff7500;
    --tp-danger: #b3261e;
    --tp-danger-soft: #fdecea;
    --tp-warn: #7a4f00;
    --tp-warn-soft: #fff4dc;
    --tp-radius: 10px;
    --tp-radius-sm: 8px;
    /* Konu özet durumları */
    --tp-k0: #ffffff;
    --tp-k1: #e5f2f0;
    --tp-k2: #00746c;
    /* Konu durum kademeleri */
    --tp-d1-bg: #fdeeee; --tp-d1-fg: #b42318; --tp-d1-bd: #f3b8b3;
    --tp-d2-bg: #fff2e0; --tp-d2-fg: #a14f00; --tp-d2-bd: #f5c98e;
    --tp-d3-bg: #fff8d6; --tp-d3-fg: #7a5d00; --tp-d3-bd: #ecd77a;
    --tp-d4-bg: #ecf7e4; --tp-d4-fg: #3b7417; --tp-d4-bd: #b6dd9c;
    --tp-d5-bg: #dff3e6; --tp-d5-fg: #146c36; --tp-d5: #1f9d55;
    /* Grafik serileri (dataviz referans paleti) */
    --tp-s1: #2a78d6; --tp-s2: #eb6834; --tp-s3: #1baf7a; --tp-s4: #eda100;
    --tp-s5: #e87ba4; --tp-s6: #008300; --tp-s7: #4a3aa7; --tp-s8: #e34948;
    --tp-grid: #e6e9e5;
    background: var(--tp-bg);
    color: var(--tp-ink);
}
/* Ders işaretleri: sayfalar arasında aynı ders = aynı renk */
.takip-body [data-ders] { --ders: #7b8783; }
.takip-body [data-ders="turkce"] { --ders: #d9480f; }
.takip-body [data-ders="edebiyat"] { --ders: #c2255c; }
.takip-body [data-ders="matematik"] { --ders: #1c7ed6; }
.takip-body [data-ders="geometri"] { --ders: #4263eb; }
.takip-body [data-ders="fizik"] { --ders: #7048e8; }
.takip-body [data-ders="kimya"] { --ders: #0c8599; }
.takip-body [data-ders="biyoloji"] { --ders: #2f9e44; }
.takip-body [data-ders="tarih"] { --ders: #a86b00; }
.takip-body [data-ders="cografya"] { --ders: #e67700; }
.takip-body [data-ders="felsefe"] { --ders: #862e9c; }
.takip-body [data-ders="mantik"] { --ders: #5f3dc4; }
.takip-body [data-ders="psikoloji"] { --ders: #a61e4d; }
.takip-body [data-ders="sosyoloji"] { --ders: #5c940d; }
.takip-body [data-ders="din"] { --ders: #495057; }
.tp-ders-nokta {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: var(--ders); flex: none;
}

/* ---------- Üst alan ---------- */
.tp-appbar {
    position: sticky; top: 0; z-index: 950;
    display: flex; align-items: center; gap: 16px;
    height: 56px; padding: 0 20px;
    background: var(--tp-surface); border-bottom: 1px solid var(--tp-line);
}
.tp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tp-ink); min-width: 0; }
.tp-brand img { width: 38px; height: 32px; object-fit: contain; border-radius: 6px; }
.tp-brand-ad { font-weight: 700; font-size: 16px; white-space: nowrap; }
.tp-brand-panel {
    font-size: 12.5px; font-weight: 600; color: var(--tp-primary-ink);
    background: var(--tp-primary-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.tp-appbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tp-siteye-don { font-size: 13.5px; color: var(--tp-muted); text-decoration: none; white-space: nowrap; }
.tp-siteye-don:hover { color: var(--tp-ink); text-decoration: underline; }
.tp-kullanici { position: relative; }
.tp-kullanici-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px;
    border: 1px solid var(--tp-line); border-radius: 999px; background: var(--tp-surface);
    font: inherit; font-size: 14px; color: var(--tp-ink); cursor: pointer; max-width: 220px;
}
.tp-kullanici-btn .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-avatar {
    width: 26px; height: 26px; border-radius: 50%; background: var(--tp-primary); color: #fff;
    display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none;
}

/* ---------- İskelet ---------- */
.tp-app {
    max-width: 1440px; margin: 0 auto; padding: 20px 24px 48px;
    display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 28px;
}
.tp-main { min-width: 0; }
.tp-content:focus { outline: none; }

/* ---------- Yan menü ---------- */
.tp-nav { position: sticky; top: 76px; align-self: start; }
.tp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tp-nav a, .tp-nav .tp-nav-diger {
    display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px;
    border-radius: var(--tp-radius-sm); color: var(--tp-ink-2); text-decoration: none;
    font-size: 14.5px; font-weight: 500; background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%;
}
.tp-nav a i, .tp-nav .tp-nav-diger i { width: 18px; text-align: center; color: var(--tp-muted); font-size: 15px; }
.tp-nav a:hover { background: #eceeeb; color: var(--tp-ink); }
.tp-nav a[aria-current="page"] { background: var(--tp-primary-soft); color: var(--tp-primary-ink); font-weight: 650; }
.tp-nav a[aria-current="page"] i { color: var(--tp-primary); }
.tp-nav .tp-nav-diger { display: none; }
.tp-nav-alt { margin-top: 18px; padding: 14px 12px 0; border-top: 1px solid var(--tp-line); display: flex; flex-direction: column; gap: 7px; }
.tp-nav-alt a, .tp-nav-alt button {
    all: unset; cursor: pointer; font-size: 12.5px; color: var(--tp-muted); line-height: 1.4;
}
.tp-nav-alt a:hover, .tp-nav-alt button:hover { color: var(--tp-ink); text-decoration: underline; }
.tp-nav-alt a:focus-visible, .tp-nav-alt button:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 2px; border-radius: 3px; }
.tp-nav-koc { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--tp-radius-sm); background: #efeaff; color: #3b2f86; font-size: 13px; }
.tp-nav-koc strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.tp-nav-koc a { display: inline; min-height: 0; padding: 0; color: #3b2f86; font-size: 12.5px; text-decoration: underline; }

/* ---------- Sayfa başlığı ---------- */
.tp-top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 4px 0 18px; }
.tp-top-text { min-width: 0; flex: 1 1 260px; }
.tp-top h1 { font-size: 24px; line-height: 1.25; margin: 0; color: var(--tp-ink); font-weight: 700; letter-spacing: -0.01em; }
.tp-top .tp-sub { color: var(--tp-muted); font-size: 14px; margin: 3px 0 0; }
.tp-top .tp-top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tp-kisi-rozet { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #3b2f86; background: #efeaff; padding: 2px 8px; border-radius: 999px; margin-right: 6px; }

/* ---------- Yüzeyler ---------- */
.tp-card {
    background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
    padding: 18px; min-width: 0;
}
.tp-card + .tp-card { margin-top: 14px; }
.tp-card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tp-card-head h2, .tp-card-head h3 { margin: 0; font-size: 16px; font-weight: 650; color: var(--tp-ink); }
.tp-card-head .tp-card-sub { color: var(--tp-muted); font-size: 13.5px; }
.tp-card-head .tp-sag { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tp-link { color: var(--tp-primary-ink); text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; }
.tp-link:hover { text-decoration: underline; }
.tp-bugun-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.tp-yan { display: flex; flex-direction: column; gap: 14px; }
.tp-yan .tp-card + .tp-card { margin-top: 0; }
.tp-yan .tp-card { padding: 16px; }
.tp-yan h2 { font-size: 14px; margin: 0 0 8px; color: var(--tp-muted); font-weight: 600; text-transform: none; }
.tp-buyuk-sayi { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tp-bilgi-satir { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-top: 1px solid var(--tp-line); }
.tp-bilgi-satir:first-of-type { border-top: 0; }
.tp-bilgi-satir span:first-child { color: var(--tp-muted); }
.tp-bilgi-satir strong { font-variant-numeric: tabular-nums; text-align: right; }

.tp-empty { text-align: center; color: var(--tp-muted); padding: 26px 12px; font-size: 14px; }
.tp-empty i { font-size: 22px; display: block; margin-bottom: 8px; color: #9aa39f; }
.tp-empty .tp-btn { margin-top: 12px; }
.tp-state { text-align: center; padding: 64px 16px; color: var(--tp-muted); }
.tp-state i { font-size: 28px; color: var(--tp-primary); }
.tp-state h2 { color: var(--tp-ink); margin: 12px 0 6px; }
.tp-banner {
    display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--tp-radius);
    margin-bottom: 14px; font-size: 14px; background: var(--tp-warn-soft); color: var(--tp-warn); border: 1px solid #f1d9a6;
}
.tp-banner.info { background: var(--tp-primary-soft); color: var(--tp-primary-ink); border-color: var(--tp-primary-soft-2); }
.tp-banner .tp-btn { margin-left: auto; }
.tp-banner > div:not(.tp-banner-eylem) { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.tp-banner-eylem { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; flex: 0 0 auto; }
.tp-banner-eylem .tp-btn { margin-left: 0; white-space: nowrap; }
@media (max-width: 600px) { .tp-banner { flex-wrap: wrap; } .tp-banner-eylem { margin-left: 30px; } }

/* ---------- Düğmeler ---------- */
.tp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 40px; padding: 0 15px; border-radius: var(--tp-radius-sm); border: 1px solid transparent;
    font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
    background: var(--tp-primary); color: #fff;
}
.tp-btn:hover { background: var(--tp-primary-ink); }
.tp-btn.secondary { background: var(--tp-surface); color: var(--tp-primary-ink); border-color: var(--tp-line-strong); }
.tp-btn.secondary:hover { background: var(--tp-primary-soft); }
.tp-btn.ghost { background: transparent; color: var(--tp-ink-2); border-color: transparent; }
.tp-btn.ghost:hover { background: #eceeeb; }
.tp-btn.danger { background: var(--tp-danger); color: #fff; }
.tp-btn.danger:hover { background: #8f1e18; }
.tp-btn.small { min-height: 34px; padding: 0 11px; font-size: 13.5px; }
.tp-btn:disabled { opacity: .55; cursor: not-allowed; }
.tp-btn.tamamla { background: var(--tp-surface); color: var(--tp-primary-ink); border-color: var(--tp-primary); min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.tp-btn.tamamla:hover { background: var(--tp-primary); color: #fff; }
.tp-icon-btn {
    width: 36px; height: 36px; border-radius: var(--tp-radius-sm); border: 1px solid transparent;
    background: transparent; color: var(--tp-muted); cursor: pointer; display: inline-grid; place-items: center; flex: none; font-size: 15px;
}
.tp-icon-btn:hover { background: #eceeeb; color: var(--tp-ink); }
.tp-icon-btn.cerceve { border-color: var(--tp-line); background: var(--tp-surface); }
.tp-icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.tp-btn:focus-visible, .tp-icon-btn:focus-visible, .tp-nav a:focus-visible, .tp-nav .tp-nav-diger:focus-visible,
.tp-chip:focus-visible, .tp-seg button:focus-visible, .tp-menu button:focus-visible, .tp-menu a:focus-visible,
.tp-kullanici-btn:focus-visible, .tp-link:focus-visible, .tp-konu-satir:focus-visible, .tp-konu-kutu:focus-visible,
.tp-gun-btn:focus-visible, .tp-satir-btn:focus-visible, .tp-brand:focus-visible, .tp-siteye-don:focus-visible,
.tp-check:focus-visible, .tp-kitap:focus-visible {
    outline: 3px solid var(--tp-accent); outline-offset: 2px;
}

/* Segment (Gün/Hafta, Liste/Pano, TYT/AYT) */
.tp-seg { display: inline-flex; background: #eceeeb; border-radius: var(--tp-radius-sm); padding: 3px; gap: 2px; }
.tp-seg button {
    border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--tp-ink-2);
    padding: 0 12px; min-height: 32px; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.tp-seg button[aria-pressed="true"] { background: var(--tp-surface); color: var(--tp-ink); box-shadow: 0 1px 2px rgba(20, 30, 28, .12); }
.tp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-chip {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--tp-line); background: var(--tp-surface); color: var(--tp-ink-2); border-radius: 999px;
    padding: 0 12px; min-height: 34px; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.tp-chip:hover { border-color: var(--tp-line-strong); }
.tp-chip[aria-pressed="true"] { background: var(--tp-ink); color: #fff; border-color: var(--tp-ink); }
.tp-chip[aria-pressed="true"] .tp-ders-nokta { box-shadow: 0 0 0 2px #fff; }
.tp-chips.kaydir { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }

/* ⋯ menü (popover) */
.tp-menu-kap { position: relative; display: inline-flex; }
.tp-menu {
    position: fixed; z-index: 1200; min-width: 200px; max-width: calc(100vw - 16px);
    background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-radius);
    box-shadow: 0 8px 24px rgba(20, 30, 28, .14); padding: 5px; display: flex; flex-direction: column;
}
.tp-menu.yukari { top: auto; bottom: calc(100% + 4px); }
.tp-menu[hidden] { display: none; }
.tp-menu button, .tp-menu a {
    display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 6px;
    background: none; border: 0; font: inherit; font-size: 14px; color: var(--tp-ink); cursor: pointer; text-align: left; text-decoration: none; white-space: nowrap;
}
.tp-menu button i, .tp-menu a i { width: 16px; text-align: center; color: var(--tp-muted); }
.tp-menu button:hover, .tp-menu a:hover, .tp-menu button:focus, .tp-menu a:focus { background: #f0f2ef; outline: none; }
.tp-menu .tehlike, .tp-menu .tehlike i { color: var(--tp-danger); }
.tp-menu hr { border: 0; border-top: 1px solid var(--tp-line); margin: 4px 2px; }

/* ---------- Form ---------- */
.tp-form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-form.tek { grid-template-columns: minmax(0, 1fr); }
.tp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tp-field.full { grid-column: 1 / -1; }
.tp-field label, .tp-field .tp-label { font-size: 13.5px; font-weight: 600; color: var(--tp-ink-2); }
.tp-field .tp-hint { font-size: 12.5px; color: var(--tp-muted); }
.tp-field input, .tp-field select, .tp-field textarea, .tp-input {
    width: 100%; min-height: 42px; padding: 9px 11px; border-radius: var(--tp-radius-sm);
    border: 1px solid var(--tp-line-strong); background: var(--tp-surface); color: var(--tp-ink);
    font: inherit; font-size: 16px; /* iOS yakınlaştırmayı önler */ box-sizing: border-box;
}
.tp-field textarea { min-height: 80px; resize: vertical; }
.tp-field input[type="checkbox"], .tp-field input[type="radio"] {
    width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--tp-primary);
}
.tp-field input:focus, .tp-field select:focus, .tp-field textarea:focus, .tp-input:focus {
    outline: 3px solid rgba(0, 116, 108, .2); border-color: var(--tp-primary);
}
.tp-field [aria-invalid="true"], .tp-input[aria-invalid="true"] { border-color: var(--tp-danger); background: #fffafa; }
.tp-birlesik { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 8px; }
.tp-err { color: var(--tp-danger); font-size: 13px; font-weight: 500; }
.tp-err:empty { display: none; }
.tp-form-error {
    grid-column: 1 / -1; background: var(--tp-danger-soft); color: var(--tp-danger);
    padding: 10px 12px; border-radius: var(--tp-radius-sm); font-size: 14px;
}
.tp-form-error:empty { display: none; }
.tp-oneri { font-size: 13px; color: var(--tp-muted); }
.tp-oneri .tp-link { font-size: 13px; }
.tp-ayrinti { grid-column: 1 / -1; border-top: 1px solid var(--tp-line); padding-top: 12px; }
.tp-ayrinti > summary {
    cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tp-primary-ink); list-style: none;
    display: inline-flex; align-items: center; gap: 7px; min-height: 32px;
}
.tp-ayrinti > summary::-webkit-details-marker { display: none; }
.tp-ayrinti > summary::before { content: "+"; font-weight: 700; width: 14px; text-align: center; }
.tp-ayrinti[open] > summary::before { content: "−"; }
.tp-ayrinti > .tp-form { margin-top: 10px; }
.tp-kaydet-durum { font-size: 13px; color: var(--tp-muted); min-height: 18px; }
.tp-kaydet-durum.ok { color: var(--tp-primary-ink); }
.tp-kaydet-durum.hata { color: var(--tp-danger); }

/* ---------- Diyalog: kısa = ortada, form = yan panel (mobilde tam ekran) ---------- */
.tp-dialog {
    border: 0; padding: 0; color: var(--tp-ink); background: var(--tp-surface);
    border-radius: 14px; width: min(460px, calc(100vw - 24px)); max-width: calc(100vw - 16px); max-height: calc(100vh - 32px);
    box-shadow: 0 16px 48px rgba(20, 30, 28, .22);
}
.tp-dialog[open] { position: fixed; inset: 0; margin: auto; }
.tp-dialog.panel[open] {
    margin: 0 0 0 auto; height: 100vh; height: 100dvh; max-height: none; width: min(520px, 100vw); max-width: 100vw; border-radius: 0;
}
.tp-dialog::backdrop { background: rgba(20, 28, 26, .38); }
.tp-dialog-inner { display: flex; flex-direction: column; max-height: inherit; height: 100%; margin: 0; }
.tp-dialog:not(.panel) .tp-dialog-inner { max-height: calc(100vh - 32px); }
.tp-dialog-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--tp-line); }
.tp-dialog-head h2 { font-size: 17px; margin: 0; flex: 1; text-align: left; font-weight: 650; }
.tp-dialog-body { padding: 18px; overflow-y: auto; flex: 1; }
.tp-dialog-foot {
    display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px;
    border-top: 1px solid var(--tp-line); flex-wrap: wrap; background: var(--tp-surface);
}
.tp-dialog-foot:empty { display: none; }
.tp-dialog-foot .sol { margin-right: auto; }
.tp-kirli-uyari {
    width: 100%; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px;
    background: var(--tp-warn-soft); color: var(--tp-warn); padding: 8px 10px; border-radius: var(--tp-radius-sm);
}
.tp-kirli-uyari span { margin-right: auto; }

/* ---------- Görev satırı ---------- */
.tp-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tp-task {
    display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    padding: 12px 4px 12px 0; border-top: 1px solid var(--tp-line); min-width: 0;
}
.tp-tasks > .tp-task:first-child { border-top: 0; }
.tp-task::before { content: ""; align-self: stretch; border-radius: 4px; background: var(--ders, #b9c1bd); min-height: 36px; }
.tp-task-body { min-width: 0; }
.tp-task-ust { font-size: 12.5px; font-weight: 600; color: var(--tp-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tp-task-title { font-size: 15.5px; font-weight: 600; color: var(--tp-ink); overflow-wrap: anywhere; line-height: 1.35; }
.tp-task-meta { font-size: 13.5px; color: var(--tp-muted); margin-top: 2px; overflow-wrap: anywhere; }
.tp-task-actions { display: flex; gap: 4px; align-items: center; }
.tp-task.done .tp-task-title { color: var(--tp-muted); text-decoration: line-through; text-decoration-color: rgba(91, 102, 98, .5); }
.tp-task.done::before { opacity: .45; }
.tp-task.skip { opacity: .65; }
.tp-tamam-rozet { display: inline-flex; align-items: center; gap: 6px; color: var(--tp-primary-ink); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tp-kismen-rozet { display: inline-flex; align-items: center; gap: 6px; color: var(--tp-warn); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tp-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: #eef0ed; color: var(--tp-ink-2); white-space: nowrap;
}
.tp-badge.ok { background: var(--tp-primary-soft); color: var(--tp-primary-ink); }
.tp-badge.warn { background: var(--tp-warn-soft); color: var(--tp-warn); }
.tp-badge.koc { background: #efeaff; color: #3b2f86; }
.tp-badge.danger { background: var(--tp-danger-soft); color: var(--tp-danger); }
.tp-tamamlananlar { margin-top: 6px; border-top: 1px solid var(--tp-line); }
.tp-tamamlananlar > summary {
    cursor: pointer; list-style: none; padding: 12px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--tp-muted);
    display: flex; align-items: center; gap: 8px;
}
.tp-tamamlananlar > summary::-webkit-details-marker { display: none; }
.tp-tamamlananlar > summary::before { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; transition: transform .15s; }
.tp-tamamlananlar[open] > summary::before { transform: rotate(90deg); }
.tp-ilerleme-ince { height: 6px; background: #eceeeb; border-radius: 999px; overflow: hidden; }
.tp-ilerleme-ince span { display: block; height: 100%; background: var(--tp-primary); border-radius: 999px; }

/* ---------- Programım ---------- */
.tp-kontrol { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-hafta-nav { display: inline-flex; align-items: center; gap: 2px; }
.tp-hafta-etiket { font-weight: 650; font-size: 15px; min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }
.tp-kontrol .tp-sag { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tp-filtre-ozet { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--tp-primary-soft); color: var(--tp-primary-ink); border-radius: 999px; padding: 3px 4px 3px 10px; font-weight: 600; }
.tp-filtre-ozet button { border: 0; background: none; cursor: pointer; color: inherit; width: 24px; height: 24px; border-radius: 50%; }
.tp-filtre-ozet button:hover { background: rgba(0, 116, 108, .12); }
.tp-filtre-panel { padding: 12px; min-width: 260px; gap: 10px; }
.tp-filtre-panel .tp-field select, .tp-filtre-panel .tp-field input { min-height: 38px; font-size: 15px; }

.tp-gunler { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.tp-gun-btn {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; min-height: 58px;
    border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); background: var(--tp-surface);
    font: inherit; color: var(--tp-ink-2); cursor: pointer;
}
.tp-gun-btn .g { font-size: 12px; font-weight: 600; color: var(--tp-muted); }
.tp-gun-btn .n { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-gun-btn .s { font-size: 11px; color: var(--tp-muted); min-height: 14px; }
.tp-gun-btn.bugun .g { color: var(--tp-primary-ink); }
.tp-gun-btn.bugun { border-color: var(--tp-primary); }
.tp-gun-btn[aria-pressed="true"] { background: var(--tp-ink); border-color: var(--tp-ink); color: #fff; }
.tp-gun-btn[aria-pressed="true"] .g, .tp-gun-btn[aria-pressed="true"] .s { color: #d9dfdc; }

.tp-hafta {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid var(--tp-line); border-radius: var(--tp-radius); background: var(--tp-surface); overflow: hidden;
}
.tp-hgun { min-width: 0; border-left: 1px solid var(--tp-line); display: flex; flex-direction: column; min-height: 200px; }
.tp-hgun:first-child { border-left: 0; }
.tp-hgun.bugun { background: #f3faf8; }
.tp-hgun.hedef-ustu { background: var(--tp-primary-soft); outline: 2px dashed var(--tp-primary); outline-offset: -3px; }
.tp-hgun-bas { padding: 10px 10px 8px; border-bottom: 1px solid var(--tp-line); display: flex; align-items: baseline; gap: 6px; }
.tp-hgun-bas strong { font-size: 13.5px; }
.tp-hgun-bas .tarih { font-size: 12.5px; color: var(--tp-muted); }
.tp-hgun-bas .sayi { margin-left: auto; font-size: 12px; color: var(--tp-muted); font-variant-numeric: tabular-nums; }
.tp-hgun.bugun .tp-hgun-bas strong { color: var(--tp-primary-ink); }
.tp-hgun-list { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tp-kgorev {
    display: grid; grid-template-columns: 20px minmax(0, 1fr) 24px; gap: 5px; align-items: start;
    padding: 6px 2px 6px 5px; border-radius: 6px; border-left: 3px solid var(--ders, #b9c1bd); background: var(--tp-surface-2);
}
.tp-kgorev[draggable="true"] { cursor: grab; }
.tp-kgorev.suruklenen { opacity: .4; }
.tp-kgorev .t { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-kgorev .m { font-size: 12px; color: var(--tp-muted); line-height: 1.3; overflow-wrap: break-word; }
.tp-kgorev.done .t { color: var(--tp-muted); text-decoration: line-through; }
.tp-kgorev .tp-icon-btn { width: 24px; height: 24px; font-size: 13px; }
.tp-check {
    width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--tp-line-strong); background: var(--tp-surface);
    display: grid; place-items: center; cursor: pointer; color: transparent; font-size: 11px; padding: 0;
}
.tp-check[aria-pressed="true"] { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-check.kismen { background: var(--tp-warn-soft); border-color: #d49b1b; color: var(--tp-warn); }
.tp-hgun-ekle {
    margin: 0 6px 6px; border: 1px dashed transparent; background: none; color: var(--tp-muted); border-radius: 6px;
    font: inherit; font-size: 12.5px; min-height: 30px; cursor: pointer; text-align: left; padding: 0 8px;
}
.tp-hgun:hover .tp-hgun-ekle, .tp-hgun-ekle:focus-visible { border-color: var(--tp-line-strong); color: var(--tp-primary-ink); }
.tp-hgun-ekle:focus-visible { outline: 3px solid var(--tp-accent); }
.tp-hgun-bos { font-size: 12px; color: #9aa39f; padding: 2px 6px; }

.tp-hedefler { margin-bottom: 14px; }
.tp-hedefler > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 10px 14px;
    font-size: 14px;
}
.tp-hedefler[open] > summary { border-radius: var(--tp-radius) var(--tp-radius) 0 0; }
.tp-hedefler > summary::-webkit-details-marker { display: none; }
.tp-hedefler > summary strong { font-size: 14.5px; }
.tp-hedefler > summary .ozet { color: var(--tp-muted); font-size: 13.5px; }
.tp-hedefler > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; margin-left: auto; color: var(--tp-muted); transition: transform .15s; }
.tp-hedefler[open] > summary::after { transform: rotate(180deg); }
.tp-hedef-list { border: 1px solid var(--tp-line); border-top: 0; border-radius: 0 0 var(--tp-radius) var(--tp-radius); background: var(--tp-surface); padding: 4px 14px; }
.tp-hedef {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) auto; gap: 14px; align-items: center;
    padding: 10px 0; border-top: 1px solid var(--tp-line);
}
.tp-hedef:first-child { border-top: 0; }
.tp-hedef .ad { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.tp-hedef .sayi { font-size: 13px; color: var(--tp-muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.tp-dagitim-ozet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.tp-dagitim-ozet div { background: var(--tp-surface-2); border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); padding: 8px 10px; }
.tp-dagitim-ozet span { display: block; font-size: 12px; color: var(--tp-muted); }
.tp-dagitim-ozet strong { font-size: 17px; font-variant-numeric: tabular-nums; }

/* ---------- Konular ---------- */
.tp-konu-ust { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.tp-konu-ust .tp-sag { margin-left: auto; }
.tp-ders-ozet { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.tp-ders-ozet h2 { margin: 0; font-size: 19px; color: var(--tp-ink); font-weight: 650; display: flex; align-items: center; gap: 9px; }
.tp-ders-ozet p { margin: 2px 0 0; color: var(--tp-muted); font-size: 14px; }
.tp-ders-ozet .tp-ilerleme-ince { flex: 1 1 160px; max-width: 280px; }
.tp-konu-liste { list-style: none; margin: 0; padding: 0; }
.tp-konu-satir {
    width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 16px; gap: 12px; align-items: center;
    padding: 11px 6px; border: 0; border-top: 1px solid var(--tp-line); background: none; font: inherit; color: inherit; cursor: pointer; text-align: left;
}
.tp-konu-liste li:first-child .tp-konu-satir { border-top: 0; }
.tp-konu-satir:hover { background: var(--tp-surface-2); }
.tp-konu-satir .ad { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.tp-konu-satir .alt { font-size: 12.5px; color: var(--tp-muted); }
.tp-konu-satir .durum { font-size: 13px; color: var(--tp-muted); white-space: nowrap; }
.tp-konu-satir .ok-ikon { color: #9aa39f; font-size: 12px; }
.tp-dikon { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--tp-line-strong); display: inline-grid; place-items: center; font-size: 10px; color: transparent; box-sizing: border-box; }
.tp-dikon.devam { border-color: var(--tp-d2-fg); background: linear-gradient(90deg, var(--tp-d2-fg) 50%, transparent 50%); }
.tp-dikon.tamam { border-color: var(--tp-d5); background: var(--tp-d5); color: #fff; }
.tp-konu-grup { margin: 16px 0 4px; font-size: 13px; font-weight: 650; color: var(--tp-ink-2); }
.tp-konu-grup + p { margin: 0 0 6px; font-size: 12.5px; color: var(--tp-muted); }
.tp-pano { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tp-konu-kutu {
    min-height: 76px; border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); background: var(--tp-k0);
    padding: 10px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; text-align: left;
    font: inherit; color: var(--tp-ink); cursor: pointer;
}
.tp-konu-kutu .ad { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tp-konu-kutu .alt { font-size: 12px; color: var(--tp-muted); display: flex; align-items: center; gap: 5px; }
/* Konu durum renkleri: başlanmadı açık kırmızı → çalışıyor turuncu → konu bitti sarı →
   soru bitti açık yeşil → tamamlandı yeşil. Renk tek başına bilgi taşımaz (metin + ikon da var). */
[data-durum="baslanmadi"] { --tp-db: var(--tp-d1-bg); --tp-dc: var(--tp-d1-fg); --tp-dk: var(--tp-d1-bd); }
[data-durum="calisiliyor"] { --tp-db: var(--tp-d2-bg); --tp-dc: var(--tp-d2-fg); --tp-dk: var(--tp-d2-bd); }
[data-durum="konu_calisildi"] { --tp-db: var(--tp-d3-bg); --tp-dc: var(--tp-d3-fg); --tp-dk: var(--tp-d3-bd); }
[data-durum="soru_pratigi_tamam"] { --tp-db: var(--tp-d4-bg); --tp-dc: var(--tp-d4-fg); --tp-dk: var(--tp-d4-bd); }
[data-durum="denemede_pekisti"] { --tp-db: var(--tp-d5-bg); --tp-dc: var(--tp-d5-fg); --tp-dk: var(--tp-d5); }
.tp-konu-satir[data-durum] { background: var(--tp-db); box-shadow: inset 4px 0 0 var(--tp-dk); padding-left: 12px; border-top-color: #fff; }
.tp-konu-satir[data-durum]:hover { background: var(--tp-db); filter: brightness(0.97); }
.tp-konu-liste li + li .tp-konu-satir { margin-top: 3px; }
.tp-konu-satir[data-durum] .durum { color: var(--tp-dc); font-weight: 600; }
.tp-konu-kutu[data-durum] { background: var(--tp-db); border-color: var(--tp-dk); }
.tp-konu-kutu[data-durum] .alt { color: var(--tp-dc); font-weight: 600; }
.tp-konu-kutu[data-durum="denemede_pekisti"] { background: var(--tp-d5); border-color: var(--tp-d5); color: #fff; }
.tp-konu-kutu[data-durum="denemede_pekisti"] .alt { color: #e6f7ec; }
.tp-alt-list li[data-durum] { background: var(--tp-db); box-shadow: inset 3px 0 0 var(--tp-dk); padding-left: 10px; padding-right: 6px; border-top-color: #fff; }
.tp-durum-nokta { width: 12px; height: 12px; border-radius: 50%; background: var(--tp-db); border: 2px solid var(--tp-dk); flex: none; }
.tp-durum-sec label[data-durum]:has(input:checked) { background: var(--tp-db); border-color: var(--tp-dk); color: var(--tp-ink); }
.tp-konu-kutu:hover { border-color: var(--tp-line-strong); }
.tp-durum-sec { display: flex; flex-direction: column; gap: 6px; }
.tp-durum-sec label {
    display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 1px solid var(--tp-line);
    border-radius: var(--tp-radius-sm); cursor: pointer; font-size: 14.5px;
}
.tp-durum-sec label:has(input:checked) { border-color: var(--tp-primary); background: var(--tp-primary-soft); font-weight: 600; }
.tp-durum-sec input { accent-color: var(--tp-primary); width: 18px; height: 18px; margin: 0; }
.tp-alt-list { list-style: none; margin: 0; padding: 0; }
.tp-alt-list li { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tp-line); font-size: 14px; }
.tp-alt-list li:first-child { border-top: 0; }
.tp-alt-list select { min-height: 36px; font-size: 14px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--tp-line-strong); background: var(--tp-surface); font-family: inherit; color: var(--tp-ink); }

/* ---------- Kaynaklar ---------- */
.tp-kitaplar { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tp-kitap {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left;
    background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 14px;
    font: inherit; color: inherit; cursor: pointer; text-decoration: none;
}
.tp-kitap:hover { border-color: var(--tp-line-strong); }
.tp-kitap-ikon { width: 44px; height: 56px; border-radius: 4px 7px 7px 4px; background: var(--ders); color: #fff; display: grid; place-items: center; font-size: 17px; box-shadow: inset 4px 0 0 rgba(0, 0, 0, .15); }
.tp-kitap .ad { font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.tp-kitap .alt { font-size: 13px; color: var(--tp-muted); margin-top: 2px; }
.tp-kitap .ilerleme { font-size: 13.5px; margin-top: 8px; color: var(--tp-ink-2); }
.tp-kitap .tp-ilerleme-ince { margin-top: 6px; }
.tp-kitap .devam { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--tp-primary-ink); }
.tp-bolumler { list-style: none; margin: 0; padding: 0; }
.tp-bolum { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--tp-line); }
.tp-bolum:first-child { border-top: 0; }
.tp-bolum .ad { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tp-bolum .alt { font-size: 13.5px; color: var(--tp-muted); margin-top: 2px; }
.tp-bolum .tp-ilerleme-ince { margin-top: 6px; max-width: 260px; }
.tp-bolum-eylem { display: flex; gap: 4px; align-items: center; }
.tp-sayac { display: flex; align-items: center; gap: 8px; }
.tp-sayac input { width: 90px; text-align: center; }

/* ---------- Denemeler ---------- */
.tp-deneme-list { list-style: none; margin: 0; padding: 0; }
.tp-deneme {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center;
    padding: 12px 0; border-top: 1px solid var(--tp-line);
}
.tp-deneme:first-child { border-top: 0; }
.tp-deneme .ad { font-size: 15px; font-weight: 600; color: var(--tp-ink); text-decoration: none; overflow-wrap: anywhere; }
.tp-deneme .ad:hover { text-decoration: underline; }
.tp-deneme .alt { font-size: 13px; color: var(--tp-muted); margin-top: 2px; }
.tp-deneme .net { text-align: right; font-variant-numeric: tabular-nums; }
.tp-deneme .net strong { font-size: 18px; display: block; line-height: 1.1; }
.tp-deneme .net span { font-size: 12px; color: var(--tp-muted); }
.tp-analiz-durum { display: flex; align-items: center; gap: 10px; justify-content: flex-end; min-width: 220px; font-size: 13px; color: var(--tp-muted); }
.tp-analiz-durum.tamam { color: var(--tp-primary-ink); font-weight: 600; }
.tp-dy { width: 100%; border-collapse: collapse; }
.tp-dy th, .tp-dy td { padding: 7px 4px; border-bottom: 1px solid var(--tp-line); text-align: left; vertical-align: middle; }
.tp-dy thead th { font-size: 12.5px; color: var(--tp-muted); font-weight: 600; }
.tp-dy th[scope="row"] { font-size: 14px; font-weight: 600; }
.tp-dy th[scope="row"] small { display: block; font-weight: 400; color: var(--tp-muted); font-size: 12px; }
.tp-dy input { width: 64px; min-height: 40px; text-align: center; font-size: 16px; border-radius: 6px; border: 1px solid var(--tp-line-strong); font-family: inherit; }
.tp-dy input:focus { outline: 3px solid rgba(0, 116, 108, .2); border-color: var(--tp-primary); }
.tp-dy input[aria-invalid="true"] { border-color: var(--tp-danger); }
.tp-dy .bos, .tp-dy .net { font-variant-numeric: tabular-nums; color: var(--tp-ink-2); white-space: nowrap; }
.tp-dy .net { font-weight: 700; color: var(--tp-ink); }
.tp-dy .satir-hata td { padding-top: 0; border-bottom: 1px solid var(--tp-line); }
.tp-dy .satir-hata:has(.tp-err:empty) { display: none; }
.tp-dy tfoot td, .tp-dy tfoot th { border-bottom: 0; font-weight: 700; padding-top: 10px; }
.tp-sonuc-ust { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.tp-sonuc-ust .toplam { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.tp-sonuc-ust .etiket { font-size: 13px; color: var(--tp-muted); }
.tp-tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.tp-tablo th, .tp-tablo td { padding: 9px 8px; border-bottom: 1px solid var(--tp-line); text-align: left; }
.tp-tablo thead th { color: var(--tp-muted); font-weight: 600; font-size: 12.5px; }
.tp-tablo .num { text-align: right; font-variant-numeric: tabular-nums; }
.tp-table-wrap { overflow-x: auto; }
.tp-analiz-kart { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); background: var(--tp-surface); }
.tp-analiz-kart + .tp-analiz-kart { margin-top: 10px; }
.tp-analiz-bas { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.tp-analiz-bas .ad { font-weight: 650; font-size: 15px; }
.tp-analiz-bas .alt { font-size: 13px; color: var(--tp-muted); }
.tp-analiz-bas .tp-sag { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tp-analiz-govde { border-top: 1px solid var(--tp-line); padding: 12px 14px; }
.tp-analiz-satir { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px 36px; gap: 8px; align-items: end; padding: 6px 0; }
.tp-analiz-satir .tp-field label { font-size: 12px; }
.tp-analiz-satir .tp-field input, .tp-analiz-satir .tp-field select { min-height: 40px; font-size: 15px; }
.tp-analiz-satir.ayrintili { grid-template-columns: minmax(0, 1fr) 64px 64px 64px 36px; }
.tp-analiz-satir .neden { grid-column: 1 / -1; }
.tp-analiz-satir > .tp-icon-btn { margin-bottom: 3px; }
.tp-kalan { font-size: 13.5px; margin: 8px 0; }
.tp-analiz-hata:not(:has(.tp-err:not(:empty))) { display: none; }
.tp-kalan.ok { color: var(--tp-primary-ink); font-weight: 600; }

/* ---------- Analizler / grafik ---------- */
.tp-stat-satir { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tp-stat { background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 14px 16px; }
.tp-stat .l { font-size: 13px; color: var(--tp-muted); }
.tp-stat .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.tp-stat .n { font-size: 12.5px; color: var(--tp-muted); margin-top: 2px; overflow-wrap: anywhere; }
.tp-stat .v.art { color: #1e7b45; } .tp-stat .v.azal { color: var(--tp-danger); }
.tp-chart { position: relative; width: 100%; margin: 0; }
.tp-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tp-chart .ax text { font-size: 11.5px; fill: var(--tp-muted); }
.tp-chart .grid line { stroke: var(--tp-grid); stroke-width: 1; }
.tp-chart .sifir { stroke: var(--tp-line-strong); stroke-width: 1; }
.tp-chart .hair { stroke: var(--tp-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tp-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--tp-ink-2); margin-top: 8px; }
.tp-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tp-chart-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.tp-tooltip {
    position: fixed; z-index: 3000; pointer-events: none; background: var(--tp-surface); color: var(--tp-ink);
    border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); padding: 8px 10px; font-size: 13px;
    box-shadow: 0 6px 20px rgba(20, 30, 28, .14); max-width: 260px;
}
.tp-tooltip .row { display: flex; justify-content: space-between; gap: 12px; }
.tp-sr-table > summary { cursor: pointer; font-size: 13px; color: var(--tp-primary-ink); margin-top: 10px; font-weight: 600; }
.tp-bars { display: flex; flex-direction: column; gap: 8px; }
.tp-bar-row { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13.5px; }
.tp-bar-row .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bar-track { height: 10px; background: #eef0ed; border-radius: 4px; overflow: hidden; }
.tp-bar-track span { display: block; height: 100%; background: var(--tp-s2); border-radius: 0 4px 4px 0; }
.tp-bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--tp-ink-2); }
.tp-acilir { border-top: 1px solid var(--tp-line); margin-top: 14px; padding-top: 4px; }
.tp-acilir > summary { cursor: pointer; font-size: 14.5px; font-weight: 650; padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.tp-acilir > summary::-webkit-details-marker { display: none; }
.tp-acilir > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; margin-left: auto; color: var(--tp-muted); }
.tp-acilir[open] > summary::after { transform: rotate(180deg); }

/* Analizler — sade ana görünüm: 3 kart → tek cümle → tek grafik → ders kartları → kapalı ayrıntı */
.takip-body { --tp-dyb-d: #2f9e64; --tp-dyb-y: #f08c3a; --tp-dyb-b: #cfd4ce; --tp-art: #1e7b45; --tp-azal: #b4530a; }
.tp-stat .v.bos { color: var(--tp-muted); }
.tp-degisim { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.tp-degisim.art { color: var(--tp-art); }
.tp-degisim.azal { color: var(--tp-azal); }
.tp-degisim.sabit { color: var(--tp-muted); }
.tp-degerlendirme { margin: -2px 2px 14px; font-size: 14.5px; line-height: 1.5; color: var(--tp-ink-2); }
.tp-net-kart .tp-card-head { align-items: center; justify-content: space-between; }
.tp-net-kart .tp-card-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.tp-chart .alan { fill: var(--tp-primary); fill-opacity: 0.07; stroke: none; }
.tp-chart .hedef { stroke: var(--tp-accent); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: 0.85; }
.tp-chart .etiket { font-size: 12px; font-weight: 600; fill: var(--tp-ink-2); paint-order: stroke; stroke: #fff; stroke-width: 3px; font-variant-numeric: tabular-nums; }
.tp-chart .etiket.son { font-size: 13px; font-weight: 700; fill: var(--tp-primary-ink); }
.tp-chart svg { touch-action: pan-y; }
.tp-chart svg.secilebilir { cursor: pointer; }
.tp-chart .secim { fill: var(--tp-primary); fill-opacity: 0.12; stroke: var(--tp-primary); stroke-opacity: 0.45; stroke-width: 1.5; }
.tp-deneme-gezgin { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tp-line); font-size: 14px; }
.tp-gezgin-metin { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tp-gezgin-ipucu { margin-left: auto; }
.tp-deneme-gezgin .tp-icon-btn[disabled] { opacity: 0.35; cursor: default; }
.tp-hedef-etiket { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tp-ink-2); font-variant-numeric: tabular-nums; }
.tp-hedef-cizgi { display: inline-block; width: 18px; border-top: 2px dashed var(--tp-accent); }
.tp-hedef-durum { margin: 8px 0 0; font-size: 13.5px; color: var(--tp-ink-2); }
.tp-geri { display: inline-flex; align-items: center; gap: 6px; }
.tp-tek-sonuc { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tp-tek-sonuc strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.tp-tek-sonuc span { color: var(--tp-muted); font-size: 13.5px; }
.tp-ders-kartlar { display: grid; grid-template-columns: repeat(var(--kolon, 4), minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.tp-ders-kart {
    display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: inherit; cursor: pointer;
    background: var(--tp-surface); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 12px 14px; min-height: 44px;
}
.tp-ders-kart:hover { border-color: var(--tp-line-strong); }
.tp-ders-kart:focus-visible { outline: 2px solid var(--tp-primary); outline-offset: 2px; }
.tp-ders-kart[aria-pressed="true"] { border-color: var(--tp-primary); box-shadow: inset 0 0 0 1px var(--tp-primary); background: var(--tp-surface-2); }
.tp-ders-kart .ad { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tp-muted); overflow-wrap: anywhere; }
.tp-ders-kart .net { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-ders-kart .fark { font-size: 13px; color: var(--tp-muted); }
.tp-ders-kart .ort { font-size: 12.5px; color: var(--tp-muted); font-variant-numeric: tabular-nums; }
.tp-ders-kart .tp-degisim.fark { color: inherit; }
.tp-ders-kart .tp-degisim.fark.art { color: var(--tp-art); }
.tp-ders-kart .tp-degisim.fark.azal { color: var(--tp-azal); }
.tp-ayrintili { margin-top: 0; border-top: 1px solid var(--tp-line); padding-top: 2px; }
.tp-ayrintili > summary { font-size: 15px; }
.tp-ayrinti-bolum { border-top: 1px solid var(--tp-line); padding: 14px 0 6px; }
.tp-ayrinti-bolum:first-of-type { border-top: 0; padding-top: 4px; }
.tp-ayrinti-bolum h3 { margin: 0 0 2px; font-size: 14.5px; font-weight: 650; }
.tp-ayrinti-bolum > p { margin: 0 0 10px; }
.tp-fark-cubuklar, .tp-dyb { display: flex; flex-direction: column; gap: 8px; }
.tp-fark-satir, .tp-dyb-satir { display: grid; grid-template-columns: minmax(96px, 28%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.tp-fark-satir .lbl, .tp-dyb-satir .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-fark-satir .val, .tp-dyb-satir .val { text-align: right; font-variant-numeric: tabular-nums; min-width: 64px; }
.tp-fark-iz { position: relative; height: 12px; background: linear-gradient(var(--tp-line-strong), var(--tp-line-strong)) center / 1px 100% no-repeat; }
.tp-fark-iz .cubuk { position: absolute; top: 1px; bottom: 1px; border-radius: 3px; }
.tp-fark-iz .cubuk.art { background: var(--tp-dyb-d); }
.tp-fark-iz .cubuk.azal { background: var(--tp-dyb-y); }
.tp-dyb-iz { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: #f1f3f0; }
.tp-dyb-iz .d, .tp-dyb-lejant i.d { background: var(--tp-dyb-d); }
.tp-dyb-iz .y, .tp-dyb-lejant i.y { background: var(--tp-dyb-y); }
.tp-dyb-iz .b, .tp-dyb-lejant i.b { background: var(--tp-dyb-b); }
.tp-dyb-lejant { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--tp-ink-2); margin-bottom: 8px; }
.tp-dyb-lejant span { display: inline-flex; align-items: center; gap: 5px; }
.tp-dyb-lejant i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.tp-dyb-lejant.kucuk { margin: 8px 0 0; font-size: 12px; gap: 4px 10px; }
.tp-isi th, .tp-isi td { white-space: nowrap; }
.tp-isi thead th { font-size: 12px; font-weight: 600; vertical-align: bottom; }
.tp-isi thead th .tp-isi-ad { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; color: var(--tp-ink-2); }
.tp-isi thead th .tp-muted { display: block; font-weight: 400; }
.tp-isi tbody th { font-weight: 500; text-align: left; display: flex; align-items: center; gap: 6px; }
.tp-isi td.num { text-align: center; min-width: 58px; font-variant-numeric: tabular-nums; }
.tp-isi td.yok { color: var(--tp-muted); background: #f3f4f2; }
/* Bugün › Son deneme */
.tp-son-deneme { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-son-degisim { font-size: 13.5px; margin-top: 8px; }
.tp-halka { width: 62px; height: 62px; flex: none; }
.tp-halka .iz { fill: none; stroke: #eef0ed; stroke-width: 8; }
.tp-halka .dilim { fill: none; stroke-width: 8; }
.tp-halka .dilim.d { stroke: var(--tp-dyb-d); }
.tp-halka .dilim.y { stroke: var(--tp-dyb-y); }
.tp-halka .dilim.b { stroke: var(--tp-dyb-b); }
.tp-halka .orta { font-size: 12.5px; font-weight: 700; fill: var(--tp-ink-2); }
@media (max-width: 700px) {
    .tp-ders-kartlar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-gezgin-metin { flex: 1 1 0; }
    .tp-gezgin-ipucu, .tp-deneme-gezgin > .tp-link { flex-basis: 100%; margin-left: 0; }
    .tp-fark-satir, .tp-dyb-satir { grid-template-columns: minmax(80px, 32%) minmax(0, 1fr) auto; font-size: 13px; }
}

/* ---------- Koç ---------- */
.tp-student {
    display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: center;
    padding: 12px 0; border-top: 1px solid var(--tp-line);
}
.tp-student:first-of-type { border-top: 0; }
.tp-student .nm { font-weight: 650; }
.tp-student .sm { font-size: 13px; color: var(--tp-muted); }
.tp-note { border-left: 3px solid #7c6fd0; background: #f6f4ff; padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-note + .tp-note { margin-top: 10px; }
.tp-note .by { display: block; font-size: 12px; color: var(--tp-muted); margin-top: 6px; white-space: normal; }
.tp-activity { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.tp-activity li { padding: 8px 0; border-bottom: 1px solid var(--tp-line); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Bildirim + geri al ---------- */
.tp-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3100;
    display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 24px);
    background: #1d2725; color: #fff; padding: 10px 10px 10px 16px; border-radius: 10px; font-size: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}
.tp-toast[hidden] { display: none; }
.tp-toast button { background: none; border: 0; color: #7fe0d3; font: inherit; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.tp-toast button:hover { background: rgba(255, 255, 255, .08); }
.tp-toast button:focus-visible { outline: 2px solid #7fe0d3; }

.tp-muted { color: var(--tp-muted); }
.tp-small { font-size: 13px; }
.tp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
    .tp-bugun-grid { grid-template-columns: minmax(0, 1fr); }
    .tp-yan { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 900px) {
    .tp-app { grid-template-columns: minmax(0, 1fr); padding: 14px 16px calc(84px + env(safe-area-inset-bottom)); gap: 0; }
    .tp-appbar { padding: 0 16px; }
    .tp-brand-ad { display: none; }
    .tp-kullanici-btn .ad { display: none; }
    /* Alt gezinme: ana 4 bölüm + Diğer */
    .tp-nav {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 900;
        background: var(--tp-surface); border-top: 1px solid var(--tp-line);
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    }
    .tp-nav ul { flex-direction: row; gap: 0; }
    .tp-nav li { flex: 1 1 0; min-width: 0; }
    .tp-nav li.tp-nav-extra, .tp-nav-alt, .tp-nav-koc { display: none; }
    .tp-nav a, .tp-nav .tp-nav-diger {
        flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; padding: 4px 2px;
        font-size: 11.5px; text-align: center; border-radius: 8px;
    }
    .tp-nav .tp-nav-diger { display: flex; }
    .tp-nav a i, .tp-nav .tp-nav-diger i { font-size: 18px; width: auto; }
    .tp-nav a span, .tp-nav .tp-nav-diger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
    .tp-nav a[aria-current="page"] { background: transparent; }
    .tp-nav .tp-nav-diger[aria-current="page"] { color: var(--tp-primary-ink); }
    .tp-top h1 { font-size: 21px; }
    .tp-top { align-items: flex-start; }
    .tp-top-text { flex-basis: 200px; }
    .tp-top .tp-top-actions.ana { width: 100%; }
    .tp-top .tp-top-actions.ana .tp-btn:not(.ghost):first-of-type { flex: 1; }
    .tp-form { grid-template-columns: minmax(0, 1fr); }
    .tp-student { grid-template-columns: minmax(0, 1fr); }
    .tp-stat-satir { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tp-stat-satir .tp-stat:first-child { grid-column: 1 / -1; }
    .tp-deneme { grid-template-columns: minmax(0, 1fr) auto; }
    .tp-analiz-durum { grid-column: 1 / -1; justify-content: space-between; min-width: 0; }
    .tp-hedef { grid-template-columns: minmax(0, 1fr) auto; }
    .tp-hedef .tp-hedef-bar { grid-column: 1 / -1; grid-row: 2; }
    .tp-dialog.panel[open], .tp-dialog[open].tam-mobil { width: 100vw; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
    .tp-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .tp-kontrol .tp-sag { margin-left: 0; }
    .tp-hafta-etiket { min-width: 0; }
}
@media (max-width: 520px) {
    .tp-card { padding: 14px; }
    .tp-task { gap: 10px; }
    .tp-task-actions .tp-btn.tamamla { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
    .tp-task-actions .tp-btn.tamamla .yazi { display: none; }
    .tp-gunler { gap: 4px; }
    .tp-gun-btn { padding: 6px 0; min-height: 54px; }
    .tp-gun-btn .n { font-size: 15px; }
    .tp-alt-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .tp-dy input { width: 54px; }
    .tp-dy th, .tp-dy td { padding: 6px 2px; }
    .tp-analiz-satir { grid-template-columns: minmax(0, 1fr) 64px 64px 32px; }
    .tp-bar-row { grid-template-columns: minmax(80px, 36%) minmax(0, 1fr) 52px; }
    .tp-pano { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-siteye-don span { display: none; }
    .tp-dagitim-ozet strong { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .takip-body * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
    .tp-check[aria-pressed="true"], .tp-konu-kutu[data-ozet="tamam"], .tp-dikon.tamam { border: 2px solid CanvasText; }
}

/* ---------- style.css global kurallarını panelde nötrle ---------- */
.tp-nav:empty, .tp-top:empty { display: none; }
.tp-app:has(.tp-nav:empty) { grid-template-columns: minmax(0, 1fr); }
.tp-app nav.tp-nav { max-width: none; margin: 0; flex-wrap: nowrap; justify-content: initial; }
.tp-app nav.tp-nav { display: block; }
.tp-nav ul { width: 100%; }
.tp-app h1, .tp-app h2, .tp-app h3, .tp-dialog h2, .tp-dialog h3 { text-align: left; color: var(--tp-ink); }
.tp-app .tp-state h2 { text-align: center; }
.takip-body main.tp-app { min-height: calc(100vh - 56px); }

/* ---------- Programım: Temel Görünüm (E-Tablolar benzeri) ----------
 * Marka tonları hafif: gün başlığı açık yeşil, hücre krem, konu bölümü şeftali, çizgiler sıcak kahve. */
.takip-body {
    --tp-krem: #fffdf8;
    --tp-seftali: #fff4e8;
    --tp-seftali-cizgi: #f1d6b6;
    --tp-turuncu-ink: #8f4700;
    --tp-kahve: #6b5a3e;
    --tp-kahve-cizgi: #e6ddcf;
    --tp-tamam-yuzey: #e9f5ee;
}
.tp-mod-satir { margin: -6px 0 12px; }
.tp-mod-sec button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; font-size: 14px; }
.tp-mod-sec button i { font-size: 13px; color: var(--tp-muted); }
.tp-mod-sec button[aria-pressed="true"] i { color: var(--tp-primary); }
.tp-kontrol.temel .tp-kaydet-durum { min-width: 150px; text-align: right; }
body.tp-genis.tp-temel-aktif .tp-app { grid-template-columns: minmax(0, 1fr); max-width: none; }
body.tp-genis.tp-temel-aktif .tp-nav { display: none; }

.tp-temel-kap { overflow-x: auto; border: 1px solid var(--tp-kahve-cizgi); border-radius: var(--tp-radius); background: var(--tp-krem); }
.tp-temel { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 840px; }
.tp-temel.tek { min-width: 0; border: 1px solid var(--tp-kahve-cizgi); border-radius: var(--tp-radius); overflow: hidden; background: var(--tp-krem); }
.tp-temel th {
    background: var(--tp-primary-soft); color: var(--tp-primary-ink); text-align: left; padding: 9px 10px 8px;
    border-left: 1px solid var(--tp-kahve-cizgi); border-bottom: 1px solid var(--tp-kahve-cizgi); font-weight: 650; vertical-align: bottom;
}
.tp-temel th:first-child, .tp-temel td:first-child { border-left: 0; }
.tp-temel th .gun { display: block; font-size: 14px; }
.tp-temel th .tarih { display: block; font-size: 12px; font-weight: 500; color: var(--tp-kahve); }
.tp-temel th.bugun { background: var(--tp-primary); color: #fff; }
.tp-temel th.bugun .tarih { color: #d7efeb; }
.tp-hucre {
    position: relative; vertical-align: top; padding: 0; background: var(--tp-krem);
    border-left: 1px solid var(--tp-kahve-cizgi); border-top: 1px solid var(--tp-kahve-cizgi);
}
.tp-temel tbody tr:first-child .tp-hucre { border-top: 0; }
.tp-hucre.bugun { background: #fbfefd; }
.tp-hucre.dolu { background: #fff; }
.tp-hucre.dolu::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--ders, transparent); }
.tp-hucre.tamam { background: var(--tp-tamam-yuzey); }
.tp-hucre.kismen { background: #fff8e8; }
.tp-hucre.secili { outline: 2px solid var(--tp-primary); outline-offset: -2px; z-index: 1; }
.tp-hucre.hata { outline: 2px dashed var(--tp-danger); outline-offset: -2px; }
.tp-hucre-metin {
    display: block; width: 100%; min-height: 44px; box-sizing: border-box; resize: none; overflow: hidden;
    border: 0; background: transparent; padding: 10px 30px 10px 11px; margin: 0;
    font: inherit; font-size: 14.5px; line-height: 1.45; color: var(--tp-ink);
    white-space: pre-wrap; overflow-wrap: break-word;
}
.tp-hucre-metin:focus { outline: none; }
.tp-hucre-metin::placeholder { color: #a39683; }
.tp-hucre.tamam .tp-hucre-metin { color: #37524a; }
.tp-hucre-araclar { position: absolute; top: 6px; right: 5px; display: flex; flex-direction: column; gap: 3px; align-items: center; }
.tp-hucre-check, .tp-hucre-ayrinti {
    width: 22px; height: 22px; border-radius: 50%; padding: 0; display: grid; place-items: center; cursor: pointer; font-size: 11px;
    border: 1.5px solid #cbbfa9; background: #fff; color: transparent;
}
.tp-hucre-check:hover { border-color: var(--tp-primary); color: var(--tp-primary); }
.tp-hucre-check[aria-pressed="true"] { background: var(--tp-primary); border-color: var(--tp-primary); color: #fff; }
.tp-hucre-ayrinti { border-color: transparent; background: transparent; color: var(--tp-kahve); font-size: 11px; }
.tp-hucre-ayrinti:hover { color: var(--tp-primary-ink); }
.tp-hucre-check:focus-visible, .tp-hucre-ayrinti:focus-visible { outline: 3px solid var(--tp-accent); outline-offset: 1px; }
.tp-hucre-hata { color: var(--tp-danger); font-size: 12px; }
.tp-hucre-soru {
    margin: 0 6px 6px; padding: 8px; border-radius: 8px; background: var(--tp-warn-soft); color: var(--tp-warn);
    font-size: 12.5px; display: flex; flex-direction: column; gap: 6px;
}
.tp-hucre-soru .tp-btn.small { min-height: 30px; padding: 0 9px; font-size: 12.5px; }
.tp-hucre-diger { background: #fff; color: var(--tp-ink); border-radius: 6px; padding: 6px 8px; white-space: pre-wrap; overflow-wrap: break-word; max-height: 140px; overflow: auto; }
.tp-temel tfoot td {
    padding: 7px 10px; border-left: 1px solid var(--tp-kahve-cizgi); border-top: 1px solid var(--tp-kahve-cizgi);
    background: #faf6ef; font-size: 13px; color: var(--tp-kahve); font-variant-numeric: tabular-nums;
}
.tp-temel tfoot td .etiket { display: block; font-size: 11px; color: #9a8b73; }

.tp-temel-konular { background: var(--tp-seftali); border: 1px solid var(--tp-seftali-cizgi); border-radius: var(--tp-radius); padding: 12px 14px; margin-bottom: 14px; }
.tp-temel-konular-bas { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.tp-temel-konular-bas::-webkit-details-marker { display: none; }
.tp-temel-konular-bas::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; margin-left: auto; color: var(--tp-kahve); }
.tp-temel-konular[open] > .tp-temel-konular-bas { margin-bottom: 8px; }
.tp-temel-konular[open] > .tp-temel-konular-bas::after { transform: rotate(180deg); }
.tp-temel-konular-bas h2 { margin: 0; font-size: 15px; color: var(--tp-turuncu-ink); }
.tp-temel-konular-bas span { color: var(--tp-kahve); }
.tp-konu-notlar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.tp-konu-not { display: grid; grid-template-columns: 190px minmax(0, 1fr) 32px; gap: 8px; align-items: start; position: relative; }
.tp-konu-not.hata .tp-hucre-metin { outline: 2px dashed var(--tp-danger); }
.tp-konu-not .tp-hucre-soru { grid-column: 1 / -1; margin: 0; }
.tp-not-etiket, .tp-konu-not .tp-hucre-metin, .tp-genel-not .tp-hucre-metin {
    border: 1px solid var(--tp-seftali-cizgi); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--tp-ink);
}
.tp-not-etiket { min-height: 40px; padding: 0 10px; font-weight: 600; color: var(--tp-turuncu-ink); box-sizing: border-box; width: 100%; }
.tp-konu-not .tp-hucre-metin { min-height: 40px; padding: 9px 11px; }
.tp-not-etiket:focus, .tp-konu-not .tp-hucre-metin:focus, .tp-genel-not .tp-hucre-metin:focus { outline: 2px solid var(--tp-primary); outline-offset: -1px; }
.tp-konu-not .tp-icon-btn { width: 32px; height: 40px; }
.tp-temel-not { margin-top: 16px; }
.tp-temel-not h2 { font-size: 15px; margin: 0; color: var(--tp-kahve); }
.tp-temel-not p { margin: 2px 0 8px; }
.tp-genel-not .tp-hucre-metin { min-height: 64px; padding: 10px 12px; border-color: var(--tp-kahve-cizgi); }
.tp-temel-gun-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.tp-temel-gun-bas strong { font-size: 16px; }
.tp-yapistir-onizle td { white-space: pre-wrap; font-size: 12.5px; max-width: 160px; vertical-align: top; border: 1px solid var(--tp-kahve-cizgi); }
.tp-hedef-notlar { padding: 10px 0; border-bottom: 1px solid var(--tp-line); display: flex; flex-direction: column; gap: 6px; }
.tp-hedef-not { display: flex; gap: 8px; align-items: baseline; font-size: 14px; flex-wrap: wrap; }
.tp-hedef-not span { white-space: pre-wrap; color: var(--tp-ink-2); }
.tp-hedef-notlar .tp-link { align-self: flex-start; }
.tp-task-title { white-space: pre-line; }
@media (max-width: 900px) {
    .tp-konu-not { grid-template-columns: minmax(0, 1fr) 32px; }
    .tp-konu-not .tp-hucre-metin { grid-column: 1 / -1; grid-row: 2; }
    .tp-kontrol.temel .tp-sag { width: 100%; }
    .tp-kontrol.temel .tp-kaydet-durum { text-align: left; }
    /* Klavye açıkken kayıt durumu görünür kalsın */
    .tp-kontrol.temel { position: sticky; top: 56px; z-index: 5; background: var(--tp-bg); padding: 6px 0; margin-bottom: 8px; }
    .tp-hucre-metin { font-size: 16px; min-height: 52px; }
    .tp-mod-sec { width: 100%; }
    .tp-mod-sec button { flex: 1; justify-content: center; padding: 0 8px; }
}

/* ---------- Canlı (beta) eklemeleri ---------- */
.tp-beta { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fff1d6; color: #8a4b00;
    font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; border: 1px solid #f3d29a; }
.tp-nav-koc.destek { background: #fff4e5; color: #7a4300; }
.tp-hafta-serit { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
    margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--tp-line); border-radius: var(--tp-radius-sm); background: var(--tp-surface); }
.tp-hafta-serit-metin { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tp-ink-2); min-width: 0; }
.tp-hafta-serit-metin > i { color: var(--tp-primary); font-size: 16px; }
.tp-hafta-serit-metin strong { color: var(--tp-ink); }
.tp-koc-ozel { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d9d2ff; border-radius: var(--tp-radius-sm); background: #f8f6ff; }
.tp-koc-ozel-bas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; color: #3b2f86; }
.tp-koc-ozel-bas .tp-kaydet-durum { margin-left: auto; }
.tp-koc-ozel-metin { width: 100%; box-sizing: border-box; min-height: 76px; resize: vertical; padding: 10px 12px; border: 1px solid #cfc6ff;
    border-radius: 8px; background: #fff; font: inherit; font-size: 14.5px; color: var(--tp-ink); line-height: 1.45; }
.tp-koc-ozel-metin:focus { outline: 2px solid #7c6fd0; outline-offset: 1px; }
.tp-koc-ozel-onceki { margin-top: 10px; }
.tp-koc-ozel-onceki summary { cursor: pointer; font-size: 13px; color: #3b2f86; margin-bottom: 8px; }
.tp-kocluk-tanitim { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
    margin: 0 0 14px; padding: 14px 16px; border-radius: var(--tp-radius); background: linear-gradient(135deg, #eef8f6, #f6f3ff);
    border: 1px solid var(--tp-primary-soft-2); }
.tp-kocluk-tanitim .ikon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tp-primary); color: #fff; font-size: 18px; }
.tp-kocluk-tanitim strong { display: block; font-size: 15px; color: var(--tp-ink); }
.tp-kocluk-tanitim p { margin: 4px 0 0; font-size: 13.5px; color: var(--tp-ink-2); line-height: 1.5; }
@media (max-width: 640px) {
    .tp-kocluk-tanitim { grid-template-columns: 1fr; }
    .tp-kocluk-tanitim .ikon { display: none; }
    .tp-hafta-serit .tp-btn { width: 100%; justify-content: center; }
}
[data-durum] .tp-dikon.devam { border-color: var(--tp-dc); background: linear-gradient(90deg, var(--tp-dc) 50%, transparent 50%); }
