/* Soru Bankası — tüm kurallar bu sekmenin sınırları içinde kalır. */
#qbank-view {
  --qb-ink: #30382f;
  --qb-muted: #697064;
  --qb-line: #e0e2d9;
  --qb-paper: #fffefa;
  --qb-soft: #f2f3ed;
  --qb-accent: #af5438;
  --qb-accent-soft: #f7e9df;
  --qb-green: #294d40;
  --qb-garden: #e8eddf;
  --qb-shadow: 0 10px 30px -20px #35433555;
  color: var(--qb-ink);
}
[data-theme="mulakat-dark"] #qbank-view {
  --qb-ink: #e8e9de;
  --qb-muted: #acb3a6;
  --qb-line: #364137;
  --qb-paper: #212a25;
  --qb-soft: #28322b;
  --qb-accent: #edaa87;
  --qb-accent-soft: #3d312b;
  --qb-green: #b7d1ad;
  --qb-garden: #2b382d;
  --qb-shadow: 0 10px 30px -20px #000a;
}
#qbank-view [hidden] { display: none !important; }
#qbank-view :where(button, input, select) { font: inherit; }
#qbank-view :where(button) { cursor: pointer; }
#qbank-view :where(button):disabled { opacity: .4; cursor: not-allowed; }
#qbank-view :where(button, input, select):focus-visible { outline: 2px solid var(--qb-accent); outline-offset: 4px; }
#qbank-view :where(svg, [data-lucide]) { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 1.7; }
#qbank-view .qb-overline { font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.6; }

/* Küçük, kendine ait bir kapak. */
#qbank-view .qb-hero { display: grid; grid-template-columns: 1fr 370px; align-items: center; gap: 42px; padding: 6px 0 33px; border-bottom: 1px solid var(--qb-line); }
#qbank-view .qb-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 800; letter-spacing: .13em; color: var(--qb-muted); }
#qbank-view .qb-status-dot { width: 6px; height: 6px; background: var(--qb-accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--qb-accent-soft); margin-right: 3px; }
#qbank-view .qb-eyebrow-rule { width: 18px; height: 1px; background: var(--qb-line); }
#qbank-view .qb-hero h2 { font-size: clamp(38px, 4.6vw, 57px); font-weight: 650; letter-spacing: -.055em; line-height: 1.04; margin: 18px 0 14px; }
#qbank-view .qb-hero h2 em { color: var(--qb-accent); font-style: normal; }
#qbank-view .qb-hero-copy > p { color: var(--qb-muted); font-size: 14px; line-height: 1.7; }
#qbank-view .qb-hero-stats { display: flex; gap: 21px; align-items: center; margin-top: 21px; }
#qbank-view .qb-hero-stats > span { font-size: 11px; color: var(--qb-muted); display: flex; align-items: baseline; gap: 6px; }
#qbank-view .qb-hero-stats > span + span { border-left: 1px solid var(--qb-line); padding-left: 21px; }
#qbank-view .qb-hero-stats strong { font-size: 17px; color: var(--qb-ink); font-weight: 500; }
#qbank-view .qb-discovery { overflow: hidden; background: var(--qb-garden); border: 1px solid color-mix(in srgb, var(--qb-green) 14%, transparent); border-radius: 18px; }
#qbank-view .qb-discovery-art { height: 178px; position: relative; overflow: hidden; background-image: radial-gradient(color-mix(in srgb, var(--qb-green) 13%, transparent) .75px, transparent .75px); background-size: 14px 14px; }
#qbank-view .qb-art-orbit { position: absolute; width: 280px; height: 120px; border: 1px solid color-mix(in srgb, var(--qb-green) 17%, transparent); border-radius: 50%; left: 44px; top: 31px; transform: rotate(-18deg); }
#qbank-view .qb-art-spark { position: absolute; left: 57px; top: 46px; color: var(--qb-accent); font-size: 33px; font-weight: 500; transform: rotate(12deg); }
#qbank-view .qb-art-card { width: 119px; height: 136px; border: 1px solid color-mix(in srgb, var(--qb-green) 32%, transparent); border-radius: 10px; position: absolute; top: 18px; display: flex; flex-direction: column; padding: 14px; box-shadow: 3px 6px 0 color-mix(in srgb, var(--qb-green) 8%, transparent); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
#qbank-view .qb-art-card > span:first-child { font: 700 7px 'JetBrains Mono', monospace; letter-spacing: .05em; }
#qbank-view .qb-art-card-back { left: 180px; top: 19px; transform: rotate(14deg); background: #cbd4b9; color: #3e5140; }
#qbank-view .qb-art-card-back > b { font: 500 64px Georgia, serif; align-self: center; }
#qbank-view .qb-art-card-front { left: 111px; top: 16px; transform: rotate(-9deg); background: #fffdf3; color: #374838; }
#qbank-view .qb-art-card-front > b { font: 500 30px 'JetBrains Mono', monospace; margin: 12px 0; text-align: center; white-space: nowrap; letter-spacing: -.08em; }
#qbank-view .qb-art-card-front > b span { color: #af5438; font-size: 25px; }
#qbank-view .qb-art-line { width: 90%; height: 3px; background: #e0e3d8; border-radius: 3px; margin: 4px 0 0; }
#qbank-view .qb-art-line-short { width: 60%; }
#qbank-view .qb-art-check { position: absolute; background: #365742; color: #fffdf3; border: 3px solid var(--qb-garden); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; right: -14px; bottom: 17px; }
#qbank-view .qb-art-caption { position: absolute; bottom: 12px; right: 17px; font: italic 11px Georgia, serif; color: var(--qb-green); transform: rotate(-5deg); }
#qbank-view .qb-discovery:hover .qb-art-card-front { transform: translateY(-3px) rotate(-13deg); }
#qbank-view .qb-discovery:hover .qb-art-card-back { transform: translate(3px, -2px) rotate(18deg); }
#qbank-view .qb-discovery-bottom { border-top: 1px solid color-mix(in srgb, var(--qb-green) 12%, transparent); padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#qbank-view .qb-discovery-bottom .qb-overline { color: var(--qb-green); font-size: 8px; }
#qbank-view .qb-discovery-bottom p { font-size: 13px; font-weight: 600; margin-top: 2px; }
#qbank-view .qb-random-btn { background: var(--qb-green); color: var(--qb-paper); border: 1px solid transparent; border-radius: 9px; min-height: 39px; height: auto; padding: 10px 13px; font-size: 11px; gap: 7px; box-shadow: none; text-transform: none; }
#qbank-view .qb-random-btn:hover { background: color-mix(in srgb, var(--qb-green) 88%, var(--qb-ink)); transform: translateY(-1px); }
#qbank-view .qb-random-btn svg { width: 14px; height: 14px; }

