.flow-ai-panel, [data-flow-ai-page], [data-flow-ai-header] { --ai-ink: #172338; --ai-muted: #607286; --ai-teal: #008b7a; --ai-line: #dce7ed; }
.flow-ai-panel *, [data-flow-ai-page] *, [data-flow-ai-header] * { box-sizing: border-box; }
[data-flow-ai-header]:empty { display: none; }
.flow-ai-launch { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.flow-ai-mark { display: inline-flex; position: relative; align-items: center; justify-content: center; flex: 0 0 auto; width: 35px; height: 35px; border-radius: 11px; background: #dff7ed; color: #007b69; font-size: 20px; font-weight: 750; }
.flow-ai-mark > span { position: absolute; top: -4px; right: -4px; font-size: 14px; }
.flow-ai-launch .flow-ai-mark { width: 21px; height: 21px; border-radius: 6px; font-size: 14px; }
.flow-ai-launch .flow-ai-mark > span { font-size: 9px; top: -3px; right: -3px; }
.flow-ai-pilot { display: inline-block; padding: 3px 6px; border-radius: 5px; background: #eef5f4; color: #55746f; font-size: 10px; font-weight: 500; vertical-align: middle; }
.flow-ai-panel { position: fixed; z-index: 190; top: 82px; right: 16px; bottom: 16px; width: 460px; max-width: calc(100vw - 32px); background: white; color: var(--ai-ink); border: 1px solid var(--ai-line); border-radius: 16px; box-shadow: 0 18px 65px #162c4440; overflow: hidden; }
[data-flow-ai-page] { width: min(100%, 1100px); min-width: 0; margin: 0 auto; color: var(--ai-ink); }
.flow-ai-shell { display: flex; flex-direction: column; height: calc(100dvh - 145px); min-height: 460px; max-height: 900px; min-width: 0; border: 1px solid var(--ai-line); border-radius: 16px; background: white; overflow: hidden; }
.flow-ai-shell-panel { height: 100%; min-height: 0; max-height: none; border: 0; border-radius: 0; }
.flow-ai-workspace, .flow-ai-current { display: flex; flex: 1 1 0; min-width: 0; min-height: 0; }
.flow-ai-workspace { position: relative; }
.flow-ai-current { flex-direction: column; }
.flow-ai-history { flex: 0 0 clamp(174px, 19%, 215px); min-width: 0; overflow: auto; padding: 18px 10px; border-right: 1px solid var(--ai-line); background: #f6f9fa; }
.flow-ai-history h3 { margin: 0 8px 12px; font-size: 13px; }
.flow-ai-history p { margin: 8px; font-size: 12px; color: var(--ai-muted); }
.flow-ai-history ul { list-style: none; padding: 0; margin: 0; }
.flow-ai-history li + li { margin-top: 3px; }
.flow-ai-history button { display: block; width: 100%; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--ai-ink); text-align: left; font: inherit; font-size: 12px; padding: 9px; cursor: pointer; }
.flow-ai-history button:hover { background: #eaf1f1; }
.flow-ai-history button[aria-current="true"] { color: #006e60; border-color: #c6e3d9; background: #e6f4ee; }
.flow-ai-history button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.flow-ai-history button small { display: block; margin-top: 4px; color: var(--ai-muted); }
.flow-ai-history-toggle { background: #f6f9fa; color: var(--ai-teal); border: 0; border-bottom: 1px solid var(--ai-line); text-align: left; padding: 8px 16px; font: inherit; font-size: 12px; cursor: pointer; }
.flow-ai-shell-panel .flow-ai-history { position: absolute; z-index: 2; inset: 0 auto 0 0; width: min(260px,85%); box-shadow: 4px 0 15px #162c4414; }
.flow-ai-shell .btn:not(.secondary) { color: white; background: var(--ai-teal); border: 1px solid var(--ai-teal); box-shadow: none; }
.flow-ai-shell .btn.secondary { color: var(--ai-ink); background: white; border: 1px solid var(--ai-line); box-shadow: none; }
.flow-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto; padding: 19px 24px; border-bottom: 1px solid var(--ai-line); background: #fbfdfc; }
.flow-ai-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.flow-ai-heading h2 { margin: 0 0 3px; font-size: 20px; line-height: 1.3; }
.flow-ai-heading h2 .flow-ai-pilot { margin-left: 5px; }
.flow-ai-context { font-size: 11px; color: var(--ai-muted); overflow-wrap: anywhere; }
.flow-ai-context strong { font-weight: 550; }
.flow-ai-engine { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 12px; line-height: 1.5; color: var(--ai-muted); }
.flow-ai-engine strong { margin-left: 3px; color: var(--ai-ink); font-weight: 600; }
.flow-ai-shell-panel .flow-ai-head { flex-wrap: wrap; row-gap: 7px; }
.flow-ai-shell-panel .flow-ai-engine { order: 1; flex-basis: 100%; }
.flow-ai-head-actions { display: flex; gap: 5px; flex: 0 0 auto; }
.flow-ai-toolbar { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; padding: 0 24px; border-bottom: 1px solid var(--ai-line); min-width: 0; flex-wrap: wrap; }
.flow-ai-toolbar button { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ai-muted); font: inherit; font-size: 11px; padding: 12px 0; cursor: pointer; }
.flow-ai-toolbar button[aria-pressed="true"] { color: var(--ai-teal); border-bottom-color: var(--ai-teal); }
.flow-ai-toolbar [data-flow-ai-new] { margin-left: auto; color: var(--ai-teal); }
.flow-ai-toolbar button:disabled { opacity: .5; cursor: default; }
.flow-ai-external-scope { flex: 0 0 auto; padding: 12px 24px 10px; border-bottom: 1px solid var(--ai-line); background: #f6faf9; }
.flow-ai-mode { display: inline-flex; gap: 3px; padding: 3px; max-width: 100%; border: 1px solid #d5e5df; border-radius: 9px; background: #edf4f1; }
.flow-ai-mode button { font: inherit; font-size: 12px; font-weight: 500; border: 1px solid transparent; background: transparent; color: var(--ai-muted); padding: 7px 12px; border-radius: 6px; cursor: pointer; }
.flow-ai-mode button[aria-pressed="true"] { color: #007767; background: white; border-color: #c4ded4; }
.flow-ai-mode button:disabled, .flow-ai-suggestions button:disabled { opacity: .6; cursor: default; }
.flow-ai-external-scope p { margin: 8px 0 0; color: var(--ai-muted); font-size: 11px; line-height: 1.6; max-width: 820px; overflow-wrap: anywhere; }
.flow-ai-external-scope strong { font-weight: 550; color: var(--ai-ink); }
.flow-ai-external-scope .flow-ai-engine-unavailable { color: #885532; }
.flow-ai-budget { border: 1px solid var(--ai-line); border-radius: 9px; padding: 12px 15px; margin: 18px 0; background: #f6faf9; }
.flow-ai-budget p { margin: 5px 0; }
.flow-ai-coverage { max-width: 780px; margin: 0 auto; font-size: 13px; line-height: 1.7; }
.flow-ai-coverage h3 { font-size: 19px; margin: 0 0 8px; }
.flow-ai-coverage > p, .flow-ai-coverage li p { color: var(--ai-muted); margin: 0 0 12px; }
.flow-ai-coverage ul { list-style: none; padding: 0; margin: 22px 0; }
.flow-ai-coverage li { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--ai-line); }
.flow-ai-coverage li > div { min-width: 0; }
.flow-ai-coverage li p { font-size: 11px; margin: 4px 0 0; overflow-wrap: anywhere; }
.flow-ai-coverage-state { color: var(--ai-teal); font-size: 11px; flex: 0 0 145px; text-align: right; }
.flow-ai-icon { border: 1px solid var(--ai-line); border-radius: 8px; background: white; color: var(--ai-muted); width: 32px; height: 32px; cursor: pointer; font-size: 20px; line-height: 1; }
.flow-ai-body { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 24px 28px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
.flow-ai-welcome { max-width: 640px; margin: 30px auto 0; text-align: center; }
.flow-ai-welcome > .flow-ai-mark { width: 50px; height: 50px; font-size: 29px; margin-bottom: 10px; }
.flow-ai-welcome h3 { margin: 7px 0 10px; font-size: 24px; }
.flow-ai-welcome > p { color: var(--ai-muted); font-size: 13px; line-height: 1.7; margin: 0 auto 20px; max-width: 450px; }
.flow-ai-suggestions { display: grid; gap: 8px; margin: 24px 0 18px; }
.flow-ai-suggestions button { display: flex; justify-content: space-between; gap: 15px; padding: 12px 15px; border: 1px solid var(--ai-line); background: white; border-radius: 9px; color: var(--ai-ink); text-align: left; cursor: pointer; font: inherit; font-size: 12px; }
.flow-ai-suggestions button:hover { border-color: #79bfae; background: #f4fbf8; }
.flow-ai-suggestions button span { color: var(--ai-teal); }
.flow-ai-message { max-width: 780px; margin: 0 auto 22px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.flow-ai-message-user { background: #eef6f5; padding: 13px 17px; border-radius: 12px 12px 3px 12px; }
.flow-ai-message-author { font-weight: 700; font-size: 11px; margin-bottom: 4px; color: var(--ai-teal); }
.flow-ai-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.flow-ai-message-assistant { padding-block: 3px 7px; }
.flow-ai-message-assistant .flow-ai-message-author { margin-bottom: 9px; color: #007565; font-size: 12px; }
.flow-ai-prose { max-width: 76ch; white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; color: var(--ai-ink); }
.flow-ai-prose :where(p,h4,ul,ol,dl,table) { margin: 0; }
.flow-ai-prose > * + * { margin-block-start: .68em; }
.flow-ai-prose > h4 { margin-block-start: 1.25em; font-size: 1.02em; font-weight: 700; line-height: 1.4; }
.flow-ai-prose > h4 + * { margin-block-start: .35em; }
.flow-ai-prose > :first-child { margin-block-start: 0; }
.flow-ai-prose strong { font-weight: 650; }
.flow-ai-prose :is(ul,ol) { padding-inline-start: 1.6em; list-style-position: outside; }
.flow-ai-prose ul { list-style-type: disc; }
.flow-ai-prose ol { list-style-type: decimal; }
.flow-ai-prose li + li { margin-top: .24em; }
.flow-ai-prose li::marker { color: #476e68; }
.flow-ai-prose dl { border-block: 1px solid var(--ai-line); }
.flow-ai-prose dl > div { display: grid; grid-template-columns: minmax(5.5em,30%) minmax(0,1fr); gap: .9em; padding: .5em 0; }
.flow-ai-prose dl > div + div { border-top: 1px solid #eaf0f3; }
.flow-ai-prose dt { color: #506477; font-weight: 550; }
.flow-ai-prose dd { margin: 0; }
.flow-ai-prose table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: .94em; font-variant-numeric: tabular-nums; }
.flow-ai-prose caption { padding: 0 0 .4em; text-align: left; font-weight: 650; }
.flow-ai-prose th, .flow-ai-prose td { padding: .4em .65em; border-bottom: 1px solid var(--ai-line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.flow-ai-prose th { background: #f1f6f5; color: #40595b; font-weight: 650; }
.flow-ai-prose table:has(caption) :is(th,td):last-child { text-align: end; }
.flow-ai-prose code { padding: .06em .3em; border-radius: 4px; background: #f0f4f6; font-size: .9em; }
.flow-ai-prose .flow-ai-next-question { margin-top: .9em; padding: .55em .85em; border-inline-start: 3px solid #71bcaa; border-radius: 0 6px 6px 0; background: #f3f9f7; }
.flow-ai-citation { display: inline; margin: 0; padding: 1px 4px; border: 0; border-radius: 4px; background: #eaf4f1; color: #006b5f; font: inherit; font-size: .72em; font-weight: 600; line-height: 1.3; vertical-align: .15em; white-space: nowrap; }
button.flow-ai-citation { cursor: pointer; }
button.flow-ai-citation:hover { background: #cfe9df; }
.flow-ai-shell-panel .flow-ai-prose { font-size: 12.5px; }
.flow-ai-sources .flow-ai-excerpt { margin: 5px 0 0; max-width: 78ch; color: #526576; font-size: 12px; line-height: 1.55; }
.flow-ai-sources .flow-ai-excerpt p { color: inherit; font-size: inherit; margin: 0; }
.flow-ai-sources .flow-ai-excerpt > * + * { margin-block-start: .55em; }
.flow-ai-sources .flow-ai-excerpt :is(ul,ol) { display: block; padding-inline-start: 1.6em; }
.flow-ai-sources .flow-ai-excerpt li { padding: 0; border: 0; }
.flow-ai-text[aria-hidden="true"]::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.1em; background: var(--ai-teal); animation: flow-ai-caret 1s steps(2, jump-none) infinite; }
.flow-ai-prose[aria-hidden="true"]:has(> *)::after { display: none; }
.flow-ai-prose[aria-hidden="true"] > :is(p,h4):last-child::after { content: ''; display: inline-block; width: 2px; height: .95em; margin-left: 2px; background: var(--ai-teal); vertical-align: -.1em; }
.flow-ai-sources { margin-top: 15px; border-top: 1px solid var(--ai-line); padding-top: 10px; }
.flow-ai-sources summary { width: fit-content; font-weight: 600; color: var(--ai-muted); cursor: pointer; font-size: 11px; padding: 3px 0; }
.flow-ai-sources ol { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 7px; }
.flow-ai-sources li { padding: 9px 12px; border: 1px solid var(--ai-line); border-radius: 8px; }
.flow-ai-sources a { color: var(--ai-teal); font-size: 12px; font-weight: 600; text-decoration: none; }
.flow-ai-sources a:hover { text-decoration: underline; }
.flow-ai-sources p { color: var(--ai-muted); font-size: 11px; margin: 3px 0 0; }
.flow-ai-answer-status { color: var(--ai-muted); font-size: 11px; margin: 10px 0 0; }
.flow-ai-followups { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.flow-ai-followups button { font: inherit; font-size: 11px; color: var(--ai-teal); padding: 7px 11px; border: 1px solid var(--ai-line); background: white; border-radius: 8px; cursor: pointer; white-space: normal; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.flow-ai-followups button:hover { background: #f4fbf8; border-color: #79bfae; }
.flow-ai-followups button:disabled { opacity: .5; cursor: default; }
.flow-ai-followups .flow-ai-offer-action { background: #edf8f4; border-color: #9dccbf; font-weight: 650; }
.flow-ai-author-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow-ai-author-line .flow-ai-copy { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; margin: 0 0 5px; border: 0; border-radius: 5px; background: transparent; color: #586d7c; font: inherit; font-size: 11px; cursor: pointer; }
.flow-ai-copy:hover, .flow-ai-copy:focus-visible { color: #006f61; background: #edf7f4; }
.flow-ai-copy i { position: relative; width: 15px; height: 15px; }
.flow-ai-copy i::before, .flow-ai-copy i::after { content: ''; position: absolute; width: 9px; height: 10px; border: 1.4px solid currentColor; border-radius: 2px; background: white; }
.flow-ai-copy i::before { left: 1px; top: 1px; }
.flow-ai-copy i::after { left: 4px; top: 4px; }
.flow-ai-mail { border: 1px solid var(--ai-line); border-radius: 8px; padding: 12px 16px; }
.flow-ai-mail > p:first-child { padding-bottom: 8px; border-bottom: 1px solid var(--ai-line); font-weight: 650; }
.flow-ai-compose { flex: 0 0 auto; padding: 15px 24px 16px; border-top: 1px solid var(--ai-line); background: white; }
.flow-ai-compose form { margin: 0; padding: 10px 12px; border: 1px solid #bacfd2; border-radius: 11px; }
.flow-ai-compose form:focus-within { border-color: var(--ai-teal); box-shadow: 0 0 0 2px #008b7a15; }
.flow-ai-compose textarea { display: block; width: 100%; min-height: 47px; max-height: 110px; resize: vertical; border: none; padding: 2px; margin: 0; color: var(--ai-ink); background: white; font: inherit; font-size: 13px; line-height: 1.5; box-shadow: none; }
.flow-ai-compose textarea:focus { outline: none; box-shadow: none; }
.flow-ai-compose-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 7px; }
.flow-ai-compose-actions > span { color: var(--ai-muted); font-size: 10px; }
.flow-ai-compose-actions .flow-ai-media-tools { display: inline-flex; gap: 3px; }
.flow-ai-compose-actions .flow-ai-media-tools + span { flex: 1; }
.flow-ai-tool { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; background: transparent; color: var(--ai-muted); border: 1px solid transparent; border-radius: 7px; cursor: pointer; }
.flow-ai-tool:hover, .flow-ai-tool:focus-visible { color: var(--ai-teal, #007c73); background: #edf7f5; }
.flow-ai-tool:disabled { opacity: .45; cursor: default; }
.flow-ai-media-tray, .flow-ai-file-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 7px; font-size: 12px; }
.flow-ai-media-tray button, .flow-ai-chip { border: 1px solid var(--ai-line); background: #f4f9f9; color: inherit; border-radius: 6px; padding: 4px 7px; }
.flow-ai-chip { display: inline-flex; gap: 5px; align-items: center; max-width: 100%; overflow-wrap: anywhere; }
.flow-ai-chip button { padding: 1px 5px; background: transparent; border: 0; cursor: pointer; }
.flow-ai-media-tray audio, .flow-ai-message audio { max-width: 100%; height: 34px; }
.flow-ai-task-trigger { padding: 9px 0 0; background: transparent; border: 0; color: var(--ai-teal); font: inherit; font-size: 11px; cursor: pointer; }
.flow-ai-task-trigger:disabled { opacity: .55; cursor: default; }
.flow-ai-compose-note { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 9px; }
.flow-ai-compose-note > span { color: var(--ai-muted); font-size: 10px; }
.flow-ai-compose-note .flow-ai-task-trigger { padding: 0; }
.flow-ai-task-form, .flow-ai-proposal { max-width: 780px; margin: 18px auto; border: 1px solid #bcd9cf; background: #f7fbf9; border-radius: 12px; padding: 18px; }
.flow-ai-eyebrow { color: #587a6c; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.flow-ai-task-form h3, .flow-ai-proposal h3 { margin: 5px 0 16px; font-size: 17px; }
.flow-ai-task-form label { display: grid; gap: 6px; margin: 12px 0; color: var(--ai-ink); font-size: 12px; }
.flow-ai-task-form input, .flow-ai-task-form textarea, .flow-ai-task-form select { width: 100%; min-width: 0; border: 1px solid #c8dcd4; border-radius: 7px; background: white; padding: 10px; font: inherit; }
.flow-ai-task-form textarea { resize: vertical; max-height: 160px; }
.flow-ai-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.flow-ai-proposal dl { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; font-size: 12px; line-height: 1.6; }
.flow-ai-proposal dt { color: var(--ai-muted); }
.flow-ai-proposal dd { margin: 0; overflow-wrap: anywhere; }
.flow-ai-proposal-summary { font-size: 12px; white-space: pre-wrap; }
.flow-ai-note { color: var(--ai-muted); font-size: 11px; line-height: 1.6; }
.flow-ai-welcome > .flow-ai-note { font-size: 11px; }
.flow-ai-error, .flow-ai-notice { max-width: 780px; margin: 15px auto 0; padding: 12px; border-radius: 8px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.flow-ai-error { background: #fff2ef; color: #9d422f; }
.flow-ai-notice { background: #e7f6ed; color: #28654a; }
.flow-ai-thinking { display: flex; align-items: center; gap: 8px; color: var(--ai-muted); font-size: 12px; margin: 0 0 10px; }
.flow-ai-thinking span { width: 8px; height: 8px; background: var(--ai-teal); border-radius: 50%; animation: flow-ai-pulse 1.3s ease-in-out infinite alternate; }
@keyframes flow-ai-pulse { to { opacity: .25; transform: scale(.75); } }
@keyframes flow-ai-caret { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-ai-thinking span, .flow-ai-text[aria-hidden="true"]::after { animation: none; } }
.flow-ai-unavailable { padding: 60px 25px; text-align: center; }
.flow-ai-unavailable p { color: var(--ai-muted); }
.flow-ai-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.flow-ai-panel :focus-visible, [data-flow-ai-page] :focus-visible { outline: 2px solid var(--ai-teal); outline-offset: 3px; }
.flow-ai-panel .flow-ai-head { padding: 16px 18px; }
.flow-ai-panel .flow-ai-body { padding: 20px; }
.flow-ai-panel .flow-ai-compose { padding: 13px 17px 15px; }
.flow-ai-panel .flow-ai-welcome { margin-top: 12px; }
.flow-ai-panel .flow-ai-welcome h3 { font-size: 21px; }
.flow-ai-panel .flow-ai-compose-actions > span { max-width: 215px; }
.flow-ai-panel .flow-ai-toolbar { padding: 0 18px; gap: 14px; }
.flow-ai-panel .flow-ai-external-scope { padding: 10px 18px; }
.flow-ai-panel .flow-ai-coverage li { flex-wrap: wrap; gap: 4px; }
.flow-ai-panel .flow-ai-coverage-state { flex-basis: auto; text-align: left; }
.ai-source-settings { max-width: 54rem; padding: 1.25rem; color: var(--text, #17243b); }
.ai-source-settings h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.ai-source-settings header p, .ai-source-settings small { color: #536477; }
.ai-source-settings ul { list-style: none; margin: 0; padding: 0; }
.ai-source-settings .ai-source-tree { border: 1px solid #dbe4e8; border-radius: .65rem; overflow: hidden; }
.ai-source-tree li { position: relative; margin: 0; }
.ai-source-tree > li + li { border-top: 1px solid #dbe4e8; }
.ai-source-tree summary, .ai-source-leaf label, .ai-source-status, .ai-source-bulk { min-height: 2.65rem; display: flex; align-items: center; gap: .6rem; padding: .45rem .8rem; }
.ai-source-tree summary, .ai-source-leaf label, .ai-source-bulk { cursor: pointer; }
.ai-source-status { padding-left: 2.45rem; color: #536477; }
.ai-source-bulk { margin: .8rem 0; background: #eff7f5; border: 1px solid #cedfd9; border-radius: .5rem; }
.ai-source-bulk small { margin-left: auto; }
.ai-source-tree summary { padding-right: 3rem; font-weight: 600; background: #f6f9fa; }
.ai-source-tree summary::before { content: '›'; font-size: 1.1rem; transition: transform .1s; }
.ai-source-tree details[open] > summary::before { transform: rotate(90deg); }
.ai-source-tree details > ul { padding-left: 1.1rem; }
.ai-source-tree small { margin-left: auto; font-size: .78rem; font-weight: 400; }
.ai-source-tree input[type=checkbox], .ai-source-bulk input { width: 1.05rem; height: 1.05rem; flex: none; accent-color: #008776; }
.ai-source-tree details + input { position: absolute; top: .75rem; right: .9rem; }
.ai-source-tree label:has(input:disabled) { cursor: default; color: #596976; }
.ai-source-actions { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; padding: 1rem 0; position: sticky; bottom: 0; background: white; }
.ai-source-actions [role=status] { flex: 1 1 12rem; }
.flow-ai-card-open { display: none; }
.has-flow-ai-pilot .flow-ai-card-open, .flow-ai-card-tools button, .flow-ai-feedback {
  border: 1px solid #c7ded9; color: #006657; border-radius: .45rem; background: #f3faf8; cursor: pointer; font: inherit;
}
.has-flow-ai-pilot .flow-ai-card-open { display: inline-flex; padding: .32rem .65rem; margin: .25rem 0; }
.flow-ai-card-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.flow-ai-card-tools button, .flow-ai-feedback { padding: .22rem .45rem; font-size: .76rem; }
.flow-ai-feedback { background: white; color: #425761; margin-inline-start: .45rem; }
.flow-ai-pilot-dialog { color: #182b3c; width: min(34rem, 92vw); max-height: 83vh; overflow: auto; box-sizing: border-box; border: 1px solid #cddcd9; border-radius: .8rem; padding: 1.25rem; }
.flow-ai-pilot-dialog::backdrop { background: rgb(20 38 50 / .35); }
.flow-ai-pilot-dialog header, .flow-ai-pilot-grid { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.flow-ai-pilot-dialog header { justify-content: space-between; margin-bottom: 1rem; }
.flow-ai-pilot-dialog h3 { margin: 0; }
.flow-ai-pilot-dialog h4 { margin: 1rem 0 .4rem; }
.flow-ai-pilot-dialog label { display: grid; gap: .3rem; margin: .55rem 0; }
.flow-ai-pilot-dialog input:not([type=checkbox]), .flow-ai-pilot-dialog select, .flow-ai-pilot-dialog textarea { width: 100%; padding: .55rem; box-sizing: border-box; border: 1px solid #b9c9ce; border-radius: .4rem; color: inherit; font: inherit; }
.flow-ai-pilot-dialog fieldset { margin: .6rem 0; border: 1px solid #d1dfdc; border-radius: .5rem; }
.flow-ai-pilot-dialog .pilot-check { display: flex; align-items: start; }
.flow-ai-pilot-dialog [data-results] { display: grid; gap: .3rem; max-height: 44vh; overflow-y: auto; }
.flow-ai-pilot-dialog [data-results] button { justify-content: flex-start; text-align: left; }
.flow-ai-pilot-dialog [role=alert] { color: #9c3023; margin-bottom: 0; }
.has-flow-ai-pilot .flow-ai-panel { z-index: 11000; }
