.voice-search-button { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--accent); cursor: pointer; }
.voice-search-button svg { width: 22px; height: 22px; }
.voice-search-button:hover { background: var(--accent-soft); }
.search-box:has(.voice-search-button:not([hidden])) { gap: 6px; }
.search-box:has(.voice-search-button:not([hidden])) > svg { display: none; }
.search-empty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.search-empty > p { grid-column: 1 / -1; }
.search-empty > button { width: 100%; margin: 0; }
.voice-search-dialog { width: min(480px, calc(100% - 40px)); padding: 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); color: var(--text); }
.voice-search-dialog::backdrop { background: #10172199; backdrop-filter: blur(4px); }
.voice-search-dialog h2 { font-size: 22px; font-weight: 550; line-height: 1.4; }
.voice-example { margin-top: 12px; color: var(--muted); font-size: 15px; }
.voice-status { margin-top: 24px; padding: 18px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 16px; line-height: 1.5; }
.voice-search-dialog.is-listening .voice-status { border-left: 4px solid var(--accent); }
.voice-transcript { margin-top: 16px; font-size: 16px; overflow-wrap: anywhere; }
.voice-transcript:empty { display: none; }
.voice-note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.voice-actions, .move-notice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.voice-actions button, .move-notice-actions button { width: 100%; margin: 0; min-height: 48px; }
.voice-actions:has(button[hidden]), .move-notice-actions:has(button[hidden]) { grid-template-columns: minmax(0, 1fr); }
.move-notice { padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-strong); color: var(--text); font-size: 15px; line-height: 1.5; }
.move-notice p { overflow-wrap: anywhere; }
.move-notice-actions { margin-top: 14px; }
.org-footer .move-notice { margin-top: 24px; }
#move-feedback { position: fixed; z-index: 25; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(600px, calc(100% - 40px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: 0 8px 30px #0003; border-radius: 14px; }
body:has(#move-feedback:not([hidden])) .app-shell { padding-bottom: 200px; }
@media (max-width: 580px) { .search-empty { grid-template-columns: minmax(0, 1fr); } }
@media print { #move-feedback, .voice-search-dialog, .move-notice { display: none !important; } }

.more-results-button { width: 100%; margin-top: 12px; }

/* Form fields need a boundary with at least 3:1 contrast (WCAG 1.4.11).
   Card and divider borders keep the softer --border colour. */
:root { --control-border: #848e9c; }
.search-box, .auth-field input, .editor-input, .compact-field select, .model-field select,
.location-level select, .location-level input, .org-input, .admin-password-form input { border-color: var(--control-border); }

/* The search box shows focus with its own border and ring; a second outline
   around the inner input looked like a stray rectangle. */
.search-box input:focus-visible { outline: none; }

/* Header: the logo keeps its place on every screen; "Zurück" follows it
   instead of pushing it to the right. */
.topbar:has(.back-button:not([hidden])) .wordmark { margin-left: 0; }
.topbar .back-button { margin: 0 auto 0 20px; }

/* Location dialog: keep the close button clear of the location card. */
.org-location-dialog .org-header { margin-bottom: 16px; }
