/* Parent */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tab { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
.tab.on { border-color: var(--accent); background: var(--accent-soft); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { display: flex; flex-direction: column; align-items: center; padding: 12px; }
.kpi strong { font-size: 1.5rem; }
.kpi span { color: var(--muted); font-size: 1rem; }
section.card { margin-bottom: 12px; }
section.card h3:first-child { margin-top: 0; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; align-items: end; padding-top: 20px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-fill { width: 70%; background: var(--accent-soft); border-radius: 6px 6px 0 0; border: 1px solid var(--accent); }
.bar-fill.met { background: var(--good); border-color: var(--good); }
.bar-v { font-size: 1rem; font-weight: 700; }
.bar-l { font-size: 1rem; color: var(--muted); }
.skill { display: grid; grid-template-columns: 1fr 1.2fr 48px; gap: 10px; align-items: center; margin: 8px 0; font-size: 1rem; }
.meter { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; }
.meter-fill.good { background: var(--good); }
.meter-fill.mid { background: var(--mid); }
.meter-fill.low { background: var(--bad); }
.sv { text-align: right; font-weight: 700; }
.advice { padding-left: 1.2em; }
.advice li { margin-bottom: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td:first-child { white-space: normal; }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .passage { font-size: 1.15rem; }
  .match { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 1fr 1fr 44px; font-size: 1rem; }
  .hero { flex-wrap: wrap; }
  .hero .btn { width: 100%; }
}
.lesson-rows { list-style: none; padding: 0; margin: 0; }
.lesson-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lr-meta { color: var(--muted); font-size: 1rem; }
.modal-wrap { position: fixed; inset: 0; background: rgba(20, 16, 30, 0.45); display: grid; place-items: center; z-index: 60; padding: 16px; }
.modal { width: 100%; max-width: 380px; text-align: center; }
.modal-text { font-size: 1.1rem; margin: 0 0 12px; }
.modal-input { font: inherit; font-size: 1.4rem; text-align: center; width: 100%; padding: 10px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }

#backup-section .btn { min-height: 48px; }
#backup-status:empty { display: none; }
