/* One mobile reading-room viewport: three rotating quotes, then the librarian. */
@media(max-width:760px){
 .portable-home{height:100dvh;min-height:0;display:flex;flex-direction:column;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom)}
 .portable-masthead{height:58px;flex:0 0 58px;margin:0 20px}
 .portable-reading-room{width:100%;max-width:560px;height:auto;min-height:0;flex:1;display:flex;flex-direction:column;padding:10px 22px 8px;box-sizing:border-box;gap:16px}
 .portable-quote-field{position:relative;inset:auto;order:0;flex:1;min-height:0;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;align-items:center}
 .portable-quote-field .portable-handwritten{display:none;position:relative;inset:auto;width:100%;max-width:none;transform:none;text-align:left}
 .portable-quote-field .portable-note-1,.portable-quote-field .portable-note-2,.portable-quote-field .portable-note-3{display:block}
 .portable-quote-field .portable-note-2{text-align:center}
 .portable-quote-field .portable-note-3{text-align:right}
 .portable-quote-field .portable-handwritten blockquote{font-size:clamp(14px,2.4dvh,19px);line-height:1.3;letter-spacing:-.3px}
 .portable-quote-field br{display:none}
 .portable-hub{position:relative;inset:auto;transform:none;order:1;width:100%;min-width:0;flex:0 0 auto}
 .portable-avatar-halo{width:clamp(110px,25dvh,205px);height:clamp(110px,25dvh,205px)}
 .portable-library-field{width:100%;max-width:330px;margin-top:20px}
 .portable-library-select{min-height:44px;padding:9px 12px;font-size:13px}
 .library-picker-options{top:auto;bottom:calc(100% + 6px);max-height:40dvh;overflow-y:auto}
 .portable-home-status{margin:3px 0 0;min-height:0;font-size:10px;line-height:1.3}
 .portable-home-status:empty{display:none}
 .portable-footer{display:none}
 .portable-footer>span{display:none}
 .quote-pause{min-height:30px;padding:4px 0}
}
@media(max-width:760px) and (max-height:480px){
 .portable-masthead{height:45px;flex-basis:45px}
 .portable-reading-room{flex-direction:row;gap:24px}
 .portable-quote-field{flex:1.3}
 .portable-hub{flex:1;justify-content:center}
 .portable-avatar-halo{width:100px;height:100px}
 .portable-quote-field .portable-handwritten blockquote{font-size:13px}
}
/* Compact mobile profile and header leave the conversation most of the screen. */
@media(max-width:720px){
 .with-library-card .library-index-card{min-height:66px;padding:7px 38px 7px 68px}
 .with-library-card .library-card-photo{left:9px;top:8px;width:48px;height:50px}
 .with-library-card .library-photo-trigger{left:9px;top:8px;width:48px;height:50px}
 .with-library-card .library-index-card h2{font-size:15px;margin:0 0 3px;line-height:1.2}
 .with-library-card .library-index-card dl{font-size:10px;line-height:1.2}
 .with-library-card .library-index-card dl div{padding:1px 0;gap:4px}
 .with-library-card .library-index-card dt{font-size:10px;min-width:62px}
 .with-library-card .library-card-close{top:5px;right:5px;min-width:32px;min-height:32px}
 .librarian-widget-header{padding:5px 10px;gap:8px}
 .librarian-widget-avatar{width:30px;height:30px;flex-basis:30px;border-radius:9px}
 .librarian-widget-title{font-size:16px}
 .librarian-widget-subtitle{font-size:10px;line-height:1.2}
 .librarian-widget-messages{padding:12px 10px 10px}
 .librarian-widget-composer{padding:5px 7px;margin:0 8px calc(7px + env(safe-area-inset-bottom));max-width:calc(100% - 16px)}
 .librarian-widget-input{min-height:40px;max-height:90px;font-size:16px}
}
