:root {
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: #202c3a;
  background: #f5f4f0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202c3a;
  --muted: #7e8790;
  --line: #e5e3dc;
  --paper: #fffefa;
  --accent: #d55c46;
  --accent-dark: #b74a38;
  --blue: #e9f0f5;
  --green: #2c805b;
  --red: #bc554b;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f5f4f0; }
button, select, input { font: inherit; }
button { color: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0,1fr); }
.sidebar { background: #f0efea; border-right: 1px solid #e4e2da; padding: 24px 15px 17px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 4px 11px 27px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px 12px 12px 4px; background: var(--accent); color: white; font-family: "Noto Sans SC", sans-serif; font-size: 19px; font-weight: 700; box-shadow: 0 5px 13px #d55c4633; }
.brand b { display: block; font-size: 16px; letter-spacing: .04em; }
.brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .16em; color: #8b8e8e; font-family: monospace; }
.side-label { padding: 0 12px 10px; color: #9b9b96; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.subject-nav { display: grid; gap: 4px; }
.subject-link { border: 0; width: 100%; height: 45px; background: transparent; border-radius: 9px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; padding: 0 11px; text-align: left; cursor: pointer; color: #59636c; transition: background .18s, color .18s; }
.subject-link:hover { background: #e9e7e0; }
.subject-link.active { color: #b84736; background: #fae9e3; box-shadow: inset 3px 0 var(--accent); }
.subject-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #e6e6e1; font-size: 12px; font-weight: 700; font-family: "Noto Sans SC", sans-serif; }
.active .subject-icon { background: #f7d3c9; color: #ae4535; }
.tone-blue { color: #537b98; }.tone-gold { color: #a98033; }.tone-violet { color: #756896; }.tone-green { color: #54846f; }.tone-rose { color: #9e6872; }.tone-lime { color: #638448; }.tone-sky { color: #527c92; }
.subject-name { font-size: 13px; font-weight: 600; }
.subject-count { font: 11px "DM Mono", monospace; color: #a4a39e; }
.side-spacer { flex: 1; }
.source-note { display: flex; gap: 9px; padding: 13px 11px; border-radius: 9px; background: #e8e7e1; color: #777b7a; font-size: 10px; line-height: 1.7; }
.source-note b { color: #464f55; font-weight: 600; }
.source-dot { margin-top: 4px; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #638e71; box-shadow: 0 0 0 3px #d7e4d8; }
.sidebar-foot { padding: 12px 11px 0; color: #a2a19b; font-size: 9px; }
.main-area { min-width: 0; }
.topbar { height: 68px; border-bottom: 1px solid #e6e4dd; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: #f8f7f3; }
.crumb { display: flex; gap: 11px; align-items: center; color: #a0a19b; font-size: 12px; }
.crumb strong { color: #384652; font-weight: 600; }
.crumb-slash { color: #d1d0c9; }
.top-actions { display: flex; align-items: center; gap: 7px; height: 100%; }
.top-tab { border: 0; background: transparent; color: #81878b; padding: 9px 12px; font-size: 11px; cursor: pointer; position: relative; }
.top-tab.selected { color: #bd4e3b; font-weight: 700; }
.top-tab.selected::after { content: ""; position: absolute; bottom: -1px; height: 2px; left: 12px; right: 12px; background: var(--accent); }
.mistake-dot { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 3px; border-radius: 9px; padding: 0 4px; color: #8b5c58; background: #f1e4df; font: 9px "DM Mono", monospace; }
.content { max-width: 1440px; margin: 0 auto; padding: 35px 42px 60px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.eyebrow,.source-kicker { display: block; color: #a5a39a; letter-spacing: .15em; font-size: 9px; font-weight: 700; }
.eyebrow span { padding: 0 5px; color: #d7aa9e; }
h1,h2,p { margin-top: 0; }
h1 { margin: 7px 0 7px; color: #23313c; font-family: "Noto Sans SC", sans-serif; font-size: clamp(24px,2.3vw,32px); line-height: 1.3; letter-spacing: -.035em; font-weight: 700; }
.heading-muted { display: inline-block; margin-left: 11px; color: #b8b7af; font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; vertical-align: middle; }
.heading-sub { margin: 0; color: #8a9091; font-size: 12px; }
.heading-actions { display: flex; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 7px; height: 38px; padding: 0 14px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all .18s ease; white-space: nowrap; }
.button-outline { color: #54616a; background: transparent; border-color: #d9d8d1; }
.button-outline:hover { border-color: #b8b5ab; background: #fffefa; }
.button-primary { color: white; background: var(--accent); box-shadow: 0 4px 10px #d55c4624; }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.button-primary:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.button-soft { background: #f1f0eb; color: #657079; }
.button-soft:hover { background: #e9e7e0; }
.button-arrow { font-size: 15px; }
.overview-strip { min-height: 80px; display: grid; grid-template-columns: 1fr 1fr 1.15fr 1.35fr; align-items: center; gap: 15px; padding: 13px 21px; background: #e9edf0; border: 1px solid #e1e6e8; border-radius: 9px; margin-bottom: 20px; }
.overview-item { display: flex; align-items: center; gap: 10px; }
.overview-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f7f8f6; color: #82939a; font: 9px "DM Mono", monospace; }
.overview-item small { display: block; font-size: 9px; color: #869097; margin-bottom: 3px; }
.overview-item b { display: block; font: 600 16px "DM Mono", monospace; color: #334653; }
.overview-item em { color: #859097; font: 10px "Noto Sans SC", sans-serif; font-style: normal; }
.progress-wrap { padding-left: 16px; border-left: 1px solid #d3dce0; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #7d8990; font-size: 9px; }
.progress-label b { color: #62727c; font: 11px "DM Mono", monospace; }
.progress-track { height: 4px; border-radius: 8px; background: #d2dce1; overflow: hidden; }
.progress-track span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #cb715e; transition: width .3s; }
.workspace-grid { display: grid; grid-template-columns: minmax(400px,1.45fr) minmax(270px,.82fr); gap: 20px; align-items: start; }
.question-column { min-width: 0; }
.paper-picker { min-height: 55px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 0 3px 12px; }
.paper-picker small,.browser-toolbar small { display: block; margin-bottom: 4px; font-size: 9px; color: #9a9b94; }
.paper-picker strong { font-size: 12px; font-weight: 600; }
select { color: #68737a; background: #f8f7f3; border: 1px solid #e0dfd7; border-radius: 6px; padding: 8px 28px 8px 10px; font-size: 10px; max-width: 250px; cursor: pointer; }
.question-card { min-height: 425px; padding: 22px 25px 19px; border: 1px solid #e6e3db; border-radius: 10px; background: var(--paper); box-shadow: 0 5px 19px #353b3e08; display: flex; flex-direction: column; }
.question-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.question-chip { padding: 5px 9px; border-radius: 5px; background: #e8eff3; color: #668091; font-size: 9px; font-weight: 700; }
.question-source { font: 9px "DM Mono", "Noto Sans SC", monospace; color: #a1a19a; }
.question-source i { padding: 0 5px; color: #d5b0a7; font-style: normal; }
.question-prompt { padding: 23px 0 20px; color: #293641; font-family: "Noto Sans SC", sans-serif; font-size: clamp(16px,1.5vw,20px); line-height: 1.8; font-weight: 600; white-space: normal; }
.choice-list { display: grid; gap: 8px; margin-bottom: 15px; }
.choice-option { min-height: 44px; display: grid; grid-template-columns: 25px minmax(0,1fr) 20px; align-items: center; gap: 11px; text-align: left; padding: 8px 12px; border: 1px solid #e2e2dd; border-radius: 7px; background: #fff; color: #606c73; font-size: 11px; line-height: 1.55; cursor: pointer; transition: border-color .16s, background .16s, transform .16s; }
.choice-option:hover:not(:disabled) { border-color: #d4a197; transform: translateX(2px); }
.choice-letter { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #f1f1ed; color: #818988; font: 10px "DM Mono", monospace; }
.choice-option.selected { border-color: #df806c; background: #fff7f4; color: #873f33; }
.choice-option.selected .choice-letter { background: #d8644e; color: white; }
.choice-option.is-correct { border-color: #78a98e; background: #eff7f0; color: #2f6648; }
.choice-option.is-correct .choice-letter { background: #39825d; color: white; }
.choice-option.is-wrong { border-color: #d9958d; background: #fff2f0; color: #9c4e48; }
.choice-check { color: #39825d; font-weight: 700; }
.text-answer-wrap { display: grid; gap: 7px; margin-bottom: 18px; }
.text-answer-wrap label { color: #7f8789; font-size: 10px; }
.answer-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #dcded9; border-radius: 6px; outline: 0; background: #fff; color: #37434b; font-size: 12px; }
.answer-input:focus { border-color: #d07c6c; box-shadow: 0 0 0 3px #d55c4614; }
.answer-input:disabled { background: #f8f7f3; color: #57656a; }
.input-hint { color: #a0a19b; font-size: 9px; }
.answer-textarea { min-height: 105px; height: auto; resize: vertical; padding: 10px 12px; line-height: 1.65; }
.catalog-tools { display: flex; align-items: center; gap: 12px; }
.catalog-search { width: 190px; height: 32px; padding: 0 10px; border: 1px solid #e0dfd7; border-radius: 6px; background: #fbfaf7; color: #46545c; font-size: 10px; }
.catalog-search:focus { outline: 2px solid #d55c4624; border-color: #d59689; }
.catalog-item[hidden] { display: none; }
.source-text-details { margin: 5px 0 16px; border: 1px solid #e6e3db; border-radius: 7px; background: #faf9f5; }
.source-text-details summary { padding: 10px 12px; color: #69757a; font-size: 10px; cursor: pointer; }
.source-text-page { padding: 0 12px 12px; }
.source-text-page h3 { margin: 7px 0; color: #8b8e88; font-size: 10px; font-weight: 600; }
.source-text-page pre { overflow: auto; max-height: 420px; margin: 0; padding: 12px; border-radius: 5px; background: #f1f0eb; color: #515c61; font: 11px/1.7 "PingFang SC", "Noto Sans CJK SC", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-panel { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin: 2px 0 16px; border-radius: 7px; }
.feedback-correct { background: #edf5ee; color: #356c4e; }
.feedback-wrong { background: #f9eeec; color: #99534b; }
.feedback-pending { background: #f3f0e8; color: #78765f; }
.feedback-pending .feedback-icon { background: #d8d2b7; color: #fff; }
.feedback-icon { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 50%; background: currentColor; color: white; font-size: 14px; font-weight: 700; }
.feedback-content b { display: block; font-size: 12px; margin-bottom: 5px; }
.feedback-content p { margin: 0 0 4px; font-size: 10px; color: #5d6a6a; }
.feedback-content strong { color: #31484a; }
.feedback-separator { margin: 0 9px; color: #a8b3ad; }
.feedback-content small { color: #7e8985; font-size: 9px; line-height: 1.6; }
.question-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid #eeece6; }
.question-index { color: #34444d; font: 12px "DM Mono", monospace; }
.question-index span { color: #b0b0aa; font-size: 10px; }
.action-group { display: flex; gap: 8px; }
.question-rail { display: flex; align-items: center; gap: 11px; padding: 13px 2px 0; color: #9b9d98; font-size: 9px; }
.question-rail > div { display: flex; gap: 5px; }
.question-rail small { margin-left: auto; font: 9px "DM Mono", monospace; }
.rail-item { width: 23px; height: 23px; border: 1px solid #e1dfd8; border-radius: 5px; background: transparent; color: #929691; font: 9px "DM Mono", monospace; cursor: pointer; }
.rail-item.current { color: #b94c39; background: #f7e7e1; border-color: #df9e91; }
.rail-item.right { color: #3d7d5a; border-color: #a8c4b0; background: #edf5ee; }
.rail-item.wrong { color: #a04f48; border-color: #d9aaa4; background: #f8ecea; }
.question-catalog { margin-top: 35px; }
.catalog-grid { display: grid; border-top: 1px solid #e3e1d9; }
.catalog-item { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 63px; padding: 9px 12px; text-align: left; border: 0; border-bottom: 1px solid #e3e1d9; background: transparent; cursor: pointer; transition: background .16s; }
.catalog-item:hover,.catalog-item.active { background: #efeee8; }
.catalog-item.active { box-shadow: inset 2px 0 #d55c46; }
.catalog-item.wrong { background: #fbf1ef; }
.catalog-number { color: #bf7464; font: 10px "DM Mono", monospace; }
.catalog-copy { min-width: 0; }
.catalog-copy b { display: block; color: #46545c; font-size: 10px; font-weight: 600; }
.catalog-copy b i { color: #a1a19a; font-size: 9px; font-style: normal; font-weight: 400; }
.catalog-copy small { display: block; overflow: hidden; margin-top: 4px; color: #8e938e; font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.catalog-state { color: #939891; font-size: 9px; white-space: nowrap; }
.catalog-tools > span { color: #939891; font-size: 9px; white-space: nowrap; }
.catalog-item.done .catalog-state { color: #43805f; }
.catalog-item.wrong .catalog-state { color: #a9514a; }
.source-column { display: grid; gap: 12px; min-width: 0; }
.source-card,.paper-pages-card { min-width: 0; border: 1px solid #e5e2da; border-radius: 9px; background: #fbfaf7; padding: 15px; }
.source-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.source-card-head h2 { margin: 4px 0 0; font: 600 14px "Noto Sans SC", sans-serif; color: #3a4851; }
.icon-button { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e2e0d9; border-radius: 6px; background: #fffefa; color: #758089; font-size: 14px; cursor: pointer; }
.icon-button:hover { border-color: #c9a097; color: #b94c39; }
.page-preview { display: block; position: relative; width: 100%; overflow: hidden; padding: 0; border: 1px solid #e3e1db; border-radius: 5px; background: #ebe9e4; cursor: zoom-in; }
.page-preview img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: contain; background: #f3f1ec; }
.page-preview > span { position: absolute; right: 8px; bottom: 8px; padding: 6px 8px; border-radius: 4px; background: #fffefaee; color: #68747a; font-size: 9px; box-shadow: 0 2px 8px #00000012; }
.page-preview > span b { margin-left: 5px; color: #bc503c; }
.source-caption { display: flex; justify-content: space-between; gap: 7px; margin-top: 9px; color: #a0a19b; font-size: 8px; }
.small-count { color: #969a96; font: 9px "DM Mono", monospace; }
.mini-pages { display: flex; gap: 8px; overflow-x: auto; padding: 1px 0 8px; }
.mini-page { flex: 0 0 69px; padding: 0; border: 1px solid #e3e1db; border-radius: 4px; overflow: hidden; background: #fff; cursor: pointer; }
.mini-page.selected { border: 2px solid #d86a55; }
.mini-page img { display: block; width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.mini-page span { display: block; padding: 4px; color: #878b87; font: 8px "DM Mono", monospace; }
.text-link { border: 0; background: transparent; padding: 7px 0 0; color: #b85240; font-size: 9px; font-weight: 600; cursor: pointer; }
.text-link span { margin-left: 4px; }
.answer-note { min-width: 0; display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 7px; background: #f1efe9; }
.note-mark { display: grid; place-items: center; width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; background: #e0ded5; color: #7e817c; font: 10px Georgia,serif; }
.answer-note p { margin: 0; color: #8b8e88; font-size: 9px; line-height: 1.65; }
.paper-list-section { margin-top: 37px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.section-title h2 { margin: 4px 0 0; color: #3a4851; font: 600 17px "Noto Sans SC", sans-serif; }
.section-title > span { color: #a2a19a; font-size: 10px; }
.paper-list { display: grid; border-top: 1px solid #e3e1d9; }
.paper-list-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto 24px; align-items: center; gap: 12px; width: 100%; min-height: 61px; padding: 8px 12px; text-align: left; border: 0; border-bottom: 1px solid #e3e1d9; background: transparent; cursor: pointer; transition: background .15s; }
.paper-list-item:hover,.paper-list-item.active { background: #efeee8; }
.paper-ordinal { color: #bc7667; font: 11px "DM Mono", monospace; }
.paper-list-name b { display: block; color: #46545c; font-size: 11px; font-weight: 600; }
.paper-list-name small { display: block; margin-top: 3px; color: #9c9e98; font-size: 9px; }
.paper-list-status { color: #8b938f; font: 9px "DM Mono", monospace; }
.paper-chevron { color: #a3a39c; }
.browser-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 17px; padding: 13px 15px; border: 1px solid #e4e2db; border-radius: 8px; background: #efeee9; }
.browser-toolbar select { min-width: 270px; max-width: 500px; background: #fbfaf7; }
.browser-count { color: #8f9694; font: 10px "DM Mono", monospace; }
.page-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.gallery-page { min-width: 0; padding: 0; border: 1px solid #e1dfd7; border-radius: 7px; overflow: hidden; background: #fbfaf7; text-align: left; cursor: zoom-in; transition: transform .18s, box-shadow .18s; }
.gallery-page:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #22222212; }
.gallery-page img { display: block; width: 100%; aspect-ratio: 1.38; object-fit: contain; background: #eae8e2; }
.gallery-page span { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; }
.gallery-page b { font-size: 10px; color: #58646a; }
.gallery-page i { color: #a0a19a; font-size: 9px; font-style: normal; }
.all-papers-block { margin-top: 35px; }
.empty-panel { display: grid; place-items: center; padding: 65px 20px; border: 1px dashed #d9d7ce; border-radius: 10px; background: #fbfaf7; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #427b5d; background: #e3eee5; font-size: 23px; }
.empty-panel h2 { margin: 14px 0 6px; color: #3e4c53; font: 600 16px "Noto Sans SC", sans-serif; }
.empty-panel p { margin: 0 0 17px; color: #939791; font-size: 11px; }
.mistake-list { display: grid; border-top: 1px solid #e4e2da; }
.mistake-item { display: grid; grid-template-columns: 35px minmax(0,1fr) 20px; gap: 12px; align-items: center; padding: 15px 13px; border: 0; border-bottom: 1px solid #e4e2da; background: transparent; text-align: left; cursor: pointer; }
.mistake-item:hover { background: #efeee9; }
.mistake-number { color: #b75a4a; font: 11px "DM Mono", monospace; }
.mistake-item b { display: block; color: #4b5960; font-size: 11px; font-weight: 600; }
.mistake-item small { display: block; overflow: hidden; margin-top: 5px; color: #929690; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mistake-arrow { color: #9b9e97; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 22px; background: #17232ed6; backdrop-filter: blur(4px); }
.page-modal { display: flex; flex-direction: column; width: min(1250px,96vw); max-height: 94vh; overflow: hidden; border-radius: 10px; background: #f8f7f3; box-shadow: 0 22px 80px #0005; }
.modal-head,.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 12px 17px; }
.modal-head { border-bottom: 1px solid #e7e5de; }
.modal-head b { display: block; margin-top: 4px; color: #48565f; font-size: 11px; }
.modal-tools { display: flex; gap: 6px; }
.close-button { font-size: 20px; }
.modal-image-wrap { overflow: auto; padding: 14px; text-align: center; background: #e7e5de; }
.modal-image-wrap img { display: inline-block; width: min(100%,1200px); height: auto; box-shadow: 0 3px 15px #23232322; }
.modal-page-text { margin: 0 14px; background: #faf9f5; }
.modal-page-text summary { padding: 10px 12px; color: #6e797c; font-size: 10px; cursor: pointer; }
.modal-page-text pre { overflow: auto; max-height: 240px; margin: 0; padding: 11px 13px; background: #f0efe9; color: #505b61; font: 10px/1.7 "PingFang SC", "Noto Sans CJK SC", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-foot { color: #989a94; font-size: 9px; }
.empty-state { padding: 60px; text-align: center; color: #8e938d; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 205px minmax(0,1fr); }
  .topbar { padding: 0 25px; }
  .content { padding: 28px 25px 48px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr) 270px; gap: 14px; }
  .question-card { padding: 20px 18px 17px; }
  .overview-strip { grid-template-columns: 1fr 1fr 1.1fr; }
  .progress-wrap { grid-column: 1/-1; padding: 9px 0 0; border-left: 0; border-top: 1px solid #d3dce0; }
}
@media (max-width: 780px) {
  .shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; min-height: unset; padding: 12px 15px 8px; border-right: 0; border-bottom: 1px solid #e4e2da; }
  .brand { padding: 1px 4px 10px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 10px 10px 10px 3px; font-size: 16px; }
  .brand b { font-size: 14px; }.brand small { font-size: 8px; margin-top: 2px; }
  .side-label,.side-spacer,.source-note,.sidebar-foot { display: none; }
  .subject-nav { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
  .subject-link { flex: 0 0 auto; width: auto; height: 35px; display: flex; gap: 6px; padding: 0 9px; }
  .subject-link.active { box-shadow: inset 0 -2px var(--accent); }
  .subject-icon { width: 19px; height: 19px; font-size: 10px; border-radius: 5px; }
  .subject-name { font-size: 10px; }.subject-count { display: none; }
  .topbar { height: 50px; padding: 0 15px; }
  .crumb { font-size: 10px; }.top-actions { gap: 1px; }.top-tab { padding: 8px 7px; font-size: 9px; }
  .content { padding: 22px 14px 42px; }
  .page-heading { align-items: flex-start; gap: 10px; margin-bottom: 17px; }
  h1 { font-size: 22px; }.heading-muted { margin-left: 6px; font-size: 10px; }
  .heading-sub { max-width: 390px; font-size: 10px; line-height: 1.6; }
  .page-heading > .button { margin-top: 20px; padding: 0 9px; height: 32px; font-size: 9px; }
  .heading-actions { margin-top: 12px; flex-wrap: wrap; }
  .page-heading > .heading-actions { margin-top: 12px; }
  .heading-actions .button { height: 32px; padding: 0 9px; font-size: 9px; }
  .overview-strip { grid-template-columns: 1fr 1fr; gap: 12px 6px; padding: 12px; }
  .overview-item { gap: 7px; }.overview-icon { width: 23px; height: 23px; font-size: 8px; }
  .overview-item small { font-size: 8px; }.overview-item b { font-size: 13px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr); }
  .source-column { grid-template-columns: 1fr 1fr; align-items: start; }
  .answer-note { grid-column: 1/-1; }
  .paper-picker { align-items: end; }.paper-picker strong { font-size: 10px; }
  .paper-picker select { max-width: 50%; font-size: 9px; }
  .question-card { min-height: 390px; padding: 16px 14px 13px; }
  .question-prompt { padding: 18px 0; font-size: 16px; }
  .choice-option { font-size: 10px; min-height: 41px; }
  .question-actions { align-items: flex-end; }.action-group { gap: 5px; }.action-group .button { padding: 0 9px; font-size: 9px; }
  .question-rail { gap: 6px; }.question-rail > span { display: none; }.rail-item { width: 21px; height: 21px; }
  .page-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .paper-list-item { grid-template-columns: 25px minmax(0,1fr) auto 16px; gap: 7px; padding: 7px; }
  .paper-list-name b { font-size: 10px; }.paper-list-name small,.paper-list-status { font-size: 8px; }
  .catalog-item { grid-template-columns: 24px minmax(0,1fr) auto; gap: 7px; padding: 8px 6px; }
  .catalog-copy small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .catalog-state { font-size: 8px; }
  .catalog-tools { align-items: flex-end; flex-direction: column; gap: 6px; }
  .catalog-search { width: min(180px,44vw); }
  .browser-toolbar { align-items: flex-end; }.browser-toolbar select { min-width: 0; max-width: 230px; }.browser-count { font-size: 8px; }
  .modal-backdrop { padding: 7px; }.page-modal { width: 100%; max-height: 96vh; }.modal-image-wrap { padding: 7px; }.modal-foot { font-size: 8px; }
}
@media (max-width: 440px) {
  .crumb { display: none; }
  .topbar { justify-content: center; }
  .top-tab { padding: 8px 10px; }
  .page-heading { display: block; }
  .page-heading > .button,.page-heading > .heading-actions { margin-top: 13px; }
  .source-column { grid-template-columns: 1fr; }
  .answer-note { grid-column: auto; }
  .question-source { font-size: 8px; }
  .question-actions { display: grid; grid-template-columns: 1fr; }
  .action-group { justify-content: space-between; }
}
