/* Mobile workbench: quiet plum ink, warm paper, task-first hierarchy. */
/* Download choices share the same compact purple-and-gold treatment on both surfaces. */
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet{width:min(440px,calc(100% - 24px));padding:0;border:1px solid #b99957;border-radius:4px;background:#fffdf8;overflow:auto}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet>header{margin:0!important;padding:12px 16px 12px 24px!important;border:0;background:#4b2568;color:#f0dba9}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet>header h2{margin:0;color:#f0dba9;font-size:20px;line-height:1.5;font-weight:700}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet>header button{width:44px;height:44px;padding:0;border:0;border-radius:2px;background:transparent;color:#f0dba9;font-size:28px;line-height:1}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet>header button:hover{background:#ffffff14;color:#f0dba9}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet .mobile-sheet-content{display:grid;gap:12px;padding:24px}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet .mobile-sheet-action{display:flex;align-items:center;justify-content:center;min-height:54px;margin:0;padding:14px 20px;border:1px solid #c9b181;border-radius:3px;background:#fffdf8;color:#4b2568;font-size:16px;font-weight:500;text-align:center;line-height:1.5}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet .mobile-sheet-action:hover{background:#f5eedf;border-color:#b99957}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet .mobile-sheet-action::after{content:none}
body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet :focus-visible{outline:2px solid #b99957;outline-offset:3px}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
  body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet{width:100%;border-radius:4px 4px 0 0}
  body:is(.report-studio,.reader-studio) dialog.mobile-sheet.report-download-sheet .mobile-sheet-content{padding:20px 20px calc(20px + env(safe-area-inset-bottom))}
}
.mobile-only{display:none}
@media(min-width:1025px),(min-width:761px) and (pointer:fine){.mobile-only,.reader-controls .mobile-only{display:none!important}}
.mobile-sheet{box-sizing:border-box;width:min(520px,calc(100% - 24px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:20px;border:1px solid #d9ccdf;border-radius:18px;background:#fffdf9;color:#493655;overflow:auto;overscroll-behavior:contain;font:15px/1.6 "Microsoft YaHei",sans-serif}
.mobile-sheet::backdrop{background:#24162f70}
.mobile-sheet>header{display:flex!important;justify-content:space-between;align-items:center;gap:16px;padding:0 0 12px!important;margin:0!important}
.mobile-sheet h2{font-size:19px;margin:0}
.mobile-sheet button,.mobile-sheet a.mobile-sheet-action{box-sizing:border-box;min-height:44px;min-width:44px;padding:10px 14px;border:1px solid #ded2e4;border-radius:10px;background:#f6f0f8;color:#644577;text-decoration:none;font:inherit;cursor:pointer}
.mobile-sheet-content{display:grid;gap:12px}
.mobile-sheet-content p{margin:0;color:#736879;font-size:14px}
.mobile-sheet-action{display:block;width:100%;text-align:left}
.mobile-sheet input{box-sizing:border-box;width:100%;min-height:48px;margin:10px 0 16px;padding:10px;font-size:18px;color:#493655;background:#fff;border:1px solid #b8a3c3;border-radius:8px}
.mobile-sheet form button{width:100%;background:#705086;color:white}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
  .mobile-only{display:inline-flex}
  [hidden]{display:none!important}
  body.mobile-overlay-open{overflow:hidden}
  .mobile-sheet{margin:auto 0 0;width:100%;max-width:none;max-height:85vh;max-height:85dvh;border-radius:20px 20px 0 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));animation:mobile-sheet-in .18s ease-out}
  .mobile-sheet{position:fixed;inset:auto 0 var(--mobile-keyboard-offset,0px);max-height:calc(var(--mobile-visible-height,85vh) - 24px)}
  @keyframes mobile-sheet-in{from{transform:translateY(12px);opacity:.8}to{transform:translateY(0);opacity:1}}
  body.report-studio{scroll-behavior:auto;background:radial-gradient(ellipse at 90% 0%,#e9dfee 0,transparent 520px),#faf7f2}
  body.report-studio::before,body.report-studio::after,body.report-studio #agent-stars{display:none}
  body.report-studio .agent-shell{padding:0 16px 24px!important;max-width:100%}
  body.report-studio .agent-commandbar{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:16px 0!important;margin:0;min-height:76px;animation:none;border-bottom:1px solid #e2d9e7}
  body.report-studio .agent-brand{min-width:0;flex:1}
  body.report-studio .agent-brand strong{font-size:20px;overflow-wrap:anywhere}
  body.report-studio .studio-brand-caption{font-size:11px;margin-top:3px}
  body.report-studio .studio-nav,body.report-studio .studio-topline,body.report-studio .agent-commandbar>.agent-command-actions{display:none!important}
  body.report-studio .mobile-workbench-more{min-width:52px;min-height:44px;font-size:14px;background:#fffdf9}
  body.report-studio .mobile-sheet .agent-command-actions{display:grid!important;width:100%;gap:10px;margin:0}
  body.report-studio .mobile-sheet .agent-command-actions>*{min-height:44px;justify-content:center}
  body.report-studio .mobile-sheet .agent-command-actions .credit-balance small{display:inline}
  body.report-studio .hero{min-height:238px!important;padding:22px 0 26px!important;margin:0 0 20px;background:radial-gradient(ellipse at 90% 50%,#dfd0e650,transparent 65%);border:0;border-bottom:1px solid #dfd3df;overflow:hidden}
  body.report-studio .hero-copy{width:65%;z-index:2}
  body.report-studio .hero h1{font-size:clamp(23px,6.3vw,30px);line-height:1.55;font-family:"Songti SC","STSong","SimSun",serif;letter-spacing:.02em}
  body.report-studio .hero-copy p{display:none}
  body.report-studio .eyebrow{display:flex;font-size:10px;letter-spacing:.08em;color:#977547;margin-bottom:14px}
  body.report-studio .folio-scene{display:block;position:absolute;left:calc(100% - 165px);top:35px;width:390px;height:340px;margin:0;transform:scale(.44) rotate(-4deg);transform-origin:top left;pointer-events:none}
  body.report-studio .folio-scene .folio-tag,body.report-studio .folio-scene .orbit{display:none}
  body.report-studio.has-reports .hero h1{display:block}
  body.report-studio .create-contact{width:min(190px,100%);margin:22px 0 0;padding:0;min-height:0;display:block;filter:none}
  body.report-studio .contact-bed,body.report-studio .contact-shadow{display:none}
  body.report-studio .hero-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px!important;margin:0;padding:12px 18px!important;background:linear-gradient(135deg,#ebe0ef,#cbb6d8)!important;color:#513464!important;border:1px solid #ae91bb!important;border-radius:8px;box-shadow:inset 0 1px #fffc,0 6px 12px -8px #50336480!important;transform:none!important;filter:none!important;font-size:14px!important}
  body.report-studio .hero-cta::before,body.report-studio .hero-cta::after{display:none}
  body.report-studio .agent-overview{display:block;padding:0;margin:0;border-top:0;animation:none}
  body.report-studio #report-library{padding:0!important;margin:0;border:0;background:none}
  body.report-studio .delivery-head{display:flex!important;flex-wrap:wrap;gap:14px;margin:0 0 12px!important;padding:0}
  body.report-studio .delivery-title{display:flex;align-items:center;gap:10px}
  body.report-studio .delivery-title h2{font-size:20px;gap:8px}
  body.report-studio .workbench-heading-icon{display:none}
  body.report-studio .delivery-tools{width:100%;margin:0}
  body.report-studio .report-search{width:100%;max-width:none}
  body.report-studio .report-search input{width:100%!important;height:46px!important;font-size:16px!important;border-radius:10px;background:#fffdfb}
  body.report-studio .studio-library-note,body.report-studio .report-table-head{display:none}
  body.report-studio .mobile-report-filters{display:flex;gap:6px;margin:0 0 16px}
  body.report-studio .mobile-report-filters button{flex:1;padding:8px 4px;min-height:44px;font-size:13px;border-color:transparent;color:#74627e}
  body.report-studio .mobile-report-filters button[aria-pressed=true]{background:#e9deef;border-color:#d8c7e1;color:#543668;font-weight:700}
  body.report-studio .archive-shelf{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;margin:0!important;padding:9px 0 0!important;min-height:0}
  body.report-studio .archive{width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;perspective:none;transform:none!important;animation:none!important;overflow:visible}
  /* Reserve room only at the shelf entrance; extracted papers overlay adjacent folders. */
  body.report-studio .archive:first-child{padding-top:64px!important}
  body.report-studio .archive:has(>.folder-trigger.is-centered),body.report-studio .archive:has(>.folder-trigger.is-extracting){z-index:6}
  body.report-studio .archive>.folder-trigger{display:block!important;height:330px;max-width:440px;margin:auto}
  body.report-studio .folder-status-panel{display:grid;left:20px;right:20px;bottom:16px}
  body.report-studio .card-recovery-actions button{min-height:44px}
  body.report-studio .folder-status-panel:has(.card-production-status):has(.card-recovery-actions){grid-template-columns:1fr}
  body.report-studio .folder-front{padding:22px 20px 16px}
  body.report-studio .folder-meta{font-size:12px}
  body.report-studio .folder-meta b.folder-academic{font-size:16px}
  body.report-studio .folder-major{font-size:11px}
  body.report-studio .folder-trigger:not(.is-centered):not(.is-extracting):hover .report-paper{transform:translateY(-13px) rotate(2deg)}
  body.report-studio .folder-trigger:not(.is-centered):not(.is-extracting):hover .folder-front{transform:none}
  body.report-studio .archive::before,body.report-studio .archive::after{display:none!important}
  #mobile-list-recovery{margin:0 0 14px;padding:14px;border:1px solid #dfc8ae;border-radius:10px;background:#fff7ec;color:#79583a;font-size:14px}
  #mobile-list-recovery p{margin:0 0 8px}
  #mobile-list-recovery button,#mobile-list-recovery a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px}
  body.report-studio .agent-footer{animation:none;margin-top:20px}
  body.report-studio .agent-dialog{max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain}
  body.report-studio #studio-create[open],body.report-studio #studio-create.is-direct[open]{display:flex;flex-direction:column;width:100%;max-width:none;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:16px 12px calc(12px + env(safe-area-inset-bottom));overflow:hidden}
  body.report-studio #studio-create[open],body.report-studio #studio-create.is-direct[open]{height:var(--mobile-visible-height,100dvh);max-height:var(--mobile-visible-height,100dvh)}
  body.report-studio #studio-create .studio-close{top:12px;right:12px;width:44px;height:44px;font-size:24px;z-index:2}
  body.report-studio .studio-intake-header{display:block;padding:0 0 8px;flex-shrink:0}
  body.report-studio .studio-intake-identity{padding-right:48px}
  body.report-studio .studio-intake-identity strong{display:none}
  body.report-studio .studio-intake-identity h2{font-size:17px;line-height:36px;margin:0}
  body.report-studio .studio-create-modes{display:flex;flex-wrap:nowrap;gap:6px!important;margin-top:4px!important}
  body.report-studio .studio-create-modes button{min-height:44px;font-size:12px!important;padding:8px!important}
  body.report-studio .studio-create-modes [data-create-mode]{flex:1;min-width:0;font-size:13px!important;padding:6px!important}
  body.report-studio .studio-intake-more{flex:0 0 auto;font-size:13px}
  body.report-studio .studio-intake-more summary{padding:0 10px;box-sizing:border-box}
  body.report-studio #studio-direct-intake{display:flex;flex:1;min-height:0}
  body.report-studio #studio-intake-frame,body.report-studio #studio-create.is-direct #studio-intake-frame{height:100%!important;width:100%;min-height:0;border:0}
  body.report-studio #studio-create .composer{flex:1;min-height:0;overflow:auto;padding:16px 0}
  body.report-studio #standard-intake-text{font-size:16px;min-height:220px}
  body.report-studio .dialog-actions{background:#faf8fc;gap:10px;flex-wrap:wrap;bottom:-18px}
  body.report-studio .dialog-close,body.report-studio .sheet-close{min-width:44px;min-height:44px}
  body.report-studio .archive-sheet{padding:16px}
  body.report-studio .archive-details dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.report-studio .archive-details dl>div:not(.report-profile-number){grid-column:1/-1}
  body.report-studio input,body.report-studio select,body.report-studio textarea{font-size:16px}

  /* Stable flex viewport: no fixed-height subtraction and no animated ancestors. */
  html.reader-document{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
  body.reader-studio{position:fixed;inset:0;width:100%;max-width:100%;margin:0;box-sizing:border-box;height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:#eee9f0}
  .reader-studio .reader-toolbar{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 12px!important;background:#fffdf9;border-bottom:1px solid #ded3e4;min-height:0;backdrop-filter:none;z-index:25}
  .reader-studio .reader-leading{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:0}
  .reader-studio #mobile-reader-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#493655;font-weight:600}
  .reader-studio .reader-leading .back{flex-shrink:0}
  .reader-studio #toc-toggle{display:none}
  .reader-studio .reader-leading .back{display:flex;align-items:center;min-height:44px;max-width:none;font-size:14px;color:#634674}
  .reader-studio #mobile-reader-more{align-items:center;justify-content:center;min-height:44px;min-width:52px;background:transparent;border:1px solid #e0d5e6;border-radius:8px;color:#634674}
  .reader-studio .reader-title-block{grid-column:1/-1;grid-row:2;justify-content:stretch;min-width:0}
  .reader-studio .reader-artifact-switcher{display:flex;width:100%;padding:0;background:none;border:0;gap:6px;overflow:auto}
  .reader-studio .reader-artifact-tab{flex:1;justify-content:center;text-align:center;min-height:44px;display:flex;align-items:center;font-size:14px;padding:8px 12px;white-space:nowrap;color:#786384}
  .reader-studio .reader-artifact-tab[aria-current=page]{background:#eee5f3;border-color:#d9c9e3;color:#593a6e;box-shadow:none}
  .reader-studio[data-share-path] .reader-toolbar{gap:0;padding:2px 8px!important}
  .reader-studio[data-share-path] .reader-leading{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap}
  .reader-studio[data-share-path] #mobile-reader-title{order:-1;font-size:13px}
  .reader-studio[data-share-path] .reader-artifact-tab{min-height:36px;padding:3px 8px;font-size:13px}
  .reader-studio[data-share-path] #mobile-reader-more{min-height:36px;min-width:44px;font-size:13px;padding:3px 8px}
  .reader-studio[data-share-path] .reader-title-block{padding:0;margin:0}
  .reader-studio[data-share-path] .book{padding-top:2px!important}
  .reader-studio .reader-progress{bottom:0;top:auto}
  .reader-studio .reader-layout{min-width:0;width:100%;max-width:100%;flex:1;min-height:0;height:auto!important;display:flex;overflow:hidden;z-index:auto}
  .reader-studio .book{min-width:0;max-width:100%;box-sizing:border-box;flex:1;width:100%;height:100%;padding:8px 4px calc(72px + env(safe-area-inset-bottom))!important;display:block;perspective:none;transform:none!important;animation:none!important;background:#eee9f0}
  .reader-studio .book::before,.reader-studio .book-floor-shadow,.reader-studio .book-fore-edge,.reader-studio .flipbook-host::before,.reader-studio .flipbook-host::after{display:none!important}
  .reader-studio .reader-stage{min-width:0;max-width:100%;height:100%;width:100%;touch-action:none;transition:none}
  .reader-studio .reader-zoom-surface{min-width:0;max-width:100%;transition:none;will-change:auto}
  .reader-studio .flipbook-host{width:var(--book-comfort-width,100%);height:var(--book-comfort-height);max-width:100%;transition:none;transform:none!important}
  .reader-studio .flipbook{height:var(--book-comfort-height)!important}
  .reader-studio .flipbook{filter:none;box-shadow:0 1px 6px #37234014}
  .reader-studio .flip-page::before,.reader-studio .flip-page::after{display:none}
  .reader-studio .reader-zoom-hud,.reader-studio .reader-footer,.reader-studio .reader-edge-nav{display:none!important}
  .reader-studio .reader-controls{position:fixed;display:flex;left:0;right:0;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));height:auto;min-height:64px;gap:4px;border:0;border-top:1px solid #ded3e4;border-radius:0;background:#fffdf9;box-shadow:none;backdrop-filter:none;overflow:visible;justify-content:space-between}
  .reader-studio .reader-controls button{min-height:48px;min-width:44px;padding:8px;font-size:14px;color:#604471;border:0;background:transparent;border-radius:8px;align-items:center;justify-content:center;transform:none!important}
  .reader-studio .reader-controls #previous-page,.reader-studio .reader-controls #next-page{font-size:26px}
  .reader-studio .reader-controls .reader-page-jump,.reader-studio #zoom-toggle,.reader-studio #fullscreen-toggle,.reader-studio #spread-toggle,.reader-studio #reader-download{display:none!important}
  .reader-studio #mobile-page-jump{flex:1;font-variant-numeric:tabular-nums;font-size:15px;white-space:nowrap}
  .reader-studio .reader-controls button:disabled{opacity:.3}
  .reader-studio.mobile-tools-hidden .reader-toolbar{position:absolute;visibility:hidden;pointer-events:none}
  .reader-studio.mobile-tools-hidden .book{padding-bottom:8px!important}
  .reader-studio.mobile-tools-hidden .reader-controls{visibility:hidden;pointer-events:none}
  .reader-studio .toc{position:fixed;top:0;bottom:0;left:0;display:block;transform:translateX(-105%);z-index:50;background:#fffdf9;box-shadow:5px 0 30px #23152d20;width:min(86vw,330px);overscroll-behavior:contain;padding:16px;transition:transform .18s ease-out}
  .reader-studio .toc.open{transform:translateX(0)}
  .reader-studio .toc-heading button{min-width:44px;min-height:44px;font-size:24px}
  .reader-studio .toc nav button{min-height:44px}
  #mobile-toc-backdrop{position:fixed;inset:0;z-index:45;background:#23152d55;border:0;border-radius:0}
  #mobile-zoom-restore{position:fixed;right:12px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:26;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;background:#fffdf9;border:1px solid #cbb8d5;border-radius:22px;color:#604471;box-shadow:0 2px 10px #49365514}
  #mobile-reader-hint{position:fixed;left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:26;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:#493655;color:#fffdf9;border-radius:10px;font-size:12px}
  #mobile-reader-hint button{min-height:44px;min-width:52px;background:transparent;color:#fff;border:0;font:inherit}
  .reader-studio:has(.is-zoomed) #mobile-reader-hint{display:none}
  .reader-studio .reader-opening{padding:24px;box-sizing:border-box;inset:0;width:auto;height:auto;background:radial-gradient(ellipse at 50% 40%,#ede3f1,transparent 65%),#faf7f2;animation:none!important;transform:none!important}
  .reader-studio .opening-book{display:block;width:128px;height:174px;flex-shrink:0;margin-bottom:28px;perspective:900px;transform:none;filter:none}
  .reader-studio .opening-cover{padding:18px 10px 14px;transform:rotateY(-28deg);animation:mobile-book-open 1.8s cubic-bezier(.2,.65,.3,1) both;transition:transform .75s ease,opacity .75s ease;box-shadow:inset 0 0 0 5px #ffffff08,8px 12px 22px #51356318}
  .reader-studio .opening-cover strong{font-size:19px;margin-top:18px}
  .reader-studio .opening-cover small{font-size:8px}
  .reader-studio .opening-pages{transform:none}
  .reader-studio::before,.reader-studio::after{display:none!important}
  .reader-studio .reader-opening h1{font-size:19px;line-height:1.6;margin-bottom:12px}
  .reader-studio .reader-opening{overflow:hidden;contain:layout paint;transition:opacity .35s ease .65s}
  .reader-studio .opening-return{margin-top:24px}
  .reader-studio .opening-progress{display:block;width:128px;height:3px;flex-shrink:0;margin-top:20px;background:#e3d9e8}
  .reader-studio .opening-progress::after{width:45%;background:linear-gradient(90deg,#aa8350,#d4b679,#aa8350);animation:opening-travel 1.7s ease-in-out infinite}
  .reader-studio .opening-return,.reader-studio #reader-retry{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;font-size:14px}
  .reader-studio #reader-retry{margin-top:20px;border:0;background:#705086;color:#fff;border-radius:10px}
  .reader-studio .reader-opening.is-opening{opacity:0;pointer-events:none}
  .reader-studio .is-opening .opening-cover{animation:none;transform:rotateY(-115deg);opacity:.25}
  .reader-studio .is-opening .opening-progress::after{animation:none;transform:none;width:100%;transition:width .25s ease}
  .reader-studio .has-error .opening-progress{display:none}
  .reader-studio .has-error .opening-cover{animation:none;transform:none}
  .reader-studio #sound-toggle{display:flex!important;font-size:12px;white-space:nowrap;padding:6px;min-width:56px}
  .reader-studio #sound-toggle::before{content:none!important}
  .reader-studio #sound-toggle[aria-pressed=true]{color:#735327;background:#f5efdf}
  @keyframes mobile-book-open{from{transform:rotateY(0)}to{transform:rotateY(-28deg)}}
  @media(max-height:600px){.reader-studio .opening-book{width:96px;height:130px;margin-bottom:16px}.reader-studio .opening-cover{padding:10px 5px}.reader-studio .opening-cover strong{font-size:14px;margin-top:10px}.reader-studio .opening-cover small,.reader-studio .opening-cover i{display:none}}
  @media(prefers-reduced-motion:reduce){.reader-studio .opening-cover{animation:none;transition:none;transform:none}.reader-studio .opening-progress::after{animation:none;transform:none;width:100%}.reader-studio .reader-opening{transition:none}}
  .reader-studio .reader-loading{font-size:14px}
  @media(prefers-reduced-motion:reduce){.mobile-sheet,.reader-studio .toc{animation:none;transition:none}}
}

@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
 .reader-studio .reader-controls #mobile-zoom-menu,.reader-studio .reader-controls #sound-toggle{display:none!important}
 .reader-studio #mobile-reader-title{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5;overflow-wrap:anywhere}
 .reader-studio[data-share-path] .reader-leading{align-items:flex-start;flex-direction:column;gap:0;padding:6px 4px}
 /* A compact dedication, echoing the report's gold spine and plum typography. */
 .reader-studio #mobile-reader-title{position:relative;padding:2px 0 2px 13px;border-left:2px solid #b58c50;line-height:1.3;text-align:left}
 .reader-studio #mobile-reader-title::before{content:"";position:absolute;left:3px;top:0;bottom:0;border-left:1px solid #e4d4b9}
 .reader-studio .reader-dedication{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
 .reader-studio #reader-student-name{font-family:"Noto Serif SC","Songti SC","STSong","SimSun",serif;font-size:21px;font-weight:700;letter-spacing:1px;color:#493655;overflow-wrap:anywhere;min-width:0}
 .reader-studio .reader-student-suffix{font-size:11px;font-weight:400;letter-spacing:1px;color:#796b80;white-space:nowrap}
 .reader-studio .reader-dedication-caption{display:block;margin-top:5px;font-size:10px;font-weight:500;letter-spacing:1.5px;line-height:1.5;color:#8c6838}
 .reader-studio[data-share-path] .reader-toolbar{padding:8px 12px 4px!important;column-gap:12px;row-gap:6px;align-items:center}
 .reader-studio[data-share-path] .reader-leading{padding:2px 0;min-width:0}
 .reader-studio[data-share-path] #mobile-reader-more{min-height:44px;align-self:center}
 .reader-studio .reader-controls{justify-content:space-between}
}

/* Mobile reader: paper, quiet navigation and typographic tabs. */
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
 .reader-studio .reader-toolbar,.reader-studio[data-share-path] .reader-toolbar{padding:12px 18px 0!important;column-gap:12px;row-gap:8px;border-bottom:1px solid #e8e1d8;box-shadow:none;background:#fffdf9;align-items:center}
 .reader-studio .reader-title-block{margin:0;padding:0}
 .reader-studio .reader-artifact-switcher{gap:28px;justify-content:flex-start;overflow-x:auto}
 .reader-studio .reader-artifact-tab,.reader-studio[data-share-path] .reader-artifact-tab{position:relative;flex:0 0 auto;min-height:44px;padding:10px 0 12px;border:0;border-radius:0;background:transparent;box-shadow:none;color:#887f8b;font-size:13px;font-weight:400;letter-spacing:1px;line-height:1.5}
 .reader-studio .reader-artifact-tab[aria-current=page]{color:#493655;background:transparent;border:0;box-shadow:none;font-weight:600}
 .reader-studio .reader-artifact-tab[aria-current=page]::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#9d7848}
 .reader-studio .reader-artifact-tab:hover{background:transparent;border:0;color:#493655}
 .reader-studio #mobile-reader-more,.reader-studio[data-share-path] #mobile-reader-more{width:44px;min-width:44px;min-height:44px;padding:0;display:flex;align-self:center;border:0;border-radius:0;background:transparent;color:#786b7e}
 .reader-studio #mobile-reader-more svg{width:22px;height:22px;fill:currentColor}
 .reader-studio .reader-progress{height:1px;background:transparent;opacity:.5}
 .reader-studio .reader-progress i{background:#b69665;box-shadow:none}
 .reader-studio .reader-controls{display:grid;grid-template-columns:1fr 44px minmax(74px,auto) 44px 1fr;gap:0;padding:4px 16px calc(4px + env(safe-area-inset-bottom));min-height:56px;border-top:1px solid #e8e1d8;background:#fffdf9;box-shadow:none}
 .reader-studio .reader-controls button{min-height:44px;font-size:12px;font-weight:400;color:#75697b;padding:8px 4px;border-radius:0;box-shadow:none;letter-spacing:.5px}
 .reader-studio #mobile-toc-toggle{grid-column:1;justify-self:start;gap:7px}
 .reader-studio #mobile-toc-toggle::before{content:"";width:13px;height:10px;border-top:1px solid currentColor;border-bottom:1px solid currentColor;background:linear-gradient(currentColor,currentColor) left center/9px 1px no-repeat}
 .reader-studio .reader-controls #previous-page,.reader-studio .reader-controls #next-page{font-size:0;color:#8a7b91}
 .reader-studio #previous-page{grid-column:2}
 .reader-studio #next-page{grid-column:4}
 .reader-studio #previous-page::before,.reader-studio #next-page::before{content:"";width:8px;height:8px;border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(225deg)}
 .reader-studio #next-page::before{transform:rotate(45deg)}
 .reader-studio #mobile-page-jump{grid-column:3;font-size:12px;font-weight:400;font-family:Georgia,"Times New Roman",serif;letter-spacing:1px;color:#63566b}
 .reader-studio .book{background:#f0edf1;padding-bottom:calc(64px + env(safe-area-inset-bottom))!important}
 body.reader-studio{background:#f0edf1}
 .reader-studio .mobile-sheet{padding:22px 22px calc(20px + env(safe-area-inset-bottom));border:0;border-top:1px solid #e8e1d8;border-radius:16px 16px 0 0;background:#fffdf9;box-shadow:0 -12px 48px #30233312}
 .reader-studio .mobile-sheet h2{font-family:"Songti SC","STSong","SimSun",serif;font-size:20px;font-weight:600;letter-spacing:1px}
 .reader-studio .mobile-sheet>header{border-bottom:1px solid #e8e1d8;margin-bottom:4px!important;padding-bottom:12px!important}
 .reader-studio .mobile-sheet>header button{border:0;background:transparent;color:#887b90;font-size:12px;padding:8px 0}
 .reader-studio .mobile-sheet-content{gap:0}
 .reader-studio .mobile-sheet .mobile-sheet-action{display:flex;align-items:center;justify-content:space-between;min-height:54px;margin:0;padding:12px 0;border:0;border-bottom:1px solid #eee8e0;border-radius:0;background:transparent;color:#594e61;font-size:14px;font-weight:400;box-shadow:none}
 .reader-studio .mobile-sheet-action::after{content:"›";color:#b1a4b6;font-size:19px;font-weight:400}
 .reader-studio .mobile-sheet-action:last-child{border-bottom:0}
 .reader-studio .toc{background:#fffdf9}
 .reader-studio .toc nav button{background:transparent;box-shadow:none;border-radius:0}
 .reader-studio #mobile-reader-hint{background:#fffdf9;color:#786b7e;border:1px solid #e8e1d8;box-shadow:0 4px 18px #30233308;border-radius:4px;font-size:11px}
 .reader-studio #mobile-reader-hint button{color:#80623d;font-size:11px}
 .reader-studio #mobile-zoom-restore{border-radius:4px;border-color:#e8e1d8;box-shadow:none;font-size:12px}
 .reader-studio button:focus-visible,.reader-studio a:focus-visible{outline:2px solid #9d7848;outline-offset:2px}
}

@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
 .reader-studio .reader-leading .back{display:none}
 .reader-studio .mobile-sheet .reader-workbench-return{color:#a34f4f}
}

/* Compact welcome: copy stays clear of the campus detail on touch screens. */
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
  body.report-studio .hero.hero-campus{display:block;min-height:0!important;padding:24px 0!important;margin:0 0 20px;max-width:none;border-radius:0;background:#f8f6f2}
  body.report-studio .hero-campus .hero-copy{width:100%;position:relative;z-index:1}
  body.report-studio .hero-campus .hero-identity{display:flex;margin-bottom:12px;gap:8px}
  body.report-studio .hero-campus .hero-identity[hidden]{display:none}
  body.report-studio .hero-campus .hero-identity .studio-logo{width:28px;height:28px}
  body.report-studio .hero-campus .hero-identity .eyebrow{font-size:14px}
  body.report-studio .hero-campus .hero-advisor{margin:0 0 10px;font-size:12px}
  body.report-studio .hero-campus h1{font:600 clamp(24px,6.3vw,28px)/1.4 "Microsoft YaHei",sans-serif;letter-spacing:0}
  body.report-studio .hero-campus .hero-subtitle{max-width:240px;width:76%;font-size:13px;margin:8px 0 0;line-height:1.7}
  body.report-studio .hero-campus .hero-subtitle span{display:block}
  body.report-studio .hero-campus .create-contact{margin-top:18px;width:164px;max-width:100%}
  body.report-studio .hero-campus .create-contact .hero-cta{width:100%;min-width:0;min-height:44px!important;padding:10px 16px!important}
  body.report-studio .hero-campus .campus-art{inset:auto 4px 10px auto;width:43%;height:104px;object-fit:cover;object-position:right center;opacity:.85;mask-image:linear-gradient(90deg,transparent,#000 28%);z-index:0}
  body.report-studio .hero-campus::after{display:none}
  body.report-studio .archive:not(.has-status-panel)>.folder-trigger{height:280px}
  body.report-studio .delivery-head .delivery-tools{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:center;gap:8px;width:100%;margin:0}
  body.report-studio .delivery-tools .report-search{grid-column:1;grid-row:1;width:100%;min-width:0;margin:0}
  body.report-studio .delivery-tools .folder-sound-toggle{grid-column:2;grid-row:1;min-height:46px;margin:0;padding:8px 10px;font-size:12px;white-space:nowrap}
}

@media(max-width:760px),(max-width:1024px) and (pointer:coarse){body.report-studio .delivery-tools .folder-sound-toggle{display:none!important}}

@media(max-width:760px),(max-width:1024px) and (pointer:coarse){
  body.report-studio .agent-brand .teacher-phone{display:none}
  body.report-studio .teacher-avatar{width:38px;height:38px;font-size:17px}
  body.report-studio .agent-brand strong{font-size:17px}
  body.report-studio .archive:first-child .folder-trigger.is-extracting .report-paper{transform:translateY(-110px) rotate(-1deg)}
}
