.assistant-modes { display: flex; gap: 8px; }
.assistant-modes button { flex: 1; border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px; background: #fff; color: #334155; cursor: pointer; font: inherit; font-weight: 800; }
.assistant-modes button[aria-pressed="true"] { background: #e8f1ff; color: #1d4ed8; border-color: #93b8f8; }
.ai-modal [hidden] { display: none !important; }
#assistant-search-form { display: flex; flex-direction: column; gap: 10px; }
.assistant-label { font-size: 14px; font-weight: 800; color: #0f172a; }
.assistant-query-wrap { position: relative; }
#assistant-query { width: 100%; box-sizing: border-box; resize: vertical; min-height: 96px; max-height: 180px; border: 1px solid #b7c8db; border-radius: 14px; padding: 12px 54px 42px 12px; background: #fff; color: #0f172a; font: inherit; font-size: 16px; line-height: 1.6; }
.assistant-query-actions { position: absolute; right: 9px; bottom: 9px; display: flex; gap: 7px; }
.assistant-query-action { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid #cbd5e1; border-radius: 50%; background: rgba(255,255,255,.96); color: #334155; cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.assistant-query-action:hover { color: #145f48; border-color: #7bbda7; background: #f0faf6; }
.assistant-query-action:disabled { opacity: .38; cursor: default; color: #64748b; border-color: #cbd5e1; background: #f8fafc; }
.assistant-query-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.assistant-query-action.is-listening { color: #fff; background: #c43d3d; border-color: #a82f2f; animation: assistant-mic-pulse 1.3s ease-in-out infinite; }
.assistant-query-action.is-listening svg rect { fill: currentColor; fill-opacity: .18; }
.assistant-voice-help { margin-top: -4px; }
@keyframes assistant-mic-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(196,61,61,.3); } 50% { box-shadow: 0 0 0 7px rgba(196,61,61,0); } }
.assistant-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.assistant-examples button { background: #f8fafc; border: 1px solid #dbe4ee; color: #475569; border-radius: 20px; padding: 7px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.assistant-location-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #334155; font-size: 13px; align-items: center; }
.assistant-location-row label { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
.assistant-location-row select { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: 5px; font: inherit; }
.assistant-hint { font-size: 12px; color: #526176; line-height: 1.65; margin: 2px 0; word-break: keep-all; overflow-wrap: anywhere; }
#assistant-submit { width: 100%; min-height: 46px; margin-top: 0; }
#assistant-submit:disabled { opacity: .7; cursor: progress; }
#assistant-status { margin: 12px 0; }
.assistant-method { display: inline-flex; border-radius: 8px; padding: 4px 7px; font-size: 11px; background: #e8f5f1; color: #16634f; white-space: nowrap; }
.assistant-method.keyword { background: #fff4de; color: #865406; }
.assistant-evidence { margin-top: 4px; border-top: 1px solid #e2e8f0; padding-top: 10px; font-size: 12px; color: #334155; }
.assistant-evidence summary { cursor: pointer; font-weight: 800; padding: 4px 0; }
.assistant-evidence dl { margin: 10px 0; }
.assistant-evidence dt { font-weight: 800; margin-top: 10px; }
.assistant-evidence dd { margin: 3px 0 0; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
.assistant-evidence a { color: #1d4ed8; text-underline-offset: 3px; }
.assistant-warning { padding: 10px; border: 1px solid #f0d69d; background: #fff9ed; border-radius: 12px; font-size: 12px; line-height: 1.6; color: #714c14; }
.assistant-map-note { width: min(270px, 65vw); padding: 14px; font-size: 13px; line-height: 1.5; color: #334155; overflow-wrap: anywhere; }
.assistant-map-note p { margin: 8px 0 0; }
#assistant-search-section :focus-visible, .assistant-modes :focus-visible { outline: 3px solid #84b4ff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .assistant-query-action.is-listening { animation: none; } }
@media (max-width: 560px) { .ai-profile-card { grid-template-columns: 1fr; } .ai-status-select { width: 100%; min-width: 0; } .assistant-modes button { font-size: 13px; } #assistant-query { min-height: 110px; } }