/* Konu gezgini ve kütüphane. */
#qbank-view .qb-workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 30px; padding-top: 29px; align-items: start; }
#qbank-view .qb-sidebar { position: sticky; top: 90px; }
#qbank-view .qb-sidebar-heading { display: flex; justify-content: space-between; align-items: center; color: var(--qb-muted); padding: 5px 10px 13px; }
#qbank-view .qb-sidebar-heading svg { width: 13px; height: 13px; }
#qbank-view .qb-categories { display: flex; flex-direction: column; gap: 5px; }
#qbank-view .qbank-category-chip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 10px; min-height: 43px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 600; text-align: left; color: var(--qb-muted); transition: background .18s, color .18s; }
#qbank-view .qbank-category-chip:hover { background: var(--qb-soft); color: var(--qb-ink); }
#qbank-view .qbank-category-chip.active { color: var(--qb-accent); background: var(--qb-accent-soft); }
#qbank-view .qb-topic-count { margin-left: auto; font-size: 10px; font-weight: 500; opacity: .85; }
#qbank-view .qb-progress-card { border: 1px solid var(--qb-line); border-radius: 12px; background: var(--qb-paper); padding: 18px 16px; margin-top: 27px; }
#qbank-view .qb-progress-icon { display: grid; place-items: center; background: var(--qb-garden); color: var(--qb-green); width: 33px; height: 33px; border-radius: 10px; margin-bottom: 12px; }
#qbank-view .qb-progress-card h3 { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
#qbank-view .qb-progress-card p { font-size: 11px; color: var(--qb-muted); margin-top: 7px; line-height: 1.6; }
#qbank-view .qb-progress-card progress { height: 5px; color: var(--qb-green); background: var(--qb-soft); width: 100%; display: block; margin: 14px 0 10px; }
#qbank-view .qb-progress-card progress::-webkit-progress-bar { background: var(--qb-soft); border-radius: 10px; }
#qbank-view .qb-progress-card progress::-webkit-progress-value { background: var(--qb-green); border-radius: 10px; }
#qbank-view .qb-progress-card progress::-moz-progress-bar { background: var(--qb-green); }
#qbank-view .qb-progress-note { font-size: 10px; color: var(--qb-muted); }
#qbank-view .qb-library { min-width: 0; scroll-margin-top: 90px; }
#qbank-view .qb-search-row { display: flex; gap: 10px; }
#qbank-view .qb-search-box { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 0 13px; background: var(--qb-paper); border: 1px solid var(--qb-line); border-radius: 10px; min-height: 46px; transition: border-color .2s, box-shadow .2s; }
#qbank-view .qb-search-box:focus-within { border-color: var(--qb-accent); box-shadow: 0 0 0 3px var(--qb-accent-soft); }
#qbank-view .qb-search-box > svg { color: var(--qb-muted); }
#qbank-view .qb-search-box input { min-width: 0; flex: 1; width: 100%; background: transparent; outline: none; border: none; padding: 12px 0; font-size: 12px; color: var(--qb-ink); }
#qbank-view .qb-search-box input::placeholder { color: var(--qb-muted); opacity: 1; }
#qbank-view .qb-search-box input::-webkit-search-cancel-button { display: none; }
#qbank-view .qb-search-box kbd { border: 1px solid var(--qb-line); border-radius: 4px; color: var(--qb-muted); padding: 1px 6px; font-size: 11px; }
#qbank-view .qb-search-box:has(#qbank-clear-search:not([hidden])) kbd { display: none; }
#qbank-view .qb-difficulty-filter { display: flex; align-items: center; position: relative; gap: 7px; padding: 0 11px; border: 1px solid var(--qb-line); border-radius: 10px; background: var(--qb-paper); color: var(--qb-muted); }
#qbank-view .qb-difficulty-filter select { appearance: none; background: transparent; color: var(--qb-ink); border: 0; font-size: 11px; padding: 12px 22px 12px 0; cursor: pointer; width: 122px; }
#qbank-view .qb-difficulty-filter select option { background: var(--qb-paper); color: var(--qb-ink); }
#qbank-view .qb-difficulty-filter > svg:last-child { position: absolute; right: 10px; width: 12px; pointer-events: none; }
#qbank-view .qb-difficulty-filter > svg:first-child { width: 14px; }
#qbank-view .qb-library-nav { display: flex; gap: 8px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--qb-line); margin-top: 15px; }
#qbank-view .qb-collections { display: flex; align-items: stretch; gap: 19px; min-width: 0; }
#qbank-view .qb-collection { display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; padding: 14px 0; white-space: nowrap; color: var(--qb-muted); font-weight: 600; font-size: 11px; }
#qbank-view .qb-collection svg { width: 13px; height: 13px; }
#qbank-view .qb-collection > span { background: var(--qb-soft); border-radius: 4px; font-size: 9px; padding: 1px 5px; }
#qbank-view .qb-collection.active { color: var(--qb-accent); }
#qbank-view .qb-collection.active::after { content: ''; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--qb-accent); border-radius: 2px; }
#qbank-view .qb-collection.active > span { background: var(--qb-accent-soft); }
#qbank-view .qb-layout-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--qb-line); border-radius: 7px; }
#qbank-view .qb-icon-button { width: 32px; height: 32px; min-width: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--qb-muted); border: 1px solid transparent; transition: background .18s, color .18s; }
#qbank-view .qb-icon-button:hover, #qbank-view .qb-icon-button.active { background: var(--qb-soft); color: var(--qb-ink); }
#qbank-view .qb-layout-switch .qb-icon-button { width: 26px; height: 26px; min-width: 26px; border-radius: 4px; }
#qbank-view .qb-layout-switch svg { width: 13px; height: 13px; }
#qbank-view .qb-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 23px 0 16px; }
#qbank-view .qb-results-bar h3 { font-size: 17px; font-weight: 600; letter-spacing: -.025em; }
#qbank-view .qb-results-bar p { font-size: 10px; color: var(--qb-muted); margin-top: 5px; }
#qbank-view .qb-reset { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--qb-accent); text-align: right; }
#qbank-view .qb-reset svg { width: 12px; height: 12px; }

