:root{color:#334155;font-synthesis:none;text-rendering:optimizelegibility;background:#f9fafb;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:#f9fafb;min-width:320px;margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell,.admin-shell{min-height:100vh}.site-header,.admin-header{justify-content:space-between;align-items:center;gap:24px;width:min(1200px,100% - 48px);height:88px;min-height:88px;margin:0 auto;display:flex}.brand{color:#1e293b;letter-spacing:-.01em;align-items:center;gap:16px;height:100%;font-weight:700;display:inline-flex}.brand img{object-fit:contain;object-position:left center;width:auto;height:90%;max-height:90%}.brand span{border-left:1px solid #cbd5e1;padding-left:14px}.header-link{color:#046bd2;font-size:.94rem;font-weight:700}.header-link:hover{color:#045cb4}.hero{color:#fff;background:#1e293b;grid-template-columns:1fr auto;align-items:center;gap:48px;min-height:300px;padding:48px max(24px,50vw - 560px);display:grid;position:relative;overflow:hidden}.hero:after{content:"";opacity:.8;border:70px solid #046bd2;border-radius:50%;width:460px;height:460px;position:absolute;top:-280px;right:-200px}.hero>div:first-child{z-index:1;max-width:790px;position:relative}.eyebrow{color:#046bd2;letter-spacing:.14em;text-transform:uppercase;margin-bottom:14px;font-size:.75rem;font-weight:800;display:block}.hero .eyebrow{color:#75bdff}h1,h2{color:#1e293b;letter-spacing:-.03em;font-family:Georgia,Roboto Slab,serif}.hero h1{color:#fff;max-width:850px;margin:0;font-size:clamp(1.15rem,2.35vw,2.05rem);line-height:1.2}.hero p{color:#e2e8f0;max-width:720px;margin:16px 0 24px;font-size:.95rem;line-height:1.55}.hero-actions{flex-wrap:wrap;align-items:center;gap:14px;margin-top:10px;display:flex}.hero-mark{z-index:1;text-align:center;border:1px solid #ffffff59;border-radius:50%;place-content:center;width:130px;height:130px;display:grid;position:relative}.hero-mark span{color:#75bdff;font-family:Georgia,serif;font-size:3rem;line-height:1}.hero-mark small{letter-spacing:.08em;text-transform:uppercase;margin-top:4px;font-size:.68rem}.button{border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:14px;min-height:44px;padding:11px 18px;font-size:.92rem;font-weight:800;transition:background .2s,border-color .2s,transform .2s;display:inline-flex}.button:hover:not(:disabled){transform:translateY(-1px)}.button:focus-visible,.header-link:focus-visible,input:focus-visible,select:focus-visible{outline-offset:3px;outline:3px solid #75bdff}.button-primary{color:#fff;background:#046bd2;border-color:#046bd2}.button-primary:hover:not(:disabled){background:#045cb4;border-color:#045cb4}.button-secondary{color:#046bd2;background:#fff;border-color:#cbd5e1}.button-secondary:hover:not(:disabled){color:#045cb4;border-color:#046bd2}.button-small{min-height:38px;padding:7px 14px;font-size:.84rem}.button:disabled{cursor:wait;opacity:.65}.button-full{width:100%}.collection{width:min(1200px,100% - 48px);margin:0 auto;padding:36px 0 54px}.section-heading{justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px;display:flex}.section-heading h2,.admin-title-row h1{margin:0;font-size:clamp(1.35rem,2.2vw,1.9rem);line-height:1.2}.section-heading p{color:#64748b;margin:0;font-size:.88rem}.book-grid{grid-template-columns:repeat(2,1fr);gap:20px;display:grid}.book-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;grid-template-columns:160px 1fr;align-items:stretch;gap:20px;padding:18px;transition:transform .2s,box-shadow .2s;display:grid;box-shadow:0 4px 18px #1e293b0d}.book-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #1e293b1a}.book-cover{object-fit:cover;background:#e2e8f0;border-radius:6px;width:160px;height:226px;display:block;box-shadow:0 4px 12px #0000001f}.book-cover-placeholder{color:#fff;box-sizing:border-box;background:linear-gradient(145deg,#1e293b,#046bd2);border-radius:6px;flex-direction:column;justify-content:space-between;width:160px;height:226px;padding:16px;display:flex}.book-cover-placeholder span{letter-spacing:.08em;text-transform:uppercase;font-size:.72rem}.book-cover-placeholder strong{font-family:Georgia,serif;font-size:.95rem;line-height:1.25}.book-card-content{flex-direction:column;flex:1;align-items:start;min-width:0;padding:4px 0;display:flex}.book-number{color:#046bd2;letter-spacing:.1em;text-transform:uppercase;font-size:.72rem;font-weight:800}.book-card h2{color:#1e293b;margin:6px 0 10px;font-size:1.15rem;font-weight:700;line-height:1.3}.book-card p{color:#64748b;margin:0 0 16px;font-size:.86rem;line-height:1.5}.download-actions{gap:10px;margin-top:auto;display:flex}.download-action{color:#046bd2;background:#fff;border:1px solid #cbd5e1;border-radius:5px;align-items:center;gap:8px;min-height:38px;padding:8px 14px;font-size:.8rem;font-weight:800;display:inline-flex}.download-action:hover{color:#045cb4;background:#eaf5ff;border-color:#046bd2}.download-action:focus-visible{outline-offset:2px;outline:3px solid #75bdff}.download-action svg{width:18px;height:18px}.status-message{color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:24px}.site-footer{text-align:center;background:#fff;border-top:1px solid #e2e8f0;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:180px;padding:48px 24px;display:flex}.footer-collection-heading{flex-direction:column;align-items:center;gap:10px;display:flex}.footer-collection-title{color:#1e293b;letter-spacing:-.02em;font-family:Georgia,Roboto Slab,serif;font-size:1.12rem;font-weight:700}.footer-elegant-bar{background:linear-gradient(90deg,#046bd2,#75bdff);border-radius:3px;width:72px;height:3px}.footer-publisher{color:#64748b;letter-spacing:.02em;font-size:.84rem;font-weight:600}.site-footer .brand{justify-content:center;height:auto;display:inline-flex}.site-footer .brand img{object-fit:contain;width:auto;height:80px;max-height:80px}.dialog-backdrop{z-index:10;background:#0f172ab8;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.download-dialog{background:#fff;border-radius:10px;width:min(100%,560px);max-height:calc(100vh - 40px);padding:38px;position:relative;overflow:auto;box-shadow:0 25px 70px #0f172a4d}.download-dialog h2{margin:0;padding-right:30px;font-size:1.7rem;line-height:1.25}.dialog-description{color:#64748b;margin:12px 0 24px;line-height:1.55}.dialog-close{color:#64748b;background:0 0;border:0;font-size:2rem;line-height:1;position:absolute;top:14px;right:18px}.format-options{border:0;gap:9px;margin:0 0 20px;padding:0;display:grid}.format-options legend{color:#334155;margin-bottom:8px;font-size:.85rem;font-weight:800}.format-options label{cursor:pointer;border:1px solid #cbd5e1;border-radius:5px;align-items:center;gap:10px;padding:12px;display:flex}.format-options label:has(input:checked){background:#f0f8ff;border-color:#046bd2}.format-options input{accent-color:#046bd2}.format-options span{color:#64748b;gap:7px;font-size:.88rem;display:flex}.format-options strong{color:#1e293b}.field{color:#334155;gap:7px;margin:15px 0;font-size:.85rem;font-weight:800;display:grid}.field input,.select-field select{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:4px;width:100%;min-height:44px;padding:10px 12px;font-weight:400}.form-grid{grid-template-columns:1fr 1fr;gap:14px;margin-bottom:8px;display:grid}.form-grid .field{margin:0}.choice-fieldset{border:0;flex-direction:column;justify-content:flex-end;margin:0;padding:0;display:flex}.choice-fieldset legend{color:#334155;margin-bottom:7px;font-size:.85rem;font-weight:800}.choice-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.choice-pill{cursor:pointer;color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:4px;justify-content:center;align-items:center;gap:8px;min-height:44px;font-size:.88rem;font-weight:700;transition:all .2s;display:flex}.choice-pill input{accent-color:#046bd2}.choice-pill:hover{color:#046bd2;background:#f0f8ff;border-color:#046bd2}.choice-pill.active{color:#046bd2;background:#eaf5ff;border-color:#046bd2}.checkbox-field{color:#334155;cursor:pointer;align-items:flex-start;gap:10px;margin:16px 0 10px;font-size:.84rem;line-height:1.45;display:flex}.checkbox-field input{accent-color:#046bd2;margin-top:2px}.status-pill{white-space:nowrap;border-radius:12px;padding:3px 8px;font-size:.68rem;font-weight:800;display:inline-block}.pill-business{color:#0369a1;background:#e0f2fe}.pill-individual{color:#64748b;background:#f1f5f9}.pill-optin{color:#047857;background:#ecfdf5}.pill-optout{color:#94a3b8;background:#f8fafc;border:1px solid #e2e8f0}.consent{color:#64748b;align-items:flex-start;gap:10px;margin:16px 0 20px;font-size:.8rem;line-height:1.5;display:flex}.consent input{accent-color:#046bd2;margin-top:3px}.form-error{color:#b42318;background:#fef3f2;border-radius:4px;margin:14px 0;padding:10px 12px;font-size:.85rem}.batch-progress-view{flex-direction:column;gap:14px;margin-top:16px;display:flex}.batch-header{text-align:center;background:#f0f8ff;border:1px solid #bae6fd;border-radius:6px;padding:12px 16px}.batch-progress-text{color:#0369a1;font-size:.88rem;font-weight:700}.batch-list{gap:8px;margin:4px 0 12px;display:grid}.batch-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;transition:all .2s;display:flex}.batch-item.status-downloading{background:#eff6ff;border-color:#93c5fd;box-shadow:0 0 0 1px #3b82f6}.batch-item.status-done{background:#f0fdf4;border-color:#bbf7d0}.batch-item.status-unavailable{opacity:.85;background:#fafafa;border-color:#e2e8f0}.batch-item-info{text-align:left;flex-direction:column;gap:2px;display:flex}.batch-item-num{color:#046bd2;text-transform:uppercase;letter-spacing:.05em;font-size:.68rem;font-weight:800}.batch-item-title{color:#1e293b;font-size:.84rem;line-height:1.3}.batch-badge{white-space:nowrap;border-radius:20px;padding:4px 10px;font-size:.72rem;font-weight:800}.badge-pending{color:#64748b;background:#f1f5f9}.badge-downloading{color:#1d4ed8;background:#dbeafe}.badge-done{color:#15803d;background:#dcfce7}.badge-unavailable{color:#b45309;background:#fef3c7}.badge-error{color:#b91c1c;background:#fee2e2}.batch-tip{color:#64748b;text-align:center;margin:4px 0 0;font-size:.8rem}.admin-shell{background:#f8fafc}.admin-header{background:#fff;border-bottom:1px solid #e2e8f0;width:100%;max-width:none;padding-left:max(24px,50vw - 600px);padding-right:max(24px,50vw - 600px)}.admin-header-actions,.report-actions{align-items:center;gap:14px;display:flex}.admin-main{width:min(1240px,100% - 48px);margin:0 auto;padding:48px 0 84px}.admin-title-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px;display:flex}.date-range-control{background:#fff;border:1px solid #cbd5e1;border-radius:8px;align-items:center;gap:10px;padding:6px 12px;display:flex;box-shadow:0 1px 3px #0000000a}.date-range-label{color:#475569;text-transform:uppercase;letter-spacing:.04em;margin-right:2px;font-size:.76rem;font-weight:800}.date-input-group{align-items:center;gap:6px;display:flex}.date-input-group span{color:#94a3b8;font-size:.8rem;font-weight:500}.date-input{color:#1e293b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:6px 10px;font-family:inherit;font-size:.84rem}.date-input:focus{background:#fff;border-color:#046bd2;outline:none}.date-quick-presets{gap:4px;display:flex}.preset-btn{color:#046bd2;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:4px 8px;font-size:.78rem;font-weight:700;transition:all .15s}.preset-btn:hover{background:#eaf5ff}.preset-btn.active{color:#fff;background:#046bd2}.metric-grid{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px;display:grid}.metric{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:21px;box-shadow:0 1px 3px #00000005}.metric span{color:#64748b;font-size:.82rem;font-weight:700;display:block}.metric strong{color:#1e293b;margin-top:10px;font-family:Georgia,serif;font-size:2rem;line-height:1.1;display:block}.dashboard-content{gap:24px;display:grid}.dashboard-panel{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:24px;box-shadow:0 1px 3px #00000005}.panel-header{border-bottom:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:20px;padding-bottom:16px;display:flex}.panel-header h2{margin:0;font-size:1.25rem}.panel-header span{color:#64748b;font-size:.78rem}.panel-header-actions{align-items:center;gap:10px;display:flex}.book-report-list{gap:17px;margin-top:22px;display:grid}.book-report-item{grid-template-columns:minmax(180px,1.4fr) minmax(100px,2fr) 40px;align-items:center;gap:18px;display:grid}.book-report-item div:first-child{gap:3px;display:grid}.book-report-item span{color:#046bd2;letter-spacing:.07em;text-transform:uppercase;font-size:.68rem;font-weight:800}.book-report-item strong{color:#334155;font-size:.84rem;line-height:1.3}.book-report-item b{color:#1e293b;text-align:right}.bar-track{background:#e2e8f0;border-radius:8px;height:8px;overflow:hidden}.bar-track span{border-radius:inherit;background:#046bd2;height:100%;display:block}.table-filter-bar{border-bottom:1px solid #f1f5f9;flex-direction:column;gap:16px;padding:18px 0 20px;display:flex}.search-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.search-box{flex:1;min-width:280px;position:relative}.search-input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;padding:10px 14px 10px 38px;font-size:.88rem;transition:all .15s;box-shadow:0 1px 2px #0000000a}.search-input:focus{border-color:#046bd2;box-shadow:0 0 0 3px #046bd226}.search-icon{color:#94a3b8;pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.search-filters-secondary{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.filter-select{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;outline:none;padding:8px 12px;font-size:.82rem;font-weight:600}.filter-select:focus{border-color:#046bd2}.books-filter-group{flex-direction:column;gap:8px;display:flex}.books-filter-title{color:#64748b;text-transform:uppercase;letter-spacing:.05em;font-size:.74rem;font-weight:800}.books-chips{flex-wrap:wrap;gap:6px;display:flex}.book-chip{color:#475569;cursor:pointer;-webkit-user-select:none;user-select:none;background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;align-items:center;gap:6px;padding:5px 12px;font-size:.78rem;font-weight:600;transition:all .15s;display:inline-flex}.book-chip:hover{background:#f1f5f9;border-color:#94a3b8}.book-chip.selected{color:#fff;background:#046bd2;border-color:#046bd2}.book-chip-all{border-color:#cbd5e1}.export-group{align-items:center;gap:8px;display:inline-flex}.button-export{cursor:pointer;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:6px;align-items:center;gap:6px;padding:7px 14px;font-size:.82rem;font-weight:700;text-decoration:none;transition:all .15s;display:inline-flex}.button-export:hover{color:#046bd2;background:#eaf5ff;border-color:#046bd2}.button-export-excel{color:#107c41;border-color:#107c41}.button-export-excel:hover{color:#fff;background:#107c41;border-color:#0c5e31}.empty-state{color:#64748b;text-align:center;background:#f8fafc;border-radius:6px;margin:24px 0;padding:24px}.table-wrap{margin-top:12px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:780px}th,td{text-align:left;border-bottom:1px solid #e2e8f0;padding:12px 10px;font-size:.84rem}th{color:#64748b;letter-spacing:.06em;text-transform:uppercase;background:#f8fafc;font-size:.71rem;font-weight:800}td{color:#475569;vertical-align:middle}td strong,td small{display:block}td strong{color:#1e293b;font-size:.88rem;font-weight:700}td small{color:#64748b;margin-top:3px;font-size:.78rem}.format-tag{color:#046bd2;background:#eaf5ff;border-radius:20px;padding:3px 8px;font-size:.7rem;font-weight:800;display:inline-block}.phone-cell{color:#334155;font-family:monospace;font-size:.82rem}.pagination-row{border-top:1px solid #e2e8f0;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding:18px 6px 4px;display:flex}.pagination-info{color:#64748b;font-size:.82rem;font-weight:500}.pagination-controls{align-items:center;gap:6px;display:flex}.pagination-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 12px;font-size:.82rem;font-weight:600;transition:all .15s}.pagination-btn:hover:not(:disabled){color:#046bd2;background:#eaf5ff;border-color:#046bd2}.pagination-btn:disabled{opacity:.45;cursor:not-allowed}.pagination-current{color:#1e293b;padding:0 8px;font-size:.82rem;font-weight:700}.admin-loading{color:#64748b;place-items:center;min-height:100vh;display:grid}.login-page{background:linear-gradient(130deg,#f8fafc 0%,#eaf5ff 100%);place-content:center;gap:28px;min-height:100vh;padding:32px 20px;display:grid}.login-brand{justify-self:center}.login-brand .brand{pointer-events:none;height:60px}.login-brand .brand img{height:100%;max-height:60px}.login-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;width:min(100%,440px);padding:36px;box-shadow:0 18px 50px #1e293b1a}.login-card h1{margin:0;font-size:1.8rem}.login-card>p{color:#64748b;margin:12px 0 24px;font-size:.9rem;line-height:1.55}@media (width<=980px){.metric-grid,.book-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr}.hero-mark{display:none}}@media (width<=640px){.site-header,.admin-header,.collection,.admin-main{width:min(100% - 32px,1200px)}.site-header,.admin-header{height:74px;min-height:74px}.brand{gap:8px;height:100%}.brand img{width:auto;height:90%;max-height:90%}.brand span{padding-left:8px;font-size:.8rem}.hero{min-height:280px;padding:36px 16px}.collection{padding:28px 0 44px}.section-heading,.admin-title-row{flex-direction:column;align-items:start}.book-grid{grid-template-columns:1fr;gap:14px}.book-card{grid-template-columns:110px 1fr;gap:14px;padding:12px}.book-cover,.book-cover-placeholder{width:110px;height:155px}.book-card-content{padding:0}.book-card h2{font-size:1rem}.book-card p{font-size:.8rem}.site-footer{gap:14px;padding:36px 16px}.footer-collection-title{font-size:.98rem}.site-footer .brand img{height:66px;max-height:66px}.download-dialog,.login-card{padding:27px 22px}.form-grid{grid-template-columns:1fr;gap:10px}.admin-header{padding:0}.admin-header-actions{gap:8px}.report-actions{justify-content:space-between;align-items:end;width:100%}.metric-grid{gap:10px}.metric{padding:16px}.metric strong{font-size:1.6rem}.dashboard-panel{padding:17px}.panel-header{flex-direction:column;align-items:start;gap:5px}.book-report-item{grid-template-columns:1fr 38px;gap:10px}.book-report-item .bar-track{grid-area:2/1/auto/-1}}
