/* Question Bank inside the learner shell: tabs, exam cards, filter panel, browse cards. Tokens from core.css. */
.qx-tabs { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.qx-tabs nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding-bottom: 2px; }
.qx-tabs nav::-webkit-scrollbar { display: none; }
.qx-tabs nav a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--ph-line2); border-radius: 6px; color: var(--ph-text); font-size: .88rem; font-weight: 600; white-space: nowrap; transition: border-color .15s ease, color .15s ease; }
.qx-tabs nav a:hover { border-color: var(--ph-magenta); color: var(--ph-ink); }
.qx-tabs nav a.active { background: var(--ph-grad); border-color: transparent; color: #fff; }
.qx-tabs form { position: relative; width: 260px; flex-shrink: 0; }
.qx-tabs form .icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--ph-muted); }
.qx-tabs form input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--ph-line2); border-radius: 6px; background: var(--ph-surface); color: var(--ph-ink); font-size: 16px; }
@media (max-width: 899px) { .qx-tabs { flex-direction: column; align-items: stretch; } .qx-tabs form { width: 100%; } }

.qx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.qx-head h1 { margin: 0; font-size: 1.25rem; color: var(--ph-ink); line-height: 1.3; }
.qx-head p { margin: 2px 0 0; font-size: .82rem; color: var(--ph-muted); }
.qx-head .qx-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ph-ink); }
.qx-head .qx-back .icon { width: 18px; height: 18px; }
.qx-count { font-size: .82rem; color: var(--ph-muted); }

.qx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) { .qx-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 270px); } .qx-filter { position: sticky; top: 84px; } }

.qx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .qx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .qx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qx-layout-full .qx-grid { }
@media (min-width: 1100px) { .qx-wide .qx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.qx-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); min-width: 0; }
.qx-card-t { color: var(--ph-ink); font-size: .92rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qx-card-t:hover { color: var(--ph-magenta); }
.qx-card-m { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .76rem; color: var(--ph-muted); }
.qx-card-m b { font-weight: 600; color: var(--ph-text); }
.qx-card-a { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 4px; }
.qx-card-a a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 10px; border-radius: 6px; font-size: .8rem; font-weight: 600; text-align: center; }
.qx-card-a a .icon { width: 15px; height: 15px; }
.qx-btn-plain { background: var(--ph-soft); color: var(--ph-ink); border: 1px solid var(--ph-line2); }
.qx-btn-plain:hover { border-color: var(--ph-magenta); }
.qx-btn-soft { background: rgba(225, 28, 242, .12); color: var(--ph-magenta); border: 1px solid rgba(225, 28, 242, .28); }
.qx-btn-soft:hover { background: rgba(225, 28, 242, .2); }
.qx-card-a a:only-child { grid-column: 1 / -1; }
.qx-done { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: var(--ph-green); }
.qx-done .icon { width: 13px; height: 13px; }

.qx-filter { border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-ftoggle { display: none; }
.qx-filter form { display: grid; gap: 16px; padding: 16px; }
.qx-fhead { display: flex; align-items: center; justify-content: space-between; }
.qx-fhead strong { display: inline-flex; align-items: center; gap: 8px; color: var(--ph-ink); font-size: .92rem; }
.qx-fhead strong .icon { width: 16px; height: 16px; }
.qx-fhead a { color: var(--ph-red); font-size: .82rem; font-weight: 600; }
.qx-fgroup { display: grid; gap: 8px; }
.qx-fgroup > span { font-size: .76rem; font-weight: 600; color: var(--ph-muted); }
.qx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qx-chips label { position: relative; }
.qx-chips input { position: absolute; opacity: 0; pointer-events: none; }
.qx-chips label span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--ph-line2); border-radius: 6px; font-size: .78rem; font-weight: 600; color: var(--ph-text); cursor: pointer; }
.qx-chips input:checked + span { background: var(--ph-grad); border-color: transparent; color: #fff; }
.qx-chips input:focus-visible + span { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.qx-fsearch { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--ph-line2); border-radius: 6px; background: transparent; color: var(--ph-ink); font-size: 16px; }
.qx-checks { display: grid; gap: 2px; max-height: 190px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.qx-checks label { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 4px; font-size: .8rem; color: var(--ph-text); line-height: 1.4; cursor: pointer; }
.qx-checks label:hover { background: var(--ph-soft); }
.qx-checks input { margin-top: 2px; accent-color: #C514D9; width: 15px; height: 15px; flex-shrink: 0; }
.qx-checks em { margin-left: auto; font-style: normal; color: var(--ph-muted); font-size: .74rem; }
.qx-checks [hidden] { display: none; }
.qx-select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--ph-line2); border-radius: 6px; background: var(--ph-surface); color: var(--ph-ink); font-size: 16px; }
@media (max-width: 1099px) {
  .qx-filter { order: -1; }
  .qx-ftoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--ph-ink); font: inherit; font-weight: 600; cursor: pointer; }
  .qx-ftoggle .icon { width: 18px; height: 18px; }
  .qx-filter:not(.open) form { display: none; }
  .qx-filter.open .qx-ftoggle { border-bottom: 1px solid var(--ph-line); }
}

/* Institution, post and subject cards */
.qx-ocard { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); color: var(--ph-text); transition: border-color .15s ease; min-width: 0; }
.qx-ocard:hover { border-color: var(--ph-magenta); }
.qx-ohead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qx-ohead strong { color: var(--ph-ink); font-size: .9rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qx-logo { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: var(--ph-soft); color: var(--ph-ink2); font-size: .72rem; font-weight: 700; }
.qx-logo img { width: 100%; height: 100%; object-fit: contain; }
.qx-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.qx-stats span { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 8px; border-radius: 4px; background: var(--ph-soft); font-size: .74rem; color: var(--ph-muted); }
.qx-stats span b { color: var(--ph-text); font-weight: 600; }
.qx-stats .qx-go { color: var(--ph-magenta); font-weight: 600; }
.qx-stats .qx-go .icon { width: 12px; height: 12px; }
.qx-section { margin: 26px 0 12px; font-size: 1rem; color: var(--ph-ink); }
.qx-section:first-child { margin-top: 0; }

/* Browse page pills and selects */
.qx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.qx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.qx-pills a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border: 1px solid var(--ph-line2); border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--ph-text); }
.qx-pills a.active { background: var(--ph-grad); border-color: transparent; color: #fff; }
.qx-pills a .icon { width: 14px; height: 14px; }
.qx-bar form { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.qx-bar .qx-select { width: auto; min-width: 150px; }
@media (max-width: 639px) { .qx-bar form { margin-left: 0; width: 100%; } .qx-bar .qx-select { flex: 1; min-width: 0; } }

/* Model test cards */
.qx-test { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); min-width: 0; }
.qx-test-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.qx-test-top a { color: var(--ph-ink); font-weight: 600; font-size: .9rem; line-height: 1.45; }
.qx-test-top a:hover { color: var(--ph-magenta); }
.qx-tag { flex-shrink: 0; padding: 2px 6px; border-radius: 4px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: var(--ph-green); border: 1px solid currentColor; }
.qx-tag.paid { color: var(--ph-yellow); }
.qx-test-m { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--ph-muted); }
.qx-test-m span { display: inline-flex; align-items: center; gap: 4px; }
.qx-test-m .icon { width: 13px; height: 13px; }
.qx-test-m b { color: var(--ph-text); font-weight: 600; }
.qx-test-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 8px 10px; border-radius: 6px; background: var(--ph-soft); }
.qx-status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--ph-green); }
.qx-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.qx-status.upcoming { color: var(--ph-yellow); }
.qx-status.ended { color: var(--ph-muted); }
.qx-test-f a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 6px; background: var(--ph-grad); color: #fff; font-size: .78rem; font-weight: 700; }
.qx-test-f a .icon { width: 13px; height: 13px; }

