/* 专业背诵手册：清爽文档风。所有规则都限定在手册根节点，避免影响中控台其他页面。 */
.manual45-study {
  --manual-bg: #F6F0E5;
  --manual-surface: #FBF7EF;
  --manual-soft: #F9F3E9;
  --manual-ink: #352f29;
  --manual-muted: #796f63;
  --manual-line: #e1d5c5;
  --manual-primary: #2563eb;
  --manual-primary-hover: #1d4ed8;
  --manual-selected: #eef4f8;
  --manual-green: #56745d;
  --manual-green-bg: #eef5ef;
  --manual-amber: #9a6428;
  --manual-amber-bg: #fff8eb;
  --manual-red: #9f5147;
  --manual-red-bg: #fff5f3;
  width: min(100%, 1040px);
  min-width: 0;
  margin: 0 auto;
  padding: 24px 20px calc(36px + env(safe-area-inset-bottom));
  color: var(--manual-ink);
  background: var(--manual-bg);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.manual45-study *, .manual45-study *::before, .manual45-study *::after { box-sizing: border-box; }
.manual45-study button, .manual45-study input, .manual45-study select, .manual45-study textarea { font: inherit; }
.manual45-study button { cursor: pointer; }
.manual45-study button:disabled, .manual45-study input:disabled, .manual45-study textarea:disabled, .manual45-study select:disabled { cursor: not-allowed; opacity: .55; }
.manual45-study .primary-btn, .manual45-study .secondary-btn, .manual45-study .ghost-btn { transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.manual45-study .primary-btn { border: 1px solid #1d4ed8; background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; font-weight: 700; }
.manual45-study .primary-btn:hover:not(:disabled) { border-color: #1e40af; background: linear-gradient(135deg, #2563eb, #1d4ed8); transform: translateY(-1px); }
.manual45-study .secondary-btn { border: 1px solid #60a5fa; background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.manual45-study .secondary-btn:hover:not(:disabled) { border-color: #2563eb; background: #dbeafe; color: #1e40af; transform: translateY(-1px); }
.manual45-study .ghost-btn { border: 1px solid #fbbf24; background: #fffbeb; color: #b45309; font-weight: 700; }
.manual45-study .ghost-btn:hover:not(:disabled) { border-color: #f59e0b; background: #fef3c7; color: #92400e; transform: translateY(-1px); }
.manual45-study button:focus-visible { outline: 3px solid rgba(37,99,235,.28); outline-offset: 2px; }
.manual45-study-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.manual45-eyebrow { display: block; margin-bottom: 5px; color: var(--manual-primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.manual45-study h2 { margin: 0; color: var(--manual-ink); font-size: 24px; line-height: 1.4; }
.manual45-study-context { margin: 0; color: var(--manual-ink); font-size: 20px; line-height: 1.4; font-weight: 700; }
.manual45-study-head-meta { display: flex; align-items: center; gap: 10px; color: var(--manual-muted); font-size: 14px; white-space: nowrap; }
.manual45-study-head-meta .secondary-btn, .manual45-study .secondary-btn, .manual45-study .primary-btn, .manual45-study .ghost-btn { min-height: 44px; padding: 8px 14px; border-radius: 8px; }
.manual45-study-head-meta .secondary-btn { border: 1px solid #60a5fa; background: #eff6ff; color: #1d4ed8; }
.manual45-more-menu { position: relative; }
.manual45-more-menu summary { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; border: 1px solid var(--manual-line); border-radius: 8px; background: var(--manual-surface); color: var(--manual-muted); font-size: 14px; cursor: pointer; list-style: none; }
.manual45-more-menu summary::-webkit-details-marker { display: none; }
.manual45-more-menu[open] summary, .manual45-more-menu summary:hover { border-color: #c7d2fe; background: var(--manual-selected); color: var(--manual-primary); }
.manual45-more-menu > div { position: absolute; top: calc(100% + 6px); right: 0; z-index: 3; min-width: 140px; padding: 6px; border: 1px solid var(--manual-line); border-radius: 8px; background: var(--manual-surface); box-shadow: 0 8px 24px rgba(17,24,39,.12); }
.manual45-more-menu > div .secondary-btn { width: 100%; border: 0; color: var(--manual-ink); text-align: left; }
.manual45-study-toolbar { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.manual45-search-field { flex: 1 1 320px; min-width: 220px; }
.manual45-search-field input, .manual45-study-toolbar select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--manual-line); border-radius: 8px; outline: 0; background: var(--manual-surface); color: var(--manual-ink); font-size: 14px; }
.manual45-search-field input:focus, .manual45-study-toolbar select:focus, .manual45-tool-panel textarea:focus, .manual45-revision-editor textarea:focus { border-color: var(--manual-primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.manual45-study-toolbar > label:not(.manual45-search-field) { display: grid; gap: 4px; min-width: 125px; color: var(--manual-muted); font-size: 12px; }
.manual45-picker-button { border: 1px solid #f59e0b !important; background: #fff7ed !important; color: #c2410c !important; }
.manual45-picker-button:hover:not(:disabled) { border-color: #ea580c !important; background: #ffedd5 !important; color: #9a3412 !important; }
.manual45-filter-check { display: inline-flex !important; min-height: 44px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--manual-line); border-radius: 8px; background: var(--manual-surface); white-space: nowrap; }
.manual45-filter-check input { width: 16px; height: 16px; accent-color: var(--manual-primary); }
.manual45-filter-count { min-height: 44px; display: inline-flex; align-items: center; margin-left: auto; color: var(--manual-muted); font-size: 12px; }
.manual45-picker-panel { max-height: 330px; margin-bottom: 16px; padding: 12px; overflow-y: auto; border: 1px solid var(--manual-line); border-radius: 12px; background: var(--manual-surface); }
.manual45-picker-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--manual-muted); font-size: 12px; }
.manual45-picker-head strong { color: var(--manual-ink); font-size: 14px; }
.manual45-directory-picker { max-height: min(520px, calc(100vh - 260px)); }
.manual45-directory-panel { position: absolute; top: 0; left: 0; z-index: 10; width: min(100%, 560px); max-height: min(520px, calc(100vh - 260px)); overflow: hidden; border: 1px solid #f59e0b; border-radius: 12px; background: var(--manual-surface); box-shadow: 0 12px 30px rgba(65,49,32,.18); }
.manual45-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 10px; border-bottom: 1px solid var(--manual-line); background: var(--manual-soft); }
.manual45-directory-head .manual45-eyebrow { margin-bottom: 2px; font-size: 10px; }
.manual45-directory-head strong { display: block; color: var(--manual-ink); font-size: 15px; }
.manual45-directory-head .ghost-btn { min-height: 34px; padding: 5px 9px; border: 1px solid #fbbf24; background: #fffbeb; color: #b45309; font-size: 12px; }
.manual45-directory-list { max-height: min(520px, calc(100vh - 260px)); padding: 8px; overflow-y: auto; overscroll-behavior: contain; }
.manual45-directory-node { margin: 0; }
.manual45-directory-node > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 34px; padding: 7px 8px; border-radius: 8px; color: var(--manual-ink); cursor: pointer; list-style: none; }
.manual45-directory-node > summary::-webkit-details-marker { display: none; }
.manual45-directory-node > summary::before { content: "›"; flex: 0 0 12px; color: var(--manual-muted); font-size: 17px; line-height: 1; transform: translateY(-1px); }
.manual45-directory-node[open] > summary::before { content: "⌄"; }
.manual45-directory-node > summary:hover { background: var(--manual-surface); }
.manual45-directory-node > summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manual45-directory-node > summary small { flex: 0 0 auto; color: var(--manual-muted); font-size: 11px; font-weight: 600; }
.manual45-directory-part + .manual45-directory-part { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--manual-line); }
.manual45-directory-part > summary { color: var(--manual-primary); font-size: 13px; font-weight: 800; }
.manual45-directory-children { margin-left: 12px; padding-left: 8px; border-left: 1px solid var(--manual-line); }
.manual45-directory-lecture + .manual45-directory-lecture { margin-top: 3px; }
.manual45-directory-lecture > summary { color: var(--manual-ink); font-size: 12px; font-weight: 700; }
.manual45-directory-leaves { padding: 2px 0 4px 9px; }
.manual45-directory-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; width: 100%; margin: 2px 0; padding: 8px 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--manual-ink); text-align: left; }
.manual45-directory-item:hover { border-color: var(--manual-line); background: var(--manual-surface); }
.manual45-directory-item.is-current { border-color: #d8b47d; background: #fbf0df; box-shadow: inset 3px 0 #a66a28; }
.manual45-directory-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: var(--manual-soft); color: var(--manual-primary); font-size: 11px; font-weight: 800; }
.manual45-directory-copy { min-width: 0; }
.manual45-directory-copy strong { display: block; overflow: hidden; font-size: 12px; font-weight: 700; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.manual45-directory-status { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; color: var(--manual-muted); font-size: 10px; }
.manual45-directory-status span { padding: 1px 5px; border-radius: 999px; background: var(--manual-soft); }
.manual45-directory-status .is-memorized { background: var(--manual-green-bg); color: var(--manual-green); }
.manual45-directory-status .is-today { background: #e5f2e7; color: #367045; }
.manual45-directory-status .is-weak { background: var(--manual-amber-bg); color: var(--manual-amber); }
.manual45-directory-status .is-read { background: #e9eef5; color: #58708b; }
.manual45-picker-item { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; width: 100%; min-height: 44px; align-items: center; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--manual-ink); text-align: left; }
.manual45-picker-item:hover, .manual45-picker-item.is-current { border-color: #c7d2fe; background: var(--manual-selected); }
.manual45-picker-item > span { color: var(--manual-muted); font-size: 12px; text-align: center; }
.manual45-picker-item strong { min-width: 0; overflow: hidden; font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.manual45-picker-item small { color: var(--manual-muted); font-size: 12px; }
.manual45-reader-layout { display: block; }
.manual45-reader-layout { position: relative; }
.manual45-reader-main { min-width: 0; }
.manual45-reader-question { width: min(100%, 920px); min-width: 0; margin: 0 auto; padding: 40px; border: 1px solid var(--manual-line); border-radius: 16px; background: var(--manual-bg); box-shadow: 0 4px 20px rgba(17,24,39,.04); }
.manual45-reader-question-head { padding-bottom: 20px; border-bottom: 1px solid var(--manual-line); }
.manual45-reader-kicker { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--manual-muted); font-size: 13px; }
.manual45-reader-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.manual45-reader-tags span { padding: 3px 8px; border-radius: 999px; background: var(--manual-soft); color: var(--manual-muted); font-size: 12px; }
.manual45-reader-tags span.is-memorized { background: var(--manual-green-bg); color: var(--manual-green); }
.manual45-reader-question h1 { margin: 0; color: var(--manual-ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 28px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.manual45-reader-prompt { max-width: 72ch; margin: 24px auto 0; color: var(--manual-ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; line-height: 2; }
.manual45-reader-prompt p:first-child { margin-top: 0; }
.manual45-reader-prompt p:last-child { margin-bottom: 0; }
.manual45-answer-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid #8b5cf6; border-radius: 8px; background: #f5f3ff; color: #6d28d9; font-size: 14px; font-weight: 700; }
.manual45-answer-toggle:hover { border-color: #7c3aed; background: #ede9fe; color: #5b21b6; }
.manual45-answer-versions { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--manual-line); overflow-x: auto; }
.manual45-answer-versions button { min-height: 36px; padding: 6px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--manual-muted); font-size: 13px; white-space: nowrap; }
.manual45-answer-versions button:hover, .manual45-answer-versions button.is-active { background: var(--manual-selected); color: var(--manual-primary); font-weight: 700; }
.manual45-answer-versions .manual45-answer-edit { margin-left: auto; color: var(--manual-muted); }
.manual45-answer-content { max-width: 72ch; margin: 0 auto; padding: 24px 0 8px; color: var(--manual-amber); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.manual45-answer-content h3, .manual45-answer-content h4 { color: var(--manual-ink); }
.manual45-answer-content img { display: block; max-width: 100%; height: auto; margin: 16px auto; }
.manual45-answer-content mjx-container { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.manual45-answer-source { padding: 8px 0 0; color: var(--manual-muted); font-size: 12px; }
.manual45-answer-collapsed { display: grid; min-height: 64px; place-items: center; margin-top: 12px; border: 1px dashed var(--manual-line); border-radius: 8px; color: var(--manual-muted); font-size: 13px; }
.manual45-revision-editor { padding-top: 16px; }
.manual45-revision-editor textarea, .manual45-tool-panel textarea { display: block; width: 100%; min-height: 160px; padding: 12px; border: 1px solid var(--manual-line); border-radius: 8px; resize: vertical; background: var(--manual-surface); color: var(--manual-ink); font-size: 16px; line-height: 1.7; }
.manual45-panel-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--manual-muted); font-size: 12px; }
.manual45-panel-actions span { min-width: 0; }
.manual45-tool-switcher { display: flex; gap: 6px; margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--manual-line); }
.manual45-tool-tab { min-height: 40px; padding: 7px 12px; border: 1px solid #bae6fd; border-radius: 8px; background: #ecfeff; color: #0e7490; font-size: 14px; font-weight: 700; }
.manual45-tool-tab:hover, .manual45-tool-tab.is-active { border-color: #06b6d4; background: #cffafe; color: #0e7490; font-weight: 700; }
.manual45-tool-tab[data-tool="issue"] { border-color: #fda4af; background: #fff1f2; color: #be123c; }
.manual45-tool-tab[data-tool="issue"]:hover, .manual45-tool-tab[data-tool="issue"].is-active { border-color: #f43f5e; background: #ffe4e6; color: #9f1239; }
.manual45-tool-panel { margin-top: 12px; padding: 16px; border: 1px solid var(--manual-line); border-radius: 10px; background: var(--manual-soft); }
.manual45-panel-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--manual-muted); font-size: 12px; }
.manual45-panel-heading strong { color: var(--manual-ink); font-size: 15px; }
.manual45-tool-panel textarea { min-height: 160px; margin-top: 12px; }
.manual45-tool-panel .primary-btn { border: 1px solid var(--manual-primary); background: var(--manual-primary); color: #fff; }
.manual45-tool-panel .primary-btn:hover { background: var(--manual-primary-hover); }
.manual45-tool-panel .secondary-btn { border: 1px solid var(--manual-line); background: #fff; color: var(--manual-primary); }
.manual45-result { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; margin-top: 16px; padding: 16px; border: 1px solid #c7d2fe; border-radius: 10px; background: #fff; }
.manual45-result.is-low { border-color: #fecaca; background: var(--manual-red-bg); }
.manual45-result.is-mid { border-color: #fde68a; background: var(--manual-amber-bg); }
.manual45-result.is-excellent { border-color: #bbf7d0; background: var(--manual-green-bg); }
.manual45-result-score { display: flex; align-items: baseline; gap: 3px; color: var(--manual-primary); }
.manual45-result-score strong { font-size: 34px; line-height: 1; }
.manual45-result-score span { font-size: 12px; }
.manual45-result-summary p, .manual45-memory-technique p { margin: 5px 0 0; line-height: 1.7; }
.manual45-result-columns, .manual45-memory-technique { grid-column: 1 / -1; }
.manual45-result-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.manual45-result ul { margin: 6px 0 0; padding-left: 1.2em; line-height: 1.7; }
.manual45-memory-technique { padding-top: 12px; border-top: 1px solid var(--manual-line); }
.manual45-result-label { color: var(--manual-muted); font-size: 12px; font-weight: 700; }
.manual45-review-placeholder { margin-top: 12px; padding: 13px; border: 1px dashed var(--manual-line); border-radius: 8px; color: var(--manual-muted); font-size: 13px; }
.manual45-history-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 14px 0 0; }
.manual45-history-summary div { padding: 10px; border-top: 1px solid var(--manual-line); }
.manual45-history-summary dt { color: var(--manual-muted); font-size: 12px; }
.manual45-history-summary dd { margin: 4px 0 0; color: var(--manual-ink); font-size: 14px; font-weight: 700; }
.manual45-history-list { display: grid; gap: 10px; margin-top: 14px; }
.manual45-history-list article { padding: 12px; border: 1px solid var(--manual-line); border-radius: 8px; background: #fff; }
.manual45-history-list article > div:first-child { display: flex; justify-content: space-between; gap: 10px; color: var(--manual-primary); }
.manual45-history-list small { color: var(--manual-muted); font-weight: 400; }
.manual45-history-list p { margin: 8px 0; white-space: pre-wrap; line-height: 1.7; }
.manual45-history-feedback { color: var(--manual-muted); font-size: 13px; }
.manual45-history-feedback > div { margin-top: 7px; }
.manual45-history-feedback b { color: var(--manual-ink); font-weight: 700; }
.manual45-memory-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--manual-line); }
.manual45-memory-row > div { display: grid; gap: 3px; }
.manual45-memory-row strong { font-size: 15px; }
.manual45-memory-row strong.is-memorized { color: var(--manual-green); }
.manual45-memory-row span { color: var(--manual-muted); font-size: 12px; }
.manual45-memory-row .primary-btn { border-color: #16a34a; background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.manual45-memory-row .primary-btn:hover:not(:disabled) { border-color: #15803d; background: linear-gradient(135deg, #16a34a, #15803d); }
.manual45-reader-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 28px; }
.manual45-reader-navigation button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--manual-line); background: #fff; color: var(--manual-ink); }
.manual45-reader-navigation button:hover:not(:disabled) { border-color: #c7d2fe; background: var(--manual-selected); color: var(--manual-primary); }
.manual45-reader-navigation > span { color: var(--manual-muted); font-size: 13px; text-align: center; }
.manual45-reader-navigation button:last-child { justify-self: end; }
.manual45-empty { padding: 32px 16px; border: 1px dashed var(--manual-line); border-radius: 10px; background: #fff; color: var(--manual-muted); text-align: center; }
.manual45-empty .secondary-btn { margin-left: 8px; border: 1px solid var(--manual-line); background: #fff; color: var(--manual-primary); }
.manual45-table-wrap { max-width: 100%; overflow-x: auto; }
.manual45-table-wrap table { min-width: 520px; border-collapse: collapse; }
.manual45-table-wrap td, .manual45-table-wrap th { padding: 8px 10px; border: 1px solid var(--manual-line); }
@media (max-width: 760px) {
  .manual45-study { padding: 16px 12px calc(28px + env(safe-area-inset-bottom)); }
  .manual45-study-head { align-items: flex-start; flex-direction: column; margin-bottom: 14px; }
  .manual45-study-head-meta { width: 100%; justify-content: space-between; }
  .manual45-study-toolbar { align-items: stretch; }
  .manual45-search-field { flex-basis: 100%; }
  .manual45-study-toolbar > label:not(.manual45-search-field) { flex: 1 1 130px; }
  .manual45-filter-count { margin-left: 0; }
  .manual45-picker-item { grid-template-columns: 26px minmax(0,1fr); }
  .manual45-picker-item small { grid-column: 2; }
  .manual45-directory-picker { max-height: 52vh; }
  .manual45-reader-question { padding: 24px 16px; border-radius: 12px; }
  .manual45-reader-kicker { display: block; line-height: 1.6; }
  .manual45-reader-kicker span { display: block; }
  .manual45-reader-kicker span + span { margin-top: 3px; }
  .manual45-reader-question h1 { font-size: 22px; }
  .manual45-reader-prompt, .manual45-answer-content { font-size: 16px; line-height: 1.85; }
  .manual45-result { grid-template-columns: 1fr; }
  .manual45-result-columns { grid-template-columns: 1fr; }
  .manual45-tool-switcher { overflow-x: auto; }
  .manual45-tool-tab { flex: 0 0 auto; }
  .manual45-memory-row { align-items: flex-start; flex-direction: column; }
  .manual45-memory-row > button { width: 100%; }
  .manual45-reader-navigation { grid-template-columns: 1fr 1fr; }
  .manual45-reader-navigation > span { grid-column: 1 / -1; grid-row: 1; }
  .manual45-reader-navigation button:last-child { justify-self: stretch; }
}
@media (max-width: 390px) {
  .manual45-study h2 { font-size: 22px; }
  .manual45-study-context { font-size: 18px; }
  .manual45-study-head-meta .secondary-btn { padding-inline: 9px; font-size: 12px; }
  .manual45-study-toolbar > label:not(.manual45-search-field) { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .manual45-study *, .manual45-study *::before, .manual45-study *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 当前题目的答案、AI 复述和按需工具共用一张卡。 */
.manual45-reader-question { overflow: visible; }
.manual45-answer-card {
  margin-top: 28px;
  padding: 18px 20px 20px;
  border: 1px solid var(--manual-line);
  border-radius: 12px;
  background: var(--manual-soft);
}
.manual45-answer-card > .manual45-answer-toggle { margin: 0; }
.manual45-answer-content.is-collapsed {
  display: grid;
  min-height: 64px;
  place-items: center;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--manual-line);
  border-radius: 8px;
  color: var(--manual-muted);
  font-size: 13px;
  text-align: center;
}
.manual45-answer-content.is-collapsed p { margin: 0; }
.manual45-answer-editing { max-width: 760px; }

.manual45-ai-panel {
  margin-top: 24px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--manual-line);
  border-radius: 0;
  background: transparent;
}
.manual45-ai-panel .manual45-panel-heading { align-items: flex-start; }
.manual45-ai-description { display: block; margin-top: 4px; color: var(--manual-muted); font-size: 12px; font-weight: 400; }
.manual45-ai-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}
.manual45-ai-input-row input {
  min-width: 0;
  height: 44px;
  margin-top: 0;
  padding: 0 12px;
  border: 1px solid #b9c9d8;
  border-radius: 8px;
  background: #fff;
  color: var(--manual-ink);
}
.manual45-ai-input-row .primary-btn {
  width: 136px;
  min-width: 136px;
  min-height: 44px;
  align-self: stretch;
  border: 1px solid var(--manual-primary);
  background: var(--manual-primary);
  color: #fff;
  font-weight: 700;
}
.manual45-ai-input-row .primary-btn:hover { background: var(--manual-primary-hover); }
.manual45-ai-status { min-height: 18px; margin-top: 7px; color: var(--manual-muted); font-size: 12px; line-height: 1.5; }
.manual45-ai-panel > .manual45-result { margin-top: 12px; }
.manual45-issue-panel { border-color: #dfbbb5; background: var(--manual-red-bg); }
.manual45-attempt-tabs { display: flex; grid-column: 1 / -1; gap: 5px; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.manual45-attempt-tabs button { flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid #b9c9d8; border-radius: 7px; background: #fff; color: var(--manual-primary); font-size: 12px; font-weight: 700; }
.manual45-attempt-tabs button.is-selected { border-color: var(--manual-primary); background: var(--manual-primary); color: #fff; }
.manual45-result-summary time { display: block; margin-top: 4px; color: var(--manual-muted); font-size: 11px; }
.manual45-result-details { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--manual-line); }
.manual45-result-details summary { color: var(--manual-primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.manual45-result-details .manual45-result-columns { margin-top: 12px; }
.manual45-attempt-text { margin-top: 12px; }
.manual45-attempt-text p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }

.manual45-auxiliary-tools { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--manual-line); }
.manual45-auxiliary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--manual-muted); font-size: 12px; }
.manual45-auxiliary-heading strong { color: var(--manual-ink); font-size: 14px; }
.manual45-tool-switcher { margin-top: 10px; padding-top: 0; border-top: 0; }

.manual45-reader-navigation {
  position: static;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}
.manual45-reader-navigation > button {
  width: 100%;
  min-width: 160px;
  min-height: 52px;
  padding: 10px 14px;
  flex-direction: row;
}
.manual45-reader-navigation > button:first-of-type { border-color: #60a5fa; background: #eff6ff; color: #1d4ed8; }
.manual45-reader-navigation > button:first-of-type:hover:not(:disabled) { border-color: #2563eb; background: #dbeafe; }
.manual45-reader-navigation > button:last-of-type { border-color: #f87171; background: #fef2f2; color: #dc2626; }
.manual45-reader-navigation > button:last-of-type:hover:not(:disabled) { border-color: #dc2626; background: #fee2e2; color: #b91c1c; }

@media (max-width: 760px) {
  .manual45-answer-card { margin-top: 22px; padding: 14px 12px 16px; }
  .manual45-ai-panel { padding-top: 16px; }
  .manual45-ai-panel .manual45-panel-heading { display: block; }
  .manual45-ai-panel .manual45-panel-heading > span { display: block; margin-top: 6px; }
  .manual45-ai-input-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; }
  .manual45-ai-input-row .primary-btn { width: 96px; min-width: 96px; min-height: 44px; padding-inline: 7px; }
  .manual45-ai-input-row input { height: 44px; padding-inline: 9px; }
  .manual45-auxiliary-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .manual45-reader-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .manual45-reader-navigation > button { min-width: 0; min-height: 56px; padding: 9px 8px; }
  .manual45-reader-navigation > button:first-of-type { grid-column: 1; }
  .manual45-reader-navigation > button:last-of-type { grid-column: 2; }
}

/* 标准答案使用高可读性的黑色微软雅黑；修订版和原始摘录继续沿用各自的原有样式。 */
.manual45-answer-content.is-standard {
  color: #000;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  line-height: 1.95;
}
.manual45-answer-content.is-standard :where(*) {
  color: inherit;
  font-family: inherit;
}
.manual45-answer-content.is-standard :where(h3, h4, h5, h6) {
  margin: 1.25em 0 .55em;
  line-height: 1.65;
}
.manual45-answer-content.is-standard :where(h3, h4, h5, h6):first-child,
.manual45-answer-content.is-standard :where(p, ul, ol, blockquote, pre, table):first-child {
  margin-top: 0;
}
.manual45-answer-content.is-standard p {
  margin: 0 0 1em;
}
.manual45-answer-content.is-standard p:last-child {
  margin-bottom: 0;
}
.manual45-answer-content.is-standard :where(li, blockquote, pre, td, th) {
  line-height: 1.9;
}
