/* A dedicated row avoids the legacy title/description column rules. */
.room-topic-main{display:contents}.room-topic-summary>span+span:before{content:' '}
@media(max-width:1050px){
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .room-heading{height:auto!important;min-height:0!important;padding:9px 12px 7px!important;overflow:visible!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .room-heading .room-heading-copy{display:block!important;min-height:0!important;height:auto!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .room-topic-main{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(78px,.72fr)!important;gap:10px!important;align-items:center!important;min-width:0!important;margin:5px 0 0!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .room-topic-main>:is(h3,.relay-title-row){min-width:0!important;margin:0!important;width:auto!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .room-topic-main :is(#story-wall-topic,#relay-round-title,#poetry-topic-title,.pencil-topic-title){font-size:clamp(17px,4.8vw,22px)!important;line-height:1.3!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body[data-room-view] main :is(#stories,#relay,#poetry,#series).room-system .room-topic-main>.room-topic-summary,body[data-room-view] main #stories.room-system #weekly-topic-description{min-width:0!important;margin:0!important;padding:0!important;font:400 11px/1.5 system-ui,sans-serif!important;letter-spacing:0!important;text-align:right!important;color:#697c64!important}
 .room-topic-summary>span{display:block;white-space:nowrap}.room-topic-summary>span+span:before{content:none}
}

@media(min-width:600px) and (max-width:1050px){body[data-room-view] main #poetry.story-classroom.room-system .poetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}body[data-room-view] #poetry.room-system .poetry-paper{min-width:0!important}}

/* Date navigation is the direct path; the calendar stays in optional filters. */
.room-system .room-date-navigation{gap:5px;align-items:center}
.room-system .room-date-arrow{width:30px!important;min-width:30px!important;height:28px!important;min-height:28px!important;padding:4px!important;border:1px solid #c6d5c7!important;background:#f4f8f0!important;border-radius:6px;color:#426a51!important;box-shadow:inset 0 1px #fff!important;touch-action:manipulation}
.room-system .room-date-arrow svg{width:19px;height:19px;stroke-width:1.8}
.room-system .room-date-arrow:disabled{opacity:.32}
.room-system .room-date-navigation>span{font-variant-numeric:tabular-nums}
@media(max-width:350px){.room-system .room-date-navigation{gap:3px}.room-system .room-date-arrow{width:28px!important;min-width:28px!important}}

/* The date is the center of the previous/next control, never microcopy. */
body[data-room-view] main .room-system .room-date-navigation{gap:7px!important;min-height:32px;vertical-align:middle}
body[data-room-view] main .room-system .room-date-navigation>:is(#weekly-date,#relay-round-date,#poetry-date){display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:100px!important;margin:0!important;padding:0 2px!important;font:600 14px/1.4 system-ui,sans-serif!important;letter-spacing:-.025em!important;color:#354b43!important;white-space:nowrap!important;opacity:1!important;font-variant-numeric:tabular-nums}
body[data-room-view] main .room-system .room-date-arrow{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
@media(max-width:350px){body[data-room-view] main .room-system .room-date-navigation{gap:3px!important}body[data-room-view] main .room-system .room-date-navigation>:is(#weekly-date,#relay-round-date,#poetry-date){min-width:94px!important;font-size:13px!important}}

/* Keep the same title treatment with each writing room's own palette. */
#stories.room-system{--topic-fill-start:#416e59;--topic-fill-end:#2b5241}
#relay.room-system{--topic-fill-start:#466e7d;--topic-fill-end:#2f505e}
#poetry.room-system{--topic-fill-start:#73627e;--topic-fill-end:#53445f}
body[data-room-view] main :is(#stories,#relay,#poetry).room-system
 .room-heading-copy>:is(.topic-dateline,.relay-topic-meta,.poetry-dateline){
  justify-content:flex-start!important;
  align-items:center!important;
}

body[data-room-view] main :is(#stories,#relay,#poetry).room-system .room-topic-main :is(#story-wall-topic,#relay-round-title,#poetry-topic-title){
 box-sizing:border-box!important;max-width:100%!important;width:fit-content!important;
 padding:11px 16px!important;border:1px solid var(--topic-fill-end)!important;border-radius:10px!important;
 background:linear-gradient(145deg,var(--topic-fill-start),var(--topic-fill-end))!important;color:#fff5d8!important;
 box-shadow:inset 0 2px 2px #ffffff2b,inset 0 -2px 3px #102f2540,0 2px 4px #294d3120!important;
 font-family:'Gowun Batang', 'Noto Serif KR', serif!important;
 font-weight:700!important;font-size:clamp(25px,2.3vw,34px)!important;line-height:1.35!important;
 text-shadow:0 1px #0005!important;white-space:normal!important;overflow-wrap:anywhere!important;
}
body[data-room-view] main #stories.room-system #story-wall-topic::before,
body[data-room-view] main #stories.room-system #story-wall-topic::after{content:none!important}
@layer compact-corrections {
@media(max-width:1050px){
 html body[data-room-view] main :is(#stories,#relay,#poetry).room-system.story-classroom .room-heading .room-topic-main :is(#story-wall-topic,#relay-round-title,#poetry-topic-title){
  width:fit-content!important;padding:8px 11px!important;border-radius:8px!important;
  font-family:'Gowun Batang', 'Noto Serif KR', serif!important;
  font-size:clamp(20px,5vw,24px)!important;line-height:1.35!important;word-break:keep-all!important;
 }
}
}