.qx-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; border: 1px dashed var(--ph-line2); border-radius: 8px; color: var(--ph-muted); text-align: center; }
.qx-empty .icon { width: 28px; height: 28px; }
.qx-empty p { margin: 0; }
#list-region.is-loading .qx-grid { opacity: .5; transition: opacity .15s ease; }
.qx-pager { margin-top: 18px; }
html body .qx-checks input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; background: transparent; border: 0; box-shadow: none; padding: 0; }
html[data-theme="light"] .qx-checks input, html[data-theme="light"] .qx-select { color-scheme: light; }

/* PDF catalogue: group tabs, tool bar, side lists and the paper table */
.qx-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.qx-cats::-webkit-scrollbar { display: none; }
.qx-cats a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ph-line2); border-radius: 6px; color: var(--ph-text); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.qx-cats a b { font-size: .72rem; font-weight: 600; color: var(--ph-muted); }
.qx-cats a .icon { width: 15px; height: 15px; }
.qx-cats a.active { border-color: var(--ph-magenta); color: var(--ph-ink); background: rgba(225, 28, 242, .1); }
.qx-cats a.active .icon:last-child { color: var(--ph-magenta); }
.qx-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; padding: 10px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-tools-q { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.qx-tools-q .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ph-muted); }
.qx-tools-q input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--ph-line2); border-radius: 6px; background: transparent; color: var(--ph-ink); font-size: 16px; }
.qx-tools .qx-select { width: auto; min-width: 140px; flex: 0 1 170px; }
.qx-reset { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 6px; background: var(--ph-red); color: #fff; font-size: .82rem; font-weight: 700; }
.qx-cat-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .qx-cat-layout { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); } .qx-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; } }
.qx-side { border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-side-in { display: grid; gap: 4px; padding: 8px; }
@media (max-width: 1099px) {
  .qx-side .qx-ftoggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: var(--ph-ink); font: inherit; font-weight: 600; cursor: pointer; }
  .qx-side .qx-ftoggle .icon { width: 18px; height: 18px; }
  .qx-side:not(.open) .qx-side-in { display: none; }
}
.qx-sbox { padding: 8px; border-bottom: 1px solid var(--ph-line); }
.qx-sbox:last-child { border-bottom: 0; }
.qx-sbox h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .86rem; color: var(--ph-ink); }
.qx-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 4px; background: var(--ph-magenta); color: #fff; font-size: .68rem; }
.qx-slist { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; scrollbar-width: thin; border: 1px solid var(--ph-line); border-radius: 6px; }
.qx-slist li { border-bottom: 1px solid var(--ph-line); }
.qx-slist li:last-child { border-bottom: 0; }
.qx-slist li[hidden] { display: none; }
.qx-slist a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: .8rem; color: var(--ph-text); line-height: 1.4; }
.qx-slist a span { flex: 1; min-width: 0; }
.qx-slist a.is-child { padding-left: 22px; }
.qx-slist a em { font-style: normal; font-size: .72rem; color: var(--ph-muted); }
.qx-slist a:hover { background: var(--ph-soft); }
.qx-slist a.active { background: rgba(46, 211, 138, .12); color: var(--ph-ink); font-weight: 600; }
.qx-slist a.active .icon { width: 15px; height: 15px; color: var(--ph-green); }
.qx-more { display: grid; gap: 8px; }
.qx-date { display: grid; gap: 4px; font-size: .74rem; color: var(--ph-muted); }
.qx-mb { margin-bottom: 12px; }
.qx-pills a b { font-size: .7rem; color: inherit; opacity: .75; }
.qx-summary { margin-bottom: 14px; padding: 12px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-summary h2 { margin: 0 0 10px; font-size: .9rem; color: var(--ph-ink); }
.qx-scroll { overflow-x: auto; }
.qx-summary table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.qx-summary th, .qx-summary td { padding: 6px 8px; border-bottom: 1px solid var(--ph-line); text-align: left; white-space: nowrap; color: var(--ph-text); }
.qx-summary .num { text-align: right; }

.qx-table { border: 1px solid var(--ph-line2); border-radius: 8px; overflow: hidden; background: var(--ph-surface); }
.qx-tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 120px minmax(0, 300px); align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ph-line); }
.qx-tr:last-child { border-bottom: 0; }
.qx-tr:nth-child(even):not(.qx-th) { background: var(--ph-soft); }
.qx-th { padding: 10px 14px; background: rgba(225, 28, 242, .12); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ph-ink); }
.qx-act-h { text-align: right; }
.qx-no { color: var(--ph-muted); font-size: .82rem; }
.qx-name { display: grid; gap: 6px; min-width: 0; }
.qx-name > a { color: var(--ph-ink); font-weight: 600; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.qx-name > a:hover { color: var(--ph-magenta); }
.qx-tags { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.qx-tags em { font-style: normal; padding: 1px 7px; border-radius: 4px; background: var(--ph-soft); border: 1px solid var(--ph-line2); font-size: .7rem; color: var(--ph-text); }
.qx-tags i { font-style: normal; font-size: .72rem; color: var(--ph-muted); }
.qx-tags .qx-lock { color: var(--ph-yellow); border-color: currentColor; background: transparent; }
.qx-date-c { font-size: .82rem; color: var(--ph-text); white-space: nowrap; }
.qx-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.qx-acts a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 1px solid var(--ph-line2); border-radius: 6px; font-size: .76rem; font-weight: 600; color: var(--ph-magenta); white-space: nowrap; }
.qx-acts a:hover { border-color: var(--ph-magenta); }
.qx-acts a .icon { width: 14px; height: 14px; }
@media (max-width: 899px) {
  .qx-th { display: none; }
  .qx-tr { grid-template-columns: 28px minmax(0, 1fr); gap: 6px 10px; }
  .qx-date-c { grid-column: 2; font-size: .76rem; color: var(--ph-muted); }
  .qx-acts { grid-column: 2; justify-content: flex-start; }
  .qx-acts a { min-height: 38px; }
}
@media (max-width: 639px) { .qx-tools .qx-select { flex: 1 1 40%; min-width: 0; } .qx-tools-q { flex-basis: 100%; } }

/* Paper detail */
.qx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; font-size: .8rem; color: var(--ph-muted); }
.qx-crumbs a { color: var(--ph-text); }
.qx-crumbs a:hover { color: var(--ph-magenta); }
.qx-crumbs .icon { width: 12px; height: 12px; }
.qx-paper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) { .qx-paper { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } .qx-paper-side { position: sticky; top: 84px; } }
.qx-phead { padding: 20px; border: 1px solid rgba(225, 28, 242, .3); border-radius: 8px; background: rgba(225, 28, 242, .07); text-align: center; margin-bottom: 14px; }
.qx-phead h1 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4; color: var(--ph-ink); }
.qx-sub { margin: 6px 0 0; font-size: .86rem; color: var(--ph-text); }
.qx-note { margin: 8px auto 0; max-width: 70ch; font-size: .8rem; color: var(--ph-muted); line-height: 1.6; }
.qx-pfacts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--ph-line2); }
.qx-pfacts div { display: flex; gap: 6px; font-size: .84rem; }
.qx-pfacts dt { font-weight: 700; color: var(--ph-ink); }
.qx-pfacts dd { margin: 0; color: var(--ph-text); }
.qx-pmeta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 12px; font-size: .76rem; color: var(--ph-muted); }
.qx-pmeta span, .qx-pmeta a { display: inline-flex; align-items: center; gap: 4px; color: var(--ph-muted); }
.qx-pmeta .icon { width: 13px; height: 13px; }
.qx-pact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.qx-pact .btn { min-height: 42px; }
.qx-share { display: inline-flex; gap: 6px; }
.qx-share a, .qx-share button { display: inline-flex; align-items: center; gap: 4px; min-width: 42px; min-height: 42px; justify-content: center; padding: 0 10px; border: 1px solid var(--ph-line2); border-radius: 6px; background: transparent; color: var(--ph-text); font: inherit; font-size: .8rem; cursor: pointer; }
.qx-share .is-on { color: var(--ph-pink); border-color: currentColor; }
.qx-share .icon { width: 16px; height: 16px; }
.qx-rule { margin: 10px 0 0; font-size: .74rem; color: var(--ph-muted); }
.qx-progress { height: 6px; margin-top: 14px; border-radius: 3px; background: var(--ph-soft); overflow: hidden; }
.qx-progress span { display: block; height: 100%; background: var(--ph-grad); }
.qx-progress-l { display: block; margin-top: 4px; text-align: left; font-size: .72rem; color: var(--ph-muted); }
.qx-sectabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; padding: 6px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-sectabs::-webkit-scrollbar { display: none; }
.qx-sectabs button { flex-shrink: 0; min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--ph-text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.qx-sectabs button.active { background: var(--ph-grad); color: #fff; }
.qx-ptools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.qx-ptools-l, .qx-ptools-r { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qx-count-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border-radius: 6px; background: rgba(46, 211, 138, .14); color: var(--ph-green); font-size: .76rem; font-weight: 700; }
.qx-chip-go { background: transparent; border: 1px solid var(--ph-magenta); color: var(--ph-magenta); }
.qx-chip-go .icon { width: 12px; height: 12px; }
.qx-sec-h { margin: 18px 0 10px; padding: 10px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); text-align: center; font-size: 1rem; color: var(--ph-ink); }
.qx-sec-h small { color: var(--ph-muted); font-weight: 500; }
.qx-sec[hidden] { display: none; }
.qx-source { margin: 22px 0; }
.qx-source h2 { margin: 0 0 10px; font-size: 1rem; color: var(--ph-ink); }
.qx-paper-side { display: grid; gap: 14px; }
.qx-sidecard { padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-sidecard h2 { margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--ph-line2); font-size: .9rem; color: var(--ph-ink); }
.qx-sidecard a { display: block; padding: 10px 0; border-bottom: 1px solid var(--ph-line); font-size: .8rem; line-height: 1.55; color: var(--ph-text); }
.qx-sidecard a:last-child { border-bottom: 0; }
.qx-sidecard a:hover { color: var(--ph-magenta); }
.qx-side-all { font-weight: 600; }

/* Plain heading on converted Question Bank pages (progress, bookmarks, wrong questions, practice run). */
.qx-head-plain { display: block; margin-bottom: 18px; }
.qx-head-plain .tl-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .8rem; color: var(--ph-muted); }
.qx-head-plain .tl-crumbs a { color: var(--ph-text); }
.qx-head-plain .tl-crumbs .icon { width: 12px; height: 12px; }
.qx-head-plain h1 { margin: 0 0 4px; }
.qx-head-plain p { margin: 4px 0 0; font-size: .86rem; }
.qx-head-plain .tbtn, .qx-head-plain .qb-again { margin-top: 12px; }
.qx-body { max-width: 860px; }
.qx-body.qb-progress { max-width: none; }

