:root {
  color-scheme: light;
  --ink: #172136; --muted: #667085; --paper: #f4f6f8; --surface: #ffffff;
  --navy: #13233f; --blue: #2457d6; --blue-soft: #eaf0ff; --teal: #0b7d75;
  --line: #dfe3ea; --mark: #ffe08a; --shadow: 0 12px 38px rgba(27, 39, 64, .08);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.shell { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.workspace { width: min(1440px, calc(100% - 40px)); }
.content-pane { min-width: 0; }
.masthead { position: relative; overflow: hidden; background: var(--navy); color: white; border-bottom: 4px solid #2f66ed; }
.masthead::after { content: ""; position: absolute; width: 460px; height: 460px; right: -160px; top: -300px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.masthead-inner { min-height: 136px; padding-block: 22px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.eyebrow, .section-label { margin: 0 0 4px; color: #8facff; font-weight: 800; font-size: .75rem; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.04em; line-height: 1.15; }
.subtitle { margin: 6px 0 0; color: #c6d0e2; font-size: .92rem; }
.seal { width: 68px; height: 68px; display: grid; place-content: center; text-align: center; border: 1px solid rgba(255,255,255,.32); border-radius: 19px 4px 19px 4px; transform: rotate(3deg); background: rgba(255,255,255,.06); }
.seal span { font: 700 1.6rem/1 serif; }.seal small { margin-top: 4px; letter-spacing: .5em; padding-left: .5em; }
.search-panel { position: sticky; z-index: 10; top: 0; margin-top: 20px; padding: 18px; background: rgba(255,255,255,.96); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; backdrop-filter: blur(12px); }
.search-row { display: flex; gap: 10px; }
.search-field { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; padding-inline: 14px; border: 1px solid #cdd3df; border-radius: 9px; background: white; }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-field svg { width: 21px; fill: none; stroke: #758097; stroke-width: 1.8; }
.search-field input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; color: var(--ink); font-size: 1rem; background: transparent; }
.primary-button, .quiet-button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 9px; font-weight: 700; }
.primary-button { background: var(--blue); color: white; }.primary-button:hover { background: #1947bb; }
.quiet-button { color: #344054; background: #eef1f5; }
.filter-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; padding-top: 13px; }
.filter-row label, .page-size { display: grid; gap: 3px; color: var(--muted); font-size: .78rem; font-weight: 700; }
select { max-width: 250px; height: 38px; padding: 0 32px 0 10px; color: #344054; background: white; border: 1px solid #d4d8e1; border-radius: 7px; }
.text-button { height: 38px; padding: 0 10px; border: 0; color: var(--blue); background: transparent; font-weight: 700; }
.results-head { display: flex; justify-content: space-between; align-items: end; margin: 42px 2px 14px; }
.results-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }.results-head .section-label { color: var(--blue); }
.status { padding: 70px 20px; display: grid; gap: 6px; text-align: center; color: var(--muted); border: 1px dashed #cdd3df; border-radius: 12px; background: rgba(255,255,255,.55); }
.status strong { color: var(--ink); font-size: 1.1rem; }
.question-list { display: grid; gap: 13px; }
.question-card { padding: 23px 25px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 20px rgba(29, 43, 70, .04); }
.question-card:hover { border-color: #c8d2e6; }
.card-meta { display: flex; align-items: center; gap: 9px; }.type-badge { padding: 3px 9px; border-radius: 5px; color: #25438d; background: var(--blue-soft); font-size: .75rem; font-weight: 800; }
.type-multiple_choice { color: #7b3f00; background: #fff0db; }.type-true_false { color: #06645e; background: #dff5f1; }.type-fill_blank { color: #6d3bb2; background: #f0e8ff; }
.type-knowledge { color: #075f58; background: #dff5f1; }
.question-number { color: #8a93a4; font-size: .78rem; }.question-title { margin: 12px 0 13px; font-size: 1.08rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.knowledge-card { border-left: 4px solid var(--teal); }
.knowledge-content { color: #344054; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.options { margin: 0 0 15px; padding: 0; list-style: none; display: grid; gap: 7px; }
.option { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 7px; padding: 8px 10px; border-radius: 7px; background: #f7f8fa; overflow-wrap: anywhere; }
.option-key { width: 25px; height: 25px; display: grid; place-content: center; color: #45536d; border: 1px solid #cdd3dd; border-radius: 50%; font-size: .76rem; font-weight: 800; background: white; }
.answer-box { margin-top: 13px; border-top: 1px solid var(--line); }.answer-toggle { padding: 12px 0 4px; color: var(--blue); font-size: .9rem; font-weight: 750; cursor: pointer; list-style-position: inside; }
.answer-content { margin-top: 9px; padding: 13px 15px; color: #27344b; background: #eef7f5; border-left: 3px solid var(--teal); border-radius: 4px 8px 8px 4px; }
.answer-line, .explanation p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }.explanation { margin-top: 10px; }.explanation p { margin-top: 3px; }
.source-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: #7b8494; font-size: .76rem; overflow-wrap: anywhere; }.source-label { color: #536078; font-weight: 800; }.category-chip { padding: 1px 7px; border: 1px solid #d7dce5; border-radius: 99px; }
mark { padding: .05em .14em; color: inherit; background: var(--mark); border-radius: 2px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 30px 0 8px; color: var(--muted); }
.pagination button { min-height: 42px; padding: 0 18px; border: 1px solid #cfd5df; border-radius: 8px; color: #344054; background: white; }.pagination button:disabled { opacity: .45; cursor: not-allowed; }
.footer { padding-block: 38px 50px; text-align: center; color: #8b93a2; font-size: .78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 1080px); }.masthead-inner { min-height: 120px; padding-block: 18px 28px; }.seal { display: none; }
  .search-panel { position: relative; margin-top: 14px; padding: 12px; }.search-row { display: grid; grid-template-columns: 1fr auto; }.search-field { grid-column: 1 / -1; }
  .primary-button, .quiet-button { min-height: 43px; }.filter-row label { flex: 1 1 130px; }.filter-row select { width: 100%; max-width: none; }
  .results-head { margin-top: 30px; }.question-card { padding: 18px 15px 15px; }.question-title { font-size: 1rem; }.option { padding-inline: 8px; }
}
@media (orientation: landscape) and (min-width: 600px) {
  .masthead-inner { min-height: 106px; padding-block: 12px 20px; }
  .masthead h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
  .masthead .subtitle { margin-top: 4px; font-size: .86rem; }
  .seal { width: 54px; height: 54px; border-radius: 15px 3px 15px 3px; }
  .seal span { font-size: 1.3rem; }
  .workspace {
    display: grid;
    grid-template-columns: clamp(220px, 27vw, 330px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }
  .search-panel {
    position: sticky;
    top: 16px;
    margin-top: 24px;
    padding: 16px;
  }
  .search-row { display: grid; grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .primary-button, .quiet-button { min-width: 0; padding-inline: 12px; }
  .filter-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .filter-row label { width: 100%; }
  .filter-row select { width: 100%; max-width: none; }
  .text-button { width: 100%; border: 1px solid #d4d8e1; border-radius: 7px; }
  .content-pane { padding-top: 1px; }
  .results-head { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
