/* 작품 상세 윗부분: 표지 + 한 줄 정보 · 제목 · 작가 · 숫자 한 줄 · 소개 3줄 · 버튼 */
body.editorial .alona-detail .alona-hero-panel.wd-hero{display:grid!important;grid-template-columns:200px minmax(0,1fr);gap:36px;align-items:start;padding:32px!important;background:#fff!important;border:1px solid #E8E8EC!important;border-radius:20px!important;box-shadow:0 8px 28px rgba(17,19,24,.05)!important}
body.editorial .alona-detail .wd-hero:before,body.editorial .alona-detail .wd-hero:after{display:none!important}
body.editorial .alona-detail .wd-cover{min-width:0}
body.editorial .alona-detail .wd-cover .alona-book-cover{width:100%!important;max-width:100%!important;margin:0!important;border-radius:12px;overflow:hidden;box-shadow:0 10px 26px rgba(17,19,24,.16)}
.wd-cover .alona-book-cover img,.wd-cover .alona-book-cover>*{display:block;width:100%}
.wd-main{min-width:0;display:flex;flex-direction:column}

/* 한 줄 정보: 장르 · 연재 · 총 N화 · 이용가 (+ 선독점/독점 표시) */
.wd-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 10px;font-size:13px;color:#7A7F8F;line-height:1.5}
.wd-meta b{color:#FF3D5E;font-weight:700}
.wd-meta i{font-style:normal;color:#C9CBD3}
.wd-badge{margin-left:4px;padding:2px 8px;border-radius:999px;background:#FFF0F3;color:#E0244A;font-size:12px;font-weight:700}

body.editorial .alona-detail .wd-title{margin:0;font-size:30px!important;line-height:1.3!important;font-weight:800!important;letter-spacing:-.02em;color:#1C1D22!important;overflow-wrap:anywhere}
body.editorial .alona-detail .wd-author{display:flex;align-items:center;gap:10px;margin:10px 0 0}
body.editorial .alona-detail .wd-author .alona-author-follow{min-height:30px;padding:0 12px;font-size:12px}

/* 숫자 한 줄: 아이콘 + 이름 + 숫자 */
body.editorial .alona-detail .wd-hero .alona-metrics{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:6px 18px!important;margin:16px 0 0!important;padding:0!important;border:0!important;background:none!important;grid-column:auto!important;width:auto!important}
body.editorial .alona-detail .wd-hero .alona-metrics>div{display:flex!important;flex-direction:row!important;align-items:center!important;gap:5px!important;flex:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;text-align:left!important}
body.editorial .alona-detail .wd-hero .alona-metric-icon{display:inline-flex!important;align-items:center;justify-content:center;width:16px!important;height:16px!important;margin:0!important;padding:0!important;border-radius:0!important;background:none!important;color:#9A9EAA!important}
body.editorial .alona-detail .wd-hero .alona-metric-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
body.editorial .alona-detail .wd-hero .alona-metrics dt{margin:0!important;font-size:13px!important;color:#7A7F8F!important;font-weight:400!important}
body.editorial .alona-detail .wd-hero .alona-metrics dd{margin:0!important;font-size:14px!important;line-height:1.4!important;color:#1C1D22!important;font-weight:700!important}

/* 소개: 3줄까지, 길면 더보기 */
.wd-synopsis-box{margin:18px 0 0;padding:14px 16px;border-radius:12px;background:#F6F6F8}
body.editorial .alona-detail .wd-synopsis{margin:0!important;font-size:14px!important;line-height:1.75!important;color:#3A3E4A!important;white-space:pre-line;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.editorial .alona-detail .wd-synopsis.open{display:block;-webkit-line-clamp:unset}
.wd-more{margin-top:6px;padding:0;border:0;background:none;color:#7A7F8F;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.wd-more[hidden]{display:none}

/* 버튼: 읽기(크게) + 선호작(책갈피) */
body.editorial .alona-detail .wd-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:10px!important;margin:20px 0 0!important}
body.editorial .alona-detail .wd-actions .alona-primary{width:100%;min-height:52px!important;border-radius:12px!important;font-size:16px!important}
body.editorial .alona-detail .wd-actions .alona-favorite{min-height:52px!important;padding:0 18px!important;border-radius:12px!important;gap:6px}
body.editorial .alona-detail .wd-actions .alona-favorite:before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
body.editorial .alona-detail .wd-actions .alona-favorite[aria-pressed="true"]:before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 3.8h11v16.4L12 16.4l-5.5 3.8Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat}

/* 작가에게만 보이는 관리 줄 */
body.editorial .alona-detail .alona-owner-tools{margin-top:12px!important;border-radius:14px!important}

/* 휴대폰: 작은 표지 옆에 정보·제목·작가, 나머지는 아래 전체 폭 */
@media(max-width:700px){
 body.editorial .alona-detail .alona-hero-panel.wd-hero{grid-template-columns:96px minmax(0,1fr);gap:14px 16px;padding:18px!important;border-radius:16px!important}
 .wd-main{display:contents}
 .wd-meta,.wd-title,.wd-author{grid-column:2}
 .wd-meta{margin:0;font-size:12px;align-self:end}
 body.editorial .alona-detail .wd-title{font-size:21px!important}
 body.editorial .alona-detail .wd-author{margin:0;align-self:start}
 .wd-cover{grid-row:1 / span 3}
 body.editorial .alona-detail .wd-hero .alona-metrics,.wd-synopsis-box,body.editorial .alona-detail .wd-actions{grid-column:1 / -1!important;width:auto!important}
 body.editorial .alona-detail .wd-hero .alona-metrics{margin:4px 0 0!important;gap:6px 14px!important}
 .wd-synopsis-box{margin:0}
 body.editorial .alona-detail .wd-actions{margin:0!important}
}

/* 아래(회차 목록·작품 정보)도 위 카드와 같은 폭으로 맞춘다. 넓은 화면에서 끝까지 퍼지지 않게. */
body.editorial .alona-detail>.alona-detail-body{width:calc(100% - 64px);max-width:1120px;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
@media(max-width:700px){body.editorial .alona-detail>.alona-detail-body{width:calc(100% - 36px)}}

/* 공유 버튼 */
body.editorial .alona-detail .wd-actions{grid-template-columns:minmax(0,1fr) auto auto!important}
.wd-share{display:grid;place-items:center;width:52px;min-height:52px;border:1px solid #DDDFE5;border-radius:12px;background:#fff;color:#3A3E4A;cursor:pointer}
.wd-share:hover{border-color:#FF3D5E;color:#E0244A}
.wd-share svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
/* 없는 주소 안내 */
.nf-page{max-width:420px;margin:60px auto;padding:36px 24px;text-align:center;border:1px solid #E8E8EC;border-radius:18px;background:#fff}
.nf-page strong{display:block;font-size:44px;font-weight:900;color:#FF3D5E;letter-spacing:-.03em}
.nf-page h1{margin:6px 0 8px;font-size:21px;font-weight:800;color:#1C1D22}
.nf-page p{margin:0 0 20px;color:#7A7F8F;font-size:14px}
.nf-page div{display:flex;gap:8px;justify-content:center}

/* 독점 표시와 홈 'ALONA 독점작' 칸 */
.excl-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:#FF3D5E;color:#fff;font-size:10.5px;font-weight:800;letter-spacing:-.01em;vertical-align:middle;white-space:nowrap}
.excl-badge.first{background:#fff;color:#E0244A;box-shadow:inset 0 0 0 1px #FF9AAC}
.home-exclusive{margin-top:8px}
.home-exclusive .section-row{display:flex;align-items:baseline;gap:10px}
.home-exclusive-note{font-size:12px;color:#7A7F8F}
/* 휴대폰: '이어 읽기' 버튼은 한 줄을 다 쓰고, 선호작·공유는 아래 줄에(버튼 글자가 세 줄로 찌그러지던 문제) */
@media(max-width:520px){
 body.editorial .alona-detail .wd-actions{grid-template-columns:minmax(0,1fr) auto!important}
 body.editorial .alona-detail .wd-actions .alona-primary{grid-column:1/-1;white-space:nowrap}
}
/* 홈 '이어 읽기' 카드 */
body.editorial .reference-home-account .discovery-account.home-continue{display:flex!important;align-items:center;gap:16px;padding:18px 20px!important;border:1px solid #ECEDF1!important;border-radius:18px!important;background:#fff!important;box-shadow:0 6px 20px rgba(28,29,34,.05)}
body.editorial .reference-home-account .home-continue.is-guest,body.editorial .reference-home-account .home-continue:not(:has(.home-continue-cover)){background:linear-gradient(110deg,#FFF6EC,#FFF0F3)!important;border-color:transparent!important}
body.editorial .reference-home-account .home-continue-cover{flex:none;width:58px;aspect-ratio:2/3;overflow:hidden;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.12)}
body.editorial .reference-home-account .home-continue-cover>*{width:100%;height:100%}
body.editorial .reference-home-account .home-continue-copy{flex:1;min-width:0;display:grid;gap:3px}
body.editorial .reference-home-account .home-continue-label{font-size:11.5px;font-weight:800;color:#E0244A;letter-spacing:.02em}
body.editorial .reference-home-account .home-continue-copy strong{font-size:16px;font-weight:800;color:#1C1D22;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.editorial .reference-home-account .home-continue-copy p{margin:0!important;font-size:12.5px;color:#7A7F8F!important}
body.editorial .reference-home-account .home-continue-actions{flex:none;display:flex;align-items:center;gap:8px}
body.editorial .reference-home-account .home-continue-primary{display:inline-flex;align-items:center;min-height:42px;padding:0 16px;border:0;border-radius:12px;background:#FF3D5E!important;color:#fff!important;font:inherit;font-size:14px;font-weight:800;text-decoration:none;white-space:nowrap;cursor:pointer}
body.editorial .reference-home-account .home-continue-secondary{display:inline-flex;align-items:center;min-height:42px;padding:0 14px;border:1px solid #DDDFE5;border-radius:12px;background:#fff;color:#3A3E4A!important;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap}
body.editorial .reference-home-account #homeLoginButton.home-continue-primary{background:#FF3D5E!important;color:#fff!important;padding:0 22px!important;font-size:14px!important;min-width:96px;justify-content:center}
@media(max-width:600px){
 body.editorial .reference-home-account .discovery-account.home-continue{flex-wrap:wrap;gap:12px}
 body.editorial .reference-home-account .home-continue-actions{width:100%}
 body.editorial .reference-home-account .home-continue-primary{flex:1;justify-content:center}
}
/* 회차 목록: 읽은 회차는 흐리게, 마지막으로 본 회차는 분홍 번호와 '이어 보기' 표시 */
body.editorial .alona-episode-row.is-read .alona-episode-no,body.editorial .alona-episode-row.is-read .alona-episode-copy strong{color:#A3A7B3!important}
body.editorial .alona-episode-row.is-last-read .alona-episode-no{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;font-size:13px!important;justify-self:start;background:#FF3D5E!important;color:#fff!important;font-weight:800}
body.editorial .alona-episode-row.is-last-read .alona-episode-copy strong{color:#1C1D22!important;font-weight:800!important}
body.editorial .alona-episode-resume{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:#FFE8EC;color:#E0244A;font-size:11.5px;font-style:normal;font-weight:800;vertical-align:2px;white-space:nowrap}
/* 앱으로 설치: 전체 메뉴 항목과 안내 창 */
body.editorial .header-mobile-menu nav a.header-install-app{color:#E0244A;font-weight:800;border-top:1px solid #F0F1F4;margin-top:4px}
.install-guide{position:fixed;inset:0;z-index:1000;display:grid;place-items:end center;padding:16px;background:rgba(20,22,28,.45)}
.install-guide-card{width:min(420px,100%);padding:24px 22px 20px;border-radius:20px;background:#fff;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.2)}
.install-guide-card img{border-radius:14px}
.install-guide-card h2{margin:12px 0 8px;font-size:18px;font-weight:800;color:#1C1D22}
.install-guide-card p{margin:0 0 18px;font-size:14px;line-height:1.6;color:#4A4F5C;word-break:keep-all}
.install-guide-close{width:100%;min-height:46px;border:0;border-radius:12px;background:#FF3D5E;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
@media(min-width:700px){.install-guide{place-items:center}}

/* UCI: 작품 정보·회차 화면 표시와 관리자 UCI 관리 화면 */
body.editorial .work-uci{font-variant-numeric:tabular-nums;word-break:break-all}
body.editorial .reader-uci{font-variant-numeric:tabular-nums;color:#8A8F9C}
body.editorial .uci-page .uci-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}
body.editorial .uci-page .uci-toolbar label{display:flex;align-items:center;gap:6px;font-size:14px}
body.editorial .uci-btn{min-height:36px;padding:0 14px;border:0;border-radius:9px;background:#1C1D22;color:#fff;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
body.editorial .uci-btn[disabled]{opacity:.45;cursor:default}
body.editorial .uci-work{margin-bottom:12px}
body.editorial .uci-work-head h2{margin:4px 0 2px;font-size:17px}
body.editorial .uci-work-head p{margin:0 0 10px;font-size:13px;color:#7A7F8F}
body.editorial .uci-type{display:inline-block;padding:2px 8px;border-radius:999px;background:#FFF1F4;color:#E0244A;font-size:11.5px;font-weight:800}
body.editorial .uci-type+.uci-type{margin-left:6px}body.editorial .uci-type.uci-pending{background:#EEF2F7;color:#3F5368}body.editorial .uci-type.uci-need{background:#FFF6E0;color:#8A5A00}
body.editorial .uci-row,body.editorial .uci-bulk{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 0;border-top:1px solid #F0F1F4}
body.editorial .uci-row label,body.editorial .uci-bulk label{font-size:13.5px;font-weight:700}
body.editorial .uci-row label small,body.editorial .uci-bulk label small{display:block;font-weight:400;color:#8A8F9C}
body.editorial .uci-row input,body.editorial .uci-bulk textarea{min-width:0;padding:8px 10px;border:1px solid #DDDFE5;border-radius:8px;font:inherit;font-size:13px}
body.editorial .uci-msg{grid-column:1/-1;font-size:12.5px;color:#5B6070}
body.editorial .uci-msg:empty{display:none}
body.editorial .uci-msg.error{color:#C0392B}
body.editorial .uci-episodes summary{cursor:pointer;font-weight:700;font-size:14px;padding:8px 0}
@media(max-width:600px){body.editorial .uci-row,body.editorial .uci-bulk{grid-template-columns:1fr}}
