/* Natural-language quick entry */
.quick-entry-panel{margin:0 0 1.1rem;padding:clamp(1rem,2.4vw,1.4rem);border:1px solid var(--border,rgba(255,255,255,.12));border-radius:var(--radius-lg,18px);background:linear-gradient(135deg,rgba(116,95,255,.075),transparent 60%),var(--panel,rgba(20,20,24,.82));}
.quick-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.quick-entry-heading .panel-title{margin:.15rem 0 .4rem}
.quick-entry-help{margin:0;color:var(--muted,#a4a4ad);font-size:.88rem;line-height:1.5;max-width:65ch}
.quick-entry-badge{display:grid;place-items:center;flex:0 0 2.5rem;width:2.5rem;height:2.5rem;border-radius:12px;color:var(--accent,#a99cff);background:rgba(135,112,255,.13);font-size:1.2rem}
.quick-entry-form textarea{display:block;width:100%;min-height:70px;resize:vertical;padding:.85rem 1rem;border:1px solid var(--border,rgba(255,255,255,.14));border-radius:12px;background:var(--input-bg,rgba(0,0,0,.12));color:var(--text,inherit);font:inherit;line-height:1.5;transition:border-color .18s ease,box-shadow .18s ease}
.quick-entry-form textarea:focus{outline:none;border-color:var(--accent,#9b8cff);box-shadow:0 0 0 3px rgba(135,112,255,.15)}
.quick-entry-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.8rem}
.quick-entry-status{margin:0;color:var(--muted,#a4a4ad);font-size:.8rem;line-height:1.45}
.quick-entry-status.is-error{color:#ff8c8c}.quick-entry-status.is-warning{color:#e8c47a}
@media(max-width:600px){.quick-entry-actions{align-items:stretch;flex-direction:column}.quick-entry-actions .btn{width:100%}.quick-entry-status{order:2}.quick-entry-actions .btn{order:1}}
@media(prefers-reduced-motion:reduce){.quick-entry-form textarea{transition:none}}

.quick-entry-buttons{display:flex;gap:.55rem;flex-wrap:wrap}.quick-entry-buttons .btn{white-space:nowrap}
@media(max-width:600px){.quick-entry-buttons{display:grid;grid-template-columns:1fr}.quick-entry-buttons .btn{width:100%}}

/* Clear, animated microphone-active state */
.quick-entry-panel.is-listening{position:relative;border-color:rgba(255,74,105,.95);box-shadow:0 0 0 2px rgba(255,74,105,.2),0 0 22px rgba(255,74,105,.22);animation:voice-panel-pulse 1.35s ease-in-out infinite}
.quick-entry-panel.is-listening::after{content:"MICROFONE ATIVO · OUVINDO";position:absolute;top:.65rem;right:.8rem;padding:.28rem .55rem;border-radius:999px;background:rgba(220,38,72,.16);border:1px solid rgba(255,90,120,.6);color:#ff8298;font-size:.66rem;font-weight:800;letter-spacing:.08em;pointer-events:none}
#quickEntryVoice.is-listening{background:rgba(220,38,72,.18);border-color:#ff4d70;color:#ff8298;box-shadow:0 0 0 3px rgba(255,77,112,.14);animation:voice-button-pulse 1s ease-in-out infinite}
@keyframes voice-panel-pulse{0%,100%{box-shadow:0 0 0 1px rgba(255,74,105,.16),0 0 10px rgba(255,74,105,.12)}50%{box-shadow:0 0 0 3px rgba(255,74,105,.25),0 0 26px rgba(255,74,105,.28)}}
@keyframes voice-button-pulse{0%,100%{opacity:1}50%{opacity:.72}}
@media(max-width:600px){.quick-entry-panel.is-listening::after{position:static;display:inline-block;margin:0 0 .65rem}}
@media(prefers-reduced-motion:reduce){.quick-entry-panel.is-listening,#quickEntryVoice.is-listening{animation:none}}
