@charset "UTF-8";
:root{--ink:#171717;--muted:#707070;--line:#dededb;--paper:#fff;--soft:#f5f5f2;--red:#b71925}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 "Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 16px;min-height:42px;border:1px solid var(--ink);border-radius:2px;background:white;color:var(--ink);font-weight:600;white-space:normal}button:hover,.button:hover{background:var(--soft)}.primary{background:var(--ink);color:#fff}.primary:hover{background:#3b3b3b}.subtle{border-color:var(--line);font-weight:400}.small{font-size:12px;padding:5px 10px;min-height:32px}.danger{color:#a21622;border-color:#dcc6c6}.text-btn{border:0;padding:3px;background:none;min-height:30px}.muted{color:var(--muted)}.hub{color:var(--red)!important}.topbar{max-width:1400px;margin:auto;padding:28px 48px 24px;display:flex;gap:30px;align-items:center}.brand{font-family:Georgia,serif;font-weight:bold;font-size:33px;letter-spacing:-1px;line-height:1.1}.brand small{font:10px/1 sans-serif;display:block;letter-spacing:3.6px;margin-top:8px}.search{display:flex;flex:1;max-width:510px;margin-left:auto;gap:6px}.search input{border-width:0 0 1px;border-radius:0;background:var(--soft);min-width:0}.search button{border:0;background:var(--ink);color:#fff}.account-links{display:flex;gap:18px;align-items:center;font-size:13px}.nav-wrap{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.nav{max-width:1400px;padding:0 48px;margin:auto;display:flex;gap:30px;overflow-x:auto;white-space:nowrap}.nav a{padding:17px 0;font-size:14px;font-weight:600}.nav a.active{box-shadow:inset 0 -2px #111}.wrap{max-width:1400px;padding:38px 48px 90px;margin:auto;min-height:60vh}.eyebrow{font:11px/1.4 sans-serif;letter-spacing:2.4px;text-transform:uppercase;color:#656565;margin-bottom:20px}.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:60px;border-bottom:1px solid var(--ink);padding:18px 0 42px;align-items:end}.hero h1{font:500 46px/1.35 Georgia,"Batang",serif;letter-spacing:-2px;margin:0 0 18px}.hero p{color:var(--muted);max-width:510px;margin:0}.hero-side{border-left:1px solid var(--line);padding-left:32px}.hero-side h2{font-size:19px;margin:0 0 10px}.hero-side p{font-size:14px}.hero-side .actions{margin-top:20px}.categories{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0}.chip{font-size:13px;padding:8px 15px;border:1px solid var(--line);border-radius:30px;display:inline-block;background:#fff}.chip.active{background:#171717;color:#fff;border-color:#171717}.subcategories{font-size:12px;display:flex;gap:8px;padding:0 0 20px;flex-wrap:wrap}.section{padding:24px 0 35px}.section-head{display:flex;justify-content:space-between;gap:20px;align-items:baseline;margin-bottom:26px}.section-head h2{font:500 25px/1.3 Georgia,"Batang",serif;letter-spacing:-.7px;margin:0}.section-head small{color:var(--muted);font:11px sans-serif;letter-spacing:1px;margin-right:12px}.section-head a{font-size:12px;white-space:nowrap}.book-grid{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:34px 30px}.book-card{min-width:0;display:block}.cover-stage{background:var(--soft);padding:32px 20px;display:flex;align-items:center;justify-content:center;aspect-ratio:1.42;overflow:hidden}.cover-stage img{display:block;max-height:240px;max-width:80%;height:100%;width:auto;object-fit:contain;box-shadow:4px 6px 10px #0002}.cover-placeholder{height:215px;max-width:155px;width:80%;background:#fff;border:1px solid #ccc;box-shadow:4px 6px 10px #0001;padding:27px 16px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.cover-placeholder strong{font:500 21px/1.4 "Batang",serif;overflow-wrap:anywhere}.cover-placeholder small{font-size:10px}.book-info{padding-top:15px}.book-info strong{font-size:17px;display:block;margin:4px 0;overflow-wrap:anywhere}.book-info p{margin:3px 0;color:var(--muted);font-size:12px}.book-info b{font-size:13px;font-weight:500}.book-tags{display:flex;gap:6px;font-size:10px;letter-spacing:.2px}.book-tags span{border:1px solid var(--line);padding:1px 5px}.slider{grid-auto-flow:column;grid-template-columns:none;grid-template-rows:repeat(var(--rows,1),auto);grid-auto-columns:calc((100% - (var(--cols,3) - 1)*30px)/var(--cols,3));overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:20px}.slider .book-card{scroll-snap-align:start}.empty{padding:38px 24px;border:1px dashed #d7d7d2;background:#fafaf8;text-align:center;color:var(--muted);font-size:14px}.empty strong{display:block;color:#333;font-size:17px;margin-bottom:6px}.empty .button{margin-top:20px}.notice{border:1px solid var(--line);padding:20px 24px;font-size:13px;margin:20px 0;background:#fafaf8}.notice p{margin:6px 0}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:30px}.page-heading h1{font-size:30px;font-weight:500;margin:0 0 5px;letter-spacing:-1px}.page-heading p{margin:0;color:var(--muted)}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:24px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.panel{border:1px solid var(--line);padding:25px;margin-bottom:22px;min-width:0}.panel h2,.panel h3{font-size:19px;margin:0 0 16px;font-weight:600}.panel p{overflow-wrap:anywhere}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.panel-head h2,.panel-head h3{margin:0}.badge{font-size:11px;border:1px solid #ccc;padding:3px 8px;white-space:nowrap;display:inline-block;background:var(--soft)}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}.field.full{grid-column:1/-1}.field span{font-weight:600}.field small{color:var(--muted)}input,select,textarea{max-width:100%;width:100%;padding:10px 11px;border:1px solid #cfcfcb;border-radius:2px;background:#fff;color:#151515;min-height:44px}textarea{resize:vertical;min-height:110px;line-height:1.8}textarea.manuscript{min-height:430px;font-size:16px}input[type=checkbox]{width:17px;min-height:17px;margin:0 6px 0 0;vertical-align:middle;accent-color:#161616}.check{font-size:13px;display:inline-flex;align-items:center;gap:5px}.checks{display:flex;flex-wrap:wrap;gap:14px}.table-wrap{max-width:100%;overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:14px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{color:#60605c;background:var(--soft);font-size:12px;font-weight:500;white-space:nowrap}td .actions{min-width:120px}td .title{font-weight:600;min-width:100px}td small{color:var(--muted)}.admin-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:34px}.sidebar{border-right:1px solid var(--line);padding-right:24px}.sidebar h2{font-size:15px;margin:5px 0 25px}.sidebar a{display:block;padding:10px 12px;margin-bottom:4px;font-size:13px}.sidebar a.active{background:#171717;color:#fff}.sidebar .divider{border-top:1px solid var(--line);margin:18px 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 28px}.metric{border:1px solid var(--line);padding:18px}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{font:26px Georgia,serif}.section-edit{border:1px solid var(--line);padding:20px;margin:16px 0}.section-edit .fields{grid-template-columns:repeat(4,1fr)}.section-edit header{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:18px}.manual-list{max-height:180px;overflow-y:auto;border:1px solid var(--line);padding:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.manual-list label{font-size:12px}.admin-note{color:var(--muted);font-size:12px}.chapter-list{display:flex;flex-direction:column;gap:8px}.chapter{padding:18px;border:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.chapter span{font-size:12px;color:var(--muted)}.reader{white-space:pre-wrap;max-width:740px;margin:30px auto;font:17px/2 "Batang",serif;overflow-wrap:anywhere}.book-detail{display:grid;grid-template-columns:1fr 1.3fr;gap:50px}.book-detail .cover-stage{aspect-ratio:.95}.book-detail .cover-placeholder{height:300px;max-width:210px}.book-detail h1{font-size:35px;margin:0 0 10px}.price{font:28px Georgia,serif;margin:24px 0}.prose{white-space:pre-wrap;overflow-wrap:anywhere}.footer{border-top:1px solid var(--line);background:var(--soft);padding:40px 48px}.footer-inner{max-width:1304px;margin:auto;display:grid;grid-template-columns:1fr 2fr;gap:40px}.footer p{margin:5px 0;font-size:11px;color:#777}.footer .brand{font-size:25px}.footer .links{display:flex;gap:18px;font-size:12px;margin-bottom:18px}.pagination{margin:28px 0;display:flex;gap:15px;align-items:center;justify-content:center}.loading{padding:100px 25px;text-align:center;color:#666}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#222;color:#fff;max-width:calc(100% - 32px);padding:12px 24px;z-index:100;font-size:14px;display:none;box-shadow:0 3px 15px #0002}#toast.show{display:block}dialog{border:1px solid var(--line);border-radius:4px;width:min(760px,calc(100% - 32px));padding:28px;max-height:90vh;overflow-y:auto}dialog::backdrop{background:#0005}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.dialog-head h2{margin:0;font-size:22px}.dialog-head button{border:0;padding:2px 9px;font-size:20px}.form-error{padding:12px;color:#a21622;background:#fff5f5;margin:12px 0;display:none}.form-error:not(:empty){display:block}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.skip{position:absolute;top:-100px;left:15px;background:#111;color:#fff;padding:10px;z-index:1000}.skip:focus{top:10px}:focus-visible{outline:2px solid #171717;outline-offset:4px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.progress{height:4px;background:#eee;margin:10px 0}.progress>span{display:block;background:#333;height:100%}.auth{max-width:620px;margin:auto}.break{overflow-wrap:anywhere}.status-line{display:flex;gap:8px;flex-wrap:wrap}.message{border-bottom:1px solid var(--line);padding:18px 0}.message p{margin:5px 0}.align-right{text-align:right}.warning{border-left:3px solid #333;padding:12px 18px;background:var(--soft)}
@media(min-width:1100px){.book-grid[style*="--cols:5"] .cover-stage,.book-grid[style*="--cols:6"] .cover-stage{padding:18px 8px}.book-grid[style*="--cols:5"] .cover-placeholder,.book-grid[style*="--cols:6"] .cover-placeholder{height:150px;padding:15px 10px}.book-grid[style*="--cols:6"] .cover-placeholder strong{font-size:15px}}
@media(max-width:1000px){.topbar{padding:24px;gap:20px}.account-links{gap:10px}.nav{padding:0 24px;gap:24px}.wrap{padding:28px 24px 65px}.hero{gap:30px}.hero h1{font-size:37px}.admin-layout{grid-template-columns:150px minmax(0,1fr);gap:24px}.sidebar{padding-right:16px}.section-edit .fields{grid-template-columns:1fr 1fr}.grid3{grid-template-columns:1fr 1fr}.book-grid{gap:22px}.footer{padding:35px 24px}}
@media(max-width:640px){body{font-size:14px}.topbar{padding:20px 18px;flex-wrap:wrap;gap:20px}.brand{font-size:29px}.account-links{margin-left:auto;font-size:12px}.search{order:3;max-width:none;width:100%;flex-basis:100%;margin:0}.nav{padding:0 18px;gap:24px}.nav a{padding:13px 0;font-size:13px}.wrap{padding:25px 18px 50px}.hero{grid-template-columns:1fr;gap:25px;padding:5px 0 30px}.hero h1{font-size:34px}.hero-side{padding:18px 0 0;border-left:0;border-top:1px solid var(--line)}.hero-side h2{font-size:16px}.hero-side p{font-size:12px}.eyebrow{font-size:10px;margin-bottom:16px}.categories{gap:6px;margin:20px 0}.chip{font-size:11px;padding:7px 11px}.section{padding:20px 0}.section-head{margin-bottom:18px}.section-head h2{font-size:22px}.section-head small{display:none}.book-grid{grid-template-columns:repeat(var(--mobile,1),minmax(0,1fr));gap:22px 12px}.slider{grid-template-columns:none;grid-auto-columns:calc((100% - (var(--mobile,1) - 1)*12px)/var(--mobile,1))}.cover-stage{padding:25px 12px;aspect-ratio:1.5}.cover-placeholder{height:210px}.book-grid[style*="--mobile:2"] .cover-placeholder{height:155px;padding:18px 12px}.book-grid[style*="--mobile:3"] .cover-placeholder{height:115px;padding:12px 6px;width:90%}.book-grid[style*="--mobile:3"] .cover-placeholder strong{font-size:12px}.book-grid[style*="--mobile:3"] .book-info strong{font-size:13px}.book-grid[style*="--mobile:3"] .cover-stage{padding:12px 3px}.page-heading{align-items:start;flex-direction:column;gap:15px}.page-heading h1{font-size:27px}.panel{padding:18px}.grid2,.grid3,.book-detail,.footer-inner{grid-template-columns:1fr;gap:20px}.fields{grid-template-columns:1fr}.field.full{grid-column:auto}.admin-layout{grid-template-columns:1fr;gap:20px}.sidebar{border-right:0;border-bottom:1px solid var(--line);padding:0 0 15px;display:flex;overflow:auto;gap:6px}.sidebar h2,.sidebar .divider{display:none}.sidebar a{white-space:nowrap;padding:9px 12px;margin:0}.metrics{grid-template-columns:repeat(2,1fr);gap:8px}.metric{padding:12px}.section-edit{padding:14px}.section-edit .fields{grid-template-columns:1fr 1fr;gap:12px}.section-edit header{align-items:start}.manual-list{grid-template-columns:1fr}.book-detail .cover-stage{aspect-ratio:1.3}.book-detail h1{font-size:29px}dialog{padding:20px}th,td{padding:12px 9px}.footer{padding:30px 18px}.footer-inner{gap:25px}.chapter{flex-wrap:wrap}.chapter .actions{margin-left:auto}.book-info strong{font-size:16px}}

.captcha-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.captcha-row img{border:1px solid var(--line);max-width:100%;object-fit:contain}

@media(min-width:641px){.book-card.clip-pc{display:none}}
@media(max-width:640px){.book-card.clip-mobile{display:none}}
.cover-stage{height:290px;aspect-ratio:auto;padding:24px 16px}.cover-placeholder{height:220px}.cover-stage img{max-height:235px;max-width:85%}
@media(min-width:641px){.book-grid[style*="--cols:4"] .cover-stage{height:235px;padding:18px 10px}.book-grid[style*="--cols:4"] .cover-placeholder{height:185px;padding:18px 12px}.book-grid[style*="--cols:5"] .cover-stage,.book-grid[style*="--cols:6"] .cover-stage{height:195px;padding:12px 8px}.book-grid[style*="--cols:5"] .cover-placeholder,.book-grid[style*="--cols:6"] .cover-placeholder{height:150px;padding:12px 8px}}
@media(max-width:640px){.cover-stage{height:260px;padding:20px 12px}.cover-placeholder{height:210px}.book-grid[style*="--mobile:2"] .cover-stage{height:210px;padding:15px 8px}.book-grid[style*="--mobile:2"] .cover-placeholder{height:170px}.book-grid[style*="--mobile:3"] .cover-stage{height:160px;padding:12px 3px}.book-grid[style*="--mobile:3"] .cover-placeholder{height:125px}}
.book-detail .cover-stage{height:360px;aspect-ratio:auto}

.offer-price{display:block;margin-top:5px}.edition-edit{border:1px solid var(--line);padding:20px;background:#fafafa;gap:15px}.edition-edit h3{margin:0}.edition-edit>.fields{margin-top:15px}.edition-offers{margin:24px 0;display:grid;gap:12px}.edition-offer{border:1px solid var(--line);padding:20px;display:flex;gap:20px;justify-content:space-between;align-items:center}.edition-offer .price{font-size:23px;margin:8px 0}.edition-offer .button{margin:4px 0}.edition-offer small{color:var(--muted)}@media(max-width:640px){.edition-offer{align-items:flex-start;flex-direction:column}.edition-edit{padding:15px}}

.search button{white-space:nowrap;flex-shrink:0}.metric strong{overflow-wrap:anywhere;font-size:22px}

.business-card{color:inherit;text-decoration:none;transition:border-color .15s}.business-card:hover{border-color:#111}.business-card span{font-size:13px;color:#666}

/* Hub dashboard: scoped so the catalog and administration keep their layout. */
body[data-page="hub"]{background:#fff;--soft:#f7f7f5;--line:#e6e6e2}
.hub-header{border-bottom:1px solid var(--line);background:#fff}
.hub-header-inner{max-width:1280px;margin:auto;padding:24px 40px;display:flex;align-items:center;gap:58px}
.hub-header .brand{font-size:30px}.hub-header .brand small{font-size:8px;letter-spacing:3px}
.hub-header-nav{display:flex;gap:30px;font-size:14px;font-weight:600}.hub-header-nav a{padding:10px 0}
.hub-header-account{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:13px;min-width:0}
.hub-header-profile{display:flex;align-items:center;gap:10px;min-width:0}.hub-header-profile>span:last-child{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-avatar{width:64px;height:64px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:#f0f0ed;border:1px solid var(--line);border-radius:50%;overflow:hidden;color:#6a6a66}
.hub-avatar img{width:100%;height:100%;object-fit:cover}.hub-avatar svg{width:34px;height:34px}.hub-avatar.is-small{width:34px;height:34px}.hub-avatar.is-small svg{width:20px;height:20px}
.hub-wrap{max-width:1280px;padding:46px 40px 72px}.hub-intro{margin-bottom:28px}.hub-intro .eyebrow{font-size:10px;letter-spacing:2.8px;margin:0 0 10px}.hub-intro h1{font-size:32px;line-height:1.5;letter-spacing:-1.2px;margin:0 0 7px;font-weight:600}.hub-intro p{font-size:14px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.hub-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}
.hub-services a{border:1px solid var(--line);border-radius:8px;padding:21px;display:flex;gap:16px;align-items:center;transition:border-color .15s}.hub-services a:hover{border-color:#888}
.hub-services a>span{display:flex;align-items:center;justify-content:center;width:40px;height:42px;flex-shrink:0;background:#f7f7f5;border-radius:6px}.hub-services svg{width:24px;height:24px}.hub-services a>svg{width:17px;height:17px;margin-left:auto;flex-shrink:0;color:#888}.hub-services strong,.hub-services small{display:block}.hub-services strong{font-size:17px;letter-spacing:-.4px}.hub-services small{font-size:12px;color:var(--muted);margin-top:3px}
.hub-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:8px;margin-bottom:32px;padding:21px 0}.hub-stats>a{padding:0 24px;border-right:1px solid var(--line)}.hub-stats>a:last-child{border-right:0}.hub-stats span{font-size:12px;color:var(--muted);display:block}.hub-stats strong{display:block;font-size:26px;font-weight:600;line-height:1.4;margin-top:5px}.hub-stats small{font-size:12px;font-weight:400;margin-left:5px}
.hub-dashboard{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,1fr);gap:28px;align-items:start}.hub-main-column,.hub-side-column{min-width:0}.hub-side-column{display:grid;gap:24px}.hub-section{margin:0 0 30px;min-width:0}.hub-side-column .hub-section{margin:0}.hub-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.hub-section-head h2{font-size:19px;font-weight:600;margin:0;letter-spacing:-.5px}.hub-section-head>a{font-size:12px;color:#62625e;flex-shrink:0}.hub-section-head h3{margin:0;font-size:16px}.hub-section-head>svg{width:21px;height:21px;color:#888}
.hub-card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.hub-draft{display:flex;gap:24px;padding:26px;border-bottom:1px solid var(--line)}.hub-book-cover{display:flex;flex-direction:column;justify-content:space-between;flex:0 0 102px;min-height:143px;border:1px solid #d8d8d1;background:#f5f4ef;padding:13px 11px;box-shadow:3px 3px 0 #f4f4f1;overflow-wrap:anywhere}.hub-book-cover small{font-size:6px;letter-spacing:1px;color:#777}.hub-book-cover strong{font-family:"Batang",serif;font-size:16px;font-weight:500;line-height:1.5;margin:9px 0}.hub-book-cover>span{font-size:8px;color:#777}.hub-draft-text{min-width:0;align-self:center}.hub-meta{font-size:11px;color:#787873}.hub-draft h3{font-size:19px;margin:6px 0;overflow-wrap:anywhere;line-height:1.5}.hub-draft p{font-size:12px;color:var(--muted);margin:0 0 15px}.hub-draft .button{font-size:12px;border-radius:5px;min-height:37px;padding:6px 14px}.hub-draft .button svg{width:15px;height:15px}.hub-card-bottom{display:flex;justify-content:space-between;gap:12px;padding:16px 24px;font-size:12px;background:#fcfcfb}.hub-card-bottom span{color:var(--muted)}.hub-card-bottom a{font-weight:600;flex-shrink:0}
.hub-profile-card{padding:24px}.hub-profile-top{display:flex;align-items:center;gap:15px}.hub-profile-top small{font-size:8px;letter-spacing:1.8px;color:#888}.hub-profile-top h2{font-size:22px;margin:1px 0;overflow-wrap:anywhere}.hub-profile-top p{font-size:12px;margin:0}.hub-profile-intro{font-size:12px;margin:19px 0 12px;line-height:1.8;color:#656560;overflow-wrap:anywhere}.hub-profile-roles{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:17px}.hub-profile-roles .badge{border-radius:3px;font-size:10px;background:#fafaf8}.hub-affiliation{font-size:12px;overflow-wrap:anywhere;margin:7px 0 14px}.hub-affiliation span{font-size:10px;color:var(--muted);margin-left:4px}.hub-wide{display:flex;width:100%;font-size:12px;min-height:38px;border-radius:5px;justify-content:space-between}.hub-wide svg{width:15px;height:15px}
.hub-settlement{padding:23px}.hub-settlement .hub-section-head{margin-bottom:21px}.hub-money-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:13px 0;font-size:12px}.hub-money-row>span{color:var(--muted)}.hub-money-row strong{font-size:23px;letter-spacing:-.4px;overflow-wrap:anywhere}.hub-money-row b{font-size:15px}.hub-settlement>.button{margin-top:22px}.hub-pay{border-top:1px solid var(--line);margin-top:20px;padding-top:17px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px}.hub-pay>span{color:var(--muted)}.hub-pay b{margin-left:auto;font-size:13px}.hub-pay a{width:100%;text-align:right;font-size:11px;color:#777}
.hub-count{display:inline-block;font-size:11px;line-height:22px;min-width:22px;text-align:center;border-radius:50%;background:#f0f0ed;color:#555;vertical-align:middle;margin-left:4px}.hub-task{display:flex;align-items:center;gap:14px;padding:20px 22px;border-bottom:1px solid var(--line)}.hub-task:last-child{border-bottom:0}.hub-task h3{font-size:13px;font-weight:500;margin:0 0 4px}.hub-task b{font-size:11px;margin-left:5px}.hub-task p{font-size:11px;color:var(--muted);margin:0}.hub-task-icon{width:31px;height:31px;flex:0 0 31px;background:#f5f5f1;display:flex;align-items:center;justify-content:center;border-radius:50%}.hub-task svg{width:15px;height:15px}.hub-task>svg{margin-left:auto;flex-shrink:0}.hub-pub-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 20px;gap:22px}.hub-pub-tabs button{background:none;border:0;border-radius:0;padding:15px 0;min-height:48px;font-size:12px;color:#888;font-weight:400}.hub-pub-tabs button.active{color:#111;box-shadow:inset 0 -2px #222;font-weight:600}.hub-pub-row{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:21px 24px;border-bottom:1px solid var(--line);align-items:center}.hub-pub-row:last-child{border-bottom:0}.hub-pub-row small{font-size:10px;color:#888}.hub-pub-row h3{font-size:15px;margin:4px 0;overflow-wrap:anywhere}.hub-pub-row p{grid-column:1/-1;font-size:12px;color:var(--muted);margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.hub-pub-row>a{font-size:11px;margin-top:5px}.hub-pub-row .badge{font-size:10px;border-radius:3px}
.hub-room{padding:18px;display:flex;gap:11px;flex-wrap:wrap;border-bottom:1px solid var(--line);align-items:flex-start}.hub-room:last-child{border-bottom:0}.hub-room-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;background:#f6f6f3;border-radius:5px}.hub-room-icon svg{width:18px;height:18px}.hub-room-text{flex:1;min-width:0}.hub-room h3{font-size:13px;margin:0 0 5px;overflow-wrap:anywhere}.hub-room p{font-size:10px;margin:3px 0;color:var(--muted);overflow-wrap:anywhere}.hub-room-action{display:flex;gap:7px;align-items:center;margin-left:43px;width:calc(100% - 43px)}.hub-room-action .button,.hub-room-action button{font-size:11px;border-radius:4px;min-height:30px}.hub-room-action .text-btn{margin-left:auto;color:#777;font-size:10px}.hub-hint{font-size:10px;color:#777;margin:9px 2px 0;line-height:1.8}.hub-empty{text-align:center;padding:30px 20px;font-size:13px;color:#777}.hub-empty h3{font-size:16px;color:#333;margin:4px 0 12px}.hub-empty p{margin:5px 0 12px}.hub-empty small{font-size:11px}.hub-empty a{font-size:12px;color:#333}.hub-empty-compact{padding:20px}.hub-empty-compact p{margin:5px 0}
.hub-guest{padding:35px;margin:0 0 30px;text-align:center}.hub-guest h2{font-size:22px}.hub-guest p{font-size:13px;color:#777}.hub-guest .actions{justify-content:center}.hub-admin-card{padding:22px}.hub-admin-card h2{font-size:17px;margin:0 0 8px}.hub-admin-card p{font-size:12px;color:#777;margin:0 0 18px}.hub-community{border-top:1px solid var(--line);padding-top:22px;margin-top:8px}.hub-community summary{font-size:14px;cursor:pointer}.hub-community>.hub-section{margin-top:22px}.hub-post{padding:24px;margin-bottom:16px}.hub-post .prose{font-size:14px}.hub-post .actions{margin-top:18px}.hub-group-admin{padding:24px;margin:25px 0}.hub-group-admin h2{font-size:19px}.hub-mobile-nav{display:none}body[data-page="hub"] .footer{background:#fff}
@media(max-width:1000px){.hub-header-inner{padding:22px 24px;gap:30px}.hub-wrap{padding:36px 24px 64px}.hub-dashboard{grid-template-columns:minmax(0,1.5fr) minmax(275px,1fr);gap:22px}.hub-services a{padding:16px;gap:10px}.hub-services small{font-size:10px}.hub-draft{padding:20px;gap:17px}.hub-book-cover{flex-basis:87px;min-height:130px}.hub-draft h3{font-size:17px}.hub-profile-card,.hub-settlement{padding:20px}}
@media(max-width:760px){.hub-header-inner{gap:20px;padding:19px 20px}.hub-header-nav{gap:18px;font-size:12px}.hub-header-account{gap:10px}.hub-header-account .text-btn{font-size:11px}.hub-wrap{padding:30px 20px 64px}.hub-dashboard{grid-template-columns:minmax(0,1fr)}.hub-side-column{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.hub-side-column #hub-groups{grid-column:1/-1}.hub-side-column .hub-admin-card{grid-column:1/-1}.hub-main-column .hub-section:last-child{margin-bottom:25px}.hub-services{gap:9px}.hub-services a{padding:13px 10px;gap:9px}.hub-services a>span{width:30px}.hub-services a>svg{display:none}.hub-services strong{font-size:15px}.hub-stats>a{padding:0 18px}.hub-intro h1{font-size:29px}}
@media(max-width:540px){.hub-header-inner{padding:18px;gap:12px}.hub-header .brand{font-size:26px}.hub-header .brand small{font-size:6px;letter-spacing:2.8px}.hub-header-nav{display:none}.hub-header-profile{gap:7px}.hub-header-profile>span:last-child{max-width:94px;font-size:12px}.hub-header-account{gap:10px}.hub-header-account .text-btn{font-size:10px;padding:0;min-height:32px}.hub-avatar.is-small{width:30px;height:30px}.hub-wrap{padding:28px 18px 42px}.hub-intro{margin-bottom:23px}.hub-intro h1{font-size:25px;letter-spacing:-1px}.hub-intro p{font-size:12px;max-width:290px;line-height:1.9}.hub-services{gap:8px;margin-bottom:22px}.hub-services a{display:flex;flex-direction:column;gap:8px;text-align:center;padding:15px 5px 14px}.hub-services a>span{background:none;height:27px}.hub-services svg{width:23px;height:23px}.hub-services strong{font-size:14px}.hub-services small{font-size:9px;line-height:1.6;margin-top:4px;word-break:keep-all}.hub-stats{padding:16px 0;margin-bottom:26px}.hub-stats>a{padding:0 10px;text-align:center}.hub-stats span{font-size:9px}.hub-stats strong{font-size:23px;margin-top:6px}.hub-stats small{font-size:9px;margin-left:3px}.hub-section{margin-bottom:26px}.hub-section-head{margin-bottom:12px}.hub-section-head h2{font-size:18px}.hub-section-head>a{font-size:10px}.hub-draft{padding:20px 17px;gap:18px}.hub-draft h3{font-size:16px}.hub-draft p{font-size:10px}.hub-meta{font-size:10px}.hub-book-cover{flex-basis:84px;min-height:122px}.hub-book-cover strong{font-size:14px}.hub-draft .button{min-height:34px;font-size:11px}.hub-card-bottom{padding:14px 17px;font-size:10px}.hub-side-column{grid-template-columns:minmax(0,1fr);gap:24px}.hub-profile-card{padding:22px}.hub-profile-top h2{font-size:21px}.hub-settlement{padding:22px}.hub-task{padding:17px;gap:12px}.hub-task h3{font-size:12px}.hub-task p{font-size:10px}.hub-pub-row{padding:18px}.hub-pub-tabs{gap:21px;padding:0 18px}.hub-pub-tabs button{font-size:11px}.hub-guest{padding:25px 17px}.hub-guest h2{font-size:20px}.hub-guest p{font-size:12px}.hub-post,.hub-group-admin{padding:18px}.hub-mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:13px 8px max(13px,env(safe-area-inset-bottom));font-size:11px}.hub-mobile-nav a:first-child{color:var(--red);font-weight:700}body[data-page="hub"] .footer{padding-bottom:90px}body[data-page="hub"] #toast{bottom:70px}.hub-hint{font-size:10px}}
@media(prefers-reduced-motion:reduce){.hub-services a{transition:none}}

/* Whole-member book chat and dedicated group-room screen. */
.hub-header .nav{max-width:1280px;padding:0 40px;gap:27px}.hub-header .nav a{font-size:13px;padding:14px 0}.hub-header .nav-wrap{border-bottom:0}.hub-header .nav .active{box-shadow:inset 0 -2px var(--red)}
.hub-chat{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden;min-width:0}.hub-chat-heading{padding:22px 24px;display:flex;justify-content:space-between;gap:18px;align-items:center}.hub-chat-label{font-size:10px;color:#777;letter-spacing:.5px}.hub-chat-heading h1,.hub-chat-heading h2{font-size:20px;line-height:1.4;margin:4px 0 6px;letter-spacing:-.5px;overflow-wrap:anywhere}.hub-chat-heading p{font-size:11px;color:#777;margin:0;overflow-wrap:anywhere}.hub-chat-exit{font-size:12px;flex-shrink:0;min-height:36px;border-radius:5px;padding:6px 17px}.hub-chat-rules{padding:13px 24px;border-block:1px solid var(--line);background:#f8f8f5;font-size:11px}.hub-chat-rules strong,.hub-chat-rules span{display:block}.hub-chat-rules strong{font-weight:600;margin-bottom:3px}.hub-chat-rules span{font-size:10px;color:#777;line-height:1.8}.hub-chat-log{height:330px;overflow-y:auto;overscroll-behavior:contain;padding:22px 24px;background:#fdfdfc;scrollbar-gutter:stable}.hub-chat-message{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 19px;max-width:100%}.hub-chat-message:last-child{margin-bottom:0}.hub-chat-message.is-mine{align-items:flex-end}.hub-chat-byline{display:flex;gap:8px;align-items:baseline;font-size:10px;flex-wrap:wrap;margin-bottom:6px}.hub-chat-byline strong{font-size:11px;font-weight:500}.hub-chat-byline span{font-size:9px;padding:1px 5px;border:1px solid var(--line);color:#777;border-radius:3px}.hub-chat-byline time{font-size:9px;color:#999}.hub-chat-bubble{border:1px solid var(--line);background:#fff;max-width:88%;padding:10px 14px;border-radius:0 10px 10px 10px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.is-mine .hub-chat-bubble{background:#f0f0ec;border-color:#e9e9e3;border-radius:10px 0 10px 10px}.hub-chat-message-tools{display:flex;gap:9px}.hub-chat-message-tools .text-btn{font-size:9px;min-height:24px;color:#888;font-weight:400;padding:0 2px}.hub-chat-empty{height:100%;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#777;padding:20px}.hub-chat-empty>span{display:flex;background:#f4f4ef;border-radius:50%;padding:14px;margin-bottom:8px}.hub-chat-empty svg{width:25px;height:25px}.hub-chat-empty h3{font-size:15px;font-weight:500;color:#555;margin:5px 0}.hub-chat-empty p{font-size:11px;margin:4px 0}.hub-chat-form{border-top:1px solid var(--line);padding:15px 20px 10px}.hub-chat-topic{display:flex;align-items:center;gap:8px;font-size:10px;color:#777;margin-bottom:9px}.hub-chat-topic select{width:auto;min-height:28px;font-size:10px;padding:3px 25px 3px 8px;border-color:var(--line)}.hub-chat-input{display:flex;gap:10px;align-items:stretch}.hub-chat-input textarea{min-height:65px;max-height:160px;resize:vertical;font-size:12px;flex:1;border-color:var(--line);border-radius:5px}.hub-chat-input button{font-size:12px;flex-shrink:0;border-radius:5px;min-width:64px}.hub-chat-input-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.hub-chat-status{font-size:10px;color:#888;margin-top:7px;min-height:16px}.hub-chat-login{text-align:center;padding:18px;border-top:1px solid var(--line)}.hub-chat-login .button{font-size:12px}.hub-chat-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;border-block:1px solid var(--line);padding:7px 24px;font-size:10px;color:#777;background:#fafaf8}.hub-chat-toolbar>div{display:flex;gap:16px}.hub-chat-toolbar button{font-size:10px;font-weight:400;color:#666;min-height:25px}
body[data-hub-room="1"] #app{height:100vh;height:100dvh;display:flex;flex-direction:column}body[data-hub-room="1"] .hub-header{flex:0 0 auto}.hub-room-screen{flex:1;min-height:0;max-width:1280px;width:100%;padding:20px 40px;display:flex}.hub-chat-room{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}.hub-chat-room .hub-chat-heading{padding:17px 24px;flex:0 0 auto}.hub-chat-room .hub-chat-heading h1{font-size:23px}.hub-chat-room .hub-chat-log{height:auto;flex:1;min-height:100px}.hub-chat-room .hub-chat-form{flex:0 0 auto}.hub-chat-room .hub-chat-bubble{max-width:min(700px,88%)}body[data-hub-room="1"] #toast{bottom:24px}
@media(max-width:1000px){.hub-header .nav{padding:0 24px}.hub-room-screen{padding:18px 24px}}
@media(max-width:540px){.hub-header .nav{padding:0 18px;gap:22px}.hub-header .nav a{font-size:12px;padding:12px 0}.hub-chat-heading{padding:18px}.hub-chat-heading h2{font-size:18px}.hub-chat-heading p{font-size:10px}.hub-chat-rules{padding:12px 18px}.hub-chat-log{height:310px;padding:18px 14px}.hub-chat-bubble{font-size:12px;padding:9px 12px;max-width:93%}.hub-chat-form{padding:12px 14px 9px}.hub-chat-input{gap:8px}.hub-chat-input textarea{font-size:12px;min-height:62px}.hub-chat-input button{min-width:55px;padding:8px 10px;font-size:11px}.hub-chat-toolbar{padding:6px 14px;font-size:9px}.hub-chat-toolbar>div{gap:12px}.hub-chat-toolbar button{font-size:10px}.hub-room-screen{padding:12px;max-width:none}.hub-chat-room .hub-chat-heading{padding:14px}.hub-chat-room .hub-chat-heading h1{font-size:19px}.hub-chat-room .hub-chat-heading p{max-width:230px;font-size:10px}.hub-chat-exit{font-size:11px;padding:6px 13px;min-height:34px}.hub-chat-room .hub-chat-log{min-height:80px}.hub-chat-room .hub-chat-bubble{max-width:93%}}
.hub-chat-room-actions{display:flex;gap:15px;align-items:center;flex-shrink:0}.hub-chat-back{font-size:11px;color:#777}.hub-chat-withdraw{font-size:12px;min-height:35px;border-radius:5px;padding:6px 13px;color:#555}.hub-chat-participants{flex:0 0 auto;padding:12px 24px;border-bottom:1px solid var(--line);background:#fff;min-width:0}.hub-chat-members-label{font-size:10px;color:#777;margin-bottom:9px}.hub-chat-members-label b{font-weight:500;color:#333;margin-left:4px}.hub-chat-member-list{display:flex;gap:18px;overflow-x:auto;align-items:flex-start;padding-bottom:3px}.hub-chat-member{display:flex;flex-direction:column;align-items:center;flex:0 0 56px;max-width:66px;font-size:9px;gap:4px}.hub-chat-member>.hub-avatar{width:36px;height:36px}.hub-chat-member>span:last-of-type{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.hub-chat-member>small{font-size:8px;line-height:1.2;color:#888}.hub-chat-members-more{font-size:10px;white-space:nowrap;align-self:center;color:#777}.hub-chat-toolbar{flex-wrap:wrap;gap:3px 12px}.hub-chat-toolbar>div{flex-wrap:wrap}
@media(max-width:540px){.hub-chat-room-actions{gap:10px;flex-direction:column;align-items:flex-end}.hub-chat-back{font-size:10px}.hub-chat-withdraw{font-size:10px;min-height:29px;padding:4px 10px}.hub-chat-participants{padding:10px 14px}.hub-chat-member-list{gap:12px}.hub-chat-member{flex-basis:49px}.hub-chat-member>.hub-avatar{width:32px;height:32px}.hub-chat-member>small{display:none}.hub-chat-members-label{margin-bottom:6px}.hub-chat-toolbar{padding-block:4px}.hub-chat-toolbar>span{display:none}.hub-chat-toolbar>div{margin-left:auto}.hub-chat-toolbar button{font-size:9px}}
@media(max-height:700px){.hub-chat-room .hub-chat-label,.hub-chat-room .hub-chat-heading p{display:none}.hub-chat-room .hub-chat-heading{padding-block:9px}.hub-chat-room .hub-chat-heading h1{margin:0}.hub-chat-room .hub-chat-log{min-height:35px}.hub-chat-room .hub-chat-participants{padding-block:7px}.hub-chat-room .hub-chat-input textarea{min-height:44px;height:44px}.hub-chat-room .hub-chat-form{padding-block:8px}.hub-chat-room .hub-chat-member>small{display:none}.hub-chat-room .hub-chat-member-list{gap:12px}.hub-chat-room .hub-chat-member>.hub-avatar{width:29px;height:29px}.hub-chat-room .hub-chat-room-actions{flex-direction:row}.hub-room-screen{padding-block:9px}}
/* First-screen priorities: profile and writing, then direct room entry and creation. */
.hub-launch{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;border:1px solid var(--line);border-radius:9px;margin:0 0 24px;background:#fff}.hub-launch-profile{display:flex;gap:16px;align-items:center;min-width:0}.hub-launch-profile>div{min-width:0}.hub-launch-profile strong{font-size:21px;letter-spacing:-.5px}.hub-launch-profile p{font-size:12px;color:#777;margin:3px 0 4px;max-width:440px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hub-launch-profile a{font-size:11px;text-decoration:underline;text-underline-offset:3px;color:#666}.hub-writing-shortcuts{display:flex;gap:12px;flex-shrink:0}.hub-writing-shortcuts button{padding:12px 26px;border-radius:5px;font-size:14px;min-height:48px}.hub-wrap>#hub-groups{margin:0 0 25px}.hub-wrap>#hub-groups .hub-room-list{max-height:270px;overflow:auto}.hub-wrap>#hub-groups .hub-room{flex-wrap:nowrap;align-items:center;padding:14px 22px;gap:15px}.hub-wrap>#hub-groups .hub-room-text h3{font-size:15px;margin-bottom:3px}.hub-wrap>#hub-groups .hub-room-text p{font-size:11px;display:inline;margin-right:12px}.hub-wrap>#hub-groups .hub-room-action{width:auto;margin:0;flex-shrink:0}.hub-wrap>#hub-groups .hub-room-action .button,.hub-wrap>#hub-groups .hub-room-action button{min-height:36px;padding:6px 18px;font-size:12px}.hub-room-caption{font-size:11px;color:#777}.hub-room-create{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:11px;padding:12px 18px;background:#f7f7f4;border:1px solid var(--line);border-radius:6px}.hub-room-create>span{font-size:12px;color:#666}.hub-room-create .primary{border-radius:5px;min-height:36px;font-size:12px;padding:6px 18px}.hub-wrap>#hub-groups .hub-hint{margin-top:6px}
@media(max-width:760px){.hub-launch{padding:16px 18px;gap:16px}.hub-writing-shortcuts{gap:8px}.hub-writing-shortcuts button{font-size:12px;padding:9px 16px}.hub-launch-profile p{max-width:240px}}
@media(max-width:540px){.hub-wrap{padding-top:20px}.hub-intro{margin-bottom:17px}.hub-intro .eyebrow{margin-bottom:6px}.hub-intro p{line-height:1.6}.hub-launch{padding:13px;gap:10px;margin-bottom:20px}.hub-launch-profile{gap:10px}.hub-launch-profile .hub-avatar{width:47px;height:47px}.hub-launch-profile strong{font-size:17px}.hub-launch-profile p{display:none}.hub-launch-profile a{display:block;margin-top:5px;font-size:10px}.hub-writing-shortcuts{flex-direction:column;gap:6px}.hub-writing-shortcuts button{min-height:31px;font-size:11px;padding:5px 13px;white-space:nowrap}.hub-wrap>#hub-groups .hub-section-head{margin-bottom:9px}.hub-wrap>#hub-groups .hub-section-head h2{font-size:18px}.hub-room-caption{display:none}.hub-wrap>#hub-groups .hub-room{padding:12px;gap:10px}.hub-wrap>#hub-groups .hub-room-text h3{font-size:12px}.hub-wrap>#hub-groups .hub-room-text p{display:block;font-size:9px;margin:2px 0}.hub-wrap>#hub-groups .hub-room-text p:nth-of-type(2){display:none}.hub-wrap>#hub-groups .hub-room-action{flex-direction:column;gap:2px}.hub-wrap>#hub-groups .hub-room-action .button,.hub-wrap>#hub-groups .hub-room-action button{min-height:30px;padding:5px 10px;font-size:10px}.hub-room-create{padding:9px 11px;margin-top:9px}.hub-room-create>span{font-size:10px}.hub-room-create .primary{font-size:11px;min-height:32px;padding:5px 13px}.hub-wrap>#hub-groups .hub-hint{font-size:9px}.hub-wrap>#hub-groups .hub-room-list{max-height:230px}}
