/* Ask the workspace (assets/js/ext/ask.js): the Search | Ask AI tabs, the question box, answers and sources */
.ask-tabs { display: flex; align-items: center; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--border); }
.ask-tablist { display: flex; gap: 2px; }
.ask-tab { border: 0; background: none; color: var(--fg-muted); padding: 6px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; font-size: 13.5px; }
.ask-tab:hover { color: var(--fg); }
.ask-tab.on { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }
.ask-tabs-hint { margin-left: auto; padding-right: 6px; }
.ask-pane { display: flex; flex-direction: column; max-height: 70vh; }
.ask-pane[hidden] { display: none; }
.ask-row { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 10px 18px; border-bottom: 1px solid var(--border); }
.ask-input { flex: 1; border: 0; outline: none; resize: none; font: inherit; font-size: 16px; background: none; color: var(--fg); padding: 4px 0; min-height: 2.6em; }
.ask-scope { border-bottom: 0; }
.ask-answer { overflow-y: auto; padding: 0 18px; }
.ask-answer:not(:empty) { padding: 4px 18px 12px; border-bottom: 1px solid var(--border); }
.ask-question { font-weight: 600; margin: 8px 0 6px; }
.ask-status { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.ask-live { white-space: pre-wrap; line-height: 1.55; }
.ask-blocks .editor { padding: 0; }
.ask-notfound { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 4px; background: var(--bg-yellow); margin-bottom: 4px; }
.ask-cite { display: inline-block; min-width: 1.4em; padding: 0 4px; margin: 0 1px; border-radius: 4px; background: var(--bg-blue); color: var(--fg); font-size: 11px; line-height: 1.5; text-align: center; text-decoration: none; vertical-align: super; }
.ask-cite:hover, .ask-cite:focus-visible { background: var(--accent); color: #fff; }
.ask-sources ol { list-style: none; margin: 0; padding: 0; }
.ask-source { display: flex; align-items: flex-start; gap: 8px; padding: 5px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.ask-source:hover, .ask-source:focus-visible { background: var(--bg-hover); }
.ask-source-n { flex: none; min-width: 1.6em; font-size: 11px; text-align: center; border-radius: 4px; background: var(--bg-blue); margin-top: 2px; }
.ask-source .si-icon { flex: none; width: 20px; text-align: center; }
.ask-source-text { min-width: 0; }
.ask-source-text .snippet { display: block; color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-history { overflow-y: auto; padding: 4px 8px 8px; }
.ask-history-head { display: flex; align-items: center; justify-content: space-between; padding-right: 8px; }
.ask-history-item { display: flex; align-items: center; border-radius: 6px; }
.ask-history-item:hover { background: var(--bg-hover); }
.ask-history-q { flex: 1; display: flex; justify-content: space-between; gap: 10px; min-width: 0; border: 0; background: none; color: inherit; text-align: left; padding: 6px 10px; cursor: pointer; font: inherit; }
.ask-history-q > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask-forget { opacity: .5; }
.ask-history-item:hover .ask-forget, .ask-forget:focus-visible { opacity: 1; }
@media (max-width: 600px) { .ask-tabs-hint { display: none; } }
