/* The black tablet rim is the boundary. Only color gradients continue to the page edges. */
button.rail-profile{background:transparent;border:0;width:100%;font:inherit;text-align:left;color:inherit;cursor:pointer}
.layout-extended .left-rail{background:linear-gradient(270deg,#fff 0%,#fff 48%,#f5f7f2 74%,#e9efe4 100%);border:0;padding:28px 28px 30px}
.layout-extended .right-rail{background:linear-gradient(90deg,#fff 0%,#fff 48%,#faf7f3 74%,#f0e8df 100%);border:0;padding:28px 28px 30px}
.layout-extended .feed-center{background:linear-gradient(#fff,#fff)}
.layout-extended .rail-profile,.layout-extended .left-rail>nav,.layout-extended .rail-foot{width:100%;max-width:250px;margin-left:auto;margin-right:auto}
.layout-extended .rail-profile{display:flex;align-items:center;gap:14px;padding:17px 14px;margin-top:0;margin-bottom:26px;border:1px solid #ffffffc9;border-radius:14px;background:linear-gradient(145deg,#ffffffd9,#f7faf5a6);box-shadow:0 3px 8px #23463808,inset 0 1px #fff}
.layout-extended .rail-profile .avatar{width:68px;height:68px;flex-shrink:0;border-radius:16px;background:#e5ece5}
.layout-extended .rail-profile>div{min-width:0}.layout-extended .rail-profile strong{display:block;font:600 20px/1.6 'Apple SD Gothic Neo','Noto Sans KR',sans-serif}.layout-extended .rail-profile small{font:11px/1.8 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#81958a;margin-top:5px}
.layout-extended .left-rail>nav{display:grid;gap:10px}
.layout-extended .nav-item{display:flex;align-items:center;gap:17px;min-height:72px;padding:20px 17px;border:1px solid transparent;border-radius:11px;background:transparent;box-shadow:none;color:#526b5f;font:600 21px/1.4 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;transition:box-shadow .14s,background .14s,transform .14s,color .14s}
.layout-extended .nav-item svg{width:27px;height:27px}.layout-extended .nav-item:hover{background:#ffffff60}
.layout-extended .nav-item.active{position:relative;background:linear-gradient(180deg,#ffffff52 0%,#ffffff12 30%,transparent 31%),linear-gradient(180deg,#6c8c96,#426572);border:1px solid #ffffff57;color:#fffdf5;box-shadow:0 4px 9px #34413230,inset 0 1px #ffffff6b,inset 0 -1px #1a271633}
.layout-extended .nav-item.active:hover{filter:brightness(1.04)}.layout-extended .nav-item:active{transform:translateY(1px)}
.layout-extended .rail-link{display:block;max-width:220px;margin:24px auto;font:12px/1.7 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#879b8d}
.layout-extended .rail-foot{background:none;border-color:#cbd8ceaa;color:#8fa293;padding:22px 4px 0;margin-top:28px;font-size:11px}
.layout-extended .right-rail>section,.layout-extended .right-foot{width:100%;max-width:480px;margin-left:auto;margin-right:auto}
.layout-extended .recommendation,.layout-extended .readers{padding:0;margin-top:0;margin-bottom:20px;border:1px solid #cfdcd2;border-radius:12px;background:#fcfefbcc;box-shadow:0 3px 10px #28433306;overflow:hidden}
.layout-extended .aside-heading{padding:17px 18px;border-bottom:1px solid #d8e3da;background:linear-gradient(180deg,#fffffff0,#f3f7f1b3)}
.layout-extended .aside-heading h2,.layout-extended .readers .aside-heading h2{font:600 20px/1.4 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;margin:0;letter-spacing:-.4px;color:#3a5b48}
.layout-extended #book-suggestions{padding:18px 18px 17px}.layout-extended .discovery-books-row{gap:20px}.layout-extended .discovery-book img{height:clamp(175px,22dvh,240px)}.layout-extended .discovery-book strong{font-size:15px;margin-top:15px}
.layout-extended .discovery-shelf-controls{border-top:1px solid #e2e9df;padding-top:12px;margin-top:15px}.layout-extended .discovery-shelf-controls>small{font-size:9px}.layout-extended .discovery-shelf-controls button{font-size:10px}
.layout-extended .readers .aside-heading h2{padding-right:62px}
.layout-extended #reader-suggestions{padding:16px 14px 10px}.layout-extended .reader-strip-controls{top:-38px;right:14px}.layout-extended .reader-strip-controls button{background:#fff;border-color:#cbd9ca;color:#78966f}
.layout-extended .reader-carousel{padding:0 0 8px;gap:12px}.layout-extended .reader-card{flex-basis:calc((100% - 12px)/2);min-height:160px;padding:10px 7px 13px;border:0;border-radius:8px;background:none;gap:10px;box-shadow:none}.layout-extended .reader-card:hover{background:#fff9}
.layout-extended .reader-card .avatar{width:66px;height:66px;border-radius:16px;box-shadow:0 2px 4px #284c310a}.layout-extended .reader-card strong{font:600 15px/1.5 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#4b6e50}.layout-extended .reader-card small{font:11px/1.7 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#91a68b}.layout-extended .reader-pending{background:none;border:0}.layout-extended .reader-pending strong{font-size:12px;color:#98aa92}
.layout-extended .right-foot{padding:3px 6px 0;margin-top:0;border:0;color:#a1b09e;font-size:10px}
@media(min-width:981px){.layout-extended .feed-center{padding:24px 0 0}.layout-extended #main-feed{width:100%;max-width:none;min-width:0;height:max(calc(var(--feed-available-height) + 190px),calc(50vw / .76));margin:0;border-radius:35px}}
@media(min-width:1800px){.layout-extended .left-rail{padding-left:42px;padding-right:42px}.layout-extended .right-rail{padding-left:30px;padding-right:30px}.layout-extended .rail-profile,.layout-extended .left-rail>nav,.layout-extended .rail-foot{max-width:280px}.layout-extended .nav-item{font-size:23px;min-height:79px;padding:23px 20px}.layout-extended .nav-item svg{width:29px;height:29px}.layout-extended .rail-profile .avatar{width:75px;height:75px;border-radius:18px}.layout-extended .rail-profile strong{font-size:23px}.layout-extended .rail-profile{padding:20px 17px}.layout-extended .aside-heading{padding:19px 20px}.layout-extended .aside-heading h2{font-size:22px}.layout-extended #book-suggestions{padding:21px}.layout-extended .discovery-book strong{font-size:16px}.layout-extended .reader-card{min-height:174px}.layout-extended .reader-card .avatar{width:72px;height:72px;border-radius:18px}.layout-extended .reader-strip-controls{top:-42px}}
@media(min-width:981px) and (max-width:1250px){.layout-extended .left-rail{padding-left:16px;padding-right:16px}.layout-extended .right-rail{padding-left:18px;padding-right:18px}.layout-extended .nav-item{font-size:18px;gap:13px;padding:20px 12px}.layout-extended .nav-item svg{width:24px;height:24px}.layout-extended .rail-profile{padding:15px 10px;gap:10px}.layout-extended .rail-profile .avatar{width:52px;height:52px;border-radius:13px}.layout-extended .rail-profile strong{font-size:18px}.layout-extended .rail-profile small{font-size:10px}.layout-extended .aside-heading{padding:15px}.layout-extended .aside-heading h2{font-size:18px}.layout-extended #book-suggestions{padding:15px}.layout-extended .discovery-books-row{gap:14px}.layout-extended .discovery-book strong{font-size:13px}.layout-extended .reader-card strong{font-size:13px}.layout-extended .reader-card .avatar{width:54px;height:54px;border-radius:14px}.layout-extended .reader-strip-controls{top:-36px}}
@media(max-width:700px){.layout-extended .left-rail{padding:0;background:#fff}.layout-extended .left-rail>nav{display:flex;max-width:none;margin:0;gap:0}.layout-extended .nav-item{display:flex;flex-direction:column;min-height:0;border-radius:7px;padding:9px 10px;font-size:10px;gap:4px}.layout-extended .nav-item svg{width:22px;height:22px}.layout-extended .rail-profile{display:none}}

/* Preview study: retain reading width and allow outer whitespace on wide browsers. */
@media(min-width:981px){
.layout-extended.layout-relaxed .feed-layout{width:100%;max-width:none;margin:0;grid-template-columns:calc(50% - min(30vw,444px)) min(50vw,740px) calc(50% - min(20vw,296px))}
.layout-relaxed .left-rail{background:transparent;padding:28px 20px}
.layout-relaxed .right-rail{background:transparent;padding:28px 24px}
.layout-relaxed #main-feed{height:calc(var(--feed-available-height) + 190px)}
.layout-relaxed .nav-item{font-size:20px;min-height:68px;padding:20px 15px}
.layout-relaxed .rail-profile .avatar{width:60px;height:60px;border-radius:15px}
.layout-relaxed .rail-profile strong{font-size:20px}
.layout-relaxed .aside-heading h2{font-size:19px}
}

@media(min-width:981px){
.layout-extended.layout-relaxed{background:linear-gradient(90deg,#e9efe4 0%,#f7f9f4 12%,#fff calc(50% - min(30vw,444px) - 100px),#fff calc(50% + min(20vw,296px) + 140px),#faf7f3 89%,#f0e8df 100%)}
.layout-relaxed .feed-layout{background:transparent}
}

@media(min-width:981px){
.layout-relaxed .left-rail{padding:28px clamp(28px,4vw,80px);background:transparent}
.layout-relaxed .right-rail{padding:28px clamp(28px,4vw,80px);background:transparent}
.layout-relaxed .rail-profile,.layout-relaxed .left-rail>nav,.layout-relaxed .rail-foot{max-width:280px;margin-left:0;margin-right:auto}
.layout-relaxed .rail-link{max-width:280px;margin-left:0;margin-right:auto;padding-left:14px}
.layout-relaxed .right-rail>section,.layout-relaxed .right-foot{max-width:400px;margin-left:auto;margin-right:0}
}
/* The content carries the green / brown identity; the ambient tint stays quiet. */
@media(min-width:981px){
.layout-extended .rail-profile{background:linear-gradient(145deg,#fff,#f2f6ed);border-color:#c4d0bc;box-shadow:0 4px 12px #29462a0c,inset 0 1px #fff}
.layout-extended .rail-profile strong{color:#263e2d}
.layout-extended .rail-profile small{font-size:13px;color:#52664e;line-height:1.7}
.layout-extended .nav-item{color:#344f37;font-weight:600;border-color:#d2dccb;background:#f5f8f0b8;box-shadow:inset 0 1px #fff}
.layout-extended .nav-item svg{color:#4a6946}
.layout-extended .nav-item:hover{background:#e9f0e1;border-color:#aebfa1}
.layout-extended .nav-item.active{background:linear-gradient(180deg,#ffffff40 0%,#ffffff0d 30%,transparent 31%),linear-gradient(180deg,#6a835c,#3e593b);border-color:#476440;color:#fff;box-shadow:0 4px 9px #29462a26,inset 0 1px #ffffff70,inset 0 -1px #243b29}
.layout-extended .nav-item.active svg{color:#fff}
.layout-extended .rail-link,.layout-extended .rail-foot{color:#52664e;font-size:13px}
.layout-extended .recommendation,.layout-extended .readers{background:#fffdfaf5;border-color:#cdbba7;box-shadow:0 5px 15px #593a2010}
.layout-extended .aside-heading{background:linear-gradient(180deg,#f6eee3,#eee0ce);border-bottom-color:#d4bfa5;border-left:4px solid #946c46;padding-left:17px}
.layout-extended .aside-heading h2,.layout-extended .readers .aside-heading h2{color:#563b28;font-weight:700;font-size:21px}
.layout-extended .discovery-book strong{color:#3e3025;font-weight:600;font-size:16px}
.layout-extended .discovery-book p{color:#6d5845;font-size:13px}
.layout-extended .discovery-book>small,.layout-extended .discovery-shelf-controls>small{color:#79634e;font-size:11px}
.layout-extended .discovery-shelf-controls{border-color:#e2d4c3}
.layout-extended .discovery-shelf-controls button{color:#69462c;font-size:12px;border-color:#ac8966;font-weight:600}
.layout-extended .reader-card{background:#f8f1e8;border:1px solid #e0cdb6}
.layout-extended .reader-card:hover{background:#f2e5d4;border-color:#bd9973}
.layout-extended .reader-card strong{color:#523b28;font-size:16px}
.layout-extended .reader-card small{color:#79634b;font-size:12px}
.layout-extended .reader-card small b{color:#5c4028}
.layout-extended .reader-strip-controls button{border-color:#cbb397;color:#725030;background:#fffaf2}
.layout-extended .right-foot{color:#796650;font-size:12px}
}
/* Quiet architectural rails: equal breathing room around the reading device. */
@media(min-width:981px){
.layout-extended.layout-relaxed{background:#fff;--rail-space:clamp(20px,3vw,52px)}
.layout-extended.layout-relaxed .feed-layout{width:100%;max-width:none;padding:0;grid-template-columns:20% 50% 30%;gap:0}
.layout-relaxed .feed-center{padding:24px var(--rail-space) 0;background:#fff}
.layout-relaxed #main-feed{width:100%;max-width:none}
.layout-relaxed .left-rail,.layout-relaxed .right-rail{padding:28px 18px 30px;background:#f7f8f7;position:relative;top:0;height:100%;max-height:100%;border:0;border-radius:0;overflow-y:auto}
.layout-relaxed .left-rail{border-right:1px solid #dce2de}
.layout-relaxed .right-rail{border-left:1px solid #dce2de;background:#f8f8f6}
.layout-relaxed .rail-profile,.layout-relaxed .left-rail>nav,.layout-relaxed .rail-foot,.layout-relaxed .right-rail>section,.layout-relaxed .right-foot{width:100%;max-width:none;margin-left:0;margin-right:0}
.layout-relaxed .rail-profile{padding:16px 12px;background:#fff;border:1px solid #d8dfda;border-radius:8px;box-shadow:0 2px 5px #24382c05;gap:11px}
.layout-relaxed .rail-profile .avatar{width:52px;height:52px;border-radius:13px}
.layout-relaxed .rail-profile strong{font-size:19px;color:#2d3933}
.layout-relaxed .rail-profile small{font-size:12px;color:#647169}
.layout-relaxed .left-rail>nav{gap:0;border-top:1px solid #d8dfda}
.layout-relaxed .nav-item{min-height:66px;border:0;border-bottom:1px solid #d8dfda;border-radius:0;background:transparent;box-shadow:none;color:#39483f;font-size:19px;padding:18px 12px;gap:13px}
.layout-relaxed .nav-item svg{width:24px;height:24px;color:#65766c}
.layout-relaxed .nav-item:hover{background:#edf1ed}
.layout-relaxed .nav-item.active{border:1px solid #51665b;border-radius:7px;margin:9px 0;background:linear-gradient(180deg,#ffffff3a 0%,#ffffff09 30%,transparent 31%),linear-gradient(180deg,#708579,#425a4c);color:#fff;box-shadow:0 3px 7px #293d3020,inset 0 1px #ffffff65}
.layout-relaxed .nav-item.active svg{color:#fff}
.layout-relaxed .rail-link{margin:22px 0;padding:0 12px;font-size:12px;color:#5b6b61}
.layout-relaxed .rail-foot{padding:20px 12px 0;border-color:#d8dfda;color:#68766c;font-size:12px}
.layout-relaxed .recommendation,.layout-relaxed .readers{border:1px solid #d5dcd6;border-radius:8px;background:#fff;box-shadow:0 2px 6px #24382c05;margin-bottom:20px}
.layout-relaxed .aside-heading{padding:16px;border:0;border-bottom:1px solid #dce2dc;background:#f0f2ef}
.layout-relaxed .aside-heading h2,.layout-relaxed .readers .aside-heading h2{font-size:19px;color:#344139;font-weight:700}
.layout-relaxed #book-suggestions{padding:16px}
.layout-relaxed .discovery-books-row{gap:16px}
.layout-relaxed .discovery-book strong{color:#344139;font-size:15px}
.layout-relaxed .discovery-book p{color:#647168;font-size:12px}
.layout-relaxed .discovery-book>small,.layout-relaxed .discovery-shelf-controls>small{color:#718075}
.layout-relaxed .discovery-shelf-controls{border-color:#e0e5df}
.layout-relaxed .discovery-shelf-controls button{color:#435c4d;border-color:#a5b5a8}
.layout-relaxed .reader-card{background:#f6f8f4;border:1px solid #dfe5dc;border-radius:6px}
.layout-relaxed .reader-card:hover{background:#eef2ea;border-color:#bfccbb}
.layout-relaxed .reader-card strong{color:#344139}
.layout-relaxed .reader-card small,.layout-relaxed .reader-card small b{color:#647168}
.layout-relaxed .reader-strip-controls button{border-color:#cbd5cb;color:#526b58;background:#fff}
.layout-relaxed .right-foot{padding:3px 5px;color:#758177;font-size:11px}
}
@media(min-width:981px){.layout-extended.layout-relaxed #main-feed{max-width:740px;margin:0 auto}}
/* Side surfaces reach the viewport edges; white space exists only beside the tablet. */
@media(min-width:981px){
/* Equal side regions and a true half-width center track at every desktop size. */
.layout-extended.layout-relaxed .feed-layout{grid-template-columns:20% 50% 30%;padding:0}
.layout-relaxed .left-rail{padding-left:clamp(24px,3vw,58px);padding-right:24px}
.layout-relaxed .right-rail{padding-left:24px;padding-right:clamp(24px,3vw,58px)}
}
@media(min-width:981px){
.layout-relaxed .left-rail,.layout-relaxed .right-rail{padding-left:20px;padding-right:20px}
.layout-relaxed .rail-profile,.layout-relaxed .left-rail>nav,.layout-relaxed .rail-foot{max-width:280px;margin-left:auto;margin-right:auto}
.layout-relaxed .rail-link{max-width:280px;margin-left:auto;margin-right:auto}
.layout-relaxed .right-rail>section,.layout-relaxed .right-foot{max-width:400px;margin-left:auto;margin-right:auto}
}
@media(max-width:700px){
.layout-extended .site-bar{height:56px;gap:10px;padding:0 14px}
.layout-extended .brand{font-size:21px;white-space:nowrap}
.layout-extended .service{white-space:nowrap;font-size:11px;padding-left:10px}
.layout-extended .service::after{display:none}
.layout-extended .site-bar>button{font-size:10px;padding:7px 9px;white-space:nowrap;max-width:112px;overflow:hidden;text-overflow:ellipsis}
.layout-extended .feed-layout{height:calc(100dvh - 56px);padding:0 0 58px;overflow:hidden}
.layout-extended .feed-center{padding:10px 0 0;height:100%}
.layout-extended #main-feed{width:calc(100% - 20px);height:calc(100dvh - 130px);padding:6px;border-radius:23px;min-height:0;max-height:none;top:auto}
.layout-extended .feed-screen{padding:16px 12px 0;border-radius:17px}
.layout-extended .tablet-camera{display:none}
.layout-extended .feed-heading{min-height:55px;height:auto;display:flex;flex-direction:row;align-items:center;padding:0 0 10px;gap:8px}
.layout-extended .feed-heading h2{font-size:22px}
.layout-extended .feed-tabs{margin:0;gap:10px}
.layout-extended .feed-tabs button{font-size:10px}
.layout-extended .feed-compose-menu{display:none}
.layout-extended .left-rail{position:fixed;inset:auto 0 0;height:58px;max-height:58px;padding:0;background:#fffffff5;border-top:1px solid #e2e6e2;overflow:hidden;box-shadow:none;backdrop-filter:blur(12px)}
.layout-extended .left-rail>nav{display:grid;grid-template-columns:repeat(4,1fr);height:58px;padding:0 10px;margin:0;max-width:none;gap:0}
.layout-extended .left-rail .nav-item{height:58px;min-height:0;margin:0;padding:8px 0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none;color:#859088;font-size:0}
.layout-extended .left-rail .nav-item>span{display:none}
.layout-extended .left-rail .nav-item svg{width:25px;height:25px;stroke-width:1.65;color:inherit}
.layout-extended .left-rail .nav-item.active{color:#294d3c;background:none;box-shadow:none;border:0}
.layout-extended .left-rail .nav-item.active svg{stroke-width:2.3}
.layout-extended .left-rail .rail-link,.layout-extended .left-rail .rail-profile,.layout-extended .left-rail .rail-foot{display:none}
.layout-extended .post-body{grid-template-columns:88px minmax(0,1fr);gap:14px}
.layout-extended .post-image,.layout-extended .post-body .cover{width:88px}
.layout-extended .post-text{font-size:14px;line-height:1.8}
}

/* Keep the 20/50/30 composition at desktop width. When the viewport is too
   narrow for the discovery rail, reclaim its track instead of leaving a blank
   30% column beside the tablet. */
@media(min-width:981px) and (max-width:1100px){
  .layout-extended .feed-layout{grid-template-columns:30% 70%;}
  .layout-extended .right-rail{display:none;}
  .layout-extended .left-rail{padding-right:18px;}
  .layout-extended .feed-center{padding:18px 14px 0;}
  .layout-extended #main-feed{width:min(100%,680px);height:max(calc(var(--feed-available-height) + 140px),calc(62vw / .76));margin:0 auto;}
}

/* Keep the feed focused on reader stories; composition choices live in the writer. */
.layout-extended .feed-compose-menu{display:none!important}
.layout-extended .feed-heading{min-height:48px;padding-bottom:7px;margin-bottom:1px;border-bottom:1px solid #e8ece7}
.layout-extended .post{padding:14px 2px 16px;margin:0;border:0;border-bottom:1px solid #e5e9e4;border-radius:0;background:#fff;box-shadow:none}
.layout-extended .post-head{gap:9px;margin-bottom:9px;min-height:35px}
.layout-extended .post-head .avatar{width:34px;height:34px;border-radius:10px;font-size:12px}
.layout-extended .post-author{min-width:0;flex:1;line-height:1.35}
.layout-extended .post-author strong{font-size:13px}
.layout-extended .post-author small{display:inline-block;font-size:10px;line-height:1.3;margin:0 0 0 7px}
.layout-extended .post-body{grid-template-columns:76px minmax(0,1fr);gap:13px;padding-left:0}
.layout-extended .post-image,.layout-extended .post-body .cover{width:76px;filter:drop-shadow(2px 5px 6px #24332f36)}
.layout-extended .post-story{padding-top:0}
.layout-extended .post-story .intent{font-size:14px;line-height:1.45;margin:0 0 4px}
.layout-extended .post-book-title{font-size:11px;line-height:1.4;margin:0 0 5px}
.layout-extended .post-text{font-size:13px;line-height:1.65;margin:0}
.layout-extended .post-actions{margin-top:10px;gap:15px;flex-wrap:nowrap}
.layout-extended .post-actions button{font-size:10px;white-space:nowrap}
.layout-extended .post-actions .symbol{font-size:17px}
.layout-extended .shared-reason{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;margin:0 0 0 auto!important;padding:5px 8px;border:1px solid #e4e8dd;border-radius:999px;background:#f8faf5;color:#71806d!important;font:500 10px/1.2 'Apple SD Gothic Neo','Noto Sans KR',sans-serif!important;white-space:nowrap}
.layout-extended .shared-reason svg{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.layout-extended .shared-reason b{font-variant-numeric:tabular-nums;font-weight:700;color:#4d6650}

/* Make the three intent covers read as one deliberate, tappable choice. */
.intent-picker{padding:17px;border:1px solid #d9c891;border-radius:14px;background:linear-gradient(145deg,#fffef9,#f8f7ed);box-shadow:0 0 0 3px #d9c89120,0 0 19px #c6ad6740,inset 0 1px #fff;}
.intent-picker>header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 14px;color:#41584d}
.intent-picker>header strong{font-size:14px;letter-spacing:-.2px}
.intent-picker>header span{font-size:10px;color:#8a917e;white-space:nowrap}
.mini-intro{padding:20px 24px 24px}
.mini-intro h2{margin:7px 0 15px;font-size:23px;line-height:1.4}
.mini-intents{gap:14px}
.mini-intents>button>span:not(.cover){margin-top:10px;background:#fff;border-color:#d4d9cb}
.mini-intents>button:hover>span:not(.cover){border-color:#b69d61;background:#fffdf6}
.cover-title-request strong{font-size:clamp(12px,1.15vw,19px);line-height:1.45;letter-spacing:0;word-break:keep-all;text-wrap:balance}
.mini-kind-label{display:inline-block;padding:5px 10px;border:1px solid #dce1d7;border-radius:999px;background:#f7f8f2;color:#4a6657;font-size:11px;line-height:1.2}
.mini-attach{margin:9px 24px 0;padding:12px 13px 13px;border:1px solid #d9ca9e;border-radius:11px;background:linear-gradient(145deg,#fffefa,#f8f7ef);box-shadow:0 0 0 3px #d9ca9e1c,0 0 16px #c7ad6738,inset 0 1px #fff}
.mini-attach>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.mini-attach>header strong{display:block;font-size:13px;color:#344e42}
.mini-attach>header small{display:block;margin-top:3px;font-size:10px;line-height:1.4;color:#748477}
.mini-tools{gap:8px;padding:0;border:0;margin:0}
.mini-tools button{padding:9px 5px;border-color:#d6dbd1;border-radius:7px;background:#fff;font-size:11px;box-shadow:0 1px 2px #26382f08}
.mini-tools button:hover,.mini-tools button:focus-visible{border-color:#a99a69;background:#fffdf6;box-shadow:0 0 0 2px #d6c9934d}
.mini-no-book{flex:none;border:0;border-bottom:1px solid #71836f;background:transparent;padding:4px 0;color:#586f5a;font-size:10px;white-space:nowrap}
.mini-writing{padding:17px 24px;grid-template-columns:132px minmax(0,1fr);gap:22px}
.mini-cover-object{width:132px;aspect-ratio:2/3;display:flex;align-items:flex-start;justify-content:center}
.mini-cover-object>img,.mini-cover-object>.cover{display:block;width:100%;height:100%;aspect-ratio:2/3;object-fit:contain;border:1px solid #e3e3dc;border-radius:2px;filter:drop-shadow(3px 7px 8px #202d2850)}
.mini-cover-object>.cover{border:0}
.mini-cover-object>.cover-title-request strong{font-size:14px;line-height:1.45;letter-spacing:0}
.mini-representative small{margin-top:8px;font-size:9px;color:#718174}
.mini-text label{margin-bottom:9px;font-size:14px;line-height:1.6}
.mini-text textarea{min-height:176px;max-height:240px;line-height:1.8;font-size:14px}
.mini-bottom{padding:14px 22px;gap:12px}
.mini-bottom p{font-size:10px;color:#627568}

/* A shelf dialog stays crisp so the active navigation item remains visible. */
dialog::backdrop{background:#263e3d28;backdrop-filter:none}
.layout-extended .left-rail .nav-item.active{position:relative;filter:drop-shadow(0 2px 5px #30453222)}
.layout-extended .detail-dialog.shelf-dialog-open{width:min(860px,92vw);padding:26px 28px 24px;max-height:86dvh;overflow:auto;border-color:#cdd8cc;background:linear-gradient(155deg,#fffefa,#f8f8f1);box-shadow:0 20px 60px #17231e38}
.shelf-dialog-open .detail-header{margin-bottom:15px}
.shelf-dialog-open .detail-header h2{font-size:18px;color:#758579;font-weight:500}
.shelf-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 0 20px;border-bottom:1px solid #dfe6dc}
.shelf-panel-heading>div>small{font-size:9px;letter-spacing:1.7px;color:#9c8060}
.shelf-panel-heading h3{margin:5px 0;font:600 24px/1.4 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#2d493b}
.shelf-panel-heading p{margin:0;font-size:12px;color:#829082}
.shelf-panel-heading>b{display:flex;align-items:baseline;gap:4px;color:#41614b;font:600 24px/1 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;font-variant-numeric:tabular-nums}
.shelf-panel-heading>b small{font-size:11px;font-weight:500}
.detail-shelf{grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:14px;padding:19px 0 6px}
.detail-shelf .shelf-book{min-width:0;padding:12px 10px 13px;border:1px solid #e2e7dd;border-radius:10px;background:linear-gradient(145deg,#fff,#fafbf7);box-shadow:0 2px 6px #273c260a}
.detail-shelf .shelf-book img{height:clamp(130px,20vh,178px);filter:drop-shadow(2px 5px 6px #202d2840)}
.detail-shelf .shelf-book strong{display:block;min-height:2.8em;margin-top:9px;font-size:12px;line-height:1.45;color:#344c40}
.detail-shelf .shelf-book>span,.detail-shelf .shelf-book>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#869287;font-size:10px;line-height:1.5}
.detail-shelf .shelf-book>small{color:#a28a69}
.shelf-edit{display:inline-flex;gap:8px;align-items:center;margin-top:16px;padding:9px 13px;border:1px solid #ced9cc;border-radius:7px;background:#fff;color:#45624c;font-size:11px}
@media(max-width:700px){
  .layout-extended .post{padding:12px 0 14px}
  .layout-extended .post-body{grid-template-columns:68px minmax(0,1fr);gap:11px}
  .layout-extended .post-image,.layout-extended .post-body .cover{width:68px}
  .layout-extended .post-text{font-size:12px;line-height:1.6}
  .layout-extended .post-actions{gap:10px}
  .layout-extended .post-actions button{font-size:9px}
  .layout-extended .post-head{gap:6px}
  .layout-extended .shared-reason{gap:3px;padding:4px 6px;font-size:9px!important}
  .layout-extended .shared-reason svg{width:13px;height:13px}
  .intent-picker{padding:12px 9px}
  .intent-picker>header{align-items:flex-start;flex-direction:column;gap:2px;margin-bottom:9px}
  .mini-intro{padding:15px 15px 18px}
  .mini-intents{gap:8px}
  .mini-intents>button>span:not(.cover){padding:10px 2px;font-size:11px}
  .mini-attach{margin:7px 14px 0;padding:10px}
  .mini-attach>header{align-items:flex-start}
  .mini-attach>header strong{font-size:12px}
  .mini-attach>header small{max-width:210px;font-size:9px}
  .mini-no-book{font-size:9px}
  .mini-tools{gap:5px}
  .mini-tools button{font-size:10px;padding:9px 2px}
  .mini-writing{grid-template-columns:88px minmax(0,1fr);gap:14px;padding:14px}
  .mini-cover-object{width:88px}
  .mini-cover-object>.cover-title-request strong{font-size:11px}
  .mini-text label{font-size:12px;margin-bottom:7px}
  .mini-text textarea{min-height:135px;font-size:12px}
  .mini-bottom{padding:11px 14px}
  .mini-bottom button{padding:10px 14px;font-size:11px}
  .layout-extended .left-rail .nav-item.active{height:55px;margin-top:-3px;border:1px solid #d8dfd3;border-radius:12px;background:linear-gradient(180deg,#fff,#eaf0e7);box-shadow:0 2px 0 #cad5c8,inset 0 1px #fff}
  .layout-extended .left-rail .nav-item.active>span{display:block;font-size:9px;line-height:1.2;color:#436149}
  .layout-extended .left-rail .nav-item.active svg{width:19px;height:19px}
  .layout-extended .detail-dialog.shelf-dialog-open{padding:18px 15px 18px;width:94vw}
  .shelf-panel-heading h3{font-size:20px}
  .shelf-panel-heading p{font-size:10px}
  .detail-shelf{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;padding-top:13px}
  .detail-shelf .shelf-book{padding:8px 7px}
  .detail-shelf .shelf-book img{height:116px}
  .detail-shelf .shelf-book strong{font-size:10px}
}

/* Distinct rooms share one device position and continue below the viewport. */
:root{font-variant-numeric:tabular-nums}
.layout-extended #main-feed{--rim-light:#5d6867;--rim-dark:#161d1c;background:linear-gradient(110deg,var(--rim-light),var(--rim-dark) 9%,var(--rim-dark) 83%,var(--rim-light) 98%);border-color:var(--rim-dark)}
.layout-extended.page-shelf #main-feed{--rim-light:#798073;--rim-dark:#343d33}
.layout-extended.page-write #main-feed{--rim-light:#8a7b6b;--rim-dark:#463b32}
#page-content{position:relative;flex:none;min-height:0;height:var(--room-height,70dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d8ddd7 white;padding-bottom:35px;background:#fff}
.room-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:6px 0 23px;border-bottom:1px solid #e4e7e1;margin-bottom:18px}
.room-heading small{font:10px/1.5 'Apple SD Gothic Neo',sans-serif;letter-spacing:2px;color:#8a7861}
.room-heading h1{font:600 28px/1.5 'Noto Serif KR',serif;margin:7px 0;color:#293e34}
.room-heading p{font-size:12px;line-height:1.7;color:#7e8981;margin:7px 0 0}
.room-heading>b{font-size:28px;font-weight:500;color:#51604e;white-space:nowrap}.room-heading>b small{font-size:12px;margin-left:4px;letter-spacing:0}
.room-shelf-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px;padding:12px 0}
.room-shelf-book{min-width:0;text-align:center}
.shelf-cover{position:relative;height:190px;display:flex;align-items:flex-end;justify-content:center;padding:0 7px 14px;margin-bottom:13px}
.shelf-cover:after{content:'';position:absolute;bottom:0;left:0;right:0;height:7px;border:1px solid #d1c6b4;border-radius:2px;background:linear-gradient(#efeadf,#d8cfbf);box-shadow:0 6px 8px #3d38271c}
.shelf-cover img{display:block;max-width:100%;width:auto;height:auto;max-height:174px;filter:drop-shadow(3px 6px 5px #232b2738);border-radius:1px}
.room-shelf-book>strong{display:block;min-height:2.9em;font:600 13px/1.5 'Apple SD Gothic Neo',sans-serif;color:#34433a;word-break:keep-all;overflow-wrap:anywhere}
.room-shelf-book>span,.room-shelf-book>small{display:block;font:11px/1.7 'Apple SD Gothic Neo',sans-serif;color:#7c877f;margin-top:2px}.room-shelf-book>small{color:#9a8b73;font-size:10px}
.page-write .feed-screen{padding:0 20px}
.page-write #page-content{border-radius:18px 18px 0 0}
#page-content .tablet-screen{max-height:none;min-height:100%;border-radius:0;overflow:visible;background:#fff;display:flex;flex-direction:column}
#page-content .tablet-bar{padding:20px 5px 17px;font-size:10px;background:#fff}
#page-content .tablet-bar button{font-size:24px;line-height:1;color:#7b776e}
#page-content .mini-intro{padding:22px 4px 32px}
#page-content .mini-intro h2{font-size:28px;line-height:1.6;margin:10px 0 25px}
#page-content .mini-intents{gap:20px}
#page-content .mini-intents .cover{height:auto;width:100%;object-fit:contain;filter:drop-shadow(3px 7px 7px #25291f32)}
#page-content .intent-picker{padding:20px 14px}
#page-content .mini-heading{padding:20px 4px}
#page-content .mini-attach{margin:0 3px 8px;padding:16px 13px}
#page-content .mini-writing{grid-template-columns:154px minmax(0,1fr);padding:24px 4px;gap:25px}
#page-content .mini-cover-object{width:154px;filter:drop-shadow(2px 4px 4px #2c211c20)}
#page-content .mini-text textarea{min-height:230px;max-height:none;resize:vertical;font-size:14px;padding:12px;border:1px solid #e0e5df;border-radius:8px;background:#fdfdfb}
#page-content .mini-text label{font-size:15px;line-height:1.8;margin-bottom:14px}
#page-content .mini-bottom{padding:20px 4px;margin-top:auto;border-top:1px solid #e5e5df}
#page-content .mini-overlay{position:absolute;inset:0;min-height:100%;padding:24px 10px;background:#fff;overflow:auto}
#page-content .picker-books{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 16px}
#page-content .picker-books img{height:170px;filter:drop-shadow(2px 5px 5px #25342e32)}
.cover-baked{object-fit:cover;display:block;height:auto}
.layout-extended .shared-reason>span{letter-spacing:0;margin:0;color:inherit;font:inherit}
@media(min-width:981px){
.layout-extended .site-bar{padding-left:var(--header-left,32px);padding-right:var(--header-right,32px)}
.layout-extended .post-body{grid-template-columns:108px minmax(0,1fr);gap:20px;align-items:start}
.layout-extended .post-image,.layout-extended .post-body .cover{width:108px;aspect-ratio:2/3;object-fit:contain}
.layout-extended .post{padding:19px 0 22px}
.layout-extended .post-story .post-head{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:0;margin:0 0 10px;min-height:30px}
.layout-extended .post-head>.avatar{width:29px;height:29px;border-radius:8px;flex:none}
.layout-extended .post-author{min-width:0;flex:1 1 auto}.layout-extended .post-author strong{font-size:12px}.layout-extended .post-author small{font-size:9px;margin-left:6px}
.layout-extended .shared-reason{font-size:9px!important;padding:4px 6px;gap:3px}
.layout-extended .post-story .intent{font-size:15px;margin:0 0 5px}
.layout-extended .post-text{font-size:13px;line-height:1.75}
.layout-extended .post-actions{margin-top:12px;gap:14px}
}
@media(min-width:981px){
/* Hidden overflow containers must not scroll the entire device when focus changes. */
.layout-extended .feed-center,.layout-extended #main-feed,.layout-extended .feed-screen{overflow:clip}
}
#page-content .dialog-error:empty{display:none}
#page-content .mini-bottom{position:sticky;bottom:0;z-index:2;background:#fff;box-shadow:0 -8px 18px #ffffffd9;min-height:66px}
#page-content .mini-text textarea{min-height:200px}

/* The opening writer is one composed screen, without an internal scroll area. */
.page-write #page-content.intent-stage{overflow:hidden;padding-bottom:0}
#page-content.intent-stage .tablet-screen{height:100%;min-height:0;overflow:hidden}
#page-content.intent-stage .tablet-bar{flex:0 0 auto}
#page-content.intent-stage .mini-intro{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;padding:16px 4px 24px}
#page-content.intent-stage .mini-intro>small{flex:none}
#page-content.intent-stage .mini-intro h2{flex:none;font-size:clamp(22px,1.8vw,28px);line-height:1.45;margin:8px 0 20px}
#page-content.intent-stage .intent-picker{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;padding:16px 14px}
#page-content.intent-stage .intent-picker>header{flex:none;margin-bottom:12px}
#page-content.intent-stage .mini-intents{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
#page-content.intent-stage .mini-intents>button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;height:100%;gap:12px}
#page-content.intent-stage .mini-intents .cover{width:auto;max-width:100%;height:calc(100% - 54px);max-height:100%;min-height:0;flex:0 1 auto;aspect-ratio:2/3;object-fit:contain}
#page-content.intent-stage .mini-intents>button>span:not(.cover){flex:0 0 auto;width:100%;min-height:40px;margin:0;display:flex;align-items:center;justify-content:center;font-size:12px;padding:10px 3px}

/* Two soft pulses make the optional attachment choices immediately noticeable. */
#page-content .mini-attach{position:relative;isolation:isolate;border-color:#d8cfb8;box-shadow:0 0 0 2px #d9ca9e12,0 2px 10px #a48a4e12,inset 0 1px #fff}
#page-content .mini-attach::before{content:'';position:absolute;inset:-2px;z-index:1;pointer-events:none;border-radius:inherit;border:2px solid #c6aa63;opacity:0;box-shadow:0 0 0 3px #d6b96b26,0 0 19px #cbaa5352}
#page-content .mini-attach:not(.choice-resolved)::before{animation:attachment-glimmer 2.6s ease-in-out infinite}
#page-content .mini-attach:not(.choice-resolved) .mini-tools button{animation:attachment-choice-glimmer 2.6s ease-in-out infinite}
#page-content .mini-attach:not(.choice-resolved) .mini-tools button:nth-child(2){animation-delay:.12s}
#page-content .mini-attach:not(.choice-resolved) .mini-tools button:nth-child(3){animation-delay:.24s}
@keyframes attachment-glimmer{0%,48%,100%{opacity:.12}12%,33%{opacity:1}23%{opacity:.32}}
@keyframes attachment-choice-glimmer{0%,48%,100%{background-color:#fff;border-color:#d6dbd1;box-shadow:0 1px 2px #26382f08}12%,33%{background-color:#fff5db;border-color:#bfa465;box-shadow:0 0 0 1px #dfc88a48,0 0 11px #cbaa5338}23%{background-color:#fffbed;border-color:#d1bd88;box-shadow:0 0 5px #cbaa531a}}
#page-content .mini-attach.choice-resolved::before{animation:none;opacity:0}
@media(prefers-reduced-motion:reduce){#page-content .mini-attach:not(.choice-resolved)::before{animation:none;opacity:.55}#page-content .mini-attach:not(.choice-resolved) .mini-tools button{animation:none;border-color:#c6af78;background:#fffbed}}
#page-content .cover-baked{background:transparent}

/* Move the scroll track into the existing device inset; retain content width. */
.feed-screen{--scrollbar-outset:14px}
.feed-screen>.feed-scroll,.feed-screen>#page-content:not(.intent-stage){margin-right:calc(-1 * var(--scrollbar-outset));padding-right:var(--scrollbar-outset)}
#page-content:not(.intent-stage) .mini-overlay{padding-right:calc(10px + var(--scrollbar-outset))}

/* Shared destinations belong to the site header, beside the brand. */
.site-bar .space-nav{display:flex;align-items:center;gap:10px;margin-left:28px}
.space-link{display:flex;align-items:center;justify-content:center;min-width:126px;padding:12px 23px;border:1px solid #d8dfd6;border-radius:8px;background:linear-gradient(180deg,#fff,#f1f5ef);box-shadow:inset 0 1px #fff,0 2px 4px #24382c0c;font:600 15px/1.4 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;white-space:nowrap;color:#526c59;text-decoration:none}
.space-reading{border-color:#d1dfe2;background:linear-gradient(180deg,#f6fafb,#eaf1f3);color:#53717a}
.space-snack{border-color:#e3d9c8;background:linear-gradient(180deg,#fffaf2,#f4ecdf);color:#92744e}
.space-reading.is-current{border-color:#526d77;background:linear-gradient(180deg,#ffffff3b,transparent 43%),linear-gradient(180deg,#718b94,#486572);box-shadow:inset 0 1px #ffffff65,0 3px 5px #2f454724;color:#fff}
.space-link:hover{filter:brightness(.98)}
@media(max-width:1100px){.site-bar .space-nav{margin-left:10px;gap:7px}.space-link{min-width:98px;padding:11px 15px;font-size:13px}}
@media(max-width:700px){.site-bar .space-nav{margin-left:0;gap:4px}.space-link{min-width:0;padding:7px 6px;font-size:10px}.site-bar .brand{font-size:18px}.site-bar .brand img{width:17px;height:17px}.layout-extended .site-bar{gap:7px}}
.mini-publish{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex:none}
.mini-reward-note{font:11px/1.5 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#7e806e;white-space:nowrap}
.mini-reward-note b{font-weight:600;color:#8d7041}.mini-reward-note b span{font-size:9px;color:#a16f4c}
/* Reuse My Page's shared boxed SP unit without a second visual variant. */
.left-rail .compose-nav-label{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.compose-reward{display:inline-flex;align-items:center;gap:4px;font:500 10px/1.5 'Apple SD Gothic Neo','Noto Sans KR',sans-serif;color:#7c887d;white-space:nowrap;margin-left:auto}
.nav-item.active .compose-reward{color:#e7eee7}
.compose-reward .sp-amount{font-size:11px;gap:3px}
.mini-reward-note .sp-amount{font-size:12px;margin:0 2px;color:#8d7041}
#feed-toast .sp-amount{margin:0 2px}
@media(max-width:700px){.left-rail .compose-reward{display:none}}
.left-rail .compose-reward{font-size:11px}
.left-rail .compose-reward .sp-amount{display:inline-flex;align-items:baseline;gap:3px;font-size:12px}

/* The same cropped square photo and rounded frame in real and simulated profiles. */
.self-avatar.profile-photo-shell{padding:0;overflow:hidden;aspect-ratio:1;border-radius:21%;position:relative}
.self-avatar.profile-photo-shell>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.rail-profile small{display:block;overflow-wrap:anywhere}
