/* Kocly Net — uygulamaya özgü stiller */

.alan-seg { margin-top: 10px; }
.rule-line { display: flex; align-items: center; gap: 6px; margin: 12px 4px 12px; }
.rule-line svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* Ders satırları */
.subj-card { padding: 14px 14px 6px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 6px; font-weight: 600; font-size: 14px; }
.group-net { font-size: 13px; color: var(--teal); background: var(--teal-soft); padding: 2px 10px; border-radius: 99px; }
.subj-legend, .subj {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px 62px 58px;
  gap: 8px;
  align-items: center;
}
.subj-legend { font-size: 11px; color: var(--ink-3); font-weight: 500; text-align: center; padding: 2px 0 2px; }
.subj { padding: 8px 0; border-top: 1px solid var(--line); }
.subj-name { min-width: 0; display: grid; }
.subj-name b { font-weight: 500; font-size: 14.5px; line-height: 1.25; }
.subj-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell {
  width: 100%; height: 46px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 13px;
  background: var(--surface); font-size: 17px; font-weight: 600;
  color: var(--success);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.cell.wrong { color: var(--danger); }
.cell::placeholder { color: #b9c3c1; font-weight: 500; }
.cell:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(29, 84, 94, .12); }
.subj-net { text-align: center; font-weight: 600; font-size: 15px; color: var(--teal-deep); }
.subj.over .cell { border-color: var(--danger); background: var(--danger-soft); }
.subj.over [data-meta] { color: var(--danger); font-weight: 600; }

@media (max-width: 360px) {
  .subj-legend, .subj { grid-template-columns: minmax(0, 1fr) 54px 54px 50px; gap: 6px; }
  .subj-name b { font-size: 13.5px; }
}

/* Sonuç kartı */
.result .big-net { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.result .big-net small, .stat .v small { font-size: 14px; font-weight: 500; opacity: .6; margin-left: 2px; }
.result .ring { width: 76px; height: 76px; flex: none; }
.score-box { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.score-box .score { font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--yellow); }
.score-box .score.sm { font-size: 20px; color: #fff; text-align: right; }
.score-box .placed { text-align: right; }
.result .groups { margin-top: 12px; }
.result .groups .v { font-size: 18px; }
.result .warn { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(200, 85, 61, .25); font-size: 13px; }
.result .link-btn.light { color: var(--yellow); margin-top: 10px; }
.card.hero .badge.est { background: rgba(246, 189, 53, .2); color: var(--yellow); }

.action-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-bottom: 8px; }

/* Yapışkan sonuç çubuğu */
.resultbar {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); z-index: 10;
  display: flex; justify-content: space-around; gap: 8px;
  margin: 10px 0 0; padding: 10px 14px;
  border-radius: 18px; background: var(--teal-deep); color: #fff;
  box-shadow: 0 10px 28px rgba(15, 58, 66, .3);
  transform: translateY(16px); opacity: 0; pointer-events: none;
  transition: transform .25s, opacity .25s;
}
.resultbar.show { transform: none; opacity: 1; }
.resultbar div { display: grid; text-align: center; }
.resultbar .k { font-size: 11px; opacity: .7; }
.resultbar b { font-size: 17px; font-weight: 600; }
.resultbar div:nth-child(2) b { color: var(--yellow); }

/* Bilgi */
.info-block { padding: 14px; border-radius: 16px; background: var(--surface); margin-bottom: 10px; font-size: 13.5px; color: var(--ink); }
.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, .info-block ul + p { margin-top: 8px; }
.info-block ul { margin: 8px 0 0; padding-left: 18px; }
.info-block li { margin-bottom: 4px; }

/* Hedef */
.target-input { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.target-input .input { font-size: 20px; font-weight: 600; text-align: center; color: var(--teal-deep); }
input[type="range"] { width: 100%; accent-color: var(--teal); height: 30px; }
.plan-msg { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px; border-radius: 18px; background: var(--yellow-soft); color: #5e4300; font-size: 14px; }
.plan-msg svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.plan-msg.ok { background: var(--success-soft); color: #1d6b48; }
.plan-msg.danger { background: var(--danger-soft); color: var(--danger); }
.plan-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-row:last-of-type { border-bottom: 0; }
.plan-row b { font-weight: 500; font-size: 14px; }
.plan-row .gain { color: var(--success); font-weight: 600; }
.dual-bar { position: relative; height: 10px; margin-top: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.dual-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.dual-bar .t { background: var(--yellow); }
.dual-bar .c { background: var(--teal); }
.legend { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.c { background: var(--teal); }
.legend i.t { background: var(--yellow); margin-left: 6px; }

/* Gelişim */
#hBody { margin-top: 14px; }
.chart { width: 100%; height: auto; }
.attempt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.attempt:last-child { border-bottom: 0; }
.attempt b { font-weight: 500; }
.attempt-net { font-size: 18px; font-weight: 600; color: var(--teal-deep); }
.attempt .chev { width: 18px; height: 18px; color: var(--ink-3); }
.up { color: var(--success); font-weight: 600; }
.down { color: var(--danger); font-weight: 600; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th { text-align: right; font-weight: 500; font-size: 12px; color: var(--ink-2); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.dtable td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.data-actions .btn { flex: 1 1 auto; }
.btn svg + * { margin: 0; }