/* Practice: Fast Practice / Mock Test tabs, subject and topic tiles, mock test builder */
.qx-ptabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin: 0 auto 20px; border-bottom: 1px solid var(--ph-line2); }
.qx-ptabs a { display: flex; justify-content: center; align-items: center; min-height: 46px; color: var(--ph-muted); font-weight: 700; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.qx-ptabs a.active { color: var(--ph-ink); border-bottom-color: var(--ph-magenta); }
.qx-fast-head { display: flex; align-items: center; gap: 10px; max-width: 980px; margin: 0 auto 14px; }
.qx-fast-head h1 { flex: 1; margin: 0; font-size: 1.1rem; color: var(--ph-ink); }
.qx-fast-head .qx-back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; color: var(--ph-ink); }
.qx-fast-head .qx-back:hover { background: var(--ph-soft); }
.qx-fast-head .qx-back .icon { width: 20px; height: 20px; }
.qx-fast-all { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 6px; background: var(--ph-grad); color: #fff; font-size: .82rem; font-weight: 700; }
.qx-fast-all .icon { width: 13px; height: 13px; }
.qx-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .qx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qx-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px 18px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); color: var(--ph-text); overflow: hidden; transition: border-color .15s ease; }
.qx-tile:hover { border-color: var(--ph-magenta); }
.qx-tile-ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px; background: rgba(74, 91, 255, .16); color: #7C8BFF; }
.qx-tile-ic .icon { width: 17px; height: 17px; }
.qx-tile-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qx-tile-t strong { color: var(--ph-ink); font-size: .88rem; line-height: 1.4; }
.qx-tile-t small { color: var(--ph-muted); font-size: .74rem; }
.qx-tile-chev { width: 16px; height: 16px; color: var(--ph-muted); }
.qx-tile-go { display: grid; place-items: center; width: 34px; height: 24px; border-radius: 12px; background: rgba(46, 211, 138, .18); color: var(--ph-green); }
.qx-tile-go .icon { width: 12px; height: 12px; }
.qx-tile-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ph-soft); }
.qx-tile-bar span { display: block; height: 100%; background: var(--ph-green); }
.qx-fast-note { max-width: 980px; margin: 16px auto 0; font-size: .8rem; color: var(--ph-muted); }
.qx-mock { max-width: 1100px; margin: 0 auto; }
.qx-mock-intro { margin: 0 0 16px; }
.qx-mock .tp-grid { display: block; }
.qx-mock .tp-tree { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 900px) { .qx-mock .tp-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.qx-mock .tp-tree[hidden] { display: none; }
.qx-mock .tp-side { position: sticky; bottom: 0; z-index: 5; margin-top: 18px; }
.qx-mock .tp-sum { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-bg2); box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); }
.qx-mock .tp-sum h3 { display: none; }
.qx-mock .tp-sum ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .qx-mock .tp-sum { grid-template-columns: minmax(0, 1fr) minmax(0, 260px); align-items: center; } .qx-mock .tp-sum ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qx-mock .tp-sum li { display: grid; gap: 2px; font-size: .74rem; color: var(--ph-muted); }
.qx-mock .tp-sum li b { font-size: .88rem; color: var(--ph-ink); }
.qx-mock .tp-go { width: 100%; justify-content: center; min-height: 46px; }
.qx-mock .tp-recent { margin-top: 14px; }
@media (max-width: 759px) { .stu-body .qx-mock .tp-side { bottom: 64px; } }

