/* Kocly Optik Form — uygulamaya özgü stiller */

.mb { margin-bottom: 12px; }
.intro { display: flex; align-items: center; gap: 12px; }
.intro-text { flex: 1; min-width: 0; }
.intro h2 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 6px; }
.intro-mascot { width: 84px; height: auto; flex: none; }

/* Şablon seçimi */
.tpl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.tpl {
  display: grid; gap: 2px; text-align: left;
  min-height: 60px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--card);
}
.tpl b { font-weight: 600; font-size: 15px; }
.tpl span { font-size: 12px; color: var(--ink-2); }
.tpl[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.sub-opts { margin: 0 0 14px; }
.sub-opts .field-label { display: block; margin-bottom: 6px; }
.sub-opts .tiny { margin-top: 6px; }

/* Sayaç kartı */
.timer-card .clock { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin: 2px 0; }
.timer-card .clock.over { color: #ffb3a3; }
.answered { display: grid; justify-items: end; text-align: right; }
.answered b { font-size: 26px; font-weight: 600; color: var(--yellow); line-height: 1.1; }
.timer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.timer-actions .btn { padding: 0 12px; font-size: 14px; }

.jump { position: sticky; top: 64px; z-index: 5; padding: 6px 2px 8px; margin-bottom: 6px; background: linear-gradient(var(--bg) 70%, transparent); }

/* Optik ızgara */
.grid-card { padding: 12px 10px 8px; }
.grid-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 6px 8px; font-size: 14px; }
.grid-head b { font-weight: 600; }
.sub-head { margin: 8px 6px 4px; padding: 3px 10px; border-radius: 99px; background: var(--teal-soft); color: var(--teal); font-weight: 600; display: inline-block; }
.q-row { display: grid; grid-template-columns: 30px repeat(var(--opts, 5), 44px); justify-content: center; gap: 6px; align-items: center; padding: 3px 0; }
.opts-4 { --opts: 4; }
.q-row.sep { border-bottom: 1px dashed var(--line); padding-bottom: 6px; margin-bottom: 3px; }
.qn {
  width: 30px; height: 44px; padding: 0; border: 0; background: none;
  font-weight: 600; font-size: 13.5px; color: var(--ink-2); text-align: right;
}
.qn:disabled { cursor: default; opacity: 1; color: var(--ink-2); }
.bub {
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--teal-mid); border-radius: 50%;
  background: #fff; color: var(--ink-3);
  font-weight: 600; font-size: 15px;
  transition: background .12s, border-color .12s, color .12s, transform .1s;
}
.bub:active { transform: scale(.92); }
.bub[aria-pressed="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
@media (max-width: 359px) {
  .q-row { grid-template-columns: 26px repeat(var(--opts, 5), 41px); gap: 5px; }
  .bub { width: 41px; height: 41px; }
}

/* Anahtar ızgarası: anahtar sarı, öğrencinin cevabı ince halka */
#keyGrid .bub[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--teal-deep); }
#keyGrid .q-row.given-A .bub[data-l="A"],
#keyGrid .q-row.given-B .bub[data-l="B"],
#keyGrid .q-row.given-C .bub[data-l="C"],
#keyGrid .q-row.given-D .bub[data-l="D"],
#keyGrid .q-row.given-E .bub[data-l="E"] { box-shadow: 0 0 0 3px var(--teal-soft), inset 0 0 0 2px var(--teal); }
#keyGrid .qn { color: var(--teal); text-decoration: underline dotted; text-underline-offset: 3px; }
#keyGrid .q-row.cancelled .qn { color: var(--danger); text-decoration: line-through; }
#keyGrid .q-row.cancelled .bub { opacity: .35; }

.form-foot { display: flex; justify-content: center; margin: 6px 0 10px; }

/* Anahtar girişi */
.paste-box { margin-top: 14px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
#tapHint { margin-top: 10px; }

/* Sonuç */
.result .big-net { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.result .big-net small { font-size: 14px; font-weight: 500; opacity: .6; margin-left: 2px; }
.result .ring { width: 76px; height: 76px; flex: none; }
.dyb { margin-top: 14px; }
.dyb .stat:nth-child(1) .v { color: #8be0b5; }
.dyb .stat:nth-child(2) .v { color: #ffb3a3; }
.res-meta { margin-top: 10px; }
.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); font-variant-numeric: tabular-nums; }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable tr.test td { font-weight: 500; }
.dtable tr.sub td { color: var(--ink-2); font-size: 12.5px; padding-top: 5px; padding-bottom: 5px; }
.dtable tr.sub td:first-child { padding-left: 14px; }
.wrong-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; }
.wrong-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.wrong-list li:last-child { border-bottom: 0; }
.wrong-list li.none { display: block; }
.w-q { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 34px; }
.w-ans { display: flex; align-items: center; gap: 4px; }
.w-ans svg { width: 14px; height: 14px; color: var(--ink-3); }
.w-ans i { font-style: normal; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 600; font-size: 13px; }
.w-ans .given { background: var(--danger-soft); color: var(--danger); }
.w-ans .right { background: var(--success-soft); color: var(--success); }
.blank-list { margin: 4px 0 10px; font-size: 13.5px; }
.blank-list summary { cursor: pointer; font-weight: 500; color: var(--teal); min-height: 36px; display: flex; align-items: center; }
.blank-list p { color: var(--ink-2); }
.result-actions { display: grid; gap: 10px; margin-bottom: 8px; }
.result-actions a { text-decoration: none; }
.hist-detail .card { box-shadow: none; border: 1px solid var(--line); }
.hist-detail .card.hero { border: 0; }

/* Geçmiş */
.attempt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; 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); }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.data-actions .btn { flex: 1 1 auto; }
.note { margin-top: 10px; }

/* 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 ul { margin: 8px 0 0; padding-left: 18px; }
.info-block li { margin-bottom: 4px; }
.info-block p + p, .info-block ul + p { margin-top: 8px; }
