.storybook-dialog { box-sizing:border-box; width:min(460px,calc(100vw - 30px)); max-height:calc(100dvh - 36px); overflow:auto; margin:auto; padding:28px; border:2px solid white; border-radius:28px; background:radial-gradient(ellipse at 10% 0,#ffe0ed,transparent 48%),radial-gradient(ellipse at 95% 0,#e6daff,transparent 48%),linear-gradient(#fffdf8,#fff1e4); box-shadow:0 20px 65px #50385b44,inset 0 0 0 5px #fffc; color:#62457e; font:600 14px/1.6 'Nunito',sans-serif; }
.storybook-dialog::backdrop { background:#6e548877; backdrop-filter:blur(6px); }
.storybook-dialog h2 { margin:5px 0 12px; font:900 24px/1.2 'Nunito',sans-serif; color:#352565; text-align:center; }
.storybook-dialog-icon { text-align:center; font-size:33px; }
.storybook-dialog-message { white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0 22px; }
.storybook-dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.storybook-dialog button { cursor:pointer; font:900 14px 'Nunito',sans-serif; border-radius:24px; padding:11px 20px; border:1px solid #dcc0ff; }
.storybook-dialog-primary { color:white; background:linear-gradient(#be8aff,#8a40e6); box-shadow:inset 0 2px 3px #fff8,0 3px 7px #a576cb44; }
.storybook-dialog-secondary { color:#7845a4; background:linear-gradient(#fffdfd,#eee0ff); }
.storybook-dialog button:hover { filter:brightness(.96); }
.storybook-dialog button:focus-visible { outline:3px solid #9560cf; outline-offset:3px; }
.storybook-print-preview { width:min(820px,calc(100vw - 30px)); }
.storybook-preview-pages { display:flex; gap:16px; overflow:auto; max-height:60vh; padding:10px; margin-bottom:16px; }
.storybook-preview-pages img { max-height:56vh; width:auto; border-radius:12px; box-shadow:0 3px 10px #6e457b33; }
.storybook-print-frame { position:fixed; left:-10000px; width:800px; height:1000px; border:0; }
.narration-sync-choice { display:flex; flex-direction:column; gap:5px; margin-bottom:9px; }
.narration-sync-choice label { color:#73548d; font:800 12px 'Nunito',sans-serif; }
.narration-sync-choice select { font:700 12px 'Nunito',sans-serif; background:#fffaf7; color:#5c3e7a; padding:7px 10px; border:1px solid #e8d5ed; border-radius:12px; width:100%; }
.narration-sync-note { color:#967da6; font:600 11px/1.45 'Nunito',sans-serif; margin:6px 0; }
#modal-word-timing-editor,#parental-gate-modal,#come-alive-modal { background:#6e548877 !important; backdrop-filter:blur(6px) !important; }
#modal-word-timing-editor { z-index:3500 !important; }
#modal-word-timing-editor>div,.gate-card,.come-alive-card { background:linear-gradient(130deg,#fffaf2,#f4eaff) !important; border:2px solid white !important; box-shadow:0 20px 60px #593f6444 !important; color:#62457e !important; border-radius:28px !important; }
#modal-word-timing-editor :is(div,h3,p,label,span,button,input),.gate-card :is(h3,p,input,button),.come-alive-card { font-family:'Nunito',sans-serif !important; }
#modal-word-timing-editor>div>div { background:#fffbf5 !important; border-color:#ead8e5 !important; }
#modal-word-timing-editor h3,.gate-card h3,.package-main-title { color:#352565 !important; }
#modal-word-timing-editor p,.gate-card p,.package-subtitle { color:#91749f !important; }
#timing-editor-words-container>div { background:#f8efff !important; border-color:#ead8ee !important; }
#timing-editor-words-container span,#timing-editor-words-container label { color:#6f4b8c !important; }
#timing-editor-words-container input,.gate-input { background:#fffdf8 !important; color:#563972 !important; border:1px solid #d8bee8 !important; border-radius:10px !important; }
#modal-word-timing-editor button,.gate-card button { background:linear-gradient(#c99aff,#944eec) !important; color:#fff !important; border:1px solid #dec6ff !important; border-radius:22px !important; }
.gate-card .btn-unlock-cancel { background:#f0e3ff !important; color:#754997 !important; }
.gate-question { color:#8150b8 !important; }
.package-card { background:#fff9f4 !important; border-color:#ead5f3 !important; color:#65497b !important; }
.package-features-list,.package-footer-note,.package-books-count,.package-plus-tag { color:#8b709c !important; }
.package-name,.package-price { color:#7042a3 !important; }
.package-close-btn { background:#ecdfff !important; color:#7042a3 !important; }
@media(max-width:600px) {
  #timing-editor-words-container>div { flex-direction:column; align-items:stretch !important; gap:8px; }
  #modal-word-timing-editor>div>div:last-child { flex-wrap:wrap; gap:10px; }
  .storybook-dialog { padding:24px 21px; }
}
/* Reconfirm the signed-in grown-up without storing another password. */
.storybook-password-label { display:block; color:#634481; font-weight:800; margin:16px 0 8px; }
.storybook-password-input { box-sizing:border-box; width:100%; padding:13px 16px; border:1px solid #d8b8f3; border-radius:15px; background:#fffaf8; font:inherit; color:#493168; }
.storybook-password-input:focus { outline:3px solid #cba6fa70; }
.storybook-password-error { color:#b12d62; min-height:1.5em; font-size:14px; }
