/* Shared readable type, preserving the existing shelves and Admin. No zoom. */
:root{--type-base:16px;--type-body:1.0625rem;--type-control:1rem;--type-small:.875rem;--type-notice:.9375rem;--type-card:1.1875rem;--type-heading:1.875rem;--font:"Segoe UI",Arial,"Malgun Gothic","Yu Gothic",Meiryo,sans-serif}
html{font-size:var(--type-base);text-size-adjust:100%;-webkit-text-size-adjust:100%}
html[data-text-size="110"]{--type-base:17.6px}html[data-text-size="120"]{--type-base:19.2px}
body,.admin-body{font-size:var(--type-body);line-height:1.65;font-family:var(--font)}
button,input,select,textarea,.admin-body button,.admin-body input,.admin-body select{font-size:var(--type-control);line-height:1.5}
button,input,select,textarea{min-height:2.75rem}label,.admin-body label{font-size:var(--type-control)}
body h1,.is-ranking h1,.is-discovery h1,.admin-body h1{font-size:var(--type-heading);line-height:1.25;letter-spacing:-.035em}
body h2,.ranking-heading h2,.section-heading h2,.account-dialog h2,.admin-body h2{font-size:1.625rem;line-height:1.3}
body h3,.book-info h3,.leader-info h3,.row-info h3,.update-row h3,.admin-body h3{font-size:var(--type-card);line-height:1.5}
.detail-head h2{font-size:1.625rem}.intro-copy,.is-ranking .intro-copy,.is-discovery .intro-copy,.description,.chapter,.chapter-heading,.author-notice{font-size:var(--type-body)}
.nav-link,.topbar .nav-link,.rank-tabs button,.feed-tabs button,.feed-access button,.detail-tools button,.detail-tools a,.search-box input,.search-box button,.admin-nav,.admin-pagination,.back-to-site{font-size:var(--type-control)}
.help,.subtle,.eyebrow,.tags,.author,.book-bottom,.book-index,.nav-count,.footer,.footer #help,.chapter-date,.chapter-access,.detail-meta,.rank-meta,.rank-movement,.rank-score>span,.row-score>span,.update-age,.sync-strip .subtle,.cover-placeholder,.local-label,.sidebar-caption,.sidebar-note,.status-badge,#connection-status,#account-name,.admin-top #admin-account,.admin-body .brand,.admin-table .mono,.admin-body pre{font-size:var(--type-small)}
.sync-strip,.rank-sync,.rank-sync .subtle,.sync-strip button,.rank-period label,.rank-period select,.range-hint,.error-inline,#notice,.job p,.job-support,.job-id,.badge-new,.staging-notice,.staging-banner,.admin-heading p,.metric span,.admin-body dl,.admin-empty,.revenue-bar,#admin-message{font-size:var(--type-notice)}
.job-id{font-size:var(--type-small)!important}.job h3{min-width:0}.rank-score,.row-score{font-size:1.125rem}.rank-number{font-size:2.375rem}.row-rank{font-size:1.5rem}
.google-signin{font-size:var(--type-control);line-height:1.5}.detail-tools a{display:inline-flex;align-items:center;min-height:2.75rem}.dialog-top button,#logout{font-size:var(--type-control)}
.admin-table{font-size:var(--type-control);line-height:1.6}.metric strong{font-size:1.875rem}.admin-body{grid-template-columns:16rem minmax(0,1fr)}.admin-grid>*{min-width:0}.admin-top{flex-wrap:wrap}.admin-body.compact-sidebar{grid-template-columns:1fr}
.admin-table th{white-space:nowrap}.admin-table td{min-width:6rem}.admin-table td:has(.status-badge){white-space:nowrap}.table-scroll{max-width:100%}.admin-panel{min-width:0}
.credit-packages button span{font-size:var(--type-control)}.credit-packages button span:last-child{font-size:var(--type-small)}
.text-size-control{display:inline-flex;align-items:center;gap:.5rem;flex-shrink:0;font-size:var(--type-small);margin:0;white-space:nowrap}.text-size-control select{width:5rem;min-height:2.75rem;padding:.375rem .5rem;font-size:var(--type-control)}
.wallet-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.wallet-balances>div{padding:1rem;border:1px solid var(--line);min-width:0}.wallet-balances span{display:block;font-size:var(--type-small)}.wallet-balances strong{font-size:var(--type-card)}.wallet-checkout{padding:1.25rem;border:1px solid var(--line);margin:1.25rem 0}.wallet-state{font-weight:600}.wallet-code{overflow-wrap:anywhere;font-size:var(--type-small)}.wallet-job-tools{display:flex;flex-wrap:wrap;gap:.75rem}.wallet-ledger{display:flex;gap:1rem;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid var(--line)}.credit-packages button span{display:block}.wallet-checkout button{margin-right:.75rem}#credit-dialog{width:min(64rem,calc(100vw - 2rem));max-width:calc(100vw - 2rem);box-sizing:border-box}#credit-content{min-width:0}.credit-row{gap:1rem;flex-wrap:wrap}
@media(max-width:767px){.wallet-balances{grid-template-columns:1fr}.wallet-ledger{flex-wrap:wrap}.credit-packages{grid-template-columns:1fr}}
[data-history-filter]{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem;margin:1rem 0}[data-history-filter] label{display:grid;gap:.25rem;flex:1 1 10rem;min-width:0}[data-history-filter] input,[data-history-filter] select{width:100%;box-sizing:border-box;min-width:0}[data-history-result] .admin-table{border-collapse:collapse;width:100%;text-align:left}[data-history-result] th,[data-history-result] td{padding:.65rem;border-bottom:1px solid var(--line);overflow-wrap:anywhere}[data-history-result] .admin-pagination{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1rem}
.topbar{height:auto;min-height:4.75rem;gap:1.25rem;flex-wrap:wrap}.topbar nav{min-width:0}.search-box{min-width:0}.search-box input{min-width:0}.search-box button{flex-shrink:0}.detail-head>div{min-width:0}.detail-head h2{overflow-wrap:anywhere}.ranking-heading{flex-wrap:wrap}.rank-tabs{max-width:100%}.admin-table td{max-width:20rem}.table-scroll{overflow-x:auto}.credit-row>div{min-width:0}.credit-row strong,.credit-row p{overflow-wrap:anywhere}
@media(max-width:1280px){.topbar nav{order:3;flex-basis:100%;overflow-x:auto;white-space:nowrap}.nav-link{padding:1rem 0}.ranking-leaders{grid-template-columns:1fr}}
@media(max-width:767px){.admin-body{grid-template-columns:1fr}body h1,.is-ranking h1,.is-discovery h1{font-size:1.75rem}.admin-grid,.admin-form{grid-template-columns:1fr}.admin-form .wide{grid-column:auto}.admin-heading{flex-wrap:wrap}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-top{padding:1rem}.admin-top #admin-account{margin-left:0}.detail-meta{gap:.5rem}.chapter{grid-template-columns:3.5rem minmax(0,1fr) auto}.chapter-date{white-space:normal}.rank-row{grid-template-columns:24px 48px minmax(0,1fr);gap:11px}.row-score{grid-column:3;text-align:left}.row-score>span{display:inline;margin-left:.5rem}.revenue-bar{grid-template-columns:minmax(0,1fr) 5rem}.revenue-bar meter{grid-column:1/-1}.topbar{gap:.75rem;padding-bottom:.5rem}.topbar .brand{margin-right:auto}.brand{letter-spacing:.12em}.book-info h3{min-height:0}.rank-period{flex-wrap:wrap}.admin-body dl{grid-template-columns:1fr}.download-panel h3{font-size:1.5rem}.footer{flex-wrap:wrap}}
