.document-search { margin:22px 0; padding:26px 28px; border-top:2px solid #315b46; background:#fafbf7; color:#243c32; }
.document-search h2 { margin:0 0 12px; font:600 clamp(25px,3vw,34px)/1.3 "Songti SC",SimSun,serif; }
.document-search p { font-size:15px; line-height:1.8; }
.document-search label { display:block; font-weight:600; margin-bottom:8px; }
.document-search input[type=search] { width:100%; padding:13px 15px; font:inherit; color:#243c32; border:1px solid #94aa94; background:white; border-radius:4px; }
.document-query { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:end; }
.document-controls { display:flex; flex-wrap:wrap; gap:12px 24px; align-items:center; margin:16px 0; }
.document-controls label { margin:0; display:flex; align-items:center; gap:10px; }
.document-search select { font:inherit; padding:9px; background:white; color:#243c32; border:1px solid #94aa94; border-radius:4px; min-height:44px; }
.document-search button { font:inherit; min-height:44px; padding:10px 16px; border:1px solid #315b46; background:#315b46; color:white; border-radius:4px; cursor:pointer; }
.document-search button.secondary { background:transparent; color:#315b46; }
.document-search button:disabled { opacity:.5; cursor:default; }
.document-search :is(a,button,select,input,summary):focus-visible { outline:3px solid #9a5039; outline-offset:3px; }
.document-search .search-result { border-bottom:1px solid #cbd5c8; padding:18px 0; }
.search-result h3 { font-size:17px; margin:0 0 8px; color:#315b46; }
.search-result pre { white-space:pre-wrap; overflow-wrap:anywhere; font:15px/1.8 "Microsoft YaHei",sans-serif; color:#243c32; background:transparent; max-height:320px; overflow:auto; padding:12px 0; margin:0; }
.search-result summary { min-height:44px; cursor:pointer; color:#315b46; display:flex; align-items:center; }
.search-result .source-location { font-size:13px; color:#53674f; }
.search-history { overflow:auto; max-width:100%; margin-top:20px; }
.search-history table { width:100%; border-collapse:collapse; font-size:14px; }
.search-history th,.search-history td { text-align:left; padding:10px; border-bottom:1px solid #cbd5c8; white-space:nowrap; }
.search-empty { color:#79533c; padding:12px 0; }
.document-file { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:12px 0; color:#315b46; font-size:14px; }
.document-file input { max-width:100%; }
.document-file button { min-height:44px; padding:8px 12px; border:1px solid #819b81; border-radius:4px; font-size:14px; color:#315b46; background:#f7f8f1; cursor:pointer; }
.chunk-body input[type=file] { font-size:16px; max-width:100%; }
.chunk-body input[type=file]::file-selector-button { min-height:44px; padding:8px 12px; font:inherit; color:#315b46; background:#f7f8f1; border:1px solid #819b81; border-radius:4px; cursor:pointer; }
.document-search details p { max-width:75ch; }
.document-search [role=status]:empty { display:none; }
.document-steps { display:flex; flex-wrap:wrap; gap:6px 22px; padding:10px 0; border-bottom:1px solid #cbd5c8; margin-bottom:18px; }
.document-steps a { min-height:44px; display:inline-flex; align-items:center; color:#315b46; font-size:14px; text-underline-offset:4px; }
@media(max-width:700px) {
  .document-search { padding:20px 16px; }
  .document-query { grid-template-columns:1fr; }
  .document-query button { width:100%; }
  .document-controls { gap:10px; }
  .document-controls button { flex:1 1 140px; }
}
.chunk-body .lab-outer { background:#f7f4ec; }
.chunk-body .lab-frame { border-color:#cbd5c8; box-shadow:none; }
.chunk-body .lab-title { font-family:"Songti SC",SimSun,serif; color:#243c32; }
.chunk-body .lab-topbar { color:#315b46; }
.chunk-body .lab-seg-btn.is-active { background:#315b46; border-color:#315b46; color:white; }
.chunk-body .lab-actions button { color:#315b46; border-color:#a4b79c; }
.chunk-body { accent-color:#315b46; caret-color:#315b46; overflow-x:visible; }
html { scroll-behavior:auto; }
.chunk-body ::selection { background:#d7e4cd; color:#203f30; }
.document-context { max-width:1080px; width:calc(100% - 32px); margin:16px auto 0; padding:12px 16px; background:#ecefe5; font-size:14px; line-height:1.8; color:#315b46; }
.document-context a { color:inherit; text-decoration:underline; text-underline-offset:4px; }
.document-steps { margin:0 28px; background:#faf9f3; }
.document-steps a { text-decoration:underline; }
.document-practice { margin:20px 28px 28px; padding:16px 0; border-block:1px solid #cbd5c8; color:#243c32; }
.document-practice summary,.document-search>details>summary { cursor:pointer; min-height:44px; align-content:center; font-size:16px; }
.document-practice p,.document-practice li { max-width:75ch; line-height:1.8; font-size:16px; }
.document-practice h2 { font:600 24px/1.4 "Songti SC",SimSun,serif; margin:24px 0 10px; }
.practice-picker { display:flex; gap:12px; flex-wrap:wrap; align-items:end; }
.practice-picker label { flex:1 1 240px; display:grid; gap:8px; font-weight:600; }
.document-practice select,.document-practice button { font:inherit; min-height:44px; padding:10px 14px; border:1px solid #819b81; border-radius:4px; background:#fff; color:#243c32; max-width:100%; }
.document-practice button { background:#315b46; color:#fff; cursor:pointer; }
.document-action,.document-next a { display:inline-flex; min-height:44px; align-items:center; color:#315b46; text-underline-offset:4px; }
.practice-route { padding-left:1.5em; }
.document-search { background:#faf9f3; }
.document-search h2 { font-size:30px; }
.document-search :is(p,pre,label,input,select,textarea,summary,button) { font-size:16px; }
.document-search :is(input,textarea,select) { box-sizing:border-box; }
.document-search input::placeholder,.document-search textarea::placeholder { color:#586c5a; opacity:1; }
.document-search :is(select,input[type=search],textarea) { border-color:#819b81; }
.document-search button:not(:disabled):hover { background:#254936; color:#fff; }
.document-search button:not(:disabled):active { background:#1c3c2c; color:#fff; }
.document-search button.secondary:not(:disabled):hover { background:#e6ecdf; color:#243c32; }
.document-search .source-location,.lab-view .source-location { font-size:14px; line-height:1.7; color:#50634e; }
.document-search .document-check { display:flex; gap:9px; align-items:center; font-weight:400; margin:0; min-height:44px; }
.document-check input { width:20px; height:20px; flex:0 0 20px; }
.document-search .search-result { padding:24px 0; }
.search-result h3 { font-size:20px; }
.search-result pre { max-width:75ch; line-height:1.9; max-height:none; }
.search-result>button { margin:8px 8px 0 0; }
.document-review { margin-top:28px; padding-top:20px; border-top:1px solid #819b81; }
.document-review h3 { font-size:23px; }
.document-review label:not(.document-check) { margin:18px 0 8px; }
.document-review select { display:block; width:100%; max-width:600px; }
.document-search textarea { width:100%; resize:vertical; padding:12px; font:16px/1.8 "Microsoft YaHei",sans-serif; background:white; color:#243c32; border:1px solid #819b81; border-radius:4px; }
.document-next { display:flex; gap:8px 24px; flex-wrap:wrap; margin:16px 0; }
.document-downloads { border-top:1px solid #cbd5c8; padding-top:20px; margin-top:24px; }
.document-source { margin:24px 0; padding:18px; background:#ecefe5; }
.document-pdf-preview { overflow:auto; max-height:650px; }
.document-pdf-preview canvas { display:block; height:auto; background:white; }
.document-benchmark { margin-top:24px; padding-top:16px; border-top:1px solid #cbd5c8; }
.search-history caption { text-align:left; color:#315b46; font-weight:600; padding:12px 0; }
.search-history td { font-variant-numeric:tabular-nums; }
.chunk-body :is(#viewInput,#document-search,#document-practice,#document-search-results) { scroll-margin-top:88px; }
.chunk-body .lab-worktab.is-active { color:#315b46; border-bottom-color:#315b46; }
.chunk-body .lab-range { accent-color:#315b46; }
.chunk-body .lab-input-hint { line-height:1.8; }
.chunk-body .lab-vars { background:#f7f8f1; border-color:#cbd5c8; }
.chunk-body .lab-panel-title { font-size:16px; color:#243c32; }
.chunk-body .lab-var label,.chunk-body .lab-var output { font-size:14px; color:#315b46; }
.chunk-body .lab-var output { background:#e5ecdc; font-variant-numeric:tabular-nums; }
.chunk-body :is(.lab-var-hint,.lab-range-ends,.lab-metric-note,.lab-worktab span) { color:#50634e; font-size:13px; }
.chunk-body .lab-seg-btn { min-height:44px; font-size:14px; color:#315b46; }
.chunk-body .lab-seg-btn.is-active { color:white; }
.chunk-body .lab-range { height:36px; }
.chunk-body .lab-metric { border-color:#cbd5c8; background:#fafbf7; }
.chunk-body .lab-metric span { color:#50634e; font-size:13px; letter-spacing:0; line-height:1.5; }
.chunk-body .lab-worktab { font-size:14px; color:#50634e; min-height:44px; }
.chunk-body .lab-actions button { min-height:44px; font-size:14px; }
.chunk-body #sourceText { min-height:280px; font-size:16px; color:#243c32; border-color:#819b81; white-space:pre-wrap; overflow-wrap:anywhere; }
.chunk-body #sourceText:focus-visible { outline:3px solid #9a5039; outline-offset:2px; box-shadow:none; }
.chunk-body .lab-draft summary { min-height:44px; align-content:center; color:#315b46; }
.chunk-body :is(.lab-brand,.lab-status) { font-size:14px; color:#315b46; }
.chunk-body .lab-disclaimer { color:#50634e; background:#f7f8f1; font-size:14px; line-height:1.8; }
.chunk-body .chunk-steps a span { font-size:13px; color:#50634e; }
.chunk-body .lab-range::-webkit-slider-thumb { background:#315b46; }
.chunk-body [hidden] { display:none!important; }
@media(max-width:700px) {
  .document-steps { margin:0 16px; display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
  .document-practice { margin:18px 16px; }
  .document-search h2 { font-size:25px; }
  .practice-picker button { width:100%; }
  .document-controls { align-items:stretch; }
  .document-controls label { flex:1 1 150px; }
  .search-history { overflow:visible; }
  .search-history :is(table,tbody) { display:block; }
  .search-history thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .search-history tr { display:grid; gap:0; padding:12px 0; border-bottom:1px solid #cbd5c8; }
  .search-history td { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:14px; border:0; padding:6px 0; white-space:normal; overflow-wrap:anywhere; font-size:14px; }
  .search-history td::before { content:attr(data-label); font-weight:600; }
  .document-source { padding:12px; }
  .document-pdf-preview { max-height:420px; }
  .document-review>button { width:100%; }
  .chunk-body .lab-worktabs { padding-inline:12px; }
  .chunk-body .lab-worktab { padding-inline:5px; }
  .chunk-body #sourceText { min-height:220px; height:45dvh; }
  .search-result>button { width:100%; margin-right:0; }
  .document-search .document-downloads button { flex:1 1 100%; }
}