/* Mock test builder inside the learner shell (the site theme that styled it is not loaded here). */
.qx-mock .tp-step { margin-bottom: 16px; padding: 16px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-mock .tp-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1rem; color: var(--ph-ink); }
.qx-mock .tp-step h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--ph-grad); color: #fff; font-size: .8rem; }
.qx-mock .tp-step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qx-mock .tp-step-head h2 { margin-bottom: 0; }
.qx-mock .tp-quick { display: flex; gap: 6px; }
.qx-mock .tp-quick button { min-height: 34px; padding: 0 12px; border: 1px solid var(--ph-line2); border-radius: 6px; background: transparent; color: var(--ph-text); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.qx-mock .tp-quick button:hover { border-color: var(--ph-magenta); }
.qx-mock .tp-hint { margin: 8px 0 12px; font-size: .78rem; color: var(--ph-muted); }
.qx-mock .tp-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.qx-mock .tp-track { position: relative; cursor: pointer; }
.qx-mock .tp-track input { position: absolute; opacity: 0; pointer-events: none; }
.qx-mock .tp-track > span { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--ph-line2); border-radius: 8px; }
.qx-mock .tp-track strong { color: var(--ph-ink); font-size: .86rem; }
.qx-mock .tp-track small { color: var(--ph-muted); font-size: .74rem; }
.qx-mock .tp-track input:checked + span { border-color: var(--ph-magenta); background: rgba(225, 28, 242, .1); }
.qx-mock .tp-track input:focus-visible + span { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.qx-mock .tp-subj { border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-bg2); }
.qx-mock .tp-subj > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; list-style: none; cursor: pointer; }
.qx-mock .tp-subj > summary::-webkit-details-marker { display: none; }
.qx-mock .tp-subj > summary strong { flex: 1; min-width: 0; color: var(--ph-ink); font-size: .86rem; }
.qx-mock .tp-subj > summary small { color: var(--ph-muted); font-size: .74rem; white-space: nowrap; }
.qx-mock .tp-subj .caret { width: 16px; height: 16px; color: var(--ph-muted); transition: rotate .15s ease; }
.qx-mock .tp-subj[open] .caret { rotate: 180deg; }
.qx-mock .tp-check { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; }
.qx-mock .tp-check input, .qx-mock .tp-topic input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qx-mock .tp-check span, .qx-mock .tp-topic .box { width: 18px; height: 18px; border: 1.5px solid var(--ph-line2); border-radius: 4px; background: transparent; }
.qx-mock .tp-check input:checked + span, .qx-mock .tp-topic input:checked + .box { background: var(--ph-grad); border-color: transparent; box-shadow: inset 0 0 0 3px var(--ph-bg2); }
.qx-mock .tp-check input:indeterminate + span { background: linear-gradient(var(--ph-magenta), var(--ph-magenta)) center / 10px 2px no-repeat; border-color: var(--ph-magenta); }
.qx-mock .tp-topics { display: grid; gap: 2px; padding: 4px 10px 10px 40px; }
.qx-mock .tp-topic { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px; border-radius: 6px; cursor: pointer; }
.qx-mock .tp-topic:hover { background: var(--ph-soft); }
.qx-mock .tp-topic .t { flex: 1; min-width: 0; font-size: .8rem; color: var(--ph-text); }
.qx-mock .tp-topic b { font-size: .74rem; font-weight: 600; color: var(--ph-muted); }
.qx-mock .tp-sets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .qx-mock .tp-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qx-mock .tp-range, .qx-mock .tp-field { display: grid; gap: 6px; }
.qx-mock .tp-range label, .qx-mock .tp-field label, .qx-mock .tp-field .lbl { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; color: var(--ph-text); }
.qx-mock .tp-range label b { color: var(--ph-ink); }
.qx-mock .tp-range input[type="range"] { width: 100%; accent-color: #C514D9; }
.qx-mock .tp-range small { font-size: .74rem; color: var(--ph-muted); }
.qx-mock .tp-field .select { width: 100%; height: 42px; padding: 0 10px; border: 1px solid var(--ph-line2); border-radius: 6px; background: var(--ph-surface); color: var(--ph-ink); font-size: 16px; }
.qx-mock .tp-seg { display: flex; gap: 6px; }
.qx-mock .tp-seg label { position: relative; flex: 1; }
.qx-mock .tp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.qx-mock .tp-seg span { display: flex; justify-content: center; align-items: center; min-height: 40px; border: 1px solid var(--ph-line2); border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--ph-text); cursor: pointer; }
.qx-mock .tp-seg input:checked + span { background: var(--ph-grad); border-color: transparent; color: #fff; }
.qx-mock .tp-modes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
@media (min-width: 760px) { .qx-mock .tp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qx-mock .tp-mode { position: relative; display: flex; gap: 10px; padding: 12px; border: 1px solid var(--ph-line2); border-radius: 8px; cursor: pointer; }
.qx-mock .tp-mode input { position: absolute; opacity: 0; pointer-events: none; }
.qx-mock .tp-mode:has(input:checked) { border-color: var(--ph-magenta); background: rgba(225, 28, 242, .08); }
.qx-mock .tp-mode .ic { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 6px; background: var(--ph-soft); color: var(--ph-magenta); }
.qx-mock .tp-mode .ic .icon { width: 17px; height: 17px; }
.qx-mock .tp-mode strong { display: block; color: var(--ph-ink); font-size: .86rem; }
.qx-mock .tp-mode small { display: block; color: var(--ph-muted); font-size: .76rem; line-height: 1.5; }
.qx-mock .tp-note { margin: 0; font-size: .74rem; color: var(--ph-muted); text-align: center; }
.qx-mock .tp-recent { padding: 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-mock .tp-recent h3 { margin: 0 0 8px; font-size: .9rem; color: var(--ph-ink); }
.qx-mock .tp-recent a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ph-line); color: var(--ph-text); }
.qx-mock .tp-recent a:last-child { border-bottom: 0; }
.qx-mock .tp-recent strong { display: block; font-size: .82rem; color: var(--ph-ink); }
.qx-mock .tp-recent small { display: block; font-size: .74rem; color: var(--ph-muted); }
.qx-mock .tp-recent b { color: var(--ph-magenta); font-size: .82rem; }
.qx-mock .ll-soon { text-align: center; }
.qx-mock .qx-fast-head, .qx-mock .qx-fast-note { max-width: none; }
.qx-mock .tp-seg label { display: block; }
.qx-mock .tp-seg span { width: 100%; }
@media (max-width: 759px) { .qx-mock .tp-sum li:nth-child(-n+2) { display: none; } .qx-mock .tp-sum { padding: 10px; gap: 8px; } }

/* Subject page */
.qx-strip { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; margin-bottom: 16px; padding: 6px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-strip a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 6px; color: var(--ph-text); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.qx-strip a:hover { background: var(--ph-soft); }
.qx-strip a.active { background: var(--ph-soft); color: var(--ph-ink); box-shadow: inset 0 -2px 0 var(--ph-magenta); }
.qx-shead { display: grid; justify-items: center; gap: 12px; margin-bottom: 14px; padding: 18px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); text-align: center; }
.qx-shead h1 { display: grid; gap: 4px; margin: 0; font-size: 1.25rem; color: var(--ph-ink); }
.qx-shead h1 small { font-size: .84rem; font-weight: 500; color: var(--ph-muted); }
.qx-shead-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.qx-shead-chips span, .qx-shead-chips a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border: 1px solid var(--ph-line2); border-radius: 6px; font-size: .78rem; font-weight: 600; color: var(--ph-text); }
.qx-shead-chips .qx-chip-go { border-color: var(--ph-magenta); color: var(--ph-magenta); }
.qx-shead-chips .icon { width: 12px; height: 12px; }
.qx-center { justify-content: center; }
.qx-clear { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--ph-red); }
.qx-clear .icon { width: 13px; height: 13px; }
.qx-dated { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.qx-dated label { display: grid; gap: 4px; font-size: .74rem; color: var(--ph-muted); }
.qx-topics ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 70vh; overflow-y: auto; scrollbar-width: thin; }
.qx-topics li { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--ph-line); }
.qx-topics li[hidden] { display: none; }
.qx-topics li > a:first-child { flex: 1; display: flex; align-items: center; gap: 8px; padding: 9px 4px; border: 0; font-size: .8rem; color: var(--ph-text); }
.qx-topics li > a:first-child span { flex: 1; min-width: 0; }
.qx-topics li > a.active { color: var(--ph-magenta); font-weight: 600; }
.qx-topics em { font-style: normal; font-size: .72rem; color: var(--ph-muted); }
.qx-topic-go { display: inline-grid !important; place-items: center; width: 30px; height: 30px; padding: 0 !important; border: 0 !important; border-radius: 6px; color: var(--ph-green) !important; }
.qx-topic-go:hover { background: var(--ph-soft); }
.qx-topic-go .icon { width: 13px; height: 13px; }

