/* Compact desktop utility; this is not the phone layout of the workspace. */
.quick-ask-mode #app > #sidebar, .quick-ask-mode #app > #main { display: none; }
.quick-ask-mode #app { display: block; overflow: hidden; }
.quick-ask-mode #app.hidden { display: none; }
.quick-ask { width: 100%; height: 100vh; padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.quick-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quick-header h1 { font-size: var(--font-section); font-weight: 500; letter-spacing: -.025em; margin: 0; }
.quick-header button { flex-shrink: 0; }
.quick-targets { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr); gap: 12px; }
.quick-field { display: flex; flex-direction: column; min-width: 0; gap: 4px; font-size: var(--font-meta); color: var(--text-dim); }
.quick-field select { width: 100%; min-width: 0; min-height: 36px; padding: 6px 8px; background: var(--bg-raised); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-control); font: inherit; font-size: var(--font-control); }
.quick-context, .quick-status, .quick-hint { margin: 0; font-size: var(--font-meta); color: var(--text-dim); line-height: 1.4; overflow-wrap: anywhere; }
.quick-context { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-status { color: var(--text); }
.quick-status[data-state="ready"] { color: var(--green); }
.quick-composer { min-width: 0; min-height: 0; overflow-y: auto; flex: 1; }
.quick-composer .composer { margin: 0; }
/* Autosize and image selection must take effect in the same layout. The shared
   reduced-motion duration reset must not create implicit min-height transitions. */
.quick-composer #input { font-size: var(--font-body); min-height: 64px; max-height: 120px; transition-property: none; }
.quick-composer .composer-bar { flex-wrap: wrap; align-items: end; gap: 8px; }
.quick-composer .composer-controls { flex: 1; flex-wrap: wrap; min-width: 0; gap: 4px; }
.quick-unbound .composer-bar { justify-content: flex-end; }
.quick-unbound .composer-controls, .quick-unbound #model-notice, .quick-unbound #permission-help { display: none; }
.quick-composer .select-wrap { min-width: 0; max-width: 100%; }
.quick-composer select { max-width: 190px; }
.quick-composer .ew-explain, .quick-composer .ew-error { margin: 8px 0 0; }
.quick-ask-mode #toasts { max-width: calc(100vw - 32px); }
.quick-ask-mode .gate-card, .quick-ask-mode .login-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.quick-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quick-gate-action { position: fixed; top: 12px; right: 16px; z-index: 5; }
body:has(#app:not(.hidden)) .quick-gate-action { display: none; }
