/* One shared layout, with restrained room-specific ink and paper. */
.story-classroom.room-system:is(#stories,#relay,#poetry,#series){--room-accent:#52634b;--room-board:#eceee4;--room-heading-height:190px;display:grid;grid-template-columns:234px minmax(0,1fr);gap:26px;padding:28px max(28px,3.5vw) 24px;background:#f5f3ec;box-sizing:border-box;min-width:0}
.story-classroom.room-system#relay{--room-accent:#77614d;--room-board:#eee9df}.story-classroom.room-system#poetry{--room-accent:#65657d;--room-board:#eeecf0}.story-classroom.room-system#series{--room-accent:#496b6a;--room-board:#e8eeea}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series)::before{display:none}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series)>.story-sidebar{display:flex;flex-direction:column;align-self:stretch;min-width:0;margin:0;padding:0;background:none;border:0;box-shadow:none;overflow:auto;scrollbar-width:thin}
.story-classroom.room-system .story-sidebar::before{display:none}
.story-classroom.room-system .room101-menu-heading{box-sizing:border-box;position:relative;flex:none;height:var(--room-heading-height);margin:0;padding:22px;background:linear-gradient(110deg,#fffef9f5,#fcfaf2f5),url('assets/natural-note-paper.webp');border:1px solid #ddd8c9;border-radius:5px;box-shadow:0 1px #eee9dc,0 3px #dad4c3,0 7px 16px #51493410}
.story-classroom.room-system .room101-menu-heading::before{content:'';position:absolute;top:0;left:22px;width:36px;height:4px;background:var(--room-accent)}
.story-classroom.room-system .room101-menu-heading .room-eyebrow{font:500 13px/1.5 'Gowun Dodum',sans-serif;color:#767666;margin:0 0 13px}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room101-menu-heading h2{font:700 27px/1.35 'Gowun Batang',serif;letter-spacing:-.06em;color:var(--room-accent);margin:0}
.story-classroom.room-system .room101-menu-heading :is(.room-introduction,.room101-introduction){font:400 15px/1.6 'Gowun Dodum',sans-serif;color:#747667;margin:12px 0 0;word-break:keep-all}
.story-classroom.room-system .story-sidebar .room-topic-area{box-sizing:border-box;margin:22px 0 0;padding:18px 20px;background:linear-gradient(110deg,#fffef9ee,#f8f5eaee),url('assets/natural-note-paper.webp');border:1px solid #ded8c8;border-radius:5px;box-shadow:0 2px #e9e3d6,0 3px #d8d0bc,0 6px 13px #5b4c2a0d}
.story-classroom.room-system .daily-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
.story-classroom.room-system .daily-controls :is(input,select),.room-system #library-search,.room-system #library-sort{box-sizing:border-box;width:100%;min-width:0;min-height:39px;padding:8px 10px;border:1px solid #cbcabb;border-radius:4px;background:#fffef9;font:14px/1.5 'Gowun Dodum',sans-serif;color:#4f5948}
.story-classroom.room-system :is(.daily-period-label,.small-copy,.room-side-guidance){font:13px/1.7 'Gowun Dodum',sans-serif;color:#727766}
.story-classroom.room-system .paper-submit{width:100%;min-height:46px;margin:10px 0 0;border:0;border-radius:4px;background:linear-gradient(#718168,var(--room-accent));box-shadow:inset 0 1px #fff5,0 2px 3px #293d2320;color:#fffdf4;font:600 16px 'Gowun Dodum',sans-serif}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series)>:is(.weekly-wall-area,.relay-manuscript,.poetry-content,.library-content){box-sizing:border-box;display:flex!important;flex-direction:column;align-self:stretch;min-width:0;min-height:0;margin:0;padding:0!important;background:linear-gradient(145deg,#ffffff35,transparent),var(--room-board);border:1px solid #dbd9cc;border-radius:6px;box-shadow:inset 0 1px #fffc,0 5px 16px #4a4a3510;overflow:hidden}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading{box-sizing:border-box;position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(310px,1.08fr);align-items:center;gap:25px;flex:none;width:100%;height:var(--room-heading-height);min-height:var(--room-heading-height);max-width:none;margin:0 0 22px;padding:24px 27px;background:linear-gradient(110deg,#fffef9fa,#fcfaf2fa),url('assets/natural-note-paper.webp');border:0;border-bottom:1px solid #d8d3c4;border-radius:5px 5px 0 0;box-shadow:0 2px #e0dbca,0 6px 13px #5b4c2a0c;transform:none}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading>.room-heading-copy{grid-column:1;grid-row:1;position:static;display:block;width:100%;min-width:0;max-width:none;margin:0;padding:0!important;transform:none}
.story-classroom.room-system .room-heading :is(.topic-dateline,.relay-topic-meta,.poetry-dateline,.library-context-label){display:flex;gap:9px;flex-wrap:wrap;margin:0 0 12px;font:400 13px/1.5 'Gowun Dodum',sans-serif;color:#7e7c6c}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading h3{position:relative;left:auto;display:block;width:auto;max-width:100%;margin:0 0 11px!important;padding:0!important;background:none;font:700 clamp(29px,2.45vw,37px)/1.35 'Gowun Batang',serif;letter-spacing:-.055em;text-align:left;color:var(--room-accent);transform:none!important;word-break:keep-all;overflow-wrap:anywhere}
.story-classroom.room-system .room-heading h3::before,.room-system .room-heading .graphite-fill,.room-system .topic-pin{display:none!important}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading .room-heading-copy>p:not(.library-context-label),.room-system #weekly-topic-description{font:400 16px/1.6 'Gowun Dodum',sans-serif;color:#777969;margin:0;padding:0}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading>.room-heading-guide{grid-column:2;grid-row:1;position:static!important;display:flex;flex-direction:column;justify-content:center;align-self:stretch;gap:7px!important;box-sizing:border-box;min-width:0;max-width:none;width:100%;margin:0;padding:0 0 0 24px!important;border:0!important;border-left:1px solid #d9d7c9!important;background:none;transform:none!important}
.story-classroom.room-system .room-guide-heading-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 3px}
.story-classroom.room-system .room-guide-title{font:600 13px/1.5 'Gowun Dodum',sans-serif;color:var(--room-accent);margin:0;letter-spacing:.02em}
.story-classroom.room-system .room-participation-reward{display:inline-flex;align-items:baseline;gap:4px;padding:3px 6px;background:#eaece2;border:0;border-radius:3px;box-shadow:none;font:12px/1.5 'Gowun Dodum',sans-serif;color:#69715c;white-space:nowrap}
.story-classroom.room-system .room-participation-reward .sp-amount{font-size:13px}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading-guide>p{display:flex;align-items:baseline;gap:8px;margin:0!important;min-height:0;padding:0;font:400 15px/1.65 'Gowun Dodum',sans-serif!important;color:#59604f;word-break:keep-all}
.story-classroom.room-system .room-heading-guide>p::before{content:'';flex:0 0 4px;width:4px;height:4px;border-radius:50%;background:var(--room-accent);align-self:flex-start;margin-top:10px;opacity:.65}
.story-classroom.room-system .room-heading-guide>p:last-child::before{background:#af795f}
.room-system .daily-load-status:empty{display:none}.room-system .daily-load-status{font-size:14px;padding-inline:24px}
/* 102: a real manuscript, not a photograph of a desk. */
#relay.room-system .relay-manuscript-body{display:flex;min-height:0;flex:1;padding:0 26px 20px;overflow:hidden}
#relay.room-system .daily-stories{overflow:auto;min-height:0;flex:1;padding:0 6px 20px;scrollbar-width:thin;background:linear-gradient(#fffdf8ed,#fffdf8ed),url('assets/natural-note-paper.webp');border-radius:3px;box-shadow:0 2px 6px #5b4c2a0c}
#relay.room-system .daily-story>h3{font:13px/1.5 'Gowun Dodum',sans-serif;letter-spacing:.04em;color:#8a7c68;margin:0;padding:15px 21px;border-bottom:1px solid #d9d2c3}
#relay.room-system .relay-entry{box-sizing:border-box;display:grid;grid-template-columns:33px minmax(0,1fr);gap:15px;margin:0;padding:17px 22px;border:0;border-bottom:1px solid #ddd7c955;background:transparent;box-shadow:none;width:100%;text-align:left;min-height:68px}
#relay.room-system .relay-entry-number{font:12px/2 Georgia,serif;color:#b19c7b}
#relay.room-system .relay-entry-body>p{font:24px/1.55 GangwonHyeonok,'Gowun Batang',serif;color:#514c40;margin:0}
#relay.room-system .relay-first-entry .relay-entry-body>p{font:21px/1.65 'Gowun Batang',serif;color:#504936}
#relay.room-system .relay-entry-credit{font-size:12px;margin-top:4px;color:#8b887b}
#relay.room-system .relay-slot{font:16px/1.7 'Gowun Dodum',sans-serif;color:#aaa492;opacity:1;border-radius:0}
#relay.room-system .relay-slot.is-current{background:#ece5d566;color:#746246;box-shadow:inset 3px 0 #ad9470;cursor:pointer}
/* 103: each card holds three lines, with a deliberate, bounded width. */
#poetry.room-system .poetry-scroll{min-height:0;flex:1;padding:0 25px 24px;overflow:auto}
#poetry.room-system .poetry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px 18px;align-content:start}
#poetry.room-system .poetry-paper{box-sizing:border-box;width:100%;min-width:0;min-height:245px;padding:22px 18px 14px;background:linear-gradient(135deg,#fffdf7eb,#f9f4e8eb),url('assets/natural-note-paper.webp');border:1px solid #ded9cd;border-radius:3px 3px 6px 3px;box-shadow:inset 0 1px #fff,1px 3px 0 #e2dccd,2px 8px 12px -6px #51493440;transform:none}
#poetry.room-system .poetry-lines{display:flex;flex-direction:column;gap:12px;min-width:0;width:100%;border:0;background:none;padding:0;text-align:left}
#poetry.room-system .poetry-line{display:grid;grid-template-columns:23px minmax(0,1fr);gap:10px;align-items:start}
#poetry.room-system .poetry-letter{font:700 21px/1.6 'Gowun Batang',serif;color:var(--room-accent);border:0}
#poetry.room-system .poetry-line p{font:22px/1.5 GangwonHyeonok,serif;margin:0;word-break:keep-all;overflow-wrap:anywhere}
#poetry.room-system .poetry-paper-footer{margin-top:17px;font-size:12px}.room-system .daily-like{font:13px 'Gowun Dodum',sans-serif;color:#958572;border:0;background:none;padding:4px}
#poetry.room-system .poetry-blank{color:#969583;gap:12px;font:14px/1.7 'Gowun Dodum',sans-serif}
#poetry.room-system .poetry-blank-lines{display:flex;gap:18px;font:700 24px 'Gowun Batang',serif;color:#c3bdaf}
/* 104 retains its illustrated doors and book objects in the shared paper layout. */
#series.room-system .library-content>:not(.room-heading){margin-left:25px;margin-right:25px}
#series.room-system .library-context-heading{flex:none}
#series.room-system .library-room-grid{gap:24px}
#series.room-system .room-topic-button{font-size:15px;min-height:43px}
#series.room-system #library-search-tools label{font-size:13px;margin:15px 0 7px}
#series.room-system #library-search-tools select{margin-top:9px}
#series.room-system .room-side-guidance{padding:0 18px}
@media(min-width:721px) and (max-width:1100px){.story-classroom.room-system:is(#stories,#relay,#poetry,#series){grid-template-columns:200px minmax(0,1fr);gap:20px;padding-inline:24px;--room-heading-height:240px}.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading{grid-template-columns:minmax(0,1fr);gap:15px;padding:20px 22px}.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading>.room-heading-guide{grid-column:1;grid-row:2;padding:12px 0 0!important;border-left:0!important;border-top:1px solid #d9d7c9!important}#poetry.room-system .poetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.story-classroom.room-system:is(#stories,#relay,#poetry,#series){display:block;padding:18px 16px 24px;height:auto;min-height:0}.story-classroom.room-system:is(#stories,#relay,#poetry,#series)>.story-sidebar{overflow:visible}.story-classroom.room-system .room101-menu-heading{height:auto;padding:20px}.story-classroom.room-system .room101-menu-heading h2{font-size:25px!important}.story-classroom.room-system .room101-menu-heading h2 span{display:inline}.story-classroom.room-system .room101-menu-heading :is(.room-introduction,.room101-introduction){font-size:14px}.story-classroom.room-system .story-sidebar .room-topic-area{margin-top:15px;padding:15px}.story-classroom.room-system .daily-controls{grid-template-columns:1fr 1fr}.story-classroom.room-system:is(#stories,#relay,#poetry,#series)>:is(.weekly-wall-area,.relay-manuscript,.poetry-content,.library-content){margin-top:20px}.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading{height:auto;min-height:0;grid-template-columns:1fr;gap:18px;padding:22px 20px}.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading>.room-heading-guide{grid-column:1;grid-row:2;padding:16px 0 0!important;border-left:0!important;border-top:1px solid #d9d7c9!important}.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading h3{font-size:30px}.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading-guide>p{font-size:14px!important;line-height:1.7!important}#poetry.room-system .poetry-scroll{padding:0 17px 24px}#poetry.room-system .poetry-grid{grid-template-columns:1fr;gap:19px}#poetry.room-system .poetry-paper{min-height:215px;padding:23px}#poetry.room-system .poetry-line p{font-size:24px}#relay.room-system .relay-manuscript-body{padding:0 15px 20px}#relay.room-system .relay-entry{padding:15px;gap:10px}#relay.room-system .daily-stories{overflow:visible}#series.room-system .library-content>:not(.room-heading){margin-inline:16px}}
/* Reveal motion must never offset the two aligned heading sheets. */
.story-classroom.room-system:is(#stories,#relay,#poetry,#series)>.story-sidebar{transform:none!important;opacity:1}
#relay.room-system .room-heading h3{font-size:clamp(25px,2.15vw,33px)}
/* Stable optical sizes across all four room mastheads. */
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading>.room-heading-copy{display:flex!important;flex-direction:column;justify-content:center;align-self:stretch}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading :is(.topic-dateline,.relay-topic-meta,.poetry-dateline,.library-context-label){font:400 13px/1.5 'Gowun Dodum',sans-serif!important;margin:0 0 12px!important}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading h3{font:700 32px/1.35 'Gowun Batang',serif!important}
#stories.room-system:not(.viewing-archive) .weekly-frame{container-type:inline-size;flex:1!important;min-height:0!important;height:auto!important;max-height:none!important;margin:0 25px!important}
#stories.room-system:not(.viewing-archive) .weekly-frame #room-memo-board{--tile:calc((100cqw - 42px)/3);display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:calc(var(--tile)/1.12);gap:23px 18px;padding:7px 3px 26px;height:100%;overflow:auto;align-content:start}
#stories.room-system:not(.viewing-archive) .weekly-frame .memo-paper:nth-child(n){width:100%!important;height:auto!important;aspect-ratio:1.12}
@media(min-width:1450px){#stories.room-system:not(.viewing-archive) .weekly-frame #room-memo-board{--tile:calc((100cqw - 66px)/4);grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:720px){.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading h3{font-size:30px!important}#stories.room-system:not(.viewing-archive) .weekly-frame{flex:none!important;height:510px!important;margin:0 16px!important}#stories.room-system:not(.viewing-archive) .weekly-frame #room-memo-board{--tile:calc((100cqw - 24px)/2);grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px}}
/* The left edge is fixed, including the old 101 banner's nested flex rules. */
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading>.room-heading-copy{align-items:flex-start!important;text-align:left!important}
.story-classroom.room-system .room-heading .room-heading-copy>:is(h3,p,div){box-sizing:border-box;width:100%!important;align-self:stretch!important;text-align:left!important}
#stories.room-system .room-heading .room-heading-copy>.topic-dateline{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:baseline!important;gap:9px!important}
#stories.room-system .room-heading #weekly-topic-description{text-align:left!important}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading>.room-heading-copy{gap:0!important}
.story-classroom.room-system .room-heading .room-heading-copy>*{flex:none!important}
.story-classroom.room-system .room-heading .room-heading-copy>:is(.topic-dateline,.relay-topic-meta,.poetry-dateline,.library-context-label){min-height:20px!important}
#stories.room-system.story-classroom #story-wall-topic{margin-bottom:11px!important;font:700 32px/1.35 'Gowun Batang',serif!important}
#stories.room-system #weekly-topic-description{font:400 16px/1.6 'Gowun Dodum',sans-serif!important}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading h3.room-title-long{font-size:26px!important;line-height:1.35!important}
@media(max-width:720px){.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room-heading h3.room-title-long{font-size:27px!important}}
/* 103: actual landscape 16:9 cards; column count follows readable line width. */
#poetry.room-system .poetry-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr));grid-auto-rows:auto;gap:24px}
#poetry.room-system .poetry-paper{position:relative;display:flex;flex-direction:column;justify-content:center;width:100%;height:auto!important;min-height:0!important;max-height:none;aspect-ratio:16/9;padding:28px 32px 48px;container-type:inline-size}
#poetry.room-system .poetry-lines{flex:none;gap:12px}
#poetry.room-system .poetry-line{grid-template-columns:29px minmax(0,1fr);gap:16px;align-items:baseline}
#poetry.room-system .poetry-letter{font-size:26px;line-height:1.4}
#poetry.room-system .poetry-line p{font:26px/1.4 GangwonHyeonok,serif;white-space:nowrap;word-break:normal;overflow-wrap:normal;margin:0;min-width:0}
#poetry.room-system .poetry-paper-footer{position:absolute;left:32px;right:32px;bottom:17px;margin:0;font-size:13px}
#poetry.room-system .poetry-blank{padding:24px;gap:12px}
#poetry.room-system .poetry-blank-lines{position:static;display:flex;flex-direction:row;gap:28px;font:700 27px 'Gowun Batang',serif;opacity:.45}
@media(max-width:720px){#poetry.room-system .poetry-grid{grid-template-columns:minmax(0,1fr);gap:20px}#poetry.room-system .poetry-paper{padding:17px 20px 36px;aspect-ratio:16/9}#poetry.room-system .poetry-lines{gap:7px}#poetry.room-system .poetry-line{grid-template-columns:20px minmax(0,1fr);gap:9px}#poetry.room-system .poetry-letter{font-size:20px}#poetry.room-system .poetry-line p{font-size:20px;line-height:1.3}#poetry.room-system .poetry-paper-footer{left:20px;right:20px;bottom:9px;font-size:11px}#poetry.room-system .poetry-blank{padding:14px;gap:8px}#poetry.room-system .poetry-blank-lines{gap:22px;font-size:22px}}
/* A compact landscape pair where the measured 20-character line fits. */
#poetry.room-system .poetry-scroll{container-type:inline-size;container-name:poetry-shelf}
#poetry.room-system .poetry-grid{grid-template-columns:minmax(0,1fr)}
#poetry.room-system .poetry-paper{padding:20px 20px 36px}
#poetry.room-system .poetry-lines{gap:6px}
#poetry.room-system .poetry-line{grid-template-columns:24px minmax(0,1fr);gap:12px}
#poetry.room-system .poetry-letter{font-size:24px}
#poetry.room-system .poetry-line p{font-size:24px;line-height:1.35}
#poetry.room-system .poetry-paper-footer{left:20px;right:20px;bottom:10px;font-size:12px}
@container poetry-shelf (min-width:684px){#poetry.room-system .poetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#poetry.room-system .poetry-paper{padding:17px 20px 36px}#poetry.room-system .poetry-lines{gap:7px}#poetry.room-system .poetry-line{grid-template-columns:20px minmax(0,1fr);gap:9px}#poetry.room-system .poetry-letter{font-size:20px}#poetry.room-system .poetry-line p{font-size:20px;line-height:1.3}#poetry.room-system .poetry-paper-footer{font-size:11px}}
#poetry.room-system .poetry-paper-footer{box-sizing:border-box;padding:0;min-height:0;height:auto;border:0;background:none;box-shadow:none;transform:none;line-height:1.5}
/* Wide 16:9 desktops: three readable cards, each retaining its 16:9 shape. */
@container poetry-shelf (min-width:1040px){#poetry.room-system .poetry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* A three-line verse slip: an indented initial column and ruled writing lanes. */
#poetry.room-system .poetry-paper:not(.poetry-blank){background:linear-gradient(100deg,#f1ebdf55,transparent 13%,transparent 94%,#dfd6c52b),linear-gradient(135deg,#fffdf8ed,#f8f3e8ed),url('assets/natural-note-paper.webp');border-top:3px solid #88849b;border-radius:2px 2px 5px 2px;padding:24px 34px 41px;box-shadow:inset 0 1px #fff,0 2px #e7e1d3,0 4px #d9d2c2,2px 9px 13px -7px #51493445}
#poetry.room-system .poetry-paper:not(.poetry-blank)::before{content:'';position:absolute;top:0;bottom:0;left:21px;width:1px;background:#b7abb04a;pointer-events:none}
#poetry.room-system .poetry-lines{box-sizing:border-box;width:100%;max-width:450px;margin-inline:auto!important;padding:0 9px 0 15px!important;gap:10px}
#poetry.room-system .poetry-line{grid-template-columns:27px minmax(0,1fr);gap:14px;padding-bottom:4px;position:relative}
#poetry.room-system .poetry-line::after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,#aaa0a34d,#aaa0a32b 85%,transparent)}
#poetry.room-system .poetry-letter{color:#68647c;font-weight:700}
#poetry.room-system .poetry-paper-footer{left:49px;right:34px}
@media(max-width:720px){#poetry.room-system .poetry-paper:not(.poetry-blank){padding:16px 20px 35px}#poetry.room-system .poetry-paper:not(.poetry-blank)::before{left:12px}#poetry.room-system .poetry-lines{padding:0 0 0 7px!important;gap:5px}#poetry.room-system .poetry-line{grid-template-columns:20px minmax(0,1fr);gap:9px;padding-bottom:2px}#poetry.room-system .poetry-paper-footer{left:27px;right:20px}}
#poetry.room-system .poetry-lines{max-width:340px}
#poetry.room-system .poetry-grid{grid-template-columns:minmax(0,1fr)}
@container poetry-shelf (min-width:800px){#poetry.room-system .poetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container poetry-shelf (min-width:1240px){#poetry.room-system .poetry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
#poetry.room-system .poetry-blank{border-top:3px solid #b7b3c13d}
/* Twenty manuscript cells, three separate writing strips, equal side margins. */
#poetry.room-system .poetry-paper:not(.poetry-blank){padding:22px 24px 40px}
#poetry.room-system .poetry-paper:not(.poetry-blank)::before{display:none}
#poetry.room-system .poetry-lines{display:flex;flex-direction:column;box-sizing:border-box;width:100%;max-width:none;margin:0!important;padding:0!important;gap:13px}
#poetry.room-system .poetry-line{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));gap:0;width:100%;padding:0;margin:0;border:1px solid #b3a4a34d;background:#fffefa66}
#poetry.room-system .poetry-line::after{display:none}
#poetry.room-system .poetry-character{display:grid;place-items:center;min-width:0;aspect-ratio:1/1.18;border-right:1px solid #b3a4a340;font:24px/1 GangwonHyeonok,serif;color:#514c44}
#poetry.room-system .poetry-character:last-child{border-right:0}
#poetry.room-system .poetry-initial{background:#dcd7e24d;color:#68647c;font-weight:700}
#poetry.room-system .poetry-paper-footer{left:24px;right:24px}
@media(max-width:720px){#poetry.room-system .poetry-paper:not(.poetry-blank){padding:17px 16px 35px}#poetry.room-system .poetry-lines{gap:11px}#poetry.room-system .poetry-character{font-size:19px}#poetry.room-system .poetry-paper-footer{left:16px;right:16px}}
#poetry.room-system .poetry-line{align-items:stretch!important}
#poetry.room-system .poetry-character{box-sizing:border-box;display:flex;align-items:center;justify-content:center;align-self:stretch;aspect-ratio:1/1;line-height:1}
/* Five ruled strips: the outer two recede around the three written lines. */
#poetry.room-system .poetry-lines{gap:10px}
#poetry.room-system .poetry-character{font-weight:400}
#poetry.room-system .poetry-initial{background:transparent;color:#34323f;font-size:inherit;font-weight:400}
#poetry.room-system .poetry-initial.poetry-character{font:24px/1 GangwonHyeonok,serif}
#poetry.room-system .poetry-ghost-row{opacity:.23;background:transparent;pointer-events:none}
@media(max-width:720px){#poetry.room-system .poetry-lines{gap:6px}#poetry.room-system .poetry-initial.poetry-character{font-size:19px}}
/* Initials share the handwriting and size; only the muted terracotta ink differs. */
#poetry.room-system .poetry-initial.poetry-character{color:#925c4b;background:transparent;font-weight:400}
/* 104: preserve the illustrated doors; refine the hardware, plaque and depth. */
#series.room-system .library-door{border-radius:3px;box-shadow:1px 1px 1px #fff8,2px 5px 8px #3b2b1b25,5px 12px 16px -9px #3b2b1b50;transition:transform .2s ease,box-shadow .2s ease}
#series.room-system .library-door::before{content:'';display:block;position:absolute;inset:0;border:0;background:linear-gradient(110deg,#ffffff18,transparent 32%,transparent 84%,#322b1a0b);box-shadow:inset 0 1px #fff6;pointer-events:none}
#series.room-system .door-nameplate{left:13%;width:74%;right:auto;top:17.4%;height:8%;min-height:18px;padding:2px 6px;border:1px solid #a48659a6;border-radius:3px;background:linear-gradient(120deg,#f8efd9,#eee0bd 70%,#f6ebd0);box-shadow:inset 0 1px #fff9,0 2px 3px #49381f28;font:700 clamp(12px,.85vw,15px)/1.3 'Gowun Batang',serif;color:#5c4c32;letter-spacing:-.03em}
#series.room-system .library-door:hover{transform:perspective(900px) rotateY(-3deg) translateY(-2px);box-shadow:3px 7px 12px #3b2b1b25,7px 15px 18px -9px #3b2b1b50}
@media(max-width:720px){#series.room-system .door-nameplate{font-size:12px;min-height:20px}}
@media(prefers-reduced-motion:reduce){#series.room-system .library-door{transition:none}}

/* Empty and written sheets share the same five manuscript strips. */
#poetry.room-system .poetry-paper.poetry-blank{display:flex;flex-direction:column;justify-content:center;align-items:stretch;padding:22px 24px 40px;gap:0;position:relative}
#poetry.room-system .poetry-empty-manuscript{pointer-events:none}
#poetry.room-system .poetry-blank-invite{position:absolute;bottom:10px;left:24px;right:24px;display:flex;align-items:center;justify-content:center;gap:7px;font:13px/1.5 'Gowun Dodum',sans-serif;color:#888374}
#poetry.room-system .poetry-blank-invite .poetry-plus{font:20px/1 'Gowun Dodum',sans-serif;margin:0;padding:0}
#poetry.room-system .poetry-blank:hover .poetry-ghost-row{opacity:.35}
@media(max-width:720px){#poetry.room-system .poetry-paper.poetry-blank{padding:17px 16px 35px}#poetry.room-system .poetry-blank-invite{left:16px;right:16px;font-size:12px;bottom:8px}}


/* 101 mobile: square two-column notes with one shared writing baseline. */
@media(max-width:720px){
  #stories.room-system:not(.viewing-archive) .weekly-frame #room-memo-board{
    --tile:calc((100cqw - 24px)/2);
    grid-auto-rows:var(--tile)!important;
    gap:16px 12px!important;
    padding:5px 2px 15px!important;
  }
  #stories.room-system:not(.viewing-archive) .weekly-frame .memo-paper:nth-child(n){
    width:100%!important;
    height:auto!important;
    aspect-ratio:1/1!important;
  }
  #stories.room-system .weekly-frame .memo-paper .memo-writing-area{
    left:10%!important;
    top:27%!important;
    width:80%!important;
    height:65%!important;
    grid-template-rows:minmax(0,1fr) auto;
    gap:6px;
  }
  #stories.room-system .weekly-frame .memo-paper .memo-writing-area .memo-message{
    align-self:start;
    margin:0!important;
    font-size:19px!important;
    line-height:1.15!important;
    max-height:3.45em!important;
    -webkit-line-clamp:3!important;
  }
}