/* Soru kartları: bilgi ve eylem birbirinden açıkça ayrılır. */
#qbank-view .qb-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: stretch; }
#qbank-view .qb-question-card { display: flex; flex-direction: column; min-width: 0; background: var(--qb-paper); border: 1px solid var(--qb-line); border-radius: 13px; padding: 17px 18px 0; overflow: hidden; transition: border-color .22s, transform .22s, box-shadow .22s; }
#qbank-view .qb-question-card:hover { border-color: color-mix(in srgb, var(--qb-accent) 45%, var(--qb-line)); transform: translateY(-3px); box-shadow: var(--qb-shadow); }
#qbank-view .qb-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
#qbank-view .qb-topic-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; background: var(--tint-peach); color: var(--ink-peach); font-size: 9px; line-height: 1.4; font-weight: 700; padding: 5px 7px; }
#qbank-view .qb-topic-badge svg { width: 12px; height: 12px; }
#qbank-view .qb-topic-badge[data-color="violet"] { background: var(--tint-violet); color: var(--ink-violet); }
#qbank-view .qb-topic-badge[data-color="mint"] { background: var(--tint-mint); color: var(--ink-mint); }
#qbank-view .qb-topic-badge[data-color="sky"] { background: var(--tint-sky); color: var(--ink-sky); }
#qbank-view .qb-topic-badge[data-color="rose"] { background: var(--tint-rose); color: var(--ink-rose); }
#qbank-view .qb-bookmark { width: 29px; height: 29px; min-width: 29px; align-self: flex-start; margin: -4px -5px 0 0; }
#qbank-view .qb-bookmark svg { width: 16px; height: 16px; }
#qbank-view .qb-bookmark.is-saved { color: var(--qb-accent); background: var(--qb-accent-soft); }
#qbank-view .qb-bookmark.is-saved svg { fill: color-mix(in srgb, var(--qb-accent) 18%, transparent); }
#qbank-view .qb-card-content { position: relative; flex: 1; }
#qbank-view .qb-card-number { color: var(--qb-muted); font-size: 9px; display: block; margin-bottom: 6px; }
#qbank-view .qb-card-title { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -.025em; line-height: 1.32; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#qbank-view .qb-card-title:hover { color: var(--qb-accent); }
#qbank-view .qb-question-preview { color: var(--qb-muted); font-size: 12px; line-height: 1.65; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#qbank-view .qb-companies { display: flex; align-items: flex-start; gap: 6px; margin: 17px 0; font-size: 9px; color: var(--qb-muted); line-height: 1.65; }
#qbank-view .qb-companies > span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
#qbank-view .qb-companies svg { width: 12px; height: 12px; margin-top: 2px; }
#qbank-view .qb-company-more { font-size: 8px; background: var(--qb-soft); border-radius: 3px; padding: 1px 3px; }
#qbank-view .qb-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
#qbank-view .qb-level { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 600; color: var(--qb-muted); }
#qbank-view .qb-level-bars { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
#qbank-view .qb-level-bars b { width: 3px; border-radius: 1px; background: var(--qb-line); height: 4px; }
#qbank-view .qb-level-bars b:nth-child(2) { height: 7px; }
#qbank-view .qb-level-bars b:nth-child(3) { height: 10px; }
#qbank-view .qb-level[data-level="Kolay"] .qb-level-bars b:first-child { background: var(--qb-green); }
#qbank-view .qb-level[data-level="Orta"] .qb-level-bars b:nth-child(-n+2) { background: #b2832c; }
#qbank-view .qb-level[data-level="Zor"] .qb-level-bars b { background: var(--qb-accent); }
#qbank-view .qb-answer-status { display: inline-flex; align-items: center; gap: 4px; color: var(--qb-muted); font-size: 9px; }
#qbank-view .qb-answer-status svg { width: 12px; height: 12px; }
#qbank-view .is-reviewed .qb-answer-status { color: var(--qb-green); }
#qbank-view .qb-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--qb-line); padding: 11px 0; }
#qbank-view .qb-open-button { display: inline-flex; align-items: center; gap: 7px; color: var(--qb-ink); font-size: 10px; font-weight: 700; padding: 7px 0; }
#qbank-view .qb-open-button svg { width: 13px; height: 13px; color: var(--qb-accent); transition: transform .2s; }
#qbank-view .qb-open-button:hover svg { transform: translate(2px, -2px); }
#qbank-view .qb-practice-button { min-height: 32px; height: auto; padding: 8px 10px; font-size: 10px; background: var(--qb-soft); color: var(--qb-ink); border: 1px solid var(--qb-line); border-radius: 7px; box-shadow: none; gap: 5px; text-transform: none; }
#qbank-view .qb-practice-button svg { width: 11px; height: 11px; }
#qbank-view .qb-practice-button:hover { background: var(--qb-accent-soft); color: var(--qb-accent); border-color: color-mix(in srgb, var(--qb-accent) 25%, var(--qb-line)); }
#qbank-view .qb-list-view { grid-template-columns: 1fr; }
#qbank-view .qb-list-view .qb-question-card { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; padding: 17px 20px; }
#qbank-view .qb-list-view .qb-card-top { grid-column: 1 / -1; margin-bottom: 9px; }
#qbank-view .qb-list-view .qb-card-content { grid-row: span 2; }
#qbank-view .qb-list-view .qb-card-number { display: none; }
#qbank-view .qb-list-view .qb-companies { margin-bottom: 0; }
#qbank-view .qb-list-view .qb-card-meta { flex-direction: column; align-items: flex-end; justify-content: center; padding: 0; }
#qbank-view .qb-list-view .qb-card-footer { border: 0; padding-bottom: 0; align-self: end; }

