/* Practice Builder — question-bank, quiz, worksheet and mock-test module */
.qb-panel { margin-bottom: 1rem; }
.qb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.qb-grid [hidden], [data-qb-for][hidden] { display: none !important; }
.qb-output { margin-top: 1rem; }
.qb-output:empty { display: none; }
.qb-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; border-top: 1px solid var(--line, #e3e7e2); padding-top: 1rem; margin-bottom: .8rem; }
.qb-head h3 { margin: 0; font-size: 1.1rem; }
.qb-timer { font-variant-numeric: tabular-nums; font-weight: 800; background: #fef3c7; color: #92400e; border-radius: 999px; padding: .3rem .85rem; }
.qb-timer.is-low { background: #fee2e2; color: #991b1b; }
.qb-q { border: 1px solid var(--line, #e3e7e2); border-radius: 14px; padding: .9rem 1rem; margin-bottom: .7rem; background: #fff; }
.qb-q-num { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #536569); }
.qb-q-text { font-weight: 700; margin: .25rem 0 .6rem; line-height: 1.55; white-space: pre-wrap; }
.qb-ref { font-size: .76rem; color: var(--muted, #536569); margin: .45rem 0 0; }
.qb-opts { display: grid; gap: .4rem; }
.qb-opt { display: flex; gap: .55rem; align-items: flex-start; border: 1.5px solid var(--line, #e3e7e2); border-radius: 12px; padding: .55rem .7rem; cursor: pointer; background: #fff; font: inherit; text-align: left; }
.qb-opt:hover { border-color: var(--brand, #0f766e); }
.qb-opt input { margin-top: .25rem; }
.qb-opt.is-correct { border-color: #15803d; background: #ecfdf0; }
.qb-opt.is-wrong { border-color: #b91c1c; background: #fef2f2; }
.qb-answer { margin-top: .55rem; background: #f2faf7; border-left: 4px solid var(--brand, #0f766e); border-radius: 0 10px 10px 0; padding: .55rem .75rem; font-size: .92rem; }
.qb-self { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.qb-summary { border-radius: 14px; background: #ecfdf0; color: #14532d; padding: .9rem 1rem; font-weight: 700; margin: .8rem 0; }
.qb-sheet ol { padding-left: 1.3rem; }
.qb-sheet li { margin-bottom: .8rem; }
.qb-lines { border-bottom: 1px dashed #b8c3bf; height: 1.6rem; }
body:not(.qb-printing) #qbPrintSheet { display: none !important; }
body.qb-printing .print-sheet:not(#qbPrintSheet) { display: none !important; }
#qbPrintSheet ol { font-size: 11pt; line-height: 1.6; }
#qbPrintSheet li { margin-bottom: 10pt; page-break-inside: avoid; }
#qbPrintSheet .qb-lines { height: 18pt; }
#qbPrintSheet .qb-print-ref { font-size: 8.5pt; color: #444; }
