/* Luyện đề đa môn (17/11): bộ chọn môn, thẻ bộ đề có bìa, thẻ đề có vương miện Pro, thanh xem trước. */
.practice-page .btn{max-width:none}
.practice-page .practice-subjects{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;gap:10px;padding:2px 2px 16px;scroll-snap-type:x proximity}
.practice-page .practice-subjects button{display:inline-flex;align-items:center;gap:8px;padding:9px 20px;flex:none;white-space:nowrap;scroll-snap-align:start}
.practice-page .practice-subjects .tag-soon{padding:2px 8px;font-size:11px}
.practice-page .practice-subjects button[aria-selected=true] .tag-soon{background:#fff4cc}
.practice-skills[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.practice-skills[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.practice-skills[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.practice-type-list button small{display:block;font-size:11px;font-weight:500;color:var(--practice-muted)}
.practice-type-list svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Khối nội dung */
.v17-block{margin-bottom:36px}
.v17-block-title{font-size:18px;margin-bottom:14px}
.v17-sample{font-size:13px;background:#fff8e1;border:1px solid #f1d98a;color:#6b5108!important;border-radius:10px;padding:9px 14px;margin:0 0 18px}

/* Thẻ bộ đề */
.v17-sets{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.v17-set{display:flex;flex-direction:column;border:1px solid var(--practice-line);border-radius:16px;overflow:hidden;background:#fff;transition:box-shadow .2s ease,transform .2s ease}
.v17-set:hover{box-shadow:0 14px 30px rgba(20,52,93,.12);transform:translateY(-2px)}
.v17-set-cover{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;height:168px;padding:16px 12px 0 18px;border:0;background:linear-gradient(135deg,#e7f1ff,#f6faff);color:#1553a5;text-align:left;cursor:pointer;overflow:hidden}
.v17-set-cover[data-cover-skill=writing],.v17-set-cover[data-cover-skill=speaking]{background:linear-gradient(135deg,#fff1c7,#fffaf0)}
.v17-set-cover[data-cover-skill=math]{background:linear-gradient(135deg,#e3f4ee,#f6fcf9)}
.v17-cover-label{align-self:center;font:700 13px/1.4 'Be Vietnam Pro',sans-serif;letter-spacing:.04em;text-transform:uppercase}
.v17-cover-label b{display:block;font:750 24px/1.15 'Baloo 2','Be Vietnam Pro',sans-serif;letter-spacing:-.01em;text-transform:none;margin-top:2px}
.v17-set-cover img{height:158px;width:auto;max-width:56%;object-fit:contain;object-position:bottom;transition:transform .3s ease}
.v17-set:hover .v17-set-cover img{transform:translateY(-4px) rotate(-2deg)}
.v17-hot{position:absolute;top:12px;right:12px;background:#e8452c;color:#fff;border-radius:999px;padding:3px 10px;font:700 11px/1.4 'Be Vietnam Pro',sans-serif}
.v17-set-body{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px 20px 20px;flex:1}
.v17-set-body h3{font-size:19px;margin:0;line-height:1.35}
.practice-page .v17-set-desc{font-size:13px;margin:0;line-height:1.6}
.practice-page .v17-set-stats{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:2px 0 0;font-size:13px;color:var(--practice-ink)}
.v17-set-stats b{font-size:16px}
.v17-chip-free,.v17-chip-pro{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 9px;font-size:12px;font-weight:700}
.v17-chip-free{background:#e3f4ee;color:#17635a}
.v17-chip-pro{background:#fff1c2;color:#6a4b00}
.v17-chip-pro svg{width:13px;height:13px}
.v17-set-body .btn{margin-top:auto;width:100%}

/* Lưới icon dạng câu hỏi */
.v17-type-icons{list-style:none;margin:4px 0 6px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;width:100%}
.v17-type-icons li{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;font-weight:600;color:#2b4a72}
.v17-type-icons li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v17-type-icons svg{width:22px;height:22px;flex:none;padding:3px;border-radius:7px;background:#eef4fd;fill:none;stroke:#1553a5;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.v17-type-icons .v17-more{color:var(--practice-muted);font-weight:500}

/* Đầu trang một bộ */
.v17-set-head{margin-bottom:18px}
.v17-set-head h3{font-size:24px;margin:4px 0 4px}
.v17-set-head p{margin:0;font-size:14px}

/* Thẻ đề */
.v17-tests{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.v17-test{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:1px solid var(--practice-line);border-radius:14px;padding:18px 18px 16px;background:#fff;transition:border-color .2s ease,box-shadow .2s ease}
.v17-test:hover{border-color:#9db8dd;box-shadow:0 10px 24px rgba(20,52,93,.1)}
.v17-test[data-access=pro]{background:linear-gradient(180deg,#fffcf2,#fff 45%)}
.v17-test-no{font-size:12px;font-weight:700;color:#1553a5;padding-right:40px}
.v17-test h3{font-size:16px;margin:0;padding-right:30px;line-height:1.4}
.practice-page .v17-test>p{font-size:13px;margin:0}
.v17-access-note{font-size:12px;font-weight:600;color:#17635a}
.v17-test[data-access=pro] .v17-access-note{color:#7a5600}
.v17-test-actions{display:grid;grid-template-columns:auto 1fr;gap:8px;width:100%;margin-top:auto;padding-top:8px}
.practice-page .v17-test-actions .btn{min-height:42px;padding:8px 12px;font-size:13px;width:100%;white-space:nowrap}
.practice-page .v17-btn-pro{background:#ffc52b;color:#4a3300;border:1px solid #e6ac10;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:750}
.practice-page .v17-btn-pro:hover{background:#ffb800}
.v17-btn-pro svg{width:16px;height:16px;flex:none}
.practice-test-card{position:relative}

/* Môn sắp có */
.v17-soon{display:flex;align-items:center;gap:28px;padding:28px 32px;border-radius:18px;background:linear-gradient(135deg,#fffaf0,#eef5ff);border:1px solid #e8dcb6}
.v17-soon img{width:150px;height:auto;flex:none}
.v17-soon h3{font-size:22px;margin:10px 0 8px}
.v17-soon p{max-width:62ch;font-size:15px}
.v17-soon .practice-empty-actions{display:flex;gap:12px;flex-wrap:wrap}

/* Thanh xem trước trong bàn luyện */
.v17-gate{display:flex;align-items:center;gap:16px;margin:0 0 14px;padding:14px 18px;border-radius:14px;border:1px solid #bcd3f0;background:#f0f6ff}
.v17-gate[data-state=pro]{border-color:#efcf72;background:#fff8e1}
.v17-gate>div{flex:1;min-width:0}
.v17-gate b{display:block;font-size:15px;color:var(--practice-ink)}
.practice-page .v17-gate p{margin:0;font-size:13px}
.v17-gate .btn{flex:none}
.v17-gate-crown{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#ffc52b;color:#5a3d00;flex:none}
.v17-gate-crown svg{width:20px;height:20px}
#practice-answer-content.is-preview :is(input,select,textarea){background:#f5f7fb;border-style:dashed}
#practice-answer-content.is-preview .practice-options label{opacity:.85}

/* Hình trong đề */
.v17-media{margin:0 0 12px;width:100%}
.v17-media img{max-width:100%;height:auto;border-radius:10px;border:1px solid var(--practice-line);background:#fff}
.v17-media figcaption{font-size:12px;color:var(--practice-muted);margin-top:4px}

@media (min-width:1440px){.v17-sets{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:1180px){.v17-tests{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1024px){.v17-sets{grid-template-columns:repeat(2,minmax(0,1fr))}.v17-tests{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .v17-sets,.v17-tests{grid-template-columns:minmax(0,1fr);gap:14px}
  .v17-set-cover{height:140px}.v17-set-cover img{height:132px}
  .practice-skills[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v17-soon{flex-direction:column;align-items:flex-start;padding:22px 18px;gap:12px}.v17-soon img{width:110px}
  .v17-soon .btn{width:100%}
  .v17-gate{flex-wrap:wrap}.v17-gate .btn{width:100%}
  .practice-page .practice-subjects button{padding:8px 14px;min-height:44px}
}
@media (prefers-reduced-motion:reduce){.v17-set,.v17-set-cover img,.v17-test{transition:none}.v17-set:hover{transform:none}}
.v17-account-warning{font-size:13px;margin:0 0 16px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}.v17-account-warning .practice-text-button{min-height:32px;padding:0}
#practice-bank-note,.v17-account-warning,.v17-sample{display:none!important}
