/* Kocly Konu Takip — uygulamaya özgü stiller */

.mb { margin-bottom: 12px; }
.note { margin-top: 10px; }

/* Özet kartı */
.overview .big { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.overview .ring { flex: none; }
.stack-bar { display: flex; height: 10px; margin-top: 14px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.stack-bar i { display: block; height: 100%; width: 0; transition: width .4s ease; }
.stack-bar .done { background: #2f9e6b; }
.stack-bar .review { background: #5b8def; }
.stack-bar .studying { background: var(--yellow); }
.stack-bar.sm { height: 6px; margin-top: 8px; background: var(--surface); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; opacity: .85; }
.legend span { --c: #c9ddd8; display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.countdown { margin-top: 14px; }
.cd, .cd-empty { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); color: #fff; text-align: left; border: 0; }
.cd svg, .cd-empty svg { width: 22px; height: 22px; flex: none; color: var(--yellow); }
.cd > span { display: grid; }
.cd b { font-size: 17px; font-weight: 600; }
.cd .tiny { opacity: .78; }
.cd-empty { font-size: 13.5px; min-height: 48px; }

.parts { display: grid; gap: 12px; }
.part .bar { margin-top: 6px; }

/* Ders kutuları */
.subj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.subj-tile { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: left; }
.subj-tile .ring { flex: none; }
.st-name { display: grid; min-width: 0; }
.st-name b { font-weight: 600; font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 359px) { .subj-grid { grid-template-columns: 1fr; } }

.cta-card { display: flex; gap: 14px; align-items: center; }
.cta-card img { width: 72px; flex: none; }
.cta-card b { font-weight: 600; }
.cta-card p { margin: 2px 0 4px; }

/* Konular */
.subj-chips { position: sticky; top: 64px; z-index: 6; margin: 0 -16px 10px; padding: 6px 16px 8px; background: linear-gradient(var(--bg) 75%, transparent); }
.subj-chips .chip { min-height: 44px; }
.part-tag { padding: 1px 6px; border-radius: 6px; background: var(--teal-soft); color: var(--teal); font-weight: 600; }
.chip[aria-pressed="true"] .part-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.chip-pct { opacity: .7; }
.subj-head { padding: 14px; }
.subj-head b { font-weight: 600; font-size: 16px; }
.subj-head .ring { flex: none; }
.tools { display: grid; gap: 8px; margin-bottom: 8px; }
.tools .chip { min-height: 40px; }
.hint { margin: 2px 4px 10px; }

.topic-card { padding: 6px 10px; }
.topic { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); transition: opacity .18s; }
.topic:last-child { border-bottom: 0; }
.topic.leaving { opacity: .2; }
.st-btn {
  --c: #c9ddd8;
  flex: none; width: 44px; height: 44px; margin: 4px 4px 4px 0; padding: 0;
  display: grid; place-items: center;
  border: 2.5px solid var(--c); border-radius: 50%; background: #fff; color: #fff;
}
.st-btn svg { width: 20px; height: 20px; }
.topic.st-studying .st-btn { --c: var(--yellow); background: var(--yellow-soft); color: #8a5c00; }
.topic.st-done .st-btn { --c: var(--success); background: var(--success); }
.topic.st-review .st-btn { --c: #5b8def; background: #5b8def; }
.t-body { flex: 1; min-width: 0; display: grid; gap: 1px; min-height: 52px; padding: 6px 4px; border: 0; background: none; text-align: left; }
.t-name { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.topic.st-done .t-name { color: var(--ink-2); }

/* Konu ayrıntısı */
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.status-opt { --c: #c9ddd8; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 500; font-size: 14px; text-align: left; }
.status-opt i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.status-opt.st-studying { --c: var(--yellow); }
.status-opt.st-done { --c: var(--success); }
.status-opt.st-review { --c: #5b8def; }
.status-opt[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); font-weight: 600; }
.q-label { margin-top: 18px; }
.q-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); }
.q-num { font-size: 30px; font-weight: 600; min-width: 70px; text-align: center; color: var(--teal-deep); }
.q-btns { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.q-btns .btn { padding: 0 4px; min-height: 44px; }
.add-q { display: flex; gap: 8px; margin-top: 10px; }
.add-q .btn { flex: none; }

/* Ayarlar */
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.data-actions .btn { flex: 1 1 auto; }

/* Bilgi */
.info-block { padding: 14px; border-radius: 16px; background: var(--surface); margin-bottom: 10px; font-size: 13.5px; }
.info-block h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.info-block h3 svg { width: 18px; height: 18px; color: var(--teal); }
.info-block p + p { margin-top: 8px; }
