/* Consent controls use their own namespace and never cover a reader illustration. */
.analytics-settings-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 4px;border:0;background:transparent;color:inherit;font:inherit;line-height:1.3;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.analytics-settings-link:focus-visible,.analytics-consent button:focus-visible{outline:3px solid #ffdfa1;outline-offset:3px}
.analytics-reader-settings{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:1px solid #d7b68b55;border-radius:50%;background:#ffffff08;color:#ead6b4;cursor:pointer}.analytics-reader-settings svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.analytics-reader-settings:focus-visible{outline:3px solid #ffdfa1;outline-offset:3px}
.analytics-consent{display:flex;flex-direction:column;position:fixed;z-index:1000;inset:auto 16px max(16px,env(safe-area-inset-bottom));width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin-inline:auto;overflow:hidden;overscroll-behavior:contain;box-sizing:border-box;padding:20px 24px;background:#30213e;color:#fff0d8;border:1px solid #d7b47a;border-radius:16px;box-shadow:0 12px 45px #10071dc7;font:15px/1.5 'Trebuchet MS','Segoe UI',system-ui,sans-serif;text-align:left}
.analytics-consent .analytics-copy{min-height:0;overflow:auto;overscroll-behavior:contain}.analytics-consent h2,.analytics-consent .analytics-actions{flex-shrink:0}.analytics-consent a{color:#f8dca8;text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}.analytics-consent[hidden]{display:none!important}.analytics-consent h2{margin:0 36px 8px 0;color:#f8dca8;font:700 20px/1.25 'Trebuchet MS','Segoe UI',system-ui,sans-serif}.analytics-consent p{margin:8px 0}.analytics-consent .analytics-note{font-size:13px;color:#dfcfdf}.analytics-consent .analytics-error{color:#ffe0b1;font-weight:600}.analytics-consent .analytics-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.analytics-consent .analytics-actions button{flex:1;min-width:180px;min-height:46px;border:1px solid #efcf93;border-radius:9px;padding:10px 16px;background:#f6deb2;color:#32233d;font-family:inherit;font-size:15px;line-height:1.3;font-weight:700;cursor:pointer}.analytics-consent .analytics-actions button:hover{background:#ffedcc}.analytics-consent button:disabled{opacity:.65;cursor:wait}.analytics-consent .analytics-close{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:#f6deb2;font-size:28px;cursor:pointer}.analytics-consent .analytics-status{font-size:13px;color:#c5e4d4}.analytics-consent .analytics-status:empty,.analytics-consent .analytics-error:empty{display:none}
@media(max-width:580px){.analytics-consent{inset-inline:8px;bottom:max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:16px}.analytics-consent h2{font-size:18px}.analytics-consent .analytics-actions{gap:8px}.analytics-consent .analytics-actions button{min-width:0;flex-basis:44%;font-size:14px}.analytics-consent p{font-size:14px}.reader-app .site-bar{gap:7px}.reader-app .book-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}
@media(max-height:520px) and (orientation:landscape){.analytics-consent{padding:12px 18px}.analytics-consent h2{font-size:18px}.analytics-consent .analytics-actions{margin-top:8px}.analytics-consent p{margin:4px 0}}
