/* R1116 — owner-approved cohesive visual cleanup; real brand imagery only. */
.dv-brand img,.dv-footer-id img,.dv-auth-brand img,.dv-auth-mark img{
  background:transparent!important;
  filter:drop-shadow(0 0 1.2px rgba(255,255,255,.98)) drop-shadow(0 0 3px rgba(255,255,255,.60))!important;
}
.dv-brand img{object-fit:contain!important}
.dv-book-cover-tools,.dv-author-detail-link-tools{
 display:flex!important;justify-content:center;align-items:center;gap:7px!important;
 width:max-content;max-width:100%;margin:12px auto 5px!important;
 border:1px solid #cde1da;border-radius:11px;background:#f7fbf8;padding:7px 8px;
 position:relative;min-height:77px;
}
.dv-book-cover-tools .dv-qr-image,.dv-author-detail-link-tools .dv-qr-image{
 position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
 width:72px!important;min-width:72px!important;max-width:72px!important;
 height:72px!important;min-height:72px!important;max-height:72px!important;
 flex:0 0 72px!important;padding:2px!important;box-sizing:border-box!important;overflow:hidden!important;
 background:white!important;border:1px solid #e0ece6!important;border-radius:6px!important;
}
.dv-book-cover-tools .dv-qr-image img,.dv-author-detail-link-tools .dv-qr-image img{
 display:block!important;position:relative!important;width:66px!important;height:66px!important;
 min-width:66px!important;max-width:66px!important;min-height:66px!important;max-height:66px!important;
 object-fit:contain!important;margin:0!important;
}
.dv-book-cover-tools .dv-qr-image canvas,.dv-author-detail-link-tools .dv-qr-image canvas{display:none!important}
.dv-book-copy-link{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;
 width:40px!important;height:40px!important;border-radius:10px!important;border:1.5px solid #62a79a!important;
 color:#03564f!important;background:#e8f5ee!important;cursor:pointer;padding:8px;box-shadow:0 3px 8px rgba(4,67,61,.10)!important;
 opacity:1!important;visibility:visible!important;position:relative!important;z-index:2!important;
}
.dv-book-copy-link:hover,.dv-book-copy-link:focus-visible{background:#e3f5ee;border-color:#69b5a7;outline-offset:3px}
.dv-book-copy-link svg{width:20px!important;height:20px!important;display:block!important;flex:none!important;stroke:currentColor!important;opacity:1!important}
.dv-copy-status{position:absolute;inset-inline:0;bottom:-19px;font-size:.68rem;text-align:center;color:#08756b;pointer-events:none}
.dv-book-detail>div:first-child{min-width:0}
.dv-book-qr-small{display:none!important}
.dv-author-qr-top.dv-author-detail-link-tools{margin:0 auto 13px!important;justify-content:center!important;position:relative!important;max-width:124px!important}
.dv-collection-save-button{display:inline-flex!important;align-items:center!important;gap:7px!important;font-weight:800!important;color:#005e5e!important;border-color:#a5cdc3!important}
.dv-collection-save-button:hover{background:#e4f4ef!important}
.dv-collection-save-button svg{display:block;flex:none;stroke:currentColor}
.dv-folder-book-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;
 background:#fffefa;border:1px solid #d9e8e0;border-radius:12px;min-height:82px}
.dv-folder-book-row:hover{border-color:#8fbeac;box-shadow:0 4px 13px rgba(3,52,51,.06)}
.dv-folder-book-info{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.dv-folder-book-info>div{min-width:0;overflow-wrap:anywhere}
.dv-folder-book-info .fw-bold{font-size:.86rem;color:#06534f}
.dv-folder-book-cover,.dv-folder-cover-fallback{width:47px;height:65px;min-width:47px;flex:0 0 47px;object-fit:contain;border-radius:5px;
 background:#eff5f0;border:1px solid #e0e9df}
.dv-folder-cover-fallback{display:grid;place-items:center;font-size:1.3rem;color:#2b8274}
.dv-folder-book-row form{flex:none}
.dv-folder-book-row button{min-width:34px;min-height:34px}
.dv-auth-nav .dv-auth-actions .btn-primary,.dv-auth-nav .dv-auth-actions a[href*="register.php"]{
 color:#fff!important;background-color:#006d70!important;border-color:#006d70!important;
 font-weight:800!important;opacity:1!important;box-shadow:none!important;
}
.dv-auth-nav .dv-auth-actions .btn-primary:hover,.dv-auth-nav .dv-auth-actions a[href*="register.php"]:hover{background:#00565a!important}
.dv-auth-nav .dv-auth-brand img{background:transparent!important;filter:drop-shadow(0 0 2px #fff)!important}
.dv-auth-main .dv-submit{color:#fff!important;font-weight:800!important}
.dv-home-footer .dv-footer-credit{margin:8px auto 0!important;background:transparent!important;border-radius:0!important}
.dv-top .dv-reader-login{color:white!important}
.dv-stat-grid a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:80px;
 border-inline-end:1px solid #e7efeb;color:#175757;text-decoration:none;border-radius:9px;transition:background .2s ease}
.dv-stat-grid a:hover,.dv-stat-grid a:focus-visible{background:#eaf5f0;color:#006e69}
.dv-stat-grid a strong{font-weight:850;font-size:1.45rem;color:#007c78}
.dv-stat-grid a span{font-size:.77rem;font-weight:750}
body:has(.dv-hero) .dv-hero{
 background:linear-gradient(270deg,rgba(225,242,236,.97) 0%,rgba(223,241,235,.94) 43%,rgba(219,239,232,.38) 100%),
 url('/ebook/assets/brand/ebook-hero-clear-r557.webp') left center/cover no-repeat!important;
 min-height:232px!important; color:#073a3c!important;border:1px solid #c3dcd3;border-radius:20px;
 width:min(1320px,calc(100% - 34px));margin:19px auto 0;overflow:hidden;
 box-shadow:0 5px 20px rgba(0,50,49,.06);
}
body:has(.dv-hero) .dv-hero-content{min-height:230px!important;align-items:center}
body:has(.dv-hero) .dv-hero-copy{width:min(600px,74%);text-shadow:none!important}
body:has(.dv-hero) .dv-hero-copy h1{color:#053f43!important;font-weight:850;font-size:clamp(1.6rem,3vw,2.45rem)}
body:has(.dv-hero) .dv-hero-copy p{color:#2b5858!important;font-size:.95rem}
body:has(.dv-hero) .dv-pill-row{gap:8px!important}
body:has(.dv-hero) .dv-pill-row span{background:#fff9!important;color:#0e615d!important;border:1px solid #bfdcd2!important;
 box-shadow:none!important;text-shadow:none!important;font-size:.73rem;padding:7px 10px}
body:has(.dv-hero) .dv-pill-row i{color:#007c74}
body:has(.dv-hero) .dv-stats{margin-top:12px!important}
body:has(.dv-hero) .dv-search-panel{border-color:#dce9e1;border-radius:16px!important;background:#fffefa!important}
body:has(.dv-hero) .dv-books-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
body:has(.dv-hero) .dv-book-card{border-radius:13px;transition:transform .2s ease,box-shadow .2s ease}
body:has(.dv-hero) .dv-book-card:hover{transform:translateY(-3px);box-shadow:0 12px 25px rgba(6,59,58,.11)}
body:has(.dv-hero) .dv-cats a{border-radius:11px;transition:transform .2s ease,box-shadow .2s ease}
body:has(.dv-hero) .dv-cats a:hover{transform:translateY(-2px);box-shadow:0 9px 16px rgba(2,56,55,.16)}
@media(max-width:900px){body:has(.dv-hero) .dv-books-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
 body:has(.dv-hero) .dv-hero{margin:12px auto 0;width:calc(100% - 24px);min-height:170px!important}
 body:has(.dv-hero) .dv-hero-content{min-height:170px!important}
 body:has(.dv-hero) .dv-hero-copy{width:100%;padding:16px 0;background:transparent!important}
 body:has(.dv-hero) .dv-hero-copy h1{font-size:1.36rem}
 body:has(.dv-hero) .dv-hero-copy p{font-size:.77rem}
 body:has(.dv-hero) .dv-pill-row{display:none}
 body:has(.dv-hero) .dv-books-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dv-folder-book-row{gap:9px;padding:9px}
 .dv-folder-book-cover,.dv-folder-cover-fallback{width:42px;height:57px;min-width:42px;flex-basis:42px}
 .dv-book-cover-tools{margin-bottom:21px!important}
}
@media(prefers-reduced-motion:reduce){body:has(.dv-hero) .dv-book-card,body:has(.dv-hero) .dv-cats a{transition:none!important;transform:none!important}}

/* R1118: QR is physically under the cover, not in a side/inline box. */
.dv-book-detail>.dv-book-cover-column{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-width:0!important;align-self:start!important}
.dv-book-cover-column>.dv-book-detail-cover{display:block!important;margin:0 auto!important;max-width:100%!important}
.dv-book-cover-column .dv-book-cover-tools{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;align-self:center!important;gap:6px!important;margin:7px auto 8px!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important;width:max-content!important;max-width:100%!important}
.dv-book-cover-column .dv-book-cover-tools .dv-qr-image{border:1px solid #dce8e2!important;border-radius:5px!important;background:#fff!important}
.dv-book-cover-column .dv-book-cover-tools .dv-book-copy-link{background:#fff!important}
