/* Approved mobile library design. Desktop presentation remains unchanged. */
.mobile-reader-actions,.mobile-help-entry{display:none}
.mobile-menu-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--heritage-gold-soft)}
.mobile-menu-tool{min-height:44px;border:1px solid var(--heritage-gold-soft);border-radius:7px;background:var(--panel);color:var(--text);font:14px var(--font-ui,system-ui,sans-serif)}
.mobile-content-fold>summary{display:none}
@media(min-width:701px){
 .mobile-content-fold{display:contents}
 .mobile-content-fold>summary{display:none}
}
@media(max-width:700px){
 :root{--mobile-top:60px;--mobile-bottom:76px}
 html{scroll-padding-top:76px}
 body.mobile-experience{overflow-x:clip}
 body.mobile-experience .main>.topbar{
  display:grid;grid-template-columns:40px minmax(0,1fr) 36px 40px!important;
  align-items:center;height:60px!important;min-height:60px!important;
  padding:5px 10px!important;gap:5px!important;
  background:linear-gradient(115deg,#163f26,#092b18)!important;color:#fff2d3;
  border-bottom:1px solid var(--heritage-gold);box-shadow:0 2px 5px #0c20131a;
 }
 body.mobile-home-active .main>.topbar{grid-template-columns:minmax(0,1fr) 36px 40px!important}
 body.mobile-experience .main>.topbar>.heritage-mobile-brand,
 body.mobile-home-active .main>.topbar>.heritage-mobile-brand{
  grid-column:2;grid-row:1;display:flex!important;justify-content:flex-start!important;
  align-items:center;gap:5px;width:auto!important;min-width:0;height:48px!important;
  padding:0;margin:0;border:0;background:none;color:#fff5dd;
  font:600 clamp(16px,4.5vw,20px)/1.1 var(--font-academic,Georgia,serif)!important;
  letter-spacing:-.025em!important;white-space:nowrap;
 }
 body.mobile-home-active .main>.topbar>.heritage-mobile-brand{grid-column:1}
 body.mobile-experience .main>.topbar>.heritage-mobile-brand>svg{width:35px;height:40px;flex:0 0 35px;max-height:40px}
 body.mobile-experience .main>.topbar>.top-actions{grid-column:3;grid-row:1;display:flex!important;gap:0;height:44px}
 body.mobile-home-active .main>.topbar>.top-actions{grid-column:2}
 body.mobile-experience .main>.topbar .top-actions .avatar{display:grid!important;place-items:center;width:34px;height:34px;flex:0 0 34px;border:1px solid #dbc17c;background:#285237;color:#fff2d3}
 body.mobile-experience .main>.topbar .heritage-mode-switch,
 body.mobile-experience .main>.topbar .heritage-profile-label{display:none!important}
 body.mobile-experience .main>.topbar>.mobile-menu{grid-column:4;grid-row:1;justify-self:end}
 body.mobile-home-active .main>.topbar>.mobile-menu{grid-column:3}
 body.mobile-experience .main>.topbar .mobile-menu>summary{width:40px!important;height:44px;min-height:44px!important;border:0!important;padding:8px!important;background:transparent;color:#f3d999;box-shadow:none;font-size:24px!important;line-height:1}
 body.mobile-experience .mobile-menu>summary>span{display:none}
 body.mobile-experience .mobile-menu[open]>nav{inset:66px 10px auto!important;width:auto!important;max-height:calc(100dvh - 160px - env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);padding:12px;gap:7px;background:var(--paper-grain),var(--panel);border:1px solid var(--heritage-gold);border-radius:10px;z-index:1100}
 body.mobile-experience .mobile-menu nav button[data-go]{margin:0;min-height:48px}
 body.mobile-experience .main>.topbar .breadcrumb{grid-column:1;grid-row:1;display:flex;width:40px;max-width:100%;overflow:hidden}
 body.mobile-experience .main>.topbar .breadcrumb>b,
 body.mobile-experience .main>.topbar .breadcrumb-origin{display:none}
 body.mobile-home-active .main>.topbar .breadcrumb{display:none!important}
 body.mobile-experience .main>.topbar .back-button{display:flex;width:40px;min-width:40px;height:44px;min-height:44px;background:transparent!important;color:#fff3d0;border:0;box-shadow:none;padding:9px!important}
 .mobile-experience .content{padding:14px 12px calc(94px + env(safe-area-inset-bottom))!important}
 /* Community already reserves the fixed navigation in its viewport height. */
 body.mobile-experience .content[data-page=social]{padding:0!important;min-height:0}

 /* Four reachable destinations; all other routes remain in the full menu. */
 body.mobile-experience #app>.mobile-nav{
  display:flex;align-items:stretch;justify-content:space-evenly;gap:5px;
  height:calc(76px + env(safe-area-inset-bottom));min-height:0;
  padding:6px 7px calc(6px + env(safe-area-inset-bottom));
  background:linear-gradient(120deg,#173e27,#0c2c1b);border-top:1px solid #bd9849;
  box-shadow:0 -2px 8px #0a211629;box-sizing:border-box;
 }
 body.mobile-experience #app>.mobile-nav::before{background-color:#123b21}
 body.mobile-experience #app>.mobile-nav button[data-go]{
  display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:2px;
  min-width:0;min-height:58px;padding:3px 2px;border:1px solid #b28c3f66;
  border-radius:7px;background:linear-gradient(135deg,#24523470,#0b2d1a44);color:#fff0cc;
 }
 body.mobile-experience #app>.mobile-nav button.active[data-go]{border-color:#e0bc66;box-shadow:inset 0 0 0 1px #ebce875c;background:#174728}
 body.mobile-experience #app>.mobile-nav button[data-go]>span:first-child{width:30px;height:30px;padding:5px;border:0;border-radius:5px;box-shadow:none;background-color:transparent}
 body.mobile-experience #app>.mobile-nav button.active[data-go]>span:first-child{box-shadow:none}
 body.mobile-experience #app>.mobile-nav button .mobile-nav-label{font:500 clamp(10px,2.8vw,12px)/1.25 var(--font-academic,Georgia,serif)!important;color:#fff1d0;white-space:nowrap}

 /* A small greeting keeps the approved companion while revealing study actions sooner. */
 .mobile-home-active .heritage-welcome{display:grid;grid-template-columns:minmax(0,1fr) 75px;min-height:0;height:82px;gap:8px;padding:0 1px 7px;margin:0}
 .mobile-home-active .heritage-welcome-copy{grid-column:1;grid-row:1;min-width:0;padding:0}
 .mobile-home-active .heritage-greeting{font-size:clamp(19px,5.5vw,23px);line-height:1.25;margin:0}
 .mobile-home-active .heritage-welcome h1{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mobile-home-active .heritage-welcome-copy>p:last-of-type,.mobile-home-active .heritage-divider{display:none}
 .mobile-home-active .heritage-welcome .nexo-companion{grid-column:2;grid-row:1;width:75px;max-width:75px;position:relative}
 .mobile-home-active .nexo-mascot-button,.mobile-home-active .nexo-mascot{width:75px;height:78px}
 .mobile-home-active .heritage-coach:not(:empty){position:absolute;right:0;top:100%;z-index:4;min-width:220px;padding:12px;background:var(--panel);border:1px solid var(--heritage-gold);box-shadow:0 3px 9px #0002}
 .mobile-home-active .heritage-welcome .learning-course-watermark{width:90px;height:90px;right:18%;opacity:.035}
 .mobile-home-active .heritage-home .resume-clarity{padding:20px 21px 18px!important;margin:0 0 12px;border-radius:5px!important}
 .mobile-home-active .resume-clarity::before{border-width:31px;border-image-width:31px}
 .mobile-home-active .resume-clarity-heading{margin-bottom:10px;gap:7px}
 .mobile-home-active .resume-clarity-heading h2{font-size:23px!important}
 .mobile-home-active .resume-clarity-heading svg{width:21px;height:21px}
 .mobile-home-active .resume-clarity-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:11px}
 .mobile-home-active .resume-clarity h3{font-size:20px;margin:2px 0 5px;line-height:1.25}
 .mobile-home-active .resume-folder{font-size:11px}
 .mobile-home-active .resume-stage{font-size:13px;margin:0 0 2px;line-height:1.45}
 .mobile-home-active .resume-clarity-layout>div>small:not(.resume-folder){font-size:11px}
 .mobile-home-active .resume-clarity-action{min-height:44px;font-size:16px!important;padding:10px 13px!important;border-radius:6px!important}
 .mobile-fold-resume{border-top:1px solid var(--edge);margin-top:12px;padding-top:2px}
 .mobile-fold-resume>summary{display:list-item;min-height:36px;padding:7px 2px;cursor:pointer;font:13px/1.5 var(--font-ui)}
 .mobile-fold-resume .resume-next{margin-top:7px;font-size:13px}
 .mobile-fold-resume .resume-clarity-progress{margin-top:12px}
 .mobile-home-active .heritage-primary-actions{display:grid;grid-template-columns:1fr!important;gap:0;margin:0 0 14px}
 .mobile-home-active .heritage-primary-actions>#nexo-start{
  display:flex;align-items:center;justify-content:space-between;min-height:49px;padding:11px 18px 11px 59px!important;
  border:1px solid #ba9849;border-radius:7px!important;clip-path:none;background:linear-gradient(115deg,#18472a,#0c301b);
  color:#fff3d5;font:600 18px/1.3 var(--font-academic)!important;box-shadow:inset 0 0 0 3px #123b21,inset 0 0 0 4px #c7a75a70,0 2px 4px #0c26121c;
 }
 .mobile-home-active .heritage-primary-actions>#nexo-start::before{inset:-1px auto -1px -1px;width:49px;border:0;clip-path:none;background:#123b21 url('/academic/library-book-spine.svg?v=296') center/100% 100% no-repeat}
 .mobile-home-active .heritage-primary-actions>#nexo-start>.heritage-ui-icon{position:absolute;left:14px;width:23px;height:24px;color:#f1d48b;z-index:1}
 .mobile-home-active .heritage-dashboard{gap:12px}
 .mobile-home-active .heritage-home .nexo-library{padding:0!important;border:0;background:none}
 .mobile-home-active .nexo-section-head{margin:0 0 10px!important;padding:0 0 6px!important;border:0}
 .mobile-home-active .nexo-section-head h2{font-size:22px}
 .mobile-home-active .nexo-folder-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}
 .mobile-home-active .nexo-folder-grid>.nexo-folder:not(.nexo-new-folder):nth-child(n+3){display:none}
 .mobile-home-active .nexo-folder-grid>.nexo-new-folder{grid-column:1/-1;min-height:65px;padding:12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
 .mobile-home-active .nexo-new-folder>span{width:26px;height:26px;margin:0}
 .mobile-home-active .nexo-new-folder>small{font-size:12px}
 .mobile-home-active .nexo-folder-cover.heritage-book{aspect-ratio:4/4.35;padding:9px 8px 9px 18px}
 .mobile-home-active .nexo-folder-cover.heritage-book .heritage-book-face{grid-template-rows:auto minmax(20px,1fr);padding:17px 4px 9px;gap:4px}
 .mobile-home-active .nexo-folder-cover.heritage-book .heritage-book-title{font-size:16px;min-height:0;max-height:3.9em;line-height:1.3;-webkit-line-clamp:3}
 .mobile-home-active .heritage-book-face .heritage-book-label,.mobile-home-active .heritage-book-face .heritage-book-foot,.mobile-home-active .heritage-book-rule{display:none}
 .mobile-home-active .heritage-book-symbol svg{max-height:43px;width:45px}
 .mobile-home-active .heritage-book-face .heritage-cover-emoji{font-size:28px}
 .mobile-help-entry{display:flex;justify-content:center;margin:14px 0 18px}
 .mobile-help-button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 17px;border:1px solid var(--heritage-gold);border-radius:22px;background:var(--panel);color:var(--text);font:15px var(--font-ui)}
 .mobile-help-button>span{display:grid;place-items:center;width:23px;height:23px;border:1px solid var(--heritage-gold);border-radius:50%;background:#143e24;color:#f4d888;font-weight:600}

 /* Equal columns, readable full labels below each cover, retained cover and options controls. */
 .mobile-experience .folder-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px 12px;align-items:stretch}
 .mobile-experience .folder-gallery .folder-tile{min-width:0;border-radius:6px;background:var(--panel);overflow:visible;box-shadow:none}
 .mobile-experience .folder-gallery .folder-cover.heritage-book{aspect-ratio:4/5;min-height:0;height:auto;flex:none;padding:9px 8px 11px 18px}
 .mobile-experience .folder-gallery .folder-cover.heritage-book .heritage-book-face{grid-template-rows:auto minmax(20px,1fr) auto;gap:5px;padding:21px 4px 9px}
 .mobile-experience .folder-gallery .folder-cover.heritage-book .heritage-book-title{font-size:clamp(14px,3.8vw,17px);line-height:1.28;min-height:0;max-height:5.12em;-webkit-line-clamp:4}
 .mobile-experience .folder-gallery .heritage-book-label{font-size:7px!important;padding:4px 1px;line-height:1.4;grid-row:3}
 .mobile-experience .folder-gallery .heritage-book-rule,.mobile-experience .folder-gallery .heritage-book-foot{display:none}
 .mobile-experience .folder-gallery .heritage-book-symbol{grid-row:2}
 .mobile-experience .folder-gallery .heritage-book-symbol svg{max-height:52px;width:54px}
 .mobile-experience .folder-gallery .folder-tile-body{padding:10px 9px 11px;gap:5px;display:flex;flex-direction:column;min-width:0}
 .mobile-experience .folder-gallery .folder-card-heading{display:flex;align-items:flex-start;gap:3px;min-width:0}
 .mobile-experience .folder-gallery .folder-card-heading>h3{font:600 14px/1.4 var(--font-academic)!important;flex:1;min-width:0;max-width:100%;margin:0;overflow-wrap:anywhere;word-break:normal}
 .mobile-experience .folder-gallery .folder-card-menu{flex:none}
 .mobile-experience .folder-gallery .folder-card-menu>summary{display:grid;place-items:center;width:30px;height:36px;min-height:36px;font-size:22px;padding:0;list-style:none}
 .mobile-experience .folder-gallery .folder-tile-body>p{font-size:12px;line-height:1.5;margin:3px 0 8px;color:var(--quiet)}
 .mobile-experience .folder-gallery .folder-tile-body>.actions{margin-top:auto}
 .mobile-experience .folder-gallery .folder-tile-body>.actions>.btn{width:100%;min-height:42px;padding:7px;font-size:14px}
 .mobile-experience .folder-gallery>.empty{grid-column:1/-1}
 .mobile-experience .library-toolbar{padding:0;margin:0 0 15px}
 .mobile-experience #library-search{min-height:46px;border-radius:22px;padding:10px 15px;font-size:16px}
 .mobile-experience .library-toolbar>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-experience .content[data-page=materias]>.heading{margin-bottom:12px;gap:10px}
 .mobile-experience .content[data-page=materias]>.heading>div>p{font-size:13px;margin-bottom:0}
 .mobile-experience .content[data-page=materias]>.heading>.actions>.btn{min-height:44px}

 /* Reading tools stay available in a compact disclosure, outside the reading page. */
 body.mobile-reading-active .main>.topbar{grid-template-columns:minmax(0,1fr) 84px 40px!important}
 body.mobile-reading-active .main>.topbar>.heritage-mobile-brand,
 body.mobile-reading-active .main>.topbar>.top-actions{display:none!important}
 body.mobile-reading-active .main>.topbar>.mobile-menu{grid-column:3}
 body.mobile-reading-active .main>.topbar .breadcrumb{grid-column:1;width:auto;gap:4px;color:#fff2d3}
 body.mobile-reading-active .main>.topbar .breadcrumb>b{display:block;color:inherit;font:600 15px/1.3 var(--font-ui);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .mobile-reader-actions{display:flex;align-items:center;grid-column:2;grid-row:1;gap:0}
 .mobile-reader-actions>button{display:grid;place-items:center;width:42px;height:44px;padding:7px;border:0;border-radius:6px;background:transparent;color:#f8e7b5;font:600 21px var(--font-academic)}
 .mobile-reader-actions .heritage-ui-icon{width:23px;height:23px}
 .mobile-reading-active .content[data-page=caderno]{padding:12px 13px calc(94px + env(safe-area-inset-bottom))!important}
 .mobile-reading-active .notebook-main{padding:0!important;border:0!important;background:transparent!important;box-shadow:none}
 .mobile-fold-reading{margin-bottom:12px;border:1px solid var(--heritage-gold-soft);border-radius:7px;background:var(--panel);min-width:0}
 .mobile-fold-reading>summary{display:list-item;cursor:pointer;min-height:44px;padding:11px 14px;font:14px/1.5 var(--font-ui);color:var(--text)}
 .mobile-fold-reading[open]{padding:0 12px 12px}
 .mobile-fold-reading[open]>summary{margin:0 -12px 10px;border-bottom:1px solid var(--edge)}
 .mobile-fold-reading .heading h1{font-size:21px}.mobile-fold-reading .heading p{font-size:12px}
 .mobile-fold-reading .heading .actions{gap:7px}.mobile-fold-reading .heading .actions>.btn{font-size:13px;padding:8px}
 .mobile-fold-reading .study-reading-options{margin:10px 0}
 .mobile-fold-reading .coach-progress{padding:12px!important;font-size:13px}
 .mobile-fold-reading .study-resource-tabs{margin-bottom:12px}
 .mobile-fold-reading .mobile-section-picker{display:none}
 .mobile-reading-active .summary-reader-toolbar{margin:0 0 12px;padding:0;gap:8px}
 .mobile-reading-active .summary-reader-toolbar>.btn{font-size:13px;padding:7px 10px;min-height:40px}
 .mobile-reading-active .summary-reader-toolbar>span{font-size:12px;color:var(--quiet)}
 .mobile-reading-active .summary-reader-document,.mobile-reading-active .study-page{padding:5px 1px 16px!important;border:0;background:transparent;box-shadow:none;min-width:0;max-width:100%}
 .mobile-reading-active .summary-reader-document>h1,.mobile-reading-active .study-page>h1{font-size:clamp(28px,7.5vw,35px)!important;margin:6px 0 13px;line-height:1.2}
 .mobile-reading-active .summary-reader-document>.summary-reader-subject{font-size:12px;margin:0 0 5px;color:var(--quiet)}
 .mobile-reading-active .summary-reader-document>.link{font-size:13px;margin:0 0 8px;min-height:36px}
 .mobile-reading-active .summary-reading-estimate{font-size:12px;line-height:1.5}
 .mobile-reading-active .guided-reading{margin-top:15px;min-width:0}
 .mobile-reading-active .guided-reading-head{gap:8px;margin-bottom:12px}
 .mobile-reading-active .guided-reading-head>small{font-size:11px;line-height:1.5}
 .mobile-reading-active .guided-reading>h2{font-size:21px;margin:15px 0 10px}
 .mobile-reading-active .summary-reader-body{padding:0!important;font-size:var(--reading-font,18px)!important;line-height:var(--reading-spacing,1.75)!important;overflow-wrap:anywhere}
 .mobile-reading-active .guided-note{display:block;margin-top:18px;padding:14px;border:1px solid var(--heritage-gold-soft);border-radius:7px;background:var(--panel);font-size:14px}
 .mobile-reading-active .guided-note textarea{display:block;width:100%;box-sizing:border-box;min-height:96px;margin-top:9px;border:1px solid var(--edge);border-radius:9px;background:var(--field);color:var(--text);padding:11px;font-size:16px}
 .mobile-reading-active .guided-reading>nav.actions{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.6fr);gap:8px;margin-top:18px}
 .mobile-reading-active .guided-reading>nav.actions>.btn{min-width:0;min-height:48px;font-size:14px;white-space:normal;padding:10px}

 /* A real viewport-aware chat keeps the composer above the virtual keyboard. */
 body.mobile-professor-active{overflow:hidden}
 body.mobile-professor-active .app>.main{position:fixed;top:var(--mobile-viewport-top,0px);left:0;right:0;width:100%;height:var(--mobile-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body.mobile-professor-active .main>.topbar{position:relative;top:auto;flex:0 0 60px;grid-template-columns:minmax(0,1fr) 36px 40px!important}
 body.mobile-professor-active .main>.topbar>.heritage-mobile-brand{display:none!important}
 body.mobile-professor-active .main>.topbar>.top-actions{grid-column:2}
 body.mobile-professor-active .main>.topbar>.mobile-menu{grid-column:3}
 body.mobile-professor-active .main>.topbar .breadcrumb{grid-column:1;width:auto;gap:4px}
 body.mobile-professor-active .main>.topbar .breadcrumb>b{display:block;color:#fff2d3;font:600 16px/1.3 var(--font-academic);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.mobile-professor-active .content[data-page=professor]{display:flex;flex-direction:column;flex:1 1 0;min-height:0;overflow:hidden;padding:0 0 calc(76px + env(safe-area-inset-bottom))!important}
 body.mobile-professor-active .content>.heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
 body.mobile-professor-active .professor-chat{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden;max-width:none;margin:0;border:0;border-radius:0;background:var(--panel);box-shadow:none}
 body.mobile-professor-active .professor-chat-head{display:none}
 body.mobile-professor-active .professor-conversation{flex:1 1 0;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding:16px 13px;gap:14px;background:var(--paper-grain),var(--page)}
 body.mobile-professor-active .professor-message{max-width:93%;padding:12px 14px;border-radius:16px;border:1px solid var(--edge);box-shadow:none;font-size:16px;line-height:1.6}
 body.mobile-professor-active .professor-message.student{align-self:flex-end;border-radius:16px 16px 4px 16px}
 body.mobile-professor-active .professor-message.teacher{align-self:flex-start;border-radius:16px 16px 16px 4px}
 body.mobile-professor-active .professor-message>strong{font-size:11px;letter-spacing:.02em}
 body.mobile-professor-active .professor-form{display:flex;flex-direction:column;flex:0 0 auto;min-height:0;max-height:60%;overflow-y:auto;overscroll-behavior:contain;padding:8px 10px 10px;gap:6px;border-top:1px solid var(--heritage-gold-soft);background:var(--panel)}
 .mobile-fold-professor>summary{display:list-item;min-height:36px;padding:7px 3px;font-size:12px;line-height:1.5;cursor:pointer;color:var(--quiet)}
 .mobile-fold-professor .source-quiz{margin:8px 0;padding:14px!important}
 .mobile-professor-active .professor-compose{display:flex;align-items:flex-end;gap:8px;margin:0;min-width:0}
 .mobile-professor-active .professor-compose .professor-upload{display:grid;place-items:center;position:relative;flex:0 0 42px;width:42px;height:44px;padding:0;border:1px solid var(--heritage-gold-soft);border-radius:50%;background:var(--panel);color:var(--accent-ink);font-size:27px;line-height:1}
 .mobile-professor-active .professor-compose textarea{display:block;flex:1 1 0;min-width:0;width:100%;max-width:100%;min-height:44px;max-height:130px;padding:10px 13px;border:1px solid var(--heritage-gold-soft);border-radius:21px;background:var(--field);color:var(--text);font:16px/1.45 var(--font-ui);resize:vertical;box-sizing:border-box}
 .mobile-professor-active .professor-compose>button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:8px;border-radius:50%!important;clip-path:none;border:1px solid var(--heritage-gold);font-size:20px;line-height:1}
 .mobile-professor-active .professor-attachments:empty{display:none}
 .mobile-professor-active .professor-form>.professor-hint{font-size:11px;line-height:1.4;margin:0;padding:0 3px}
 .mobile-keyboard-visible body.mobile-experience #app>.mobile-nav{display:none!important}
 .mobile-keyboard-visible body.mobile-professor-active .content[data-page=professor]{padding:0!important}
 .mobile-keyboard-visible .mobile-professor-active .professor-form{padding-bottom:8px}
 .mobile-keyboard-visible.mobile-composer-focused .mobile-fold-professor,.mobile-keyboard-visible.mobile-composer-focused .professor-form>.professor-hint{display:none}
 .mobile-keyboard-visible .floating-notebook-launcher{visibility:hidden}
 .mobile-keyboard-visible body.mobile-experience:not(.mobile-professor-active) .content{padding-bottom:24px!important}
 :root[data-theme=dark] body.mobile-experience .mobile-content-fold{background:var(--panel);color:var(--text)}
 @media(max-width:359px){
  body.mobile-experience .main>.topbar{gap:2px!important;padding-inline:7px!important}
  body.mobile-experience .main>.topbar>.heritage-mobile-brand{font-size:16px!important}
  body.mobile-experience .main>.topbar>.heritage-mobile-brand>svg{width:29px;flex-basis:29px;height:35px}
  .mobile-experience .folder-gallery{gap:12px 9px}
  .mobile-home-active .heritage-home .resume-clarity{padding:19px 19px 16px!important}
  body.mobile-experience #app>.mobile-nav{gap:3px;padding-inline:5px}
 }
}

/* On-demand illustrated guide. Only the displayed image is loaded. */
#mobile-help-dialog{width:min(680px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 30px);margin:auto;padding:0;border:1px solid var(--heritage-gold);border-radius:10px;background:var(--panel);color:var(--text);box-shadow:0 14px 70px #0007;overflow:hidden}
#mobile-help-dialog[open]{display:flex;flex-direction:column}
#mobile-help-dialog::backdrop{background:#071a13a8}
#mobile-help-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px 12px;border-bottom:1px solid var(--heritage-gold-soft);flex:none}
#mobile-help-dialog header small{font:11px/1.5 var(--font-ui);color:var(--quiet)}
#mobile-help-dialog h2{font:600 23px/1.25 var(--font-academic);margin:3px 0 0}
.mobile-help-close{width:44px;height:44px;flex:none;border:1px solid var(--heritage-gold-soft);border-radius:50%;font-size:28px;line-height:1;color:var(--text);background:var(--panel)}
.mobile-help-steps{display:flex;justify-content:center;gap:6px;padding:12px;flex:none}
.mobile-help-steps>button{width:35px;height:36px;min-width:30px;border:1px solid var(--heritage-gold-soft);border-radius:6px;background:var(--panel);color:var(--text);font:600 14px var(--font-ui)}
.mobile-help-steps>[aria-current=step]{background:#123b21;color:#ffe4a5;border-color:#bc9949;box-shadow:inset 0 0 0 2px #bc994940}
.mobile-help-scroll{flex:1;min-height:0;padding:0 16px 16px;overflow:auto;overscroll-behavior:contain}
.mobile-help-scroll h3{font:600 21px/1.3 var(--font-academic);margin:5px 0 8px}
.mobile-help-scroll p{font:14px/1.65 var(--font-ui);margin:0 0 9px}
.mobile-help-scroll .link{min-height:40px}
.mobile-help-image{overflow:auto;max-height:none;border:1px solid var(--heritage-gold-soft);border-radius:5px}
.mobile-help-image>img{display:block;width:100%;height:auto;max-width:none}
.mobile-help-image.is-enlarged>img{width:850px;max-width:none}
#mobile-help-dialog>footer{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--heritage-gold-soft);background:var(--panel);flex:none}
#mobile-help-dialog>footer>.btn{min-height:44px;flex:1;min-width:0}
@media(max-height:480px){
 #mobile-help-dialog{max-height:calc(100dvh - 12px)}
 #mobile-help-dialog>header{padding:6px 10px;gap:6px}
 #mobile-help-dialog header small{font-size:10px;line-height:1.1}
 #mobile-help-dialog h2{font-size:17px;line-height:1.2;margin-top:2px}
 #mobile-help-dialog .mobile-help-close{width:32px;height:32px;min-height:32px;padding:0;font-size:24px}
 #mobile-help-dialog .mobile-help-steps{padding:4px 8px;gap:5px}
 #mobile-help-dialog .mobile-help-steps>button{width:28px;height:28px;min-width:28px;min-height:28px;padding:2px;font-size:12px}
 #mobile-help-dialog>footer{padding:6px 10px;gap:8px}
 #mobile-help-dialog>footer>.btn{height:36px;min-height:36px;padding:4px 8px;font-size:14px;line-height:1.2;box-sizing:border-box}
}
@media(max-width:700px) and (max-height:480px){
 body.mobile-professor-active .professor-conversation{padding-block:0}
 body.mobile-professor-active .professor-form{max-height:100%;padding:4px 8px;gap:3px}
 .mobile-professor-active .professor-form>details,.mobile-professor-active .professor-compose{flex-shrink:0}
 .mobile-professor-active .professor-form>.professor-hint{display:none}
 .mobile-fold-professor>summary{min-height:28px;padding:4px 3px;font-size:11px;line-height:1.4}
}
@media(prefers-reduced-motion:reduce){.mobile-experience *{scroll-behavior:auto!important}}
