/* Approved room materials. Only the heading geometry is shared. */
.story-classroom#stories,.story-classroom#relay,.story-classroom#poetry,.story-classroom#series{gap:36px}
#stories.story-classroom .story-wall-area,#relay.story-classroom .relay-manuscript,#poetry.story-classroom .poetry-content,#series.story-classroom .library-content{box-sizing:border-box;width:100%;min-width:0;min-height:0;margin:0;align-self:stretch;justify-self:stretch;padding:36px 32px 18px;border:0;border-radius:0;box-shadow:none}
#stories.story-classroom .weekly-wall-area{display:flex;flex-direction:column;gap:0;background:#eee8db url('assets/sunlit-continuous-wall.png') center/cover no-repeat;container-type:normal}
#stories.story-classroom .weekly-frame{flex:1;min-height:0;width:100%;margin:0}
#stories.story-classroom .story-wall-footer{position:static;flex:none;margin-top:12px;padding:0;font-size:11px}
#relay.story-classroom .relay-manuscript{display:flex;flex-direction:column;background-color:#f9f7ef;background-image:linear-gradient(#fcfaf4b8,#fcfaf4b8),url('assets/premium-writing-paper.webp');background-position:center;background-size:auto,680px;background-repeat:repeat;overflow:hidden}
#poetry.story-classroom .poetry-content,#series.story-classroom .library-content{background:none}
/* Same two-column masthead: topic width never moves the guide column. */
#stories .room-heading,#relay .room-heading,#poetry .room-heading,#series .room-heading{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:32px;align-items:start;flex:none;width:100%;max-width:100%;margin:0 0 26px;padding:0;border:0;background:none;box-shadow:none;transform:none}
#stories .room-heading .room-heading-copy,#relay .room-heading .room-heading-copy,#poetry .room-heading .room-heading-copy,#series .room-heading .room-heading-copy{grid-column:auto;grid-row:auto;position:static;display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0;padding:0;background:none;border:0;box-shadow:none;transform:none;text-align:left}
#stories .room-heading .room-heading-guide,#relay .room-heading .room-heading-guide,#poetry .room-heading .room-heading-guide,#series .room-heading .room-heading-guide{grid-column:auto;grid-row:auto;position:static;display:flex;flex-direction:column;box-sizing:border-box;width:100%;max-width:none;min-width:0;align-self:start;gap:9px;margin:0;padding:0 0 0 24px;border:0;border-left:1px solid #8b836643;background:none;transform:none;text-align:left}
#stories .room-heading .topic-dateline,#relay .room-heading .relay-topic-meta,#poetry .room-heading .poetry-dateline,#series .room-heading .library-context-label{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;margin:0;padding:0;color:#777160;font:400 13px/1.6 'Gowun Batang',serif;letter-spacing:0}
#stories .room-heading .topic-dateline>*,#relay .room-heading .relay-topic-meta>*,#poetry .room-heading .poetry-dateline>*{font:inherit;color:inherit;margin:0;white-space:normal}
#stories:not(.viewing-archive) #story-wall-topic,#relay.daily-integrated #relay-round-title,#poetry.daily-integrated #poetry-topic-title,#series.story-classroom .pencil-topic-title{position:relative;isolation:isolate;box-sizing:border-box;display:block;left:0;width:max-content;max-width:100%;margin:12px 0 14px;padding:.12em .6em .18em;font:700 clamp(28px,2.65vw,38px)/1.4 'Gowun Batang',serif;letter-spacing:-.03em;color:#303329;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;transform:none;text-align:left}
#stories .room-heading .room-heading-copy p,#relay .room-heading .room-heading-copy>p,#poetry .room-heading .room-heading-copy>p,#series .room-heading .room-heading-description{margin:0;font:400 15px/1.8 'Gowun Batang',serif;color:#5d604d;white-space:normal}
#series .room-heading .library-context-label{font:400 13px/1.6 'Gowun Batang',serif;color:#777160}
#stories .room-heading .room-heading-guide p,#relay .room-heading .room-heading-guide p,#poetry .room-heading .room-heading-guide p,#series .room-heading .room-heading-guide p{width:auto;max-width:none;flex:none;margin:0;font:400 14px/1.85 'Gowun Batang',serif;color:#5d604d;letter-spacing:0;white-space:normal}
#stories .room-heading .room-mobile-break{display:none}
#relay .room-heading .relay-title-row{display:block}
#relay .room-heading .relay-genre-badge{display:none}
/* The graphite's outer LEFT edge is the text column's fixed origin. */
#stories #story-wall-topic::before,#relay #relay-round-title::before,#poetry #poetry-topic-title::before,#series .pencil-topic-title::before{left:0;top:0;bottom:0;width:100%;height:100%}
.room-heading .graphite-fill{left:0!important;top:0!important;width:100%;height:100%;filter:grayscale(1);opacity:.8}
#relay.daily-integrated .daily-relay-surface{min-height:0;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#b7a98a transparent}
#relay.daily-integrated .daily-stories{flex:none;overflow:visible;padding-right:10px}
#relay.daily-integrated .daily-story{display:block;padding:0 0 26px}
#relay.daily-integrated .daily-story>h3{font-size:14px;margin:8px 0 12px;color:#81735b}
#relay.daily-integrated .relay-entry{grid-template-columns:30px minmax(0,1fr);margin:0;padding:22px 0 17px}
#relay.daily-integrated .relay-entry-body>p{font-size:28px;line-height:1.8}
#relay.daily-integrated .relay-first-entry .relay-entry-body>p{font:400 23px/1.9 'Gowun Batang',serif}
#relay.daily-integrated .relay-entry-credit{font-size:12px;margin-top:8px}
#relay.daily-integrated .relay-next{padding:23px 0;text-align:left;min-height:76px}
#poetry.daily-integrated .poetry-grid{max-width:720px;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;justify-content:start}
#poetry.daily-integrated .poetry-paper{min-height:220px;padding:22px 19px 14px}
#poetry.daily-integrated .poetry-line{grid-template-columns:25px minmax(0,1fr);gap:8px}
#poetry.daily-integrated .poetry-line p{font-size:18px;line-height:1.75}
#poetry.daily-integrated .poetry-blank{position:relative;min-height:220px;font-size:15px;gap:13px;overflow:hidden}
#poetry .poetry-blank-lines{position:absolute;left:24px;top:26px;bottom:24px;display:flex;flex-direction:column;justify-content:space-between;color:#a7a38e;opacity:.42;font:24px/1.5 'Gowun Batang',serif;pointer-events:none}
#poetry .poetry-plus{font-size:34px;color:#8c9576}
#series .library-content.is-library-overview,#series .library-content.is-library-shelf{display:flex;flex-direction:column;gap:12px}
#series .library-context-heading{flex:none}
#series .library-content .library-gallery-heading{flex:none}
#series .library-content .library-scroll,#series .library-content .personal-work-shelf{flex:1;min-height:0}
.daily-admin-link{display:inline-block;margin-top:12px;padding:9px 12px;border:1px solid #9b8a69;background:#f4eedf;color:#5e614d;font-size:13px;text-decoration:none}
.mode-icon svg{display:block;width:28px;height:28px;overflow:visible}
@media(max-width:1050px) and (min-width:721px){#stories .room-heading,#relay .room-heading,#poetry .room-heading,#series .room-heading{gap:22px}#stories.story-classroom .story-wall-area,#relay.story-classroom .relay-manuscript,#poetry.story-classroom .poetry-content,#series.story-classroom .library-content{padding-inline:24px}}
@media(max-width:720px){
 #stories.story-classroom .story-wall-area,#relay.story-classroom .relay-manuscript,#poetry.story-classroom .poetry-content,#series.story-classroom .library-content{padding:24px 17px 20px;margin-top:22px;min-height:0}
 #stories .room-heading,#relay .room-heading,#poetry .room-heading,#series .room-heading{grid-template-columns:minmax(0,1fr);gap:18px;margin-bottom:24px}
 #stories .room-heading .room-heading-guide,#relay .room-heading .room-heading-guide,#poetry .room-heading .room-heading-guide,#series .room-heading .room-heading-guide{padding-left:12px;gap:6px}
 #stories:not(.viewing-archive) #story-wall-topic,#relay.daily-integrated #relay-round-title,#poetry.daily-integrated #poetry-topic-title,#series.story-classroom .pencil-topic-title{font-size:28px;margin-top:11px;margin-bottom:12px}
 #stories .room-heading .room-heading-copy p,#relay .room-heading .room-heading-copy>p,#poetry .room-heading .room-heading-copy>p,#series .room-heading .room-heading-description{font-size:14px}
 #stories .room-heading .room-heading-guide p,#relay .room-heading .room-heading-guide p,#poetry .room-heading .room-heading-guide p,#series .room-heading .room-heading-guide p{font-size:13px}
 #stories.story-classroom .weekly-frame{flex:auto;min-height:0}
 #relay.story-classroom .relay-manuscript{min-height:600px}
 #relay.daily-integrated .daily-relay-surface{overflow:visible}
 #relay.daily-integrated .relay-entry{gap:8px;grid-template-columns:21px minmax(0,1fr)}
 #relay.daily-integrated .relay-entry-body>p{font-size:23px}
 #relay.daily-integrated .relay-first-entry .relay-entry-body>p{font-size:20px}
 #poetry.daily-integrated .poetry-grid{max-width:none;grid-template-columns:minmax(0,1fr);gap:17px}
}

/* Override legacy room-specific type rules inside this one shared component. */
.room-heading .room-heading-guide p{font-weight:400!important;font-size:14px!important;line-height:1.85!important;color:#5d604d!important}
#stories.story-classroom .weekly-frame{display:flex;flex-direction:column}
#stories.story-classroom .weekly-frame #room-memo-board{flex:1;min-height:0;height:auto}
.daily-load-status:empty{display:none}
#stories.story-classroom .story-wall-footer{display:flex;justify-content:space-between;gap:12px;line-height:1.6}
#stories .legacy-note-button{font-size:11px;margin-top:12px;padding:6px 0;text-align:left}
@media(max-width:720px){.room-heading .room-heading-guide p{font-size:13px!important}#stories.story-classroom .weekly-frame #room-memo-board{flex:auto}#stories.story-classroom .story-wall-footer{display:block}}

/* Retain the light room surround from the approved reference screens. */
#stories.story-classroom{background:#fcfbf7}
#relay.story-classroom{background:#f8f6ee}
#poetry.story-classroom{background:#faf8f0}
#series .library-gallery-tools{margin-left:auto}
@media(min-width:721px){
 #series .library-content.is-library-shelf{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 44px minmax(0,1fr) auto;gap:12px}
 #series .is-library-shelf>.room-heading{grid-row:1;grid-column:1;margin-bottom:0}
 #series .is-library-shelf>.library-breadcrumb{grid-row:2;grid-column:1;justify-self:start;align-self:center}
 #series .is-library-shelf>.library-shelf-actions{grid-row:2;grid-column:1;justify-self:end;width:auto;align-self:center}
 #series .is-library-shelf>.personal-work-shelf{grid-row:3;grid-column:1;container-type:size;min-height:0;display:flex;flex-direction:column}
 #series .is-library-shelf>.classroom-footnote{grid-row:4;grid-column:1}
 #series .library-bookcase-stage{--case-height:min(380px,calc(100cqh - 58px));flex:none}
 #series .library-bookcase-controls{flex:none}
}
@media(min-width:721px){
 #series .is-library-shelf>.personal-work-shelf{align-items:stretch}
 #series .library-bookcase-stage,#series .library-bookcase-controls{box-sizing:border-box;width:100%}
 #series .library-bookcase-stage{--case-height:min(380px,calc(100cqh - 84px))}
 #series .library-bookcase-stage .library-cover-name{font-size:clamp(10px,calc(var(--case-height)*.06),21px);line-height:1.4}
 #series .library-bookcase-controls>.work-cover-wrap{gap:4px}
 #series .library-bookcase-controls .work-cover-theme{font-size:10px;line-height:1.3}
}

@media(min-width:721px){#series .library-bookcase-stage .library-cover-meta{font-size:clamp(7px,calc(var(--case-height)*.035),11px);line-height:1.3;padding:3px 2px}}

/* Shared masthead: metadata, graphite outer edge and subtitle share one origin. */
#stories .room-heading,#relay .room-heading,#poetry .room-heading,#series .room-heading{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:28px;align-items:stretch;min-height:152px}
#stories .room-heading .room-heading-copy,#relay .room-heading .room-heading-copy,#poetry .room-heading .room-heading-copy,#series .room-heading .room-heading-copy{display:flex;flex-direction:column;justify-content:space-between;min-height:152px}
#stories .room-heading .room-heading-copy>div:first-child{display:flex;flex-direction:column;justify-content:space-between;min-height:152px}
#stories .room-heading .topic-dateline,#relay .room-heading .relay-topic-meta,#poetry .room-heading .poetry-dateline,#series .room-heading .library-context-label{font-size:16px;color:#5e5b4e;font-weight:600;transform:none}
#stories:not(.viewing-archive) #story-wall-topic,#relay.daily-integrated #relay-round-title,#poetry.daily-integrated #poetry-topic-title,#series.story-classroom .pencil-topic-title{font-size:36px;line-height:1.35;margin:12px 0;padding:.12em .5em .18em;left:0;transform:none}
#stories .room-heading .room-heading-copy p,#relay .room-heading .room-heading-copy>p,#poetry .room-heading .room-heading-copy>p,#series .room-heading .room-heading-description{font-size:17px;line-height:1.65;color:#454b3c;font-weight:500;transform:none}
#series .room-heading .library-context-label{font-size:16px;line-height:1.6;font-weight:600}
#stories .room-heading .room-heading-guide,#relay .room-heading .room-heading-guide,#poetry .room-heading .room-heading-guide,#series .room-heading .room-heading-guide{align-self:stretch;justify-content:space-between;min-height:152px;padding:0 0 0 22px;border-left:1px solid #8b83666b;gap:14px}
.room-heading .room-heading-guide p{font-size:17px!important;line-height:1.65!important;font-weight:500!important;color:#454b3c!important}
/* A hidden guide control must not leave an implicit extra grid column. */
.room-heading-copy .topic-pin{display:none}
#poetry.daily-integrated .poetry-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#poetry.daily-integrated .poetry-paper{min-height:230px;padding:22px 15px 16px}
.relay-slot{width:100%;box-sizing:border-box;background:none;border:0;border-bottom:1px solid #b7a98a55;text-align:left;color:#888575;cursor:default}
.relay-slot:disabled{opacity:1}
.relay-slot.is-current{color:#47563e;cursor:pointer;background:#ebe9dc66}
.relay-slot.is-current:hover{background:#e4e5d8}
.relay-slot-copy{font:400 18px/1.8 'Gowun Batang',serif}
.memo-ai-example:disabled{opacity:1;cursor:default}
.memo-ai-example .memo-time{font-size:10px}
#poetry.daily-integrated .poetry-ai-example{border-color:#d9cfb9;box-shadow:inset 0 2px #d8c9a9,0 5px 10px #5149341a,0 1px 2px #51493412}
#poetry.daily-integrated .poetry-ai-example .poetry-paper-footer small{color:#8a684b;letter-spacing:.01em}
.daily-dialog select{display:block;width:100%;min-height:44px;margin:8px 0 18px;font:inherit;padding:10px;background:#fffdf5;border:1px solid #afb69d;color:#35412e}
@media(max-width:1050px) and (min-width:721px){.room-heading .room-heading-guide p{font-size:15px!important}#stories .room-heading,#relay .room-heading,#poetry .room-heading,#series .room-heading{gap:22px}}
@media(max-width:720px){
 #stories .room-heading,#relay .room-heading,#poetry .room-heading,#series .room-heading{grid-template-columns:minmax(0,1fr);gap:20px;min-height:0}
 #stories .room-heading .room-heading-copy,#relay .room-heading .room-heading-copy,#poetry .room-heading .room-heading-copy,#series .room-heading .room-heading-copy,#stories .room-heading .room-heading-copy>div:first-child{min-height:0;gap:0}
 #stories .room-heading .room-heading-guide,#relay .room-heading .room-heading-guide,#poetry .room-heading .room-heading-guide,#series .room-heading .room-heading-guide{min-height:0;gap:10px;padding-left:12px}
 #stories:not(.viewing-archive) #story-wall-topic,#relay.daily-integrated #relay-round-title,#poetry.daily-integrated #poetry-topic-title,#series.story-classroom .pencil-topic-title{font-size:30px}
 .room-heading .room-heading-guide p{font-size:15px!important;line-height:1.7!important}
 #poetry.daily-integrated .poetry-grid{grid-template-columns:minmax(0,1fr)}
}