/* Sayfalama ve boş durumlar. */
#qbank-view .qb-pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 27px; }
#qbank-view .qb-page-numbers { display: flex; align-items: center; gap: 5px; }
#qbank-view .qb-page-numbers button { width: 31px; height: 33px; border: 1px solid transparent; border-radius: 7px; font: 500 10px 'JetBrains Mono', monospace; color: var(--qb-muted); }
#qbank-view .qb-page-numbers button[aria-current] { color: var(--qb-accent); background: var(--qb-accent-soft); border-color: color-mix(in srgb, var(--qb-accent) 15%, transparent); }
#qbank-view .qb-page-numbers button:hover { background: var(--qb-soft); }
#qbank-view .qb-page-gap { color: var(--qb-muted); font-size: 11px; }
#qbank-view .qb-page-direction { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; min-height: 36px; color: var(--qb-muted); }
#qbank-view .qb-page-direction svg { width: 14px; height: 14px; }
#qbank-view .qb-empty { grid-column: 1 / -1; padding: 65px 20px; background: var(--qb-paper); border: 1px dashed var(--qb-line); border-radius: 14px; display: flex; flex-direction: column; align-items: center; text-align: center; }
#qbank-view .qb-empty > svg { width: 34px; height: 34px; padding: 0; color: var(--qb-accent); margin-bottom: 18px; }
#qbank-view .qb-empty h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -.03em; }
#qbank-view .qb-empty p { font-size: 13px; color: var(--qb-muted); line-height: 1.7; margin: 10px 0 23px; }
#qbank-view .qb-notice { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); z-index: 45; background: var(--qb-ink); color: var(--qb-paper); padding: 12px 19px; border-radius: 10px; box-shadow: var(--qb-shadow); font-size: 12px; text-align: center; }

