/* Presentation only. No audio transport or musical scheduling rules. */
html{overscroll-behavior-x:none}
.chat-composer-footer {display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px}
.chat-composer-footer #prompt-status {grid-column:1/-1}
.chat-composer-footer .produce-button {min-width:0}
.voice-button {display:grid;place-items:center;width:46px;height:46px;padding:10px;border:0;border-radius:50%;background:var(--portrait-button);color:var(--portrait-button-text);cursor:pointer}
.voice-button svg {width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
#portrait-record[data-speech-state="recording"] {background:var(--speech-recording,#b63b62);box-shadow:0 0 0 4px var(--speech-halo,#b63b6226)}
#portrait-record[data-speech-state="transcribing"] {background:var(--mood-sad);opacity:.7}
#speech-status {font-size:12px;color:var(--portrait-muted);line-height:1.6;margin:5px 0 8px;overflow-wrap:anywhere}
#speech-status[hidden],#speech-status button[hidden] {display:none}
#speech-status button {font:inherit;color:inherit;border:0;background:none;text-decoration:underline;margin-left:8px;padding:5px;cursor:pointer}
#voice-dialog {max-width:340px;width:calc(100vw - 40px);border:1px solid var(--portrait-border);border-radius:20px;padding:24px;background:var(--portrait-surface);color:var(--portrait-text)}
#voice-dialog::backdrop {background:var(--portrait-scrim)}
#voice-dialog p {line-height:1.6} #voice-dialog button {padding:12px 24px;min-height:44px;border-radius:24px;border:0;background:var(--portrait-button);color:var(--portrait-button-text)}
.working-balls {display:inline-flex;position:relative;width:92px;height:24px;align-items:center;overflow:hidden;color:var(--mood-sad)}
.working-balls i {display:block;position:absolute;left:3px;width:7px;height:7px;border-radius:50%;background:currentColor;animation:working-travel 1.6s ease-in-out infinite}
.working-balls i:nth-child(2){animation-delay:.12s}.working-balls i:nth-child(3){animation-delay:.24s}.working-balls i:nth-child(4){animation-delay:.36s}
@keyframes working-travel {0%{transform:translateX(0);opacity:0}15%{opacity:1}75%{opacity:1}100%{transform:translateX(80px);opacity:0}}
.page-note-overlay {position:fixed;inset:0;z-index:100;background:var(--portrait-scrim);display:grid;place-items:center;pointer-events:auto}
.page-note-overlay[hidden]{display:none}.page-note-overlay svg{width:55px;height:55px;fill:var(--mood-sad);animation:note-turn .75s linear infinite}
@keyframes note-turn {to{transform:rotate(360deg)}}
#account-home {max-width:420px;margin:0 auto;padding:40px 24px 28px;color:var(--portrait-text)}
.home-page {padding:0;min-height:100dvh;background:var(--portrait-surface)}
.account-brand {font:600 22px system-ui;margin:0 0 28px} #home-title {font:400 35px/1.15 Georgia,serif;margin:0 0 26px}
.account-form {display:grid;gap:16px}.account-form label {display:grid;gap:6px;font:14px system-ui}.account-form label[hidden]{display:none}
.account-form input,.account-form select {width:100%;height:46px;border:1px solid var(--portrait-border);border-radius:10px;padding:10px;font:16px system-ui;background:var(--portrait-surface);color:var(--portrait-text)}
.account-form button {height:46px;border:0;border-radius:24px;background:var(--portrait-button);color:var(--portrait-button-text);font:15px system-ui}
.account-actions {display:flex;justify-content:space-between;margin-top:16px}.account-actions button {min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--portrait-muted);font:14px system-ui}
#login-status {font:13px/1.6 system-ui;color:var(--danger);margin:0}
.account-social {margin-top:18px}.account-social[hidden]{display:none}
.account-social-divider {display:flex;align-items:center;gap:16px;margin:0 0 20px;font:12px system-ui;color:var(--portrait-muted);text-align:center}
.account-social-divider::before,.account-social-divider::after{content:'';height:1px;flex:1;background:var(--portrait-border)}
.account-social-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.account-social-buttons button,.google-auth-slot{display:grid;place-items:center;min-width:0;width:100%;height:46px;border:0;border-radius:999px;background:var(--auth-provider-surface);color:var(--auth-provider-icon)}
.account-social-buttons button{cursor:pointer}.google-auth-slot>div{display:grid;place-items:center;max-width:100%;max-height:44px;overflow:hidden}
.account-social-buttons button:hover{background:var(--auth-provider-hover)}.account-social-buttons button:disabled{opacity:.55;cursor:wait}
.account-social-buttons button:focus-visible{outline:2px solid var(--mood-sad);outline-offset:3px}
.account-social-buttons svg{width:24px;height:24px;display:block;pointer-events:none}
.library-page {height:100dvh;overflow-y:auto;background:var(--surface);color:var(--text);padding:24px;touch-action:pan-y}
body.chat-open,body.library-open{overscroll-behavior-x:none}
body.chat-open .produce-page,body.chat-open .chat-shell,body.chat-open .chat-conversation{touch-action:pan-y;overscroll-behavior-x:none}
.release-music-cover{aspect-ratio:1;display:grid;place-items:center;background:var(--surface-message,#f3f1ee);border-radius:8px;color:var(--accent,#8056cc);border:1px solid var(--border,#e2ded8)}
.release-music-cover svg{width:38%;height:38%;fill:currentColor}
.library-page:not(.is-active){display:none}.library-page h1{font:650 23px system-ui;margin:18px 0 6px}.library-page>p{font:12px/1.5 system-ui;color:var(--text-muted)}
#library-back {border:0;background:transparent;color:var(--accent);min-height:44px;font:15px system-ui;padding:0 8px}
.release-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px;margin:24px 0}.release{min-width:0;margin:0}.release img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:7px;background:var(--surface-raised)}
.release h2 {font:500 14px/1.35 system-ui;margin:9px 0 3px;overflow-wrap:anywhere}.release p{font:12px system-ui;color:var(--text-muted);margin:0}
body.library-open {margin:0;overflow:hidden}.library-open .app-main{display:none}
@media(min-width:800px){.release-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:960px}}
@media(prefers-reduced-motion:reduce){.working-balls i{animation:none;position:static;margin:3px;opacity:1}.page-note-overlay svg{animation:none}}
