/* Keep content inside its column, even when action labels are longer. */
.workspace main,.ai-library,.ai-recording,.ai-recording-actions{min-width:0}
.ai-library{grid-template-columns:minmax(0,1fr);padding-inline:4px}
.ai-recording{width:100%;max-width:100%;box-sizing:border-box}
.ai-recording-actions{max-width:100%;flex-wrap:wrap}
.ai-recording-actions button{min-width:0;overflow-wrap:anywhere}
.app-field-error{font-size:13px;line-height:1.5;color:var(--text);background:color-mix(in srgb,#d66a83 14%,var(--surface));border:1px solid #cf8495;border-radius:12px;padding:11px 13px;margin:8px 0 14px;overflow-wrap:anywhere}
html[data-theme] [aria-invalid=true]{border-color:#cf8495!important}
/* Pointer feedback is rounded; keyboard navigation retains a visible focus cue. */
.reminder-days label{-webkit-tap-highlight-color:transparent;border-radius:12px}
.reminder-days input{appearance:none;-webkit-appearance:none;border:0!important;outline:0!important;box-shadow:none!important;clip-path:inset(50%)}
.reminder-days input+span{border-radius:12px}
html.pointer-input .reminder-days input:focus-visible+span{outline:none;box-shadow:none}
html:not(.pointer-input) .reminder-days input:focus-visible+span{outline:2px solid var(--lavender);outline-offset:3px;border-radius:12px}
@media(max-width:640px){
 .ai-recording{padding:18px;gap:14px}
 .ai-recording-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px}
 .ai-recording-actions button{width:100%;min-height:44px;padding:10px 12px;border-radius:14px}
}
@media(max-width:1000px){
 body:not(.auth-open) :is(.theme-toggle,.palette-toggle){right:20px;width:44px;height:44px;padding:0;justify-content:center}
 body:not(.auth-open) :is(.theme-toggle,.palette-toggle) span{display:none}
 body:not(.auth-open):not(.has-audio) .theme-toggle{bottom:151px}
 body:not(.auth-open):not(.has-audio) .palette-toggle{bottom:203px}
 body.ambient-idle #mobileMixer{left:15px;right:15px;bottom:85px;width:auto;height:auto;padding:13px 16px;border-radius:13px;display:flex;align-items:center;gap:10px}
 body.has-audio.ambient-idle:not(.auth-open) .theme-toggle{bottom:calc(var(--audio-dock-offset,280px) + 14px)}
 body.has-audio.ambient-idle:not(.auth-open) .palette-toggle{bottom:calc(var(--audio-dock-offset,280px) + 66px)}
 body:has(#mixerDialog[open]) #mobileMixer{visibility:hidden}
}
