/* Faithful production port of the approved 101–104 room preview frame. */
body[data-room-view]>.header,body[data-room-view]>.header{position:fixed!important;inset:0 0 auto!important;z-index:100;height:88px!important;min-height:88px!important;margin:0!important;padding:0 max(4%,calc((100vw - 1520px)/2))!important;width:100%!important;max-width:none!important;border-bottom:1px solid #dce2d9;background:linear-gradient(180deg,#fffefa,#fafbf7)!important;box-shadow:0 3px 12px #32473a0c}
body[data-room-view]>.header>nav,body[data-room-view]>.header>nav{justify-content:flex-start!important;margin-left:auto!important;gap:clamp(24px,3vw,48px)!important}
body[data-room-view]>.header>nav .approved-top-link,body[data-room-view]>.header>nav .approved-top-link{display:inline-flex!important;height:88px;position:relative;padding-inline:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#53635b;font:600 15px/1.2 'Gowun Batang',serif!important;text-decoration:none}
body[data-room-view]>.header>nav .approved-top-link.is-active:after,body[data-room-view]>.header>nav .approved-top-link.is-active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:#668477}
body[data-room-view]>.header>nav #account-button,body[data-room-view]>.header>nav #account-button{margin-left:auto!important}
body[data-room-view] main>.picture-tabs.room-entrances,body[data-room-view] main>.picture-tabs.room-entrances{display:none!important}
body[data-room-view] main>.story-classroom.room-system:is(#stories,#relay,#poetry,#series),body[data-room-view] main>.story-classroom.room-system:is(#stories,#relay,#poetry,#series){height:calc(100svh - 106px);min-height:0;padding:18px 40px 22px}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series){--room-heading-height:clamp(146px,21.65svh,210px);height:calc(100svh - 88px);min-height:620px;max-height:none;grid-template-columns:252px minmax(0,1fr);gap:24px;padding:18px 40px 22px;background:#f3f4ed}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series)>.story-sidebar{height:100%;gap:17px;overflow:auto;padding:0 2px 0 0}
.story-classroom.room-system .room101-menu-heading{height:var(--room-heading-height);padding:22px 23px;border-radius:7px;background:linear-gradient(115deg,#fffffc,#f9fcf8 65%,#edf3f1);box-shadow:0 1px 2px #30412e08,0 5px 12px #34433008,inset 0 1px #fff}
.story-classroom.room-system#relay .room101-menu-heading:after{background:linear-gradient(90deg,#78979d,#d1e0db)}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series) .room101-menu-heading h2{font:700 26px/1.25 'Gowun Batang',serif;letter-spacing:-.04em}
.story-classroom.room-system .room101-menu-heading .room-eyebrow{font-size:9px;letter-spacing:1.8px;margin-bottom:0}
.story-classroom.room-system .room101-menu-heading .room-introduction{font-size:13px;line-height:1.65;margin-top:9px;color:#84948b}
.story-classroom.room-system .approved-room-menu{display:flex;flex:none;flex-direction:column;gap:5px;margin-top:14px;padding:16px 15px;border:1px solid #d7dfd8;border-radius:8px;background:linear-gradient(120deg,#fffffc,#f8fbf7 68%,#edf3f1);box-shadow:inset 0 1px #fff,0 3px 8px #34433008}
.story-classroom.room-system .approved-room-menu-label{margin:0 0 3px 3px;color:#87948a;font:500 10px/1.4 'Gowun Dodum',sans-serif;letter-spacing:.03em}
.story-classroom.room-system .approved-room-link{display:flex;align-items:center;gap:10px;min-width:0;min-height:43px;padding:6px 9px;border:1px solid transparent;border-radius:5px;color:#64736a;text-decoration:none;transition:background .15s,box-shadow .15s}
.story-classroom.room-system .approved-room-number{flex:0 0 25px;color:#819387;font:500 12px/1 Georgia,serif}
.story-classroom.room-system .approved-room-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.story-classroom.room-system .approved-room-copy strong{font:600 12px/1.35 'Gowun Batang',serif;color:#53635b}
.story-classroom.room-system .approved-room-copy small{font:400 9px/1.3 'Gowun Dodum',sans-serif;color:#97a198}
.story-classroom.room-system .approved-room-link:hover{background:#f3f6f1}
.story-classroom.room-system .approved-room-link.is-active{border-color:var(--room-accent);background:linear-gradient(125deg,color-mix(in srgb,var(--room-accent) 78%,white),var(--room-accent));box-shadow:inset 0 1px #ffffff55,0 2px 4px #304f551c;color:white}
.story-classroom.room-system .approved-room-link.is-active :is(.approved-room-number,.approved-room-copy strong,.approved-room-copy small){color:white}
.story-classroom.room-system .story-sidebar .room-topic-area{margin:0;padding:17px 19px;border-radius:8px;background:linear-gradient(115deg,#fffffc,#f9fcf8 65%,#edf3f1);box-shadow:0 1px 2px #30412e08,0 5px 12px #34433008,inset 0 1px #fff}
.story-classroom.room-system .story-sidebar>.room-topic-area{flex:none}
.story-classroom.room-system .daily-controls{grid-template-columns:1fr 1fr;gap:8px}
.story-classroom.room-system .daily-period-label{display:none}
.story-classroom.room-system .daily-reward-note{display:none}
.story-classroom.room-system .small-copy{font-size:11px;margin:8px 0}
.story-classroom.room-system .paper-submit{min-height:42px;margin-top:12px;font-size:13px}
.story-classroom.room-system :is(.room-topic-buttons,.room-topic-button){min-width:0}
.story-classroom.room-system:is(#stories,#relay,#poetry,#series)>.story-sidebar .room-topic-buttons{padding:0;background:transparent;border:0;box-shadow:none}
.story-classroom.room-system .room-topic-buttons .room-topic-button{min-height:45px;padding:6px 8px}
.story-classroom.room-system :is(.weekly-wall-area,.relay-manuscript,.poetry-content,.library-content){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden}
.story-classroom.room-system .room-heading{height:var(--room-heading-height);min-height:var(--room-heading-height);margin:0!important;padding:27px 31px!important;border:1px solid #d7ded1!important;border-radius:11px!important;background:linear-gradient(115deg,#fffffc,#f9fcf8 65%,#edf3f1)!important;box-shadow:0 1px 2px #30412e08,0 5px 12px #34433008,inset 0 1px #fff!important}
.story-classroom.room-system .room-heading :is(.room-heading-copy,.room-heading-guide){min-width:0}
.story-classroom.room-system .room-heading h3{font:400 clamp(32px,2.65vw,45px)/1.2 EssayHand,'Gowun Batang',serif!important;letter-spacing:-.02em!important;color:var(--room-accent)!important;margin:0 0 11px!important}
.story-classroom.room-system .room-heading .room-heading-copy>p{font-size:14px!important;line-height:1.6!important;color:#829079!important}
.story-classroom.room-system .room-heading-guide{justify-content:center!important;gap:10px!important;padding-left:25px!important;border-left:1px solid #dce2d4!important}
.story-classroom.room-system .room-guide-heading-row{margin-bottom:3px}
.story-classroom.room-system .room-guide-title{font-size:12px}
.story-classroom.room-system .room-participation-reward{font-size:10px;background:#e6efee;color:#70868b;padding:4px 6px}
.story-classroom.room-system .room-heading-guide>p{font-size:12px!important;line-height:1.5!important;color:#697e80!important}
.story-classroom.room-system .room-heading-guide>p:before{width:3px;height:3px;margin-top:7px}
.story-classroom.room-system#relay{--room-accent:#466a75;--room-board:#eff3f1}
.story-classroom.room-system#poetry{--room-accent:#746477;--room-board:#f3f1f0}
/* 102: the approved bound guestbook, with five entries on each page. */
#relay.room-system>.relay-manuscript{gap:20px;overflow:visible}
#relay.room-system .relay-topic-header{flex:none}
#relay.room-system .relay-manuscript-body{display:flex;flex:1;min-height:0;padding:0;overflow:hidden}
#relay.room-system .relay-board{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;padding:0 25px;border:1px solid #a4b3ac;border-radius:12px;background:linear-gradient(130deg,#f1f5f1,#e3ebe7);box-shadow:inset 0 1px #fff,inset 0 0 0 4px #a5b5af,inset 0 0 0 5px #7a8e87,inset 0 0 0 7px #f0f4ed,0 1px #7a8b84,0 3px #c8d4cb,0 5px 0 -1px #8f9e95,0 12px 19px -11px #425a5150;overflow:hidden}
#relay.room-system .relay-board:before{box-shadow:inset 0 3px 8px #5f7b6e17}
#relay.room-system .relay-board .board-top{display:flex;align-items:center;justify-content:space-between;height:50px;flex:none;border-color:#ccd7cf}
#relay.room-system .relay-board .board-top>div{display:flex;align-items:center;gap:10px;min-width:0}
#relay.room-system .relay-board .board-top h3{font-size:12px;color:#688279}
#relay.room-system .relay-board .live-dot{background:#789683;box-shadow:0 0 0 3px #d5e2d9}
#relay.room-system .relay-progress{display:flex;align-items:center;gap:13px;font-size:10px;color:#84958a}
#relay.room-system .progress-track{display:block;width:82px;height:3px;border-radius:3px;background:#d1dcd2}
#relay.room-system .progress-track>span{display:block;height:100%;border-radius:3px;background:#7e9e8b;transition:width .3s}
#relay.room-system .guestbook-viewport{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 5px 16px;scrollbar-width:thin;scrollbar-color:#b4c6bd transparent}
#relay.room-system .guestbook{display:flex;flex-direction:column;gap:18px;min-height:100%;border-radius:4px}
#relay.room-system .relay-story-spread{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex:1 0 100%;min-height:100%;perspective:1200px;border-radius:4px;background:linear-gradient(90deg,transparent calc(50% - 1px),#7d786210 49.9%,#5e624c26 50%,#fff9 50.4%,#797c6712 51%,transparent calc(50% + 1px)),#fdfcf4;box-shadow:0 2px 0 #dddace,0 4px 0 #f6f4e9,0 6px 0 #c8c9bc,0 13px 17px -10px #3b514858}
#relay.room-system .book-page{position:relative;display:flex;flex-direction:column;min-width:0;padding:14px 22px 16px;border:1px solid #d5d1c080;background:linear-gradient(100deg,#c5be9a0b,transparent 8%,transparent 92%,#8d826c0c),linear-gradient(#fffdf8dc,#fbf8eedc),url('/main-site/assets/natural-note-paper.webp') center/cover}
#relay.room-system .book-page:first-child{border-right:0;border-radius:4px 0 0 4px;padding-right:28px}
#relay.room-system .book-page:last-child{border-left:0;border-radius:0 4px 4px 0;padding-left:28px}
#relay.room-system .page-heading{display:flex;align-items:center;justify-content:space-between;flex:none;padding-bottom:10px;border-bottom:1px solid #e5e1d3;font-size:9px;letter-spacing:.7px;color:#a0a28e}
#relay.room-system .page-heading em{font:italic 12px Georgia,serif;color:#899b8c}
#relay.room-system .sentence-list{display:grid;grid-template-rows:repeat(5,minmax(0,1fr));flex:1;min-height:0;margin:0;padding:0;list-style:none}
#relay.room-system .sentence{position:relative;display:grid;grid-template-columns:26px minmax(0,1fr);align-content:center;gap:10px;min-width:0;min-height:0;padding:10px 0 8px;border-bottom:1px solid #d8d6c54f}
#relay.room-system .sentence:nth-child(5){border-bottom:0}
#relay.room-system .sentence-number{padding-top:1px;font:11px/1.8 Georgia,serif;letter-spacing:1px;color:#aab09b}
#relay.room-system .sentence-content{min-width:0}
#relay.room-system .sentence-text{margin:0;color:#4d5a4d;font:24px/1.25 EssayHand,'Gowun Batang',serif;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#relay.room-system .sentence.is-opening .sentence-text{font-size:24px;color:#526854}
#relay.room-system .sentence-credit{display:flex;align-items:center;gap:7px;min-height:10px;margin-top:4px;padding-right:40px;color:#a1a18e;font-size:8px;line-height:1.3}
#relay.room-system .credit-kind{color:#9ba68d;font-size:7px}
#relay.room-system .line-like{position:absolute;right:0;bottom:7px;padding:4px;border:0;background:transparent;color:#b1ab94;font-size:9px;white-space:nowrap}
#relay.room-system .line-like[aria-pressed=true]{color:#ad785c}
#relay.room-system .sentence.is-current{margin-inline:-10px;padding-inline:10px;border-bottom-color:transparent;border-radius:4px;background:linear-gradient(110deg,#edf2e2b3,#f2f5e980);box-shadow:inset 2px 0 #9db18d}
#relay.room-system .sentence.is-current .sentence-number{color:#7c946f}
#relay.room-system .slot-button{display:flex;flex-direction:column;gap:6px;align-items:flex-start;width:100%;padding:0;border:0;background:transparent;text-align:left;color:#768c69;cursor:pointer}
#relay.room-system .slot-topline{display:flex;align-items:center;gap:7px;color:#52674e;font:600 11px/1.4 system-ui,sans-serif}
#relay.room-system .writing-dot{width:4px;height:4px;border-radius:50%;background:#91a879}
#relay.room-system .slot-prompt{color:#344b39;font:600 15px/1.5 system-ui,sans-serif}
#relay.room-system .slot-helper{color:#58644f;font:400 11px/1.5 system-ui,sans-serif}
#relay.room-system .sentence.is-future .slot-prompt{color:#626d5e;font-weight:400}
#relay.room-system .relay-board .board-footer{display:flex;justify-content:space-between;flex:none;border-color:#ccd7cf;padding-block:12px;color:#8e9d90;font-size:9px}
#relay.room-system .daily-load-status:empty{display:none}
body[data-room-view] #bmti-floating-ad{display:none!important}
/* 103: same frame, three 16:9 manuscript cards. */
#poetry.room-system>.poetry-content{gap:20px;overflow:visible}
#poetry.room-system .poetry-scroll{display:flex;flex:1;min-height:0;overflow:auto;padding:23px 6px 29px;border:1px solid #a29a96;border-radius:12px;background:linear-gradient(130deg,#f2eeea,#e9e4e0);box-shadow:inset 0 1px #fff,inset 0 0 0 4px #b7aba5,inset 0 0 0 5px #958881,inset 0 0 0 7px #f7f2ec,0 1px #958881,0 3px #ddd2c9,0 5px 0 -1px #b1a297,0 12px 19px -11px #60504750;scrollbar-width:thin;scrollbar-color:#c3b5ac transparent}
#poetry.room-system .poetry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:25px 21px;width:100%}
#poetry.room-system .poetry-paper:not(.poetry-blank){position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;width:100%;min-width:0;min-height:0;aspect-ratio:16/9;padding:17px 18px 31px;border:1px solid #e1d9c8;border-top:2px solid #c5b3b6;border-radius:2px 2px 5px 2px;background:linear-gradient(100deg,#d8cdba0c,transparent 12%,transparent 94%,#b9ab9514),linear-gradient(145deg,#fffdf8ed,#fbf6e9eb),url('/main-site/assets/natural-note-paper.webp');box-shadow:inset 0 1px #fff,0 2px #eee7d8,0 4px #dcd3bf,2px 10px 12px -9px #66534466}
#poetry.room-system .poetry-lines{display:flex;flex-direction:column;justify-content:center;gap:clamp(5px,2.1cqw,9px);width:100%;max-width:none;margin:0;padding:0;border:0;background:none}
#poetry.room-system .poetry-line{display:grid;grid-template-columns:repeat(20,minmax(0,1fr));width:100%;border:1px solid #b58c7e57;background:#fffdf44d;position:relative}
#poetry.room-system .poetry-character{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;aspect-ratio:1/1;border-right:1px solid #b58c7e38;font:400 clamp(10px,5.9cqw,24px)/1 EssayHand,'Gowun Batang',serif;color:#544e45;white-space:nowrap}
#poetry.room-system .poetry-character:last-child{border-right:0}
#poetry.room-system .poetry-initial.poetry-character{color:#925c4b;background:transparent;font-weight:400}
#poetry.room-system .poetry-ghost-row{opacity:.23;background:transparent;pointer-events:none}
#poetry.room-system .poetry-paper-footer{position:absolute;left:18px;right:18px;bottom:9px;display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:13px;margin:0;font-size:8px;line-height:1.4;color:#a49b86}
#poetry.room-system .daily-like{border:0;background:transparent;color:#ae9b87;font-size:9px;padding:2px 3px}
#poetry.room-system .poetry-blank{aspect-ratio:16/9;min-height:0;border-top-color:#d5caca;opacity:.78}
#poetry.room-system .poetry-blank .poetry-empty-manuscript{display:flex;flex-direction:column;gap:clamp(5px,2.1cqw,9px);width:100%;opacity:.2}
@media(min-width:821px){#relay.room-system .sentence-text{font-size:24px}#relay.room-system .sentence.is-opening .sentence-text{font-size:24px}}
@media(max-width:1180px) and (min-width:821px){#relay.room-system .book-page{padding-inline:18px}#relay.room-system .sentence{gap:6px;grid-template-columns:21px minmax(0,1fr)}#relay.room-system .sentence-text,#relay.room-system .sentence.is-opening .sentence-text{font-size:18px}#poetry.room-system .poetry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
 body[data-room-view]>.header,body[data-room-view]>.header{height:58px!important;min-height:58px!important;padding-inline:12px!important}
 body[data-room-view]>.header>nav,body[data-room-view]>.header>nav{gap:12px!important}
 body[data-room-view]>.header>nav .approved-top-link,body[data-room-view]>.header>nav .approved-top-link{display:inline-flex!important;height:58px;font-size:12px!important}
 body[data-room-view] main>.story-classroom.room-system:is(#stories,#relay,#poetry,#series),body[data-room-view] main>.story-classroom.room-system:is(#stories,#relay,#poetry,#series){height:auto;min-height:0;padding:70px 12px 14px}
 .story-classroom.room-system:is(#stories,#relay,#poetry,#series){height:auto;min-height:0;max-height:none;padding:12px;display:flex;flex-direction:column;gap:10px;overflow:visible}
 .story-classroom.room-system:is(#stories,#relay,#poetry,#series)>.story-sidebar{display:contents}
 .story-classroom.room-system .room101-menu-heading{display:none}
 .story-classroom.room-system .approved-room-menu{order:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0;padding:6px}
 .story-classroom.room-system .approved-room-menu-label{display:none}
 .story-classroom.room-system .approved-room-link{justify-content:center;gap:4px;min-height:38px;padding:5px 3px}
 .story-classroom.room-system .approved-room-number{flex:none;font-size:10px}
 .story-classroom.room-system .approved-room-copy strong{font-size:10px;white-space:nowrap}
 .story-classroom.room-system .approved-room-copy small{display:none}
 .story-classroom.room-system .story-sidebar .room-topic-area{order:1;display:block;margin:0;padding:8px;border-radius:8px}
 .story-classroom.room-system .room-heading{order:2;height:auto;min-height:0;display:flex!important;flex-direction:column;gap:9px;padding:14px 17px!important;border-radius:9px!important}
 .story-classroom.room-system .room-heading .room-heading-copy{display:block!important}
 .story-classroom.room-system .room-heading h3{font-size:30px!important}
 .story-classroom.room-system .room-heading-guide{display:block;align-self:stretch;padding:8px 0 0!important;border:0!important;border-top:1px solid #dce2d4!important}
 #relay.room-system>.relay-manuscript,#poetry.room-system>.poetry-content{display:contents!important}
 #relay.room-system .relay-manuscript-body{order:3;display:block;overflow:visible}
 #relay.room-system .relay-board{min-height:0;padding:0 13px;border-radius:10px}
 #relay.room-system .relay-board .board-top{height:43px}
 #relay.room-system .guestbook-viewport{overflow:visible;padding:14px 3px 19px}
 #relay.room-system .guestbook{gap:14px}
 #relay.room-system .relay-story-spread{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;flex:none;background:#fdfcf4;box-shadow:0 2px #dfddcf,0 4px #f4f2e5,0 6px #c8ccba,0 10px 12px -8px #3b514838}
 #relay.room-system .book-page:first-child,#relay.room-system .book-page:last-child{padding:18px 18px 15px;border:1px solid #d5d1c080;border-radius:3px}
 #relay.room-system .book-page+.book-page{border-top:0}
 #relay.room-system .book-page:last-child .page-heading{display:none}
 #relay.room-system .sentence{grid-template-columns:23px minmax(0,1fr);gap:8px;min-height:82px;padding:15px 0 13px}
 #relay.room-system .sentence-text,#relay.room-system .sentence.is-opening .sentence-text{font-size:20px;line-height:1.35;white-space:normal}
 #relay.room-system .relay-board .board-footer{font-size:8px}
 #poetry.room-system .poetry-scroll{order:3;overflow:visible;padding:18px 4px 22px;border-radius:10px}
 #poetry.room-system .poetry-grid{grid-template-columns:minmax(0,1fr);gap:23px}
 #poetry.room-system .poetry-paper:not(.poetry-blank){padding:17px 17px 31px}
 #poetry.room-system .poetry-character{font-size:clamp(10px,5.9cqw,22px)}
}

/* 102 sidebar: exact approved prototype hierarchy and desktop dimensions. */
@font-face{font-family:EssayHand;src:url('/main-site/assets/gangwon-hyeonok.woff') format('woff');font-display:swap}
#relay.story-classroom.room-system{--room-heading-height:210px;font-family:'Apple SD Gothic Neo','Noto Sans KR',sans-serif;grid-template-columns:244px minmax(0,1fr);gap:24px}
#relay.story-classroom.room-system>.story-sidebar{display:flex;flex-direction:column;gap:17px;padding:0 2px 0 0;scrollbar-width:thin}
#relay.story-classroom.room-system .room101-menu-heading{position:relative;flex:none;height:210px;padding:22px 23px;border:1px solid #d3dedc;border-radius:12px;overflow:hidden;display:block;text-align:left}
#relay.story-classroom.room-system .room101-menu-heading .room-eyebrow{margin:0;font:600 9px/1.2 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;letter-spacing:1.8px;color:#8a9985}
#relay.story-classroom.room-system .approved-intro-number{margin:12px 0 5px;font:44px/1.2 Georgia,serif;letter-spacing:-2px;color:#466a75}
#relay.story-classroom.room-system .approved-intro-number>span{font:14px Georgia,serif;letter-spacing:0;margin-left:5px;color:#86947c}
#relay.story-classroom.room-system .room101-menu-heading h2{margin:0;padding:0;font:400 26px/1.25 EssayHand,serif;letter-spacing:-.6px;color:#30474e}
#relay.story-classroom.room-system .room101-menu-heading .room-introduction{margin:9px 0 0;font:400 13px/1.65 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#84948b}
#relay.story-classroom.room-system .approved-room-menu{display:block;flex:none;gap:0;margin:0;padding:16px 11px 8px;border:1px solid #d3dedc;border-radius:12px}
#relay.story-classroom.room-system .approved-room-menu-label{display:block;font:400 10px/1.4 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;letter-spacing:.3px;margin:0 11px 8px;color:#939987}
#relay.story-classroom.room-system .approved-room-link{display:flex;align-items:center;gap:12px;position:relative;min-height:45px;padding:6px 11px;margin-top:4px;border-radius:7px;border:1px solid transparent;color:#788374}
#relay.story-classroom.room-system .approved-room-number{flex:0 0 auto;font:16px Georgia,serif;letter-spacing:-.5px;opacity:.7;color:inherit}
#relay.story-classroom.room-system .approved-room-copy{display:block}
#relay.story-classroom.room-system .approved-room-copy strong{display:block;font:600 13px/1.2 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;letter-spacing:-.3px;color:inherit}
#relay.story-classroom.room-system .approved-room-copy small{display:block;margin-top:4px;font:400 10px/1.2 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;opacity:.65;color:inherit}
#relay.story-classroom.room-system .approved-room-link.is-active{border-color:#395e69;background:linear-gradient(125deg,#68838b,#426570);box-shadow:inset 0 1px #ffffff50,0 3px 5px #304f5520;color:#fffff8}
#relay.story-classroom.room-system .approved-room-link.is-active:after{content:'';position:absolute;inset:0;border-radius:7px;background:linear-gradient(160deg,#fff2,transparent 50%);pointer-events:none}
#relay.story-classroom.room-system>.story-sidebar>.room-topic-area{margin-top:auto;padding:17px 19px;border:1px solid #d3dedc;border-radius:12px;flex:none}
#relay.story-classroom.room-system .approved-filter-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
#relay.story-classroom.room-system .approved-filter-heading h3{margin:0;font:600 13px/1.2 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#30474e}
#relay.story-classroom.room-system .approved-filter-heading>span{font:italic 15px Georgia,serif;color:#a6ae9c}
#relay.story-classroom.room-system .daily-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%}
#relay.story-classroom.room-system .daily-controls :is(input,select){display:block;box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:37px;margin:0;border:1px solid #d3dacb;border-radius:5px;background:#f9fbf5;padding:7px 8px;color:#5e6d56;font:400 12px/1.2 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;box-shadow:inset 0 1px 2px #34462e04}
#relay.story-classroom.room-system .room-topic-area :is(.small-copy,.daily-reward-note,.daily-period-label,.daily-admin-link){display:none!important}
#relay.story-classroom.room-system .paper-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:42px;margin:12px 0 0;padding:8px;border:1px solid #496b76;border-radius:6px;background:linear-gradient(#76929a,#526f7b);box-shadow:inset 0 1px #ffffff4a,0 2px 3px #354f3520;color:#fffef7;font:600 13px/1.2 'Apple SD Gothic Neo','Noto Sans KR',sans-serif}
#relay.story-classroom.room-system .room-heading{grid-template-columns:minmax(0,1fr) minmax(330px,.98fr);gap:25px;padding:29px 32px!important}
#relay.story-classroom.room-system .room-heading-copy>p{font-family:'Apple SD Gothic Neo','Noto Sans KR',sans-serif!important}
#relay.story-classroom.room-system .room-heading-guide>p{font-family:'Apple SD Gothic Neo','Noto Sans KR',sans-serif!important}
#relay.story-classroom.room-system .room-guide-title{font-family:'Apple SD Gothic Neo','Noto Sans KR',sans-serif}
#relay.story-classroom.room-system .sentence.is-current .slot-helper{display:none}
#relay.story-classroom.room-system .genre-label{font:400 9px/1.2 'Apple SD Gothic Neo',sans-serif;color:#8c9a86;border:1px solid #d3dccb;padding:3px 7px;border-radius:20px;background:#f4f7ed}
@media(min-width:1600px){
body[data-room-view="relay"] main>#relay.story-classroom.room-system{grid-template-columns:270px minmax(0,1fr);gap:30px;padding:32px 48px 28px}
#relay.story-classroom.room-system .room101-menu-heading .room-introduction{font-size:14px}
#relay.story-classroom.room-system .approved-room-copy strong{font-size:15px}
#relay.story-classroom.room-system .approved-room-copy small{font-size:11px}
#relay.story-classroom.room-system .room-heading{padding:32px 38px!important}
#relay.story-classroom.room-system .room-heading-guide>p{font-size:15px!important}
#relay.story-classroom.room-system .room-guide-title{font-size:14px}
#relay.story-classroom.room-system .room-participation-reward{font-size:11px}
#relay.story-classroom.room-system .room-heading-copy>p{font-size:17px!important}
}
@media(max-width:1180px) and (min-width:821px){
body[data-room-view="relay"] main>#relay.story-classroom.room-system{grid-template-columns:216px minmax(0,1fr);gap:18px;padding-inline:24px}
#relay.story-classroom.room-system .room101-menu-heading{padding-inline:20px}
#relay.story-classroom.room-system .approved-room-link{gap:8px;padding-inline:7px}
#relay.story-classroom.room-system .approved-room-copy strong{font-size:12px}
#relay.story-classroom.room-system .room-heading{padding:23px!important;grid-template-columns:1fr 1.1fr;gap:17px}
}
@media(max-width:820px){
#relay.story-classroom.room-system>.story-sidebar{display:contents}
#relay.story-classroom.room-system .room101-menu-heading{display:none}
#relay.story-classroom.room-system .approved-room-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px;border-radius:9px}
#relay.story-classroom.room-system .approved-room-menu-label{display:none}
#relay.story-classroom.room-system .approved-room-link{flex-direction:column;justify-content:center;gap:3px;min-height:43px;padding:5px 2px;margin:0}
#relay.story-classroom.room-system .approved-room-number{font-size:12px}
#relay.story-classroom.room-system .approved-room-copy strong{font-size:9px;white-space:nowrap;letter-spacing:-.5px}
#relay.story-classroom.room-system .approved-room-copy small{display:none}
#relay.story-classroom.room-system>.story-sidebar>.room-topic-area{margin:0;padding:10px;border-radius:9px}
#relay.story-classroom.room-system .approved-filter-heading{display:none}
#relay.story-classroom.room-system .daily-controls{grid-template-columns:1fr 1fr}
#relay.story-classroom.room-system .paper-submit{min-height:38px;margin-top:8px;font-size:12px}
#relay.story-classroom.room-system .room-heading{padding:14px 17px!important;gap:9px}
}

#relay.story-classroom.room-system .room101-menu-heading:after{content:'';position:absolute;inset:0 0 auto;width:auto;height:3px;border:0;border-radius:0;background:linear-gradient(90deg,#78979d,#d1e0db)}
#relay.story-classroom.room-system .room-heading h3{font:400 clamp(32px,2.65vw,45px)/1.2 EssayHand,serif!important;letter-spacing:-.6px!important;color:#466a75!important}
#relay.story-classroom.room-system .room-heading-guide>p{font:400 12px/1.5 'Apple SD Gothic Neo','Noto Sans KR',sans-serif!important;color:#697e80!important}
@media(min-width:1600px){#relay.story-classroom.room-system .room-heading-guide>p{font-size:15px!important}}

#relay.story-classroom.room-system .room101-menu-heading:before{display:none}

/* Mobile must release desktop grid columns before arranging the real page. */
@media(max-width:820px){
body[data-room-view="relay"] main>#relay.story-classroom.room-system{display:flex;flex-direction:column;gap:10px;padding:12px!important;height:auto;min-height:0;overflow:visible}
#relay.story-classroom.room-system>.story-sidebar{display:contents!important}
#relay.story-classroom.room-system>.relay-manuscript{display:contents!important}
#relay.story-classroom.room-system .approved-room-menu{order:0}
#relay.story-classroom.room-system .room-heading{order:1;display:flex!important;flex-direction:column;align-items:stretch;grid-template-columns:minmax(0,1fr);height:auto!important;min-height:0!important;gap:9px;padding:14px 17px!important}
#relay.story-classroom.room-system .room-heading>.room-heading-copy{display:block!important;width:100%;min-width:0;max-width:none;align-self:stretch}
#relay.story-classroom.room-system .room-heading h3{font-size:30px!important;line-height:1.15!important;white-space:normal}
#relay.story-classroom.room-system .room-heading .room-heading-copy>p{font-size:12px!important;line-height:1.4!important}
#relay.story-classroom.room-system .room-heading>.room-heading-guide{display:flex!important;flex-direction:column;width:100%;min-width:0;gap:7px!important;align-self:stretch;padding:8px 0 0!important;border-left:0!important;border-top:1px solid #dce2d4!important}
#relay.story-classroom.room-system .room-heading-guide>p{font-size:11px!important;line-height:1.5!important}
#relay.story-classroom.room-system>.story-sidebar>.room-topic-area{order:2;margin:0!important}
#relay.story-classroom.room-system .relay-manuscript-body{order:3;display:block;overflow:visible}
#relay.story-classroom.room-system .book-page:first-child,#relay.story-classroom.room-system .book-page:last-child{min-height:0}
}

/* Hidden room panels cannot leak onto the entrance through display:grid rules. */
main>.story-classroom[hidden]{display:none!important}

#relay.room-system .relay-board .relay-progress {
  font-size: 12px;
  font-weight: 750;
  color: #294d48;
}

@media (max-width: 1050px) {
  #relay.room-system .relay-board .guestbook-viewport {
    padding-inline: 0;
  }

  #relay.room-system .relay-board .guestbook.daily-stories {
    padding-inline: 0;
    background: none;
    box-shadow: none;
  }

  #relay.room-system .relay-board .relay-story-spread {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    background: transparent;
    box-shadow: none;
  }

  #relay.room-system .relay-board .relay-story-spread > .book-page {
    padding: 0 8px;
    border: 0;
    background: transparent;
  }

  #relay.room-system .relay-board .page-heading {
    display: none;
  }

  #relay.room-system .relay-board .sentence-list {
    display: block;
  }

  #relay.room-system .relay-board .sentence-list > .sentence {
    grid-template-columns: 18px minmax(0, 1fr);
    align-content: start;
    gap: 6px;
    min-height: 0;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid #65776926;
  }

  #relay.room-system .relay-board .sentence-list > .sentence .sentence-text {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  #relay.room-system .relay-board .sentence-list > .sentence.is-current {
    margin-inline: -4px;
    padding-inline: 4px;
  }

  #relay.room-system .relay-board .book-page:last-child .sentence:last-child {
    border-bottom: 0;
  }
}

/* Live PC rounds: five sentences per column, with a shared author/action baseline. */
@media (min-width:1251px) {
 #relay.room-system.relay-live-fit .guestbook-viewport {padding:4px 0 6px;}
 #relay.room-system.relay-live-fit .guestbook {min-height:0;height:100%;gap:0;padding:0;display:flex;flex-direction:column;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .relay-story-spread {min-height:0;flex:1;height:100%;background:none;box-shadow:none;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .relay-story-spread>.book-page {min-height:0;height:100%;display:flex;flex-direction:column;padding:0 12px;border:0;background:none;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .page-heading {display:none;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence-list {display:grid;flex:1;min-height:0;height:100%;grid-template-rows:repeat(5,minmax(0,1fr));}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence {padding:6px 0;gap:6px;grid-template-columns:23px minmax(0,1fr);align-content:center;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence-content {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:center;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence-content .sentence-text {grid-column:1/-1;font-size:17px!important;line-height:1.4!important;white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip;margin:0 0 4px;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence-credit {margin:0;padding:0;font-size:11px;line-height:1.4;min-width:0;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence-reactions {margin:0;gap:5px;flex-wrap:nowrap;justify-content:flex-end;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence-reactions button {min-height:24px;padding:2px 6px;font-size:11px;line-height:1.4;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .slot-button {grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .slot-prompt {grid-column:1/-1;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .slot-helper {display:none;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .sentence.is-current {margin-inline:0;padding-inline:0;box-shadow:none;}
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .board-footer {padding-block:6px;}
}

/* A full-board announcement, not a manuscript fragment. */
#relay .relay-opening-notice {box-sizing:border-box;width:100%;text-align:center;color:#294a43;padding:42px 24px;background:transparent;border:0;box-shadow:none;align-self:center;}
#relay .relay-opening-notice .relay-notice-eyebrow {font:700 12px/1.5 'Apple SD Gothic Neo','Malgun Gothic',sans-serif;letter-spacing:1.5px;color:#66817a;margin:0 0 18px;}
#relay .relay-opening-notice h3 {font:700 clamp(24px,2.4vw,36px)/1.4 'Apple SD Gothic Neo','Malgun Gothic',sans-serif;margin:0 0 12px;letter-spacing:-1px;color:#25483f;}
#relay .relay-opening-notice .relay-notice-title {font:600 20px/1.5 'Apple SD Gothic Neo','Malgun Gothic',sans-serif;margin:0;color:#4c625b;}
#relay .relay-notice-schedule {display:flex;flex-direction:column;gap:6px;width:max-content;max-width:100%;margin:26px auto 24px;padding:18px 52px;border-top:1px solid #9aafa66b;border-bottom:1px solid #9aafa66b;}
#relay .relay-notice-schedule span {font:500 13px/1.5 'Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#61766e;}
#relay .relay-notice-schedule time {font:700 38px/1.2 'Apple SD Gothic Neo','Malgun Gothic',sans-serif;letter-spacing:-1px;font-variant-numeric:tabular-nums;}
#relay .relay-opening-notice .relay-notice-description {font:400 15px/1.8 'Apple SD Gothic Neo','Malgun Gothic',sans-serif;margin:3px 0;color:#52665f;word-break:keep-all;}
@media(min-width:1251px){
 #relay.relay-opening-pending .guestbook-viewport {display:flex;min-height:0;padding:0;}
 #relay.relay-opening-pending .guestbook {display:flex;align-items:center;justify-content:center;flex:1;width:100%;height:100%;min-height:0;padding:0;background:transparent;box-shadow:none;}
 #relay.relay-opening-pending .relay-opening-notice {padding-block:24px;}
 #relay.relay-opening-pending .board-footer {visibility:hidden;}
}
@media(max-width:1250px){
 #relay .relay-opening-notice {padding:32px 14px;}
 #relay .relay-opening-notice h3 {font-size:23px;}
 #relay .relay-opening-notice .relay-notice-title {font-size:18px;}
 #relay .relay-notice-schedule {padding:16px 32px;margin-block:22px;}
 #relay .relay-notice-schedule time {font-size:32px;}
 #relay .relay-opening-notice .relay-notice-description {font-size:14px;}
}
@media(min-width:1251px){
 #relay.relay-opening-pending .relay-opening-notice {padding-block:10px;}
 #relay .relay-opening-notice .relay-notice-eyebrow {margin-bottom:8px;}
 #relay .relay-opening-notice h3 {font-size:30px;margin-bottom:6px;}
 #relay .relay-notice-schedule {margin-block:14px;padding-block:10px;gap:4px;}
 #relay .relay-notice-schedule time {font-size:36px;}
 #relay .relay-opening-notice .relay-notice-description {font-size:14px;line-height:1.6;margin:2px 0;}
}

@media (min-width: 1251px) {
 #relay.room-system.relay-archive-fit .relay-story-spread {
  flex: 1 0 250px;
  height: auto;
 }
 #relay.room-system.relay-archive-fit .sentence {padding-block: 2px;}
 #relay.room-system.relay-archive-fit .sentence-content .sentence-text {
  margin-block-end: 2px;
  font-size: 15px !important;
  line-height: 1.25 !important;
 }
 #relay.room-system.relay-archive-fit .sentence-reactions button {min-height: 20px;padding-block: 1px;}
}

@media (min-width: 1251px) {
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .relay-story-spread {
  flex-shrink: 0;
  height: auto;
  grid-template-rows: repeat(5, minmax(max-content, 1fr));
 }
 #relay.room-system.relay-live-fit .relay-story-spread { min-height: 100%; }
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .relay-story-spread > .book-page {
  display: grid;
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
  height: auto;
 }
 #relay.room-system:is(.relay-live-fit,.relay-archive-fit) .book-page > .sentence-list {
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
  height: auto;
 }
}
