/* Mobile reading experience. Desktop changes are limited to shared, requested
   corrections (Office returns, public/private details, alphabet filtering). */
.phone-only,.mobile-browse-tools,.membership-mobile-toggle,.membership-mobile-cabinet,.hall-portrait-more{display:none}
.membership-details{display:contents;min-width:0;width:100%}
/* Live notices have no decorative seal: their text must not occupy its narrow column. */
[data-live-reader-messages] .reader-realm-message{grid-template-columns:minmax(0,1fr) auto;align-items:start}
[data-live-reader-messages] .reader-realm-message>div{grid-column:1;min-width:0;overflow-wrap:break-word}
[data-live-reader-messages] .reader-realm-message>button{grid-column:2;justify-self:end}
@media(max-width:760px){
 [data-live-reader-messages] .reader-realm-message{grid-template-columns:minmax(0,1fr)}
 [data-live-reader-messages] .reader-realm-message>button{grid-column:1;justify-self:start;min-height:44px}
}
.membership-details>:not(.membership-insignia-art):not(.membership-card-number){position:relative;z-index:2}
.membership-details>.eyebrow{text-align:center}
.membership-realm-crest-parade{grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,33rem);justify-self:center;margin-inline:auto}
.membership-realm-crest-parade button{min-height:10rem;padding-bottom:1.7rem}
.membership-realm-crest-parade img{height:8rem}
.membership-promise-list>li{grid-template-columns:2rem minmax(0,1fr);gap:.75rem}
.membership-promise-list>li>.house-rule-flourish{width:2rem;height:2.5rem;border:0;border-radius:0;background:none;color:#9c783e}
.house-rule-flourish svg{width:100%;height:100%}
.membership-footer-callout>span{border:0;background:none}
.membership-footer-callout>span>img{width:100%;height:100%;object-fit:contain}
@media(min-width:1101px){
 .hall-entrance:has(.hall-curator){grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(24px,3vw,48px);width:100%;max-width:none;margin-inline:0;padding:clamp(24px,3vw,46px)}
 .hall-entrance:has(.hall-curator)>div{max-width:none;min-width:0;width:100%}
 .hall-entrance:has(.hall-curator) h1{font-size:clamp(3.5rem,5.3vw,8.5rem);line-height:1.04;margin:.65rem 0 1.4rem}
 .hall-entrance:has(.hall-curator) .eyebrow{font-size:clamp(.8rem,1.1vw,1.5rem);line-height:1.5}
 .hall-entrance:has(.hall-curator) p:not(.eyebrow){font-size:clamp(1.1rem,1.65vw,2.25rem);line-height:1.6}
 .hall-entrance:has(.hall-curator) nav{gap:.7rem;flex-wrap:wrap}
 .hall-entrance:has(.hall-curator) nav a{font-size:clamp(1rem,1.15vw,1.5rem);padding:.85rem 1.1rem}
 .hall-entrance .hall-curator{max-width:none;align-self:center;transform:none}
 .membership-realm-cabinet{padding:1.5rem}
 .membership-realm-cabinet-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,33rem);grid-template-rows:auto auto 1fr;gap:.35rem 2rem;align-items:start;border-bottom:1px solid #8b5d31;padding-bottom:1.2rem;margin-bottom:1.2rem}
 .membership-realm-cabinet-heading>.eyebrow{grid-column:1;grid-row:1;margin:0}
 .membership-realm-cabinet-heading>h2{grid-column:1;grid-row:2;margin:0}
 .membership-realm-cabinet-lede{display:contents}
 .membership-realm-introduction{grid-column:1;grid-row:3;max-width:48ch;margin:.65rem 0 0}
 .membership-realm-crest-parade{grid-column:2;grid-row:1 / span 3;margin:0;align-self:start}
}
.shelf-letter-basis{display:flex;align-items:center;gap:.45rem;font-size:.8rem}
.shelf-letter-basis select{width:auto;min-width:5rem}
.alphabet-jump{flex-wrap:wrap;gap:.6rem}
.shelf-letter-buttons{display:flex;flex-wrap:wrap;gap:.25rem;min-width:0}
.alphabet-jump-button[aria-pressed=true]{outline:2px solid #ffe2a1;outline-offset:1px}
.filter-chip{border:1px solid #aa8749;border-radius:1rem;padding:.3rem .65rem;background:#16332b;color:#ffe6b2;font-size:.8rem;max-width:100%;overflow-wrap:anywhere}
.vault-quick-confirm{width:min(92vw,28rem);max-height:calc(100dvh - 2rem);overflow:auto;background:#f8ecd0;color:#23190e;border:1px solid #b98d47;border-radius:12px;padding:1.25rem}
.vault-quick-confirm::backdrop,.mobile-navigation-dialog::backdrop{background:#000a}
.vault-quick-confirm>div{display:flex;gap:.75rem;flex-wrap:wrap}
.vault-state-actions{justify-content:center;text-align:center}
.vault-essential-explanation summary{cursor:pointer;font-weight:bold;padding:.5rem 0}
.vault-art-title{display:none;text-align:center;color:#ffe3a5;font-size:clamp(2rem,5vw,4rem);text-shadow:0 3px 6px #000}
.vault-door-graphic{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.2rem}
.public-content-notes summary{cursor:pointer;font-weight:bold}
.visit-insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem;margin-top:1.2rem}
.visit-insights article{padding:1rem;border-top:1px solid #bb9554;background:#10251a77;min-width:0}
.visit-insights h3{font-size:.95rem;margin:0 0 .7rem}.visit-insights strong{font-size:2rem;color:#ffe0a0}.visit-insights p{margin:.5rem 0}.visit-insights small,.visit-insight-note{font-size:.8rem;line-height:1.5;color:#d7c8a6}.visit-trend{font-weight:bold}
.mobile-activity-content{display:contents}
.membership-preview-dialog{width:min(95vw,58rem);max-height:calc(100dvh - 1.5rem);overflow:auto;overscroll-behavior:contain}
.membership-dialog-close{position:sticky;top:0;z-index:3;display:flex;justify-content:flex-end}
.tier-preview-identity{display:flex;align-items:center;gap:1rem;margin-block:1rem}
.tier-preview-identity>img{width:5rem;height:6rem;object-fit:contain}
.tier-preview-identity>div{display:grid;gap:.35rem;min-width:0}
.tier-preview-room{margin-top:1rem;padding:1rem;background:linear-gradient(#08131066,#081310bb),var(--sample-room) center/cover;border:1px solid #ae904e;color:#ffe5b1}
.tier-preview-room h3,.tier-preview-room p{text-shadow:0 2px 3px #000}
.tier-preview-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.tier-preview-books article{display:flex;flex-direction:column;gap:.5rem;min-width:0;background:#081713dd;padding:.65rem}
.tier-preview-books img{height:clamp(7rem,24vw,13rem);max-width:100%;object-fit:contain}
.tier-preview-books strong{font-size:.85rem}
.tier-preview-books label{margin-top:auto;font-size:.8rem}
.tier-preview-books select{width:100%;min-width:0;font-size:.8rem}
.tier-preview-realm-picker{display:grid;gap:.4rem}
.unfinished-business-layout:has(>.series-bucket-card:only-child){grid-template-columns:minmax(0,1fr)}
@media (max-width:760px), (max-width:1100px) and (max-height:600px){
 html{scroll-padding-top:5rem}
 .phone-only{display:block}
 .desktop-only,.phone-orientation-tip{display:none!important}
 .topbar{position:relative!important;display:flex!important;flex-direction:row!important;align-items:center;gap:.7rem;padding:.6rem .75rem;flex-wrap:nowrap!important;min-height:0}
 .topbar .main-nav{display:none!important}
 .topbar .brand{flex:1;min-width:0;width:auto!important;justify-content:flex-end!important}
 .topbar .brand-mark{width:2.5rem;height:2.5rem}
 .topbar .brand-mark img{width:100%;height:100%;object-fit:contain}
 .topbar .brand small{display:none}
 .topbar .reader-account-slot{margin:0;max-width:100%;min-width:0}
 .mobile-main-menu{display:flex;align-items:center;gap:.35rem;min-height:44px;padding:.5rem;border:1px solid #a88b52;background:#102722;color:#ffe5ad;border-radius:5px}
 .mobile-main-menu>span:first-child{font-size:1.4rem}
 .mobile-navigation-dialog{width:min(92vw,27rem);max-height:calc(100dvh - 1.2rem);overflow:auto;margin:auto;background:#0d2521;color:#ffe5ad;border:1px solid #b58e4d;padding:1rem;border-radius:10px}
 .mobile-navigation-dialog header{display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;top:-1rem;background:#0d2521;padding-block:.5rem;z-index:1}
 .mobile-navigation-dialog nav{display:grid;margin-block:.6rem}
 .mobile-navigation-dialog nav a{padding:.75rem .4rem;border-bottom:1px solid #ba975947;text-decoration:none;min-height:44px}
 .mobile-landscape-hint{display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.75rem;color:#dfc890;background:#10211d;padding:.3rem}
 .mobile-landscape-hint button{padding:.25rem .5rem;background:transparent;border:0;color:inherit;font-size:1rem}
 .library-layout{display:block!important;width:100%;padding:.6rem;min-width:0}
 .phone-shelf-command-bar{display:none!important}
 .library-results{width:100%;max-height:none!important;overflow:visible!important;min-width:0}
 .shelf-results-stage{display:block!important}
 .shelf-vault-top-band{position:static!important;display:block!important;width:100%!important;margin:0!important;padding:0!important}
 .shelf-vault-introduction{min-height:0!important;height:auto!important;padding:.8rem!important;background:#102923d9!important}
 .shelf-vault-formal{display:flex!important;flex-direction:column;gap:.5rem!important;align-items:stretch;padding:0!important}
 .shelf-page-title{display:block!important;position:static!important;text-align:left!important;padding:0!important}
 .shelf-page-title h1{font-size:2rem!important;margin:0!important}
 .shelf-page-title>p{display:none}
 .shelf-vault-state{position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:none!important;min-height:0!important;display:flex!important;align-items:center;justify-content:space-between;gap:.4rem;padding:.4rem .6rem!important;border:1px solid #b7945744!important;background:#091c18!important}
 .shelf-vault-state>div{min-width:0}
 .shelf-vault-state strong{font-size:.75rem!important}
 .shelf-vault-state p,.shelf-vault-note,.shelf-inspector{display:none!important}
 .shelf-vault-state .primary-link{padding:.45rem .6rem;font-size:.75rem;min-height:36px;white-space:normal}
 .shelf-vault-lock{font-size:1rem!important}
 .shelf-command-header{position:sticky!important;top:0!important;z-index:20;margin:0 0 .75rem!important;padding:.5rem!important;background:#0c201cf5;backdrop-filter:blur(10px);border:1px solid #a2814544;max-height:none!important}
 .mobile-browse-tools{display:grid;gap:.5rem}
 .mobile-browse-tools>label{display:grid;gap:.25rem;font-size:.8rem}
 .mobile-browse-tools input,.mobile-browse-tools select{width:100%;min-width:0;font-size:16px;height:2.6rem}
 .mobile-browse-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.55rem;align-items:end}
 .mobile-browse-actions>label{display:grid;gap:.2rem;font-size:.75rem}
 .mobile-browse-actions>button{min-height:42px}
 .shelf-applied-filters{display:flex;flex-wrap:wrap;gap:.35rem;max-height:5rem;overflow:auto}
 .shelf-applied-filters:empty{display:none}
 .results-header{padding:.3rem 0!important;min-height:0!important;display:block!important}
 .results-header h2{display:none}
 .shelf-result-statement{font-size:.7rem!important}
 .shelf-command-header>.shelf-toolbar,.shelf-command-header>.owner-format-filter{display:none!important}
 .shelf-command-header .alphabet-jump{display:flex!important;flex-wrap:nowrap!important;align-items:center;padding:.3rem 0!important;background:none!important;border:0!important}
 .shelf-letter-basis{margin-bottom:0;justify-content:flex-start;display:flex!important;flex-direction:column;gap:.1rem;font-size:.65rem}
 .shelf-letter-basis select{height:2rem;font-size:.8rem;background:#eadebb}
 .shelf-letter-buttons{flex:1;flex-wrap:nowrap;overflow-x:auto;padding:.2rem 0 .5rem;scrollbar-width:thin}
 .shelf-letter-buttons button{flex:0 0 2rem;min-height:2rem;font-size:.8rem}
 .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.7rem!important;width:100%!important;padding:0!important}
 .book-card{min-width:0!important;max-width:none!important;width:100%!important;min-height:0!important;border-radius:6px!important;padding:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 .book-card-cover-link{width:100%!important;margin:0!important;padding:0!important;display:block!important}
 .book-card .card-cover{aspect-ratio:2/3!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;transform:none!important;border:0!important}
 .book-card .card-cover img{width:100%!important;height:100%!important;object-fit:contain!important}
 .book-card .card-body{padding:.4rem!important;min-height:0!important;display:block!important}
 .book-card .book-card-info-heading h3{font-size:.85rem!important;line-height:1.2;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .book-card .book-card-info-heading p,.book-card-info-metadata,.book-card-dossier,.book-card .vault-card-labels,.shelf-owner-reread,.book-card-info-heading .dnf-badge{display:none!important}
 .book-card .reader-card-preview-controls{position:static!important;transform:none!important;min-height:40px!important;width:100%!important;margin:auto 0 0!important;font-size:.75rem!important;border-radius:0!important}
 .vault-series-placeholder{min-height:0!important;aspect-ratio:2/3;padding:.6rem!important;font-size:.8rem}
 .filter-panel{display:none!important}
 .filter-panel.mobile-open{display:block!important;position:fixed!important;inset:.5rem!important;width:auto!important;max-height:calc(100dvh - 1rem)!important;overflow-y:auto!important;z-index:1001!important;padding:1rem!important}
 .mobile-filter-heading,.mobile-secondary-filters,.mobile-filter-actions{display:flex!important;flex-wrap:wrap;gap:.7rem}
 .mobile-filter-heading{position:sticky;top:-1rem;background:#f4e6c8;z-index:2;padding:.5rem;justify-content:space-between;color:#261b12}
 .filter-panel .mobile-secondary-filters>.field{flex:1 1 10rem}
 .filter-panel .mobile-filter-actions{position:sticky;bottom:-1rem;background:#f4e6c8;padding:.6rem;justify-content:space-between}
 .shelf-sidebar-heading{display:none}
 .shelf-filter-backdrop.open{display:block!important;position:fixed;inset:0;background:#000a;z-index:1000}
 .book-detail{width:100%!important;padding:.7rem!important;min-width:0}
 .book-detail-nav{display:flex!important;gap:.5rem;flex-wrap:wrap}
 .detail-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:.85rem!important;gap:1rem!important;min-width:0}
 .detail-hero .large-cover{width:min(45vw,10rem)!important;height:auto!important;aspect-ratio:2/3;min-height:0!important;justify-self:center}
 .detail-hero .detail-intro{min-width:0}
 .detail-intro h1{font-size:clamp(1.6rem,6vw,2.4rem)!important;line-height:1.1}
 .detail-intro>.eyebrow{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.7rem!important}
 .detail-stat-grid,.character-spotlight{display:flex!important;flex-wrap:wrap;gap:.4rem .8rem!important;margin:.65rem 0!important}
 .detail-stat-grid>.quick-stat,.character-spotlight>div{display:inline!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;width:auto!important;text-align:left!important}
 .detail-stat-grid .quick-stat>span,.character-spotlight span{display:inline!important;font-size:.75rem!important;margin-right:.25rem}
 .detail-stat-grid .quick-stat>strong,.character-spotlight strong{display:inline!important;font-size:.85rem!important}
 .detail-grid{display:flex!important;flex-direction:column;gap:.75rem!important}
 .detail-panel{padding:.75rem!important;min-width:0!important;width:100%!important;align-self:stretch!important;box-sizing:border-box}
 .detail-panel h2{margin:.15rem 0 .5rem!important;font-size:1.1rem}
 .detail-panel>p:last-child{margin-bottom:0}
 .art-drop-detail-panel>p:not(.eyebrow){font-size:.9rem;line-height:1.4}
 .art-drop-detail-panel>small{font-size:.75rem}
 .detail-panel dl{display:flex!important;flex-wrap:wrap;gap:.6rem 1rem!important}
 .detail-panel dl>div{border:0!important;background:none!important;padding:0!important}
 .detail-grid>.metadata-panel,.detail-grid>.series-details-panel{display:none}
 .detail-grid>.photo-gallery-detail-panel,.detail-grid>.public-photo-gallery{order:-4}
 .detail-grid>.public-review-panel{order:-3}
 .detail-grid>.personal-ratings-panel{order:-2}
 .home-page{display:flex;flex-direction:column;padding:.65rem!important;gap:.8rem}
 .home-page>.home-hero{order:0;display:block!important;padding:1rem!important;min-height:0!important}
 .home-hero-copy h1{font-size:clamp(1.65rem,6vw,2.5rem)!important;line-height:1.1}
 .home-hero-copy>p:not(.eyebrow){font-size:.85rem!important}
 .home-hero .hero-cover-stack{display:none!important}
 .home-hero-copy .foyer-explore{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:.65rem 0 .25rem;padding:.6rem 1rem;border:1px solid #e8c476;border-radius:6px;background:linear-gradient(#f2d18a,#c79a46);color:#24190d!important;font-size:.95rem;font-weight:bold;text-decoration:none;box-shadow:0 3px 10px #0005}
 .home-hero-copy .foyer-explore:focus-visible{outline:2px solid #fff0c8;outline-offset:3px}
 .ang-beta-note{margin-top:1rem}
 .ang-beta-letter{max-height:none!important;overflow:visible!important}
 .ang-beta-signature img{width:4rem!important;height:4rem!important;object-fit:contain}
 .home-page>.archive-update-unread{display:none}
 .home-page>.foyer-archive-update{display:contents!important}
 .foyer-archive-update>div,.foyer-archive-update>#openArchiveUpdate{display:none!important}
 .home-page>.brooks-host{order:2;min-height:0!important;max-height:none!important;padding:.7rem!important;display:grid!important;grid-template-columns:5rem minmax(0,1fr) 5rem!important;gap:.65rem!important}
 .home-page>.foyer-room{display:contents!important}
 .foyer-column{display:contents!important}
 .foyer-room .reading-nook{order:3}.foyer-room .thread-nook{order:4}.foyer-room .desk-nook{order:5}
 .foyer-room .foyer-activity-panel{order:1;padding:0!important;min-height:0!important;height:auto!important;background:linear-gradient(110deg,#17342f,#0b201d)!important;border:1px solid #947345!important;border-radius:7px!important;box-shadow:inset 0 1px #e8cf9520!important;color:#f5deb0!important}
 .foyer-activity-panel>.foyer-activity-heading{display:none!important}
 .foyer-room .foyer-activity-panel{display:block!important}
 .mobile-whats-new{display:flex;align-items:center;gap:.65rem;width:100%;min-height:48px;margin:0;padding:.65rem .9rem;background:transparent;border:0;border-radius:inherit;color:inherit;font:inherit;font-size:1rem;text-align:left;font-weight:bold;box-shadow:none}
 .mobile-update-ornament{color:#c8a66a;font-size:.9rem}
 .mobile-update-dot{width:.35rem;height:.35rem;border-radius:50%;background:#e0ba65;flex:none}
 .mobile-update-chevron{margin-left:auto;color:#d9bb80;transition:transform .15s}
 .mobile-whats-new[aria-expanded=true] .mobile-update-chevron{transform:rotate(180deg)}
 .mobile-whats-new:focus-visible{outline:2px solid #edca7b;outline-offset:3px}
 .mobile-activity-content{display:none}.mobile-activity-open .mobile-activity-content{display:block}
 .mobile-activity-open .mobile-activity-content{margin:0 .8rem .8rem;padding:.8rem;border-top:1px solid #a88b5255;background:#f4ead3;color:#24372f;border-radius:4px}
 .home-page .brooks-host figure{width:100%!important;margin:0!important;max-width:none!important;min-height:0!important}
 .home-page .brooks-host .archive-image{height:6rem!important;width:100%!important;min-height:0!important;margin:0!important}
 .home-page .brooks-host img{height:6rem!important;width:100%!important;object-fit:cover}
 .brooks-host-copy h2{font-size:1.2rem!important}.brooks-host-copy p:not(.eyebrow),.brooks-host .brooks-sticky-note{display:none!important}
 .brooks-host-actions{display:block!important}.foyer-tour-start{padding:.4rem!important;font-size:.75rem!important}
 .reading-report-card:not(.reading-empty) .report-title-block,.reading-report-card:not(.reading-empty) .report-entry,.reading-report-card .report-facts,.reading-report-card .brooks-margin-note{display:none!important}
 .reading-report-card .report-file-header{display:flex!important;justify-content:center;padding:.5rem!important}
 .reading-report-card .report-file-header .book-cover{width:8rem!important;height:12rem!important;min-height:0!important;margin:0!important}
 .mobile-two-threads>:nth-child(n+3){display:none!important}
 .foyer-left-column .thread-nook{flex:0 0 auto!important;min-height:0!important;height:auto!important}
 .foyer-left-column .thread-nook .foyer-thread-list{flex:none!important;grid-template-rows:none!important;grid-auto-rows:auto!important}
 .foyer-left-column .thread-nook .panel-link{margin-top:.8rem!important}
 .mobile-top-recommendation:not(.mobile-show-all)>:nth-child(n+2){display:none!important}
 .mobile-top-recommendation{display:grid!important;grid-template-columns:1fr!important}
 .mobile-show-more{margin-top:.7rem}
 .vault-room-intro{padding:1rem!important;gap:.8rem;min-height:0!important}
 .vault-room-heading h1{font-size:2.5rem!important}
 .vault-gate-layout{grid-template-columns:1fr!important;padding:1rem!important}
 .vault-door-graphic{min-height:10rem!important;height:10rem!important;background-size:cover!important}
 .vault-wheel.large{display:none}
 .vault-room-heading{display:none}
 .vault-art-title{display:block;font-size:2.5rem}
 .vault-state-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.6rem}
 .vault-brooks-research{display:none}
 .membership-card-grid{display:grid!important;grid-template-columns:1fr!important;gap:.7rem!important}
 .membership-card{display:block!important;min-height:0!important;padding:0!important;overflow:hidden!important;min-width:0!important;width:100%!important}
 .membership-mobile-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:.6rem;width:100%;text-align:left;padding:1rem;border:0;background:linear-gradient(115deg,#19362d,#0e211d);color:#ffe0a4;font-size:1.15rem;line-height:1.2}
 .membership-mobile-toggle small{display:block;font-size:.7rem;font-weight:normal}
 .membership-card:not(.membership-expanded)>.membership-details{display:none!important}
 .membership-details{display:block;padding:1rem;overflow-wrap:anywhere}
 .membership-details>h2,.membership-details>.membership-price{display:none}
 .membership-details .membership-paid-preview-label,.membership-details .membership-popular{position:static;display:block;width:auto;max-width:100%;margin:0 0 .5rem;white-space:normal}
 .membership-name-preview{display:grid!important;grid-template-columns:4.5rem minmax(0,1fr)!important;align-items:center;gap:.6rem;min-height:0!important;width:100%!important;padding:.5rem!important;margin:1rem 0!important;box-sizing:border-box}
 .membership-name-preview::before{inset:0!important}
 .membership-name-copy{grid-column:2!important;grid-row:1!important;min-width:0!important;min-height:0!important;width:auto!important;margin:0!important;padding:0!important;text-align:left!important}
 .membership-name-copy strong{font-size:1.25rem!important;white-space:normal!important}
 .membership-badge-display{grid-column:1!important;grid-row:1!important;position:static!important;transform:none!important;left:auto!important;width:4.5rem!important;height:6rem!important}
 .membership-realms{text-align:left!important}.membership-realms ul{justify-content:flex-start!important}
 .membership-realm-cabinet{padding:1rem!important}
 .membership-realm-cabinet-lede{display:block!important}
 .membership-realm-crest-parade{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .membership-realm-crest-parade img{max-height:7rem;object-fit:contain}
 .tier-preview-books{gap:.45rem}.tier-preview-books article{padding:.4rem}
 .hall-entrance{padding:1rem!important;gap:1rem!important;min-height:0!important}
 .hall-entrance h1{font-size:2.3rem!important}
 .hall-gallery-body{padding:.5rem!important}
 .hall-award-cards,.hall-shelf-grid{gap:1rem!important}
 .hall-vote-drawer input{font-size:16px;min-width:0;width:100%}
 .hall-search-results button{min-width:0;overflow-wrap:anywhere}
 .shelf-back-to-top{right:.65rem;max-width:9rem;font-size:.8rem}
 body:has(dialog[open]) .shelf-back-to-top,body:has(.hall-vote-drawer:focus-within) .shelf-back-to-top{display:none}
 .next-ending-due{min-width:0}
 .reader-realm-page .reader-realm-hero{flex:none!important;min-height:0!important;height:auto!important;padding:1rem!important;margin:0!important;overflow:visible!important}
 .reader-realm-page .reader-realm-header{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important;padding:0!important;gap:1rem!important;align-items:start!important}
 .reader-realm-page .reader-realm-header h1{font-size:2.2rem!important;margin:.6rem 0!important}
 .reader-realm-page .reader-realm-reader-line strong{font-size:1.3rem!important}
 .reader-realm-page .reader-realm-membership-badge{width:3.5rem!important;height:4.5rem!important;flex:0 0 3.5rem!important}
 .reader-realm-page .reader-realm-reader-line{gap:.65rem!important;min-height:0!important}
 .reader-realm-page .reader-realm-identity>p{margin:0 0 .4rem;font-size:.7rem}
 .reader-realm-page .reader-realm-identity>em{font-size:1rem;line-height:1.35}
 .reader-realm-page .reader-realm-tools{width:100%!important;display:grid!important;grid-template-columns:4.5rem minmax(0,1fr)!important;align-items:center;gap:.65rem}
 .reader-realm-page .reader-realm-tools .reader-realm-sigil{width:4.5rem!important;height:6rem!important}
 .reader-realm-page .reader-realm-header-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.4rem!important}
 .reader-realm-page .reader-realm-header-actions button{min-width:0;white-space:normal;padding:.45rem!important;font-size:.75rem!important;min-height:40px}
 .reader-realm-page .reader-realm-header-actions [data-reader-realm-close]{grid-column:1/-1}
 .reader-realm-page .reader-realm-header-actions [data-reader-realm-close]{background:#e6bf75!important;color:#201407!important}
 .reader-realm-page .reader-realm-scroll-cue{display:none!important}
 .reader-realm-page .reader-realm-ledger{flex:none!important;position:relative!important;transform:none!important;top:auto!important;display:block!important;width:calc(100% - 1.6rem)!important;padding:.8rem!important;margin:.8rem!important;box-sizing:border-box}
 .reader-realm-page :is(.reader-realm-messages,.reader-recommendation-ballot){width:calc(100% - 1.6rem)!important;margin-inline:.8rem!important;box-sizing:border-box}
 .reader-realm-page .reader-realm-ledger>header{padding:0 0 .6rem!important;margin:0 0 .6rem!important;border-right:0!important}
 .reader-realm-page .reader-realm-ledger header strong{font-size:1.2rem!important}
 .reader-realm-page .reader-realm-stat-line{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.4rem!important}
 .reader-realm-page .reader-realm-stat-line>span{font-size:.75rem!important}
 .reader-realm-page .reader-realm-stat-line>span{padding:.45rem!important;min-height:0!important;gap:.25rem!important;justify-content:flex-start!important}
 .reader-realm-page .workshop-stat-number-line{min-height:0!important;gap:.35rem!important}
 .reader-realm-page .workshop-stat-realm-name{font-size:.85rem!important;line-height:1.2!important}
 .reader-realm-page .workshop-stat-number-line strong{font-size:1.35rem!important}
 .next-ending-due-case{gap:.8rem!important}
 .release-monitoring-desk{grid-template-columns:1fr!important}
 .release-desk-image-frame{max-height:10rem;overflow:hidden}
 .release-desk-image-frame img{height:10rem;object-fit:cover}
}
@media (max-width:760px) and (orientation:portrait){
 .membership-realm-crest-parade,.membership-realm-cabinet>.realm-gates{display:none!important}
 .membership-mobile-cabinet{display:block}
 .realm-category-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.3rem;margin:.9rem 0}
 .realm-category-toolbar button{padding:.65rem .3rem;background:#17332a;color:#f5ddb0;border:1px solid #a88c50;font-size:.75rem}
 .realm-category-toolbar button[aria-pressed=true]{background:#ead7aa;color:#17251b}
 .mobile-realm-category[hidden]{display:none}
 .mobile-realm-medallions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
 .mobile-realm-example{min-width:0;text-align:center}
 .mobile-realm-example>button{width:100%;background:transparent;border:0;color:inherit;padding:0}
 .mobile-realm-example img{width:100%;height:8rem;object-fit:contain}
 .mobile-realm-example strong,.mobile-realm-example small{display:block;font-size:.8rem}
 .mobile-realm-example small{font-size:.7rem;margin:.35rem 0}
 .mobile-realm-category:not(.show-all-realms) .mobile-realm-example:nth-child(n+3){display:none}
 [data-cabinet-show-all]{margin-top:.8rem;width:100%}
 .hall-shelf-grid,.hall-award-cards{grid-template-columns:1fr!important}
 .hall-shelf-award,.hall-shelf-award:first-child,.hall-award-card{background:none!important;border:solid transparent!important;border-width:40px 34px 68px!important;border-image:url('../assets/house-rooms/hall-display-alcove-v1.png') 165 215 265 fill / 40px 34px 68px stretch!important;padding:12px 5px!important;min-height:0!important}
 .hall-shelf-award .hall-alcove-content,.hall-award-card .hall-alcove-content{min-height:0!important}
 .hall-podium{grid-template-columns:minmax(0,1fr)!important}
 .hall-podium:not(.show-all-places)>.hall-podium-place:nth-child(n+2),.hall-award-leaders:not(.show-all-places)>.hall-award-placing:nth-child(n+2){display:none}
 .hall-portrait-more{display:block;margin:.8rem auto;max-width:100%}
 .hall-podium-place .hall-cover img,.hall-nominee-cover img,.hall-person-portrait img{max-height:12rem!important;object-fit:contain}
 .hall-award-placing{grid-template-columns:2rem 4.5rem minmax(0,1fr)!important;gap:.5rem!important}
 .hall-award-placing .hall-vote-count{grid-column:3}
 .hall-choice-caption{min-width:0;overflow-wrap:anywhere}
 .hall-alcove-content h2{font-size:1.35rem!important}
 .hall-entrance{display:block!important}.hall-brooks{max-height:none!important;margin-top:1rem}
 .hall-brooks img{height:auto!important;max-height:none!important;object-fit:contain}
}
@media (max-width:1100px) and (max-height:600px) and (orientation:landscape){
 .book-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .mobile-browse-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end}
 .shelf-applied-filters{grid-column:1/-1}
 .shelf-command-header{position:relative!important;top:auto!important}
 .shelf-vault-formal{flex-direction:row;align-items:center}
 .shelf-vault-state{flex:1}
 .alphabet-jump{display:flex!important;gap:.7rem}
 .shelf-letter-buttons{flex:1}
 .detail-hero{grid-template-columns:8rem minmax(0,1fr)!important}
 .detail-hero .large-cover{width:8rem!important}
 .detail-hero .get-your-copy{grid-column:1/-1}
 .hall-shelf-grid,.hall-award-cards{grid-template-columns:1fr!important}
 .hall-podium,.hall-three-places .hall-podium{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .membership-card-grid{grid-template-columns:1fr!important;align-items:start}
 .membership-mobile-toggle{font-size:.95rem;grid-template-columns:minmax(0,1fr) auto;gap:.5rem;padding:.7rem}
 .membership-mobile-toggle>span:last-child{display:none}
 .reader-realm-page .reader-realm-header{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 .reader-realm-page .reader-realm-stat-line{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .membership-badge-display{justify-self:center}
 .membership-details{padding:.7rem;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.7rem 1rem;align-items:center}
 .membership-card .membership-details>*{grid-column:1/-1!important;grid-row:auto!important}
 .membership-card .membership-details .membership-name-preview{grid-column:1!important;margin:0!important;align-self:stretch}
 .membership-card .membership-details .membership-realms{grid-column:2!important;margin:0!important;min-width:0}
 .membership-details .membership-realms h3{margin-top:0}
 .membership-details .membership-summary{margin:.2rem 0;max-width:65ch;text-wrap:pretty}
}
@media(max-width:350px){.tier-preview-books{grid-template-columns:1fr}.tier-preview-books img{height:9rem}.membership-mobile-toggle{font-size:1rem}}

/* Published activity stays readable in both phone orientations. */
.foyer-activity-panel .archive-activity-row{display:flex;align-items:center;gap:1rem;justify-content:space-between}.foyer-activity-panel .archive-activity-row>div{min-width:0;flex:1}.foyer-activity-panel .archive-activity-row p{overflow-wrap:anywhere}.foyer-activity-panel .mini-action{flex-shrink:0}.public-activity-history summary{cursor:pointer;padding:1rem 0;color:inherit}.public-activity-history{max-height:60vh;overflow:auto}.foyer-activity-panel time{font-size:.8rem}

.foyer-room .foyer-activity-panel{max-height:none!important;display:block}.foyer-activity-heading{margin-bottom:.7rem}

.foyer-activity-panel .archive-activity-row{flex-direction:row}.foyer-activity-panel .mini-action{padding:.4rem .6rem}@media(max-width:760px){.foyer-activity-panel .archive-activity-row{font-size:.88rem;gap:.55rem}.foyer-activity-panel time{font-size:.72rem}}

/* Reading nook: concise upright, reading update alongside the cover in landscape. */
.foyer-finished-rating{display:none}
.foyer-recent-reads{margin-top:1rem;border:1px solid #b1945e;border-radius:6px;background:#f6ecd6;color:#382715}
.foyer-recent-reads>summary{padding:.75rem 1rem;cursor:pointer;font-weight:bold;min-height:44px;box-sizing:border-box}
.foyer-recent-reads>summary>span{font-weight:normal;font-size:.8rem;margin-left:.5rem}
.foyer-recent-list{padding:0 .7rem .7rem;display:grid;gap:.6rem}
.foyer-recent-read{display:flex;align-items:center;gap:.8rem;padding:.65rem;border-top:1px solid #b1945e55;text-decoration:none;color:inherit;min-width:0}
.foyer-recent-read img{width:3rem;height:4.5rem;object-fit:contain;flex:none}
.foyer-recent-read>div{min-width:0}.foyer-recent-read strong,.foyer-recent-read span,.foyer-recent-read time{display:block;overflow-wrap:anywhere}
.foyer-recent-read span,.foyer-recent-read time{font-size:.8rem}.foyer-recent-read .foyer-finished-rating{display:block;margin:.2rem 0;font-size:.9rem}.foyer-recent-read .foyer-finished-rating span{display:inline;color:#8a610e}
@media(max-width:760px),(max-width:1100px) and (max-height:600px){
 .reading-report-card>.foyer-finished-rating{display:block;text-align:center;margin:.2rem 0 .5rem;font-weight:bold;color:#503416}
 .reading-report-card>.foyer-finished-rating span{color:#8a610e}
 .foyer-recent-reads>summary>span{display:block;margin:.25rem 0 0 1rem}
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .reading-report-card:not(.reading-empty){display:grid!important;grid-template-columns:9rem minmax(0,1fr);gap:.5rem 1rem;align-items:start}
 .reading-report-card:not(.reading-empty) .report-file-header{grid-column:1;grid-row:1;margin:0!important}
 .reading-report-card:not(.reading-empty) .report-entry{display:block!important;grid-column:2;grid-row:1 / span 2;margin:0!important;min-width:0}
 .reading-report-card:not(.reading-empty)>.foyer-finished-rating{grid-column:1;grid-row:2}
 .reading-report-card:not(.reading-empty) .report-note{max-height:none!important;overflow:visible!important;font-size:.95rem;line-height:1.5}
}

/* Keep the reported date visible in the compact Foyer on phones. */
@media (max-width: 900px){ .reading-nook .reading-report-card .report-facts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px} .reading-nook .report-facts div{min-width:0} }
