/* WrapClassName belongs to the content wrapper, not the outer Ant drawer. */
.ant-drawer:has(> .copilot-shell-drawer) { position: fixed !important; inset: 0 !important; width: auto !important; height: 100dvh !important; background: transparent !important; pointer-events: none; }
.ant-drawer:has(> .copilot-shell-drawer) > .ant-drawer-mask { display: none !important; }
/* Scoped Compliance AI presentation; shared drawers remain unchanged. */
.ant-drawer-content-wrapper.copilot-shell-drawer {
    --cg-workspace-surface: var(--cg-workspace-surface, var(--cg-surface, #fff)); --cg-workspace-raised: var(--cg-workspace-raised, var(--cg-surface, #fff));
    --cg-workspace-bg: #0b1530; --cg-workspace-text: var(--cg-workspace-text, var(--ant-text-color, #1f2937));
    --cg-workspace-heading: var(--cg-workspace-text, var(--ant-text-color, #1f2937)); --cg-workspace-muted: #a9bae2;
    --cg-workspace-border: var(--cg-workspace-border, var(--cg-border, #e3eaf3)); --cg-workspace-primary: #346cff;
    top: 0 !important; bottom: 0 !important; height: 100dvh !important; max-height: 100dvh !important;
    background: var(--cg-workspace-surface, var(--cg-surface, #fff)) !important; pointer-events: auto;
}
.ant-drawer-content-wrapper.copilot-shell-drawer {
    width: min(760px, 100vw) !important; height: 100dvh !important; max-height: 100dvh !important;
    pointer-events: auto; border-inline-start: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3));
}
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-mask { display: none !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer :is(.ant-drawer-content,.ant-drawer-wrapper-body) { height: 100% !important; max-height: 100% !important; background: var(--cg-workspace-surface, var(--cg-surface, #fff)) !important; overflow: hidden; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-wrapper-body { display: flex; flex-direction: column; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-body { flex: 1 1 0; min-height: 0 !important; padding: 0 20px 12px !important; overflow: hidden !important; background: var(--cg-workspace-surface, var(--cg-surface, #fff)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-drawer { display: flex; flex-direction: column; height: 100%; min-height: 0; max-height: 100%; padding: 0 !important; gap: 0; background: var(--cg-workspace-surface, var(--cg-surface, #fff)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-header { position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; min-height: 44px; padding: 0; background: transparent !important; border: 0; z-index: 5; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-close { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 8px; font-size: 26px; color: #a9bae2 !important; border-radius: 9px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-close:hover { background: var(--cg-workspace-raised, var(--cg-surface-raised, #f5f7fb)) !important; color: #fff !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-close:focus-visible { outline: 2px solid #6495ff; outline-offset: 2px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-topbar { flex: 0 0 auto; min-height: 72px; height: auto; padding: 12px 48px 12px 0; gap: 12px; border-bottom: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); background: transparent !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-brand-mark { background: transparent !important; }
.copilot-brand-mark img { width: 38px; height: 38px; object-fit: contain; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-topbar > strong { color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; font-size: 22px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-context { max-width: 210px; margin: 0; background: var(--cg-workspace-raised, var(--cg-surface, #fff)) !important; border-color: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages { flex: 1 1 0 !important; min-height: 0 !important; height: auto !important; max-height: none !important; overflow-y: auto; overflow-x: hidden; padding: 20px 0; overscroll-behavior: contain; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome { max-width: none; width: 100%; min-height: 100%; margin: 0; padding: 12px 0; justify-content: center; gap: 12px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome-mark { width: 82px; height: 82px; flex: 0 0 82px; margin: 8px 0 12px; background: var(--cg-workspace-raised, var(--cg-surface, #fff)) !important; box-shadow: 0 0 26px #346cff40; border: 1px solid #346cff; }
.copilot-welcome-mark img { width: 56px; height: 56px; object-fit: contain; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome-mark::before { content: ''; inset: -6px; border: 2px solid transparent; border-top-color: #549aff; border-bottom-color: #8263ff; border-radius: 50%; animation: compliance-ai-orbit 8s linear infinite; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome-mark::after { color: #64baff; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome h2 { font-size: clamp(22px, 2vw, 30px); margin: 0; line-height: 1.25; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome p { color: #a9bae2 !important; margin: 0; font-size: 14px; }
.copilot-readonly { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); border-radius: 24px; color: #a9bae2; font-size: 12px; }
.copilot-readonly i { width: 8px; height: 8px; border-radius: 50%; background: #10d58f; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-quick-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 10px; margin: 8px 0 0; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-action-card.ant-btn { display: flex; align-items: center; gap: 10px; min-width: 0; height: auto; min-height: 62px; padding: 8px 10px; text-align: start; white-space: normal; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; border-radius: 12px; background: var(--cg-workspace-raised, var(--cg-surface, #fff)) !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-action-card:hover { border-color: #549aff !important; background: var(--cg-workspace-raised, var(--cg-surface-raised, #f5f7fb)) !important; }
.copilot-action-icon { display: grid; place-items: center; width: 30px; height: 32px; flex: 0 0 30px; border: 1px solid currentColor; border-radius: 10px; color: #64aaff; background: #346cff20; }
.copilot-action-icon .anticon { font-size: 19px !important; }
.purple .copilot-action-icon { color: #b38aff; background: #8957ff20; }
.green .copilot-action-icon { color: #4ce2cf; background: #00c9a720; }
.pink .copilot-action-icon { color: #ff7caa; background: #ff428220; }
.amber .copilot-action-icon { color: #ffd16a; background: #ffbb3220; }
.copilot-action-copy { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-action-copy strong { font-size: 13px; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-action-copy small { color: #a9bae2 !important; font-size: 11px; line-height: 1.4; }
.copilot-action-card > .anticon { flex: 0 0 auto; font-size: 12px; }
.copilot-suggestions { width: 100%; text-align: start; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); border-radius: 12px; padding: 12px; margin-top: 8px; background: linear-gradient(120deg,var(--cg-workspace-raised, var(--cg-surface, #fff)),var(--cg-workspace-raised, var(--cg-surface, #fff))); }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-suggestions h3 { color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; font-size: 15px; margin: 0 0 4px; }
.copilot-suggestion-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 8px; margin-top: 8px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-suggestion-grid .ant-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: normal; height: auto; min-height: 40px; padding: 7px 9px; border-radius: 10px; border-color: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; background: var(--cg-workspace-surface, var(--cg-surface, #fff)) !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; text-align: start; font-size: 12px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer-shell { flex: 0 0 auto; margin: 0; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; border-radius: 20px; padding: 12px; background: var(--cg-workspace-raised, var(--cg-surface, #fff)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer { background: transparent !important; padding: 0 0 10px; border-bottom: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; gap: 10px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer textarea { min-height: 48px; max-height: 120px; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; border-radius: 12px; padding: 12px; resize: vertical; background: #0b1530 !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer textarea::placeholder { color: #a9bae2 !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-send-button { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: #346cff !important; border-color: #549aff !important; color: #fff !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-add-button { width: 40px; height: 40px; flex: 0 0 40px; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; border-color: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; background: var(--cg-workspace-raised, var(--cg-surface-raised, #f5f7fb)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-model-picker { margin: 0; padding-top: 10px; border: 0; gap: 12px; background: transparent !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer :is(.ant-select-selector,.ant-select-dropdown) { background: #0b1530 !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; border-color: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer :is(.ant-select-item,.ant-select-selection-item,.ant-select-arrow) { color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-select-item-option-active { background: var(--cg-workspace-raised, var(--cg-surface-raised, #f5f7fb)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-select-item-option-selected { background: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-privacy { flex: 0 0 auto; padding: 10px 0 0; margin: 0; font-size: 11px; color: #a9bae2 !important; background: transparent; }
.ant-drawer-content-wrapper.copilot-shell-drawer :is(.copilot-message.assistant,.copilot-message.assistant p,.copilot-message-actions .ant-btn) { color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer :is(.copilot-friendly-error,.copilot-result,.copilot-attachment) { background: var(--cg-workspace-raised, var(--cg-surface, #fff)) !important; border-color: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-message.user { background: #346cff !important; color: #fff !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-message.user :is(p,span) { color: #fff !important; }
.compliance-ai-open :is(.grc-ai-widget,.agent-heartbeat-widget) { display: none !important; }
@keyframes compliance-ai-orbit { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .ant-drawer-content-wrapper.copilot-shell-drawer { width: min(760px, 58vw) !important; } }
@media (min-width: 768px) and (max-width: 1100px) { .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 767px) {
    .ant-drawer-content-wrapper.copilot-shell-drawer { inset: 0 !important; width: 100% !important; }
    .ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-body { padding: 0 12px 10px !important; }
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-topbar { flex-wrap: wrap; gap: 8px; }
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-topbar > strong { font-size: 19px; }
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-context { font-size: 12px; padding: 5px 8px; max-width: 150px; }
}
@media (max-width: 480px) {
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-quick-actions { grid-template-columns: 1fr; }
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-action-card { min-height: 58px; }
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-model-picker { display: grid; grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome-mark::before { animation: none; } }

/* Ant Button wraps ChildContent in a span: lay out our explicit inner content. */
.copilot-shell-drawer .copilot-action-layout { display: grid !important; grid-template-columns: 30px minmax(0,1fr) 10px; align-items: center; gap: 8px; width: 100%; text-align: start; }
.copilot-shell-drawer .copilot-action-card.ant-btn > span { width: 100%; }
.copilot-shell-drawer .copilot-action-layout > .anticon { font-size: 12px !important; }
.copilot-shell-drawer .copilot-suggestion-layout { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.copilot-shell-drawer .copilot-suggestion-grid .ant-btn > span { width: 100%; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-welcome { min-height: 0; justify-content: flex-start; flex: 0 0 auto; padding: 8px 0 12px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages { display: block; scrollbar-width: thin; scrollbar-color: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) var(--cg-workspace-surface, var(--cg-surface, #fff)); }
.ant-drawer-content-wrapper.copilot-shell-drawer .ant-drawer-body { display: flex; flex-direction: column; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-drawer { flex: 1 1 0; height: auto; min-height: 0; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer textarea { resize: none; overflow-y: auto; scrollbar-width: thin; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-privacy { display: block; }
@media (max-width: 480px) {
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-model-picker label,
    .ant-drawer-content-wrapper.copilot-shell-drawer .copilot-model-picker label:last-child { width: 100%; }
}
/* Compact content within the message region; composer/header keep their sizing. */
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages { padding: 12px 0; font-size: 12px; line-height: 1.5; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-welcome { gap: 8px; padding: 4px 0 8px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-welcome-mark { width: 60px; height: 60px; flex-basis: 60px; margin: 4px 0 8px; }
.copilot-shell-drawer .copilot-messages .copilot-welcome-mark img { width: 40px; height: 40px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-welcome h2 { font-size: clamp(19px, 1.5vw, 23px); }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-welcome p { font-size: 12px; line-height: 1.5; }
.copilot-shell-drawer .copilot-messages .copilot-readonly { font-size: 11px; padding: 5px 10px; gap: 6px; }
.copilot-shell-drawer .copilot-messages .copilot-readonly .anticon { font-size: 15px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-action-copy strong { font-size: 12px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-suggestions h3 { font-size: 14px; }
.copilot-shell-drawer .copilot-messages .copilot-message { font-size: 12px; padding: 8px 10px; }
.copilot-shell-drawer .copilot-messages .copilot-message p { font-size: 12px; line-height: 1.5; margin-bottom: 6px; }
.copilot-shell-drawer .copilot-messages .copilot-message pre { font-size: 11px; }

/* Keep the workspace in view when a body-level drawer receives focus.
   The page remains scrollable within its own viewport while the assistant is open. */
.app-shell.compliance-ai-open {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
}
.app-shell.compliance-ai-open > .app-main {
    display: block;
    visibility: visible;
    opacity: 1;
    min-height: 100%;
}
.app-shell.compliance-ai-open > .app-sidebar { visibility: visible; opacity: 1; }
/* The outer portal is transparent; only the bounded assistant panel paints. */
.ant-drawer:has(> .copilot-shell-drawer) {
    background: transparent !important;
    backdrop-filter: none !important;
}
.ant-drawer:has(> .copilot-shell-drawer)::before,
.ant-drawer:has(> .copilot-shell-drawer)::after { display: none !important; }

/* One composer surface: prompt above, attachment/model controls and send below. */
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer-shell { padding: 10px 12px; border-radius: 22px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer {
    display: grid; grid-template-columns: 32px minmax(0,1fr) 32px; grid-template-rows: auto auto; align-items: center;
    gap: 8px; padding: 0; border: 0 !important; background: transparent !important;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer textarea {
    grid-column: 1 / -1; grid-row: 1; width: 100%; height: 48px !important; min-height: 48px !important;
    max-height: 112px !important; padding: 2px 3px !important; background: transparent !important; border: 0 !important;
    border-radius: 0; box-shadow: none !important; font-size: 13px;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-add-button {
    grid-column: 1; grid-row: 2; width: 30px; height: 30px; border: 0; background: transparent !important; font-size: 18px;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-send-button {
    grid-column: 3; grid-row: 2; width: 32px !important; min-width: 32px; height: 32px !important; border-radius: 50%; box-shadow: none;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-model-picker {
    grid-column: 2; grid-row: 2; display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; padding: 0; gap: 3px;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-model-picker label,
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-model-picker label:last-child {
    display: block; width: auto; min-width: 0; max-width: 55%;
}
.copilot-shell-drawer .copilot-composer .copilot-model-picker label > span {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-model-picker .ant-select { width: auto; min-width: 78px; max-width: 100%; font-size: 12px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-model-picker .ant-select-selector {
    min-height: 28px; height: 28px; padding-inline: 7px 24px; border: 0 !important; box-shadow: none !important; background: transparent !important;
}
.copilot-shell-drawer .copilot-composer .copilot-model-picker .ant-select-selection-item { line-height: 26px; }
.copilot-shell-drawer .copilot-composer .copilot-selected-file { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-suggestions { padding: 8px 10px; margin-top: 4px; border-radius: 10px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-suggestions h3 { font-size: 12px; margin-bottom: 2px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-suggestions h3 .anticon { font-size: 16px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-suggestions p { font-size: 11px; }
.copilot-shell-drawer .copilot-messages .copilot-suggestion-grid { gap: 6px; margin-top: 6px; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-messages .copilot-suggestion-grid .ant-btn { min-height: 32px; padding: 5px 7px; font-size: 11px; border-radius: 7px; }
.copilot-shell-drawer .copilot-messages .copilot-suggestion-layout .anticon { font-size: 15px; }

/* Provider → model hierarchy behind one compact composer trigger. */
.copilot-shell-drawer .copilot-composer-shell { position: relative; }
.copilot-shell-drawer .copilot-unified-picker .copilot-model-trigger.ant-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 100%; padding: 2px 8px; border: 0; border-radius: 16px; background: var(--cg-workspace-raised, var(--cg-surface-raised, #f5f7fb)); color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)); font-size: 12px; }
.copilot-shell-drawer .copilot-model-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copilot-shell-drawer .copilot-provider-menu { position: absolute; z-index: 20; inset-inline-end: 0; bottom: calc(100% + 8px); width: min(440px,100%); max-height: min(380px,50dvh); overflow: auto; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); border-radius: 14px; padding: 8px; background: var(--cg-workspace-raised, var(--cg-surface, #fff)); box-shadow: 0 12px 32px #0005; }
.copilot-picker-levels { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0,1.2fr); gap: 8px; }
.copilot-provider-list { min-width: 0; }
.copilot-provider-models { min-width: 0; border-inline-start: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); padding-inline-start: 8px; }
.copilot-picker-heading { padding: 4px 8px 7px; font-size: 11px; color: #a9bae2; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-provider-menu .copilot-picker-option { display: block; width: 100%; height: auto; min-height: 30px; padding: 5px 8px; text-align: start; white-space: normal; border: 0; border-radius: 7px; background: transparent !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; font-size: 12px; }
.copilot-shell-drawer .copilot-picker-option > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-provider-menu .copilot-picker-option:is(.selected,:hover,:focus-visible) { background: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; }
.copilot-shell-drawer .copilot-provider-menu small { color: #a9bae2; }

/* Click-away dismissal covers the composer, without masking the page. */
.copilot-shell-drawer .copilot-composer-shell .copilot-picker-dismiss.ant-btn {
    position: absolute; inset: 0; z-index: 10; width: 100%; height: 100%; padding: 0;
    border: 0 !important; border-radius: inherit; background: transparent !important; box-shadow: none !important;
}
.copilot-shell-drawer .copilot-unified-picker .copilot-model-trigger { position: relative; z-index: 21; }
.copilot-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Inherit application palette instead of the assistant's fixed navy palette. */
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer-shell {
    background: var(--au-input, var(--cg-surface, #ffffff)) !important;
    background-color: var(--au-input, var(--cg-surface, #ffffff)) !important;
    border-color: var(--au-border, var(--cg-border, #e3eaf3)) !important;
    color: var(--au-text, var(--ant-text-color, #1f2937)) !important;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer textarea,
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-add-button,
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-model-trigger {
    color: var(--au-text, var(--ant-text-color, #1f2937)) !important;
}
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer .copilot-model-trigger { background: var(--au-raised, var(--cg-surface-raised, var(--cg-surface, #f5f7fb))) !important; }
.ant-drawer-content-wrapper.copilot-shell-drawer .copilot-composer textarea::placeholder { color: var(--au-muted, var(--ant-text-color-secondary, #667085)) !important; }

/* Record tables use the same dark surfaces as the assistant, including headers. */
.copilot-shell-drawer .copilot-markdown-table-wrap { border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); border-radius: 10px; overflow-x: auto; }
.copilot-shell-drawer .copilot-markdown-table-wrap table { width: 100%; margin: 0; border-collapse: collapse; }
.copilot-shell-drawer .copilot-markdown-table-wrap table th { padding: 9px 10px; background: var(--cg-workspace-raised, var(--cg-surface-raised, #f5f7fb)) !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; text-align: start; }
.copilot-shell-drawer .copilot-markdown-table-wrap table td { padding: 9px 10px; background: var(--cg-workspace-raised, var(--cg-surface, #fff)) !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; border-color: var(--cg-workspace-border, var(--cg-border, #e3eaf3)) !important; }

.copilot-shell-drawer .copilot-record-overview { padding: 10px; margin: 0 0 12px; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); border-radius: 10px; background: var(--cg-workspace-raised, var(--cg-surface, #fff)); }
.copilot-shell-drawer .copilot-record-overview strong { font-size: 12px; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)); }
.copilot-shell-drawer .copilot-record-overview p { margin: 3px 0 0 !important; font-size: 11px !important; color: #a9bae2 !important; }
.copilot-shell-drawer .copilot-record-list td { vertical-align: middle; }
.copilot-shell-drawer .copilot-record-list th:last-child { text-align: end; }
.copilot-shell-drawer .copilot-record-list td:last-child { white-space: nowrap; text-align: end; }
.copilot-shell-drawer .copilot-record-list .copilot-record-number { width: 30px; color: #a9bae2 !important; }
.copilot-shell-drawer .copilot-record-list .copilot-record-detail.ant-btn,
.copilot-shell-drawer .copilot-record-footer .copilot-record-next.ant-btn { height: 30px; padding: 3px 9px; border: 1px solid #426194; border-radius: 7px; background: #1c3659 !important; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; font-size: 11px; }
.copilot-shell-drawer .copilot-record-footer { display: flex; align-items: center; gap: 12px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); color: #a9bae2; font-size: 11px; }

/* Python-style field/value record detail card. */
.copilot-shell-drawer .copilot-record-details { padding: 16px; border: 1px solid var(--cg-workspace-border, var(--cg-border, #e3eaf3)); border-radius: 14px; background: var(--cg-workspace-raised, var(--cg-surface, #fff)); }
.copilot-shell-drawer .copilot-detail-title { display: block; margin: 0 0 12px; font-size: 13px; color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)) !important; }
.copilot-shell-drawer .copilot-record-details .copilot-markdown-table-wrap { margin: 0; }
.copilot-shell-drawer .copilot-record-details table th,
.copilot-shell-drawer .copilot-record-details table td { padding: 11px 10px; text-align: start; font-size: 12px; line-height: 1.4; }
.copilot-shell-drawer .copilot-record-details table td:first-child { width: 30%; min-width: 110px; }
.copilot-shell-drawer .copilot-record-details table td:last-child { overflow-wrap: anywhere; }
@media (max-width: 480px) { .copilot-shell-drawer .copilot-record-details { padding: 10px; } }

.copilot-shell-drawer .copilot-presentation h3 { color: var(--cg-workspace-text, var(--ant-text-color, #1f2937)); font-size: 16px; }
.copilot-shell-drawer .copilot-presentation .ant-card { margin-bottom: 12px; background: var(--cg-workspace-raised) !important; border-color: var(--cg-workspace-border); color: var(--cg-workspace-text); }
.copilot-shell-drawer .copilot-presentation .ant-card-head { background: transparent !important; color: var(--cg-workspace-heading); border-color: var(--cg-workspace-border); }
.copilot-shell-drawer .copilot-presentation .ant-card-body { padding: 12px; }
.copilot-shell-drawer .copilot-presentation .ant-statistic-title { color: var(--cg-workspace-muted); }
.copilot-shell-drawer .copilot-presentation .ant-statistic-content { color: var(--cg-workspace-heading); }
.copilot-shell-drawer .copilot-presentation button:focus-visible { outline: 2px solid #64baff; outline-offset: 3px; }
.copilot-shell-drawer .copilot-presentation .ant-table { background: var(--cg-workspace-surface); color: var(--cg-workspace-text); }
.copilot-shell-drawer .copilot-presentation .ant-table-cell { background: var(--cg-workspace-raised) !important; color: var(--cg-workspace-text); border-color: var(--cg-workspace-border); }

/* Compact response counters and charts within the assistant drawer. */
.copilot-shell-drawer .copilot-presentation .copilot-presentation-kpi.ant-card { min-height: 0 !important; height: auto !important; margin-bottom: 8px; border-radius: 9px; }
.copilot-shell-drawer .copilot-presentation .copilot-presentation-kpi .ant-card-body { padding: 8px 10px !important; min-height: 0 !important; }
.copilot-shell-drawer .copilot-presentation .copilot-presentation-kpi .ant-statistic-title { font-size: 11px !important; line-height: 16px; margin-bottom: 3px; }
.copilot-shell-drawer .copilot-presentation .copilot-presentation-kpi .ant-statistic-content { font-size: 19px !important; line-height: 24px; }
.copilot-shell-drawer .copilot-presentation-bar { height: 200px; width: 100%; min-width: 0; }

/* KPI counters wrap at their natural content width rather than filling a grid. */
.copilot-shell-drawer .copilot-presentation .copilot-kpi-content-row { justify-content: flex-start; align-items: flex-start; }
.copilot-shell-drawer .copilot-presentation .copilot-kpi-content-column { flex: 0 1 auto !important; width: max-content; max-width: 100%; min-width: 0; }
.copilot-shell-drawer .copilot-presentation .copilot-presentation-kpi.ant-card { width: max-content; max-width: 100%; min-width: 0 !important; }
.copilot-shell-drawer .copilot-presentation .copilot-presentation-kpi .ant-card-body { padding: 7px 12px !important; }
.copilot-shell-drawer .copilot-presentation .copilot-presentation-kpi .ant-statistic-title { overflow-wrap: anywhere; }

.copilot-inline-suggestions { position: relative; }
.copilot-inline-prompt-list {
    display: none;
    position: absolute;
    inset-block-end: 100%;
    inset-inline-start: 0;
    z-index: 8;
    width: max-content;
    max-width: min(280px, 70vw);
    padding: 8px;
    gap: 8px;
    border: 1px solid var(--cg-workspace-border, #e3eaf3);
    border-radius: 8px;
    background: var(--cg-workspace-raised, var(--cg-surface, #fff));
}
.copilot-inline-suggestions:is(:hover, :focus-within) .copilot-inline-prompt-list { display: grid; }