/* Exam introduction */
.qx-intro { margin-bottom: 14px; padding: 18px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-intro-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qx-intro-top h1 { margin: 0; font-size: 1.15rem; line-height: 1.45; color: var(--ph-ink); }
.qx-intro-top p { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: .8rem; color: var(--ph-muted); }
.qx-intro-top p .icon { width: 14px; height: 14px; }
.qx-stat5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
@media (max-width: 559px) { .qx-stat5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qx-stat5 div { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--ph-line); border-radius: 8px; background: var(--ph-bg2); }
.qx-stat5 span .icon { width: 16px; height: 16px; color: var(--ph-magenta); }
.qx-stat5 dt { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ph-muted); }
.qx-stat5 dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ph-ink); }
.qx-intro-act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.qx-intro-act .btn { min-height: 44px; justify-content: center; }
.qx-intro-note { margin: 8px 0 0; font-size: .76rem; color: var(--ph-muted); }
.qx-guest { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 640px) { .qx-guest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qx-guest label { display: grid; gap: 4px; font-size: .78rem; color: var(--ph-muted); }
.qx-intro-block { margin-bottom: 14px; }
.qx-checklist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.qx-checklist li { display: flex; gap: 8px; font-size: .82rem; color: var(--ph-text); line-height: 1.5; }
.qx-checklist .icon { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; color: var(--ph-green); }
.qx-leaders { list-style: none; margin: 0; padding: 0; }
.qx-leaders li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ph-line); font-size: .8rem; }
.qx-leaders li:last-child { border-bottom: 0; }
.qx-leaders b { width: 22px; color: var(--ph-muted); }
.qx-leaders span { flex: 1; min-width: 0; color: var(--ph-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-leaders em { font-style: normal; font-weight: 700; color: var(--ph-ink); }

/* GK and current affairs */
.qx-gk { max-width: 900px; margin: 0 auto; }
.qx-gk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.qx-gk-head h1 { margin: 0; font-size: 1.3rem; color: var(--ph-ink); }
.qx-gk-head p { margin: 2px 0 0; font-size: .8rem; color: var(--ph-muted); }
.qx-gk-practice { display: flex; align-items: center; gap: 12px; max-width: 420px; margin-bottom: 14px; padding: 12px 14px; border-radius: 8px; background: linear-gradient(90deg, #0F8F6B, #12A7B8); color: #fff; }
.qx-gk-practice > span:nth-child(2) { flex: 1; display: grid; }
.qx-gk-practice strong { font-size: .9rem; }
.qx-gk-practice small { font-size: .74rem; opacity: .85; }
.qx-gk-practice .icon { width: 16px; height: 16px; }
.qx-gk-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.qx-gk-filter { display: grid; gap: 8px; margin-bottom: 14px; padding: 10px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-gk-selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 639px) { .qx-gk-selects { grid-template-columns: minmax(0, 1fr); } }

/* Smart Vision Pro: free-plan strip and links on locked answers */
.qx-pro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(255, 201, 74, .35); border-radius: 8px; background: rgba(255, 201, 74, .08); }
.qx-pro p { flex: 1 1 260px; margin: 0; font-size: .82rem; color: var(--ph-text); line-height: 1.5; }
.qx-pro-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; background: rgba(255, 201, 74, .18); color: var(--ph-yellow); }
.qx-pro-ic .icon { width: 16px; height: 16px; }
.qx-pro .btn { min-height: 40px; }
.qb-pro-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 8px; padding: 0 14px; border-radius: 6px; background: var(--ph-grad); color: #fff; font-size: .8rem; font-weight: 700; }
.qb-fast-fb .qb-pro-link { margin-left: 8px; }

/* Question cards: tap an option to check it */
.qb-opt-li { list-style: none; }
button.qb-opt { display: flex; align-items: flex-start; gap: 6px; width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--ph-line2); border-radius: 6px; background: var(--ph-soft); color: var(--ph-text); font: inherit; font-size: .92rem; line-height: 1.5; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
button.qb-opt:hover:not(:disabled) { border-color: var(--ph-magenta); }
button.qb-opt:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
button.qb-opt:disabled { cursor: default; }
button.qb-opt.is-checking { opacity: .6; }
button.qb-opt.right { border-color: var(--ph-green); background: rgba(46, 211, 138, .14); color: var(--ph-ink); font-weight: 600; }
button.qb-opt.wrong { border-color: var(--ph-red); background: rgba(255, 77, 109, .12); color: var(--ph-ink); }
button.qb-opt.right b { color: var(--ph-green); }
button.qb-opt.wrong b { color: var(--ph-red); }
.qb-pick-fb { margin: 10px 0 0 38px; padding: 10px 12px; border-left: 3px solid var(--ph-line2); border-radius: 4px; background: var(--ph-soft); font-size: .86rem; color: var(--ph-text); }
.qb-pick-fb strong { display: block; color: var(--ph-ink); }
.qb-pick-fb.is-right { border-left-color: var(--ph-green); }
.qb-pick-fb.is-right strong { color: var(--ph-green); }
.qb-pick-fb.is-wrong { border-left-color: var(--ph-red); }
.qb-pick-fb.is-wrong strong { color: var(--ph-red); }
.qb-pick-fb.is-locked { border-left-color: var(--ph-yellow); }
.qb-pick-expl, .qb-pick-msg { margin: 4px 0 0; line-height: 1.6; }
.qb-q.picked-right { border-left: 3px solid var(--ph-green); }
.qb-q.picked-wrong { border-left: 3px solid var(--ph-red); }
@media (max-width: 640px) { .qb-pick-fb { margin-left: 0; } }

/* Hub overview: the question bank menu as cards, group by group */
.qh-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
.qh-top h1 { margin: 0; font-size: 1.35rem; line-height: 1.3; color: var(--ph-ink); }
.qh-top p { margin: 6px 0 0; max-width: 62ch; font-size: .86rem; line-height: 1.6; color: var(--ph-muted); }
.qh-top-slim { margin-bottom: 18px; }
.qh-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); overflow: hidden; }
.qh-totals div { padding: 12px 14px; border-top: 1px solid var(--ph-line); min-width: 0; }
.qh-totals div:nth-child(-n+2) { border-top: 0; }
.qh-totals div:nth-child(even) { border-left: 1px solid var(--ph-line); }
.qh-totals dt { font-size: .74rem; color: var(--ph-muted); }
.qh-totals dd { margin: 2px 0 0; font-size: 1.3rem; font-weight: 700; color: var(--ph-ink); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .qh-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qh-totals div { border-top: 0; }
  .qh-totals div + div { border-left: 1px solid var(--ph-line); }
}
@media (min-width: 1200px) { .qh-top { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: end; } }

