@layer compact-corrections {
/* Explicitly selected rules: keep PC workspace; compact devices prioritize content. */
@media(max-width:1050px){.room-system .room-heading-guide:not([data-guide-open=true])>p{display:none!important}}
.room-system .room-guide-toggle{display:inline-flex!important;align-items:center;gap:8px;border:0!important;background:transparent!important;box-shadow:none!important;appearance:none!important;border-radius:0!important;padding:0!important;margin:0!important;color:var(--room-accent);cursor:pointer;font:600 13px/1.4 system-ui!important}
.room-guide-toggle:after{content:'＋';font:400 15px/1 system-ui}.room-guide-toggle[aria-expanded=true]:after{content:'−'}
/* All five primary controls use one height and type scale. */
body>.header.global-shell :is(.shell-category,.author-settlement-link,#account-button){height:48px!important;min-height:48px!important;font-size:16px!important}
@media(min-width:1051px) and (max-width:1250px){
 body[data-room-view] main>:is(#stories,#relay,#poetry,#series).room-system{grid-template-columns:215px minmax(0,1fr)!important;gap:18px!important;padding:22px 24px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading{padding-inline:24px!important;grid-template-columns:minmax(0,1fr) minmax(220px,.8fr)!important;gap:16px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room101-menu-heading{padding-inline:18px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .approved-room-copy strong{font-size:13px;white-space:normal}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .approved-room-menu{min-height:200px}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room101-menu-heading h2{font-size:23px!important}
}
@media(max-width:1050px){
 body[data-room-view]{height:100dvh;overflow:hidden!important;overscroll-behavior:none}
 body[data-room-view]>.header.global-shell{position:relative!important;top:auto!important;left:auto!important}
 body[data-room-view]>main{display:block!important;width:100%!important;max-width:none!important;height:calc(100dvh - var(--shared-header-height,92px))!important;margin:0!important;padding:0!important;overflow:hidden!important}
 body[data-room-view] main>.welcome,body[data-room-view] main>.picture-tabs,body[data-room-view]>.page-rule,body[data-room-view]>.return-entrance,body[data-room-view]>footer{display:none!important}
 body[data-room-view] main>:is(#stories,#relay,#poetry,#series).story-classroom.room-system{display:flex!important;flex-direction:column!important;position:relative!important;inset:auto!important;transform:none!important;opacity:1!important;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;gap:9px!important;margin:0!important;padding:10px 12px 12px!important;overflow:auto!important;touch-action:pan-y;background:var(--room-canvas)!important}
 body[data-room-view] main>:is(#stories,#relay,#poetry,#series).story-classroom.room-system[hidden]{display:none!important}
 .room-system>:is(.story-sidebar,.story-wall-area,.relay-manuscript,.poetry-content,.library-content),.room-system .daily-relay-surface{display:contents!important}
 .room-system :is(.room101-menu-heading,.approved-room-menu-label,.approved-room-copy small,.room-side-guidance,.story-wall-footer,.relay-connection,.daily-period-label,.legacy-note-button,.room-topic-area>.small-copy){display:none!important}
 .room-system .approved-room-menu{order:1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;flex:none!important;min-height:58px!important;height:58px!important;width:100%!important;padding:4px!important;margin:0!important;border:1px solid var(--frame-border);border-radius:10px;background:var(--frame-start);box-sizing:border-box!important;overflow:hidden}
 .room-system .approved-room-link{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-width:0!important;min-height:0!important;height:48px!important;padding:3px!important;margin:0!important;overflow:hidden;border-radius:7px;text-align:center}
 .room-system .approved-room-number{display:block!important;font:500 11px/1 Georgia,serif!important;letter-spacing:0!important;margin:0!important}
 .room-system .approved-room-copy{min-width:0!important;width:100%!important}
 .room-system .approved-room-copy strong{display:block!important;font:600 10px/1.2 system-ui!important;letter-spacing:-.35px!important;white-space:normal!important;overflow-wrap:anywhere;max-height:2.4em;overflow:hidden}
 .room-system .room-heading{order:2!important;display:block!important;flex:none!important;width:100%!important;height:auto!important;min-height:0!important;margin:0!important;padding:12px 14px 8px!important;border:1px solid var(--frame-border)!important;border-radius:10px;background:var(--frame-start)!important;box-sizing:border-box!important;text-align:left!important}
 .room-system .room-heading-copy{display:block!important;position:static!important;inset:auto!important;width:100%!important;margin:0!important;padding:0!important;transform:none!important}
 .room-system .room-heading h3{display:block!important;width:100%!important;font:400 27px/1.2 EssayHand,serif!important;margin:5px 0!important;padding:0!important;letter-spacing:0!important}
 .room-system .room-heading-copy>p:not(.topic-dateline):not(.library-context-label){font:400 11px/1.4 system-ui!important;margin:4px 0 0!important;color:#788570}
 .room-system :is(.topic-dateline,.library-context-label){font:400 10px/1.3 system-ui!important;margin:0!important}
 .room-system .room-heading-guide{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;transform:none!important;border:0!important;border-top:1px solid var(--frame-border)!important;padding:7px 0 0!important;margin:7px 0 0!important;text-align:left!important}
 .room-system .room-guide-heading-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;flex-wrap:nowrap!important;margin:0!important}
 .room-system .room-participation-reward{font-size:9px!important;white-space:nowrap!important;padding:2px 4px!important;margin:0!important}
 .room-system .room-heading-guide>p{font:400 12px/1.5 system-ui!important;margin:7px 0!important}
 .room-system .room-topic-area{order:3!important;display:flex!important;align-items:center!important;gap:7px!important;flex:none!important;min-width:0!important;height:auto!important;min-height:46px!important;margin:0!important;padding:6px 8px!important;border:1px solid var(--frame-border);border-radius:9px;background:var(--frame-start)!important;box-sizing:border-box!important;flex-wrap:wrap}
 .room-system .approved-filter-heading{display:flex!important;flex:0 0 auto!important;align-items:baseline!important;gap:5px!important;min-width:104px!important;margin:0!important;padding:0!important}
 .room-system .approved-filter-heading h3{font:600 10px/1.3 system-ui!important;white-space:nowrap!important;margin:0!important;padding:0!important}
 .room-system .approved-filter-heading>span{position:static!important;display:block!important;font:400 11px/1 Georgia!important;transform:none!important}
 .room-system .daily-controls{display:flex!important;flex:1!important;min-width:0!important;gap:5px!important;margin:0!important}
 .room-system .daily-controls :is(input,select){width:100%!important;min-width:0!important;min-height:31px!important;font:11px system-ui!important;padding:4px!important}
 .room-system .paper-submit{min-height:32px!important;font:600 11px/1.3 system-ui!important;padding:7px 9px!important;margin:0!important;flex:1 0 auto!important}
 .room-system :is(.collection-board,.relay-board){order:4!important;display:flex!important;flex-direction:column!important;flex:1 0 340px!important;min-height:340px!important;width:100%!important;height:auto!important;padding:0 10px!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important}
 .room-system :is(.memo-viewport,.poetry-scroll,.guestbook-viewport,.library-viewport){flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;touch-action:pan-y}
 .room-system .board-footer{padding:8px 4px!important;font-size:8px!important}
 .room-system .board-top{height:43px!important;min-height:43px!important;padding:6px 0 0!important;margin:0 4px!important;align-items:center!important}
 .room-system .board-top h3{font-size:11px!important}
 #stories.room-system #room-memo-board{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:12px 3px!important;gap:11px!important;align-content:start}
 #poetry.room-system .poetry-grid{grid-template-columns:repeat(var(--room-poem-columns,1),minmax(0,1fr))!important;padding:12px 3px!important}
 #relay.room-system .guestbook{display:grid!important;grid-template-columns:1fr!important;height:auto!important;overflow:visible!important}
 #series.room-system .library-floor-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px 12px!important}
}
/* One full-width row for all five controls; logo gets its own compact row. */
@media(max-width:1050px){
 body>.header.global-shell{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:22px 36px!important;gap:7px!important;height:92px!important;min-height:92px!important;padding:9px 12px!important}
 body>.header.global-shell>.logo{grid-column:1!important;grid-row:1!important;font-size:20px!important;line-height:1!important;justify-self:start}
 body>.header.global-shell .brand-cookie{width:18px!important;height:18px!important;display:inline!important}
 body>.header.global-shell>.shell-nav{display:contents!important}
 .global-shell .shell-categories,.global-shell .shell-account{display:contents!important}
 body>.header.global-shell{grid-template-columns:repeat(5,minmax(0,1fr))!important}
 body>.header.global-shell>.logo{grid-column:1/4!important}
 body>.header.global-shell :is(.shell-category,.author-settlement-link,#account-button){grid-row:2!important;display:flex!important;justify-content:center!important;align-items:center!important;min-width:0!important;width:100%!important;max-width:100%!important;height:36px!important;min-height:36px!important;padding:3px!important;font:600 10px/1.1 system-ui!important;letter-spacing:-.25px!important;border-radius:6px!important;white-space:normal!important;text-align:center!important;overflow:hidden!important;box-sizing:border-box!important}
 body>.header.global-shell :is(.shell-category,.author-settlement-link,#account-button):nth-child(n){flex-wrap:wrap}
 .global-shell .shell-category[href='/main']{grid-column:1!important}.global-shell .shell-category[href='/bookorism']{grid-column:2!important}.global-shell .shell-category[href='/books']{grid-column:3!important}.global-shell .author-settlement-link{grid-column:4!important}.global-shell #account-button{grid-column:5!important}
 body>.header.global-shell #account-button .account-amount{font-size:10px!important}.global-shell #account-button .account-prefix{font-size:9px!important}
 body>.header.global-shell>.site-visit-count{top:11px!important;left:auto!important;right:12px!important;bottom:auto!important;font-size:9px!important}
}

@media(max-width:1050px){
 .room-system .room-guide-toggle{height:22px!important;min-height:22px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:0!important}
 .room-system .room-heading{padding:9px 12px 7px!important}
 .room-system .room-heading h3{font-size:25px!important;margin:3px 0!important;min-height:0!important}
 .room-system .room-heading-guide{margin-top:5px!important;padding-top:5px!important}
 .room-system .room-topic-area{min-height:44px!important;gap:6px!important}
 .room-system .room-topic-area:not([data-filters-open=true]) :is(.daily-controls,#library-search-tools){display:none!important}
 .room-system .room-topic-area[data-filters-open=true] :is(.daily-controls,#library-search-tools){display:flex!important;flex:1 0 100%!important;order:9}
 .room-system .room-filter-toggle{display:block!important;flex:0 0 auto!important;min-height:29px!important;padding:4px 5px!important;font:10px/1.2 system-ui!important;border:1px solid var(--frame-border);border-radius:5px;background:var(--frame-end);color:var(--room-accent);cursor:pointer}
 .room-system .paper-submit{flex:1 1 0!important;min-width:0!important;font-size:10px!important;white-space:normal!important}
 .room-system .approved-filter-heading{min-width:100px!important}
 .room-system #library-menu{display:block!important;flex:1 1 0!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important}
 .room-system #library-menu button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:32px!important;height:32px!important;padding:5px 6px!important;box-sizing:border-box!important;white-space:nowrap!important;font-size:10px!important;line-height:1.2!important}
}
@media(min-width:1051px){.room-filter-toggle{display:none!important}}
@media(max-width:1050px){

 .room-system .room-heading:has(.room-heading-guide[data-guide-open=true]){height:auto!important;overflow:visible!important}
 .room-system :is(.collection-board,.relay-board)>.board-top{order:0!important}
 .room-system :is(.memo-viewport,.poetry-scroll,.guestbook-viewport,.library-viewport){order:1!important}
 .room-system :is(.collection-board,.relay-board)>.board-footer{order:2!important}
}
@media(min-width:1921px){
 body[data-room-view] main>:is(#stories,#relay,#poetry,#series).room-system{max-width:1920px!important;margin-inline:auto!important;padding-inline:48px!important}
 body[data-room-view]>.header.global-shell{padding-inline:calc((100vw - 1920px)/2 + 48px)!important}
}
@media(max-width:1050px){body>.header.global-shell #account-button{flex-direction:column!important;gap:2px!important}.room-system .room-heading-guide .sp-amount{font-size:9px!important}}
@media(max-width:1050px){
 .room-system .room-heading.sb-gamma-host{position:relative!important;min-height:140px!important;height:auto!important;padding-right:154px!important;overflow:visible!important}
 .room-system .sb-gamma-host .room-heading-guide{border:0!important;margin-top:4px!important;padding-top:0!important}
 .room-system .sb-gamma-host .room-guide-heading-row{flex-wrap:wrap!important;gap:2px!important}
 .room-system .sb-gamma-host .room-heading-copy>p{overflow-wrap:anywhere}
 .room-system .sb-gamma-host .room-heading h3{font-size:23px!important}
 .room-system :is(.memo-viewport,.guestbook-viewport,.poetry-scroll,.library-viewport){overscroll-behavior-y:contain!important}
}
@media(max-width:1050px){
 #series.room-system .collection-board>.board-top>.library-topic-filter{position:static!important;inset:auto!important;float:none!important;transform:none!important;translate:none!important;align-self:center!important;flex:0 0 112px!important;width:112px!important;min-width:0!important;max-width:45%!important;height:26px!important;min-height:26px!important;max-height:26px!important;box-sizing:border-box!important;margin:0!important;padding:3px 7px!important;font:400 10px/18px system-ui,sans-serif!important;vertical-align:middle!important}
}

/* Every manuscript initial uses the same cell-sized font as the rest of its line. */
#poetry.room-system .poetry-character{font:400 clamp(9px,4.4cqw,22px)/1 EssayHand,serif!important;box-sizing:border-box!important;min-width:0!important}
@media(min-width:1051px) and (max-width:1250px){
 body[data-room-view] main>:is(#stories,#relay,#poetry,#series).room-system{--room-heading-height:144px}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system>.story-sidebar{gap:14px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room101-menu-heading{height:144px!important;min-height:144px!important;padding:10px 18px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room101-menu-heading .approved-intro-number{font-size:40px!important;line-height:1!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room101-menu-heading h2{font-size:21px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room101-menu-heading .room-introduction{font-size:12px!important;line-height:1.5!important;margin-top:7px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading{height:144px!important;min-height:144px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .approved-room-menu{display:grid!important;grid-template-rows:auto repeat(4,minmax(44px,1fr))!important;flex:1 0 244px!important;height:auto!important;min-height:244px!important;padding:10px 8px!important;gap:4px!important;box-sizing:border-box!important;overflow:hidden!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .approved-room-menu-label{margin:0 8px!important;font-size:9px!important;line-height:1.4!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .approved-room-link{flex:none!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;height:auto!important;min-height:44px!important;margin:0!important;padding:5px 8px!important;box-sizing:border-box!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .approved-room-copy strong{font-size:13px!important;line-height:1.3!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .approved-room-copy small{font-size:10px!important;line-height:1.3!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system>.story-sidebar>.room-topic-area{padding:14px!important}
 body[data-room-view] #poetry.story-classroom.room-system .poetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 18px!important}
}

@media(min-width:1051px){
 .room-system .room-heading-guide>p{display:block!important}
 .room-system .room-guide-toggle:after{display:none!important}
 .room-system .room-guide-toggle:disabled{opacity:1!important;cursor:default!important;color:var(--room-accent)!important}
}
@media(min-width:1051px) and (max-width:1250px){
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading{padding:14px 24px!important;align-items:center!important;grid-template-columns:minmax(0,1fr) minmax(310px,1fr)!important;gap:20px!important;box-sizing:border-box!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-copy{display:flex!important;flex-direction:column!important;justify-content:center!important;align-self:center!important;gap:5px!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-copy :is(h3,p){margin:0!important;padding:0!important;min-height:0!important;height:auto!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-copy :is(.topic-dateline,.library-context-label){font:400 11px/1.4 system-ui,sans-serif!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-copy h3{font:400 28px/1.2 EssayHand,serif!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-copy>p:not(.topic-dateline):not(.library-context-label){font:400 14px/1.5 system-ui,sans-serif!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-guide{display:flex!important;flex-direction:column!important;justify-content:center!important;align-self:stretch!important;gap:5px!important;min-height:0!important;height:auto!important;margin:0!important;padding:0 0 0 18px!important;box-sizing:border-box!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-guide>p{margin:0!important;padding:0!important;font:400 12px/1.45 system-ui,sans-serif!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-guide-heading-row{display:flex!important;align-items:center!important;gap:7px!important;margin:0 0 2px!important;min-height:18px!important}
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-guide-toggle{font-size:12px!important;line-height:18px!important}
}

/* Entrance copy begins close to the mobile header, without the old stacked offsets. */
@media(max-width:1050px){
 body:not([data-room-view]):not(.is-in-story) main>.welcome{margin-top:0!important;padding-top:16px!important;align-items:start!important}
 body:not([data-room-view]):not(.is-in-story) .welcome .entrance-copy{align-self:start!important;margin-top:0!important;padding-top:0!important}
}
}

.mobile-signin-break{display:none}@media(max-width:720px){.mobile-signin-break{display:block}.account-signin-label{display:block;white-space:nowrap;text-align:center;line-height:1.15}}

@media(min-width:600px) and (max-width:1050px){:root{--room-poem-columns:2}}
/* Mobile room menu: fixed rows prevent badge/font rules from squeezing titles. */
@media(max-width:760px){
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .approved-room-menu{width:100%!important;margin-right:0!important;height:60px!important;min-height:60px!important;padding:4px!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .approved-room-link{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:24px 16px!important;place-items:center!important;align-content:center!important;gap:2px!important;height:50px!important;padding:2px!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .approved-room-number{display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:24px!important;min-height:24px!important;font:600 14px/1 Georgia,serif!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .approved-room-copy{display:flex!important;align-items:center!important;justify-content:center!important;height:16px!important;min-height:16px!important;width:100%!important;gap:0!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .approved-room-copy strong{display:block!important;width:100%!important;font:600 9.5px/16px system-ui!important;white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;max-height:16px!important;text-align:center!important;letter-spacing:-.4px!important}
}

@layer compact-corrections {
/* Keep desktop topic copy inside its card at every desktop width. */
@media(min-width:1051px){
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading{
  height:auto!important;
  min-height:var(--room-heading-height,166px)!important;
  align-items:center!important;
 }
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-copy,
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-guide{
  min-height:0!important;
  height:auto!important;
  justify-content:center!important;
  gap:8px!important;
 }
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-copy{
  align-self:center!important;
 }
 body[data-room-view] :is(#stories,#relay,#poetry,#series).room-system .room-heading-guide{
  align-self:stretch!important;
 }
}

/* The mobile memo board title needs one compact line. */
@media(max-width:1050px){
 body[data-room-view] #stories.room-system .board-top{
  min-height:34px!important;
  height:auto!important;
  padding:4px 0!important;
  margin-inline:4px!important;
  align-items:center!important;
  box-sizing:border-box!important;
 }
 body[data-room-view] #stories.room-system .board-top>div{
  min-width:0!important;
  gap:7px!important;
  flex-wrap:wrap!important;
 }
 body[data-room-view] #stories.room-system .board-top h3{
  margin:0!important;
  line-height:1.35!important;
 }
}

}
