.amr-library{--amr-ink:#18354e;--amr-blue:#145a83;--amr-line:#dce4eb;color:var(--amr-ink);max-width:1300px;margin:1.5rem auto;font-family:inherit}.amr-library *{box-sizing:border-box}.amr-library button,.amr-button{border:1px solid var(--amr-blue);background:var(--amr-blue);color:white!important;border-radius:7px;padding:.65rem 1rem;cursor:pointer;display:inline-block;text-decoration:none!important;font:inherit}.amr-library button:disabled{opacity:.45;cursor:default}.amr-library button:focus-visible,.amr-library a:focus-visible,.amr-library select:focus-visible{outline:3px solid #d7a526;outline-offset:3px}.amr-library input:not([type=checkbox]),.amr-library select{font:inherit;padding:.5rem;border:1px solid #8a9dab;border-radius:5px;background:white;color:#18354e;max-width:100%}.amr-library label{font-size:.95rem}.amr-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.amr-card{border:1px solid var(--amr-line);border-radius:12px;padding:1.4rem;background:#f8fafc}.amr-badge{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em}.amr-card h3{margin:.6rem 0 1.3rem}.amr-redeem{margin:2rem 0;padding:1.25rem;border:1px solid var(--amr-line);border-radius:10px}.amr-redeem summary{cursor:pointer;font-weight:600}.amr-redeem input:not([type=checkbox]){display:block;width:100%;max-width:440px;margin-top:.4rem}.amr-honey{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.amr-notice{background:#eef5fa;border-left:4px solid var(--amr-blue);padding:1rem}.amr-viewer{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:1.4rem;align-items:start}.amr-toolbar{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.6rem;margin-bottom:.8rem}.amr-toolbar button{padding:.4rem .8rem}.amr-page-scroll{background:#e8edf2;overflow:auto;max-height:80vh;border:1px solid var(--amr-line);border-radius:8px;padding:8px}.amr-page-image{display:block;width:100%;max-width:none!important;height:auto;margin:0 auto;box-shadow:0 2px 10px #0002}.amr-caption{font-size:.8rem;color:#526575;margin-top:.7rem}.amr-listening{position:sticky;top:24px;background:#f3f7fa;border:1px solid var(--amr-line);border-radius:12px;padding:1rem}.amr-listening h3{margin:0 0 .8rem}.amr-listening audio{width:100%;margin:.4rem 0}.amr-now{font-weight:600;font-size:.95rem}.amr-tracks{list-style:none;padding:0!important;margin:1rem 0!important;max-height:45vh;overflow:auto}.amr-tracks li{margin:.4rem 0}.amr-tracks button{width:100%;text-align:left;background:white;color:var(--amr-ink)!important;border-color:var(--amr-line);font-size:.9rem}.amr-tracks button[aria-current=true]{background:#dcecf7;border-color:var(--amr-blue)}.amr-track-details{margin-top:1rem}.amr-track-details summary{cursor:pointer}.amr-audio-only{display:block;max-width:650px}.amr-audio-only .amr-listening{position:static}.amr-page-status,.amr-audio-status{font-size:.85rem;color:#6c4100}.amr-page-status:empty,.amr-audio-status:empty{display:none}@media(max-width:760px){.amr-viewer{display:flex;flex-direction:column;gap:1rem}.amr-reading{width:100%}.amr-listening{position:sticky;bottom:0;top:auto;width:100%;z-index:3;padding:.65rem .85rem;box-shadow:0 -3px 15px #0001}.amr-listening h3,.amr-listening .amr-caption{display:none}.amr-now{margin:0}.amr-page-scroll{max-height:65vh}.amr-track-details{margin-top:.5rem}.amr-tracks{max-height:25vh}.amr-toolbar{font-size:.85rem}.amr-library{margin-top:.7rem}}@media print{.amr-library{display:none!important}}

.ama-portal-page{background:#eef3f7;margin:0;padding:24px 16px;color:#18354e;font-family:system-ui,sans-serif}.ama-registration{max-width:640px!important;background:white;border:1px solid #dce4eb;border-radius:16px;padding:32px}.ama-logo{display:block;max-width:220px!important;max-height:120px;width:auto;height:auto;margin:0 auto 24px}.ama-registration h1{font-size:1.8rem;line-height:1.25}.ama-registration a{color:#145a83}.ama-registration textarea{display:block;width:100%;font:inherit;border:1px solid #8a9dab;border-radius:5px;padding:.5rem}.ama-registration .amr-redeem{margin:1.5rem 0 0}.ama-registration .amr-redeem input:not([type=checkbox]){max-width:none}@media(max-width:480px){.ama-registration{padding:20px 14px}.ama-registration .amr-redeem{padding:14px}.ama-registration h1{font-size:1.5rem}}

.ama-auth-form { max-width: 680px; }
.ama-auth-form label { display: block; }
.ama-auth-form input:not([type=checkbox]):not([type=hidden]):not([type=submit]), .ama-auth-form textarea { box-sizing: border-box; width: 100%; max-width: 100%; }
.ama-auth-form .login-remember label { display: inline; }

.ama-question { margin: 1.25em 0; padding: 0; border: 0; min-width: 0; }
.ama-question legend { margin-bottom: .4em; font-weight: 600; }
.ama-auth-form .ama-choice { display: block; margin: .4em 0; }
.ama-auth-form input[type=radio] { width: auto !important; }
.ama-question select { width: 100%; max-width: 100%; }

.amr-card .ama-book-cover-link {display:block;margin:0 auto 1rem;max-width:210px;text-decoration:none;}
.amr-card .ama-book-cover {display:block;width:100%;height:290px;object-fit:contain;margin:0;box-shadow:0 3px 10px #0002;border-radius:3px;}
@media(max-width:480px){.amr-cards{grid-template-columns:minmax(0,1fr);}}

.amr-listening audio[hidden]{display:none!important}
.ama-controls{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:1rem 0}
.ama-controls label{display:flex;align-items:center;gap:.5rem;max-width:100%}
.ama-controls input[type=range]{width:140px;max-width:100%}
.ama-controls [data-role=time]{font-size:.9rem;white-space:nowrap}
.ama-controls button:disabled{opacity:.55;cursor:default}

.ama-registration-error{border-left:4px solid #a52828;background:#fff3f3;color:#611b1b;padding:1rem;margin:0 0 1.25rem;}
.ama-registration-error[hidden]{display:none;}
.ama-registration-error:focus{outline:2px solid #a52828;outline-offset:3px;}

/* Keep purchase text readable without inheriting oversized theme paragraphs. */
.amr-library .ama-purchase{font-size:16px;line-height:1.55;min-width:0;padding:1em;border:1px solid var(--amr-line);border-radius:8px}
.amr-library .ama-purchase p,.amr-library .ama-purchase label,.amr-library .ama-purchase select{font-size:inherit;line-height:inherit}
.amr-library .ama-purchase legend{font-size:18px;font-weight:600;padding:0 .3em}
.amr-library .ama-purchase p{margin:.8em 0}
.amr-library .ama-purchase .amr-caption{font-size:14px;line-height:1.5}
.amr-library .amr-listening .ama-audio-load-note{display:block;font-size:1rem;line-height:1.5;color:#526575;margin:1em 0}

/* Match built-in fields and custom questions, independent of theme heading sizes. */
.amr-library.ama-auth-form,.amr-library form[data-ama-redeem]{font-size:16px;line-height:1.55;font-family:inherit}
.amr-library.ama-auth-form p,.amr-library form[data-ama-redeem] p{font-size:16px;line-height:1.55}
.amr-library.ama-auth-form label,.amr-library form[data-ama-redeem] label,.amr-library .ama-question legend{font-family:inherit;font-size:16px;line-height:1.55;font-weight:600}
.amr-library.ama-auth-form input,.amr-library.ama-auth-form select,.amr-library.ama-auth-form textarea,.amr-library form[data-ama-redeem] input,.amr-library form[data-ama-redeem] select,.amr-library form[data-ama-redeem] textarea{font-family:inherit;font-size:16px;font-weight:400}
.amr-library .ama-purchase .amr-caption{font-size:14px;font-weight:400}

/* Keep separate book submissions distinguishable without changing theme typography. */
.amr-redeem [data-ama-book] + [data-ama-book] { margin-top: .75rem; }
.amr-redeem [hidden] { display: none !important; }

.amr-redeem .ama-receipt-section h3 { font-family: inherit; font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .5rem; }
.amr-redeem [data-ama-receipt-row] + [data-ama-receipt-row] { border-top: 1px solid #d9e1e8; margin-top: 1rem; padding-top: .75rem; }

/* Separate player actions and sliders so Opera and theme styles cannot squeeze the seek bar. */
.amr-library .ama-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:.8rem;margin:1rem 0;align-items:start}
.amr-library .ama-playback-buttons{display:flex;flex-wrap:wrap;gap:.75rem}
.amr-library .ama-controls .ama-audio-load-note{margin:0;grid-row:auto;font-size:.9rem;font-weight:400}
.amr-library .ama-position{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;min-width:0}
.amr-library .ama-position label{display:flex;flex:1 1 250px;min-width:0;align-items:center;gap:.65rem}
.amr-library .ama-position input[type=range]{flex:1 1 160px;width:auto;min-width:100px;max-width:none;padding:0}
.amr-library .ama-controls .ama-volume,.amr-library .ama-controls .ama-speed{display:flex;align-items:center;gap:.65rem;width:max-content;max-width:100%}
.amr-library .ama-volume input[type=range]{padding:0}
