/* Mihna English 3000 — v12 platform extensions */
.v12-stage-grid,.v12-library-grid,.v12-hard-grid,.v12-owner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.v12-stage-card,.v12-book-card,.v12-hard-card,.v12-panel,.v12-reader,.v12-owner-card{background:#fff;border:1px solid #dfe7f4;border-radius:24px;box-shadow:0 12px 35px rgba(25,71,140,.08)}
.v12-stage-card{padding:22px;position:relative;overflow:hidden;display:flex;flex-direction:column;gap:15px}
.v12-stage-card::before{content:"";position:absolute;inset:0 auto 0 0;width:7px;background:linear-gradient(180deg,#1e66f5,#62a1ff)}
.v12-stage-card.locked{opacity:.76;background:#f7f9fd}
.v12-stage-card .stage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}
.v12-stage-card .stage-index{width:48px;height:48px;border-radius:16px;background:#eaf2ff;color:#1256d8;display:grid;place-items:center;font-weight:900;font-size:21px}
.v12-stage-card h3,.v12-book-card h3,.v12-panel h3{margin:0;color:#15243b}
.v12-stage-card p,.v12-book-card p,.v12-panel p{margin:0;color:#637188;line-height:1.8}
.v12-stage-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.v12-stage-metrics span{background:#f4f7fc;border-radius:14px;padding:9px 6px;text-align:center;font-size:12px;color:#65738b}.v12-stage-metrics b{display:block;color:#172943;font-size:17px}
.v12-progress{height:9px;background:#e8edf6;border-radius:99px;overflow:hidden}.v12-progress i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#1e66f5,#50a4ff)}
.v12-stage-actions,.v12-filter-row,.v12-card-actions,.v12-reader-actions,.v12-owner-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.v12-stage-levels{margin-top:22px}.v12-level-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.v12-level-card{border:1px solid #dfe7f4;border-radius:19px;padding:17px;background:#fff;display:flex;align-items:center;gap:14px;cursor:pointer;text-align:right}.v12-level-card.locked{cursor:not-allowed;opacity:.65;background:#f5f7fb}.v12-level-card .num{flex:0 0 44px;height:44px;border-radius:15px;background:#eef4ff;color:#1256d8;display:grid;place-items:center;font-weight:900}.v12-level-card .copy{flex:1}.v12-level-card h4{margin:0 0 6px}.v12-level-card p{margin:0;color:#6a7890;font-size:13px}.v12-level-card .percent{font-weight:800;color:#1256d8}
.v12-section-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.v12-section-head h2{margin:5px 0}.v12-section-head p{margin:0;color:#66748b;line-height:1.8}
.v12-summary-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 20px}.v12-summary-strip article{background:#fff;border:1px solid #e0e7f2;border-radius:17px;padding:13px}.v12-summary-strip b{display:block;font-size:22px;color:#163365}.v12-summary-strip span{color:#748199;font-size:12px}
.v12-filter-row{background:#fff;border:1px solid #e0e7f2;padding:14px;border-radius:18px;margin-bottom:18px}.v12-filter-row label{display:grid;gap:5px;color:#66758c;font-size:12px}.v12-filter-row select{min-width:145px;padding:9px 12px;border:1px solid #d7e0ed;border-radius:12px;background:#fff;color:#172943}
.v12-hard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v12-hard-card{padding:17px;display:flex;gap:15px;align-items:center}.v12-hard-word{width:62px;height:62px;border-radius:19px;background:#edf4ff;display:grid;place-items:center;color:#1458d8;font-weight:900;font-size:18px}.v12-hard-card .copy{flex:1}.v12-hard-card h3{margin:0}.v12-hard-card p{margin:3px 0 8px;color:#6c7890}.v12-score-row{display:flex;gap:8px;flex-wrap:wrap}.v12-pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:5px 9px;background:#f2f5fa;color:#56657d;font-size:11px}.v12-pill.danger{background:#fff0f0;color:#bd3131}.v12-pill.good{background:#eaf9f1;color:#14794d}.v12-pill.warn{background:#fff6df;color:#9a6b06}
.v12-empty{grid-column:1/-1;padding:38px;text-align:center;background:#fff;border:1px dashed #cfd9e8;border-radius:22px;color:#6b7890}
.v12-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v12-book-card{padding:20px;display:flex;gap:17px}.v12-book-cover{width:92px;min-height:120px;border-radius:18px;background:linear-gradient(145deg,#123e91,#2b78f5);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px}.v12-book-cover span{font-size:30px}.v12-book-copy{flex:1}.v12-book-copy .meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.v12-draft-warning{border:1px solid #f1d27a;background:#fff8df;color:#76520b;padding:11px 13px;border-radius:14px;font-size:12px;line-height:1.6}
.v12-chapter-list{display:grid;gap:10px}.v12-chapter{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #e0e7f2;border-radius:16px;background:#fff}.v12-chapter .chapter-no{width:40px;height:40px;border-radius:13px;background:#eef4ff;color:#155bdc;display:grid;place-items:center;font-weight:900}.v12-chapter .copy{flex:1}.v12-chapter h4{margin:0}.v12-chapter p{margin:3px 0 0;color:#748199;font-size:12px}
.v12-reader{padding:23px}.v12-reader-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:1px solid #e5ebf4;padding-bottom:17px;margin-bottom:18px}.v12-reader-head h2{margin:4px 0}.v12-reader-text{direction:ltr;text-align:left;font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:2.05;color:#17263d;white-space:pre-wrap}.v12-reader-translation{margin-top:24px;padding:20px;border-radius:18px;background:#f5f8fd;color:#26364e;line-height:2;white-space:pre-wrap}.v12-reader-word{cursor:pointer;border-radius:5px;padding:1px 2px}.v12-reader-word:hover{background:#dceaff}.v12-reader-questions{display:grid;gap:13px;margin-top:22px}.v12-question{padding:16px;border:1px solid #e0e7f2;border-radius:17px}.v12-question h4{margin:0 0 10px}.v12-question-options{display:grid;gap:8px}.v12-question-options label{display:flex;gap:9px;padding:10px;border:1px solid #dfe7f2;border-radius:12px;cursor:pointer}.v12-question-options label:has(input:checked){border-color:#3277e6;background:#edf4ff}
.v12-owner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v12-owner-card{padding:20px}.v12-owner-card.full{grid-column:1/-1}.v12-owner-table{width:100%;border-collapse:collapse}.v12-owner-table th,.v12-owner-table td{padding:10px;border-bottom:1px solid #e8edf5;text-align:right}.v12-owner-table th{font-size:12px;color:#65738a}.v12-owner-card textarea{width:100%;min-height:180px;padding:13px;border:1px solid #d6dfec;border-radius:14px;resize:vertical}.v12-owner-card input,.v12-owner-card select{padding:10px 12px;border:1px solid #d6dfec;border-radius:12px;background:#fff}
.v12-word-tools{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px}.v12-word-tools button{border:1px solid #dce5f2;background:#fff;border-radius:99px;padding:8px 12px;color:#34455f;cursor:pointer}.v12-word-tools button.active{background:#fff3d7;border-color:#efc65b;color:#7a5607}
.v12-review-session{margin-top:18px}.v12-review-card{max-width:620px;margin:auto;background:#fff;border:1px solid #dfe7f2;border-radius:24px;padding:24px;text-align:center}.v12-review-card h2{font-size:34px;margin:8px}.v12-review-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.v12-review-options button{padding:13px;border:1px solid #d9e2ef;border-radius:14px;background:#fff;cursor:pointer}.v12-review-options button:hover{background:#edf4ff;border-color:#4d86e8}
.v12-status-line{padding:10px 13px;border-radius:13px;background:#eef4ff;color:#2453a0;margin:12px 0}.v12-status-line.error{background:#fff0f0;color:#a52f2f}.v12-status-line.success{background:#eaf9f0;color:#137348}
@media(max-width:1100px){.v12-stage-grid,.v12-owner-grid{grid-template-columns:1fr 1fr}.v12-summary-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.v12-stage-grid,.v12-library-grid,.v12-hard-grid,.v12-owner-grid,.v12-level-grid{grid-template-columns:1fr}.v12-summary-strip{grid-template-columns:repeat(2,1fr)}.v12-section-head,.v12-reader-head{flex-direction:column}.v12-book-card{flex-direction:column}.v12-book-cover{width:100%;min-height:100px}.v12-filter-row{align-items:stretch}.v12-filter-row label,.v12-filter-row select{width:100%}.v12-reader{padding:16px}.v12-reader-text{font-size:17px}.v12-hard-card{align-items:flex-start}.v12-owner-card.full{grid-column:auto}}
.v12-reader-word.is-hard{background:#fff0b8;box-shadow:0 0 0 1px #e7bd36;color:#6d4a00}
#sentence-en .v12-reader-word{cursor:pointer;padding:0 2px;border-radius:5px}
#sentence-en .v12-reader-word:hover{background:#e4efff}

.v12-level-detail-hero{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;padding:28px;border-radius:28px;background:linear-gradient(135deg,#0e4fd8,#207cff);color:#fff;box-shadow:0 20px 45px rgba(18,92,244,.18);margin-bottom:24px}.v12-level-detail-hero .card-kicker,.v12-level-detail-hero p{color:rgba(255,255,255,.82)}.v12-level-detail-hero h2{font-size:clamp(1.7rem,3vw,2.7rem);margin:5px 0 8px}.v12-level-number{width:78px;height:78px;border-radius:24px;display:grid;place-items:center;font:800 1.65rem/1 Inter,sans-serif;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25)}.v12-dynamic-lessons{display:grid;gap:14px}.v12-dynamic-lesson{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:20px;border:1px solid #dfe8f7;border-radius:22px;background:#fff;box-shadow:0 10px 26px rgba(25,67,126,.06)}.v12-dynamic-lesson.locked{opacity:.62;background:#f6f8fc}.v12-dynamic-lesson .lesson-no{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-weight:800;color:#125cf4;background:#eaf2ff}.v12-dynamic-lesson h3{margin:2px 0 7px;font-size:1.08rem}.v12-dynamic-lesson p{margin:0 0 10px;color:#64748b}.v12-dynamic-lesson .v12-progress{max-width:420px}.v12-level-detail-hero .progress-ring{background:conic-gradient(#fff calc(var(--p)*1%),rgba(255,255,255,.2) 0)}.v12-level-detail-hero .progress-ring:before{background:#1769e9}.v12-level-detail-hero .progress-ring span{color:#fff}
@media(max-width:700px){.v12-level-detail-hero{grid-template-columns:auto 1fr;padding:20px;gap:14px}.v12-level-detail-hero .progress-ring{grid-column:1/-1;justify-self:start}.v12-dynamic-lesson{grid-template-columns:auto 1fr}.v12-dynamic-lesson>.btn{grid-column:1/-1;width:100%}.v12-level-number{width:58px;height:58px;border-radius:18px;font-size:1.25rem}}
