/* RAW: shared search geometry and focused local AI workspace. */
.comet-search .search-core { flex: 1; min-width: 0; }
.search-submit, .uec-ai-composer button[type="submit"] { padding: 0 !important; line-height: 1 !important; }
.search-submit svg, .uec-ai-composer button[type="submit"] svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin: 0; }
#panel-uec-ai .uec-ai-workspace { height: calc(100dvh - 138px); min-height: 420px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-2); box-shadow: 0 16px 48px #00000018; }
.uec-ai-chat { min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
.uec-ai-history { min-height: 0; gap: 12px; padding: 16px; }
#uecAiChatList { overflow: auto; display: grid; align-content: start; gap: 5px; }
.uec-ai-chat > header { gap: 16px; padding: 18px 24px; }
.uec-ai-chat > header > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.uec-ai-chat > header button { padding: 8px 10px; border-radius: 8px; font: inherit; font-size: 12px; cursor: pointer; }
.uec-ai-chat > header button:hover { background: var(--surface-4); color: var(--text); }
.uec-ai-messages { min-height: 0; scrollbar-width: thin; padding: 28px max(24px, calc((100% - 760px)/2)); }
.uec-ai-message { font-size: 15px; overflow-wrap: anywhere; }
.uec-ai-message.assistant { max-width: 100%; }
.uec-ai-empty h2 { color: var(--text); font-size: clamp(22px, 3vw, 30px); letter-spacing: -.04em; }
.uec-ai-empty p { max-width: 380px; line-height: 1.6; }
.uec-ai-composer { box-sizing: border-box; padding: 12px; margin-bottom: 18px; box-shadow: 0 6px 24px #00000012; }
.uec-ai-composer:focus-within { border-color: var(--accent-line); }
.uec-ai-composer textarea { min-width: 0; min-height: 42px; max-height: 160px; font-size: 15px; line-height: 1.5; }
.uec-ai-composer small { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.uec-ai-composer button:disabled { opacity: .45; cursor: wait; }
@media (max-width: 720px) {
  #panel-uec-ai .uec-ai-workspace { grid-template-columns: 1fr; height: calc(100dvh - 154px); min-height: 360px; border-radius: 16px; }
  .uec-ai-history { display: none; }
  .uec-ai-chat > header { padding: 12px; gap: 8px; }
  .uec-ai-chat > header button { padding: 7px; font-size: 11px; }
  .uec-ai-messages { padding: 18px 16px; }
  .uec-ai-composer { width: calc(100% - 20px); margin-bottom: 10px; }
}
