.ask-panel { --ask-edge: var(--look-edge, var(--line)); --ask-card: var(--look-card, color-mix(in srgb, var(--card) 92%, transparent)); position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 90; width: min(440px, calc(100vw - 24px)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--look-card, color-mix(in srgb, var(--card) 92%, transparent)); color: var(--text); border: 1px solid var(--ask-edge); border-radius: var(--look-radius, 22px); box-shadow: 0 24px 70px rgba(8, 14, 18, .35); -webkit-backdrop-filter: blur(var(--look-blur, 28px)) saturate(1.35); backdrop-filter: blur(var(--look-blur, 28px)) saturate(1.35); }
.ask-panel[hidden], .ask-panel [hidden] { display: none !important; }
.ask-panel[aria-busy="true"] .ask-log::after { content: ""; display: block; width: 28px; height: 4px; margin: 6px 0; border-radius: 99px; background: var(--cyan); animation: ask-pulse 1s ease-in-out infinite alternate; }
@keyframes ask-pulse { from { opacity: .25; } to { opacity: 1; } }
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ask-edge); }
.ask-head > div { min-height: 36px; padding-left: 46px; background: url("../assets/qa-review-mark.svg?v=20261013c") left center / 36px 36px no-repeat; }
.ask-head .eyebrow { margin-bottom: 2px; }
.ask-head h2 { margin: 0; font-size: 1.15rem; }
.ask-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ask-log { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 10px; padding-right: 2px; }
.ask-msg { border: 1px solid var(--ask-edge); border-radius: 16px; padding: 10px 12px; font-size: 14px; line-height: 1.5; background: var(--ask-card); overflow-wrap: anywhere; }
.ask-msg p { margin: 6px 0 0; }
.ask-msg ul { margin: 6px 0 0; padding-left: 18px; }
.ask-me { align-self: flex-end; max-width: 85%; border-bottom-right-radius: 6px; background: color-mix(in srgb, var(--cyan) 14%, var(--card)); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); }
.ask-bot { border-bottom-left-radius: 6px; }
.ask-system { background: transparent; border-style: dashed; color: var(--muted); }
.ask-system p:first-child { margin-top: 0; }
.ask-code { margin-top: 8px; border: 1px solid var(--ask-edge); border-radius: 12px; overflow: hidden; }
.ask-code-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; background: color-mix(in srgb, var(--panel-2) 70%, transparent); font: 12px "Fira Code", ui-monospace, monospace; }
.ask-code pre { margin: 0; padding: 10px; max-height: 260px; overflow: auto; background: color-mix(in srgb, var(--panel) 80%, transparent); font: 12px/1.5 "Fira Code", ui-monospace, monospace; white-space: pre; overflow-wrap: normal; }
.ask-chips, .ask-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ask-actions { margin-top: 8px; }
.ask-chips button, .ask-actions button, .ask-code-head button { border: 1px solid var(--ask-edge); background: var(--ask-card); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 600 12.5px/1.3 Inter, system-ui, sans-serif; text-align: left; cursor: pointer; transition: border-color .2s, color .2s; }
.ask-chips button:hover, .ask-actions button:hover, .ask-code-head button:hover { border-color: var(--cyan); color: var(--cyan); }
.ask-chips button:focus-visible, .ask-actions button:focus-visible, .ask-code-head button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.ask-about { margin-top: 10px; border: 1px solid var(--look-edge, var(--line)); background: transparent; color: var(--cyan); border-radius: 999px; padding: 5px 12px; font: 600 12.5px/1.3 Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .2s; }
.ask-about:hover { border-color: var(--cyan); }
.ask-about:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.ask-form { display: flex; gap: 8px; }
.ask-form input, .ask-repo input { flex: 1; min-width: 0; box-sizing: border-box; border: 1px solid var(--ask-edge); border-radius: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--panel) 70%, transparent); color: var(--text); font: inherit; font-size: 14px; }
.ask-form input:focus, .ask-repo input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.ask-repo { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ask-repo input { padding: 7px 10px; font-size: 13px; }
.ask-ai { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.ask-ai input { margin: 3px 0 0; accent-color: var(--cyan); }
.ask-ai small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.ask-msg .ask-ai-text { padding: 8px 10px; border-left: 3px solid var(--cyan); border-radius: 8px; background: color-mix(in srgb, var(--cyan) 8%, transparent); }
.ask-msg .ask-ai-text.is-off { border-left-color: var(--ask-edge); background: transparent; color: var(--muted); }
.ask-ai-tag { font-weight: 700; color: var(--cyan); }
.ask-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 1240px) { .dash-overlay:has(> .ask-panel:not([hidden])) { padding-right: 470px; } }
@media (max-width: 560px) {
    .ask-panel { inset: 0; width: 100vw; padding: 14px; border: 0; border-radius: 0; box-shadow: none; }
    .ask-form input, .ask-repo input { font-size: 16px; }
}
@media print { .ask-panel { display: none !important; } }
