/* 102 / 1600×900 establishes the shared left edge and service navigation. */
:root{--shell-gutter:clamp(24px,3vw,48px)}
body>.header.global-shell,body[data-room-view]>.header.global-shell{display:flex!important;align-items:center!important;justify-content:flex-start;gap:36px!important;box-sizing:border-box;width:100%!important;max-width:none!important;height:88px!important;min-height:88px!important;margin:0!important;padding:0 var(--shell-gutter)!important;border-bottom:1px solid #d9e1d6;background:linear-gradient(180deg,#fffefa,#fafbf7)!important;box-shadow:0 3px 12px #32473a0a}
body>.header.global-shell>.logo{flex:none;display:inline-flex;align-items:center;font-size:30px!important;letter-spacing:-1px;line-height:1}
body>.header.global-shell .brand-cookie{width:26px;height:26px;margin-left:8px}
body>.header.global-shell>.site-visit-count{position:absolute!important;top:calc(100% + 8px)!important;left:var(--shell-gutter)!important;bottom:auto!important;margin:0!important;padding:0!important;font:400 11px/1.5 'Gowun Dodum','Apple SD Gothic Neo',sans-serif!important;color:#7c8875;white-space:nowrap;letter-spacing:.1px;z-index:1}
body>.header.global-shell>.site-visit-count b{font-size:11px;font-weight:600;color:#576b52}
body>.header.global-shell>.shell-nav,body[data-room-view]>.header.global-shell>.shell-nav{display:flex!important;flex:1;align-items:center!important;justify-content:space-between!important;gap:24px!important;width:auto!important;min-width:0;margin:0!important;padding:0!important}
.global-shell .shell-categories,.global-shell .shell-account{display:flex;align-items:center;flex:none;gap:12px}
.global-shell .shell-account{margin-left:auto;justify-content:flex-end;gap:12px;flex:0 0 auto}
/* Platform navigation has a stronger scale than room navigation. */
body>.header.global-shell .shell-category{position:relative;display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:158px;height:52px;min-height:52px;margin:0!important;padding:12px 27px!important;border:1px solid #ccd8c6!important;border-radius:10px!important;background:linear-gradient(160deg,#fffefa 0%,#edf2e7 100%)!important;box-shadow:inset 0 1px 1px #fff, inset 0 -1px #b3c0aa30,0 3px 6px #32493612!important;font:600 20px/1.2 'Gowun Dodum','Apple SD Gothic Neo',sans-serif!important;letter-spacing:.7px;color:#50644c!important;text-decoration:none;white-space:nowrap;transition:background .18s,box-shadow .18s,transform .18s}
body>.header.global-shell .shell-category:before,body>.header.global-shell .shell-category:after{display:none!important}
body>.header.global-shell .shell-category[href="/bookorism"]{border-color:#c5d4d6!important;background:linear-gradient(155deg,#f9fcfc,#e7eff0)!important;color:#476875!important}
body>.header.global-shell .shell-category[href="/books"]{border-color:#ded0bc!important;background:linear-gradient(155deg,#fffdf7,#f1e8d9)!important;color:#8a6842!important}
body>.header.global-shell .shell-category:hover{transform:translateY(-1px);box-shadow:inset 0 1px #fff,0 5px 9px #364f3620!important}
body>.header.global-shell .shell-category.is-selected{border-color:#496551!important;background:linear-gradient(155deg,#819b84 0%,#607f65 38%,#3f604b 100%)!important;box-shadow:inset 0 1px #ffffff90,inset 0 -1px #243d3270,0 4px 8px #304b2e26!important;color:#fffef7!important;text-shadow:0 1px #304b2f55}
body>.header.global-shell .shell-account>.author-settlement-link{display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;min-height:42px;margin:0!important;padding:10px 18px!important;border:1px solid #d8c5a5!important;border-radius:8px!important;background:linear-gradient(160deg,#fffaf0,#eee2cc)!important;box-shadow:inset 0 1px #fff,0 2px 4px #71573512!important;color:#7a5a32!important;font:600 14px/1.3 'Gowun Dodum','Apple SD Gothic Neo',sans-serif!important;text-decoration:none;white-space:nowrap}
body>.header.global-shell .shell-account>.author-settlement-link:hover{border-color:#b79b70!important;background:linear-gradient(#fff9eb,#e8d8bc)!important}
/* Intrinsic account width grows towards the left; the group is anchored right. */
body>.header.global-shell .shell-account>#account-button{display:inline-flex!important;flex:0 0 auto!important;width:max-content!important;max-width:none!important;align-items:center;justify-content:center;gap:10px;min-height:44px;margin:0!important;padding:10px 18px!important;border:1px solid #96ac8d!important;border-radius:8px;background:linear-gradient(155deg,#f4f8ed,#dbe6cf)!important;box-shadow:inset 0 1px #fff,0 2px 4px #344f2e18!important;color:#3d583b!important;font:600 14px/1.3 'Gowun Dodum','Apple SD Gothic Neo',sans-serif!important;white-space:nowrap;cursor:pointer}
body>.header.global-shell #account-button .account-amount{font-size:15px;white-space:nowrap}
body[data-room-view="relay"] main>#relay.story-classroom.room-system{padding-left:var(--shell-gutter)!important;padding-right:var(--shell-gutter)!important}
@media(max-width:1000px) and (min-width:721px){body>.header.global-shell{gap:22px!important}.global-shell .shell-account{gap:12px}body>.header.global-shell .shell-category{min-width:100px;padding-inline:16px!important;font-size:16px!important}}
@media(max-width:720px){:root{--shell-gutter:12px}body>.header.global-shell,body[data-room-view]>.header.global-shell{height:72px!important;min-height:72px!important;gap:10px!important}body>.header.global-shell>.logo{font-size:22px!important}body>.header.global-shell .brand-cookie{display:none}body>.header.global-shell>.shell-nav,body[data-room-view]>.header.global-shell>.shell-nav{gap:8px!important;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.global-shell .shell-categories{gap:4px}body>.header.global-shell .shell-category{min-width:auto;height:34px;min-height:34px;padding:7px 10px!important;border-radius:6px!important;font-size:11px!important}.global-shell .shell-account{gap:8px}body>.header.global-shell .shell-account>.author-settlement-link{font-size:10px!important}body>.header.global-shell .shell-account>#account-button{font-size:10px!important;padding:6px 8px!important;min-height:32px}body>.header.global-shell>.site-visit-count{font-size:10px!important;top:calc(100% + 5px)!important}}
/* Align platform navigation with the room workspace columns. */
@media(min-width:1200px){
 body>.header.global-shell,body[data-room-view]>.header.global-shell{display:grid!important;grid-template-columns:270px minmax(0,1fr);column-gap:30px!important}
 body>.header.global-shell>.logo{grid-column:1;grid-row:1;justify-self:start}
 body>.header.global-shell>.shell-nav{grid-column:2;grid-row:1;width:100%!important}
}