.qh-group { margin-bottom: 32px; scroll-margin-top: 90px; }
.qh-ghead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ph-line); }
.qh-ghead > div { min-width: 0; flex: 1; }
.qh-ghead h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--ph-ink); }
.qh-ghead p { margin: 2px 0 0; font-size: .78rem; color: var(--ph-muted); }
.qh-gicon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border: 1px solid var(--ph-line2); border-radius: 8px; color: var(--ph-magenta); }
.qh-gicon .icon { width: 18px; height: 18px; }
.qh-all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; font-size: .8rem; font-weight: 600; color: var(--ph-magenta); white-space: nowrap; }
.qh-all .icon { width: 14px; height: 14px; transition: transform .15s ease; }
.qh-all:hover .icon { transform: translateX(2px); }
@media (max-width: 479px) { .qh-ghead { flex-wrap: wrap; } .qh-all { margin-left: 48px; min-height: 32px; } }

.qh-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .qh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .qh-grid:not(.qh-grid-2) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.qh-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); min-width: 0; transition: border-color .15s ease; }
.qh-card:not(.is-empty):hover { border-color: var(--ph-magenta); }
.qh-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.qh-card h3 { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--ph-ink); overflow-wrap: anywhere; }
.qh-stretch { color: inherit; }
.qh-stretch::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.qh-stretch:focus-visible { outline: none; }
.qh-stretch:focus-visible::after { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.qh-n { flex-shrink: 0; padding-top: 2px; font-size: .76rem; font-weight: 600; color: var(--ph-text); white-space: nowrap; }
.qh-figs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); margin: 0; border-top: 1px solid var(--ph-line); border-bottom: 1px solid var(--ph-line); }
.qh-figs div { padding: 8px 0; min-width: 0; }
.qh-figs div + div { padding-left: 10px; border-left: 1px solid var(--ph-line); }
.qh-figs dt { font-size: .7rem; color: var(--ph-muted); }
.qh-figs dd { margin: 1px 0 0; font-size: .9rem; font-weight: 700; color: var(--ph-ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qh-figs div:last-child dd { font-size: .8rem; font-weight: 600; padding-top: 2px; }
.qh-note { margin: 0; font-size: .76rem; line-height: 1.5; color: var(--ph-muted); overflow-wrap: anywhere; }
.qh-sub { position: relative; z-index: 1; display: grid; margin: 0; padding: 0; list-style: none; }
.qh-sub li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--ph-line); font-size: .8rem; }
.qh-sub li:first-child { border-top: 0; }
.qh-sub a { color: var(--ph-text); font-weight: 600; overflow-wrap: anywhere; }
.qh-sub a:hover { color: var(--ph-magenta); }
.qh-sub span { color: var(--ph-muted); overflow-wrap: anywhere; }
.qh-sub em { flex-shrink: 0; font-style: normal; font-size: .74rem; color: var(--ph-muted); font-variant-numeric: tabular-nums; }
.qh-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: .78rem; font-weight: 600; color: var(--ph-magenta); }
.qh-go .icon { width: 13px; height: 13px; transition: transform .15s ease; }
.qh-card:hover .qh-go .icon { transform: translateX(2px); }
.qh-card.is-empty { background: transparent; border-style: dashed; }
.qh-card.is-empty h3 { color: var(--ph-muted); font-weight: 500; }
.qh-card.is-empty .qh-n { color: var(--ph-muted); font-weight: 500; }

