/* Practice frontend, independent of the legacy page and drawer layouts. */
.pr-workspace,.pr-create{--pr-ink:var(--v2-fg,#182638);--pr-muted:var(--v2-muted,#607086);--pr-surface:var(--v2-card,#fff);--pr-soft:var(--v2-card-2,#f6f8fb);--pr-line:var(--v2-line,#e0e7f0);--pr-blue:var(--v2-accent,#2f5fe0);--pr-blue-soft:var(--v2-accent-soft,#e9efff);color:var(--pr-ink);font-family:var(--v2-font,system-ui);box-sizing:border-box}
.pr-workspace *,.pr-create *{box-sizing:border-box}.pr-workspace{max-width:1380px;margin:0 auto;padding:32px 36px 48px}.pr-workspace button,.pr-create button,.pr-workspace input,.pr-workspace select{font:inherit}.pr-workspace button,.pr-create button{cursor:pointer}.pr-workspace button:focus-visible,.pr-create button:focus-visible,.pr-workspace input:focus-visible,.pr-workspace select:focus-visible{outline:3px solid var(--pr-blue);outline-offset:3px}
.pr-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.pr-eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--pr-muted);margin:0 0 10px}.pr-header h1{font-size:clamp(24px,2.5vw,32px);font-weight:750;line-height:1.25;letter-spacing:-1px;margin:0}.pr-description{font-size:14px;color:var(--pr-muted);margin:10px 0 0}
.pr-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:10px 14px;border:1px solid var(--pr-line);border-radius:9px;background:var(--pr-surface);color:var(--pr-ink);font-size:13px!important;font-weight:600!important;white-space:nowrap;text-decoration:none}.pr-button:hover{border-color:var(--pr-blue);color:var(--pr-blue)}.pr-button--primary{background:var(--pr-blue);border-color:var(--pr-blue);color:var(--v2-on-accent,#fff);box-shadow:0 3px 8px #2559d51a}.pr-button--primary:hover{background:var(--v2-accent-hover,#2850c8);color:var(--v2-on-accent,#fff)}.pr-header>.pr-button{min-height:46px;padding:12px 20px;font-size:14px!important}
.pr-workspace .v2-ic,.pr-create .v2-ic{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;flex-shrink:0}.pr-tabs{display:flex;gap:28px;border-bottom:1px solid var(--pr-line);margin-bottom:22px}.pr-tabs button{border:0;border-bottom:3px solid transparent;background:none;display:flex;align-items:center;gap:9px;padding:0 0 13px;color:var(--pr-muted);font-size:14px;font-weight:600}.pr-tabs button[aria-selected=true]{border-color:var(--pr-blue);color:var(--pr-blue)}.pr-tabs span{font-size:11px;border-radius:6px;padding:2px 7px;background:var(--pr-soft)}.pr-tabs button[aria-selected=true] span{background:var(--pr-blue-soft)}
.pr-bank{display:flex;gap:16px;align-items:center;padding:17px 20px;border:1px solid var(--pr-line);border-radius:12px;background:var(--pr-blue-soft);margin-bottom:26px}.pr-bank-icon{display:grid;place-items:center;width:44px;height:48px;background:var(--pr-surface);color:var(--pr-blue);border-radius:9px;flex-shrink:0;transform:rotate(-5deg)}.pr-bank-copy{flex:1}.pr-bank strong{font-size:14px}.pr-bank p{font-size:12px;color:var(--pr-muted);margin:5px 0 0;line-height:1.6}
.pr-library-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:17px}.pr-library-head h2{font-size:18px;margin:0;letter-spacing:-.3px}.pr-library-head p{font-size:12px;color:var(--pr-muted);margin:5px 0 0}.pr-library-head>.pr-button{border:none;background:none;color:var(--pr-muted);font-size:12px!important}.pr-filters{display:flex;gap:10px;align-items:center}.pr-search{position:relative;flex:1;min-width:150px}.pr-search svg{position:absolute;left:14px;top:14px;width:18px;height:18px;stroke:var(--pr-muted);fill:none;stroke-width:1.7}.pr-search input{width:100%;height:46px;padding:10px 12px 10px 42px;border:1px solid var(--pr-line);border-radius:9px;background:var(--pr-surface);color:var(--pr-ink);font-size:13px}.pr-workspace select{min-height:44px;max-width:230px;padding:9px 28px 9px 12px;border:1px solid var(--pr-line);border-radius:9px;background:var(--pr-surface);color:var(--pr-ink);font-size:12px}.pr-results-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0 10px;font-size:11px;color:var(--pr-muted)}.pr-results-head select{border:0;background:transparent;min-height:32px;padding:4px 20px 4px 6px;max-width:145px;font-size:11px}
.pr-exams{display:grid;gap:10px}.pr-exam,.pr-assignment{display:flex;align-items:center;gap:16px;padding:20px;background:var(--pr-surface);border:1px solid var(--pr-line);border-radius:12px}.pr-exam:hover{border-color:var(--v2-line-2,#bccbe0)}.pr-exam-icon{align-self:flex-start;width:44px;height:48px;border-radius:9px;background:var(--pr-blue-soft);color:var(--pr-blue);display:grid;place-items:center;flex-shrink:0}.pr-exam-icon--draft{background:var(--pr-soft);color:var(--pr-muted)}.pr-exam-content{flex:1;min-width:0}.pr-exam-title-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.pr-title{padding:0;background:none;border:0;text-align:left;color:var(--pr-ink);font-size:14px!important;line-height:1.5;font-weight:650!important;overflow-wrap:anywhere}.pr-title:hover{color:var(--pr-blue)}.pr-exam-meta{display:flex;flex-wrap:wrap;gap:7px;margin:6px 0 0;color:var(--pr-muted);font-size:11px;line-height:1.6}.pr-exam-history{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;font-size:10px;color:var(--pr-muted);margin:10px 0 0;line-height:1.6}.pr-exam-history .v2-ic{width:14px;height:14px}.pr-updated{margin-left:7px}.pr-badge{font-size:10px;padding:3px 7px;border-radius:5px;background:var(--pr-blue-soft);color:var(--pr-blue)}
.pr-exam-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}.pr-exam-actions .pr-button{font-size:11px!important;padding:8px 11px;min-height:36px}.pr-menu-wrap{position:relative}.pr-menu-wrap>.pr-button{font-size:20px!important;padding:0 9px;background:transparent;border-color:transparent}.pr-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:10;background:var(--pr-surface);border:1px solid var(--pr-line);padding:6px;min-width:220px;border-radius:10px;box-shadow:0 10px 35px #122c5420}.pr-menu .pr-button{display:flex;width:100%;justify-content:flex-start;border:0;white-space:normal;text-align:left}
.pr-footnote{color:var(--pr-muted);font-size:11px;text-align:center;margin:22px 0 0;line-height:1.7}.pr-empty{padding:42px 24px;border:1px dashed var(--v2-line-2,#bdcbe0);border-radius:14px;background:var(--pr-surface);text-align:center}.pr-empty-icon{display:grid;place-items:center;width:54px;height:60px;background:var(--pr-blue-soft);border-radius:10px;margin:0 auto 20px;color:var(--pr-blue)}.pr-empty h3{font-size:19px;margin:0 0 10px}.pr-empty p{max-width:480px;margin:0 auto;color:var(--pr-muted);font-size:13px;line-height:1.8}.pr-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:24px}.pr-more{text-align:center;margin-top:20px}.pr-notice{font-size:12px;display:flex;gap:15px;align-items:center;justify-content:space-between;padding:12px 16px;border-radius:8px;background:var(--pr-blue-soft);margin-bottom:12px}.pr-class-label{padding:10px;min-width:60px;text-align:center;border-radius:8px;background:var(--pr-blue-soft);color:var(--pr-blue);font-size:13px;font-weight:650}.pr-assignment h3{font-size:14px;margin:0}.pr-loading{padding:20px}.pr-loading span{display:block;height:88px;margin:12px 0;border-radius:12px;background:var(--pr-soft)}.pr-loading p{font-size:13px;color:var(--pr-muted)}.pr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1100px){.pr-workspace{padding:26px 24px}.pr-exam{flex-wrap:wrap}.pr-exam-content{flex-basis:calc(100% - 65px)}.pr-exam-actions{margin-left:60px}.pr-updated{margin-left:0}}
@media(max-width:650px){.pr-workspace{padding:22px 16px 32px}.pr-header{align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:22px}.pr-header h1{font-size:25px}.pr-header .pr-eyebrow{font-size:9px}.pr-description{font-size:12px}.pr-header>.pr-button{min-height:42px;font-size:13px!important;padding:10px 16px}.pr-tabs{gap:24px;margin-bottom:18px}.pr-tabs button{font-size:13px}.pr-bank{padding:15px;gap:12px;flex-wrap:wrap;margin-bottom:22px}.pr-bank-icon{display:none}.pr-bank-copy{flex-basis:100%}.pr-bank strong{font-size:13px}.pr-bank p{font-size:11px}.pr-bank .pr-button{font-size:12px!important;min-height:38px}.pr-library-head{align-items:flex-start;gap:10px}.pr-library-head h2{font-size:16px}.pr-library-head p{display:none}.pr-library-head>.pr-button{padding:2px 0;min-height:24px;font-size:10px!important}.pr-filters{flex-wrap:wrap;gap:8px}.pr-search{flex-basis:100%}.pr-filters>label:not(.pr-search){flex:1;min-width:0}.pr-filters select{width:100%;max-width:100%;font-size:11px;min-height:38px}.pr-results-head{font-size:10px;margin-top:11px}.pr-results-head label{font-size:0}.pr-results-head select{font-size:10px}.pr-exam{padding:16px;gap:12px}.pr-exam-icon{width:34px;height:39px}.pr-exam-content{flex-basis:calc(100% - 48px)}.pr-title{font-size:13px!important}.pr-exam-meta{font-size:10px;gap:5px}.pr-exam-history{font-size:10px;margin-top:8px}.pr-exam-actions{margin:0;width:100%;border-top:1px solid var(--pr-line);padding-top:12px}.pr-exam-actions>.pr-button{flex:1}.pr-updated{display:none}.pr-badge{font-size:9px}.pr-assignment{flex-wrap:wrap;padding:16px}.pr-assignment>.pr-button{margin-left:auto}.pr-assignment .pr-exam-content{flex-basis:calc(100% - 90px)}.pr-empty{padding:30px 18px}.pr-empty h3{font-size:17px}.pr-empty p{font-size:12px}.pr-create{padding:20px;max-height:calc(100dvh - 24px);border-radius:16px;width:calc(100% - 24px)}.pr-create h2{font-size:21px}.pr-create-head{margin-bottom:20px}.pr-create-head p:not(.pr-eyebrow){font-size:12px}.pr-source-grid{grid-template-columns:1fr;gap:10px}.pr-source{display:grid;grid-template-columns:26px 1fr;gap:7px 12px;padding:16px}.pr-source .v2-ic{grid-column:1;grid-row:1 / 5;width:23px;height:23px;margin:0}.pr-source>*:not(.v2-ic){grid-column:2}.pr-source strong{font-size:15px}.pr-source em{padding-top:4px;font-size:11px}.pr-create-foot{gap:6px 16px;margin-top:18px;padding-top:14px}.pr-create-foot>span{flex-basis:100%}.pr-notice{align-items:flex-start;font-size:11px}.pr-footnote{font-size:10px;text-align:left}}
/* Same-page exam bank. */
.pr-inline-bank-mount{margin-top:18px;min-height:320px}
.pr-inline-bank-host{width:100%;min-height:320px;border:1px solid var(--pr-line);border-radius:12px;overflow:hidden;background:var(--pr-surface)}
.pr-inline-bank-host.v2-embed-host{max-width:none;margin:0}
.pr-inline-bank-host .v2-embed-frame{min-height:320px}
.pr-inline-bank-host .v2-embed-frame iframe{width:100%;border:0;background:var(--pr-surface)}
.pr-inline-bank-host.v2-embed-host{position:relative;display:flex;flex-direction:column;height:calc(100vh - 240px);padding:0}
.pr-inline-bank-host .v2-embed-status{position:absolute}
/* Full practice-page visual refresh: orient first, then scan saved exams. */
.pr-workspace{max-width:1480px;padding-top:28px}
.pr-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;overflow:hidden;padding:28px 32px;border:1px solid var(--pr-line);border-radius:18px;background:linear-gradient(115deg,var(--pr-surface),var(--pr-blue-soft));margin-bottom:20px}
.pr-hero:after{content:"";position:absolute;width:260px;height:260px;border:1px solid color-mix(in srgb,var(--pr-blue) 15%,transparent);border-radius:50%;right:220px;top:-166px;pointer-events:none}
.pr-hero-copy,.pr-hero-action{position:relative;z-index:1}
.pr-hero h1{font-size:clamp(27px,2.8vw,36px);font-weight:760;line-height:1.16;letter-spacing:-1.15px;margin:0}
.pr-hero .pr-eyebrow{color:var(--pr-blue);margin-bottom:9px}
.pr-hero .pr-description{font-size:14px;line-height:1.65;margin:9px 0 0}
.pr-hero-note{display:flex;align-items:center;gap:8px;margin-top:17px;color:var(--pr-muted);font-size:12px;font-weight:600}
.pr-hero-note .v2-ic{width:17px;height:17px;color:var(--pr-blue);stroke:currentColor;fill:none}
.pr-hero-action{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex:none}
.pr-hero-action>span{font-size:11px;color:var(--pr-muted)}
.pr-hero-action>.pr-button{min-height:48px;padding:12px 20px;border-radius:10px;font-size:14px!important}
.pr-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}
.pr-stat{display:flex;align-items:center;gap:13px;min-width:0;padding:15px 17px;border:1px solid var(--pr-line);border-radius:12px;background:var(--pr-surface)}
.pr-stat-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:10px;background:var(--pr-soft);color:var(--pr-muted)}
.pr-stat-icon .v2-ic{width:19px;height:19px;stroke:currentColor;fill:none}
.pr-stat-icon--blue{background:var(--pr-blue-soft);color:var(--pr-blue)}
.pr-stat-icon--amber{background:#fff3d8;color:#a7650b}
.pr-stat>div{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:10px;min-width:0;flex:1}
.pr-stat-label{font-size:11px;font-weight:650;color:var(--pr-muted)}
.pr-stat strong{font-size:21px;line-height:1.1;letter-spacing:-.5px}
.pr-stat small{grid-column:1/-1;margin-top:4px;color:var(--pr-muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pr-tabs{gap:26px;margin-bottom:21px}
.pr-tabs button{padding-bottom:12px}
.pr-library{padding:0;border:0;background:transparent}
.pr-library-head{margin-bottom:14px}
.pr-library-head h2{font-size:19px;letter-spacing:-.45px}
.pr-library-head p{font-size:12px}
.pr-filters{padding:12px;border:1px solid var(--pr-line);border-radius:12px;background:var(--pr-surface)}
.pr-search input{height:44px}
.pr-results-head{margin:17px 1px 11px}
.pr-exams:not(:has(.pr-assignment)){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pr-exams:not(:has(.pr-assignment)) .pr-exam{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start;gap:11px 13px;min-height:158px;padding:17px;border-radius:13px;background:var(--pr-surface);box-shadow:0 2px 8px #10234508}
.pr-exams:not(:has(.pr-assignment)) .pr-exam-icon{grid-column:1;grid-row:1;width:42px;height:46px}
.pr-exams:not(:has(.pr-assignment)) .pr-exam-content{grid-column:2;grid-row:1;align-self:center}
.pr-exams:not(:has(.pr-assignment)) .pr-exam-title-line{gap:7px}
.pr-exams:not(:has(.pr-assignment)) .pr-title{font-size:14px!important;font-weight:700!important}
.pr-exams:not(:has(.pr-assignment)) .pr-exam-meta{margin-top:7px;font-size:11px}
.pr-exams:not(:has(.pr-assignment)) .pr-exam-history{margin-top:8px;font-size:10px}
.pr-exams:not(:has(.pr-assignment)) .pr-exam-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin:0;padding-top:11px;border-top:1px solid var(--pr-line)}
.pr-exams:not(:has(.pr-assignment)) .pr-exam-actions>.pr-button{min-height:35px}
.pr-exams:not(:has(.pr-assignment)) .pr-menu-wrap>.pr-button{min-height:35px}
.pr-source-panel{border-radius:15px}
@media(max-width:900px){.pr-hero{padding:24px}.pr-exams:not(:has(.pr-assignment)){grid-template-columns:1fr}}
@media(max-width:650px){.pr-workspace{padding:18px 14px 30px}.pr-hero{align-items:flex-start;flex-direction:column;gap:17px;padding:20px 18px;border-radius:14px;margin-bottom:15px}.pr-hero:after{right:-120px;top:-180px}.pr-hero h1{font-size:25px}.pr-hero .pr-description{font-size:12px}.pr-hero-note{font-size:10px;margin-top:12px}.pr-hero-action{align-items:flex-start;gap:7px}.pr-hero-action>span{display:none}.pr-hero-action>.pr-button{min-height:42px;padding:10px 15px;font-size:13px!important}.pr-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:17px}.pr-stat{align-items:flex-start;flex-direction:column;gap:8px;padding:10px;border-radius:10px}.pr-stat-icon{width:32px;height:32px;border-radius:8px}.pr-stat-icon .v2-ic{width:16px;height:16px}.pr-stat>div{width:100%;grid-template-columns:1fr;row-gap:2px}.pr-stat-label{font-size:9px}.pr-stat strong{font-size:18px}.pr-stat small{font-size:8px;margin-top:2px;white-space:normal;line-height:1.35}.pr-tabs{gap:18px;margin-bottom:17px}.pr-tabs button{font-size:12px}.pr-library-head h2{font-size:16px}.pr-library-head p{display:block;font-size:10px}.pr-filters{padding:9px}.pr-exams:not(:has(.pr-assignment)){grid-template-columns:1fr;gap:9px}.pr-exams:not(:has(.pr-assignment)) .pr-exam{grid-template-columns:36px minmax(0,1fr);min-height:0;padding:13px;gap:9px 10px}.pr-exams:not(:has(.pr-assignment)) .pr-exam-icon{width:34px;height:38px}.pr-exams:not(:has(.pr-assignment)) .pr-title{font-size:13px!important}.pr-exams:not(:has(.pr-assignment)) .pr-exam-actions{padding-top:9px}.pr-exams:not(:has(.pr-assignment)) .pr-exam-actions .pr-button{font-size:10px!important;padding:7px 9px}}

/* Approved compact banner: all three creation paths are available immediately. */
.pr-hero{display:block;padding:28px 32px;background:linear-gradient(115deg,var(--pr-surface),var(--pr-blue-soft));border-radius:14px}
.pr-hero:after{display:none}
.pr-create-actions{margin-top:23px}
.pr-create-actions .pr-eyebrow{color:var(--pr-muted);font-size:11px;margin:0 0 12px}
.pr-banner-buttons{display:flex;flex-wrap:wrap;gap:12px}
.pr-banner-buttons>.pr-button{height:46px;min-height:46px;padding:0 20px;font-size:14px!important;gap:10px;border-radius:9px;border-color:color-mix(in srgb,var(--pr-blue) 65%,var(--pr-line))}
.pr-banner-buttons>.pr-button--primary{border-color:var(--pr-blue)}
.pr-banner-buttons>.pr-button[aria-pressed=true]{box-shadow:0 0 0 3px var(--pr-blue-soft)}
.pr-banner-buttons .v2-ic{width:21px;height:21px}
.pr-overview{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.pr-stat{gap:10px;padding:10px 14px;border-radius:9px}
.pr-stat-icon{width:22px;height:22px;background:transparent}
.pr-stat>div{display:flex;align-items:center;gap:14px}
.pr-stat-label{font-size:12px}.pr-stat strong{font-size:18px}.pr-stat small{display:none}
.pr-filters{padding:0;border:0;background:transparent}
.pr-inline-bank-mount{margin:0 0 22px}
@media(max-width:650px){.pr-hero{padding:20px 18px}.pr-create-actions{margin-top:19px}.pr-banner-buttons{gap:9px}.pr-banner-buttons>.pr-button{padding:0 13px;font-size:13px!important;gap:8px}.pr-stat{flex-direction:row;align-items:center;padding:8px 10px;gap:6px}.pr-stat>div{width:auto;gap:8px}.pr-stat-label{font-size:11px}.pr-stat strong{font-size:16px}.pr-overview{gap:7px}.pr-inline-bank-host .v2-embed-frame{min-height:260px}}

@media(max-width:650px){.pr-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.pr-stat{justify-content:space-between;padding:9px 8px}.pr-stat-icon{display:none}.pr-stat>div{width:100%;gap:4px}.pr-stat-label{font-size:10px}.pr-stat strong{font-size:16px}}

/* Bank takes the full main region; source controls live only on the library page. */
.pr-bank-page{padding:0;margin:0;width:100%}.pr-bank-page .pr-inline-bank-mount{margin:0}.pr-bank-page .pr-inline-bank-host{border:0;border-radius:0}
.pr-library-tools{display:flex;gap:12px;align-items:center}.pr-library-tools>.pr-button{background:transparent;border:0;padding:4px 0;color:var(--pr-muted);font-size:12px!important}
.pr-folder-toolbar{margin-bottom:16px}.pr-folder-list{display:grid;gap:12px}.pr-folder-row{border:1px solid var(--v2-line,#dbe2ef);border-radius:10px;padding:14px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.pr-folder-row strong{overflow-wrap:anywhere;min-width:0}.pr-folder-row>div{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:650px){.pr-library-tools{flex-wrap:wrap;justify-content:flex-end;gap:4px 10px}.pr-library-tools>.pr-button{font-size:10px!important}}

.pr-full-bank-host{border:0;border-radius:0}
/* PB-H91: hạn mức bộ đề ngay ở khối Tạo đề bài */
.pr-quota{margin:10px 0 0;font-size:13px;color:var(--v2-muted,#5b6b80)}

.pr-link{background:none;border:0;padding:0;color:var(--v2-accent,#1a5fd0);text-decoration:underline;cursor:pointer;font:inherit}