/* Native dialog: klavye odağı ve Escape tarayıcı tarafından yönetilir. */
#qbank-view .qb-dialog { position: fixed; margin: auto; inset: 0; width: min(700px, calc(100vw - 40px)); max-width: none; max-height: min(850px, calc(100dvh - 64px)); padding: 0; border: 1px solid var(--qb-line); border-radius: 19px; background: var(--qb-paper); color: var(--qb-ink); box-shadow: 0 30px 100px #0004; overflow: hidden; }
#qbank-view .qb-dialog[open] { display: flex; flex-direction: column; animation: qb-dialog-in .2s ease-out; }
#qbank-view .qb-dialog::backdrop { background: #18241ec4; backdrop-filter: blur(5px); }
#qbank-view .qb-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 22px; border-bottom: 1px solid var(--qb-line); color: var(--qb-muted); flex-shrink: 0; }
#qbank-view .qb-dialog-navigation { display: flex; align-items: center; gap: 5px; }
#qbank-view .qb-dialog-navigation > span.num { font-size: 10px; min-width: 66px; text-align: center; }
#qbank-view .qb-dialog-divider { height: 17px; width: 1px; background: var(--qb-line); margin: 0 5px; }
#qbank-view .qb-dialog-content { overflow-y: auto; overscroll-behavior: contain; padding: 30px; scrollbar-width: thin; scrollbar-color: var(--qb-line) transparent; }
#qbank-view .qb-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
#qbank-view .qb-detail-meta .qb-topic-badge { font-size: 10px; }
#qbank-view .qb-detail-meta .qb-level { font-size: 10px; }
#qbank-view .qb-detail-meta .qb-bookmark { margin-left: auto; }
#qbank-view .qb-dialog-content h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
#qbank-view .qb-detail-question { white-space: pre-wrap; font-size: 15px; line-height: 1.8; margin-top: 18px; overflow-wrap: anywhere; }
#qbank-view .qb-code-snippet { display: block; white-space: pre-wrap; padding: 14px 17px; margin: 12px 0; border: 1px solid var(--qb-line); border-radius: 9px; background: var(--qb-soft); font: 12px/1.8 'JetBrains Mono', monospace; }
#qbank-view .qb-detail-notice { padding: 10px 22px; background: var(--qb-garden); color: var(--qb-green); font-size: 12px; flex-shrink: 0; }
#qbank-view .qb-detail-companies { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; color: var(--qb-muted); margin-top: 19px; line-height: 1.6; }
#qbank-view .qb-detail-companies svg { width: 14px; height: 14px; margin-top: 2px; }
#qbank-view .qb-think-note { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-radius: 10px; background: var(--qb-soft); color: var(--qb-green); margin: 26px 0 20px; }
#qbank-view .qb-think-note p { font-size: 12px; font-weight: 700; }
#qbank-view .qb-think-note p span { display: block; font-size: 11px; font-weight: 400; color: var(--qb-muted); margin-top: 3px; }
#qbank-view .qb-reveal-button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; color: var(--qb-accent); font-size: 13px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--qb-line); }
#qbank-view .qb-reveal-button > svg:last-child { margin-left: auto; transition: transform .2s; }
#qbank-view .qb-reveal-button[aria-expanded="true"] > svg:last-child { transform: rotate(180deg); }
#qbank-view .qb-answer { padding-top: 21px; animation: qb-dialog-in .2s ease-out; }
#qbank-view .qb-answer > .qb-overline { color: var(--qb-muted); }
#qbank-view .qb-answer > p { white-space: pre-wrap; font-size: 14px; line-height: 1.8; margin-top: 11px; overflow-wrap: anywhere; }
#qbank-view .qb-answer-tip { display: flex; gap: 10px; padding: 16px; background: var(--qb-accent-soft); color: var(--qb-accent); border-radius: 10px; margin-top: 20px; }
#qbank-view .qb-answer-tip p { font-size: 12px; line-height: 1.7; }
#qbank-view .qb-answer-tip strong { display: block; margin-bottom: 3px; }
#qbank-view .qb-dialog-actions { border-top: 1px solid var(--qb-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 25px; flex-shrink: 0; background: var(--qb-paper); }
#qbank-view .qb-reviewed-button, #qbank-view .qb-detail-practice { border-radius: 9px; height: auto; min-height: 43px; font-size: 12px; gap: 8px; padding: 11px 16px; text-transform: none; box-shadow: none; }
#qbank-view .qb-reviewed-button { background: var(--qb-paper); color: var(--qb-muted); border: 1px solid var(--qb-line); }
#qbank-view .qb-reviewed-button.active, #qbank-view .qb-reviewed-button:hover { color: var(--qb-green); background: var(--qb-garden); }
#qbank-view .qb-detail-practice { background: var(--qb-green); color: var(--qb-paper); border: 1px solid transparent; }
#qbank-view .qb-detail-practice:hover { background: color-mix(in srgb, var(--qb-green) 88%, var(--qb-ink)); }
@keyframes qb-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  #qbank-view .qb-hero { grid-template-columns: 1fr 330px; gap: 20px; }
  #qbank-view .qb-art-card-back { left: 165px; }
  #qbank-view .qb-art-card-front { left: 96px; }
  #qbank-view .qb-workspace { grid-template-columns: 183px minmax(0, 1fr); gap: 22px; }
  #qbank-view .qb-collections { gap: 12px; }
  #qbank-view .qb-collection { font-size: 10px; gap: 4px; }
  #qbank-view .qb-collection svg { display: none; }
  #qbank-view .qb-question-card { padding: 14px 15px 0; }
}
@media (max-width: 800px) {
  #qbank-view .qb-hero { grid-template-columns: 1fr 290px; }
  #qbank-view .qb-hero h2 { font-size: 43px; }
  #qbank-view .qb-eyebrow { font-size: 8px; gap: 7px; letter-spacing: .07em; }
  #qbank-view .qb-hero-copy > p { font-size: 12px; }
  #qbank-view .qb-hero-stats { gap: 13px; }
  #qbank-view .qb-hero-stats > span { font-size: 10px; }
  #qbank-view .qb-hero-stats > span + span { padding-left: 13px; }
  #qbank-view .qb-art-card-back { left: 142px; }
  #qbank-view .qb-art-card-front { left: 73px; }
  #qbank-view .qb-art-spark { left: 28px; }
  #qbank-view .qb-discovery-bottom { padding: 14px 12px; }
  #qbank-view .qb-discovery-bottom p { font-size: 11px; }
  #qbank-view .qb-workspace { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  #qbank-view .qb-sidebar { position: static; min-width: 0; }
  #qbank-view .qb-sidebar-heading { padding-left: 0; padding-bottom: 9px; }
  #qbank-view .qb-categories { flex-direction: row; overflow-x: auto; padding: 3px 3px 9px; scrollbar-width: thin; scrollbar-color: var(--qb-line) transparent; }
  #qbank-view .qbank-category-chip { width: auto; flex-shrink: 0; white-space: nowrap; font-size: 11px; padding: 9px 11px; min-height: 39px; border-color: var(--qb-line); gap: 7px; }
  #qbank-view .qbank-category-chip.active { border-color: transparent; }
  #qbank-view .qb-topic-count { margin-left: 4px; }
  #qbank-view .qb-progress-card { display: none; }
  #qbank-view .qb-collection { font-size: 11px; }
  #qbank-view .qb-collections { gap: 21px; }
  #qbank-view .qb-library { scroll-margin-top: 140px; }
}
@media (max-width: 600px) {
  #qbank-view .qb-hero { grid-template-columns: 1fr; gap: 18px; padding: 0 0 18px; }
  #qbank-view .qb-hero h2 { font-size: 43px; margin-top: 16px; }
  #qbank-view .qb-eyebrow { font-size: 8px; letter-spacing: .1em; }
  #qbank-view .qb-hero-copy > p { font-size: 13px; }
  #qbank-view .qb-hero-stats { margin-top: 18px; }
  #qbank-view .qb-hero-stats strong { font-size: 16px; }
  #qbank-view .qb-discovery { display: flex; flex-direction: row; min-height: 94px; align-items: center; border-radius: 12px; }
  #qbank-view .qb-discovery-art { width: 111px; height: 94px; flex-shrink: 0; overflow: visible; }
  #qbank-view .qb-art-orbit, #qbank-view .qb-art-spark, #qbank-view .qb-art-caption { display: none; }
  #qbank-view .qb-art-card { width: 62px; height: 72px; padding: 8px; border-radius: 6px; top: 8px; }
  #qbank-view .qb-art-card-back { left: 39px; top: 13px; }
  #qbank-view .qb-art-card-front { left: 18px; }
  #qbank-view .qb-art-card > span:first-child { font-size: 4px; }
  #qbank-view .qb-art-card-front > b { font-size: 17px; margin: 7px 0; }
  #qbank-view .qb-art-card-front > b span { font-size: 12px; }
  #qbank-view .qb-art-card-back > b { font-size: 35px; }
  #qbank-view .qb-art-check { width: 21px; height: 21px; font-size: 10px; border-width: 2px; right: -9px; bottom: 5px; }
  #qbank-view .qb-art-line { height: 2px; margin-top: 3px; }
  #qbank-view .qb-discovery-bottom { border: 0; flex: 1; flex-wrap: wrap; gap: 10px; padding: 13px 15px 13px 4px; }
  #qbank-view .qb-discovery-bottom p { font-size: 12px; }
  #qbank-view .qb-discovery-bottom .qb-overline { font-size: 8px; }
  #qbank-view .qb-random-btn { min-height: 34px; font-size: 10px; padding: 8px 10px; }
  #qbank-view .qb-search-row { flex-wrap: wrap; gap: 8px; }
  #qbank-view .qb-search-box { min-width: 100%; min-height: 46px; }
  #qbank-view .qb-search-box input { font-size: 16px; }
  #qbank-view .qb-search-box input::placeholder { font-size: 12px; }
  #qbank-view .qb-search-box kbd { display: none; }
  #qbank-view .qb-difficulty-filter { min-height: 38px; }
  #qbank-view .qb-difficulty-filter select { padding-top: 9px; padding-bottom: 9px; }
  #qbank-view .qb-library-nav { margin-top: 10px; flex-wrap: wrap; row-gap: 0; }
  #qbank-view .qb-collections { gap: 15px; flex: 1; }
  #qbank-view .qb-collection { font-size: 10px; padding: 15px 0; gap: 4px; }
  #qbank-view .qb-collection > span { font-size: 8px; padding: 1px 4px; }
  #qbank-view .qb-layout-switch { display: none; }
  #qbank-view .qb-results-bar { margin: 21px 0 14px; }
  #qbank-view .qb-results-bar h3 { font-size: 18px; }
  #qbank-view .qb-question-grid { grid-template-columns: 1fr; gap: 13px; }
  #qbank-view .qb-question-card { padding: 19px 20px 0; }
  #qbank-view .qb-card-title { font-size: 19px; }
  #qbank-view .qb-topic-badge { font-size: 10px; }
  #qbank-view .qb-question-preview { font-size: 13px; }
  #qbank-view .qb-companies, #qbank-view .qb-level, #qbank-view .qb-answer-status { font-size: 10px; }
  #qbank-view .qb-open-button, #qbank-view .qb-practice-button { font-size: 11px; min-height: 40px; }
  #qbank-view .qb-card-footer { padding: 9px 0; }
  #qbank-view .qb-bookmark { width: 38px; height: 38px; min-width: 38px; margin-top: -8px; }
  #qbank-view .qb-list-view .qb-question-card { display: flex; padding: 19px 20px 0; }
  #qbank-view .qb-list-view .qb-card-meta { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 0; }
  #qbank-view .qb-list-view .qb-card-footer { align-self: auto; border-top: 1px solid var(--qb-line); padding: 9px 0; }
  #qbank-view .qb-page-direction span { display: none; }
  #qbank-view .qb-page-direction { width: 33px; justify-content: center; }
  #qbank-view .qb-page-numbers { gap: 3px; }
  #qbank-view .qb-page-numbers button { width: 30px; height: 36px; }
  #qbank-view .qb-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 15px; }
  #qbank-view .qb-dialog-top { padding: 12px 13px; gap: 5px; }
  #qbank-view .qb-dialog-top > .qb-overline { font-size: 8px; max-width: 72px; }
  #qbank-view .qb-dialog-navigation { gap: 2px; }
  #qbank-view .qb-dialog-navigation .qb-icon-button { width: 34px; min-width: 34px; height: 38px; }
  #qbank-view .qb-dialog-content { padding: 23px 19px; }
  #qbank-view .qb-detail-question { font-size: 14px; }
  #qbank-view .qb-detail-meta { gap: 9px; }
  #qbank-view .qb-dialog-actions { padding: 13px 15px max(13px, env(safe-area-inset-bottom)); gap: 8px; }
  #qbank-view .qb-reviewed-button, #qbank-view .qb-detail-practice { font-size: 11px; padding: 10px 13px; }
  #qbank-view .qb-detail-practice svg:last-child { display: none; }
  #qbank-view .qb-dialog-divider { margin: 0 3px; }
}
@media (prefers-reduced-motion: reduce) {
  #qbank-view *, #qbank-view *::before, #qbank-view *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  #qbank-view .qb-question-card:hover { transform: none; }
}
@media (forced-colors: active) {
  #qbank-view .qbank-category-chip.active, #qbank-view [aria-pressed="true"], #qbank-view [aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
  #qbank-view .qb-question-card, #qbank-view .qb-dialog { border: 1px solid CanvasText; }
}