.qh-soon { margin-top: 10px; }
.qh-grid + .qh-soon { margin-top: 12px; }
.qh-soon-h { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 600; color: var(--ph-muted); }
.qh-soon ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.qh-soon li { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--ph-line2); border-radius: 6px; min-width: 0; }
.qh-soon li span { font-size: .8rem; color: var(--ph-text); overflow-wrap: anywhere; }
.qh-soon li small { font-size: .72rem; color: var(--ph-muted); overflow-wrap: anywhere; }
@media (min-width: 640px) { .qh-soon ul { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }

.qh-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 560px) { .qh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .qh-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .qh-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.qh-tile { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); color: var(--ph-text); min-width: 0; transition: border-color .15s ease; }
.qh-tile:hover { border-color: var(--ph-magenta); }
.qh-tile-i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; background: var(--ph-soft); color: var(--ph-magenta); }
.qh-tile-i .icon { width: 16px; height: 16px; }
.qh-tile > span:last-child { min-width: 0; }
.qh-tile strong { display: block; font-size: .88rem; color: var(--ph-ink); line-height: 1.35; }
.qh-tile small { display: block; margin-top: 2px; font-size: .74rem; line-height: 1.45; color: var(--ph-muted); }

.qh-practice { display: flex; flex-direction: column; gap: 10px; margin: -8px 0 36px; padding: 12px 14px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qh-practice strong { font-size: .82rem; color: var(--ph-ink); white-space: nowrap; }
.qh-practice div { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.qh-practice a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .8rem; font-weight: 600; color: var(--ph-text); }
.qh-practice a:hover { color: var(--ph-magenta); }
.qh-practice .icon { width: 15px; height: 15px; color: var(--ph-magenta); }
@media (min-width: 900px) { .qh-practice { flex-direction: row; align-items: center; gap: 20px; } .qh-practice strong { padding-right: 20px; border-right: 1px solid var(--ph-line); } }

.qh-listhead { padding-top: 4px; }
.qh-listhead h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--ph-ink); }

/* Question card sources: one chip per source paper ("BPSC 2024 · Prelim") and the exam count in the header. */
.qb-q .qb-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; padding: 8px 0 0 38px; border-top: 1px solid var(--ph-line); font-size: .74rem; color: var(--ph-muted); }
.qb-q .qb-sources > span:first-child { display: inline-flex; align-items: center; gap: 4px; margin-right: 2px; }
.qb-q .qb-sources .icon { width: 13px; height: 13px; }
.qb-q .qb-sources a.qb-src { display: inline-flex; align-items: center; max-width: 100%; min-height: 26px; padding: 2px 8px; border: 1px solid var(--ph-line2); border-radius: 4px; background: transparent; color: var(--ph-text); font-size: .74rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; transition: border-color .15s ease, color .15s ease; }
.qb-q .qb-sources a.qb-src:hover { border-color: var(--ph-magenta); color: var(--ph-ink); background: transparent; }
.qb-q .qb-sources a.qb-src:focus-visible, .qx-book:focus-visible, .qx-topicnav a:focus-visible, .qx-drill a:focus-visible, .qx-chap summary:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.qb-q .qb-sources .qb-src-more { padding: 0 4px; font-weight: 600; }
.qb-q-seen { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid var(--ph-line2); border-radius: 4px; font-size: .7rem; font-weight: 700; line-height: 1.5; color: var(--ph-text); white-space: nowrap; }
.qb-q-seen .icon { width: 12px; height: 12px; color: var(--ph-magenta); }
@media (max-width: 860px) { .qb-q .qb-sources { padding-left: 0; } }
@media (max-width: 480px) { .qb-q-head { flex-wrap: wrap; } .qb-q-head .qb-q-text { flex: 1 1 calc(100% - 40px); } .qb-q-seen { margin-left: 38px; } }

/* Related books under a paper: quieter than the questions, no card surface. */
.qx-books { margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--ph-line2); }
.qx-books-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.qx-books-head h2 { margin: 0; font-size: .92rem; color: var(--ph-ink); }
.qx-books-head a { display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: .78rem; font-weight: 600; color: var(--ph-muted); }
.qx-books-head a:hover { color: var(--ph-magenta); }
.qx-books-head .icon { width: 14px; height: 14px; }
.qx-books-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .qx-books-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qx-book { display: flex; flex-direction: column; gap: 6px; color: var(--ph-text); }
.qx-book .book-cover { max-width: 132px; width: 100%; box-shadow: none; border: 1px solid var(--ph-line); border-radius: 4px; }
.qx-book .cover-art { padding: .6rem; font-size: .7rem; }
.qx-book .cover-art .ca-top { display: none; }
.qx-book-t { font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qx-book:hover .qx-book-t { color: var(--ph-magenta); }
.qx-book-p { font-size: .78rem; font-weight: 700; color: var(--ph-ink); }

/* Subject view: filter panel, chapter > topic tree, previous and next topic. */
.qx-qfilter form { display: grid; gap: 12px; margin-top: 10px; }
.qx-qfilter label { display: grid; gap: 6px; font-size: .76rem; font-weight: 600; color: var(--ph-muted); }
.qx-qfilter .qx-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font-size: .82rem; color: var(--ph-text); cursor: pointer; }
.qx-qfilter .qx-switch input { width: 18px; height: 18px; accent-color: var(--ph-magenta); }
.qx-qfilter .qx-switch input:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.qx-qfilter select { width: 100%; }
.qx-qf-short { display: flex; flex-wrap: wrap; gap: 6px; }
.qx-qfilter .qx-qf-short a { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 10px; border: 1px solid var(--ph-line2); border-bottom: 1px solid var(--ph-line2); border-radius: 6px; font-size: .78rem; font-weight: 600; color: var(--ph-text); }
.qx-qfilter .qx-qf-short a.active { background: var(--ph-grad); border-color: transparent; color: #fff; }
.qx-qfilter .qx-qf-short a .icon { width: 14px; height: 14px; }
.qx-chap { border-bottom: 1px solid var(--ph-line); }
.qx-chap summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 2px; cursor: pointer; list-style: none; font-size: .82rem; font-weight: 700; color: var(--ph-ink); }
.qx-chap summary::-webkit-details-marker { display: none; }
.qx-chap summary span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qx-chap summary em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--ph-muted); }
.qx-chap summary .icon { width: 14px; height: 14px; color: var(--ph-muted); transition: rotate .15s ease; }
.qx-chap[open] summary .icon { rotate: 90deg; }
.qx-topics .qx-chap ul { margin: 0 0 6px; max-height: none; padding-left: 10px; border-left: 1px solid var(--ph-line2); }
.qx-topics .qx-chap li:last-child { border-bottom: 0; }
.qx-topicnav { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.qx-topicnav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 48%; padding: 0 12px; border: 1px solid var(--ph-line2); border-radius: 6px; font-size: .8rem; font-weight: 600; color: var(--ph-text); }
.qx-topicnav a:hover { border-color: var(--ph-magenta); color: var(--ph-ink); }
.qx-topicnav a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-topicnav a .icon { flex: none; width: 15px; height: 15px; }
.qx-topicnav .qx-next { margin-left: auto; }

