/* ============================================================
   Khan SAT-1600 · Адаптивный режим как на SAT (v160)
   Author: Xudoyorxon Bunyodov / Худоёрхон Бунёдов
   ============================================================ */
.kad { max-width: 980px; margin: 0 auto; padding: 4px 0 40px; }
.kad-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.kad-where { flex: 1; min-width: 0; font-size: 15px; color: var(--ink, #1a1a1a); }
.kad-pos { font-weight: 700; font-variant-numeric: tabular-nums; color: #37453a; }
.kad-lv { display: inline-block; border-radius: 10px; padding: 2px 9px; font-size: 12px; font-weight: 800; }
.kad-lv--E { background: #e6f4e7; color: #1f5c22; }
.kad-lv--M { background: #fff4d6; color: #7a5b00; }
.kad-lv--H { background: #fde7e5; color: #9b2c22; }
.kad-bar { height: 7px; background: #e8eee8; border-radius: 7px; overflow: hidden; margin-bottom: 14px; }
.kad-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1B5E20, #C9A227); border-radius: 7px; transition: width .3s; }
.kad-card { background: #fff; border: 1.5px solid #dfe6df; border-radius: 16px; padding: 18px 20px; color: #1a1a1a; }
.kad-choices { display: grid; gap: 10px; margin-top: 14px; }
.kad-choices--letters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kad-ch { display: flex; align-items: center; gap: 12px; text-align: left; border: 2px solid #d9e0da; background: #fff; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15px; color: #1a1a1a; cursor: pointer; }
.kad-ch:hover:not(:disabled) { border-color: #1B5E20; background: #f6faf6; }
.kad-ch.sel { border-color: #1565C0; background: #e3f2fd; }
.kad-ch.right { border-color: #2E7D32; background: #e8f5e9; }
.kad-ch.wrong { border-color: #c62828; background: #ffebee; }
.kad-ch--letter { justify-content: center; font-weight: 800; font-size: 18px; }
.kad-k { width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid #9aa89c; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.kad-ch--letter .kad-k { border: 0; width: auto; height: auto; font-size: 18px; }
.kad-ct { flex: 1; min-width: 0; }
.kad-spr input { width: 100%; max-width: 360px; margin-top: 14px; border: 2px solid #d9e0da; border-radius: 12px; padding: 12px 14px; font-size: 17px; }
.kad-fb { margin-top: 12px; }
.kad-msg { font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.kad-msg.ok { background: #e8f5e9; color: #1f5c22; }
.kad-msg.no { background: #ffebee; color: #9b2c22; }
.kad-rat { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #37453a; }
.kad-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.kad-actions.center { justify-content: center; }
.kad-mid { text-align: center; padding: 26px 20px; }
.kad-mid h2 { margin: 6px 0 8px; color: #0d3b1a; }
.kad-mid p { max-width: 620px; margin: 6px auto 12px; color: #37453a; line-height: 1.55; }
.kad-big { font-size: 46px; }
.kad-mix { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 6px 0 16px; }
.kad-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; margin: 12px 0; text-align: left; }
.kad-res { border: 1.5px solid #dfe6df; border-radius: 14px; padding: 14px 16px; background: #fbfdfb; }
.kad-res-h { font-size: 15px; margin-bottom: 4px; }
.kad-score { font-size: 42px; font-weight: 800; color: #1B5E20; line-height: 1.1; }
.kad-score small, .kad-total small { display: block; font-size: 12.5px; font-weight: 600; color: #6b776d; }
.kad-total { font-size: 50px; font-weight: 800; color: #1B5E20; }
.kad-route { font-size: 13.5px; color: #37453a; margin: 6px 0 8px; }
.kad-t { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.kad-t td, .kad-t th { padding: 5px 8px; border-bottom: 1px solid #eef2ee; text-align: left; }
.kad-t th { font-size: 11.5px; text-transform: uppercase; color: #5b675c; }
.kad-spec { margin-top: 12px; }
.kad-path { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 10px 0; }
.kad-path i { font-style: normal; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.kad-path i.ok { background: #e8f5e9; color: #1f5c22; }
.kad-path i.no { background: #ffebee; color: #9b2c22; }
/* уровни в окне тренировки */
.chip.lv-chip--E::before, .chip.lv-chip--M::before, .chip.lv-chip--H::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.chip.lv-chip--E::before { background: #43A047; }
.chip.lv-chip--M::before { background: #C9A227; }
.chip.lv-chip--H::before { background: #C62828; }
html[data-theme="dark"] .kad-card, html[data-theme="dark"] .kad-ch, html[data-theme="dark"] .kad-res { background: #16241a; color: #e8efe9; border-color: #2e4332; }
html[data-theme="dark"] .kad-mid h2 { color: #c8e6c9; }
html[data-theme="dark"] .kad-mid p, html[data-theme="dark"] .kad-rat, html[data-theme="dark"] .kad-route, html[data-theme="dark"] .kad-pos { color: #b9c9bc; }
html[data-skin="premium"] .kad-where, html[data-skin="premium"] .kad-pos { color: #F2EEDF; }
html[data-skin="premium"] .kad-card { background: linear-gradient(180deg, #FFFDF6 0%, var(--subj-tint, #F6F2E4) 100%); border-color: rgba(201,162,39,.42); box-shadow: 0 12px 26px rgba(0,0,0,.24); }
html[data-skin="premium"] .kad-card h2 { color: #14361C; text-shadow: none; }
html[data-skin="edu"] .kad-card { border-radius: var(--edu-r, 20px); border-color: transparent; box-shadow: var(--edu-shadow, 0 10px 34px rgba(14,61,20,.10)); }
@media (max-width: 620px) {
  .kad-card { padding: 14px; }
  .kad-choices--letters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kad-score { font-size: 36px; }
}
