:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}*{box-sizing:border-box}html,body{margin:0;padding:0;min-height:100%}#root{min-height:100vh}html.theme-dark{background:#0f1720}html.theme-light{background:#f6f7f9}body{background:#f6f7f9;color:#1f2933;transition:background .2s ease,color .2s ease}body.theme-dark{background:#0f1720;color:#e6edf3}body.theme-dark .container,body.theme-dark .logged-out,body.theme-dark .logged-in,body.theme-dark .auth-banner,body.theme-dark .admin-invite-section,body.theme-dark .album-card,body.theme-dark .ai-response,body.theme-dark .tools-panel,body.theme-dark .model-tools-card,body.theme-dark .heard-log,body.theme-dark .user-card,body.theme-dark .dialog-box{background:#17212b!important;color:#e6edf3!important;border-color:#2b3b4a!important}body.theme-dark input,body.theme-dark select,body.theme-dark textarea{background:#0f1720;color:#e6edf3;border-color:#2b3b4a}body.theme-dark .auth-subtitle,body.theme-dark .album-date,body.theme-dark .listen-status,body.theme-dark .heard-log-time,body.theme-dark .ai-response-meta,body.theme-dark .token-usage{color:#9fb0bf!important}body.theme-dark .auth-title,body.theme-dark .admin-page h1{color:#e6edf3!important}body.theme-dark .admin-subtitle,body.theme-dark .admin-invite-section h2,body.theme-dark .admin-invite-status,body.theme-dark .admin-version{color:#c7d5e4!important}body.theme-dark .admin-invite-section .checkbox-label{color:#d5e0ec!important}body.theme-dark .admin-invite-input::placeholder{color:#9fb0bf}body.theme-dark .studio-btn,body.theme-dark .admin-link-btn{background:#17212b!important;color:#e6edf3!important;border-color:#2b3b4a!important}body.theme-dark .studio-btn:hover,body.theme-dark .admin-link-btn:hover{background:#1e2c3a!important;border-color:#3a5168!important}body.theme-dark .landing-page h1{color:#e6edf3!important}body.theme-dark .landing-subtitle{color:#c7d5e4!important}body.theme-dark .app-card{background:#17212b!important;border-color:#2b3b4a!important}body.theme-dark .app-card h2{color:#e6edf3!important}body.theme-dark .app-card p{color:#c7d5e4!important}body.theme-dark .app-card:hover{background:#1b2e40!important;border-color:#3a5168!important;box-shadow:0 6px 16px #00000059}body.theme-dark .admin-table{background:#17212b!important;border-color:#2b3b4a!important}body.theme-dark .admin-table-header>span{background:#1f2d3a!important;color:#e6edf3!important}body.theme-dark .admin-table-row>span{color:#e6edf3!important;border-top-color:#2b3b4a!important}body.theme-dark h1,body.theme-dark .app-title{color:#e6edf3!important}body.theme-dark .actions{background:#17212b!important;border-color:#2b3b4a!important}body.theme-dark .actions h3,body.theme-dark .prompt-history-title,body.theme-dark .heard-log-header,body.theme-dark .ai-response-history h4,body.theme-dark .ai-response-title,body.theme-dark .model-tools-title,body.theme-dark .tools-header h4,body.theme-dark .tools-name{color:#e6edf3!important}body.theme-dark .model-tools-current,body.theme-dark .heard-log-empty,body.theme-dark .heard-log-status,body.theme-dark .heard-log-time,body.theme-dark .ai-response-empty,body.theme-dark .tools-meta,body.theme-dark .tools-empty,body.theme-dark .tools-desc,body.theme-dark .tools-used-label,body.theme-dark .tools-used-id,body.theme-dark .prompt-history-text,body.theme-dark .model-select label,body.theme-dark .tool-route-checkbox,body.theme-dark .tools-schema summary,body.theme-dark .alfrexa-dry-run{color:#c7d5e4!important}body.theme-dark .nav-tabs{border-bottom-color:#2b3b4a!important}body.theme-dark .nav-tab{color:#c7d5e4!important}body.theme-dark .nav-tab:hover{color:#e6edf3!important;background:#1f2d3a!important}body.theme-dark .nav-tab.active{color:#8ab4f8!important;border-bottom-color:#8ab4f8!important}body.theme-dark .heard-log{background:#13202d!important;border-color:#2b3b4a!important}body.theme-dark .prompt-form textarea,body.theme-dark .prompt-history,body.theme-dark .prompt-history-item,body.theme-dark .tools-item,body.theme-dark .tools-used,body.theme-dark .tools-schema pre,body.theme-dark .tools-used-output pre,body.theme-dark .alfrexa-settings input[type=password]{background:#13202d!important;border-color:#2b3b4a!important;color:#e6edf3!important}body.theme-dark .tools-schema pre{background:#1a2b3d!important;border-color:#3a5168!important}body.theme-dark .json-response-pre{background:#1a2b3d!important;border-color:#3a5168!important;color:#e6edf3!important}body.theme-dark .tool-route-checkbox input[type=checkbox],body.theme-dark .alfrexa-dry-run input[type=checkbox]{accent-color:#8ab4f8}body.theme-dark .prompt-history-clear,body.theme-dark .prompt-history-icon-btn,body.theme-dark .refresh-btn,body.theme-dark .toggle-btn{background:#1f2d3a!important;color:#e6edf3!important;border-color:#2b3b4a!important}body.theme-dark .prompt-history-clear:hover,body.theme-dark .prompt-history-icon-btn:hover,body.theme-dark .refresh-btn:hover:not(:disabled),body.theme-dark .toggle-btn:hover:not(:disabled){background:#2a3a4a!important;border-color:#3a5168!important}body.theme-dark .story-album,body.theme-dark .spotilib-page{background:linear-gradient(135deg,#0d1620,#132435)!important}body.theme-dark .spotilib-folder-card{background:#13202d!important;border-color:#2b3b4a!important}body.theme-dark .spotilib-folder-card.selected{border-color:#8ab4f8!important}body.theme-dark .spotilib-folder-card:hover{background:#1b2e40!important;border-color:#3a5168!important}body.theme-dark .spotilib-folder-card.drop-target{border-color:#1ed760!important;box-shadow:0 0 0 2px #1ed7603d}body.theme-dark .spotilib-folder-name,body.theme-dark .spotilib-item-title,body.theme-dark .spotilib-item-subtitle{color:#e6edf3!important}body.theme-dark .spotilib-folder-count{color:#c7d5e4!important}body.theme-dark .spotilib-subfolders-label{color:#9fb0bf!important}body.theme-dark .spotilib-breadcrumb-btn{color:#8ab4f8!important}body.theme-dark .spotilib-breadcrumb-btn:hover{color:#bcd6ff!important}body.theme-dark .spotilib-breadcrumb-current{color:#e6edf3!important}body.theme-dark .spotilib-breadcrumb-sep{color:#9fb0bf!important}body.theme-dark .spotilib-add-subfolder-btn{background:#1f2d3a!important;border-color:#2b3b4a!important;color:#e6edf3!important}body.theme-dark .spotilib-add-subfolder-btn:hover{background:#2a3a4a!important}body.theme-dark .spotilib-subfolder-chip{background:#1f2d3a!important;border-color:#2b3b4a!important;color:#d7e4f1!important}body.theme-dark .spotilib-subfolder-chip:hover{background:#2a3a4a!important}body.theme-dark .spotilib-item-card{background:#13202d!important;border-color:#2b3b4a!important}body.theme-dark .spotilib-item-card:hover{background:#1b2e40!important;border-color:#3a5168!important}body.theme-dark .spotilib-items-panel.drop-target{border-color:#1ed760!important;box-shadow:0 0 0 2px #1ed7603d}body.theme-dark .spotilib-icon-btn{background:#1f2d3a!important;border-color:#2b3b4a!important;color:#e6edf3!important}body.theme-dark .spotilib-icon-btn:hover{background:#2a3a4a!important}body.theme-dark .spotilib-remove-btn{background:#3a1f24!important;border-color:#5e2a33!important;color:#ffd3d9!important}body.theme-dark .spotilib-remove-btn:hover{background:#4a2530!important}body.theme-dark .spotilib-refresh-btn{background:#1f2d3a!important;border-color:#2b3b4a!important;color:#dbe7f4!important}body.theme-dark .spotilib-refresh-btn:hover{background:#2a3a4a!important}body.theme-dark .spotilib-menu{background:#17212b!important;border-color:#2b3b4a!important}body.theme-dark .spotilib-menu-item{color:#e6edf3!important}body.theme-dark .spotilib-menu-item:hover{background:#2a3a4a!important}body.theme-dark .spotilib-menu-item.danger{color:#ff8a80!important}body.theme-dark .spotilib-menu-item.danger:hover{background:#4a2530!important}body.theme-dark .spotilib-new-folder input,body.theme-dark .spotilib-add-item input{background:#13202d!important;border-color:#2b3b4a!important;color:#e6edf3!important}body.theme-dark .story-album-header h1,body.theme-dark .story-album .user-info h2,body.theme-dark .albums-list h3,body.theme-dark .album-name,body.theme-dark .spotilib-page h1{color:#e6edf3!important}body.theme-dark .story-album-header p,body.theme-dark .story-album .user-info p,body.theme-dark .no-albums,body.theme-dark .suggestions-link a{color:#c7d5e4!important}body.theme-dark .albums-list{background:#17212b!important;border-color:#2b3b4a!important}body.theme-dark .story-album .album-card{background:#13202d!important;border-color:#2b3b4a!important}body.theme-dark .story-album .album-clickable:hover{background:#1b2e40!important;border-color:#3a5168!important;box-shadow:0 6px 16px #00000059}body.theme-dark .story-album-content,body.theme-dark .album-name-card,body.theme-dark .add-photos-page{background:#17212b!important;border-color:#2b3b4a!important;color:#e6edf3!important}body.theme-dark .album-name-display,body.theme-dark .placeholder-message p:first-child,body.theme-dark .video-section h3,body.theme-dark .dialog-title{color:#e6edf3!important}body.theme-dark .placeholder-message,body.theme-dark .placeholder-subtitle,body.theme-dark .recording-instructions,body.theme-dark .converting-indicator,body.theme-dark .dialog-message,body.theme-dark .dialog-hint,body.theme-dark .checkbox-label{color:#c7d5e4!important}body.theme-dark .back-to-albums-btn,body.theme-dark .my-albums-btn,body.theme-dark .hide-albums-btn{background:#1f2d3a!important;color:#e6edf3!important;border-color:#2b3b4a!important}body.theme-dark .back-to-albums-btn:hover,body.theme-dark .my-albums-btn:hover,body.theme-dark .hide-albums-btn:hover,body.theme-dark .edit-name-btn:hover{background:#2a3a4a!important;border-color:#3a5168!important}body.theme-dark .edit-name-btn{color:#c7d5e4!important}body.theme-dark .add-photos-dropzone{background:#13202d!important;border-color:#3a5168!important}body.theme-dark .add-photos-dropzone.drag-over{background:#1b2e40!important;border-color:#8ab4f8!important}body.theme-dark .add-photos-dropzone p{color:#d7e4f1!important}body.theme-dark .view-only-banner{background:#2f2a14!important;border-color:#9f7f1f!important}body.theme-dark .view-only-banner span{color:#ffe08a!important}body.theme-dark .subtitle-help-btn{color:#c7d5e4!important}body.theme-dark .subtitle-help-btn:hover{color:#e6edf3!important;background:#8ab4f829}body.theme-dark .suggestions-link a:hover{color:#8ab4f8!important}.top-right-controls{position:fixed;top:14px;right:14px;z-index:9999;display:flex;align-items:center;gap:8px}.theme-toggle-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:8px;border:1px solid #c9d2db;background:#fff;color:#1f2933;font-weight:600;cursor:pointer}.user-menu{position:relative}.user-menu-trigger{width:36px;height:36px;border-radius:50%;border:2px solid #c9d2db;padding:0;cursor:pointer;background:transparent;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0}.user-menu-trigger:hover{border-color:#4285f4}.user-menu-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.user-menu-initials{width:100%;height:100%;border-radius:50%;background:linear-gradient(135deg,#4285f4,#3367d6);color:#fff;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.user-menu-dropdown{position:absolute;top:calc(100% + 8px);right:0;min-width:220px;background:#fff;border:1px solid #d1d9e0;border-radius:10px;box-shadow:0 8px 24px #0000001f;overflow:hidden;z-index:10000}.user-menu-info{padding:14px 16px 12px;display:flex;flex-direction:column;gap:3px}.user-menu-name{font-size:.9rem;font-weight:600;color:#1f2933}.user-menu-email{font-size:.78rem;color:#6b7785}.user-menu-divider{height:1px;background:#e8ecf0;margin:0}.user-menu-item{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 16px;text-align:left;background:none;border:none;cursor:pointer;font-size:.88rem;color:#1f2933;font-weight:500}.user-menu-item:hover{background:#f4f6f8}.user-menu-chevron{font-size:.65rem;opacity:.5}.user-menu-voice-panel{padding:4px 12px 12px}.user-menu-voice-panel .tts-controls{background:none;padding:0;border:none;box-shadow:none}.user-menu-logout{display:block;width:100%;padding:11px 16px;text-align:left;background:none;border:none;cursor:pointer;font-size:.88rem;color:#c0392b;font-weight:500}.user-menu-logout:hover{background:#fff5f5}body.theme-dark .user-menu-trigger{border-color:#2b3b4a}body.theme-dark .user-menu-trigger:hover{border-color:#4285f4}body.theme-dark .user-menu-dropdown{background:#1c2b38;border-color:#2b3b4a;box-shadow:0 8px 24px #0006}body.theme-dark .user-menu-name{color:#e6edf3}body.theme-dark .user-menu-email{color:#8b97a4}body.theme-dark .user-menu-divider{background:#2b3b4a}body.theme-dark .user-menu-item{color:#e6edf3}body.theme-dark .user-menu-item:hover{background:#ffffff0f}body.theme-dark .user-menu-logout{color:#e06c75}body.theme-dark .user-menu-logout:hover{background:#e06c751a}.theme-toggle-icon{width:16px;height:16px;display:inline-flex}.theme-toggle-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}body.theme-dark .theme-toggle-btn{background:#17212b;color:#e6edf3;border-color:#2b3b4a}.container{max-width:600px;margin:0 auto;padding:56px 20px 20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}h1{text-align:center;color:#333;margin-top:0;margin-bottom:20px}.app-title{display:flex;align-items:center;justify-content:center;gap:12px}.title-logo{width:48px;height:48px;border-radius:50%;object-fit:cover}.error{background:#fee;color:#c00;padding:12px;border-radius:8px;margin-bottom:20px}.user-card{display:flex;align-items:center;gap:16px;padding:10px 12px;background:#f8f9fa;border-radius:12px;margin-bottom:14px}.avatar{width:44px;height:44px;min-width:44px;border-radius:50%;object-fit:cover}.avatar-fallback{width:44px;height:44px;min-width:44px;border-radius:50%;background:linear-gradient(135deg,#4285f4,#3367d6);color:#fff;font-size:.95rem;font-weight:600;display:flex;align-items:center;justify-content:center}.user-info{min-width:0;flex:1}.user-info h2{margin:0 0 2px;font-size:.98rem;word-wrap:break-word;overflow-wrap:break-word}.user-info p{margin:0;color:#666;font-size:.82rem;word-wrap:break-word;overflow-wrap:break-word}.logout-btn-card{margin-left:auto;padding:5px 10px;background:#dc3545;color:#fff;border:none;border-radius:6px;font-size:.75rem;cursor:pointer;transition:background .2s;flex-shrink:0}.logout-btn-card:hover{background:#c82333}.user-card.compact{padding:8px 10px;gap:12px}.user-card.compact .avatar,.user-card.compact .avatar-fallback{width:38px;height:38px;min-width:38px}.user-card.compact .user-info h2{font-size:.9rem}.user-card.compact .user-info p{font-size:.78rem}.user-card.compact .logout-btn-card{padding:4px 8px;font-size:.7rem}.actions{background:#fff;border:1px solid #e0e0e0;border-radius:12px;padding:20px;margin-bottom:24px}.actions h3{margin:0 0 16px;font-size:1rem;color:#333}.post-form{display:flex;gap:8px}.post-form input{flex:1;padding:10px 14px;border:1px solid #ddd;border-radius:8px;font-size:1rem}.post-form input:focus{outline:none;border-color:#4285f4}.post-form button{padding:10px 20px;background:#4285f4;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s}.post-form button:hover{background:#3367d6}.response{margin-top:16px;padding:12px;background:#f5f5f5;border-radius:8px}.response h4{margin:0 0 8px;font-size:.875rem;color:#666}.response pre{margin:0;font-size:.875rem;white-space:pre-wrap;word-break:break-word}.logged-out{text-align:center;padding:64px 20px 48px;max-width:520px;margin:0 auto}.logged-out p{color:#666;margin-bottom:24px}.auth-title{font-size:3rem;margin:0 0 8px;font-weight:700;color:#111}.auth-subtitle{max-width:420px;margin:0 auto 32px;color:#5f6368;line-height:1.5}.auth-hero{width:80px;height:80px;border-radius:24px;object-fit:cover;margin:0 auto 20px;display:block}.auth-home-link{display:inline-flex;margin-bottom:24px;color:#2f66e0;text-decoration:none;font-weight:600;background:transparent;border:none;cursor:pointer}.auth-home-link:hover{text-decoration:underline}.auth-banner{max-width:420px;margin:0 auto 16px;padding:12px 16px;background:#e6ffed;color:#1f7a3a;border:1px solid #b7ebc6;border-radius:8px}.auth-toggle{display:inline-flex;gap:8px;margin:24px 0 28px}.auth-toggle.auth-toggle-bottom{margin:20px auto 0}.auth-toggle button{padding:8px 16px;border-radius:999px;border:1px solid #ddd;background:#f6f6f6;color:#111;-webkit-text-fill-color:#111;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.auth-toggle button.active{background:#1f2933;color:#fff;-webkit-text-fill-color:#fff;border-color:#1f2933}body.theme-dark .auth-toggle button{background:#243241;border-color:#3a4b5a;color:#e6edf3;-webkit-text-fill-color:#e6edf3}body.theme-dark .auth-toggle button.active{background:#4f8cff;border-color:#4f8cff;color:#fff;-webkit-text-fill-color:#ffffff}.auth-form{display:flex;flex-direction:column;gap:12px;max-width:420px;margin:0 auto 16px}.auth-field{display:flex;align-items:center;gap:12px}.auth-field label{min-width:92px;font-size:.95rem;color:#2f2f2f}.auth-field input{flex:1}.auth-link{font-size:.9rem;color:#1f2933;text-align:center;text-decoration:none;margin-top:4px}.auth-link:hover{text-decoration:underline}body.theme-dark .auth-link{color:#c9d8e8}.auth-form input{padding:12px;border:1px solid #ddd;border-radius:8px;font-size:1rem}body.theme-dark .auth-field label{color:#d7e2ee!important}body.theme-dark .auth-email-label{color:#d7e2ee}.auth-form input:focus{outline:none;border-color:#4285f4;box-shadow:0 0 0 3px #4285f433}.login-btn{padding:12px 24px;background:#4285f4;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:background .2s}.login-btn:hover{background:#3367d6}.login-btn.google{background:#4285f4}.login-btn.apple{background:#111}.login-btn.apple:hover{background:#000}.secondary-btn{padding:10px 16px;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;cursor:pointer}.secondary-btn:hover{background:#e5e7eb}.auth-error{color:#b00020;margin:8px 0}.auth-message{color:#2f855a;margin:8px 0;word-break:break-word}.auth-divider{display:flex;align-items:center;gap:12px;color:#9aa0a6;margin:18px 0 14px;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#e3e6ea}.auth-actions{display:flex;flex-direction:column;gap:10px;align-items:center}.auth-provider-btn{width:100%;max-width:320px;padding:12px 16px;border-radius:12px;border:1px solid #ececec;background:#f2f2f2;font-size:.95rem;font-weight:600;color:#111;display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;transition:background .2s,border-color .2s,transform .08s}body.theme-dark .auth-provider-btn{background:#243241;border-color:#3a4b5a;color:#e6edf3}body.theme-dark .auth-provider-btn:hover{background:#2d3f51;border-color:#4a6075}.auth-provider-btn:hover{background:#ebebeb;border-color:#e2e2e2}.auth-provider-btn:active{transform:translateY(1px)}.auth-provider-icon{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;background:#fff;color:#111;border:1px solid #e5e5e5}.auth-provider-icon.apple svg{width:16px;height:16px;fill:#111}.auth-primary-btn{width:100%;max-width:320px;padding:13px 16px;border-radius:12px;border:none;background:#2f66e0;color:#fff;font-size:.98rem;font-weight:600;cursor:pointer;transition:background .2s,transform .08s;margin-bottom:28px}.auth-primary-btn:hover{background:#2558c7}.auth-primary-btn:active{transform:translateY(1px)}.auth-email-label{font-weight:600;color:#1f2933;margin:6px 0 16px;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em}.logout-btn{width:100%;padding:12px;background:#dc3545;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s}.logout-btn:hover{background:#c82333}.top-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.top-nav .user-logout{display:flex;align-items:center;gap:12px}.top-nav .user-name{color:#333;font-size:.9rem}.top-nav .logout-btn-small{padding:8px 16px;background:#dc3545;color:#fff;border:none;border-radius:6px;font-size:.85rem;cursor:pointer;transition:all .2s}.top-nav .logout-btn-small:hover{background:#c82333}.error{position:relative;padding-right:32px}.error-dismiss{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;color:#c00;font-size:1.2rem;cursor:pointer;padding:4px 8px}.nav-tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:1px solid #e0e0e0;padding-bottom:0}.nav-tab{padding:10px 20px;background:none;border:none;border-bottom:2px solid transparent;color:#666;font-size:1rem;cursor:pointer;transition:all .2s}.nav-tab:hover{color:#333;background:#f5f5f5}.nav-tab.active{color:#4285f4;border-bottom-color:#4285f4}.openai-section{display:flex;flex-direction:column;gap:16px}.ai-header{display:flex;align-items:center;gap:12px}.ai-header h3{margin:0}.ai-logo{width:48px;height:48px;border-radius:50%;object-fit:cover}.model-select{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.model-tools-card{border:1px solid #e2e7ec;border-radius:12px;background:#f7f9fb;padding:14px 16px;margin:12px 0 16px}.model-tools-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.model-tools-title{font-weight:700;color:#1f2933}.model-tools-current{font-size:.9rem;color:#6b7280;margin-top:2px}.model-tools-body{margin-top:12px}.model-tools-card .tools-panel{margin-top:8px}.model-select label{font-weight:500;color:#333;flex-shrink:0;width:72px}.model-select select{flex:1;min-width:0;padding:8px 12px;border:1px solid #ddd;border-radius:8px;font-size:1rem;background:#fff;text-align:left;text-align-last:left;direction:ltr}.model-select input{flex:1;min-width:0;padding:8px 12px;border:1px solid #ddd;border-radius:8px;font-size:1rem;background:#fff;color:#1f2933}.model-select input:focus{outline:none;border-color:#4285f4}.model-select select option{text-align:left}.model-select select:focus{outline:none;border-color:#4285f4}.refresh-btn{flex-shrink:0;padding:8px 16px;background:#f5f5f5;border:1px solid #ddd;border-radius:8px;font-size:.875rem;cursor:pointer;transition:all .2s}.refresh-btn:hover:not(:disabled){background:#e8e8e8}.refresh-btn:disabled{opacity:.6;cursor:not-allowed}.loading-text{color:#666;font-style:italic}.tools-panel{border:1px solid #e5e5e5;border-radius:12px;padding:12px 14px;background:#fafafa;display:flex;flex-direction:column;gap:10px}.alfrexa-settings{display:flex;flex-direction:column;gap:8px;margin-top:10px;margin-bottom:10px}.alfrexa-dry-run{display:inline-flex;align-items:center;gap:8px;color:#4b5563;font-weight:500;font-size:.9rem}.tools-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.tools-header h4{margin:0;font-size:1rem;color:#222}.tools-header-actions{display:flex;align-items:center;gap:8px}.toggle-btn{flex-shrink:0;padding:6px 12px;background:#eef2f7;border:1px solid #d6dde8;border-radius:8px;font-size:.85rem;cursor:pointer;transition:all .2s}.toggle-btn:hover:not(:disabled){background:#e2e8f0}.tools-meta{font-size:.875rem;color:#666}.tools-empty{font-size:.9rem;color:#777}.tools-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.tools-item{padding:8px 10px;border-radius:10px;background:#fff;border:1px solid #eee}.tools-name{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600;color:#1f2933;margin-bottom:4px}.tool-route-checkbox{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:.8rem;color:#4b5563;cursor:pointer;font-weight:500}.tool-route-checkbox input[type=checkbox]{width:14px;height:14px;cursor:pointer}.tools-desc{color:#5f6b7a;font-size:.9rem}.tools-schema{margin-top:8px}.tools-schema summary{cursor:pointer;font-size:.875rem;color:#2f4b6a}.tools-schema pre{margin:8px 0 0;padding:8px;background:#f5f7fb;border:1px solid #e3e8f0;border-radius:8px;font-size:.8rem;color:#243447;overflow-x:auto}.tools-used{margin:8px 0 12px;padding:8px 10px;border:1px solid #e6e6e6;border-radius:10px;background:#f8fafc}.tools-used-label{font-size:.85rem;color:#556270;margin-bottom:6px;font-weight:600}.tools-used-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.tools-used-item{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:#1f2933}.tools-used-title{display:flex;align-items:center;gap:8px}.tools-used-name{font-weight:600}.tools-used-id{font-size:.8rem;color:#6b7280;background:#eef2f7;border-radius:999px;padding:2px 8px}.tools-used-output summary{cursor:pointer;font-size:.85rem;color:#2f4b6a}.tools-used-output pre{margin:6px 0 0;padding:8px;background:#f5f7fb;border:1px solid #e3e8f0;border-radius:8px;font-size:.8rem;color:#243447;overflow-x:auto}.prompt-form{display:flex;flex-direction:column;gap:12px}.prompt-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.textarea-wrapper{position:relative}.listen-btn{padding:8px 14px;border-radius:8px;border:1px solid #1f2933;background:#fff;color:#1f2933;font-weight:600;cursor:pointer}.listen-btn.listening{background:#b91c1c;border-color:#b91c1c;color:#fff}.interact-btn{padding:8px 14px;border-radius:8px;border:1px solid #1f2933;background:#fff;color:#1f2933;font-weight:600;cursor:pointer}.interact-btn.interacting{background:#b91c1c;border-color:#b91c1c;color:#fff;animation:listenHeartbeat 1.2s ease-in-out infinite}.speak-stop-btn{padding:8px 14px;border-radius:8px;border:none;background:#1f2933;color:#fff;font-weight:600;cursor:pointer;animation:ttsPulse 1.2s ease-in-out infinite}@keyframes listenHeartbeat{0%{transform:scale(1);box-shadow:0 0 #b91c1c80}20%{transform:scale(1.06);box-shadow:0 0 0 6px #b91c1c40}40%{transform:scale(.98);box-shadow:0 0 #b91c1c00}60%{transform:scale(1.04);box-shadow:0 0 0 8px #b91c1c33}to{transform:scale(1);box-shadow:0 0 #b91c1c00}}.listen-status{font-size:.85rem;color:#6b7280}.heard-log{margin-top:16px;border:1px solid #e2e7ec;border-radius:10px;background:#fff;padding:12px}.heard-log-header{font-weight:600;color:#1f2933;margin-bottom:8px}.heard-log-empty{color:#6b7280;font-size:.9rem}.heard-log-list{list-style:none;margin:0;padding:0;max-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.heard-log-item{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:.9rem;color:#1f2933}.heard-log-text{flex:1}.heard-log-status{color:#6b7280;font-size:.85rem}.heard-log-time{font-size:.75rem;color:#9aa0a6;white-space:nowrap}.prompt-form textarea{width:100%;padding:12px 48px 12px 12px;border:1px solid #ddd;border-radius:8px;font-size:1rem;font-family:inherit;resize:vertical;min-height:100px;box-sizing:border-box}.prompt-history{border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:10px 12px;display:flex;flex-direction:column;gap:10px}.prompt-history-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.prompt-history-title{font-weight:600;color:#1f2933}.prompt-history-clear{border:1px solid #d1d5db;background:#fff;color:#374151;border-radius:8px;padding:4px 10px;font-size:.8rem;cursor:pointer}.prompt-history-clear:hover{background:#f3f4f6}.prompt-history-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;max-height:180px;overflow-y:auto}.prompt-history-item{display:inline-flex;flex:0 0 auto;align-items:center;gap:8px;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #e5e7eb;max-width:320px;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease}.prompt-history-item:hover{background:#f8fbff;border-color:#93c5fd;box-shadow:0 4px 10px #4285f42e;transform:translateY(-1px)}.prompt-history-item.dragging{opacity:.6;cursor:grabbing}.prompt-history-text{font-size:.85rem;color:#1f2933;white-space:normal;overflow-wrap:anywhere}.prompt-history-actions{display:flex;gap:6px}.prompt-history-icon-btn{border:1px solid #d1d5db;background:#f9fafb;color:#374151;border-radius:8px;width:28px;height:28px;font-size:.95rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.prompt-history-icon-btn:hover{background:#eef2f7}.prompt-history-icon-btn.delete{border-color:#fecaca;background:#fff1f2;color:#b91c1c}.prompt-history-icon-btn.delete:hover{background:#ffe4e6}.prompt-form textarea:focus{outline:none;border-color:#4285f4}.mic-btn{position:absolute;right:8px;bottom:8px;width:36px;height:36px;padding:0;background:#f5f5f5;border:1px solid #ddd;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#666;transition:all .2s}.mic-btn:hover{background:#e8e8e8;color:#333}.mic-btn.recording{background:#dc3545;border-color:#dc3545;color:#fff;animation:pulse 1.5s infinite}@keyframes pulse{0%{box-shadow:0 0 #dc354566}70%{box-shadow:0 0 0 10px #dc354500}to{box-shadow:0 0 #dc354500}}.prompt-form>button{align-self:flex-end;padding:10px 24px;background:#10a37f;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s}.prompt-form>button:hover:not(:disabled){background:#0d8a6a}.prompt-form>button:disabled{background:#ccc;cursor:not-allowed}.ai-response{background:#f9f9f9;border:1px solid #e0e0e0;border-radius:8px;padding:16px}.ai-response h4{margin:0 0 12px;font-size:.875rem;color:#666}.ai-response-content{font-size:1rem;line-height:1.6;white-space:pre-wrap;word-break:break-word}.json-response-pre{margin:0;padding:10px;border:1px solid #e3e8f0;border-radius:8px;background:#f5f7fb;color:#243447;font-size:.85rem;white-space:pre-wrap;overflow-x:auto}.token-usage{margin-top:12px;padding-top:12px;border-top:1px solid #e0e0e0;font-size:.75rem;color:#999}.ai-response-history{display:flex;flex-direction:column;gap:12px}.ai-response-history h4{margin:0;color:#333}.ai-response-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.ai-response-empty{color:#777;font-size:.9rem}.ai-response-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;max-height:520px;overflow-y:auto}.ai-response-header{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}.ai-response-title{font-weight:600;color:#1f2933}.ai-response-meta{font-size:.85rem;color:#6b7280}.ai-response-prompt{margin:12px 0}.response-prompt-item{max-width:100%}.landing-page{text-align:center;padding:40px 0}.spotilib-page{min-height:100vh;background:linear-gradient(135deg,#eef2f4,#dfe6ea);padding:32px 20px 24px}.spotilib-header{max-width:1100px;margin:0 auto 18px}.spotilib-layout{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,1.4fr);gap:16px}.spotilib-status-bottom{max-width:1100px;margin:12px auto 0}.spotilib-folders-panel,.spotilib-items-panel{margin-bottom:0}.spotilib-items-panel.drop-target{border-color:#1ed760;box-shadow:0 0 0 2px #1ed7603d}.spotilib-new-folder,.spotilib-add-item{display:flex;gap:8px;margin-bottom:12px}.spotilib-new-folder input,.spotilib-add-item input{flex:1;min-width:0;padding:10px 12px;border:1px solid #d6dde3;border-radius:8px;font-size:.95rem}.spotilib-new-folder button,.spotilib-add-item button{padding:10px 14px;border:none;border-radius:8px;background:#4285f4;color:#fff;cursor:pointer}.spotilib-new-folder button:disabled,.spotilib-add-item button:disabled{opacity:.6;cursor:not-allowed}.spotilib-folder-tree{display:flex;flex-direction:column;gap:8px}.spotilib-folder-card{border:1px solid #d6dde3;border-radius:10px;background:#f7f9fb;padding:8px;position:relative;cursor:pointer}.spotilib-folder-card.selected{border-color:#4285f4;box-shadow:0 0 0 2px #4285f426}.spotilib-folder-card:hover{background:#eef2f6;border-color:#4285f4}.spotilib-folder-card.drop-target{border-color:#1ed760;box-shadow:0 0 0 2px #1ed7603d}.spotilib-drop-line{position:absolute;left:10px;right:10px;height:3px;border-radius:3px;background:#1ed760;pointer-events:none}.spotilib-drop-line.before{top:-2px}.spotilib-drop-line.after{bottom:-2px}.spotilib-folder-main{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;border:none;background:transparent;text-align:left;padding:0;margin:0;cursor:pointer}.spotilib-folder-main:focus,.spotilib-folder-main:focus-visible{outline:none;box-shadow:none}.spotilib-folder-top-row{display:flex;align-items:center;gap:8px}.spotilib-folder-name{display:inline;font-weight:600;color:#1f2933}.spotilib-folder-count{display:inline;font-size:.82rem;color:#6b7280;white-space:nowrap}.spotilib-folder-actions{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}.spotilib-subfolders-preview{margin:8px 0 4px}.spotilib-subfolders-label{display:inline;font-size:.75rem;color:#6b7280;margin-bottom:0;white-space:nowrap}.spotilib-subfolders-chips{display:flex;flex-wrap:wrap;gap:6px}.spotilib-subfolder-chip{border:1px solid #d6dde3;border-radius:999px;background:#fff;color:#334155;font-size:.78rem;padding:2px 10px;cursor:pointer}.spotilib-subfolder-chip:hover{background:#eef2f6}.spotilib-icon-btn{width:34px;height:34px;border:1px solid #d6dde3;border-radius:8px;background:#f7f9fb;color:#334155;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;line-height:1}.spotilib-icon-btn:hover{background:#eef2f6}.spotilib-disclosure-btn{width:30px;height:30px;border-radius:999px;font-size:1rem;padding:0}.spotilib-disclosure-icon{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px}.spotilib-disclosure-glyph{width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor}.spotilib-disclosure-icon.collapsed .spotilib-disclosure-glyph{transform:rotate(-45deg)}.spotilib-disclosure-icon.expanded .spotilib-disclosure-glyph{transform:rotate(45deg)}.spotilib-menu-wrap{position:relative}.spotilib-menu{position:absolute;right:0;top:calc(100% + 4px);min-width:118px;background:#fff;border:1px solid #d6dde3;border-radius:8px;box-shadow:0 10px 24px #0f172a24;padding:4px;z-index:20}.spotilib-menu-item{width:100%;text-align:left;border:none;background:transparent;padding:8px 10px;border-radius:6px;cursor:pointer;color:#1f2933}.spotilib-menu-item:hover{background:#eef2f6}.spotilib-menu-item.danger{color:#c62828}.spotilib-menu-item.danger:hover{background:#ffe7ea}.spotilib-item-list{display:flex;flex-direction:column;gap:10px}.spotilib-items-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.spotilib-items-header h3{margin:0}.spotilib-header-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}.spotilib-breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.spotilib-add-subfolder-btn{border:1px solid #d6dde3;background:#fff;color:#1f2933;border-radius:8px;padding:6px 10px;font-size:.85rem;font-weight:600;cursor:pointer;white-space:nowrap}.spotilib-add-subfolder-btn:hover{background:#eef2f6}.spotilib-breadcrumb-btn{border:none;background:transparent;color:#2563eb;font:inherit;font-weight:600;padding:0;margin:0;cursor:pointer}.spotilib-breadcrumb-btn:hover{text-decoration:underline}.spotilib-breadcrumb-current{font-weight:700;color:#1f2933}.spotilib-breadcrumb-sep{color:#6b7280;margin:0 4px}.spotilib-right-subfolders{margin:0 0 12px;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.spotilib-item-card{display:flex;align-items:center;gap:8px;border:1px solid #d6dde3;border-radius:10px;background:#f7f9fb;padding:7px 8px;position:relative;cursor:pointer;transition:background .2s,border-color .2s}.spotilib-item-card:hover{background:#eef2f6;border-color:#4285f4}.spotilib-item-drop-line{position:absolute;left:10px;right:10px;height:3px;border-radius:3px;background:#1ed760;pointer-events:none}.spotilib-item-drop-line.before{top:-2px}.spotilib-item-drop-line.after{bottom:-2px}.spotilib-item-thumb{width:46px;height:46px;border-radius:8px;object-fit:cover;flex-shrink:0}.spotilib-item-meta{flex:1;min-width:0}.spotilib-item-title{font-weight:600;color:#1f2933;word-break:break-word}.spotilib-item-subtitle{font-size:.82rem;color:#5f6b7a;word-break:break-word}.spotilib-item-actions{display:inline-flex;gap:6px}.spotilib-remove-btn{padding:8px 12px;background:#fff0f2;color:#b4232a;border:1px solid #f6c7cd;border-radius:6px;font-size:.84rem;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}.spotilib-remove-btn:hover{background:#ffe7ea;border-color:#f0b5bd}.spotilib-refresh-btn{width:34px;height:34px;border:1px solid #d6dde3;border-radius:6px;background:#f7f9fb;color:#334155;font-size:1rem;line-height:1;cursor:pointer}.spotilib-refresh-btn:hover{background:#eef2f6}.spotilib-refresh-btn:disabled{opacity:.6;cursor:wait}@media (max-width: 920px){.spotilib-layout{grid-template-columns:1fr}}.landing-hero{width:140px;height:140px;border-radius:32px;object-fit:cover;margin:0 auto 20px;display:block;box-shadow:0 10px 30px #0000001f}.landing-page h1{font-size:2.5rem;margin-bottom:8px}.landing-subtitle{color:#666;margin-bottom:40px;font-size:1.1rem}.admin-link-btn{padding:8px 16px;border-radius:999px;border:1px solid #d6dde3;background:#f7f9fb;color:#2b2b2b;font-weight:600;cursor:pointer;margin-bottom:28px}.admin-link-btn:hover{background:#eef2f6}.app-cards{display:flex;flex-direction:column;gap:20px}.app-card{background:#fff;border:1px solid #e0e0e0;border-radius:16px;padding:24px;cursor:pointer;transition:all .2s;text-align:center}.app-card:hover{border-color:#4285f4;box-shadow:0 4px 12px #4285f426;transform:translateY(-2px)}.app-card-icon{width:80px;height:80px;border-radius:50%;object-fit:cover;margin:0 auto 16px;display:block}.app-card-icon-placeholder{background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.5rem;font-weight:700}.app-card h2{margin:0 0 8px;font-size:1.25rem;color:#333}.app-card p{margin:0;color:#666;font-size:.9rem}.back-btn{background:none;border:none;color:#4285f4;font-size:1rem;cursor:pointer;padding:8px 0;margin-bottom:20px;display:flex;align-items:center;gap:4px}.back-btn:hover{text-decoration:underline}.studio-btn{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;border:1px solid #d6dde3;background:#f7f9fb;color:#2b2b2b;font-size:.95rem;font-weight:600;cursor:pointer;margin-bottom:20px;box-shadow:0 6px 16px #20364314;transition:background .2s,border-color .2s,transform .08s,box-shadow .2s}.studio-btn:hover{background:#eef2f6;border-color:#c7d0d8;box-shadow:0 10px 24px #20364324}.studio-btn:active{transform:translateY(1px)}.studio-btn-icon{width:24px;height:24px;border-radius:8px;object-fit:cover}.studio-actions{display:flex;align-items:center;gap:12px;justify-content:center;align-self:center;margin-bottom:8px;width:100%}.studio-actions .studio-btn,.studio-actions .admin-link-btn{margin-bottom:0;height:40px}.admin-page{max-width:900px;margin:0 auto}.admin-page h1{margin:10px 0 4px}.admin-subtitle{color:#666;margin-bottom:20px}.admin-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;border-radius:12px}.admin-table{display:grid;grid-template-columns:minmax(220px,2fr) minmax(86px,1fr) .9fr .8fr .9fr 56px;gap:0;border:1px solid #e0e0e0;border-radius:12px;overflow:hidden;background:#fff;width:100%;margin:0 auto}.admin-table-header,.admin-table-row{display:contents}.admin-table-header>span,.admin-table-row>span{padding:10px 8px;display:flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-table-header .admin-header-alfred{white-space:normal;line-height:1.2;justify-content:center}.admin-table-header .admin-header-verified{min-width:80px}@media (max-width: 720px){.admin-table{width:max-content;min-width:620px}}.admin-table-header>span{background:#f6f7f9;font-weight:600;color:#333}.admin-table-row>span{border-top:1px solid #eee;color:#333}.admin-toggle{display:inline-flex;align-items:center;gap:6px;font-size:.9rem;color:#444}.admin-toggle input{width:16px;height:16px}.admin-alfred-cell{justify-content:center!important}.admin-delete-cell{justify-content:flex-end!important}.admin-delete-btn{width:28px;height:28px;padding:0;border-radius:6px;border:none;background:#dc3545;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.admin-delete-btn svg{width:16px;height:16px;fill:#fff}.admin-delete-albums{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;color:#6b7280;white-space:nowrap}.admin-delete-albums input{width:14px;height:14px}.dialog-delete-albums{margin:8px 0 4px;font-size:.9rem;color:#374151}.dialog-warning{margin:6px 0 14px;color:#b91c1c;font-size:.9rem}.admin-delete-btn:hover{background:#c82333}.admin-delete-btn:disabled{opacity:.4;cursor:not-allowed;background:#dc3545}.admin-invite-section{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:12px;padding:20px;margin:24px 0}.admin-invite-section h2{margin:0 0 16px;font-size:1.1rem;color:#333}.admin-invite-form{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.admin-invite-input{flex:1;min-width:200px;padding:10px 14px;border:1px solid #ddd;border-radius:8px;font-size:14px}.admin-invite-input:focus{outline:none;border-color:#4285f4}.admin-invite-btn{padding:10px 20px;background:#4285f4;color:#fff;border:none;border-radius:8px;font-size:14px;cursor:pointer}.admin-invite-btn:hover:not(:disabled){background:#3367d6}.admin-invite-btn:disabled{opacity:.6;cursor:not-allowed}.admin-invite-status{width:100%;margin:8px 0 0;font-size:14px;color:#666}.admin-version{margin:10px 0 20px;text-align:center;font-size:.85rem;color:#6b7280}.nav-tab.back-to-landing{color:#4285f4;font-size:1.2rem;padding:10px 12px}.nav-tab.back-to-landing:hover{background:#e8f0fe}.story-album{min-height:100vh;background:linear-gradient(135deg,#eef2f4,#dfe6ea);padding:40px;box-sizing:border-box}.story-album .user-card{max-width:800px;margin:0 auto 20px;background:#fff;border:1px solid #e0e0e0}.story-album .user-info h2{color:#2b2b2b}.story-album .user-info p{color:#6b6b6b}.story-album-header{text-align:center;margin-bottom:40px;display:flex;flex-direction:column;align-items:center;max-width:800px;margin-left:auto;margin-right:auto}.story-album-header h1{margin-bottom:8px;color:#2b2b2b;align-self:center}.story-album-header p{color:#6b6b6b}.current-album-name{max-width:800px;margin:0 auto 20px;text-align:center}.album-name-edit{background:#fff;border:1px solid #d0d7e2;border-radius:8px;padding:12px 20px;font-size:1.25rem;font-weight:500;color:#1f2933;text-align:center;width:100%;max-width:400px;transition:all .2s}.album-name-edit::placeholder{color:#9aa0a6}.album-name-edit:focus{outline:none;border-color:#8ab4f8;box-shadow:0 0 0 3px #4285f433;background:#fff}.story-album-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.story-album .back-btn{color:#2f66e0;align-self:flex-start}.story-album .back-btn:hover{background:transparent;color:#1f55c7}.user-logout{display:flex;align-items:center;gap:12px}.user-name{color:#5f6368;font-size:.9rem}.logout-btn-small{padding:8px 16px;background:#f1f4f7;color:#2b2b2b;border:1px solid #d6dde3;border-radius:6px;font-size:.85rem;cursor:pointer;transition:all .2s}.logout-btn-small:hover{background:#e6ecf1}.story-album-content{max-width:800px;margin:0 auto;background:#fff;border:1px solid #d6dde3;border-radius:12px;padding:40px;box-shadow:0 10px 30px #20364314}.placeholder-message{text-align:center;color:#6b6b6b}.placeholder-message p:first-child{font-size:1.25rem;color:#2b2b2b;margin-bottom:8px}.placeholder-subtitle{font-size:.9rem}.upload-section{margin-bottom:20px;text-align:center;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}.upload-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 24px;background:#4285f4;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:1rem;transition:background .2s;height:48px;box-sizing:border-box}.upload-btn:hover{background:#3367d6}.add-photos-overlay{align-items:center}.add-photos-page{width:min(720px,92vw);background:#fff;border-radius:16px;border:1px solid #dbe3ec;padding:24px;box-shadow:0 16px 50px #0f172a40}.add-photos-dropzone{margin-top:10px;padding:28px 20px;border:2px dashed #9db5d6;border-radius:14px;background:#f7fbff;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;transition:border-color .2s ease,background .2s ease,box-shadow .2s ease}.add-photos-dropzone.drag-over{border-color:#4285f4;background:#eef6ff;box-shadow:inset 0 0 0 1px #4285f433}.add-photos-dropzone p{margin:0;color:#445066;font-weight:600}.add-photos-page .dialog-buttons{margin-top:14px}.share-album-btn{padding:10px 14px;background:#4a90e2;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s;display:inline-flex;align-items:center;gap:8px;height:48px;box-sizing:border-box}@media (max-width: 480px){.upload-section{gap:8px}.upload-btn{padding:10px 14px;font-size:.9rem;height:44px}.upload-section .share-album-btn{padding:10px 12px;font-size:.9rem;height:44px}.share-album-btn .share-icon{width:22px;height:22px}}.share-album-btn:hover:not(:disabled){background:#3b7fcd}.share-album-btn:disabled{opacity:.6;cursor:not-allowed}.share-icon{width:26px;height:26px;border-radius:50%;background:#ffffff40;display:inline-flex;align-items:center;justify-content:center}.share-icon svg{width:18px;height:18px;fill:#fff}.clear-btn{padding:12px 24px;background:#dc3545;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;margin-left:12px}.clear-btn:hover{background:#c82333}.photo-thumbnails{display:flex;gap:8px;overflow-x:auto;padding:12px 0;margin-bottom:16px;-webkit-overflow-scrolling:touch}.thumbnail{position:relative;flex-shrink:0;width:60px;height:60px;border-radius:8px;overflow:hidden;cursor:pointer;border:2px solid transparent;transition:all .2s}.thumbnail.active{border-color:#4285f4;box-shadow:0 0 0 2px #4285f44d}.thumbnail.dragging{opacity:.5;transform:scale(.95)}.thumbnail.drag-over{border-color:#28a745;transform:scale(1.05)}.thumbnail[draggable=true]{cursor:grab}.thumbnail[draggable=true]:active{cursor:grabbing}.thumbnail img{width:100%;height:100%;object-fit:cover}.thumbnail-number{position:absolute;bottom:2px;right:2px;background:#0009;color:#fff;font-size:10px;padding:2px 5px;border-radius:4px}.thumbnail-remove{position:absolute;top:2px;right:2px;width:18px;height:18px;background:#dc3545e6;color:#fff;border:none;border-radius:50%;font-size:12px;line-height:1;cursor:pointer;display:none}.thumbnail:hover .thumbnail-remove{display:block}.nav-arrow{position:absolute;top:8px;transform:none;width:44px;height:44px;background:#00000080;color:#fff;border:none;border-radius:50%;font-size:24px;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;transition:background .2s}.nav-arrow:hover{background:#000000b3}.nav-prev{left:8px}.nav-next{right:8px}.photo-counter{position:absolute;bottom:8px;left:50%;transform:translate(-50%);background:#0009;color:#fff;padding:4px 12px;border-radius:12px;font-size:14px}.canvas-container{position:relative;margin-bottom:20px;display:flex;flex-direction:column;align-items:center;padding-top:56px}.canvas-container canvas{max-width:100%;border-radius:8px;cursor:default;box-shadow:0 2px 8px #0000001a}.canvas-container canvas.recording{cursor:crosshair;box-shadow:0 0 0 3px #dc3545}.recording-indicator{display:flex;align-items:center;gap:8px;margin-top:12px;color:#dc3545;font-size:.9rem}.recording-dot{width:12px;height:12px;background:#dc3545;border-radius:50%;animation:pulse-dot 1.5s infinite}@keyframes pulse-dot{0%,to{opacity:1}50%{opacity:.5}}.recording-controls{text-align:center;margin-bottom:20px}.recording-instructions{color:#6b6b6b;margin-bottom:16px;font-size:.95rem}.recording-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}.record-btn{padding:14px 32px;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s}.record-btn.start{background:#4285f4;color:#fff}.record-btn.start:hover{background:#3367d6}.record-btn.stop{background:#dc3545;color:#fff}.record-btn.stop:hover{background:#c82333}.video-section{text-align:center}.video-section h3{margin:0 0 16px;color:#2b2b2b}.story-video{max-width:100%;border-radius:8px;box-shadow:0 2px 8px #0000001a}.video-controls{display:flex;gap:12px;justify-content:center;margin-top:16px;align-items:center}.auto-save-status{padding:8px 16px;border-radius:6px;font-size:.9rem;font-weight:500}.auto-save-status.saving{color:#856404;background:#fff3cd}.auto-save-status.saved{color:#155724;background:#d4edda}.auto-save-status.error{color:#721c24;background:#f8d7da}.download-btn{padding:12px 24px;background:#28a745;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s}.download-btn:hover:not(:disabled){background:#218838}.download-btn:disabled{opacity:.6;cursor:not-allowed}.download-btn.secondary{background:#6c757d}.download-btn.secondary:hover:not(:disabled){background:#5a6268}.share-btn{padding:12px 24px;background:#28a745;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s}.share-btn:hover:not(:disabled){background:#218838}.share-btn:disabled{opacity:.6;cursor:not-allowed}.new-recording-btn{padding:14px 32px;background:#4285f4;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s}.new-recording-btn:hover{background:#3367d6}.converting-indicator{text-align:center;padding:40px;color:#5f6368}.converting-indicator p{margin-top:16px;font-size:1rem}.spinner{width:40px;height:40px;border:4px solid rgba(47,102,224,.2);border-top-color:#2f66e0;border-radius:50%;margin:0 auto;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-box{background:#fff;border-radius:16px;padding:28px;max-width:400px;width:90%;box-shadow:0 20px 60px #0000004d;animation:dialogSlideIn .2s ease-out}@keyframes dialogSlideIn{0%{opacity:0;transform:scale(.95) translateY(-10px)}to{opacity:1;transform:scale(1) translateY(0)}}.dialog-title{margin:0 0 12px;font-size:1.25rem;color:#333}.dialog-message{margin:0 0 24px;color:#666;line-height:1.5}.checkbox-label{display:flex;align-items:center;gap:8px;margin:12px 0 16px;font-size:14px;color:#555;cursor:pointer}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.dialog-buttons{display:flex;gap:12px;justify-content:flex-end}.dialog-buttons .cancel-btn{padding:10px 20px;background:#f0f0f0;color:#333;border:none;border-radius:8px;font-size:.95rem;cursor:pointer;transition:background .2s}.dialog-buttons .cancel-btn:hover{background:#e0e0e0}.dialog-buttons .confirm-btn{padding:10px 20px;background:#4285f4;color:#fff;border:none;border-radius:8px;font-size:.95rem;cursor:pointer;transition:background .2s}.dialog-buttons .confirm-btn:hover{background:#3367d6}.dialog-buttons .confirm-btn.danger{background:#dc3545}.dialog-buttons .confirm-btn.danger:hover{background:#c82333}.my-albums-btn{margin-top:16px;padding:10px 24px;background:#f1f4f7;color:#2b2b2b;border:1px solid #d6dde3;border-radius:8px;font-size:.95rem;cursor:pointer;transition:all .2s}.my-albums-btn:hover{background:#e6ecf1}.albums-list{max-width:800px;margin:0 auto 24px;background:#fff;border:1px solid #d6dde3;border-radius:12px;padding:24px}.albums-list h3{margin:0 0 16px;color:#2b2b2b;font-size:1.1rem}.albums-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.albums-header h3{margin:0}.hide-albums-btn{padding:6px 12px;background:#f1f4f7;color:#2b2b2b;border:1px solid #d6dde3;border-radius:6px;font-size:.85rem;cursor:pointer;transition:all .2s}.hide-albums-btn:hover{background:#e6ecf1}.no-albums{color:#8a8a8a;text-align:center;padding:20px 0}.albums-grid{display:flex;flex-direction:column;gap:12px}.album-card{display:flex;justify-content:space-between;align-items:center;background:#f7f9fb;border-radius:8px;padding:12px 16px;border:1px solid #e2e7ec;transition:transform .2s,box-shadow .2s,border-color .2s,background .2s}.album-info{display:flex;flex-direction:column;gap:4px}.album-clickable{cursor:pointer}.album-clickable:hover .album-name{text-decoration:underline}.album-clickable:hover{background:#eef2f6;border-color:#c7d0d8;box-shadow:0 6px 16px #2036431f;transform:translateY(-2px)}.album-name{color:#2b2b2b;font-weight:500}.album-date{color:#8a8a8a;font-size:.85rem}.album-actions{display:flex;gap:8px}.album-actions button{padding:8px 16px;border:none;border-radius:6px;font-size:.85rem;cursor:pointer;transition:background .2s}.album-actions .share-album-btn{padding:10px 14px;font-size:1rem;background:#4a90e2;color:#fff;border:none}.album-loading{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 0 8px;color:#5f6368}.album-actions .load-btn{background:#4285f4;color:#fff}.album-actions .load-btn:hover{background:#3367d6}.album-actions button.delete{background:#dc3545;color:#fff}.album-actions button.delete:hover{background:#c82333}.save-album-btn{padding:12px 24px;background:#28a745;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:background .2s}.save-album-btn:hover:not(:disabled){background:#218838}.save-album-btn:disabled{opacity:.6;cursor:not-allowed}.album-name-input{width:100%;padding:12px;border:1px solid #ddd;border-radius:8px;font-size:1rem;margin-bottom:20px;box-sizing:border-box}.album-name-input:focus{outline:none;border-color:#4285f4;box-shadow:0 0 0 3px #4285f433}.album-card.shared{border-left:3px solid #4285f4}.album-actions .secondary-btn{background:#6c757d;color:#fff}.album-actions .secondary-btn:hover{background:#5a6268}.subtitle-help-btn{background:none;border:none;color:#5f6368;font-size:16px;cursor:pointer;transition:all .2s;margin:4px 0 0;padding:4px 8px;border-radius:6px}.subtitle-help-btn:hover{color:#2b2b2b;background:#2f66e014}.subtitle-help-btn .help-icon{margin-left:6px;font-size:18px}.help-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;overflow-y:auto}.help-content{background:linear-gradient(135deg,#f0f4ff,#e8f0fe);border-radius:16px;max-width:700px;width:100%;max-height:90vh;overflow-y:auto;padding:32px;position:relative;color:#333}.help-content h1{margin:0 0 8px;color:#1a1a2e;font-size:28px}.help-subtitle{color:#666;margin:0 0 24px;font-size:16px}.help-close-btn{position:absolute;top:16px;right:16px;background:none;border:none;font-size:28px;color:#999;cursor:pointer;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:all .2s}.help-close-btn:hover{background:#f0f0f0;color:#333}.help-lang-toggle{display:flex;justify-content:center;gap:8px;margin-bottom:20px}.lang-btn{padding:8px 16px;border:2px solid #4a69bd;background:#fff;color:#4a69bd;border-radius:20px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.lang-btn:hover{background:#f0f4ff}.lang-btn.active{background:#4a69bd;color:#fff}.help-section{margin-bottom:24px;padding-bottom:24px;border-bottom:1px solid #eee}.help-section:last-of-type{border-bottom:none;margin-bottom:16px}.help-section h2{color:#4a69bd;font-size:18px;margin:0 0 12px}.help-section p{margin:0 0 12px;line-height:1.6;color:#444}.help-section ul{margin:0;padding-left:20px}.help-section li{margin-bottom:8px;line-height:1.5;color:#555}.help-section li strong{color:#333}.help-tips{background:#f8f9fa;border-radius:12px;padding:20px;border:none}.help-tips h2{color:#28a745}.help-got-it-btn{display:block;width:100%;padding:14px 24px;background:linear-gradient(135deg,#4a69bd,#6a89cc);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.help-got-it-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4a69bd66}@media (max-width: 600px){.help-content{padding:24px 20px;border-radius:12px}.help-content h1{font-size:24px;padding-right:30px}.help-section h2{font-size:16px}}.create-album-section{text-align:center;margin:24px auto;max-width:800px}.create-album-btn{background:#4caf50;color:#fff;font-size:1.1rem;font-weight:600;padding:14px 28px;border:none;border-radius:8px;cursor:pointer;transition:background .2s,transform .1s;box-shadow:0 4px 12px #4caf504d}.create-album-btn:hover{background:#43a047;transform:translateY(-1px);box-shadow:0 6px 16px #4caf5066}.create-album-btn:active{transform:translateY(0)}.back-to-albums-btn{display:inline-flex;align-items:center;gap:4px;padding:6px 12px;background:#f1f4f7;color:#2b2b2b;border:1px solid #d6dde3;border-radius:8px;font-size:.85rem;cursor:pointer;transition:all .2s}.back-to-albums-btn:hover{background:#e6ecf1;border-color:#c7d0d8}.view-only-banner{background:#fff3cd;border:1px solid #ffc107;padding:12px 20px;border-radius:8px;text-align:center;max-width:800px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}.view-only-banner span{color:#856404;font-weight:500}.copy-to-my-albums-btn{padding:8px 16px;background:#4285f4;color:#fff;border:none;border-radius:6px;font-size:.9rem;cursor:pointer;transition:background .2s}.copy-to-my-albums-btn:hover{background:#3367d6}.album-name-card{max-width:800px;margin:0 auto 20px;background:#fff;border:1px solid #d6dde3;border-radius:12px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.album-name-display{font-size:1.25rem;font-weight:600;color:#1f2933}.edit-name-btn{padding:6px 10px;background:transparent;color:#5f6368;border:none;border-radius:6px;font-size:1.1rem;cursor:pointer;transition:all .2s;flex-shrink:0}.edit-name-btn:hover{background:#f1f4f7}.add-video-btn{padding:14px 32px;background:#4285f4;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s}.add-video-btn:hover:not(:disabled){background:#3367d6}.add-video-btn:disabled{opacity:.6;cursor:not-allowed}.dialog-hint{font-size:.9rem;color:#6b7280;margin:0 0 16px;font-style:italic}.dialog-buttons .confirm-btn.secondary{background:#6c757d}.dialog-buttons .confirm-btn.secondary:hover{background:#5a6268}.bottom-user-card{max-width:800px;margin:32px auto 0}.story-album .bottom-user-card{margin:32px auto 0}.suggestions-link{text-align:center;margin:24px auto;padding:12px}.suggestions-link a{color:#5f6368;text-decoration:none;font-size:.9rem}.suggestions-link a:hover{color:#4285f4;text-decoration:underline}.story-album-header.editor-header{margin-bottom:24px}.editor-title-row{display:flex;flex-direction:column;align-items:center;gap:8px}.editor-title-row .back-to-albums-btn,.editor-title-row .app-title{margin:0}@media (max-width: 600px){.story-album-header{flex-direction:column;gap:12px}.back-to-albums-btn{margin-left:0;margin-top:8px}.view-only-banner{flex-direction:column;gap:12px}.create-album-btn{width:100%;max-width:300px}.album-name-card{flex-direction:row;gap:8px;padding:12px 16px}.video-controls{flex-wrap:wrap}.editor-title-row{gap:6px}.editor-title-row .app-title{font-size:1.1rem}}.setup-password-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.setup-password-card{background:#fff;padding:40px;border-radius:16px;box-shadow:0 10px 40px #0003;max-width:420px;width:100%}.setup-password-card h1{margin:0 0 8px;color:#333;font-size:1.8rem}.setup-subtitle{color:#666;margin:0 0 24px}.setup-password-form{display:flex;flex-direction:column;gap:16px}.setup-password-form .form-group{display:flex;flex-direction:column;gap:6px}.setup-password-form label{font-weight:500;color:#444;font-size:14px}.setup-password-form .form-input{padding:12px 14px;border:1px solid #ddd;border-radius:8px;font-size:16px}.setup-password-form .form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.setup-password-form .form-input:disabled{background:#f5f5f5;color:#666}.setup-submit-btn{padding:14px 20px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;margin-top:8px}.setup-submit-btn:hover:not(:disabled){opacity:.9}.setup-submit-btn:disabled{opacity:.6;cursor:not-allowed}.forgot-password-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0f766e,#0891b2);padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.forgot-password-card{background:#fff;padding:40px;border-radius:16px;box-shadow:0 10px 40px #0003;max-width:420px;width:100%;text-align:left}.forgot-password-card h1{margin:0 0 8px;color:#1f2933;font-size:1.8rem}.forgot-subtitle{color:#4b5563;margin:0 0 24px}.forgot-password-form{display:flex;flex-direction:column;gap:16px}.forgot-password-form .form-group{display:flex;flex-direction:column;gap:6px}.forgot-password-form label{font-weight:500;color:#334155;font-size:14px}.forgot-password-form .form-input{padding:12px 14px;border:1px solid #ddd;border-radius:8px;font-size:16px}.forgot-password-form .form-input:focus{outline:none;border-color:#0f766e;box-shadow:0 0 0 3px #0f766e26}.forgot-password-card .secondary-btn{margin-top:12px}.tts-controls{margin-top:12px;padding:12px;border-radius:10px;background:#f6f7f9;border:1px solid #e2e7ec;display:flex;flex-direction:column;gap:10px}.tts-controls-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.tts-btn{padding:8px 14px;border:none;border-radius:8px;background:#1f2933;color:#fff;cursor:pointer;font-weight:600}.tts-btn-speaking{animation:ttsPulse 1.2s ease-in-out infinite}.tts-settings-btn{padding:8px 12px;border:1px solid #d4d8dd;border-radius:8px;background:#fff;color:#1f2933;cursor:pointer;font-weight:600}.tts-voice-preview-btn{padding:6px 10px;border:1px solid #d4d8dd;border-radius:8px;background:#fff;color:#1f2933;cursor:pointer;font-weight:600}.tts-voice-preview-btn:disabled{opacity:.5;cursor:not-allowed}.tts-btn:disabled{opacity:.5;cursor:not-allowed}.tts-field{display:inline-flex;align-items:center;gap:8px;font-size:.9rem;color:#1f2933}.tts-field label{font-weight:600}.tts-field select,.tts-field input[type=range]{border:1px solid #d4d8dd;border-radius:6px;padding:4px 8px;background:#fff}.tts-value{min-width:32px;text-align:right;font-variant-numeric:tabular-nums;color:#4b5563}@media (max-width: 680px){.tts-controls{padding:10px}.tts-controls-row{flex-direction:column;align-items:flex-start}}@keyframes ttsPulse{0%{transform:scale(1);box-shadow:0 0 #1f293347}50%{transform:scale(1.03);box-shadow:0 0 0 5px #1f29331f}to{transform:scale(1);box-shadow:0 0 #1f293300}}