/* Fast practice: subjects under programme headings. */
.qx-fgroups { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.qx-fgroup-h { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ph-line2); font-size: .95rem; color: var(--ph-ink); }
.qx-fgroup-h small { font-size: .74rem; font-weight: 600; color: var(--ph-muted); }

/* Post cards (year span) and programme drill-down on the papers page. */
.qx-years { margin-top: -6px; font-size: .76rem; color: var(--ph-muted); }
.qx-drill { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); }
.qx-drill-row { display: grid; gap: 6px; }
@media (min-width: 760px) { .qx-drill-row { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); align-items: start; } .qx-drill-row > span { padding-top: 8px; } }
.qx-drill-row > span { font-size: .76rem; font-weight: 700; color: var(--ph-muted); }
.qx-drill .qx-pills a { max-width: 100%; overflow-wrap: anywhere; }

/* Paper page: date under the title, actions under the card, filter panel on top on small screens. */
.qx-pdate { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: .84rem; color: var(--ph-text); }
.qx-pdate .icon { width: 15px; height: 15px; color: var(--ph-magenta); }
.qx-pfacts { justify-content: center; gap: 6px 0; }
.qx-pfacts div + div::before { content: "|"; margin: 0 12px; color: var(--ph-line2); }
.qx-pbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--ph-line2); border-radius: 6px; font-size: .84rem; font-weight: 600; color: var(--ph-ink); transition: border-color .15s ease; }
.qx-pbtn:hover { border-color: var(--ph-magenta); }
.qx-pbtn .icon { width: 16px; height: 16px; }
.qx-pbtn-main { background: var(--ph-grad); border-color: transparent; color: #fff; }
.qx-pbtn-main:hover { border-color: transparent; filter: brightness(1.08); }
.qx-pbtn:focus-visible, .qx-qfilter a:focus-visible, .qx-tabs form input:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.qx-paper-side .qx-qfilter form { gap: 12px; }
.qx-qfilter .qx-fgroup > span { font-size: .76rem; font-weight: 600; color: var(--ph-muted); }
@media (max-width: 1099px) {
  .qx-paper-side { display: contents; }
  .qx-paper-side > * { order: 1; }
  .qx-paper-side > .qx-qfilter { order: -1; }
}
@media (max-width: 559px) { .qx-ptools-r { width: 100%; } .qx-ptools-r .qx-pbtn { flex: 1 1 0; justify-content: center; } }

/* Question card: explanation folds open, quiet stats and share on the right of the footer. */
.qb-q details.qb-expl { margin-top: 8px; border: 1px solid var(--ph-line); border-radius: 6px; }
.qb-q details.qb-expl summary { display: flex; align-items: center; min-height: 38px; padding: 0 10px; cursor: pointer; font-size: .8rem; font-weight: 700; color: var(--ph-ink); }
.qb-q details.qb-expl summary:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: 2px; }
.qb-q details.qb-expl p { margin: 0; padding: 0 10px 10px; font-size: .86rem; line-height: 1.7; color: var(--ph-text); white-space: pre-line; overflow-wrap: anywhere; }
.qb-q details.qb-expl.is-empty p { color: var(--ph-muted); }
.qb-q-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: .76rem; color: var(--ph-muted); }
.qb-q-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.qb-q-meta .icon { width: 14px; height: 14px; }

.qx-stat5 { display: flex; flex-wrap: wrap; }
.qx-stat5 div { flex: 1 1 0; min-width: 76px; }
.qx-summary .qx-nil { color: var(--ph-muted); }

/* Exam card grid: three columns beside the filter panel on desktop, meta read as one line. */
@media (min-width: 1280px) { .qx-layout .qx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qx-card-m { gap: 4px 0; }
.qx-card-m > span + span::before { content: "·"; margin: 0 6px; color: var(--ph-muted); }

/* Hub exam group menu: a tab row with one open panel on wide screens, an accordion on phones. */
.qh-gm { margin-bottom: 28px; }
.qh-gm-list { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--ph-line2); border-radius: 8px; background: var(--ph-surface); overflow: hidden; }
.qh-gm-item { border-bottom: 1px solid var(--ph-line); }
.qh-gm-item:last-child { border-bottom: 0; }
.qh-gm-tab { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--ph-text); font: inherit; font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.qh-gm-tab > .icon { flex: none; width: 17px; height: 17px; color: var(--ph-muted); }
.qh-gm-tab span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qh-gm-tab em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--ph-muted); }
.qh-gm-tab .qh-gm-chev { width: 15px; height: 15px; color: var(--ph-muted); transition: rotate .15s ease; }
.qh-gm-tab[aria-expanded="true"] { color: var(--ph-ink); }
.qh-gm-tab[aria-expanded="true"] > .icon { color: var(--ph-magenta); }
.qh-gm-tab[aria-expanded="true"] .qh-gm-chev { rotate: 180deg; }
.qh-gm-tab:hover { color: var(--ph-ink); }
.qh-gm-tab:focus-visible, .qh-gm-panel a:focus-visible { outline: 2px solid var(--ph-magenta); outline-offset: -2px; }
.qh-gm-panel { padding: 4px 14px 14px; }
.qh-gm-panel ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.qh-gm-panel li a { display: flex; align-items: center; gap: 10px; min-height: 42px; border-bottom: 1px solid var(--ph-line); font-size: .84rem; color: var(--ph-text); }
.qh-gm-panel li a span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.qh-gm-panel li a em { font-style: normal; font-size: .74rem; font-weight: 600; color: var(--ph-muted); }
.qh-gm-panel li a:hover { color: var(--ph-magenta); }
.qh-gm-panel li a.is-empty { color: var(--ph-muted); }
.qh-gm-all { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--ph-magenta); }
.qh-gm-all .icon { width: 14px; height: 14px; }
.qh-gm-none { margin: 0; padding: 8px 0 4px; font-size: .82rem; color: var(--ph-muted); }
@media (min-width: 760px) {
  .qh-gm-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .qh-gm-item { display: contents; }
  .qh-gm-tab { grid-row: 1; flex-direction: column; justify-content: center; gap: 4px; min-height: 76px; padding: 10px 8px; border-bottom: 1px solid var(--ph-line2); text-align: center; }
  .qh-gm-tab span { flex: none; }
  .qh-gm-tab .qh-gm-chev { display: none; }
  .qh-gm-tab[aria-selected="true"] { background: var(--ph-soft); box-shadow: inset 0 -2px 0 var(--ph-magenta); }
  .qh-gm-panel { grid-row: 2; grid-column: 1 / -1; padding: 8px 18px 16px; }
  .qh-gm-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) { .qh-gm-panel ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
